📄 configure
字号:
firm -f conftest* ac_cv_prog_CPP="$CPP"fi CPP="$ac_cv_prog_CPP"else ac_cv_prog_CPP="$CPP"fiecho "$ac_t""$CPP" 1>&6echo $ac_n "checking if running LynxOS""... $ac_c" 1>&6echo "configure:1208: checking if running LynxOS" >&5if eval "test \"`echo '$''{'ac_cv_os_lynx'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1213 "configure"#include "confdefs.h"/* * The old Lynx "cc" only defines "Lynx", but the newer one uses "__Lynx__" */#if defined(__Lynx__) || defined(Lynx)yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 | egrep "yes" >/dev/null 2>&1; then rm -rf conftest* ac_cv_os_lynx=yeselse rm -rf conftest* ac_cv_os_lynx=nofirm -f conftest*fi#if test "$ac_cv_os_lynx" = "yes" ; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF#define LYNX 1EOF echo $ac_n "checking whether -mposix or -X is available""... $ac_c" 1>&6echo "configure:1243: checking whether -mposix or -X is available" >&5 if eval "test \"`echo '$''{'ac_cv_c_posix_flag'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1248 "configure"#include "confdefs.h"int main() { /* * This flag varies depending on how old the compiler is. * -X is for the old "cc" and "gcc" (based on 1.42). * -mposix is for the new gcc (at least 2.5.8). */ #if defined(__GNUC__) && __GNUC__ >= 2 choke me #endif ; return 0; }EOFif { (eval echo configure:1264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ac_cv_c_posix_flag=" -mposix"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_cv_c_posix_flag=" -X"firm -f conftest*fi CC="$CC $ac_cv_c_posix_flag" echo "$ac_t""$ac_cv_c_posix_flag" 1>&6 else echo "$ac_t""no" 1>&6fi# we really only need the header files## Ok, lets find the tcl source trees so we can use the headers# Warning: transition of version 9 to 10 will break this algorithm# because 10 sorts before 9. We also look for just tcl. We have to# be careful that we don't match stuff like tclX by accident.# the alternative search directory is involked by --with-tclinclude#no_tcl=trueecho $ac_n "checking for Tcl private headers""... $ac_c" 1>&6echo "configure:1294: checking for Tcl private headers" >&5# Check whether --with-tclinclude or --without-tclinclude was given.if test "${with_tclinclude+set}" = set; then withval="$with_tclinclude" with_tclinclude=${withval}fiif eval "test \"`echo '$''{'ac_cv_c_tclh'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # first check to see if --with-tclinclude was specifiedif test x"${with_tclinclude}" != x ; then if test -f ${with_tclinclude}/tclInt.h ; then ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` elif test -f ${with_tclinclude}/generic/tclInt.h ; then ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` else { echo "configure: error: ${with_tclinclude} directory doesn't contain private headers" 1>&2; exit 1; } fifi# next check if it came with Tcl configuration fileif test x"${ac_cv_c_tclconfig}" != x ; then if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/../generic; pwd)` fifi# next check in private source directory## since ls returns lowest version numbers first, reverse its outputif test x"${ac_cv_c_tclh}" = x ; then for i in \ ${srcdir}/../tcl \ `ls -dr ${srcdir}/../tcl[9].[0-9].[0-9] ${srcdir}/../tcl[9].[0-9] 2>/dev/null` \ `ls -dr ${srcdir}/../tcl[8].[2-9].[0-9] ${srcdir}/../tcl[8].[2-9] 2>/dev/null` \ ${srcdir}/../../tcl \ `ls -dr ${srcdir}/../../tcl[9].[0-9].[0-9] ${srcdir}/../../tcl[9].[0-9] 2>/dev/null` \ `ls -dr ${srcdir}/../../tcl[8].[2-9].[0-9] ${srcdir}/../../tcl[8].[2-9] 2>/dev/null` \ ${srcdir}/../../../tcl \ `ls -dr ${srcdir}/../../../tcl[9].[0-9].[0-9] ${srcdir}/../../../tcl[9].[0-9] 2>/dev/null ` \ `ls -dr ${srcdir}/../../../tcl[8].[2-9].[0-9] ${srcdir}/../../../tcl[8].[2-9] 2>/dev/null ` ; do if test -f $i/generic/tclInt.h ; then ac_cv_c_tclh=`(cd $i/generic; pwd)` break fi donefi# finally check in a few common install locations## since ls returns lowest version numbers first, reverse its outputif test x"${ac_cv_c_tclh}" = x ; then for i in \ `ls -dr /usr/local/src/tcl[9].[0-9].[0-9] /usr/local/src/tcl[9].[0-9] 2>/dev/null` \ `ls -dr /usr/local/src/tcl[8].[2-9].[0-9] /usr/local/src/tcl[8].[2-9] 2>/dev/null` \ `ls -dr /usr/local/lib/tcl[9].[0-9].[0-9] /usr/local/lib/tcl[9].[0-9] 2>/dev/null` \ `ls -dr /usr/local/lib/tcl[8].[2-9].[0-9] /usr/local/lib/tcl[8].[2-9] 2>/dev/null` \ /usr/local/src/tcl \ /usr/local/lib/tcl \ ${prefix}/include ; do if test -f $i/generic/tclInt.h ; then ac_cv_c_tclh=`(cd $i/generic; pwd)` break fi donefi# see if one is installedif test x"${ac_cv_c_tclh}" = x ; then ac_safe=`echo "tclInt.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for tclInt.h""... $ac_c" 1>&6echo "configure:1365: checking for tclInt.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1370 "configure"#include "confdefs.h"#include <tclInt.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1375: \"$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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes"else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_cv_c_tclh=installedelse echo "$ac_t""no" 1>&6ac_cv_c_tclh=""fififiif test x"${ac_cv_c_tclh}" = x ; then TCLHDIR="# no Tcl private headers found" TCLHDIRDASHI="# no Tcl private headers found" { echo "configure: error: Can't find Tcl private headers" 1>&2; exit 1; }fiif test x"${ac_cv_c_tclh}" != x ; then no_tcl="" if test x"${ac_cv_c_tclh}" = x"installed" ; then echo "$ac_t""is installed" 1>&6 TCLHDIR="" TCLHDIRDASHI="" TCL_LIBRARY="" else echo "$ac_t""found in ${ac_cv_c_tclh}" 1>&6 # this hack is cause the TCLHDIR won't print if there is a "-I" in it. TCLHDIR="${ac_cv_c_tclh}" TCLHDIRDASHI="-I${ac_cv_c_tclh}" TCL_LIBRARY=`echo $TCLHDIR | sed -e 's/generic//'`library fifiif test x"$no_tcl" = x"true" ; then echo " ERROR: Can't find Tcl directory" echo " See README for information on how to obtain Tcl." echo " If Tcl is installed, see INSTALL on how to tell" echo " configure where Tcl is installed." exit 1fi# Use -g on all systems but Linux where it upsets the dynamic X libraries.echo $ac_n "checking if we are running Linux""... $ac_c" 1>&6echo "configure:1436: checking if we are running Linux" >&5if test "x`(uname) 2>/dev/null`" = xLinux; then echo "$ac_t""yes" 1>&6 linux=1 DBG_CFLAGS=else echo "$ac_t""no" 1>&6 linux=0 DBG_CFLAGS=-gfi## Look for functions that may be missing#echo $ac_n "checking for strchr""... $ac_c" 1>&6echo "configure:1451: checking for strchr" >&5if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1456 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char strchr(); below. */#include <assert.h>/* Override any gcc2 internal prototype to avoid an error. *//* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */char strchr();int main() {/* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */#if defined (__stub_strchr) || defined (__stub___strchr)choke me#elsestrchr();#endif; return 0; }EOFif { (eval echo configure:1479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_strchr=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_strchr=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then echo "$ac_t""yes" 1>&6 cat >> confdefs.h <<\EOF#define HAVE_STRCHR 1EOFelse echo "$ac_t""no" 1>&6fi## Look for various header files#ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6echo "configure:1507: checking for stdlib.h" >&5if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1512 "configure"#include "confdefs.h"#include <stdlib.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1517: \"$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 rm -rf conftest* eval "ac_cv_header_$ac_safe=yes"else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 :else echo "$ac_t""no" 1>&6cat >> confdefs.h <<\EOF#define NO_STDLIB_H 1EOFfi# consume these flags so that user can invoke tcl-debug's configure with# the same command as Tcl's configure# Check whether --enable-load or --disable-load was given.if test "${enable_load+set}" = set; then enableval="$enable_load" disable_dl=yeselse disable_dl=nofi# Check whether --enable-gcc or --disable-gcc was given.if test "${enable_gcc+set}" = set; then enableval="$enable_gcc" enable_gcc=yeselse enable_gcc=nofiDBG_UNSHARED_LIB_FILE=libtcldbg.aecho $ac_n "checking type of library to build""... $ac_c" 1>&6echo "configure:1566: checking type of library to build" >&5# Check whether --enable-shared or --disable-shared was given.if test "${enable_shared+set}" = set; then enableval="$enable_shared" enable_shared=yeselse enable_shared=nofiif test "$enable_shared" = "yes" -a "x${TCL_SHLIB_SUFFIX}" != "x" ; then DBG_SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS# DBG_SHARED_LIB_FILE=libtcldbg$DBG_VERSION$TCL_SHLIB_SUFFIX eval "DBG_SHARED_LIB_FILE=libtcldbg${TCL_SHARED_LIB_SUFFIX}" DBG_LIB_FILE=$DBG_SHARED_LIB_FILE DBG_LIB_FILES="$DBG_SHARED_LIB_FILE $DBG_UNSHARED_LIB_FILE" echo "$ac_t""both shared and unshared" 1>&6else DBG_SHLIB_CFLAGS= DBG_SHARED_LIB_FILE="reconfigure_Tcl_for_shared_library" DBG_LIB_FILE=$DBG_UNSHARED_LIB_FILE DBG_LIB_FILES="$DBG_UNSHARED_LIB_FILE" echo "$ac_t""unshared" 1>&6fi## Set up makefile substitutions#
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -