summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-09-10 14:35:53 (GMT)
committerBrad King <brad.king@kitware.com>2002-09-10 14:35:53 (GMT)
commit7a927b5d50a9b6e0e7ce40bc459ad7df8dfbe0bd (patch)
tree07a35a38fb1f904793c3fbc9f65bc804fe0f947a /configure.in
parentd7a1063b209fd2649cca5e98353c71ff560f6e7a (diff)
downloadCMake-7a927b5d50a9b6e0e7ce40bc459ad7df8dfbe0bd.zip
CMake-7a927b5d50a9b6e0e7ce40bc459ad7df8dfbe0bd.tar.gz
CMake-7a927b5d50a9b6e0e7ce40bc459ad7df8dfbe0bd.tar.bz2
ERR: Went back to old-style test for -LANG:std on the SGI.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in24
1 files changed, 9 insertions, 15 deletions
diff --git a/configure.in b/configure.in
index 57db2a4..0f7b385 100644
--- a/configure.in
+++ b/configure.in
@@ -81,21 +81,15 @@ case $system in
CFLAGS="$CFLAGS_ORIG"
;;
IRIX-5* | IRIX-6* | IRIX64-6* | IRIX-64-6*)
- CXXFLAGS_ORIG="$CXXFLAGS"
- CXXFLAGS="-LANG:std $CXXFLAGS"
- AC_MSG_CHECKING([whether ${CXX} accepts -LANG:std])
- AC_LANG_SAVE
- AC_LANG_CPLUSPLUS
- AC_TRY_COMPILE([
- void foo() {}
- ],,[
- AC_MSG_RESULT(yes)
- CMAKE_ANSI_CXXFLAGS="-LANG:std"
- ],[
- AC_MSG_RESULT(no)
- ])
- AC_LANG_RESTORE
- CXXFLAGS="$CXXFLAGS_ORIG"
+ echo $ac_n "checking whether ${CXX} accepts -LANG:std""... $ac_c" 1>&6
+ echo 'void f(){}' > conftest.cc
+ if test -z "`${CXX} -LANG:std -c conftest.cc 2>&1`"; then
+ echo "$ac_t""yes" 1>&6
+ CMAKE_ANSI_CXXFLAGS="-LANG:std"
+ else
+ echo "$ac_t""no" 1>&6
+ fi
+ rm -f conftest*
;;
OSF1-*)