Message-ID: <362E062E.372AD1D7@montana.com> Date: Wed, 21 Oct 1998 10:05:02 -0600 From: bowman X-Mailer: Mozilla 4.5b2 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: proposed change to autoconf macro Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com problem: when 'autoconf' is used, if it needs to determine the value for 'INSTALL', the test used in the produced 'configure' file looks for a *nix style path beginning at the root, '/'. If the path doesn't start at root, it prepends '../' to the path. this causes a error on 'make install' proposed solution: change the test to include '[A-z]:/'. (thanks, Eli). The source for the macro is in 'acgeneral.m4', but autoconf uses a frozen file, autoconf.m4f, which is produced by running >m4 -F autoconf.m4f autoconf.m4. additionally, 'autoconf.m4' refers to 'acoldnames.m4', which apparently was shortened to 'acoldname.m4' in the distribution, acnf212b.zip <---------------------------------- autoconf.diff ----------------------------------------> diff -c3 share/autoconf/acgeneral.m4 share/oldacf/acgeneral.m4 *** share/autoconf/acgeneral.m4 Wed Oct 21 09:27:50 1998 --- share/oldacf/acgeneral.m4 Wed Oct 21 06:48:40 1998 *************** *** 2118,2124 **** ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ case "$ac_given_INSTALL" in changequote(, )dnl ! [/$]*|[A-z]:/*) INSTALL="$ac_given_INSTALL" ;; changequote([, ])dnl *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac --- 2118,2124 ---- 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 Only in share/autoconf: acgeneral.m4~ diff -c3 share/autoconf/autoconf.m4 share/oldacf/autoconf.m4 *** share/autoconf/autoconf.m4 Wed Oct 21 09:48:22 1998 --- share/oldacf/autoconf.m4 Wed Oct 21 09:48:56 1998 *************** *** 22,28 **** dnl include(acgeneral.m4)dnl builtin(include, acspecific.m4)dnl ! builtin(include, acoldname.m4)dnl dnl Do not sinclude acsite.m4 here, because it may not be installed dnl yet when Autoconf is frozen. dnl Do not sinclude ./aclocal.m4 here, to prevent it from being frozen. --- 22,28 ---- dnl include(acgeneral.m4)dnl builtin(include, acspecific.m4)dnl ! builtin(include, acoldnames.m4)dnl dnl Do not sinclude acsite.m4 here, because it may not be installed dnl yet when Autoconf is frozen. dnl Do not sinclude ./aclocal.m4 here, to prevent it from being frozen. diff -c3 share/autoconf/autoconf.m4f share/oldacf/autoconf.m4f *** share/autoconf/autoconf.m4f Wed Oct 21 09:27:58 1998 --- share/oldacf/autoconf.m4f Wed Oct 21 06:49:02 1998 *************** *** 3928,3934 **** LIBS="$LIBS -lx" fi []AC_EPI() ! T15,4046 AC_OUTPUT_FILES# Protect against being on the right side of a sed subst in config.status. changequote(, )dnl sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; --- 3928,3934 ---- LIBS="$LIBS -lx" fi []AC_EPI() ! T15,4037 AC_OUTPUT_FILES# Protect against being on the right side of a sed subst in config.status. changequote(, )dnl sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; *************** *** 4023,4029 **** ifdef([AC_PROVIDE_AC_PROG_INSTALL], [ case "$ac_given_INSTALL" in changequote(, )dnl ! [/$]*|[A-z]:/*) INSTALL="$ac_given_INSTALL" ;; changequote([, ])dnl *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac --- 4023,4029 ---- 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 diff -c3 share/autoconf/autoconf.m4~ share/oldacf/autoconf.m4~ *** share/autoconf/autoconf.m4~ Wed Oct 21 06:49:56 1998 --- share/oldacf/autoconf.m4~ Wed Oct 21 09:44:42 1998 *************** *** 22,28 **** dnl include(acgeneral.m4)dnl builtin(include, acspecific.m4)dnl ! builtin(include, acoldname.m4)dnl dnl Do not sinclude acsite.m4 here, because it may not be installed dnl yet when Autoconf is frozen. dnl Do not sinclude ./aclocal.m4 here, to prevent it from being frozen. --- 22,28 ---- dnl include(acgeneral.m4)dnl builtin(include, acspecific.m4)dnl ! builtin(include, acoldnames.m4)dnl dnl Do not sinclude acsite.m4 here, because it may not be installed dnl yet when Autoconf is frozen. dnl Do not sinclude ./aclocal.m4 here, to prevent it from being frozen.