]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Thu May 28 18:37:36 1998 Ian Lance Taylor <ian@cygnus.com>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Thu, 3 Sep 1998 00:37:37 +0000 (00:37 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Thu, 3 Sep 1998 00:37:37 +0000 (00:37 +0000)
* autoreconf.sh: Change initial /bin/sh to @SHELL@.
Tue Nov 18 14:21:38 1997  Eric Mumpower  <nocturne@cygnus.com>
        * autoreconf.sh: Do the right thing when AC_CONFIG_HEADER is
        given more than one filename. As noted in the "Invoking
        autoheader" node of the info files, autoheader will use the first
        file argument given to AC_CONFIG_HEADER. Prior to this patch,
        autoreconf would end up executing incorrect shell code (e.g.
        "test ! -f 1.h 2.h.in") in such cases.
        Patch submitted in parallel to bug-gnu-utils@prep.ai.mit.edu.

autoreconf.in
autoreconf.sh
bin/autoreconf.in

index a91d26c7c58ac81109479a9a7c7078ce7b014634..781c3454c1d06dec66f84da640a44682434ec4fa 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! @SHELL@
 # autoreconf - remake all Autoconf configure scripts in a directory tree
 # Copyright (C) 1994 Free Software Foundation, Inc.
 
@@ -126,6 +126,7 @@ while read dir; do
   if grep AC_CONFIG_HEADER configure.in >/dev/null; then
     template=`sed -n '/AC_CONFIG_HEADER/{
 s%[^#]*AC_CONFIG_HEADER(\([^)]*\).*%\1%
+s%^ *\([^ ][^ ]*\) .*$%\1%
 t here
 : here
 s%.*:%%
index a91d26c7c58ac81109479a9a7c7078ce7b014634..781c3454c1d06dec66f84da640a44682434ec4fa 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! @SHELL@
 # autoreconf - remake all Autoconf configure scripts in a directory tree
 # Copyright (C) 1994 Free Software Foundation, Inc.
 
@@ -126,6 +126,7 @@ while read dir; do
   if grep AC_CONFIG_HEADER configure.in >/dev/null; then
     template=`sed -n '/AC_CONFIG_HEADER/{
 s%[^#]*AC_CONFIG_HEADER(\([^)]*\).*%\1%
+s%^ *\([^ ][^ ]*\) .*$%\1%
 t here
 : here
 s%.*:%%
index a91d26c7c58ac81109479a9a7c7078ce7b014634..781c3454c1d06dec66f84da640a44682434ec4fa 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! @SHELL@
 # autoreconf - remake all Autoconf configure scripts in a directory tree
 # Copyright (C) 1994 Free Software Foundation, Inc.
 
@@ -126,6 +126,7 @@ while read dir; do
   if grep AC_CONFIG_HEADER configure.in >/dev/null; then
     template=`sed -n '/AC_CONFIG_HEADER/{
 s%[^#]*AC_CONFIG_HEADER(\([^)]*\).*%\1%
+s%^ *\([^ ][^ ]*\) .*$%\1%
 t here
 : here
 s%.*:%%