📄 configure
字号:
# 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 768 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | 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 785 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | 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 802 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }ac_err=`grep -v '^ *+' conftest.out | 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 # Extract the first word of "perl", so it can be a program name with args.set dummy perl; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:837: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$PERL"; then ac_cv_prog_PERL="$PERL" # 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_PERL="yes" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="no"fifiPERL="$ac_cv_prog_PERL"if test -n "$PERL"; then echo "$ac_t""$PERL" 1>&6else echo "$ac_t""no" 1>&6fi if test "$PERL" = "no"; then fail=$fail" perl" else old_CFLAGS=$CFLAGS CFLAGS="$CFLAGS `perl -MExtUtils::Embed -e ccopts`" smart_try_dir= ac_safe=`echo "EXTERN.h" | sed 'y%./+-%__pm%'`echo $ac_n "checking for EXTERN.h""... $ac_c" 1>&6echo "configure:875: checking for EXTERN.h" >&5old_CFLAGS="$CFLAGS"smart_include=smart_include_dir=if test "x$smart_try_dir" != "x"; then for try in $smart_try_dir; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 885 "configure"#include "confdefs.h" #include <EXTERN.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* smart_include="-I$try"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* smart_include=firm -f conftest* if test "x$smart_include" != "x"; then break; fi CFLAGS="$old_CFLAGS" donefiif test "x$smart_include" = "x"; then cat > conftest.$ac_ext <<EOF#line 912 "configure"#include "confdefs.h" #include <EXTERN.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* smart_include=" "else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* smart_include=firm -f conftest*fiif test "x$smart_include" = "x"; then if test "x$LOCATE" != "x"; then DIRS= file=EXTERN.h for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_include_dir=\"\$smart_include_dir $DIRS\"" for try in $smart_include_dir /usr/local/include /opt/include; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 964 "configure"#include "confdefs.h" #include <EXTERN.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* smart_include="-I$try"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* smart_include=firm -f conftest* if test "x$smart_include" != "x"; then break; fi CFLAGS="$old_CFLAGS" donefiif test "x$smart_include" != "x"; then echo "$ac_t""yes" 1>&6 eval "ac_cv_header_$ac_safe=yes" CFLAGS="$old_CFLAGS $smart_include" SMART_CFLAGS="$SMART_CFLAGS $smart_include"else echo "$ac_t""no" 1>&6fi if test "x$ac_cv_header_EXTERN_h" = "xyes"; then perl_cflags='`perl -MExtUtils::Embed -e ccopts`' else fail="$fail EXTERN.h" targetname= fi ac_safe=`echo "perl.h" | sed 'y%./+-%__pm%'`echo $ac_n "checking for perl.h""... $ac_c" 1>&6echo "configure:1009: checking for perl.h" >&5old_CFLAGS="$CFLAGS"smart_include=smart_include_dir=if test "x$smart_try_dir" != "x"; then for try in $smart_try_dir; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 1019 "configure"#include "confdefs.h"#include <EXTERN.h> #include <perl.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* smart_include="-I$try"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* smart_include=firm -f conftest* if test "x$smart_include" != "x"; then break; fi CFLAGS="$old_CFLAGS" donefiif test "x$smart_include" = "x"; then cat > conftest.$ac_ext <<EOF#line 1046 "configure"#include "confdefs.h"#include <EXTERN.h> #include <perl.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* smart_include=" "else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* smart_include=firm -f conftest*fiif test "x$smart_include" = "x"; then if test "x$LOCATE" != "x"; then DIRS= file=perl.h for x in `${LOCATE} $file 2>/dev/null`; do base=`echo $x | sed "s%/${file}%%"` if test "x$x" = "x$base"; then continue; fi dir=`${DIRNAME} $x 2>/dev/null` exclude=`echo ${dir} | ${GREP} /home` if test "x$exclude" != "x"; then continue fi already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}` if test "x$already" = "x"; then DIRS="$DIRS $dir" fi donefieval "smart_include_dir=\"\$smart_include_dir $DIRS\"" for try in $smart_include_dir /usr/local/include /opt/include; do CFLAGS="$old_CFLAGS -I$try" cat > conftest.$ac_ext <<EOF#line 1098 "configure"#include "confdefs.h"#include <EXTERN.h> #include <perl.h>int main() { int a = 1;; return 0; }EOFif { (eval echo configure:1106: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* smart_include="-I$try"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* smart_include=firm -f conftest* if test "x$smart_include" != "x"; then break; fi CFLAGS="$old_CFLAGS" donefiif test "x$smart_include" != "x"; then echo "$ac_t""yes" 1>&6 eval "ac_cv_header_$ac_safe=yes" CFLAGS="$old_CFLAGS $smart_include" SMART_CFLAGS="$SMART_CFLAGS $smart_include"else echo "$ac_t""no" 1>&6fi if test "x$ac_cv_header_perl_h" = "xyes"; then perl_cflags='`perl -MExtUtils::Embed -e ccopts`' else fail="$fail perl.h" targetname= fi perl_ldflags='`perl -MExtUtils::Embed -e ldopts`' CFLAGS=$old_CFLAGS
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -