📄 configure
字号:
if test -n "$LD"; then echo "$as_me:1762: result: $LD" >&5echo "${ECHO_T}$LD" >&6else echo "$as_me:1765: result: no" >&5echo "${ECHO_T}no" >&6fifiif test -z "$ac_cv_prog_LD"; then ac_ct_LD=$LD # Extract the first word of "ld", so it can be a program name with args.set dummy ld; ac_word=$2echo "$as_me:1774: checking for $ac_word" >&5echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6if test "${ac_cv_prog_ac_ct_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else if test -n "$ac_ct_LD"; then ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.else ac_save_IFS=$IFS; IFS=$ac_path_separatorac_dummy="$PATH"for ac_dir in $ac_dummy; do IFS=$ac_save_IFS test -z "$ac_dir" && ac_dir=. $as_executable_p "$ac_dir/$ac_word" || continueac_cv_prog_ac_ct_LD="ld"echo "$as_me:1789: found $ac_dir/$ac_word" >&5breakdonefifiac_ct_LD=$ac_cv_prog_ac_ct_LDif test -n "$ac_ct_LD"; then echo "$as_me:1797: result: $ac_ct_LD" >&5echo "${ECHO_T}$ac_ct_LD" >&6else echo "$as_me:1800: result: no" >&5echo "${ECHO_T}no" >&6fi LD=$ac_ct_LDelse LD="$ac_cv_prog_LD"fi# Checks for libraries.# FIXME: Replace `main' with a function in `-lc':echo "$as_me:1812: checking for main in -lc" >&5echo $ECHO_N "checking for main in -lc... $ECHO_C" >&6if test "${ac_cv_lib_c_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else ac_check_lib_save_LIBS=$LIBSLIBS="-lc $LIBS"cat >conftest.$ac_ext <<_ACEOF#line 1820 "configure"#include "confdefs.h"intmain (){main (); ; return 0;}_ACEOFrm -f conftest.$ac_objext conftest$ac_exeextif { (eval echo "$as_me:1832: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:1835: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:1838: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1841: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_c_main=yeselse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5ac_cv_lib_c_main=nofirm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_extLIBS=$ac_check_lib_save_LIBSfiecho "$as_me:1852: result: $ac_cv_lib_c_main" >&5echo "${ECHO_T}$ac_cv_lib_c_main" >&6if test $ac_cv_lib_c_main = yes; then cat >>confdefs.h <<EOF#define HAVE_LIBC 1EOF LIBS="-lc $LIBS"fi# FIXME: Replace `main' with a function in `-lpthread':echo "$as_me:1865: checking for main in -lpthread" >&5echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6if test "${ac_cv_lib_pthread_main+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else ac_check_lib_save_LIBS=$LIBSLIBS="-lpthread $LIBS"cat >conftest.$ac_ext <<_ACEOF#line 1873 "configure"#include "confdefs.h"intmain (){main (); ; return 0;}_ACEOFrm -f conftest.$ac_objext conftest$ac_exeextif { (eval echo "$as_me:1885: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:1888: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:1891: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1894: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_lib_pthread_main=yeselse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5ac_cv_lib_pthread_main=nofirm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_extLIBS=$ac_check_lib_save_LIBSfiecho "$as_me:1905: result: $ac_cv_lib_pthread_main" >&5echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6if test $ac_cv_lib_pthread_main = yes; then cat >>confdefs.h <<EOF#define HAVE_LIBPTHREAD 1EOF LIBS="-lpthread $LIBS"fi# Checks for header files.ac_ext=cac_cpp='$CPP $CPPFLAGS'ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'ac_compiler_gnu=$ac_cv_c_compiler_gnuecho "$as_me:1922: checking how to run the C preprocessor" >&5echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; then CPP=fiif test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=falsefor ac_c_preproc_warn_flag in '' yesdo # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF#line 1943 "configure"#include "confdefs.h"#include <assert.h> Syntax error_ACEOFif { (eval echo "$as_me:1948: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:1954: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fielse ac_cpp_err=yesfiif test -z "$ac_cpp_err"; then :else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 # Broken: fails on valid input.continuefirm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF#line 1977 "configure"#include "confdefs.h"#include <ac_nonexistent.h>_ACEOFif { (eval echo "$as_me:1981: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:1987: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fielse ac_cpp_err=yesfiif test -z "$ac_cpp_err"; then # Broken: success on invalid input.continueelse echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 # Passes both tests.ac_preproc_ok=:breakfirm -f conftest.err conftest.$ac_extdone# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.rm -f conftest.err conftest.$ac_extif $ac_preproc_ok; then breakfi done ac_cv_prog_CPP=$CPPfi CPP=$ac_cv_prog_CPPelse ac_cv_prog_CPP=$CPPfiecho "$as_me:2024: result: $CPP" >&5echo "${ECHO_T}$CPP" >&6ac_preproc_ok=falsefor ac_c_preproc_warn_flag in '' yesdo # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF#line 2034 "configure"#include "confdefs.h"#include <assert.h> Syntax error_ACEOFif { (eval echo "$as_me:2039: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:2045: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fielse ac_cpp_err=yesfiif test -z "$ac_cpp_err"; then :else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 # Broken: fails on valid input.continuefirm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether non-existent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF#line 2068 "configure"#include "confdefs.h"#include <ac_nonexistent.h>_ACEOFif { (eval echo "$as_me:2072: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:2078: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fielse ac_cpp_err=yesfiif test -z "$ac_cpp_err"; then # Broken: success on invalid input.continueelse echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 # Passes both tests.ac_preproc_ok=:breakfirm -f conftest.err conftest.$ac_extdone# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.rm -f conftest.err conftest.$ac_extif $ac_preproc_ok; then :else { { echo "$as_me:2106: error: C preprocessor \"$CPP\" fails sanity check" >&5echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} { (exit 1); exit 1; }; }fiac_ext=cac_cpp='$CPP $CPPFLAGS'ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'ac_compiler_gnu=$ac_cv_c_compiler_gnuecho "$as_me:2117: checking for ANSI C header files" >&5echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else cat >conftest.$ac_ext <<_ACEOF#line 2123 "configure"#include "confdefs.h"#include <stdlib.h>#include <stdarg.h>#include <string.h>#include <float.h>_ACEOFif { (eval echo "$as_me:2131: \"$ac_cpp conftest.$ac_ext\"") >&5 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 ac_status=$? egrep -v '^ *\+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:2137: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag else ac_cpp_err= fielse ac_cpp_err=yesfiif test -z "$ac_cpp_err"; then ac_cv_header_stdc=yeselse echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_header_stdc=nofirm -f conftest.err conftest.$ac_extif test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF#line 2159 "configure"#include "confdefs.h"#include <string.h>_ACEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "memchr" >/dev/null 2>&1; then :else ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF#line 2177 "configure"#include "confdefs.h"#include <stdlib.h>_ACEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "free" >/dev/null 2>&1; then :else ac_cv_header_stdc=nofirm -f conftest*fiif test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then :else cat >conftest.$ac_ex
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -