⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure

📁 tcl是工具命令语言
💻
📖 第 1 页 / 共 5 页
字号:
  echo "$ac_err" >&5  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  CPP="${CC-cc} -nologo -E"  cat > conftest.$ac_ext <<EOF#line 884 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:890: \"$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*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>&6for ac_hdr in unistd.h limits.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:918: checking for $ac_hdr" >&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 923 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:928: \"$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_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`  cat >> confdefs.h <<EOF#define $ac_tr_hdr 1EOF else  echo "$ac_t""no" 1>&6fidone#------------------------------------------------------------------------# Threads support#------------------------------------------------------------------------    echo $ac_n "checking for building with threads""... $ac_c" 1>&6echo "configure:961: checking for building with threads" >&5    # Check whether --enable-threads or --disable-threads was given.if test "${enable_threads+set}" = set; then  enableval="$enable_threads"  tcl_ok=$enablevalelse  tcl_ok=nofi    if test "$tcl_ok" = "yes"; then	echo "$ac_t""yes" 1>&6	TCL_THREADS=1	cat >> confdefs.h <<\EOF#define TCL_THREADS 1EOF	# USE_THREAD_ALLOC tells us to try the special thread-based	# allocator that significantly reduces lock contention	cat >> confdefs.h <<\EOF#define USE_THREAD_ALLOC 1EOF	cat >> confdefs.h <<\EOF#define _REENTRANT 1EOF	cat >> confdefs.h <<\EOF#define _THREAD_SAFE 1EOF	echo $ac_n "checking for pthread_mutex_init in -lpthread""... $ac_c" 1>&6echo "configure:993: checking for pthread_mutex_init in -lpthread" >&5ac_lib_var=`echo pthread'_'pthread_mutex_init | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-lpthread  $LIBS"cat > conftest.$ac_ext <<EOF#line 1001 "configure"#include "confdefs.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 pthread_mutex_init();int main() {pthread_mutex_init(); return 0; }EOFif { (eval echo configure:1012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6  tcl_ok=yeselse  echo "$ac_t""no" 1>&6tcl_ok=nofi	if test "$tcl_ok" = "no"; then	    # Check a little harder for __pthread_mutex_init in the same	    # library, as some systems hide it there until pthread.h is	    # defined.  We could alternatively do an AC_TRY_COMPILE with	    # pthread.h, but that will work with libpthread really doesn't	    # exist, like AIX 4.2.  [Bug: 4359]	    echo $ac_n "checking for __pthread_mutex_init in -lpthread""... $ac_c" 1>&6echo "configure:1040: checking for __pthread_mutex_init in -lpthread" >&5ac_lib_var=`echo pthread'_'__pthread_mutex_init | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-lpthread  $LIBS"cat > conftest.$ac_ext <<EOF#line 1048 "configure"#include "confdefs.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 __pthread_mutex_init();int main() {__pthread_mutex_init(); return 0; }EOFif { (eval echo configure:1059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6  tcl_ok=yeselse  echo "$ac_t""no" 1>&6tcl_ok=nofi	fi	if test "$tcl_ok" = "yes"; then	    # The space is needed	    THREADS_LIBS=" -lpthread"	else	    echo $ac_n "checking for pthread_mutex_init in -lpthreads""... $ac_c" 1>&6echo "configure:1087: checking for pthread_mutex_init in -lpthreads" >&5ac_lib_var=`echo pthreads'_'pthread_mutex_init | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-lpthreads  $LIBS"cat > conftest.$ac_ext <<EOF#line 1095 "configure"#include "confdefs.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 pthread_mutex_init();int main() {pthread_mutex_init(); return 0; }EOFif { (eval echo configure:1106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6  tcl_ok=yeselse  echo "$ac_t""no" 1>&6tcl_ok=nofi	    if test "$tcl_ok" = "yes"; then		# The space is needed		THREADS_LIBS=" -lpthreads"	    else		echo $ac_n "checking for pthread_mutex_init in -lc""... $ac_c" 1>&6echo "configure:1132: checking for pthread_mutex_init in -lc" >&5ac_lib_var=`echo c'_'pthread_mutex_init | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-lc  $LIBS"cat > conftest.$ac_ext <<EOF#line 1140 "configure"#include "confdefs.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 pthread_mutex_init();int main() {pthread_mutex_init(); return 0; }EOFif { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6  tcl_ok=yeselse  echo "$ac_t""no" 1>&6tcl_ok=nofi	    	if test "$tcl_ok" = "no"; then		    echo $ac_n "checking for pthread_mutex_init in -lc_r""... $ac_c" 1>&6echo "configure:1174: checking for pthread_mutex_init in -lc_r" >&5ac_lib_var=`echo c_r'_'pthread_mutex_init | sed 'y%./+-%__p_%'`if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_save_LIBS="$LIBS"LIBS="-lc_r  $LIBS"cat > conftest.$ac_ext <<EOF#line 1182 "configure"#include "confdefs.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 pthread_mutex_init();int main() {pthread_mutex_init(); return 0; }EOFif { (eval echo configure:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_lib_$ac_lib_var=no"firm -f conftest*LIBS="$ac_save_LIBS"fiif eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then  echo "$ac_t""yes" 1>&6  tcl_ok=yeselse  echo "$ac_t""no" 1>&6tcl_ok=nofi		    if test "$tcl_ok" = "yes"; then			# The space is needed			THREADS_LIBS=" -pthread"		    else			TCL_THREADS=0			echo "configure: warning: "Don t know how to find pthread lib on your system - you must disable thread support or edit the LIBS in the Makefile..."" 1>&2		    fi	    	fi	    fi	fi	# Does the pthread-implementation provide	# 'pthread_attr_setstacksize' ?	ac_saved_libs=$LIBS	LIBS="$LIBS $THREADS_LIBS"	for ac_func in pthread_attr_setstacksizedoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1233: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1238 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char $ac_func(); 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 $ac_func();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_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }EOFif { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  eval "ac_cv_func_$ac_func=yes"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -rf conftest*  eval "ac_cv_func_$ac_func=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then  echo "$ac_t""yes" 1>&6    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`  cat >> confdefs.h <<EOF#define $ac_tr_func 1EOF else  echo "$ac_t""no" 1>&6fidone	LIBS=$ac_saved_libs	for ac_func in readdir_rdoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1289: checking for $ac_func" >&5if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  cat > conftest.$ac_ext <<EOF#line 1294 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes,    which can conflict with char $ac_func(); 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 $ac_func();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_$ac_func) || defined (__stub___$ac_func)choke me#else$ac_func();#endif; return 0; }

⌨️ 快捷键说明

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