From: Akim Demaille Date: Tue, 27 Mar 2001 16:47:10 +0000 (+0000) Subject: * autoheader.sh (config_h): Be robust to new lines when extracting X-Git-Tag: autoconf-2.50~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2728d861effd0c31d4398436ad1697da2de69b8b;p=thirdparty%2Fautoconf.git * autoheader.sh (config_h): Be robust to new lines when extracting the first argument of AC_CONFIG_HEADERS. Reported by Lars J. Aas. --- diff --git a/ChangeLog b/ChangeLog index 64396d612..900f43ee6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-03-27 Akim Demaille + + * 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 * doc/autoconf.texi: Minor tweaks. diff --git a/autoheader.in b/autoheader.in index c0638d382..d93f330ae 100644 --- a/autoheader.in +++ b/autoheader.in @@ -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 diff --git a/autoheader.sh b/autoheader.sh index c0638d382..d93f330ae 100644 --- a/autoheader.sh +++ b/autoheader.sh @@ -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 diff --git a/bin/autoheader.in b/bin/autoheader.in index c0638d382..d93f330ae 100644 --- a/bin/autoheader.in +++ b/bin/autoheader.in @@ -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