?? configure
字號:
echo "$ac_t""$ac_cv_prog_gcc" 1>&6if test $ac_cv_prog_gcc = yes; then GCC=yeselse GCC=fiac_test_CFLAGS="${CFLAGS+set}"ac_save_CFLAGS="$CFLAGS"CFLAGS=echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6echo "configure:1671: checking whether ${CC-cc} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'void f(){}' > conftest.cif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yeselse ac_cv_prog_cc_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_cc_g" 1>&6if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS"elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fielse if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fifiif test "$compiler" = "msvcpp"; then CPPFLAGS="/TP /ML /GX /YX /FD $CXX_PICKY_FLAGS /Fo\$*.o"elif test "$compiler" = "mwerks"; then CPPFLAGS="$CXX_PICKY_FLAGS -o \$*.o"fiecho $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6echo "configure:1710: checking how to run the C++ preprocessor" >&5if test -z "$CXXCPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_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_cross CXXCPP="${CXX-g++} -E" cat > conftest.$ac_ext <<EOF#line 1723 "configure"#include "confdefs.h"#include <stdlib.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`if test -z "$ac_err"; then :else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CXXCPP=/lib/cppfirm -f conftest* ac_cv_prog_CXXCPP="$CXXCPP"ac_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_crossfifiCXXCPP="$ac_cv_prog_CXXCPP"echo "$ac_t""$CXXCPP" 1>&6cat > conftest.$ac_ext <<EOF#line 1753 "configure"#include "confdefs.h"#include <math.h>EOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "copysign" >/dev/null 2>&1; then rm -rf conftest* cat >> confdefs.h <<\EOF#define HAVE_COPYSIGN 1EOF echo $ac_n "checking for copysign""... $ac_c" 1>&6echo "configure:1765: checking for copysign" >&5 echo "$ac_t""yes" 1>&6 else rm -rf conftest* echo $ac_n "checking for copysign""... $ac_c" 1>&6echo "configure:1770: checking for copysign" >&5 echo "$ac_t""no" 1>&6 firm -f conftest*echo $ac_n "checking for std::abs""... $ac_c" 1>&6echo "configure:1779: checking for std::abs" >&5cat > conftest.cpp <<EOF#line 1782 "configure"#include <cmath>int main() { double d = std::abs(-3.0); ; return 0; }EOFac_mtl_compile='${CXX} -c $CFLAGS conftest.cpp 1>&5'if { (eval echo configure:1789: \"$ac_mtl_compile\") 1>&5; (eval $ac_mtl_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF#define HAVE_STD_ABS 1EOF echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.cpp >&5 rm -rf conftest* echo "$ac_t""no" 1>&6 firm -f conftest*echo $ac_n "checking for <limits> header""... $ac_c" 1>&6echo "configure:1809: checking for <limits> header" >&5cat > conftest.cpp <<EOF#line 1812 "configure"#include <limits>int main() { double d = std::numeric_limits<double>::max(); ; return 0; }EOFac_mtl_compile='${CXX} -c $CFLAGS conftest.cpp 1>&5'if { (eval echo configure:1819: \"$ac_mtl_compile\") 1>&5; (eval $ac_mtl_compile) 2>&5; }; then rm -rf conftest* has_limits=yes cat >> confdefs.h <<\EOF#define MTL_CMPLR_HAS_LIMITS 1EOF echo "$ac_t""yes" 1>&6 else echo "configure: failed program was:" >&5 cat conftest.cpp >&5 rm -rf conftest* has_limits=no echo "$ac_t""no" 1>&6 firm -f conftest*echo $ac_n "checking whether to use MTL exceptions""... $ac_c" 1>&6echo "configure:1845: checking whether to use MTL exceptions" >&5# Check whether --enable-exceptions or --disable-exceptions was given.if test "${enable_exceptions+set}" = set; then enableval="$enable_exceptions" MTL_EXCEPTIONS=1 echo "$ac_t""yes" 1>&6else MTL_EXCEPTIONS=0 echo "$ac_t""no" 1>&6 fiecho $ac_n "checking whether to use BLAIS performance optimizations""... $ac_c" 1>&6echo "configure:1858: checking whether to use BLAIS performance optimizations" >&5# Check whether --enable-blais or --disable-blais was given.if test "${enable_blais+set}" = set; then enableval="$enable_blais" if test "GXX" != "yes"; then cat >> confdefs.h <<\EOF#define USE_BLAIS 1EOF echo "$ac_t""yes" 1>&6 fi else echo "$ac_t""no" 1>&6 fiecho $ac_n "checking whether to use interface to matlab files""... $ac_c" 1>&6echo "configure:1878: checking whether to use interface to matlab files" >&5# Check whether --with-matlab or --without-matlab was given.if test "${with_matlab+set}" = set; then withval="$with_matlab" HAVE_MATLAB=1 WITHDIR=$withval echo "$ac_t""yes" 1>&6else HAVE_MATLAB=0 echo "$ac_t""no" 1>&6fiif test "$HAVE_MATLAB" = "1"; then matlab_dir="-I$WITHDIR"else matlab_dir=""fiif test "$HAVE_MATLAB" = "1"; then matlab_lib="-lmat -lmx"else matlab_lib=""fiecho $ac_n "checking whether to use interface to LAPACK""... $ac_c" 1>&6echo "configure:1903: checking whether to use interface to LAPACK" >&5# Check whether --with-lapack or --without-lapack was given.if test "${with_lapack+set}" = set; then withval="$with_lapack" HAVE_LAPACK=1 WITHLIBS=$withval echo "$ac_t""yes" 1>&6 else HAVE_LAPACK=0 echo "$ac_t""no" 1>&6 fiLAPACK_EXAMPLES=""if test "$HAVE_LAPACK" = "1"; then LAPACKLIB="$WITHLIBS" if test $LAPACKLIB = yes; then LAPACKLIB=-llapack fi LAPACK_EXAMPLES="lapack_examples" case "$target" in *solaris*) CXXFLAGS_save=$CXXFLAGS CXXFLAGS="$CXXFLAGS $BACKEND -xlic_lib=sunperf" sunperf_blas=0 echo $ac_n "checking Sun performance library""... $ac_c" 1>&6echo "configure:1932: checking Sun performance library" >&5 for ac_func in daxpy dgetrfdoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1936: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1941 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. */#ifdef __cplusplusextern "C"#endif/* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char $ac_func();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF echo "$ac_t""Using Sun Performance Library BLAS and LAPACK" 1>&6 CXXFLAGS="$CXXFLAGS -DMTL_USE_SUNPERF -DMTL_FORTRAN_SYMBOLS_WITH_TRAILING_UNDERSCORES" sunperf_blas=1 else echo "$ac_t""no" 1>&6CXXFLAGS=$CXXFLAGS_save fidone esacif test "$sunperf_blas" != "1"; thenif test -z "$F77"; then for ac_prog in g77 f77 f2cdo# 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:2005: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_F77'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$F77"; then ac_cv_prog_F77="$F77" # 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_F77="$ac_prog" break fi done IFS="$ac_save_ifs"fifiF77="$ac_cv_prog_F77"if test -n "$F77"; then echo "$ac_t""$F77" 1>&6else echo "$ac_t""no" 1>&6fitest -n "$F77" && breakdone test -z "$F77" && echo "configure: warning: no acceptable Fortran 77 compiler found in \$PATH" 1>&2fiecho $ac_n "checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:2038: checking whether the Fortran 77 compiler ($F77 $FFLAGS $LDFLAGS) works" >&5ac_ext=fac_compile='${F77-f77} -c $FFLAGS conftest.$ac_ext 1>&5'ac_link='${F77-f77} -o conftest${ac_exeext} $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_f77_crosscat > conftest.$ac_ext << EOF program conftest endEOFif { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_f77_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_f77_cross=no else ac_cv_prog_f77_cross=yes fielse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_f77_works=nofirm -fr conftest*ac_ext=C# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CXXCPP $CPPFLAGS'ac_compile='${CX
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -