📄 configure
字号:
fiecho "$ac_t""$ac_cv_header_stdc" 1>&6if test $ac_cv_header_stdc = yes; then cat >> confdefs.h <<\EOF#define STDC_HEADERS 1EOFfifor ac_hdr in sys/ioctl.h sys/time.h sys/types.h unistd.h sys/poll.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1796: 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 1801 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1806: \"$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>&6fidonefor ac_hdr in pthread.h getopt.h syslog.h iconv.hdoac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6echo "configure:1836: 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 1841 "configure"#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1846: \"$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>&6fidonecat > conftest.$ac_ext <<EOF#line 1875 "configure"#include "confdefs.h"int main() {char *func = __FUNCTION__;; return 0; }EOFif { (eval echo configure:1882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF#define HAVE___FUNCTION__ 1EOFelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*cat > conftest.$ac_ext <<EOF#line 1894 "configure"#include "confdefs.h"int main() {char *func = __func__;; return 0; }EOFif { (eval echo configure:1901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* cat >> confdefs.h <<\EOF#define HAVE___FUNC__ 1EOFelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*for ac_func in gettimeofday select socket strdup getopt_longdoecho $ac_n "checking for $ac_func""... $ac_c" 1>&6echo "configure:1918: 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 1923 "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:1946: \"$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>&6fidoneecho $ac_n "checking for getopt""... $ac_c" 1>&6echo "configure:1971: checking for getopt" >&5if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 1976 "configure"#include "confdefs.h"/* System header to define __stub macros and hopefully few prototypes, which can conflict with char getopt(); 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 getopt();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_getopt) || defined (__stub___getopt)choke me#elsegetopt();#endif; return 0; }EOFif { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_getopt=yes"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_getopt=no"firm -f conftest*fiif eval "test \"`echo '$ac_cv_func_'getopt`\" = yes"; then echo "$ac_t""yes" 1>&6 :else echo "$ac_t""no" 1>&6LIBOBJS="$LIBOBJS utils/attgetopt.o"fi echo $ac_n "checking for socklen_t in <sys/socket.h>""... $ac_c" 1>&6echo "configure:2028: checking for socklen_t in <sys/socket.h>" >&5if eval "test \"`echo '$''{'gw_cv_type_HAVE_SOCKLEN_T'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2033 "configure"#include "confdefs.h"#ifdef HAVE_SYS_TYPES_H#include <sys/types.h>#endif#include <sys/socket.h>int main() {socklen_t foo;; return 0; }EOFif { (eval echo configure:2044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gw_cv_type_HAVE_SOCKLEN_T=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gw_cv_type_HAVE_SOCKLEN_T=nofirm -f conftest*fiecho "$ac_t""$gw_cv_type_HAVE_SOCKLEN_T" 1>&6 if test $gw_cv_type_HAVE_SOCKLEN_T = yes; then cat >> confdefs.h <<\EOF#define HAVE_SOCKLEN_T 1EOF fi echo $ac_n "checking for getopt in <stdio.h>""... $ac_c" 1>&6echo "configure:2067: checking for getopt in <stdio.h>" >&5if eval "test \"`echo '$''{'gw_cv_func_HAVE_GETOPT_IN_STDIO_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2072 "configure"#include "confdefs.h"#include <stdio.h>int main() {void *foo = getopt;; return 0; }EOFif { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gw_cv_func_HAVE_GETOPT_IN_STDIO_H=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gw_cv_func_HAVE_GETOPT_IN_STDIO_H=nofirm -f conftest*fiecho "$ac_t""$gw_cv_func_HAVE_GETOPT_IN_STDIO_H" 1>&6 if test $gw_cv_func_HAVE_GETOPT_IN_STDIO_H = yes; then cat >> confdefs.h <<\EOF#define HAVE_GETOPT_IN_STDIO_H 1EOF fi echo $ac_n "checking for getopt in <unistd.h>""... $ac_c" 1>&6echo "configure:2101: checking for getopt in <unistd.h>" >&5if eval "test \"`echo '$''{'gw_cv_func_HAVE_GETOPT_IN_UNISTD_H'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else cat > conftest.$ac_ext <<EOF#line 2106 "configure"#include "confdefs.h"#include <unistd.h>int main() {void *foo = getopt;; return 0; }EOFif { (eval echo configure:2113: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* gw_cv_func_HAVE_GETOPT_IN_UNISTD_H=yeselse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* gw_cv_func_HAVE_GETOPT_IN_UNISTD_H=nofirm -f conftest*fiecho "$ac_t""$gw_cv_func_HAVE_GETOPT_IN_UNISTD_H" 1>&6 if test $gw_cv_func_HAVE_GETOPT_IN_UNISTD_H = yes; then cat >> confdefs.h <<\EOF#define HAVE_GETOPT_IN_UNISTD_H 1EOF fi nl='' echo "${nl}${T_MD}Checking POSIX threads support ...${T_ME}"echo $ac_n "checking for working pthreads""... $ac_c" 1>&6echo "configure:2142: checking for working pthreads" >&5if test "$cross_compiling" = yes; then echo Cross compiling - assuming they workelse cat > conftest.$ac_ext <<EOF#line 2147 "configure"#include "confdefs.h"#include <pthread.h>#include <unistd.h>int pid;void testpid(void* foo);int main(void){ pthread_t child; pid=getpid(); pthread_create(&child,NULL,(void*)testpid,NULL); pthread_join(child,NULL); return 0;}void testpid(void* foo){ int mypid=getpid(); if(mypid!=pid){ /* Pthreads states that all threads should have the same PID * we dont! */ exit(1); }else{ exit(0); }}EOFif { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen echo yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -fr conftest* echo no ;CFLAGS="$CFLAGS -DBROKEN_PTHREADS=1"firm -fr conftest*fi nl='' echo "${nl}${T_MD}Checking for libxml2 support ...${T_ME}"xml_ver_required="2.2.5"for ac_prog in xml2-config xml-configdo# Extract the first word of "$ac_prog", so it can be a program name with args.set dummy $ac_prog; ac_word=$2echo $ac_n "checking for $ac_word""... $ac_c" 1>&6echo "configure:2199: checking for $ac_word" >&5if eval "test \"`echo '$''{'ac_cv_path_XML_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else case "$XML_CONFIG" in /*) ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_XML_CONFIG="$XML_CONFIG" # Let the user override the test with a dos path. ;; *) 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_path_XML_CONFIG="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" ;;esacfiXML_CONFIG="$ac_cv_path_XML_CONFIG"if test -n "$XM
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -