delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/18/07:44:43

Date: Sun, 18 Oct 1998 13:44:42 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: bowman <bowman AT montana DOT com>
cc: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Subject: Re: autoconf/acgeneral.m4 problem
In-Reply-To: <36277F37.F4738DD4@montana.com>
Message-ID: <Pine.SUN.3.91.981018134422.2705e-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Fri, 16 Oct 1998, bowman wrote:

> ifdef([AC_PROVIDE_AC_PROG_INSTALL],
> [  case "$ac_given_INSTALL" in
> changequote(, )dnl
>   [/$]*) INSTALL="$ac_given_INSTALL" ;;
> changequote([, ])dnl
>   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
>   esac
> ])dnl
> 
> prior to reaching this code, ac_given_INSTALL is set to
> c:/djgpp/bin/ginstall by prior tests. However, after the test, ac_dots
> is prepended, yeilding  ../c:/djgpp/bin/ginstall, which fails during the
> "make install" operation. 

The problem is with this line:

>   [/$]*) INSTALL="$ac_given_INSTALL" ;;

It should instead say this:

    [/$]*|[A-z]:/*) INSTALL="$ac_given_INSTALL" ;;

because DOS/Windows absolute file names do not have to start with a
slash.

I find myself editing every GNU configure script to make this change.
Ideally, the DJGPP port of Autoconf should produce the latter variant
automatically (there are a few more cases like this in a typical
configure script, so be sure to check them all).  I don't know enough
about Autoconf to tell you where to make the change.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019