📄 configure
字号:
set dummy ranlib; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:1276: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="ranlib" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"fifiRANLIB="$ac_cv_prog_RANLIB"if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6else echo "$ac_t""no" 1>&6fiecho $ac_n "checking for object suffix""... $ac_c" 1>&6echo "configure:1304: checking for object suffix" >&5if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else rm -f conftest*echo 'int i = 1;' > conftest.$ac_extif { (eval echo configure:1310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then for ac_file in conftest.*; do case $ac_file in *.c) ;; *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;; esac doneelse { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }firm -f conftest*fiecho "$ac_t""$ac_cv_objext" 1>&6OBJEXT=$ac_cv_objextac_objext=$ac_cv_objextecho $ac_n "checking for Cygwin environment""... $ac_c" 1>&6echo "configure:1328: checking for Cygwin environment" >&5if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1333 "configure"#include "confdefs.h"int main() {#ifndef __CYGWIN__#define __CYGWIN__ __CYGWIN32__#endifreturn __CYGWIN__;; return 0; }EOFif { (eval echo configure:1344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_cygwin=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_cygwin=nofirm -f conftest*rm -f conftest*fiecho "$ac_t""$ac_cv_cygwin" 1>&6CYGWIN=test "$ac_cv_cygwin" = yes && CYGWIN=yesecho $ac_n "checking for mingw32 environment""... $ac_c" 1>&6echo "configure:1361: checking for mingw32 environment" >&5if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1366 "configure"#include "confdefs.h"int main() {return __MINGW32__;; return 0; }EOFif { (eval echo configure:1373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_mingw32=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_mingw32=nofirm -f conftest*rm -f conftest*fiecho "$ac_t""$ac_cv_mingw32" 1>&6MINGW32=test "$ac_cv_mingw32" = yes && MINGW32=yesecho $ac_n "checking for executable suffix""... $ac_c" 1>&6echo "configure:1392: checking for executable suffix" >&5if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else if test "$CYGWIN" = yes || test "$MINGW32" = yes; then ac_cv_exeext=.exeelse rm -f conftest* echo 'int main () { return 0; }' > conftest.$ac_ext ac_cv_exeext= if { (eval echo configure:1402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then for file in conftest.*; do case $file in *.c | *.o | *.obj | *.ilk | *.pdb) ;; *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; esac done else { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } fi rm -f conftest* test x"${ac_cv_exeext}" = x && ac_cv_exeext=nofifiEXEEXT=""test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}echo "$ac_t""${ac_cv_exeext}" 1>&6ac_exeext=$EXEEXT echo $ac_n "checking "for Visual C++"""... $ac_c" 1>&6echo "configure:1427: checking "for Visual C++"" >&5 MSVC="no"; if test "${CC}" = "cl" ; then MSVC="yes" fi if test "${CXX}" = "cl" ; then MSVC="yes" fi if test "${MSVC}" = "yes"; then MSVC_TRUE= MSVC_FALSE='#'else MSVC_TRUE='#' MSVC_FALSE=fi echo "$ac_t""${MSVC}" 1>&6 echo $ac_n "checking "the default compiler flags"""... $ac_c" 1>&6echo "configure:1452: checking "the default compiler flags"" >&5 cygflags_enable_debug="no" # Check whether --enable-debug or --disable-debug was given.if test "${enable_debug+set}" = set; then enableval="$enable_debug" case "${enableval}" in yes) cygflags_enable_debug="yes" ;; *) cygflags_enable_debug="no" ;; esacfi cygflags_enable_ansi="no" if test "${MSVC}" = "yes" ; then # Check whether --enable-ansi or --disable-ansi was given.if test "${enable_ansi+set}" = set; then enableval="$enable_ansi" case "${enableval}" in yes) cygflags_enable_ansi="yes" ;; *) cygflags_enable_ansi="no" ;; esacfi fi if test "${GCC}" = "yes" ; then CC="$CC -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs" CXX="$CXX -Wall -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Woverloaded-virtual" elif test "${MSVC}" = "yes" ; then CC="$CC -nologo -W3" CXX="$CXX -nologo -W3 -GR -GX" if test "${cygflags_enable_debug}" = "yes" ; then CC="$CC -MDd -Zi" CXX="$CXX -MDd -Zi" else CC="$CC -MD -O2" CXX="$CXX -MD -O2" fi else { echo "configure: error: "default flags for ${CC} are not known"" 1>&2; exit 1; } fi echo "$ac_t""done" 1>&6if test "${cygflags_enable_debug}" = "yes" ; then cyginfra_asserts=yes cyginfra_preconditions=yes cyginfra_postconditions=yes cyginfra_invariants=yes cyginfra_loopinvariants=yes cyginfra_tracing=yes cyginfra_fntracing=yeselse cyginfra_asserts=no cyginfra_preconditions=no cyginfra_postconditions=no cyginfra_invariants=no cyginfra_loopinvariants=no cyginfra_tracing=no cyginfra_fntracing=nofi# Check whether --enable-asserts or --disable-asserts was given.if test "${enable_asserts+set}" = set; then enableval="$enable_asserts" case "${enableval}" in yes) cyginfra_asserts=yes ;; no) cyginfra_asserts=no ;; *) { echo "configure: error: bad value ${enableval} for disable-asserts option" 1>&2; exit 1; } ;;esacfiif test "${cyginfra_asserts}" = "yes"; then cat >> confdefs.h <<\EOF#define CYGDBG_USE_ASSERTS 1EOFfi# Check whether --enable-preconditions or --disable-preconditions was given.if test "${enable_preconditions+set}" = set; then enableval="$enable_preconditions" case "${enableval}" in yes) cyginfra_preconditions=yes ;; no) cyginfra_preconditions=no ;; *) { echo "configure: error: bad value ${enableval} for disable-preconditions option" 1>&2; exit 1; } ;;esacfiif test "${cyginfra_preconditions}" = "yes"; then cat >> confdefs.h <<\EOF#define CYGDBG_INFRA_DEBUG_PRECONDITIONS 1EOFfi# Check whether --enable-postconditions or --disable-postconditions was given.if test "${enable_postconditions+set}" = set; then enableval="$enable_postconditions" case "${enableval}" in yes) cyginfra_postconditions=yes ;; no) cyginfra_postconditions=no ;; *) { echo "configure: error: bad value ${enableval} for disable-postconditions option" 1>&2; exit 1; } ;;esacfiif test "${cyginfra_postconditions}" = "yes"; then cat >> confdefs.h <<\EOF#define CYGDBG_INFRA_DEBUG_POSTCONDITIONS 1EOFfi# Check whether --enable-invariants or --disable-invariants was given.if test "${enable_invariants+set}" = set; then enableval="$enable_invariants" case "${enableval}" in yes) cyginfra_invariants=yes ;; no) cyginfra_invariants=no ;; *) { echo "configure: error: bad value ${enableval} for disable-invariants option" 1>&2; exit 1; } ;;esacfiif test "${cyginfra_invariants}" = "yes"; then cat >> confdefs.h <<\EOF#define CYGDBG_INFRA_DEBUG_INVARIANTS 1EOFfi# Check whether --enable-loopinvariants or --disable-loopinvariants was given.if test "${enable_loopinvariants+set}" = set; then enableval="$enable_loopinvariants" case "${enableval}" in yes) cyginfra_loopinvariants=yes ;; no) cyginfra_loopinvariants=no ;; *) { echo "configure: error: bad value ${enableval} for disable-loopinvariants option" 1>&2; exit 1; } ;;esacfiif test "${cyginfra_loopinvariants}" = "yes"; then cat >> confdefs.h <<\EOF#define CYGDBG_INFRA_DEBUG_LOOP_INVARIANTS 1EOFfi# Check whether --enable-tracing or --disable-tracing was given.if test "${enable_tracing+set}" = set; then enableval="$enable_tracing" case "${enableval}" in yes) cyginfra_tracing=yes ;; no) cyginfra_tracing=no ;; *) { echo "configure: error: bad value ${enableval} for disable-tracing option" 1>&2; exit 1; } ;;esacfiif test "${cyginfra_tracing}" = "yes"; then cat >> confdefs.h <<\EOF#define CYGDBG_USE_TRACING 1EOFfi# Check whether --enable-fntracing or --disable-fntracing was given.if test "${enable_fntracing+set}" = set; then enableval="$enable_fntracing" case "${enableval}" in yes) cyginfra_fntracing=yes ;; no) cyginfra_fntracing=no ;; *) { echo "configure: error: bad value ${enableval} for disable-fntracing option" 1>&2; exit 1; } ;;esacfiif test "${cyginfra_fntracing}" = "yes"; then cat >> confdefs.h <<\EOF#define CYGDBG_INFRA_DEBUG_FUNCTION_REPORTS 1EOFfiecho $ac_n "checking for Tcl version""... $ac_c" 1>&6echo "configure:1648: checking for Tcl version" >&5# Check whether --with-tcl-version or --without-tcl-version was given.if test "${with_tcl_version+set}" = set; then withval="$with_tcl_version" cyg_ac_tcl_version=${with_tcl_version}else if test "${MSVC}" = "yes" ; then cyg_ac_tcl_version=80 else if test "${ac_cv_cygwin}" = "yes" ; then cyg_ac_tcl_version=80 else cyg_ac_tcl_version="" fi fifiecho "$ac_t""${cyg_ac_tcl_version}" 1>&6# Check whether --with-tcl or --without-tcl was given.if test "${with_tcl+set}" = set; then withval="$with_tcl" :fi# Check whether --with-tcl or --without-tcl was given.if test "${with_tcl+set}" = set; then withval="$with_tcl" :fiecho $ac_n "checking for Tcl installation""... $ac_c" 1>&6echo "configure:1686: checking for Tcl installation" >&5# Check whether --with-tcl or --without-tcl was given.if test "${with_tcl+set}" = set; then withval="$with_tcl" cyg_ac_tcl_incdir=${with_tcl}/include cyg_ac_tcl_libdir=${with_tcl}/libelse if test "${with_tcl_header}" = "no"; then cyg_ac_tcl_incdir=${prefix}/include
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -