📄 configure
字号:
GCC=yeselse GCC=fiac_test_CFLAGS="${CFLAGS+set}"ac_save_CFLAGS="$CFLAGS"CFLAGS=echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6echo "configure:1283: checking whether ${CC-cc} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'void f(){}' > conftest.cif test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yeselse ac_cv_prog_cc_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_cc_g" 1>&6if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS"elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fielse if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fifiecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:1315: 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 1330 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1336: \"$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 1347 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1353: \"$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 1364 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1370: \"$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>&6echo $ac_n "checking if C preprocessor likes IDL""... $ac_c" 1>&6echo "configure:1395: checking if C preprocessor likes IDL" >&5if eval "test \"`echo '$''{'ac_cv_cpp_accept_idl'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1400 "configure"#include "confdefs.h" #pragma prefix "foo.org" module FOO { typedef unsigned long long big; interface BAR { readonly attribute big number; }; }; EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1413: \"$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 rm -rf conftest* ac_cv_cpp_accept_idl=yeselse echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_cpp_accept_idl=nofirm -f conftest*fiecho "$ac_t""$ac_cv_cpp_accept_idl" 1>&6if [ "$ac_cv_cpp_accept_idl" = "no" ]; then echo "configure: warning: CPP does not accept IDL" 1>&2fiecho $ac_n "checking if C preprocessor can read from stdin""... $ac_c" 1>&6echo "configure:1433: checking if C preprocessor can read from stdin" >&5if eval "test \"`echo '$''{'ac_cv_cpp_pipe_stdin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if echo | $CPP - 2>/dev/null 1>&2 ; then ac_cv_cpp_pipe_stdin=yes else ac_cv_cpp_pipe_stdin=no fifiecho "$ac_t""$ac_cv_cpp_pipe_stdin" 1>&6 if test $ac_cv_cpp_pipe_stdin = yes ; then cat >> confdefs.h <<\EOF#define HAVE_CPP_PIPE_STDIN 1EOF fiecho $ac_n "checking how to ignore standard include path""... $ac_c" 1>&6echo "configure:1453: checking how to ignore standard include path" >&5if eval "test \"`echo '$''{'ac_cv_cpp_nostdinc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else saved_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS -I-" cat > conftest.$ac_ext <<EOF#line 1460 "configure"#include "confdefs.h"EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1465: \"$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 rm -rf conftest* ac_cv_cpp_nostdinc=-I-else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPPFLAGS="$saved_CPPFLAGS -I" cat > conftest.$ac_ext <<EOF#line 1477 "configure"#include "confdefs.h"EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1482: \"$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 rm -rf conftest* ac_cv_cpp_nostdinc=-Ielse echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*firm -f conftest* CPPFLAGS="$saved_CPPFLAGS"fiecho "$ac_t""$ac_cv_cpp_nostdinc" 1>&6 cat >> confdefs.h <<EOF#define CPP_NOSTDINC "$ac_cv_cpp_nostdinc"EOFCPP_PROGRAM="$CPP"cat >> confdefs.h <<EOF#define CPP_PROGRAM "$CPP"EOFmissing_dir=`cd $ac_aux_dir && pwd`for ac_prog in flex lexdo# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1515: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # 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_LEX="$ac_prog" break fi done IFS="$ac_save_ifs"fifiLEX="$ac_cv_prog_LEX"if test -n "$LEX"; then echo "$ac_t""$LEX" 1>&6else echo "$ac_t""no" 1>&6fitest -n "$LEX" && breakdonetest -n "$LEX" || LEX=""$missing_dir/missing flex""# Extract the first word of "flex", so it can be a program name with args.set dummy flex; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1548: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # 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_LEX="flex" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"fifiLEX="$ac_cv_prog_LEX"if test -n "$LEX"; then echo "$ac_t""$LEX" 1>&6else echo "$ac_t""no" 1>&6fiif test -z "$LEXLIB"then case "$LEX" in flex*) ac_lib=fl ;; *) ac_lib=l ;; esac echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6echo "configure:1582: checking for yywrap in -l$ac_lib" >&5ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_save_LIBS="$LIBS"LIBS="-l$ac_lib $LIBS"cat > conftest.$ac_ext <<EOF#line 1590 "configure"#include "confdefs.h"/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char yywrap();int main() {yywrap(); return 0; }EOFif { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 LEXLIB="-l$ac_lib"else echo "$ac_t""no" 1>&6fifiecho $ac_n "checking lex output file root""... $ac_c" 1>&6echo "configure:1624: checking lex output file root" >&5if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # The minimal lex program is just a single line: %%. But some broken lexes# (Solaris, I think it was) want two %% lines, so accommodate them.echo '%%%%' | $LEXif test -f lex.yy.c; then ac_cv_prog_lex_root=lex.yyelif test -f lexyy.c; then ac_cv_prog_lex_root=lexyyelse { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }fifiecho "$ac_t""$ac_cv_prog_lex_root" 1>&6LEX_OUTPUT_ROOT=$ac_cv_prog_lex_rootecho $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6echo "configure:1645: checking whether yytext is a pointer" >&5if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # POSIX says lex can declare yytext either as a pointer or an array; the# default is implementation-dependent. Figure out which it is, since# not all implementations provide the %pointer and %array declarations.ac_cv_prog_lex_yytext_pointer=noecho 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.cac_save_LIBS="$LIBS"LIBS="$LIBS $LEXLIB"cat > conftest.$ac_ext <<EOF#line 1657 "configure"#include "confdefs.h"`cat $LEX_OUTPUT_ROOT.c`int main() {; return 0; }EOFif { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_prog_lex_yytext_pointer=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*LIBS="$ac_save_LIBS"rm -f "${LEX_OUTPUT_ROOT}.c"fiecho "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6if test $ac_cv_prog_lex_yytext_pointer = yes; then cat >> confdefs.h <<\EOF#define YYTEXT_POINTER 1EOFfiif [ "$LEX" != "flex" ]; then echo "configure: warning: flex is required to create the $PACKAGE $VERSION scanner" 1>&2fiLFLAGS="-8"for ac_prog in 'bison -y' byaccdo# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1695: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -