diff --git a/configure b/configure index b97a4eea9..3d91d2a24 100755 --- a/configure +++ b/configure @@ -990,7 +990,7 @@ echo "configure:989: checking ansi standard C++ stream headers " >&5 cat > conftest.cc < ! - if test -z "`${CXX} $CMAKE_ANSI_CFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then + if test -z "`${CXX} $CMAKE_ANSI_CXXFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else cat >> confdefs.h <<\EOF @@ -1010,7 +1010,7 @@ echo "configure:1008: checking ansi standard namespace support " >&5 #include void foo() { std::list l; } ! - if test -z "`${CXX} $CMAKE_ANSI_CFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then + if test -z "`${CXX} $CMAKE_ANSI_CXXFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else cat >> confdefs.h <<\EOF @@ -1029,7 +1029,7 @@ echo "configure:1028: checking ansi for scope support " >&5 cat > conftest.cc <&1`"; then + if test -z "`${CXX} $CMAKE_ANSI_CXXFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else cat >> confdefs.h <<\EOF diff --git a/configure.in b/configure.in index 77546fb29..027a341f3 100644 --- a/configure.in +++ b/configure.in @@ -104,7 +104,7 @@ if test $ac_cv_prog_gxx = no; then cat > conftest.cc < ! - if test -z "`${CXX} $CMAKE_ANSI_CFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then + if test -z "`${CXX} $CMAKE_ANSI_CXXFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else AC_DEFINE(CMAKE_NO_ANSI_STREAM_HEADERS) @@ -120,7 +120,7 @@ if test $ac_cv_prog_gxx = no; then #include void foo() { std::list l; } ! - if test -z "`${CXX} $CMAKE_ANSI_CFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then + if test -z "`${CXX} $CMAKE_ANSI_CXXFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else AC_DEFINE(CMAKE_NO_STD_NAMESPACE) @@ -135,7 +135,7 @@ if test $ac_cv_prog_gxx = no; then cat > conftest.cc <&1`"; then + if test -z "`${CXX} $CMAKE_ANSI_CXXFLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else AC_DEFINE(CMAKE_NO_ANSI_FOR_SCOPE)