📄 configure
字号:
else ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 echo $ac_n "checking for a C++-Compiler""... $ac_c" 1>&6echo "configure:1302: checking for a C++-Compiler" >&5 echo "$ac_t""$CXX" 1>&6 if test -z "$CXX"; then # Extract the first word of "g++", so it can be a program name with args.set dummy g++; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1308: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # 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_CXX="g++" break fi done IFS="$ac_save_ifs"fifiCXX="$ac_cv_prog_CXX"if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6else echo "$ac_t""no" 1>&6fi fi if test -z "$CXX"; then # Extract the first word of "CC", so it can be a program name with args.set dummy CC; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1337: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # 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_CXX="CC" break fi done IFS="$ac_save_ifs"fifiCXX="$ac_cv_prog_CXX"if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6else echo "$ac_t""no" 1>&6fi fi if test -z "$CXX"; then # Extract the first word of "xlC", so it can be a program name with args.set dummy xlC; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1366: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # 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_CXX="xlC" break fi done IFS="$ac_save_ifs"fifiCXX="$ac_cv_prog_CXX"if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6else echo "$ac_t""no" 1>&6fi fi if test -z "$CXX"; then # Extract the first word of "DCC", so it can be a program name with args.set dummy DCC; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1395: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # 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_CXX="DCC" break fi done IFS="$ac_save_ifs"fifiCXX="$ac_cv_prog_CXX"if test -n "$CXX"; then echo "$ac_t""$CXX" 1>&6else echo "$ac_t""no" 1>&6fi fi test -z "$CXX" && { echo "configure: error: no acceptable C++-compiler found in \$PATH" 1>&2; exit 1; } echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6echo "configure:1424: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5ac_ext=C# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CXXCPP $CPPFLAGS'ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cxx_crossac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cat > conftest.$ac_ext << EOF#line 1440 "configure"#include "confdefs.h"int main(){return(0);}EOFif { (eval echo configure:1445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cxx_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cxx_cross=no else ac_cv_prog_cxx_cross=yes fielse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cxx_works=nofirm -fr conftest*ac_ext=c# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.ac_cpp='$CPP $CPPFLAGS'ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'cross_compiling=$ac_cv_prog_cc_crossecho "$ac_t""$ac_cv_prog_cxx_works" 1>&6if test $ac_cv_prog_cxx_works = no; then { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }fiecho $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6echo "configure:1471: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6cross_compiling=$ac_cv_prog_cxx_cross echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6echo "configure:1476: checking whether we are using GNU C++" >&5if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.C <<EOF#ifdef __GNUC__ yes;#endifEOFif { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gxx=yeselse ac_cv_prog_gxx=nofifiecho "$ac_t""$ac_cv_prog_gxx" 1>&6 if test $ac_cv_prog_gxx = yes; then GXX=yes fi if test -z "$CXXFLAGS"; then if test "$kde_use_debug_code" = "yes"; then echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6echo "configure:1501: checking whether ${CXX-g++} accepts -g" >&5if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'void f(){}' > conftest.ccif test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then ac_cv_prog_cxx_g=yeselse ac_cv_prog_cxx_g=nofirm -f conftest*fiecho "$ac_t""$ac_cv_prog_cxx_g" 1>&6 if test $ac_cv_prog_cxx_g = yes; then CXXFLAGS="-g" case $host in *-*-linux-gnu) CXXFLAGS="$CXXFLAGS -ansi -D_XOPEN_SOURCE -D_BSD_SOURCE -Wbad-function-cast -Wcast-align -Wundef -Wconversion" ;; esac fi else if test "$GXX" = "yes"; then CXXFLAGS="-O2" fi if test "$kde_use_debug_define" = "yes"; then CXXFLAGS="$CXXFLAGS -DNDEBUG" fi fi if test "$kde_use_profiling" = yes; then echo $ac_n "checking whether ${CXX-g++} accepts -pg""... $ac_c" 1>&6echo "configure:1534: checking whether ${CXX-g++} accepts -pg" >&5if eval "test \"`echo '$''{'kde_cv_prog_cxx_pg'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'void f(){}' > conftest.cc if test -z "`${CXX-g++} -pg -c conftest.cc 2>&1`"; then kde_cv_prog_cxx_pg=yes else kde_cv_prog_cxx_pg=no fi rm -f conftest*fiecho "$ac_t""$kde_cv_prog_cxx_pg" 1>&6 if test "$kde_cv_prog_cxx_pg" = yes; then CXXFLAGS="$CXXFLAGS -pg" fi fi echo $ac_n "checking whether $CXX supports -fno-exceptions""... $ac_c" 1>&6echo "configure:1557: checking whether $CXX supports -fno-exceptions" >&5kde_cache=`echo fno-exceptions | sed 'y%.=/+-%___p_%'`if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'int main() { return 0; }' >conftest.ccif test -z "`$CXX -fno-exceptions -o conftest conftest.cc 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes"else eval "kde_cv_prog_cxx_$kde_cache=no"firm -f conftest*fiif eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then echo "$ac_t""yes" 1>&6 : CXXFLAGS="$CXXFLAGS -fno-exceptions" else echo "$ac_t""no" 1>&6 : fi echo $ac_n "checking whether $CXX supports -fno-check-new""... $ac_c" 1>&6echo "configure:1590: checking whether $CXX supports -fno-check-new" >&5kde_cache=`echo fno-check-new | sed 'y%.=/+-%___p_%'`if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'int main() { return 0; }' >conftest.ccif test -z "`$CXX -fno-check-new -o conftest conftest.cc 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes"else eval "kde_cv_prog_cxx_$kde_cache=no"firm -f conftest*fiif eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then echo "$ac_t""yes" 1>&6 : CXXFLAGS="$CXXFLAGS -fno-check-new" else echo "$ac_t""no" 1>&6 : fi if test "$GXX" = "yes"; then CXXFLAGS="$CXXFLAGS" if test true || test "$kde_use_debug_code" = "yes"; then CXXFLAGS="$CXXFLAGS -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" echo $ac_n "checking whether $CXX supports -Wno-long-long""... $ac_c" 1>&6echo "configure:1628: checking whether $CXX supports -Wno-long-long" >&5kde_cache=`echo Wno-long-long | sed 'y%.=/+-%___p_%'`if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'int main() { return 0; }' >conftest.ccif test -z "`$CXX -Wno-long-long -o conftest conftest.cc 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes"else eval "kde_cv_prog_cxx_$kde_cache=no"firm -f conftest*fiif eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then echo "$ac_t""yes" 1>&6 : CXXFLAGS="$CXXFLAGS -Wno-long-long" else echo "$ac_t""no" 1>&6 : fi echo $ac_n "checking whether $CXX supports -fno-builtin""... $ac_c" 1>&6echo "configure:1659: checking whether $CXX supports -fno-builtin" >&5kde_cache=`echo fno-builtin | sed 'y%.=/+-%___p_%'`if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'int main() { return 0; }' >conftest.ccif test -z "`$CXX -fno-builtin -o conftest conftest.cc 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes"else eval "kde_cv_prog_cxx_$kde_cache=no"firm -f conftest*fiif eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then echo "$ac_t""yes" 1>&6 : CXXFLAGS="$CXXFLAGS -fno-builtin" else echo "$ac_t""no" 1>&6 : fi fi if test "$kde_use_strict_options" = "yes"; then CXXFLAGS="$CXXFLAGS -Wcast-qual -Wbad-function-cast -Wshadow -Wcast-align" fi if test "$kde_very_strict" = "yes"; then CXXFLAGS="$CXXFLAGS -Wold-style-cast -Wredundant-decls -Wconversion" fi fi fi echo $ac_n "checking whether $CXX supports -fexceptions""... $ac_c" 1>&6echo "configure:1703: checking whether $CXX supports -fexceptions" >&5kde_cache=`echo fexceptions | sed 'y%.=/+-%___p_%'`if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else echo 'int main() { return 0; }' >conftest.ccif test -z "`$CXX -fexceptions -o conftest conftest.cc 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes"else eval "kde_cv_prog_cxx_$kde_cache=no"firm -f conftest*fiif eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then echo "$ac_t""yes" 1>&6 : USE_EXCEPTIONS="-fexceptions" else
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -