]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
authorPavel Roskin <proski@gnu.org>
Wed, 23 May 2001 12:27:56 +0000 (12:27 +0000)
committerPavel Roskin <proski@gnu.org>
Wed, 23 May 2001 12:27:56 +0000 (12:27 +0000)
_AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
(AC_PROG_CXXCPP): Likewise.

ChangeLog
aclang.m4
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/lang.m4

index 4c2f8963303c8eb326649b70953668d081e4f327..b69a8b574345f2ceabfc5e3623463128874d5281 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-05-23  Pavel Roskin  <proski@gnu.org>
+
+       * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since
+       _AC_PROG_PREPROC_WORKS_IFELSE expands arguments outside the loop.
+       (AC_PROG_CXXCPP): Likewise.
+
 2001-05-22  Akim Demaille  <akim@epita.fr>
 
        * config: New directory.
index 2aa4e6e396debb5778500b2f65b272a21cdb556f..5ee4ea9d184aa7273aae0574e5dea9e90ca39ec8 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -881,8 +881,7 @@ if test -z "$CPP"; then
     # Double quotes because CPP needs to be expanded
     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     do
-      # break 2 since there is a loop in there.
-      _AC_PROG_PREPROC_WORKS_IFELSE([break 2])
+      _AC_PROG_PREPROC_WORKS_IFELSE([break])
     done
     ac_cv_prog_CPP=$CPP
   ])dnl
@@ -1089,8 +1088,7 @@ if test -z "$CXXCPP"; then
     # Double quotes because CXXCPP needs to be expanded
     for CXXCPP in "$CXX -E" "/lib/cpp"
     do
-      # break 2 since there is a loop in there.
-      _AC_PROG_PREPROC_WORKS_IFELSE([break 2])
+      _AC_PROG_PREPROC_WORKS_IFELSE([break])
     done
     ac_cv_prog_CXXCPP=$CXXCPP
   ])dnl
index 2aa4e6e396debb5778500b2f65b272a21cdb556f..5ee4ea9d184aa7273aae0574e5dea9e90ca39ec8 100644 (file)
@@ -881,8 +881,7 @@ if test -z "$CPP"; then
     # Double quotes because CPP needs to be expanded
     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     do
-      # break 2 since there is a loop in there.
-      _AC_PROG_PREPROC_WORKS_IFELSE([break 2])
+      _AC_PROG_PREPROC_WORKS_IFELSE([break])
     done
     ac_cv_prog_CPP=$CPP
   ])dnl
@@ -1089,8 +1088,7 @@ if test -z "$CXXCPP"; then
     # Double quotes because CXXCPP needs to be expanded
     for CXXCPP in "$CXX -E" "/lib/cpp"
     do
-      # break 2 since there is a loop in there.
-      _AC_PROG_PREPROC_WORKS_IFELSE([break 2])
+      _AC_PROG_PREPROC_WORKS_IFELSE([break])
     done
     ac_cv_prog_CXXCPP=$CXXCPP
   ])dnl
index 2aa4e6e396debb5778500b2f65b272a21cdb556f..5ee4ea9d184aa7273aae0574e5dea9e90ca39ec8 100644 (file)
@@ -881,8 +881,7 @@ if test -z "$CPP"; then
     # Double quotes because CPP needs to be expanded
     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     do
-      # break 2 since there is a loop in there.
-      _AC_PROG_PREPROC_WORKS_IFELSE([break 2])
+      _AC_PROG_PREPROC_WORKS_IFELSE([break])
     done
     ac_cv_prog_CPP=$CPP
   ])dnl
@@ -1089,8 +1088,7 @@ if test -z "$CXXCPP"; then
     # Double quotes because CXXCPP needs to be expanded
     for CXXCPP in "$CXX -E" "/lib/cpp"
     do
-      # break 2 since there is a loop in there.
-      _AC_PROG_PREPROC_WORKS_IFELSE([break 2])
+      _AC_PROG_PREPROC_WORKS_IFELSE([break])
     done
     ac_cv_prog_CXXCPP=$CXXCPP
   ])dnl
index 2aa4e6e396debb5778500b2f65b272a21cdb556f..5ee4ea9d184aa7273aae0574e5dea9e90ca39ec8 100644 (file)
@@ -881,8 +881,7 @@ if test -z "$CPP"; then
     # Double quotes because CPP needs to be expanded
     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
     do
-      # break 2 since there is a loop in there.
-      _AC_PROG_PREPROC_WORKS_IFELSE([break 2])
+      _AC_PROG_PREPROC_WORKS_IFELSE([break])
     done
     ac_cv_prog_CPP=$CPP
   ])dnl
@@ -1089,8 +1088,7 @@ if test -z "$CXXCPP"; then
     # Double quotes because CXXCPP needs to be expanded
     for CXXCPP in "$CXX -E" "/lib/cpp"
     do
-      # break 2 since there is a loop in there.
-      _AC_PROG_PREPROC_WORKS_IFELSE([break 2])
+      _AC_PROG_PREPROC_WORKS_IFELSE([break])
     done
     ac_cv_prog_CXXCPP=$CXXCPP
   ])dnl