📄 configure
字号:
if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi 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= 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 BSD 4.4 make""... $ac_c"elseecho $ac_n "checking BSD 4.4 make""... $ac_c" 1>&1fi/bin/rm -f conftestcat > conftest <<.ALL: @echo "success".cat > conftest1 <<.include conftest.str=`$MAKE -f conftest1 2>&1`/bin/rm -f conftest conftest1if test "$str" != "success" ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""Found BSD 4.4 so-called make"elseecho "$ac_t""Found BSD 4.4 so-called make" 1>&1fi echo "The BSD 4.4 make is INCOMPATIBLE with all other makes." echo "Using this so-called make may cause problems when building programs." echo "You should consider using gnumake instead." else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no - whew"elseecho "$ac_t""no - whew" 1>&1fifistr=""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 OSF V3 make""... $ac_c"elseecho $ac_n "checking OSF V3 make""... $ac_c" 1>&1fi/bin/rm -f conftestcat > conftest <<.SHELL=/bin/shALL: @# This is a valid comment! @echo "success".str=`$MAKE -f conftest 2>&1`/bin/rm -f conftest if test "$str" != "success" ; then if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""Found OSF V3 make"elseecho "$ac_t""Found OSF V3 make" 1>&1fi echo "The OSF V3 make does not allow comments in target code." echo "Using this make may cause problems when building programs." echo "You should consider using gnumake instead." else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fifistr=""## Check that an ARCH was setif test -z "$ARCH" ; then ARCH=`../../util/tarch` if test -z "$ARCH" ; then echo "You must set an architecture type with -arch=<value>" exit 1 fi echo "Configuring for -arch=$ARCH"fiif test -n "$arch_sgi" ; then arch_IRIX=1 ARCH=IRIXfi# # Check for Unix Variantsecho checking for AIXecho checking how to run the C preprocessorif test -z "$CPP"; then # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and ``${CC-cc}'' will simply confuse # make. It must be expanded now. CPP="${CC-cc} -E" cat > conftest.c <<EOF#include "confdefs.h"#include <stdio.h>Syntax ErrorEOFerr=`eval "($CPP conftest.c >/dev/null) 2>&1"`if test -z "$err"; then :else rm -rf conftest* CPP=/lib/cppfirm -f conftest*fitest ".${verbose}" != "." && echo " setting CPP to $CPP"cat > conftest.c <<EOF#include "confdefs.h"#ifdef _AIX yes#endifEOFeval "$CPP conftest.c > conftest.out 2>&1"if egrep "yes" conftest.out >/dev/null 2>&1; then rm -rf conftest* {test -n "$verbose" && \echo " defining _ALL_SOURCE"echo "#define" _ALL_SOURCE 1 >> confdefs.hDEFS="$DEFS -D_ALL_SOURCE=1"}firm -f conftest*echo checking for minix/config.hcat > conftest.c <<EOF#include "confdefs.h"#include <minix/config.h>EOFerr=`eval "($CPP conftest.c >/dev/null) 2>&1"`if test -z "$err"; then rm -rf conftest* MINIX=1firm -f conftest*# The Minix shell can't assign to the same variable on the same line!if test -n "$MINIX"; then {test -n "$verbose" && \echo " defining _POSIX_SOURCE"echo "#define" _POSIX_SOURCE 1 >> confdefs.hDEFS="$DEFS -D_POSIX_SOURCE=1"} {test -n "$verbose" && \echo " defining" _POSIX_1_SOURCE to be 2echo "#define" _POSIX_1_SOURCE 2 >> confdefs.hDEFS="$DEFS -D_POSIX_1_SOURCE=2"} {test -n "$verbose" && \echo " defining _MINIX"echo "#define" _MINIX 1 >> confdefs.hDEFS="$DEFS -D_MINIX=1"}fi## Get the compilerCARCH=$ARCHif test -z "$USERCC" ; thencase $CARCH in cenju3) if test $ARCH = abi then CCC=CC CCLINKER=cjCC CC=cc F77=f77 ASM=as if test -z "$USERFLINKER" ; then FLINKER=cjabif77 fi if test -z "$USERFLINKER" ; then CLINKER=cjabicc fi else CCC=CC CCLINKER=cjCC CC=/usr/necccs/bin/cc F77=/usr/necccs/bin/f77 ASM=/usr/necccs/bin/as if test ! -x $CC ; then CC=cc F77=f77 ASM=as fi# if test -z "$USERFLINKER" ; then FLINKER=cjf77 fi if test -z "$USERFLINKER" ; then CLINKER=cjcc fi fi# DEVCFLAGS="$DEVCFLAGS -O -Kmips2" MPILIBNAME=mpich ASMFILES_O=get_stack.o ;; intelnx|paragon) CC=icc ; GCC="" # If this version of the intel compiler accepts the -nx flag, use it. if icc -nx > /dev/null 2>&1 ; then # For some reason the lib list was commented out; we need # it to link with if we use the NX routines LIB_LIST="$LIB_LIST -nx" CFLAGS="$CFLAGS -nx" fi ;; cm5) CC=cc ; GCC="" ; if test -z "$USERCLINKER" ; then CLINKER="cmmd-ld -comp $CC" fi ;; cray_t3d) # Some Cray's require -Ccray-t3d instead of -Tcray-t3d. # We have no diagnostic for this behavior yet. CC=/mpp/bin/cc ; CFLAGS="$CFLAGS -Tcray-t3d -DT3D" ; GCC="" if test -z "$USERCLINKER" ; then CLINKER="$CC -Tcray-t3d" ; fi ;; cray_t3e) # Some Cray's require -Ccray-t3e instead of -Tcray-t3e. # We have no diagnostic for this behavior yet. CC=/mpp/bin/cc ; CFLAGS="$CFLAGS -Tcray-t3e -DT3E" ; GCC="" if test -z "$USERCLINKER" ; then CLINKER="$CC -Tcray-t3e" ; fi ;; hpux) if test "`which ${CC-cc}`" = "/usr/convex/bin/cc" ; then CFLAGS="$CFLAGS -or none -U_REENTRANT -D_POSIX_SOURCE -D_HPUX_SOURCE -DMPI_cspp" elif test "$CC" != "gcc" ; then # If cflags includes -Ae or -Aa, we don't need to add -Aa # In a perfect world, we might want to try -Ae # There is also -Aportable... hasarg=`echo A$CFLAGS | sed -n -e '/-A/p'` if test -z "$hasarg" ; then # Try to Add -Ae; add -Aa if that doesn't work 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 that C compiler accepts option -Ae""... $ac_c"elseecho $ac_n "checking that C compiler accepts option -Ae""... $ac_c" 1>&1fiCFLAGSSAV="$CFLAGS"CFLAGS="-Ae $CFLAGS"rm -f conftest.outecho 'int main(){return 0;}' > conftest.cif ${CC-cc} $CFLAGS -o conftest conftest.c >conftest.out 2>&1 ; then if test -s conftest.out ; then cat conftest.out >> config.log if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fi hasarg=1 fielse if test -s conftest.out ; then cat conftest.out >> config.log ; fi if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi firm -f conftest*CFLAGS="$CFLAGSSAV" if test -n "$hasarg" ; then CFLAGS="$CFLAGS -Ae" else 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 that C compiler accepts option -Aa""... $ac_c"elseecho $ac_n "checking that C compiler accepts option -Aa""... $ac_c" 1>&1fiCFLAGSSAV="$CFLAGS"CFLAGS="-Aa $CFLAGS"rm -f conftest.outecho 'int main(){return 0;}' > conftest.cif ${CC-cc} $CFLAGS -o conftest conftest.c >conftest.out 2>&1 ; then if test -s conftest.out ; then cat conftest.out >> config.log if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi else if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""yes"elseecho "$ac_t""yes" 1>&1fi hasarg=1 fielse if test -s conftest.out ; then cat conftest.out >> config.log ; fi if test -z "$ac_echo_test" -a 1 = 1 ; thenecho "$ac_t""no"elseecho "$ac_t""no" 1>&1fi firm -f conftest*CFLAGS="$CFLAGSSAV" if test -n "$hasarg" ; then CFLAGS="$CFLAGS -Aa" fi fi fi # We need these flags to get the correct system include # files. CFLAGS="$CFLAGS -D_POSIX_SOURCE -D_HPUX_SOURCE" # P4 needs these to get the correct system includes P4_CFLAGS="-D_POSIX_SOURCE -D_HPUX_SOURCE" # We MUST have an ANSI compiler for HPUX, even for USER code # If the regular cpp worked, we would not need to do this. 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 that C compiler accepts option -Aa""... $ac_c"elseecho $ac_n "checking that C compiler accepts option -Aa""... $ac_c" 1>&1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -