📄 configure
字号:
MPIR_TRIAL=`pwd` fifiif test -z "${MPIR_TRIAL}" ; then MPIR_TRIAL=`pwd | sed -e 's%/tmp_mnt/%/%g'` if test ! -d ${MPIR_TRIAL} ; then print_error "Warning: your default path uses the automounter; this may" print_error "cause some problems if you use other NFS-connected systems." MPIR_TRIAL=`pwd` fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""${MPIR_TRIAL}"elseecho "$ac_t""${MPIR_TRIAL}" 1>&1fifiMPIR_HOME=$MPIR_TRIALif test "$NOMPE" = 0 ; then MPE_DIR=$MPIR_HOME/mpe HASMPE="yes"else HASMPE="no"fihasMPE=$HASMPE### Check that an ARCH was set# If it wasn't set, try to guess using "bin/tarch"#if test -z "$ARCH" ; then # First check for some special cases if test -n "$device_t3d" ; then ARCH=cray_t3d arch_cray_t3d=1 fifiif test -z "$ARCH" -a -x "$srcdir/bin/tarch" ; then if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking for architecture""... $ac_c"elseecho $ac_n "checking for architecture""... $ac_c" 1>&1fi ARCH=`$srcdir/bin/tarch | sed s/-/_/g` if test -z "$ARCH" ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""Unknown!"elseecho "$ac_t""Unknown!" 1>&1fi print_error "Error: Couldn't guess target architecture, you must" print_error " set an architecture type with -arch=<value>" exit 1 fi eval "arch_$ARCH=1" if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""$ARCH"elseecho "$ac_t""$ARCH" 1>&1fifiif test -n "$arch_ppc_vxworks" ; then # VXWORKS (Thanks to Gary Cliff <gary.cliff@cdott.com>) # 2/27/01 echo PPC arch_IRIX=1 ARCH=IRIXfiif test -n "$arch_sgi" ; then arch_IRIX=1 ARCH=IRIXfi# check whether --arch=tflops was given and set defaultsif test -n "$arch_tflops"; then if test -z "$USERCC" ; then CC="cicc" USERCC=1 CFLAGS="$CFLAGS -I. -D__COUGAR__ -D__COUGAR -DCORE_FILES -DP_SCHED -DGDB -DEND_OF_USER_MEM=0xc0100000 -DHAVE_LONG_DOUBLE" OPTFLAGS="-Knoieee -Mvect -O3" fi if test -z "$USERCPP" ; then CPP_COMPILER="ciCC" ; USERCPP=1 ; fi if test -z "$USERF77" ; then FC="cif77" ; USERF77=1 ; fi if test -z "$USERF90" ; then F90="cif90" ; USERF90=1 ; fi if test -z "$DEVICE" ; then DEVICE="ptls" ; fi if test -z "$FILE_SYSTEM" ; then FILE_SYSTEM="pfs+ufs+nfs" ; fi DEFAULT_MACHINE="tflops" CROSS_STRUCT_ALIGNMENT="basic" CROSS_HAS_LONG_LONG=1 CROSS_HAS_LONG_DOUBLE="yes" # See mpireq -show 5556 CROSS_SIZEOF_CHAR=${CROSS_SIZEOF_CHAR:-1} CROSS_SIZEOF_SHORT=${CROSS_SIZEOF_SHORT:-2} CROSS_SIZEOF_INT=${CROSS_SIZEOF_INT:-4} CROSS_SIZEOF_LONG=${CROSS_SIZEOF_LONG:-4} CROSS_SIZEOF_LONG_LONG=${CROSS_SIZEOF_LONG_LONG:-8} CROSS_SIZEOF_FLOAT=${CROSS_SIZEOF_FLOAT:-4} CROSS_SIZEOF_DOUBLE=${CROSS_SIZEOF_DOUBLE:-8} CROSS_SIZEOF_LONG_DOUBLE=${CROSS_SIZEOF_LONG_DOUBLE:-8} CROSS_SIZEOF_VOID_P=${CROSS_SIZEOF_VOID_P:-4} CROSS_OFFSET_KIND=${CROSS_OFFSET_KIND:-4} CROSS_ADDRESS_KIND=${CROSS_ADDRESS_KIND:-4} CROSS_F77_SIZEOF_INTEGER=${CROSS_F77_SIZEOF_INTEGER:-4} CROSS_F77_SIZEOF_REAL=${CROSS_F77_SIZEOF_REAL:-4} CROSS_F77_SIZEOF_DOUBLE_PRECISION=${CROSS_F77_SIZEOF_DOUBLE_PRECISION:-8} CROSS_BIGENDIAN=${CROSS_BIGENDIAN:-false} FORT_INT8=1 ROMIO_ARGS="-intsize=$CROSS_SIZEOF_INT -ptrsize=$CROSS_SIZEOF_VOID_P -longsize=$CROSS_SIZEOF_LONG -longlongsize=$CROSS_SIZEOF_LONG_LONG"fi## When specifying a specific IRIX architecture, select the appropriate # compiler (and we mean compiler; these aren't flags)if test -n "$arch_IRIX64" ; then arch_IRIX=1 if test -z "$USERCC" ; then CC="cc -64" ; USERCC=1 ; fi if test -z "$USERCPP" ; then CPP_COMPILER="CC -64" ; USERCPP=1 ; fi if test -z "$USERF77" ; then FC="f77 -64" ; USERF77=1 ; fi if test -z "$USERF90" ; then F90="f90 -64" ; USERF90=1 ; fifiif test -n "$arch_IRIX32" ; then arch_IRIX=1 if test -z "$USERCC" ; then CC="cc -32" ; USERCC=1 ; fi if test -z "$USERCPP" ; then CPP_COMPILER="CC -32" ; USERCPP=1 ; fi if test -z "$USERF77" ; then FC="f77 -32" ; USERF77=1 ; fi if test -z "$USERF90" ; then F90="f90 -32" ; USERF90=1 ; fifiif test -n "$arch_IRIXN32" ; then arch_IRIX=1 if test -z "$USERCC" ; then CC="cc -n32" ; USERCC=1 ; fi if test -z "$USERCPP" ; then CPP_COMPILER="CC -n32" ; USERCPP=1 ; fi if test -z "$USERF77" ; then FC="f77 -n32" ; USERF77=1 ; fi if test -z "$USERF90" ; then F90="f90 -n32" ; USERF90=1 ; fifi# Handle solaris on Intel platforms, needed to get heterogeneity right in p4if test -n "$arch_solaris86" ; then arch_solaris=1 ARCH=solaris86fiif test -n "$arch_sgi5" ; then arch_IRIX5=1 ARCH=IRIXfiif test -n "$arch_cray" ; then arch_CRAY=1 ARCH=CRAYfi# check whether --comm=pvm3 was givenif test -n "$comm_pvm3"; then echo "PVM 3 no longer supported." echo "Note that MPICH was NEVER implemented on top of PVM; PVM was merely" echo "one of the many devices supported from the very beginning." exit 1fi## Check that a DEVICE was set# If it wasn't set, try to guess using "bin/tdevice"#if test -z "$DEVICE" -a -x "$srcdir/bin/tdevice" ; then if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking device""... $ac_c"elseecho $ac_n "checking device""... $ac_c" 1>&1fi DEVICE=`$srcdir/bin/tdevice $ARCH` if test ! -n "$DEVICE" ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""Unknown!"elseecho "$ac_t""Unknown!" 1>&1fi print_error "Error: Couldn't guess device, you must" print_error " set a device with -device=<value>" exit 1 fi eval "device_$DEVICE=1" if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""$DEVICE"elseecho "$ac_t""$DEVICE" 1>&1fifi## Check for a VALID deviceif test ! -d "$srcdir/mpid/$DEVICE" ; then print_error "$DEVICE is not a valid device!" exit 1fi##F77="${FC:-f77}"if test -n "$FC" ; then USERF77=1fi# CLINKER and FLINKER are set by PAC _GET_CC and F77## Eventually we'll use install (need install-sh)# Make sure to not get the incompatible SysV /etc/install and# /usr/sbin/install, which might be in PATH before a BSD-like install,# or the SunOS /usr/etc/install directory, or the AIX /bin/install,# or the AFS install, which mishandles nonexistent args, or# /usr/ucb/install on SVR4, which tries to use the nonexistent group# `staff'. On most BSDish systems install is in /usr/bin, not /usr/ucb# anyway. Sigh.if test "z${INSTALL}" = "z" ; then echo checking for install IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:" for dir in $PATH; do test -z "$dir" && dir=. case $dir in /etc|/usr/sbin|/usr/etc|/usr/afsws/bin|/usr/ucb) ;; *) if test -f $dir/installbsd; then INSTALL="$dir/installbsd -c" # OSF1 INSTALL_PROGRAM='$(INSTALL)' INSTALL_DATA='$(INSTALL) -m 644' break fi if test -f $dir/install; then if grep dspmsg $dir/install >/dev/null 2>&1; then : # AIX else INSTALL="$dir/install -c" INSTALL_PROGRAM='$(INSTALL)' INSTALL_DATA='$(INSTALL) -m 644' break fi fi ;; esac done IFS="$saveifs"fiINSTALL=${INSTALL-cp}test -n "$verbose" && echo " setting INSTALL to $INSTALL"INSTALL_PROGRAM=${INSTALL_PROGRAM-'$(INSTALL)'}test -n "$verbose" && echo " setting INSTALL_PROGRAM to $INSTALL_PROGRAM"INSTALL_DATA=${INSTALL_DATA-'$(INSTALL)'}test -n "$verbose" && echo " setting INSTALL_DATA to $INSTALL_DATA"## Using this autoconf macro for ranlib doesn't handle the problem # of 'helpful' ranlib's that issue error messages (!). Once# we've identified the proper compiler etc, we'll try this # ranlib below; if it fails, we'll replace it with ':'#if test -z "$RANLIB" ; then if test -z "$RANLIB"; then # Extract the first word of `ranlib', so it can be a program name with args. set dummy ranlib; word=$2 echo checking for $word IFS="${IFS= }"; saveifs="$IFS"; IFS="${IFS}:" for dir in $PATH; do test -z "$dir" && dir=. if test -f $dir/$word; then RANLIB="ranlib" break fi done IFS="$saveifs"fitest -z "$RANLIB" && RANLIB=":"test -n "$RANLIB" && test -n "$verbose" && echo " setting RANLIB to $RANLIB"fi## Problem: Using the ar_local option can cause low performance; not using it# can cause failures. Should we try to get disk space, and pick default # based on a guess about the available space?AR="ar cr$AR_LOCAL"ARCMD="ar"# CPRP is the version of cp that accepts -r and -p arguments.# See CRAY belowCPRP="cp"INCLUDE_PATH=""LIB_LIST=""# Fixup for makeif test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c= ac_t= fielse ac_n= ac_c='\c' ac_t=fiac_echo_test=`echo foo 1>&1`if test -z "$ac_echo_test" ; then print_error "Your sh shell does not handle the output redirection" print_error "1>&1 correctly. Configure will work around this problem," print_error "but you should report the problem to your vendor."fifiif test -z "$ac_echo_test" -a 1 = 1 ; thenecho $ac_n "checking gnumake""... $ac_c"elseecho $ac_n "checking gnumake""... $ac_c" 1>&1fi/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 MAKE="$MAKE --no-print-directory" if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes using --no-print-directory"elseecho "$ac_t""yes using --no-print-directory" 1>&1fi else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi echo "Unexpected output from make with program" >>config.log cat conftest >>config.log echo "str" >> config.log fielse if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fifi/bin/rm -f confteststr=""if test -z "$ac_echo_n" ; thenac_echo_n=yesif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c='' ac_t=' ' else ac_n=-n ac_c=
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -