configure

来自「tcl是工具命令语言」· 代码 · 共 2,244 行 · 第 1/5 页

TXT
2,244
字号
    fi    if test "${RC}" = "" ; then	{ echo "configure: error: Required resource tool 'windres' not found on PATH." 1>&2; exit 1; }    fifi#--------------------------------------------------------------------# Checks to see if the make progeam sets the $MAKE variable.#--------------------------------------------------------------------echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6echo "configure:911: checking whether ${MAKE-make} sets \${MAKE}" >&5set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftestmake <<\EOFall:	@echo 'ac_maketemp="${MAKE}"'EOF# GNU make sometimes prints "make[1]: Entering...", which would confuse us.eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`if test -n "$ac_maketemp"; then  eval ac_cv_prog_make_${ac_make}_set=yeselse  eval ac_cv_prog_make_${ac_make}_set=nofirm -f conftestmakefiif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then  echo "$ac_t""yes" 1>&6  SET_MAKE=else  echo "$ac_t""no" 1>&6  SET_MAKE="MAKE=${MAKE-make}"fi#--------------------------------------------------------------------# Perform additinal compiler tests.#--------------------------------------------------------------------echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6echo "configure:943: 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 948 "configure"#include "confdefs.h"int main() {#ifndef __CYGWIN__#define __CYGWIN__ __CYGWIN32__#endifreturn __CYGWIN__;; return 0; }EOFif { (eval echo configure:959: \"$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=yesif test "$ac_cv_cygwin" = "yes" ; then    { echo "configure: error: Compiling under Cygwin is not currently supported.A maintainer for the Cygwin port of Tcl/Tk is needed. See the READMEfile for information about building with Mingw." 1>&2; exit 1; }fiecho $ac_n "checking for SEH support in compiler""... $ac_c" 1>&6echo "configure:984: checking for SEH support in compiler" >&5if eval "test \"`echo '$''{'tcl_cv_seh'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  if test "$cross_compiling" = yes; then  tcl_cv_seh=noelse  cat > conftest.$ac_ext <<EOF#line 992 "configure"#include "confdefs.h"#define WIN32_LEAN_AND_MEAN#include <windows.h>#undef WIN32_LEAN_AND_MEANint main(int argc, char** argv) {    int a, b = 0;    __try {        a = 666 / b;    }    __except (EXCEPTION_EXECUTE_HANDLER) {        return 0;    }    return 1;}EOFif { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen  tcl_cv_seh=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*  tcl_cv_seh=nofirm -fr conftest*fifiecho "$ac_t""$tcl_cv_seh" 1>&6if test "$tcl_cv_seh" = "no" ; then    cat >> confdefs.h <<\EOF#define HAVE_NO_SEH 1EOFfi## Check to see if the excpt.h include file provided contains the# definition for EXCEPTION_DISPOSITION; if not, which is the case# with Cygwin's version as of 2002-04-10, define it to be int, # sufficient for getting the current code to work.#echo $ac_n "checking for EXCEPTION_DISPOSITION support in include files""... $ac_c" 1>&6echo "configure:1041: checking for EXCEPTION_DISPOSITION support in include files" >&5if eval "test \"`echo '$''{'tcl_cv_eh_disposition'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1046 "configure"#include "confdefs.h"#define WIN32_LEAN_AND_MEAN#include <windows.h>#undef WIN32_LEAN_AND_MEANint main() {  EXCEPTION_DISPOSITION x;; return 0; }EOFif { (eval echo configure:1059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_eh_disposition=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tcl_cv_eh_disposition=nofirm -f conftest*fiecho "$ac_t""$tcl_cv_eh_disposition" 1>&6if test "$tcl_cv_eh_disposition" = "no" ; then    cat >> confdefs.h <<\EOF#define EXCEPTION_DISPOSITION intEOFfi# Check to see if the winsock2.h include file provided contains# typedefs like LPFN_ACCEPT and friends.#echo $ac_n "checking for LPFN_ACCEPT support in winsock2.h""... $ac_c" 1>&6echo "configure:1085: checking for LPFN_ACCEPT support in winsock2.h" >&5if eval "test \"`echo '$''{'tcl_cv_lpfn_decls'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1090 "configure"#include "confdefs.h"#define WIN32_LEAN_AND_MEAN#include <windows.h>#undef WIN32_LEAN_AND_MEAN#include <winsock2.h>int main() {  LPFN_ACCEPT accept;; return 0; }EOFif { (eval echo configure:1104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_lpfn_decls=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tcl_cv_lpfn_decls=nofirm -f conftest*fiecho "$ac_t""$tcl_cv_lpfn_decls" 1>&6if test "$tcl_cv_lpfn_decls" = "no" ; then    cat >> confdefs.h <<\EOF#define HAVE_NO_LPFN_DECLS 1EOFfi# Check to see if winnt.h defines CHAR, SHORT, and LONG# even if VOID has already been #defined. The win32api# used by mingw and cygwin is known to do this.echo $ac_n "checking for winnt.h that ignores VOID define""... $ac_c" 1>&6echo "configure:1130: checking for winnt.h that ignores VOID define" >&5if eval "test \"`echo '$''{'tcl_cv_winnt_ignore_void'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1135 "configure"#include "confdefs.h"#define VOID void#define WIN32_LEAN_AND_MEAN#include <windows.h>#undef WIN32_LEAN_AND_MEANint main() {  CHAR c;  SHORT s;  LONG l;; return 0; }EOFif { (eval echo configure:1151: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_winnt_ignore_void=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tcl_cv_winnt_ignore_void=nofirm -f conftest*fiecho "$ac_t""$tcl_cv_winnt_ignore_void" 1>&6if test "$tcl_cv_winnt_ignore_void" = "yes" ; then    cat >> confdefs.h <<\EOF#define HAVE_WINNT_IGNORE_VOID 1EOFfi# Check to see if malloc.h is missing the alloca function# declaration. This is known to be a problem with Mingw.# If we compiled without the function declaration, it# would work but we would get a warning message from gcc.# If we add the function declaration ourselves, it# would not compile correctly because the _alloca# function expects the argument to be passed in a# register and not on the stack. Instead, we just# call it from inline asm code.echo $ac_n "checking for alloca declaration in malloc.h""... $ac_c" 1>&6echo "configure:1183: checking for alloca declaration in malloc.h" >&5if eval "test \"`echo '$''{'tcl_cv_malloc_decl_alloca'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1188 "configure"#include "confdefs.h"#include <malloc.h>int main() {  size_t arg = 0;  void* ptr;  ptr = alloca;  ptr = alloca(arg);; return 0; }EOFif { (eval echo configure:1202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_malloc_decl_alloca=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tcl_cv_malloc_decl_alloca=nofirm -f conftest*fiecho "$ac_t""$tcl_cv_malloc_decl_alloca" 1>&6if test "$tcl_cv_malloc_decl_alloca" = "no" &&   test "${GCC}" = "yes" ; then    cat >> confdefs.h <<\EOF#define HAVE_ALLOCA_GCC_INLINE 1EOFfi# See if the compiler supports casting to a union type.# This is used to stop gcc from printing a compiler# warning when initializing a union member.echo $ac_n "checking for cast to union support""... $ac_c" 1>&6echo "configure:1229: checking for cast to union support" >&5if eval "test \"`echo '$''{'tcl_cv_cast_to_union'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1234 "configure"#include "confdefs.h"int main() {  union foo { int i; double d; };  union foo f = (union foo) (int) 0;; return 0; }EOFif { (eval echo configure:1244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then  rm -rf conftest*  tcl_cv_cast_to_union=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  tcl_cv_cast_to_union=nofirm -f conftest*fiecho "$ac_t""$tcl_cv_cast_to_union" 1>&6if test "$tcl_cv_cast_to_union" = "yes"; then    cat >> confdefs.h <<\EOF#define HAVE_CAST_TO_UNION 1EOFfi#--------------------------------------------------------------------# Determines the correct binary file extension (.o, .obj, .exe etc.)#--------------------------------------------------------------------echo $ac_n "checking for object suffix""... $ac_c" 1>&6echo "configure:1271: 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:1277: \"$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 mingw32 environment""... $ac_c" 1>&6echo "configure:1295: 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 1300 "configure"#include "confdefs.h"int main() {return __MINGW32__;; return 0; }EOFif { (eval echo configure:1307: \"$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:1326: 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:1336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then    for file in conftest.*; do      case $file in      *.c | *.o | *.obj) ;;      *) 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=nofi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?