From: Stepan Kasal Date: Fri, 21 Oct 2005 07:36:31 +0000 (+0000) Subject: _AC_OUTPUT_FILES_PREPARE: fix quoting and optimize X-Git-Tag: AUTOCONF-2.59c~231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c46e64ab3d293f88692d61367d685f4e40bf52d;p=thirdparty%2Fautoconf.git _AC_OUTPUT_FILES_PREPARE: fix quoting and optimize --- diff --git a/ChangeLog b/ChangeLog index 179313c0d..ac76599d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-10-21 Stepan Kasal + + * lib/autoconf/status.m4 (_AC_OUTPUT_FILES_PREPARE): When determining, + the delimiter CEOF$ac_eof: fix quoting of CEOF[0-9]* and modify the + code so that the most common case requires less forks. + 2005-10-20 Stepan Kasal * doc/autoconf.texi (Shell Substitutions}: Document that ${10} is diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4 index 94e7ce7e4..88e5ad19f 100644 --- a/lib/autoconf/status.m4 +++ b/lib/autoconf/status.m4 @@ -411,8 +411,11 @@ m4_if(_AC_SED_CMD_LIMIT, fi done -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q` -ac_eof=`expr 0$ac_eof + 1` +ac_eof= +if grep '^CEOF$' conf$$subs.sed >/dev/null; then + ac_eof=`sed -n '/^CEOF[[0-9]]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q` + ac_eof=`expr 0$ac_eof + 1` +fi dnl Increment fragment number. m4_define([_AC_SED_FRAG_NUM], m4_incr(_AC_SED_FRAG_NUM))dnl