📄 configure
字号:
socket(); return 0; }EOFif { (eval echo configure:1280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_socket="none required"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*test "$ac_cv_search_socket" = "no" && for i in socket; doLIBS="-l$i $ac_func_search_save_LIBS"cat > conftest.$ac_ext <<EOF#line 1291 "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 socket();int main() {socket(); return 0; }EOFif { (eval echo configure:1302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_socket="-l$i"breakelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*doneLIBS="$ac_func_search_save_LIBS"fiecho "$ac_t""$ac_cv_search_socket" 1>&6if test "$ac_cv_search_socket" != "no"; then test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS" else : fiecho $ac_n "checking for library containing gethostbyname""... $ac_c" 1>&6echo "configure:1324: checking for library containing gethostbyname" >&5if eval "test \"`echo '$''{'ac_cv_search_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_func_search_save_LIBS="$LIBS"ac_cv_search_gethostbyname="no"cat > conftest.$ac_ext <<EOF#line 1331 "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 gethostbyname();int main() {gethostbyname(); return 0; }EOFif { (eval echo configure:1342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_gethostbyname="none required"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*test "$ac_cv_search_gethostbyname" = "no" && for i in nsl; doLIBS="-l$i $ac_func_search_save_LIBS"cat > conftest.$ac_ext <<EOF#line 1353 "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 gethostbyname();int main() {gethostbyname(); return 0; }EOFif { (eval echo configure:1364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_gethostbyname="-l$i"breakelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*doneLIBS="$ac_func_search_save_LIBS"fiecho "$ac_t""$ac_cv_search_gethostbyname" 1>&6if test "$ac_cv_search_gethostbyname" != "no"; then test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" else : fiecho $ac_n "checking for library containing sched_setscheduler""... $ac_c" 1>&6echo "configure:1386: checking for library containing sched_setscheduler" >&5if eval "test \"`echo '$''{'ac_cv_search_sched_setscheduler'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else ac_func_search_save_LIBS="$LIBS"ac_cv_search_sched_setscheduler="no"cat > conftest.$ac_ext <<EOF#line 1393 "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 sched_setscheduler();int main() {sched_setscheduler(); return 0; }EOFif { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_sched_setscheduler="none required"else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*test "$ac_cv_search_sched_setscheduler" = "no" && for i in rt; doLIBS="-l$i $ac_func_search_save_LIBS"cat > conftest.$ac_ext <<EOF#line 1415 "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 sched_setscheduler();int main() {sched_setscheduler(); return 0; }EOFif { (eval echo configure:1426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_cv_search_sched_setscheduler="-l$i"breakelse echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5firm -f conftest*doneLIBS="$ac_func_search_save_LIBS"fiecho "$ac_t""$ac_cv_search_sched_setscheduler" 1>&6if test "$ac_cv_search_sched_setscheduler" != "no"; then test "$ac_cv_search_sched_setscheduler" = "none required" || LIBS="$ac_cv_search_sched_setscheduler $LIBS" else : fiif test "${target}" = "${host}"; then case "${host}" in *-*-*linux*) cat >> confdefs.h <<EOF#define OS_LINUX EOF CFLAGS="$CFLAGS -D_BSD_SOURCE" ;; *-*-solaris*) cat >> confdefs.h <<EOF#define OS_SOLARIS EOF CFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS" ;; *-*-freebsd*) cat >> confdefs.h <<EOF#define OS_FREEBSD EOF ;; esacfi# Check whether --with-pcap or --without-pcap was given.if test "${with_pcap+set}" = set; then withval="$with_pcap" pcap="$withval"fiecho $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6echo "configure:1482: checking how to run the C preprocessor" >&5# On Suns, sometimes $CPP names a directory.if test -n "$CPP" && test -d "$CPP"; then CPP=fiif test -z "$CPP"; thenif eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext <<EOF#line 1497 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1503: \"$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="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext <<EOF#line 1514 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1520: \"$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="${CC-cc} -nologo -E" cat > conftest.$ac_ext <<EOF#line 1531 "configure"#include "confdefs.h"#include <assert.h>Syntax ErrorEOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1537: \"$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>&6ac_safe=`echo "pcap.h" | sed 'y%./+-%__p_%'`echo $ac_n "checking for pcap.h""... $ac_c" 1>&6echo "configure:1563: checking for pcap.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 1568 "configure"#include "confdefs.h"#include <pcap.h>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1573: \"$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>&6 echo $ac_n "checking for pcap.h in alternative location""... $ac_c" 1>&6echo "configure:1594: checking for pcap.h in alternative location" >&5 found="" pcap_dirs="$pcap /usr/include/pcap" for pcap in $pcap_dirs; do if test -r $pcap/pcap.h; then CFLAGS="$CFLAGS -I$pcap" found="$pcap" break fi done echo "$ac_t""$found" 1>&6 if test -z "$found"; then { echo "configure: error: pcap.h not found" 1>&2; exit 1; } fi fi# Check whether --with-libpcap or --without-libpcap was given.if test "${with_libpcap+set}" = set; then withval="$with_libpcap" libpcap="$withval"fiif test "$libpcap" = "yes"; then libpcap=""fiif test "$libpcap"; then LDFLAGS="$LDFLAGS -L$libpcap"fiecho $ac_n "checking for pcap_loop in -lpcap""... $ac_c" 1>&6echo "configure:1630: checking for pcap_loop in -lpcap" >&5ac_lib_var=`echo pcap'_'pcap_loop | 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="-lpcap $LDFLAGS $LIBS"cat > conftest.$ac_ext <<EOF#line 1638 "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 pcap_loop();int main() {pcap_loop(); return 0; }EOFif { (eval echo configure:1649: \"$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 ac_tr_lib=HAVE_LIB`echo pcap | sed -e 's/[^a-zA-Z0-9_]/_/g' \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF LIBS="-lpcap $LIBS"else echo "$ac_t""no" 1>&6{ echo "configure: error: libpcap not found" 1>&2; exit 1; }fiecho $ac_n "checking which memory bulk indexing mode to use""... $ac_c" 1>&6echo "configure:1680: checking which memory bulk indexing mode to use" >&5# Check whether --with-membulk or --without-membulk was given.if test "${with_membulk+set}" = set; then withval="$with_membulk" mem="$withval"else mem="ptr"ficase "$mem" in ptr) mem_bits="0" ;; index8) mem_bits="8" ;; index16) mem_bits="16" ;; *) { echo "configure: error: Invalid argument: "$mem"" 1>&2; exit 1; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -