Changeset 1872
- Timestamp:
- 07/01/07 11:17:51 (19 months ago)
- Files:
-
- 1 modified
-
trunk/configure.in (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.in
r1871 r1872 213 213 214 214 dnl Use 64bits for packet counters 215 use64bit_counters=no 215 216 AC_ARG_ENABLE(64bits, 216 217 AC_HELP_STRING([--enable-64bits], [Use 64bit packet counters]), … … 218 219 AC_DEFINE([ENABLE_64BITS], [1], [Use 64bit packet counters]) 219 220 AC_MSG_NOTICE([Using u_int64_t for packet counters]) 221 use64bit_counters=yes 220 222 else 221 223 AC_MSG_NOTICE([Using u_int32_t for packet counters]) … … 595 597 AC_MSG_ERROR([Libpcap versions < 0.7.2 are not supported 596 598 Please upgrade to version 0.7.2 or better]) 599 fi 600 601 libpcap_version=unknown 602 if test $libpcap_version_096 = yes ; then 603 libpcap_version=">= 0.9.6" 604 elif test $libpcap_ver8 = yes ; then 605 libpcap_version=">= 0.8.0" 606 elif test $libcap_ver7 = yes ; then 607 libpcap_version=">= 0.7.0" 597 608 fi 598 609 … … 989 1000 dnl ################################################## 990 1001 991 t d=no1002 tcpdump_path=no 992 1003 AC_ARG_WITH(tcpdump, 993 1004 AC_HELP_STRING([--with-tcpdump=FILE], [Path to tcpdump binary]), 994 1005 [ if test -x $withval ; then 995 1006 td=$withval 996 AC_MSG_RESULT([Using tcpdump in $t d])1007 AC_MSG_RESULT([Using tcpdump in $tcpdump_path]) 997 1008 else 998 1009 AC_MSG_RESULT([Error: $withval does not exist or is not executable]) 999 1010 fi ], 1000 [ AC_PATH_PROG(t d, tcpdump, "no", [$PATH:/usr/sbin:/sbin:/usr/local/sbin]) ])1011 [ AC_PATH_PROG(tcpdump_path, tcpdump, "no", [$PATH:/usr/sbin:/sbin:/usr/local/sbin]) ]) 1001 1012 1002 1013 1003 if test "$t d" = "no"; then1014 if test "$tcpdump_path" = "no"; then 1004 1015 AC_MSG_WARN([Unable to find tcpdump. Please specify --with-tcpdump. 1005 1016 Disabling --verbose]) 1006 1017 else 1007 1018 AC_DEFINE([HAVE_TCPDUMP], [1], [Do we have tcpdump?]) 1008 AC_DEFINE_UNQUOTED(TCPDUMP_BINARY, "$t d", [The tcpdump binary initially used])1009 fi 1010 1011 1012 AM_CONDITIONAL([ENABLE_TCPDUMP], test "$t d" != "no" -a x$have_pcap_dump_fopen = xyes)1013 if test x$t d!= xno -a x$have_pcap_dump_fopen = xyes ; then1019 AC_DEFINE_UNQUOTED(TCPDUMP_BINARY, "$tcpdump_path", [The tcpdump binary initially used]) 1020 fi 1021 1022 1023 AM_CONDITIONAL([ENABLE_TCPDUMP], test "$tcpdump_path" != "no" -a x$have_pcap_dump_fopen = xyes) 1024 if test x$tcpdump_path != xno -a x$have_pcap_dump_fopen = xyes ; then 1014 1025 AC_DEFINE([ENABLE_VERBOSE], [1], [Do we have tcpdump and pcap_dump_fopen()?]) 1015 1026 else … … 1121 1132 tcpreplay.spec]) 1122 1133 1134 # Configuration results 1135 AC_MSG_RESULT( 1136 ########################################################################## 1137 TCPREPLAY Suite Configuration Results (${TCPREPLAY_VERSION}) 1138 ########################################################################## 1139 libpcap: ${foundpcap} (${libpcap_version}) 1140 libnet: ${foundnet} 1141 autogen: ${AUTOGEN} 1142 64bit counter support: ${use64bit_counters} 1143 tcpdump binary path: ${tcpdump_path} 1144 tcpreplay edit support: ${tcpreplay_edit} 1145 tcpbridge support: ${enable_tcpbridge} 1146 1147 Supported Packet Injection Methods (*): 1148 Linux PF_PACKET: ${have_pf} 1149 BSD BPF: ${have_bpf} 1150 libnet: ${have_libnet} 1151 pcap_inject: ${have_pcap_inject} 1152 pcap_sendpacket: ${have_pcap_sendpacket} 1153 1154 * In order of preference; see configure --help to override 1155 ) 1156 1157 1123 1158 case $host in 1124 1159 *-apple-darwin*) 1125 AC_MSG_WARN([OS X <= 10.4.9 has a serious problem. Please see: http://tcpreplay.synfin.net/trac/ticket/142]) 1160 AC_MSG_WARN([Apple OS X has a serious problem! 1161 Please see: http://tcpreplay.synfin.net/trac/ticket/142 for more details]) 1126 1162 ;; 1127 1163 1128 1164 *-*-cygwin) 1129 AC_MSG_WARN([Windows/Cygwin support is still somewhat experimental. Please report any bugs!]) 1165 AC_MSG_WARN([Windows/Cygwin support is still somewhat experimental. Please report any bugs! 1166 http://tcpreplay.synfin.net/trac/newticket]) 1130 1167 ;; 1131 1168 esac 1169
