configure
来自「KDE下的西门子手机管理程序」· 代码 · 共 2,160 行 · 第 1/5 页
TXT
2,160 行
# not just through cpp. cat > conftest.$ac_ext <<EOF#line 1300 "configure"#include "confdefs.h"#include <assert.h> Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1306: \"$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 1317 "configure"#include "confdefs.h"#include <assert.h> Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1323: \"$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* ac_cv_prog_CPP="$CPP"fi CPP="$ac_cv_prog_CPP" 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:1347: 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:1353: 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:1382: 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:1411: 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:1440: 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:1469: 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 1485 "configure"#include "confdefs.h"int main(){return(0);}EOFif { (eval echo configure:1490: \"$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:1516: 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:1521: 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:1530: \"$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 USER_CXXFLAGS=$CXXFLAGS CXXFLAGS="" 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:1549: 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:1582: 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:1605: 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.cceval "kde_cv_prog_cxx_$kde_cache=no"if test -z "`$CXX -fno-exceptions -c conftest.cc 2>&1`"; then if test -z "`$CXX -fno-exceptions -o conftest conftest.o 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes" fifirm -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:1639: 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.cceval "kde_cv_prog_cxx_$kde_cache=no"if test -z "`$CXX -fno-check-new -c conftest.cc 2>&1`"; then if test -z "`$CXX -fno-check-new -o conftest conftest.o 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes" fifirm -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:1678: 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.cceval "kde_cv_prog_cxx_$kde_cache=no"if test -z "`$CXX -Wno-long-long -c conftest.cc 2>&1`"; then if test -z "`$CXX -Wno-long-long -o conftest conftest.o 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes" fifirm -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:1710: 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.cceval "kde_cv_prog_cxx_$kde_cache=no"if test -z "`$CXX -fno-builtin -c conftest.cc 2>&1`"; then if test -z "`$CXX -fno-builtin -o conftest conftest.o 2>&1`"; then eval "kde_cv_prog_cxx_$kde_cache=yes" fifirm -f conftest*fiif eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then echo "$ac_t""yes" 1>&6 :
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?