diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-08-22 15:38:06 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-08-22 15:38:06 (GMT) |
commit | b5cff36fb7b5e432c423771ef7e41e925eb9d94f (patch) | |
tree | bb3b0247bd5e388ddf39d4408af67c8f2b29ef04 /Templates/cxxconfigure.in | |
parent | 0401303263fd17805a349598216ade04b6e9a68a (diff) | |
download | CMake-b5cff36fb7b5e432c423771ef7e41e925eb9d94f.zip CMake-b5cff36fb7b5e432c423771ef7e41e925eb9d94f.tar.gz CMake-b5cff36fb7b5e432c423771ef7e41e925eb9d94f.tar.bz2 |
BUG: fix for OSF compiler to use ansi mode for streams
Diffstat (limited to 'Templates/cxxconfigure.in')
-rw-r--r-- | Templates/cxxconfigure.in | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Templates/cxxconfigure.in b/Templates/cxxconfigure.in index 9aafc86..e23d4da 100644 --- a/Templates/cxxconfigure.in +++ b/Templates/cxxconfigure.in @@ -74,7 +74,18 @@ case $system in echo "$ac_t""no" 1>&6 fi rm -f conftest* - ;; + ;; + OSF1-*) + echo $ac_n "checking whether ${CXX} accepts -std strict_ansi""... $ac_c" 1>&6 + echo 'void f(){}' > conftest.c + if test -z "`${CXX} -std strict_ansi -c conftest.c 2>&1`"; then + echo "$ac_t""yes" 1>&6 + CMAKE_ANSI_CXXFLAGS="-std strict_ansi" + else + echo "$ac_t""no" 1>&6 + fi + rm -f conftest* + ;; esac fi AC_SUBST(CMAKE_ANSI_CXXFLAGS) |