]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Simplify _AC_OUTPUT_HEADERS.
authorStepan Kasal <kasal@ucw.cz>
Mon, 6 Jun 2005 08:21:08 +0000 (08:21 +0000)
committerStepan Kasal <kasal@ucw.cz>
Mon, 6 Jun 2005 08:21:08 +0000 (08:21 +0000)
ChangeLog
lib/autoconf/status.m4

index 2b668a1a97b1465f7c695e2602b5a7d4e554ac87..a922359fc5820bceb581d326b99b54bc4d81a63c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-06-06  Stepan Kasal  <kasal@ucw.cz>
+
+       * 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        <menzel@ls6.cs.uni-dortmund.de>  (trivial change)
 
        * doc/autoconf.texi (Limitations of Usual Tools): Solaris' awk cannot
index 4615fea57d28caaac8672a3afaf446f3423721d6..536f627d09a6f82f44efa4644a69339aebcd94c2 100644 (file)
@@ -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"