From: Ralf Wildenhues Date: Thu, 7 Dec 2006 05:16:59 +0000 (+0000) Subject: * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the X-Git-Tag: AUTOCONF-2.61a~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6c5fd0d0a557e6cc167686f8b8cdc4e43fb84f3;p=thirdparty%2Fautoconf.git * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the `CEOF$ac_eof' special marker, the awk script cannot contain a line matching `^CEOF', so this is not needed any more. * tests/torture.at (Substitute a newline): Expose the `%!_!# ' special marker in the test. --- diff --git a/ChangeLog b/ChangeLog index 198b1f7f9..0714e14d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-12-07 Ralf Wildenhues + + * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): Drop the + `CEOF$ac_eof' special marker, the awk script cannot contain a + line matching `^CEOF', so this is not needed any more. + * tests/torture.at (Substitute a newline): Expose the `%!_!# ' + special marker in the test. + 2006-12-06 Stepan Kasal * tests/tools.at (autom4te preselections): Use `find -newer'; diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4 index 175c5adce..a03d006fa 100644 --- a/lib/autoconf/status.m4 +++ b/lib/autoconf/status.m4 @@ -412,12 +412,6 @@ dnl Do not use grep on conf$$subs.awk, since AIX grep has a line length limit. done rm -f conf$$subs.sh -dnl Similarly, avoid grep here too. -ac_eof=`sed -n '/^CEOF[[0-9]]*$/s/CEOF/0/p' conf$$subs.awk` -if test -n "$ac_eof"; then - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` - ac_eof=`expr $ac_eof + 1` -fi dnl Initialize an awk array of substitutions, keyed by variable name. dnl dnl The initial line contains the variable name VAR, then a `!'. @@ -445,7 +439,7 @@ dnl - Writing `$ 0' prevents expansion by both the shell and m4 here. dnl dnl m4-double-quote most of the scripting for readability. [cat >>$CONFIG_STATUS <<_ACEOF -cat >>"\$tmp/subs.awk" <<\CEOF$ac_eof +cat >>"\$tmp/subs.awk" <<\CEOF _ACEOF sed -n ' h @@ -492,7 +486,7 @@ t delim ' >>$CONFIG_STATUS rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF -CEOF$ac_eof +CEOF cat >>"\$tmp/subs.awk" <expout + AT_CHECK_AUTOCONF # Check both awk and the result of AC_PROG_AWK for awk_arg in FOO= AWK=awk; do AT_CHECK_CONFIGURE([$awk_arg]) - AT_CHECK([cat Foo], 0, [one -two -]) + AT_CHECK([cat Foo], 0, [expout]) done AT_CLEANUP