ENH: clean up sgi build and use non-broken autoconf

This commit is contained in:
Bill Hoffman 2001-08-27 14:35:34 -04:00
parent 3b5ce4b88a
commit 8d80a9055e
3 changed files with 12 additions and 7 deletions

View File

@ -3,7 +3,7 @@ VPATH = @srcdir@
CMAKE_CONFIG_DIR = @CMAKE_CONFIG_DIR@ CMAKE_CONFIG_DIR = @CMAKE_CONFIG_DIR@
CXX = @CXX@ CXX = @CXX@
CXXFLAGS = @CMAKE_ANSI_CFLAGS@ -DCMAKE_ROOT_DIR='"@CMAKE_ROOT_DIR@"' @CXXFLAGS@ -DCMAKE_HAS_AUTOCONF -I${CMAKE_CONFIG_DIR}/Source CXXFLAGS = @CMAKE_ANSI_CXXFLAGS@ -DCMAKE_ROOT_DIR='"@CMAKE_ROOT_DIR@"' @CXXFLAGS@ -DCMAKE_HAS_AUTOCONF -I${CMAKE_CONFIG_DIR}/Source
.SUFFIXES: .cxx .java .class .SUFFIXES: .cxx .java .class

13
configure vendored
View File

@ -926,6 +926,7 @@ else
fi fi
CMAKE_ANSI_CFLAGS="" CMAKE_ANSI_CFLAGS=""
CMAKE_ANSI_CXXFLAGS=""
# on hp use -Aa for ansi # on hp use -Aa for ansi
if test $ac_cv_prog_gxx = no; then if test $ac_cv_prog_gxx = no; then
case $system in case $system in
@ -945,7 +946,7 @@ case $system in
echo 'void f(){}' > conftest.c echo 'void f(){}' > conftest.c
if test -z "`${CC} -LANG:std -c conftest.c 2>&1`"; then if test -z "`${CC} -LANG:std -c conftest.c 2>&1`"; then
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
CMAKE_ANSI_CFLAGS="-LANG:std" CMAKE_ANSI_CXXFLAGS="-LANG:std"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
fi fi
@ -955,6 +956,7 @@ esac
fi fi
# if we are not running g++ then we might need some other flags # if we are not running g++ then we might need some other flags
# to get the templates compiled correctly # to get the templates compiled correctly
CMAKE_TEMPLATE_FLAGS="" CMAKE_TEMPLATE_FLAGS=""
@ -983,7 +985,7 @@ fi
# ansi stream files (without the .h) # ansi stream files (without the .h)
if test $ac_cv_prog_gxx = no; then if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi standard C++ stream headers ""... $ac_c" 1>&6 echo $ac_n "checking ansi standard C++ stream headers ""... $ac_c" 1>&6
echo "configure:987: checking ansi standard C++ stream headers " >&5 echo "configure:989: checking ansi standard C++ stream headers " >&5
rm -rf conftest.* rm -rf conftest.*
cat > conftest.cc <<! cat > conftest.cc <<!
#include <iostream> #include <iostream>
@ -1002,7 +1004,7 @@ fi
# check to see if stl is in the std namespace # check to see if stl is in the std namespace
if test $ac_cv_prog_gxx = no; then if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi standard namespace support ""... $ac_c" 1>&6 echo $ac_n "checking ansi standard namespace support ""... $ac_c" 1>&6
echo "configure:1006: checking ansi standard namespace support " >&5 echo "configure:1008: checking ansi standard namespace support " >&5
rm -rf conftest.* rm -rf conftest.*
cat > conftest.cc <<! cat > conftest.cc <<!
#include <list> #include <list>
@ -1022,7 +1024,7 @@ fi
# check to see if for scoping is supported # check to see if for scoping is supported
if test $ac_cv_prog_gxx = no; then if test $ac_cv_prog_gxx = no; then
echo $ac_n "checking ansi for scope support ""... $ac_c" 1>&6 echo $ac_n "checking ansi for scope support ""... $ac_c" 1>&6
echo "configure:1026: checking ansi for scope support " >&5 echo "configure:1028: checking ansi for scope support " >&5
rm -rf conftest.* rm -rf conftest.*
cat > conftest.cc <<! cat > conftest.cc <<!
void foo() { for(int i;;); for(int i;;); } void foo() { for(int i;;); for(int i;;); }
@ -1044,7 +1046,7 @@ do
# Extract the first word of "$ac_prog", so it can be a program name with args. # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2 set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
echo "configure:1048: checking for $ac_word" >&5 echo "configure:1050: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_path_RUNMAKE'+set}'`\" = set"; then if eval "test \"`echo '$''{'ac_cv_path_RUNMAKE'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6 echo $ac_n "(cached) $ac_c" 1>&6
else else
@ -1217,6 +1219,7 @@ s%@CC@%$CC%g
s%@CXX@%$CXX%g s%@CXX@%$CXX%g
s%@CMAKE_ROOT_DIR@%$CMAKE_ROOT_DIR%g s%@CMAKE_ROOT_DIR@%$CMAKE_ROOT_DIR%g
s%@CMAKE_ANSI_CFLAGS@%$CMAKE_ANSI_CFLAGS%g s%@CMAKE_ANSI_CFLAGS@%$CMAKE_ANSI_CFLAGS%g
s%@CMAKE_ANSI_CXXFLAGS@%$CMAKE_ANSI_CXXFLAGS%g
s%@CMAKE_TEMPLATE_FLAGS@%$CMAKE_TEMPLATE_FLAGS%g s%@CMAKE_TEMPLATE_FLAGS@%$CMAKE_TEMPLATE_FLAGS%g
s%@RUNMAKE@%$RUNMAKE%g s%@RUNMAKE@%$RUNMAKE%g

View File

@ -41,6 +41,7 @@ else
fi fi
CMAKE_ANSI_CFLAGS="" CMAKE_ANSI_CFLAGS=""
CMAKE_ANSI_CXXFLAGS=""
# on hp use -Aa for ansi # on hp use -Aa for ansi
if test $ac_cv_prog_gxx = no; then if test $ac_cv_prog_gxx = no; then
case $system in case $system in
@ -60,7 +61,7 @@ case $system in
echo 'void f(){}' > conftest.c echo 'void f(){}' > conftest.c
if test -z "`${CC} -LANG:std -c conftest.c 2>&1`"; then if test -z "`${CC} -LANG:std -c conftest.c 2>&1`"; then
echo "$ac_t""yes" 1>&6 echo "$ac_t""yes" 1>&6
CMAKE_ANSI_CFLAGS="-LANG:std" CMAKE_ANSI_CXXFLAGS="-LANG:std"
else else
echo "$ac_t""no" 1>&6 echo "$ac_t""no" 1>&6
fi fi
@ -69,6 +70,7 @@ case $system in
esac esac
fi fi
AC_SUBST(CMAKE_ANSI_CFLAGS) AC_SUBST(CMAKE_ANSI_CFLAGS)
AC_SUBST(CMAKE_ANSI_CXXFLAGS)
# if we are not running g++ then we might need some other flags # if we are not running g++ then we might need some other flags
# to get the templates compiled correctly # to get the templates compiled correctly