From: Stepan Kasal Date: Mon, 6 Jun 2005 08:21:08 +0000 (+0000) Subject: Simplify _AC_OUTPUT_HEADERS. X-Git-Tag: AUTOCONF-2.59c~351 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=160577c29c574019f0565e35c047ca646b59314d;p=thirdparty%2Fautoconf.git Simplify _AC_OUTPUT_HEADERS. --- diff --git a/ChangeLog b/ChangeLog index 2b668a1a9..a922359fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-06-06 Stepan Kasal + + * lib/autoconf/general.m4 (_AC_INIT_DEFAULTS): Nuke ac_max_here_lines. + * lib/autoconf/status.m4 (_AC_OUTPUT_HEADERS): Simplify the sed + scripts created and the loop applying them, use _AC_SED_CMD_LIMIT. + 2005-06-06 Ralf Menzel (trivial change) * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot diff --git a/lib/autoconf/status.m4 b/lib/autoconf/status.m4 index 4615fea57..536f627d0 100644 --- a/lib/autoconf/status.m4 +++ b/lib/autoconf/status.m4 @@ -581,10 +581,8 @@ uniq confdefs.h | # or #undef.) echo '[s,^[ #]*u.*,/* & */,]' >>conftest.defines -# Break up conftest.defines because some old seds have a limit on number -# of cmds (HP-UX can take 100 cmds). Subtract the three cmds at the -# beginning of each fragment. -ac_max_sed_lines=97 +# Break up conftest.defines: +ac_max_sed_lines=m4_expr(_AC_SED_CMD_LIMIT - 3) # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"