+2005-10-21 Stepan Kasal <kasal@ucw.cz>
+
+ * 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 <kasal@ucw.cz>
* doc/autoconf.texi (Shell Substitutions}: Document that ${10} is
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