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

📄 configure

📁 Windump3.6.2源代码
💻
📖 第 1 页 / 共 5 页
字号:
#include "confdefs.h"#include <$ac_hdr>EOFac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"{ (eval echo configure:1428: \"$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>&6fidoneecho $ac_n "checking for smiInit in -lsmi""... $ac_c" 1>&6echo "configure:1455: checking for smiInit in -lsmi" >&5ac_lib_var=`echo smi'_'smiInit | 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="-lsmi  $LIBS"cat > conftest.$ac_ext <<EOF#line 1463 "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 smiInit();int main() {smiInit(); return 0; }EOFif { (eval echo configure:1474: \"$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 smi | sed -e 's/[^a-zA-Z0-9_]/_/g' \    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`  cat >> confdefs.h <<EOF#define $ac_tr_lib 1EOF  LIBS="-lsmi $LIBS"else  echo "$ac_t""no" 1>&6fiecho $ac_n "checking whether to enable libsmi""... $ac_c" 1>&6echo "configure:1502: checking whether to enable libsmi" >&5        if test "$cross_compiling" = yes; then   echo "$ac_t""not when cross-compiling" 1>&6  libsmi=noelse  cat > conftest.$ac_ext <<EOF#line 1509 "configure"#include "confdefs.h" /* libsmi available check */#include <smi.h>main(){  int current, revision, age, n;  const int required = 2;  if (smiInit(""))     exit(1);  if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))    exit(2);  n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);  if (n != 3)    exit(3);  if (required < current - age || required > current)    exit(4);  exit(0);}EOFif { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen   echo "$ac_t""yes" 1>&6  cat >> confdefs.h <<\EOF#define LIBSMI 1EOF  libsmi=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*   echo "$ac_t""no" 1>&6  libsmi=nofirm -fr conftest*fiCFLAGS="$CFLAGS -Dss_family=__ss_family -Dss_len=__ss_len"echo $ac_n "checking whether to enable ipv6""... $ac_c" 1>&6echo "configure:1552: checking whether to enable ipv6" >&5# Check whether --enable-ipv6 or --disable-ipv6 was given.if test "${enable_ipv6+set}" = set; then  enableval="$enable_ipv6"   case "$enableval" inyes)   echo "$ac_t""yes" 1>&6       LOCALSRC="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"       cat >> confdefs.h <<\EOF#define INET6 1EOF       ipv6=yes       ;;*)       echo "$ac_t""no" 1>&6       ipv6=no       ;;  esac else  if test "$cross_compiling" = yes; then   echo "$ac_t""no" 1>&6  ipv6=noelse  cat > conftest.$ac_ext <<EOF#line 1577 "configure"#include "confdefs.h" /* AF_INET6 available check */#include <sys/types.h>#include <sys/socket.h>main(){ if (socket(AF_INET6, SOCK_STREAM, 0) < 0)   exit(1); else   exit(0);}EOFif { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/nullthen   echo "$ac_t""yes" 1>&6  LOCALSRC="print-ip6.c print-ip6opts.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"  cat >> confdefs.h <<\EOF#define INET6 1EOF  ipv6=yeselse  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5  rm -fr conftest*   echo "$ac_t""no" 1>&6  ipv6=nofirm -fr conftest*fifiipv6type=unknownipv6lib=noneipv6trylibc=noif test "$ipv6" = "yes"; then	echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6echo "configure:1619: checking ipv6 stack type" >&5	for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do		case $i in		inria)						cat > conftest.$ac_ext <<EOF#line 1624 "configure"#include "confdefs.h"dnl#include <netinet/in.h>#ifdef IPV6_INRIA_VERSIONyes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  ipv6type=$i;				CFLAGS="-DINET6 $CFLAGS"firm -f conftest*			;;		kame)						cat > conftest.$ac_ext <<EOF#line 1643 "configure"#include "confdefs.h"dnl#include <netinet/in.h>#ifdef __KAME__yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  ipv6type=$i;				ipv6lib=inet6;				ipv6libdir=/usr/local/v6/lib;				ipv6trylibc=yes;				CFLAGS="-DINET6 $CFLAGS"firm -f conftest*			;;		linux-glibc)						cat > conftest.$ac_ext <<EOF#line 1665 "configure"#include "confdefs.h"dnl#include <features.h>#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  ipv6type=$i;				CFLAGS="-DINET6 $CFLAGS"firm -f conftest*			;;		linux-libinet6)						if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then				ipv6type=$i				ipv6lib=inet6				ipv6libdir=/usr/inet6/lib				ipv6trylibc=yes;				CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"			fi			;;		toshiba)			cat > conftest.$ac_ext <<EOF#line 1693 "configure"#include "confdefs.h"dnl#include <sys/param.h>#ifdef _TOSHIBA_INET6yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  ipv6type=$i;				ipv6lib=inet6;				ipv6libdir=/usr/local/v6/lib;				CFLAGS="-DINET6 $CFLAGS"firm -f conftest*			;;		v6d)			cat > conftest.$ac_ext <<EOF#line 1714 "configure"#include "confdefs.h"dnl#include </usr/local/v6/include/sys/v6config.h>#ifdef __V6D__yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  ipv6type=$i;				ipv6lib=v6;				ipv6libdir=/usr/local/v6/lib;				CFLAGS="-I/usr/local/v6/include $CFLAGS"firm -f conftest*			;;		zeta)			cat > conftest.$ac_ext <<EOF#line 1735 "configure"#include "confdefs.h"dnl#include <sys/param.h>#ifdef _ZETA_MINAMI_INET6yes#endifEOFif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |  egrep "yes" >/dev/null 2>&1; then  rm -rf conftest*  ipv6type=$i;				ipv6lib=inet6;				ipv6libdir=/usr/local/v6/lib;				CFLAGS="-DINET6 $CFLAGS"firm -f conftest*			;;		esac		if test "$ipv6type" != "unknown"; then			break		fi	done	echo "$ac_t""$ipv6type" 1>&6fiif test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then	if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then		LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"		echo "You have $ipv6lib library, using it"	else		if test "$ipv6trylibc" = "yes"; then			echo "You do not have $ipv6lib library, using libc"		else			echo 'Fatal: no $ipv6lib library found.  cannot continue.'			echo "You need to fetch lib$ipv6lib.a from appropriate"			echo 'ipv6 kit and compile beforehand.'			exit 1		fi	fifiif test "$ipv6" = "yes"; then	echo $ac_n "checking for library containing getaddrinfo""... $ac_c" 1>&6echo "configure:1782: checking for library containing getaddrinfo" >&5if eval "test \"`echo '$''{'ac_cv_search_getaddrinfo'+set}'`\" = set"; then  echo $ac_n "(cached) $ac_c" 1>&6else  ac_func_search_save_LIBS="$LIBS"ac_cv_search_getaddrinfo="no"cat > conftest.$ac_ext <<EOF#line 1789 "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 getaddrinfo();int main() {getaddrinfo(); return 0; }EOFif { (eval echo configure:1800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  ac_cv_search_getaddrinfo="none required"else  echo "configure: failed program was:" >&5  cat conftest.$ac_ext >&5firm -f conftest*test "$ac_cv_search_getaddrinfo" = "no" && for i in socket; doLIBS="-l$i  $ac_func_search_save_LIBS"cat > conftest.$ac_ext <<EOF#line 1811 "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 getaddrinfo();int main() {getaddrinfo(); return 0; }EOFif { (eval echo configure:1822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then  rm -rf conftest*  ac_cv_search_getaddrinfo="-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_getaddrinfo" 1>&6if test "$ac_cv_search_getaddrinfo" != "no"; then  test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"  	echo $ac_n "checking getaddrinfo bug""... $ac_c" 1>&6echo "configure:1839: checking getaddrinfo bug" >&5	if test "$cross_compiling" = yes; then  echo "$ac_t""buggy" 1>&6	buggygetaddrinfo=yeselse  cat > conftest.$ac_ext <<EOF#line 1845 "configure"#include "confdefs.h"#include <sys/types.h>#include <netdb.h>#include <string.h>#include <sys/socket.h>#include <netinet/in.h>main(){  int passive, gaierr, inet4 = 0, inet6 = 0;  struct addrinfo hints, *ai, *aitop;  char straddr[INET6_ADDRSTRLEN], strport[16];  for (passive = 0; passive <= 1; passive++) {    memset(&hints, 0, sizeof(hints));    hints.ai_family = AF_UNSPEC;    hints.ai_flags = passive ? AI_PASSIVE : 0;    hints.ai_socktype = SOCK_STREAM;    if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {      (void)gai_strerror(gaierr);      goto bad;    }    for (ai = aitop; ai; ai = ai->ai_next) {      if (ai->ai_addr == NULL ||          ai->ai_addrlen == 0 ||          getnameinfo(ai->ai_addr, ai->ai_addrlen,                      straddr, sizeof(straddr), strport, sizeof(strport),                      NI_NUMERICHOST|NI_NUMERICSERV) != 0) {        goto bad;      }      switch (ai->ai_family) {      case AF_INET:        if (strcmp(strport, "54321") != 0) {          goto bad;        }        if (passive) {          if (strcmp(straddr, "0.0.0.0") != 0) {            goto bad;          }        } else {          if (strcmp(straddr, "127.0.0.1") != 0) {            goto bad;          }        }        inet4++;        break;      case AF_INET6:        if (strcmp(strport, "54321") != 0) {          goto bad;        }        if (passive) {

⌨️ 快捷键说明

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