From: Pavel Roskin Date: Wed, 23 May 2001 12:27:56 +0000 (+0000) Subject: * aclang.m4 (AC_PROG_CPP): Use `break' instead of `break 2' since X-Git-Tag: AUTOCONF-2.50a~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48e1475edcf1ce2d42427dabdb0b6c871ab92df7;p=thirdparty%2Fautoconf.git * 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. --- diff --git a/ChangeLog b/ChangeLog index 4c2f89633..b69a8b574 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-05-23 Pavel Roskin + + * 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 * config: New directory. diff --git a/aclang.m4 b/aclang.m4 index 2aa4e6e39..5ee4ea9d1 100644 --- 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 diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 2aa4e6e39..5ee4ea9d1 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.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 diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 2aa4e6e39..5ee4ea9d1 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.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 diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index 2aa4e6e39..5ee4ea9d1 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.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