?? configure
字號:
fi done IFS="$ac_save_ifs"fifiCXX="$ac_cv_prog_CXX"if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6else echo "$ac_t""no" 1>&6fitest -n "$CXX" && breakdonetest -n "$CXX" || CXX="gcc"echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:1334: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5ac_ext=C# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CXXCPP $CPPFLAGS'ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cxx_crosscat > conftest.$ac_ext << EOF#line 1345 "configure"#include "confdefs.h"int main(){return(0);}EOFif { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cxx_cross=no else ac_cv_prog_cxx_cross=yes fielse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cxx_works=nofirm -fr conftest*ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossecho "$ac_t""$ac_cv_prog_cxx_works" 1>&6if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }fiecho $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6echo "configure:1376: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6cross_compiling=$ac_cv_prog_cxx_crossecho $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6echo "configure:1381: checking whether we are using GNU C++" >&5if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.C <<EOF#ifdef __GNUC__ yes;#endifEOFif { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yeselse ac_cv_prog_gxx=nofifiecho "$ac_t""$ac_cv_prog_gxx" 1>&6if test $ac_cv_prog_gxx = yes; then GXX=yeselse GXX=fiac_test_CXXFLAGS="${CXXFLAGS+set}"ac_save_CXXFLAGS="$CXXFLAGS"CXXFLAGS=echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6echo "configure:1409: checking whether ${CXX-g++} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'void f(){}' > conftest.ccif test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then ac_cv_prog_cxx_g=yeselse ac_cv_prog_cxx_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_cxx_g" 1>&6if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS="$ac_save_CXXFLAGS"elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fielse if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fifi if test -z "$F90" ; then for ac_prog in f95 f90 xlf90 pgf90do# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1447: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_F90'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$F90"; then ac_cv_prog_F90="$F90" # Let the user override the test.else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_F90="$ac_prog" break fi done IFS="$ac_save_ifs"fifiF90="$ac_cv_prog_F90"if test -n "$F90"; then echo "$ac_t""$F90" 1>&6else echo "$ac_t""no" 1>&6fitest -n "$F90" && breakdone test -z "$F90" && echo "configure: warning: no acceptable Fortran 90 compiler found in \$PATH" 1>&2fiif test -n "$F90" ; then echo $ac_n "checking for extension for Fortran 90 programs""... $ac_c" 1>&6echo "configure:1480: checking for extension for Fortran 90 programs" >&5pac_cv_f90_ext="f90"cat > conftest.$pac_cv_f90_ext <<EOF program conftest endEOFac_compile='${F90-f90} -c $F90FLAGS conftest.$pac_cv_f90_ext 1>&5'if { (eval echo configure:1487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then echo "$ac_t""f90" 1>&6else rm -f conftest* pac_cv_f90_ext="f" cat > conftest.$pac_cv_f90_ext <<EOF program conftest endEOF if { (eval echo configure:1496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then echo "$ac_t""f" 1>&6 else echo "$ac_t""unknown!" 1>&6 fifiecho $ac_n "checking whether the Fortran 90 compiler ($F90 $F90FLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:1503: checking whether the Fortran 90 compiler ($F90 $F90FLAGS $LDFLAGS) works" >&5ac_ext=$pac_cv_f90_extac_compile='${F90-f90} -c $F90FLAGS conftest.$ac_ext 1>&5'ac_link='${F90-f90} -o conftest${ac_exeext} $F90FLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$pac_cv_prog_f90_crosscat >conftest.$ac_ext <<EOF program conftest endEOFif { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeect} ; then pac_cv_prog_f90_works="yes" if (./conftest; exit) 2>/dev/null ; then pac_cv_prog_f90_cross="no" else pac_cv_prog_f90_cross="yes" fielse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 pac_cv_prog_f90_works="no"firm -f conftest*ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossecho "$ac_t""$pac_cv_prog_f90_works" 1>&6if test $pac_cv_prog_f90_works = no; then echo "configure: warning: installation or configuration problem: Fortran 90 compiler cannot create executables." 1>&2fiecho $ac_n "checking whether the Fortran 90 compiler ($F90 $F90FLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6echo "configure:1540: checking whether the Fortran 90 compiler ($F90 $F90FLAGS $LDFLAGS) is a cross-compiler" >&5echo "$ac_t""$pac_cv_prog_f90_cross" 1>&6cross_compiling=$pac_cv_prog_f90_crossfiac_f90ext=$pac_cv_f90_extac_f90compile='${F90-f90} -c $F90FLAGS conftest.$ac_f90ext 1>&5'ac_f90link='${F90-f90} -o conftest${ac_exeext} $F90FLAGS $LDFLAGS conftest.$ac_f90ext $LIBS 1>&5' # Set defaults for the TEST versions TESTCC=${CC:=cc}; TESTF77=${F77:=f77}; TESTCXX=${CXX:=CC}; TESTF90=${F90:=f90} ;;esacecho $ac_n "checking for C++ template repository directory name""... $ac_c" 1>&6echo "configure:1558: checking for C++ template repository directory name" >&5if eval "test \"`echo '$''{'pac_cv_cxx_template_dir'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else mkdir conftest_dircd conftest_dirac_ext=C# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CXXCPP $CPPFLAGS'ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cxx_crosscat > conftest_1.h <<EOFtemplate <class T>class foo {public: foo( T in ) : data( in ) { in.member(1); }; void member( int i );private: T data;};class bar {public: bar( int i ) { data = i; }; void member( int i ) { data = data + i; };private: int data;};EOFcat > conftest_1.${ac_ext} <<EOF#include "conftest_1.h"void my_function( void ){ foo<bar> v1(6); foo< foo<bar> > v2(v1);}EOFcat > conftest.${ac_ext} <<EOF#include "conftest_1.h"void my_function( void );template <class T>void foo<T>::member(int i){ i++;}int main( int argc, char *argv ){ foo<bar> v1(6); foo< foo<bar> > v2(v1); my_function(); return 0;}EOF#ac_compile_special='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest_1.$ac_ext 1>&5'if { (eval echo configure:1619: \"$ac_compile_special\") 1>&5; (eval $ac_compile_special) 2>&5; } ; then if { (eval echo configure:1620: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } ; then # Look for a new directory for file in `ls` ; do if test -d "$file" -a "$file" != "." -a "$file" != ".." ; then pac_cv_cxx_template_dir="$pac_cv_cxx_template_dir $file" fi done pac_cv_cxx_template_dir_name="$pac_cv_cxx_template_dir" if test -z "$pac_cv_cxx_template_dir" ; then pac_cv_cxx_template_dir="could not determine" fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 pac_cv_cxx_template_dir="could not determine" fielse echo "configure: failed program was:" >&5 cat conftest_1.$ac_ext >&5 pac_cv_cxx_template_dir="templates not supported"ficd ..#rm -rf conftest_dirac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossfiecho "$ac_t""$pac_cv_cxx_template_dir" 1>&6CXX_TEMPLATE_DIR="$pac_cv_cxx_template_dir_name"MPIRUN=mpirunNP_ARG="-np "trueif test "X$MAKE" = "X" ; then for ac_prog in make gnumake nmake pmake smakedo# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1671: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_MAKE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$MAKE"; then ac_cv_prog_MAKE="$MAKE" # Let the user override the test.else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_MAKE="$ac_prog" break fi done IFS="$ac_save_ifs"fifiMAKE="$ac_cv_prog_MAKE"if test -n "$MAKE"; then echo "$ac_t""$MAKE" 1>&6else echo "$ac_t""no" 1>&6fitest -n "$MAKE" && breakdonefiecho $ac_n "checking whether make echos directory changes""... $ac_c" 1>&6echo "configure:1704: checking whether make echos directory changes" >&5if eval "test \"`echo '$''{'pac_cv_prog_make_echos_dir'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else /bin/rm -f conftestcat > conftest <<.SHELL=/bin/shALL: @(dir=`pwd` ; cd .. ; \$(MAKE) -f \$\$dir/conftest SUB)SUB: @echo "success".str=`$MAKE -f conftest 2>&1`if test "$str" != "success" ; then str=`$MAKE --no-print-directory -f conftest 2>&1` if test "$str" = "success" ; then pac_cv_prog_make_echos_dir="yes using --no-print-directory" else pac_cv_prog_make_echos_dir="no" fielse pac_cv_prog_make_echos_dir="no"fi/bin/rm -f confteststr=""fiecho "$ac_t""$pac_cv_prog_make_echos_dir" 1>&6if test "$pac_cv_prog_make_echos_dir" = "yes using --no-print-directory" ; then MAKE="$MAKE --no-print-directory"fiecho $ac_n "checking whether make supports include""... $ac_c" 1>&6echo "configure:1741: checking whether make supports include" >&5if eval "test \"`echo '$''{'pac_cv_prog_make_include'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else /bin/rm -f conftestcat > conftest <<.ALL: @echo "success".cat > conftest1 <<.include conftest
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -