📄 configure
字号:
# archive program# In some cases, the AR definition in the MPICH configure is exported.# Define our own AR here, just in caseif test -n "$ARCMD" ; then AR="$ARCMD"else AR=arfi# Find a good install program. We prefer a C program (faster),# so one script is as good as another. But avoid the broken or# incompatible versions:# SysV /etc/install, /usr/sbin/install# SunOS /usr/etc/install# IRIX /sbin/install# AIX /bin/install# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag# AFS /usr/afsws/bin/install, which mishandles nonexistent args# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"# ./install, which can be erroneously created by make from ./install.sh.echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6echo "configure:1751: checking for a BSD compatible install" >&5if test -z "$INSTALL"; thenif eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_IFS"fi if test "${ac_cv_path_install+set}" = set; then INSTALL="$ac_cv_path_install" else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL="$ac_install_sh" fifiecho "$ac_t""$INSTALL" 1>&6# Use test -z because SunOS4 sh mishandles braces in ${var-val}.# It thinks the first close brace ends the variable substitution.test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'# Extract the first word of "ranlib", so it can be a program name with args.set dummy ranlib; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1806: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else case "$RANLIB" in /*) ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a dos path. ;; *) 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_path_RANLIB="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;;esacfiRANLIB="$ac_cv_path_RANLIB"if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6else echo "$ac_t""no" 1>&6fi# allow for a different linker for Fortran programsif test -z "$F77LINKER" ; then F77LINKER="$F77"fi## The following variables are used in mpif77.in and reflect the MPI# implementation that is in use.# if test "$pac_lib_mpi_is_building" = "yes" ; then # These values are EXPORTED by the MPICH configure # Alternately, if we are building a *new* Fortran library for a # pre-existing MPICH build, we need to get these variables from # the MPICH library configuration file. F77_LDFLAGS="$ROMIO_LFLAGS" BASE_FFLAGS="$ROMIO_TFFLAGS" # Shared library support (replace with libtool?) MPI2_OBJECTS='${MPI2_OBJECTS}' fiif test "$DEBUG_DUMP" = "yes" ; then rm -f config.env echo "Environment before push" >>config.env set >>config.env echo "End of env" >> config.envfiif test "X$pac_save_level" = "X" ; then pac_save_CC="$CC" pac_save_CXX="$CXX" pac_save_F77="$F77" pac_save_F90="$F90" pac_save_prog_cc_cross="$ac_cv_prog_cc_cross" pac_save_prog_f77_cross="$ac_cv_prog_f77_cross" pac_save_prog_cxx_cross="$ac_cv_prog_cxx_cross" pac_save_prog_f90_cross="$pac_cv_prog_f90_cross" if test "X$CPP" = "X" ; then echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:1891: checking how to run the C preprocessor" >&5# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; then CPP=fiif test -z "$CPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF#line 1906 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$" | 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* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF#line 1923 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$" | 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* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext <<EOF#line 1940 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$" | 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* CPP=/lib/cppfirm -f conftest*firm -f conftest*firm -f conftest* ac_cv_prog_CPP="$CPP"fi CPP="$ac_cv_prog_CPP"else ac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6 fi pac_save_CPP="$CPP" CC="${TESTCC:=$CC}" CXX="${TESTCXX:=$CXX}" F77="${TESTF77:=$F77}" F90="${TESTF90:=$F90}" if test -z "$TESTCPP" ; then if test -z "$TESTCPP"; then if eval "test \"`echo '$''{'pac_cv_prog_TESTCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else rm -f conftest.* cat > conftest.c <<EOF #include <assert.h> Syntax ErrorEOF # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. TESTCPP="${TESTCC-cc} -E" ac_try="$TESTCPP conftest.c >/dev/null 2>conftest.out" if { (eval echo configure:1992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ; then pac_cv_prog_TESTCPP="$TESTCPP" fi if test "X$pac_cv_prog_TESTCPP" = "X" ; then TESTCPP="${TESTCC-cc} -E -traditional-cpp" ac_try="$TESTCPP conftest.c >/dev/null 2>conftest.out" if { (eval echo configure:1998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ; then pac_cv_prog_TESTCPP="$TESTCPP" fi fi if test "X$pac_cv_prog_TESTCPP" = "X" ; then TESTCPP="${TESTCC-cc} -nologo -E" ac_try="$TESTCPP conftest.c >/dev/null 2>conftest.out" if { (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ; then pac_cv_prog_TESTCPP="$TESTCPP" fi fi if test "X$pac_cv_prog_TESTCPP" = "X" ; then # Extract the first word of "cpp", so it can be a program name with args.set dummy cpp; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:2013: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_TESTCPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else case "$TESTCPP" in /*) ac_cv_path_TESTCPP="$TESTCPP" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_TESTCPP="$TESTCPP" # Let the user override the test with a dos path. ;; *) 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_path_TESTCPP="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;;esacfiTESTCPP="$ac_cv_path_TESTCPP"if test -n "$TESTCPP"; then echo "$ac_t""$TESTCPP" 1>&6else echo "$ac_t""no" 1>&6fi fi rm -f conftest.* fielse pac_cv_prog_TESTCPP="$TESTCPP"fi fi CPP="${TESTCPP:=$CPP}" pac_save_level="0" # Recompute cross_compiling values and set for the current language # This is just: 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_cross if test "$pac_cross_compiling" = "yes" ; then ac_cv_prog_cc_cross=yes ac_cv_prog_cc_works=yes else cat > conftest.$ac_ext << EOF#line 2073 "configure"#include "confdefs.h"main(){return(0);}EOFif { (eval echo configure:2078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_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_cc_cross=no else ac_cv_prog_cc_cross=yes fielse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cc_works=nofirm -fr conftest* fi 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_cross # Ignore Fortran if we aren't using it. if test -n "$F77" ; then ac_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_cross if test "$pac_cross_compiling" = "yes" ; then ac_cv_prog_f77_cross=yes ac_cv_prog_f77_works=yes else cat > conftest.$ac_ext << EOF program conftest endEOFif { (eval echo configure:2118: \"$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* fi 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_cross fi # Ignore C++ if we aren't using it. if test -n "$CXX" ; then 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 cat > conftest.$ac_ext << EOF#line 2153 "configure"#include "confdefs.h"int main(){return(0);}EOFi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -