📄 configure
字号:
echo "$ac_t""Resetting cross compilation to yes" 1>&6 cross_compiling=yes ac_cv_prog_cc_cross=yes ac_cv_prog_f77_cross=yes ac_cv_prog_f90_cross=yes ac_cv_prog_cxx_cross=yesfiif test -z "$FLINKER" ; then FLINKER="$F77"fi# We need F90 to get the OFFSET_KIND and ADDRESS_KIND values.if test "$enable_f90" != "no" ; then if test -z "$F90" ; then for ac_prog in f95 f90 xlf90 pgf90 efcdo# 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:1320: 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:1353: 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:1360: \"$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:1369: \"$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:1376: checking whether the Fortran 90 compiler ($F90 $F90FLAGS $LDFLAGS) works" >&5# We cannot use _LANG_FORTRAN90 here because we will usually be executing this# test in the context of _PROG_F90, which is a require on _LANG_FORTRAN90.# Instead, we insert the necessary code from _LANG_FORTRAN90 hereac_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:1389: \"$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:1414: 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'# Check for problems with Intel efc compilercat > conftest.$ac_f90ext <<EOF program main endEOFpac_msg=`$F90 -o conftest $F90FLAGS $LDFLAGS conftest.$ac_f90ext $LIBS 2>&1 | grep 'bfd assertion fail'`if test -n "$pac_msg" ; then pac_msg=`$F90 -o conftest $F90FLAGS $LDFLAGS conftest.$ac_f90ext -i_dynamic $LIBS 2>&1 | grep 'bfd assertion fail'` if test -z "$pac_msg" ; then LDFLAGS="-i_dynamic" ; fi # There should really be f90linker flags rather than generic ldflags.fi if test -z "$F90" ; then enable_f90=no else if test -z "$F90LINKER" ; then F90LINKER="$F90" fi fi fitrueif 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:1451: 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 clock skew breaks make""... $ac_c" 1>&6echo "configure:1484: checking whether clock skew breaks make" >&5if eval "test \"`echo '$''{'pac_cv_prog_make_found_clock_skew'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else rm -f conftest*cat > conftest <<EOFALL: @-echo "success"EOF$MAKE -f conftest > conftest.out 2>&1if grep -i skew conftest >/dev/null 2>&1 ; then pac_cv_prog_make_found_clock_skew=yeselse pac_cv_prog_make_found_clock_skew=nofirm -f conftest*fiecho "$ac_t""$pac_cv_prog_make_found_clock_skew" 1>&6if test "$pac_cv_prog_make_found_clock_skew" = "yes" ; then echo "configure: warning: Clock skew found by make. The configure and build may fail.Consider building in a local instead of NFS filesystem." 1>&2fiecho $ac_n "checking whether make echos directory changes""... $ac_c" 1>&6echo "configure:1513: 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" echo "Unexpected output from make with program" >>config.log cat conftest >>config.log echo "str" >> config.log 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:1553: 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.pac_str=`$MAKE -f conftest1 2>&1`/bin/rm -f conftest conftest1if test "$pac_str" != "success" ; then pac_cv_prog_make_include="no"else pac_cv_prog_make_include="yes"fifiecho "$ac_t""$pac_cv_prog_make_include" 1>&6if test "$pac_cv_prog_make_include" = "no" ; then :else :fiecho $ac_n "checking whether make allows comments in actions""... $ac_c" 1>&6echo "configure:1586: checking whether make allows comments in actions" >&5if eval "test \"`echo '$''{'pac_cv_prog_make_allows_comments'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else /bin/rm -f conftestcat > conftest <<.SHELL=/bin/shALL: @# This is a valid comment! @echo "success".pac_str=`$MAKE -f conftest 2>&1`/bin/rm -f conftest if test "$pac_str" != "success" ; then pac_cv_prog_make_allows_comments="no"else pac_cv_prog_make_allows_comments="yes"fifiecho "$ac_t""$pac_cv_prog_make_allows_comments" 1>&6if test "$pac_cv_prog_make_allows_comments" = "no" ; then echo "configure: warning: Your make does not allow comments in target code.Using this make may cause problems when building programs.You should consider using gnumake instead." 1>&2 fiecho $ac_n "checking for virtual path format""... $ac_c" 1>&6echo "configure:1620: checking for virtual path format" >&5if eval "test \"`echo '$''{'pac_cv_prog_make_vpath'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else rm -rf conftest*mkdir conftestdircat >conftestdir/a.c <<EOFA sample fileEOFcat > conftest <<EOFall: a.oVPATH=.:conftestdir.c.o: @echo \$<EOFac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'`if test -n "$ac_out" ; then pac_cv_prog_make_vpath="VPATH"else rm -f conftest cat > conftest <<EOFall: a.o.PATH: . conftestdir.c.o: @echo \$<EOF ac_out=`$MAKE -f conftest 2>&1 | grep 'conftestdir/a.c'` if test -n "$ac_out" ; then pac_cv_prog_make_vpath=".PATH" else pac_cv_prog_make_vpath="neither VPATH nor .PATH works" fifirm -rf conftest*fiecho "$ac_t""$pac_cv_prog_make_vpath" 1>&6if test "$pac_cv_prog_make_vpath" = "VPATH" ; then VPATH='VPATH=.:${srcdir}'elif test "$pac_cv_prog_make_vpath" = ".PATH" ; then VPATH='.PATH: . ${srcdir}'fiecho $ac_n "checking whether make sets CFLAGS""... $ac_c" 1>&6echo "configure:1669: checking whether make sets CFLAGS" >&5if eval "test \"`echo '$''{'pac_cv_prog_make_set_cflags'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else /bin/rm -f conftestcat > conftest <<EOFSHELL=/bin/shALL: @echo X\${CFLAGS}XEOFpac_str=`$MAKE -f conftest 2>&1`/bin/rm -f conftest if test "$pac_str" = "XX" ; then pac_cv_prog_make_set_cflags="no"else pac_cv_prog_make_set_cflags="yes"fifiecho "$ac_t""$pac_cv_prog_make_set_cflags" 1>&6if test "$pac_cv_prog_make_set_cflags" = "no" ; then :else SET_CFLAGS='CFLAGS='fiif test "$pac_cv_prog_make_echos_dir" = "no" ; then echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6echo "configure:1700: checking whether ${MAKE-make} sets \${MAKE}" >&5set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftestmake <<\EOFall: @echo 'ac_maketemp="${MAKE}"'EOF# GNU make sometimes prints "make[1]: Entering...", which would confuse us.eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`if test -n "$ac_maketemp"; then eval ac_cv_prog_make_${ac_make}_set=yeselse eval ac_cv_prog_make_${ac_make}_set=nofirm -f conftestmakefiif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then echo "$ac_t""yes" 1>&6 SET_MAKE=else echo "$ac_t""no" 1>&6 SET_MAKE="MAKE=${MAKE-make}"fielse SET_MAKE="MAKE=${MAKE-make}"fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -