]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoheader.sh (config_h): Be robust to new lines when extracting
authorAkim Demaille <akim@epita.fr>
Tue, 27 Mar 2001 16:47:10 +0000 (16:47 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 27 Mar 2001 16:47:10 +0000 (16:47 +0000)
the first argument of AC_CONFIG_HEADERS.
Reported by Lars J. Aas.

ChangeLog
autoheader.in
autoheader.sh
bin/autoheader.in

index 64396d6122953e72716668c097f3b852a6e89bc4..900f43ee622844c1ad1efe7a25aee11559706608 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-03-27  Akim Demaille  <akim@epita.fr>
+
+       * autoheader.sh (config_h): Be robust to new lines when extracting
+       the first argument of AC_CONFIG_HEADERS.
+       Reported by Lars J. Aas.
+
 2001-03-27  Tim Van Holder <tim.van.holder@pandora.be>
 
        * doc/autoconf.texi: Minor tweaks.
index c0638d382ffc716ad6832effc91d7f2129dca94c..d93f330ae3e39cdcf1e92f5d210dc05349a9fc0d 100644 (file)
@@ -285,7 +285,7 @@ syms=`for sym in $syms; do echo $sym; done |
 
 
 # We template only the first CONFIG_HEADER.
-config_h=`echo "$config_h" | sed -e 's/ .*//'`
+config_h=`set X $config_h; echo $2`
 # Support "outfile[:infile]", defaulting infile="outfile.in".
 case "$config_h" in
 "") echo "$me: error: AC_CONFIG_HEADERS not found in $infile" >&2
index c0638d382ffc716ad6832effc91d7f2129dca94c..d93f330ae3e39cdcf1e92f5d210dc05349a9fc0d 100644 (file)
@@ -285,7 +285,7 @@ syms=`for sym in $syms; do echo $sym; done |
 
 
 # We template only the first CONFIG_HEADER.
-config_h=`echo "$config_h" | sed -e 's/ .*//'`
+config_h=`set X $config_h; echo $2`
 # Support "outfile[:infile]", defaulting infile="outfile.in".
 case "$config_h" in
 "") echo "$me: error: AC_CONFIG_HEADERS not found in $infile" >&2
index c0638d382ffc716ad6832effc91d7f2129dca94c..d93f330ae3e39cdcf1e92f5d210dc05349a9fc0d 100644 (file)
@@ -285,7 +285,7 @@ syms=`for sym in $syms; do echo $sym; done |
 
 
 # We template only the first CONFIG_HEADER.
-config_h=`echo "$config_h" | sed -e 's/ .*//'`
+config_h=`set X $config_h; echo $2`
 # Support "outfile[:infile]", defaulting infile="outfile.in".
 case "$config_h" in
 "") echo "$me: error: AC_CONFIG_HEADERS not found in $infile" >&2