⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure

📁 MPICH是MPI的重要研究,提供了一系列的接口函数,为并行计算的实现提供了编程环境.
💻
📖 第 1 页 / 共 5 页
字号:
doneif test -z "$CCval" ; then    # We have to set this outside of the loop lest the first failure in     # PROGRAM_CHECK set the value (which then terminates the effect of the    # loop, since autoconf macros only set values that are null, they     # don't override them    CCval=""fi      if test -z "$CCval" ; then          print_error "Could not find a C compiler"	  exit 1      elif test "$CCVal" = "cc" ; then          CC="cc -g -xcg92"      else	  CC=$CCval      fi	;;    ncube)   CC=ncc ;;    rs6000)      CCval=""      for p in xlC xlc ccdo# Extract the first word of "$p", so it can be a program name with args.set dummy $p; ac_word=$2if 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 $ac_word""... $ac_c"elseecho $ac_n "checking for $ac_word""... $ac_c" 1>&1fiac_prog_where=""if test -n "$CCval"; then  ac_pg_CCval="$CCval" # Let the user override the test.else  ac_first_char=`expr "$p" : "\(.\)"`  if test "$ac_first_char" = "/" -a -x "$p" ; then       ac_pg_CCval="$p"       ac_prog_where=$p  else      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"      for ac_dir in $PATH; do        test -z "$ac_dir" && ac_dir=.        if test -f $ac_dir/$ac_word; then          ac_pg_CCval="$p"          ac_prog_where=$ac_dir/$ac_word          break        fi      done      IFS="$ac_save_ifs"  fifi;CCval="$ac_pg_CCval"if test -n "$ac_prog_where" ; then  if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""found $ac_prog_where ($CCval)"elseecho "$ac_t""found $ac_prog_where ($CCval)" 1>&1fi  else  if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fifitest -n "$CCval" && breakdoneif test -z "$CCval" ; then    # We have to set this outside of the loop lest the first failure in     # PROGRAM_CHECK set the value (which then terminates the effect of the    # loop, since autoconf macros only set values that are null, they     # don't override them    CCval=""fi      if test -n "$CCval" ; then	 CC=$CCval         GCC=""      fi      ;;    *)      CCval=""      # Pick the vendor's cc ahead of gcc.      for p in cc gccdo# Extract the first word of "$p", so it can be a program name with args.set dummy $p; ac_word=$2if 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 $ac_word""... $ac_c"elseecho $ac_n "checking for $ac_word""... $ac_c" 1>&1fiac_prog_where=""if test -n "$CCval"; then  ac_pg_CCval="$CCval" # Let the user override the test.else  ac_first_char=`expr "$p" : "\(.\)"`  if test "$ac_first_char" = "/" -a -x "$p" ; then       ac_pg_CCval="$p"       ac_prog_where=$p  else      IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"      for ac_dir in $PATH; do        test -z "$ac_dir" && ac_dir=.        if test -f $ac_dir/$ac_word; then          ac_pg_CCval="$p"          ac_prog_where=$ac_dir/$ac_word          break        fi      done      IFS="$ac_save_ifs"  fifi;CCval="$ac_pg_CCval"if test -n "$ac_prog_where" ; then  if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""found $ac_prog_where ($CCval)"elseecho "$ac_t""found $ac_prog_where ($CCval)" 1>&1fi  else  if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fifitest -n "$CCval" && breakdoneif test -z "$CCval" ; then    # We have to set this outside of the loop lest the first failure in     # PROGRAM_CHECK set the value (which then terminates the effect of the    # loop, since autoconf macros only set values that are null, they     # don't override them    CCval=""fi      if test -n "$CCval" ; then	 CC=$CCval      fi      ;;esacfiif test -z "$USERCLINKER" -a -z "$CLINKER" ; then    CLINKER="$CC"fiif 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 whether cross-compiling""... $ac_c"elseecho $ac_n "checking whether cross-compiling""... $ac_c" 1>&1fi# If we cannot run a trivial program, we must be cross compiling.cat > conftest.c <<EOF#include "confdefs.h"main(){exit(0);}EOFeval $compileif test -s conftest && (./conftest; exit) 2>/dev/null; then  pac_ok=1else  pac_ok=0firm -fr conftest*if test $pac_ok = 1 ; then    cat > conftest.c <<EOF#include "confdefs.h"main(){exit(1);}EOFeval $compileif test -s conftest && (./conftest; exit) 2>/dev/null; then  pac_ok=0 firm -fr conftest*    if test $pac_ok = 1 ; then        if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi    else        cross_compiling=1        if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fi    fielse    cross_compiling=1    if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fifiif 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 that the compiler $CC runs""... $ac_c"elseecho $ac_n "checking that the compiler $CC runs""... $ac_c" 1>&1fiif test ! -f confdefs.h ; then    if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t"""!! SHELL ERROR !!""elseecho "$ac_t"""!! SHELL ERROR !!"" 1>&1fi    echo "The file confdefs.h created by configure has been removed"    echo "This may be a problem with your shell; some versions of LINUX"    echo "have this problem.  See the Installation guide for more"    echo "information."    exit 1ficat > conftest.c <<EOF#include "confdefs.h"int main() { exit(0); }int t() { return 0; }EOFif eval $compile; then    rm -rf conftest*  eval "ac_cv_ccworks=yes"else  rm -rf conftest*  eval "ac_cv_ccworks=no"   firm -f conftest*if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""$ac_cv_ccworks"elseecho "$ac_t""$ac_cv_ccworks" 1>&1fiif test $ac_cv_ccworks = "yes" ; then    cc_works=1else# Generate output from failed test.  See COMPILE_CHECK code# It really would be better if the compile tests put the output into# a file for later analysis, like conftest.out#cat > conftest.c <<EOF#include "confdefs.h"int main() { exit(0); }int t() { return 0; }EOF$CC $CFLAGS conftest.c -o conftest $LIBSrm -f conftest* ## End of output    cc_works=0fiif test $cc_works = 0 ; then    print_error "Could not compile a simple file with $CC!"    print_error "Check for license and path restrictions on $CC."    exit 1fi## Get the defaults if they were not set...if test -n "$arch_IRIX"; then   # Every version and machine under IRIX is incompatible with every other   # version.  This block of code replaces a generic "IRIX" arch value    # with    #  IRIX_<version>_<chip>   #  For example   #  IRIX_5_4400 (IRIX 5.x, using MIPS 4400)   osversion=`uname -r | sed 's/\..*//'`   cputype=`hinv -t cpu | cut -f 3 -d' '`   echo "osversion and cputype"   # cputype may contain R4400, R2000A/R3000, or something else.     # We may eventually need to look at it.   if test -z "$osversion" ; then	echo "Could not determine OS version (got $osversion).  Please send"        echo " "	uname -a	echo "to gropp@mcs.anl.gov"        exit 1   elif test $osversion = 4 ; then	echo "IRIX Version 4 is not supported.  Currently, IRIX 5.2 and"	echo "IRIX 6.0 systems are available to us."        exit 1   elif test $osversion = 5 ; then	true   elif test $osversion = 6 ; then	true   else        echo "Could not recognize the version of IRIX (got $osversion)"       echo "Wrappergen knows about versions 5 and 6; the version being"       echo "returned from uname -r is $osversion."       echo "Please send"       uname -a       hinv       echo "to gropp@mcs.anl.gov"       exit 1   fi   echo "getting cputype..."   OLD_ARCH=IRIX   IRIXARCH="$ARCH_$osversion"   # Now, handle the chip set   cputype=`echo $cputype | sed -e 's%.*/%%' -e 's/R//' | tr A-Za-z ''`   case $cputype in 	3000) ;;	4000) ;;	4400) ;;	4600) ;;	8000) ;;        *)	echo "Unexpected IRIX/MIPS chipset $cputype.  Please send the output"        uname -a 2>&1        hinv 2>&1        echo "to gropp@mcs.anl.gov"	echo "Wrappergen will contine and assume that the cputype is"	echo "compatible with a MIPS 4400 processor."        cputype=4400	;;   esac   IRIXARCH="$IRIXARCH_$cputype"   echo "IRIX-specific architecture is $IRIXARCH"fi# Check all of the devices first; they need to be known # (especially chameleon) before doing the transport layer############################################################################## In order to determine the correct compilers and options to use, # we sometimes need to get more detailed information on the system# This is osversion, osvminor, and cputype.# Currently, only IRIX uses this############################################################################## We should provide a way to specify a particular IRIX version, rather # than requiring the this code to figure everything out.# In particular, there are IRIX-like systems that do not have the 'hinv'# command.#if test -n "$arch_IRIX" ; 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 IRIX OS version""... $ac_c"elseecho $ac_n "checking for IRIX OS version""... $ac_c" 1>&1fi                     osversion=`uname -r | sed 's/\..*//'`                     osvminor=`uname -r | sed 's/[0-9]\.\([0-9]*\).*/\1/'`   if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""$osversion"elseecho "$ac_t""$osversion" 1>&1fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -