mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 12:09:48 +00:00
use cxxflags in test builds
This commit is contained in:
parent
beaa7dc1c8
commit
b5b4c0eb5c
7
configure
vendored
7
configure
vendored
@ -1035,7 +1035,7 @@ echo "configure:1034: checking ansi standard C++ stream headers " >&5
|
||||
cat > conftest.cc <<!
|
||||
#include <iostream>
|
||||
!
|
||||
if test -z "`${CXX} -c conftest.cc 2>&1`"; then
|
||||
if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
else
|
||||
cat >> confdefs.h <<\EOF
|
||||
@ -1048,15 +1048,14 @@ fi
|
||||
|
||||
# check to see if stl is in the std namespace
|
||||
if test $ac_cv_prog_gxx = no; then
|
||||
echo "******"
|
||||
echo $ac_n "checking ansi standard namespace support ""... $ac_c" 1>&6
|
||||
echo "configure:1054: checking ansi standard namespace support " >&5
|
||||
echo "configure:1053: checking ansi standard namespace support " >&5
|
||||
rm -rf conftest.*
|
||||
cat > conftest.cc <<!
|
||||
#include <list>
|
||||
void foo() { std::list<int> l; }
|
||||
!
|
||||
if test -z "`${CXX} -c conftest.cc 2>&1`"; then
|
||||
if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
else
|
||||
cat >> confdefs.h <<\EOF
|
||||
|
@ -68,7 +68,7 @@ if test $ac_cv_prog_gxx = no; then
|
||||
cat > conftest.cc <<!
|
||||
#include <iostream>
|
||||
!
|
||||
if test -z "`${CXX} -c conftest.cc 2>&1`"; then
|
||||
if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
else
|
||||
AC_DEFINE(CMAKE_NO_ANSI_STREAM_HEADERS)
|
||||
@ -78,14 +78,13 @@ fi
|
||||
|
||||
# check to see if stl is in the std namespace
|
||||
if test $ac_cv_prog_gxx = no; then
|
||||
echo "******"
|
||||
AC_MSG_CHECKING( ansi standard namespace support )
|
||||
rm -rf conftest.*
|
||||
cat > conftest.cc <<!
|
||||
#include <list>
|
||||
void foo() { std::list<int> l; }
|
||||
!
|
||||
if test -z "`${CXX} -c conftest.cc 2>&1`"; then
|
||||
if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
|
||||
echo "$ac_t""yes" 1>&6
|
||||
else
|
||||
AC_DEFINE(CMAKE_NO_STD_NAMESPACE)
|
||||
|
Loading…
Reference in New Issue
Block a user