📄 configure
字号:
ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"echo "$as_me:1766: found $ac_dir/$ac_word" >&5breakdonefifiCXX=$ac_cv_prog_CXXif test -n "$CXX"; then echo "$as_me:1774: result: $CXX" >&5echo "${ECHO_T}$CXX" >&6else echo "$as_me:1777: result: no" >&5echo "${ECHO_T}no" >&6fi test -n "$CXX" && break donefiif test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlCdo # Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo "$as_me:1790: checking for $ac_word" >&5echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$ac_prog"echo "$as_me:1805: found $ac_dir/$ac_word" >&5breakdonefifiac_ct_CXX=$ac_cv_prog_ac_ct_CXXif test -n "$ac_ct_CXX"; then echo "$as_me:1813: result: $ac_ct_CXX" >&5echo "${ECHO_T}$ac_ct_CXX" >&6else echo "$as_me:1816: result: no" >&5echo "${ECHO_T}no" >&6fi test -n "$ac_ct_CXX" && breakdonetest -n "$ac_ct_CXX" || ac_ct_CXX="g++" CXX=$ac_ct_CXXfi# Provide some information about the compiler.echo "$as_me:1828:" \ "checking for C++ compiler version" >&5ac_compiler=`set X $ac_compile; echo $2`{ (eval echo "$as_me:1831: \"$ac_compiler --version </dev/null >&5\"") >&5 (eval $ac_compiler --version </dev/null >&5) 2>&5 ac_status=$? echo "$as_me:1834: \$? = $ac_status" >&5 (exit $ac_status); }{ (eval echo "$as_me:1836: \"$ac_compiler -v </dev/null >&5\"") >&5 (eval $ac_compiler -v </dev/null >&5) 2>&5 ac_status=$? echo "$as_me:1839: \$? = $ac_status" >&5 (exit $ac_status); }{ (eval echo "$as_me:1841: \"$ac_compiler -V </dev/null >&5\"") >&5 (eval $ac_compiler -V </dev/null >&5) 2>&5 ac_status=$? echo "$as_me:1844: \$? = $ac_status" >&5 (exit $ac_status); }echo "$as_me:1847: checking whether we are using the GNU C++ compiler" >&5echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else cat >conftest.$ac_ext <<_ACEOF#line 1853 "configure"#include "confdefs.h"#ifdef F77_DUMMY_MAIN# ifdef __cplusplus extern "C"# endif int F77_DUMMY_MAIN() { return 1; }#endifintmain (){#ifndef __GNUC__ choke me#endif ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:1874: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1877: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:1880: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1883: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yeselse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5ac_compiler_gnu=nofirm -f conftest.$ac_objext conftest.$ac_extac_cv_cxx_compiler_gnu=$ac_compiler_gnufiecho "$as_me:1895: result: $ac_cv_cxx_compiler_gnu" >&5echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6GXX=`test $ac_compiler_gnu = yes && echo yes`ac_test_CXXFLAGS=${CXXFLAGS+set}ac_save_CXXFLAGS=$CXXFLAGSCXXFLAGS="-g"echo "$as_me:1901: checking whether $CXX accepts -g" >&5echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else cat >conftest.$ac_ext <<_ACEOF#line 1907 "configure"#include "confdefs.h"#ifdef F77_DUMMY_MAIN# ifdef __cplusplus extern "C"# endif int F77_DUMMY_MAIN() { return 1; }#endifintmain (){ ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:1925: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1928: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:1931: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1934: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cxx_g=yeselse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5ac_cv_prog_cxx_g=nofirm -f conftest.$ac_objext conftest.$ac_extfiecho "$as_me:1944: result: $ac_cv_prog_cxx_g" >&5echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGSelif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fielse if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fififor ac_declaration in \ ''\ '#include <stdlib.h>' \ 'extern "C" void std::exit (int) throw (); using std::exit;' \ 'extern "C" void std::exit (int); using std::exit;' \ 'extern "C" void exit (int) throw ();' \ 'extern "C" void exit (int);' \ 'void exit (int);'do cat >conftest.$ac_ext <<_ACEOF#line 1971 "configure"#include "confdefs.h"#include <stdlib.h>$ac_declaration#ifdef F77_DUMMY_MAIN# ifdef __cplusplus extern "C"# endif int F77_DUMMY_MAIN() { return 1; }#endifintmain (){exit (42); ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:1990: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:1993: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:1996: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:1999: \$? = $ac_status" >&5 (exit $ac_status); }; }; then :else echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5continuefirm -f conftest.$ac_objext conftest.$ac_ext cat >conftest.$ac_ext <<_ACEOF#line 2009 "configure"#include "confdefs.h"$ac_declaration#ifdef F77_DUMMY_MAIN# ifdef __cplusplus extern "C"# endif int F77_DUMMY_MAIN() { return 1; }#endifintmain (){exit (42); ; return 0;}_ACEOFrm -f conftest.$ac_objextif { (eval echo "$as_me:2027: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:2030: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest.$ac_objext' { (eval echo "$as_me:2033: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:2036: \$? = $ac_status" >&5 (exit $ac_status); }; }; then breakelse echo "$as_me: failed program was:" >&5cat conftest.$ac_ext >&5firm -f conftest.$ac_objext conftest.$ac_extdonerm -f conftest*if test -n "$ac_declaration"; then echo '#ifdef __cplusplus' >>confdefs.h echo $ac_declaration >>confdefs.h echo '#endif' >>confdefs.hfiac_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_gnuac_ext=ccac_cpp='$CXXCPP $CPPFLAGS'ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'ac_compiler_gnu=$ac_cv_cxx_compiler_gnuecho "$as_me:2063: checking how to run the C++ preprocessor" >&5echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6if test -z "$CXXCPP"; then if test "${ac_cv_prog_CXXCPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6else # Double quotes because CXXCPP needs to be expanded for CXXCPP in "$CXX -E" "/lib/cpp" do ac_preproc_ok=falsefor ac_cxx_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 2080 "configure"#include "confdefs.h"#include <assert.h> Syntax error_ACEOFif { (eval echo "$as_me:2085: \"$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:2091: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_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 2114 "configure"#include "confdefs.h"#include <ac_nonexistent.h>_ACEOFif { (eval echo "$as_me:2118: \"$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:2124: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_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_CXXCPP=$CXXCPPfi CXXCPP=$ac_cv_prog_CXXCPPelse ac_cv_prog_CXXCPP=$CXXCPPfiecho "$as_me:2161: result: $CXXCPP" >&5echo "${ECHO_T}$CXXCPP" >&6ac_preproc_ok=falsefor ac_cxx_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 2171 "configure"#include "confdefs.h"#include <assert.h> Syntax error_ACEOFif { (eval echo "$as_me:2176: \"$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:2182: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_cxx_preproc_warn_flag else ac_cpp_err= fielse ac_cpp_err=yesfiif test -z "$ac_cpp_err"; the
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -