]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* acgeneral.m4 (AC_OUTPUT_HEADERS): Don't use `break' to exit the
authorAkim Demaille <akim@epita.fr>
Tue, 8 Feb 2000 13:41:51 +0000 (13:41 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 8 Feb 2000 13:41:51 +0000 (13:41 +0000)
while loops which are breaking conftest.defines and
conftest.undefs into smaller snippets: just use the proper
condition for the while.
Suggested by Alexandre Oliva.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index 9e8c0cb400263941c8ad7c8f26a474257c91a30b..8de1633944fd5e26b8a92b619789bc707b8aec74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-02-08  Akim Demaille  <akim@epita.fr>
+
+       * acgeneral.m4 (AC_OUTPUT_HEADERS): Don't use `break' to exit the
+       while loops which are breaking conftest.defines and
+       conftest.undefs into smaller snippets: just use the proper
+       condition for the while.
+       Suggested by Alexandre Oliva.
+
 2000-02-08  Akim Demaille  <akim@epita.fr>
 
        * doc/autoconf.texi (Configuration Commands): New section, for
index 7bc002436b17b6cbfae40b8d03f2557b7bade192..3428b834f889656bb0c8de7219abcafb1ee06608 100644 (file)
@@ -3727,11 +3727,8 @@ echo '  if egrep "^@BKL@         @BKR@*#@BKL@    @BKR@*define" $ac_cs_root.in >/dev/null;
 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 echo '  :' >>$CONFIG_STATUS
 rm -f conftest.tail
-while :
+while grep . conftest.defines >/dev/null
 do
-  ac_lines=`grep -c . conftest.defines`
-  # grep -c gives empty output for an empty file on some AIX systems.
-  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
   # Write a limited-size here document to $ac_cs_root.frag.
   echo '  cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
 dnl Speed up: don't consider the non `#define' lines.
@@ -3755,11 +3752,8 @@ echo >>$CONFIG_STATUS
 # of here documents, and old seds have small limits too (100 cmds).
 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 rm -f conftest.tail
-while :
+while grep . conftest.undefs >/dev/null
 do
-  ac_lines=`grep -c . conftest.undefs`
-  # grep -c gives empty output for an empty file on some AIX systems.
-  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
   # Write a limited-size here document to $ac_cs_root.frag.
   echo '  cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
 dnl Speed up: don't consider the non `#undef'
index 7bc002436b17b6cbfae40b8d03f2557b7bade192..3428b834f889656bb0c8de7219abcafb1ee06608 100644 (file)
@@ -3727,11 +3727,8 @@ echo '  if egrep "^@BKL@         @BKR@*#@BKL@    @BKR@*define" $ac_cs_root.in >/dev/null;
 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 echo '  :' >>$CONFIG_STATUS
 rm -f conftest.tail
-while :
+while grep . conftest.defines >/dev/null
 do
-  ac_lines=`grep -c . conftest.defines`
-  # grep -c gives empty output for an empty file on some AIX systems.
-  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
   # Write a limited-size here document to $ac_cs_root.frag.
   echo '  cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
 dnl Speed up: don't consider the non `#define' lines.
@@ -3755,11 +3752,8 @@ echo >>$CONFIG_STATUS
 # of here documents, and old seds have small limits too (100 cmds).
 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 rm -f conftest.tail
-while :
+while grep . conftest.undefs >/dev/null
 do
-  ac_lines=`grep -c . conftest.undefs`
-  # grep -c gives empty output for an empty file on some AIX systems.
-  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
   # Write a limited-size here document to $ac_cs_root.frag.
   echo '  cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
 dnl Speed up: don't consider the non `#undef'