Lines Matching +full:- +full:- +full:without +full:- +full:host +full:- +full:scanner
28 # At minimum, we want C++/C99-style // comments.
44 dnl releases without that fix, so that pcap-bpf.c doesn't need to
125 # "getaddrinfo()-ish function".
133 # thread-specific data on many platforms, but doesn't use it on
138 # without it, we can't check which API it has. (We assume that
205 # thread-specific data on many platforms, but doesn't use it on
210 # without it, we can't check which API it has. (We assume that
452 # No - do we have it in -lpthreads?
457 # Yes - add -lpthreads.
460 PTHREAD_LIBS="$PTHREAD_LIBS -lpthreads"
464 # No - do we have it in -lpthread?
469 # Yes - add -lpthread.
472 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
492 AC_MSG_CHECKING(if --disable-protochain option is specified)
494 AC_HELP_STRING([--disable-protochain],[disable \"protochain\" insn]))
515 # "--with-sita" selects SITA support.
518 AC_HELP_STRING([--with-sita],[include SITA support]),
528 AC_HELP_STRING([--with-pcap=TYPE],[use packet capture TYPE]))
529 if test ! -z "$with_pcap" ; then
540 # I.e., is it a header for an LBL/BSD-style capture
550 # requires that various BSD-style integer types
614 # XXX - this won't work with older kernels that have
635 # Pre-SunOS 4.x non-STREAMS NIT.
645 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
662 # Do capture-mechanism-dependent tests.
667 # Needed for common functions used by pcap-[dlpi,libdlpi].c
681 # Due to a gcc bug, the default search path for 32-bit libraries does
685 # libdlpi will have to add "-L/lib" option to "configure".
688 LDFLAGS="$LIBS -L/lib"
691 LIBS="-ldlpi $LIBS"
715 AC_MSG_ERROR(<sys/dlpi.h> is not usable on this system; it probably has a non-standard DLPI)
746 …AC_HELP_STRING([--without-libnl],[disable libnl support @<:@default=yes, on Linux, if present@:>@]…
752 incdir=-I/usr/include/libnl3
760 if test -d $withval; then
761 libnldir=-L${withval}/lib/.libs
762 incdir=-I${withval}/include
770 AC_CHECK_LIB(nl-3, nl_socket_alloc,
775 LIBS="${libnldir} -lnl-genl-3 -lnl-3 $LIBS"
779 AC_DEFINE(HAVE_LIBNL_SOCKETS,1,[libnl has new-style socket api])
782 ],[], ${incdir} ${libnldir} -lnl-genl-3 -lnl-3 )
793 LIBS="${libnldir} -lnl-genl -lnl $LIBS"
797 AC_DEFINE(HAVE_LIBNL_SOCKETS,1,[libnl has new-style socket api])
811 LIBS="${libnldir} -lnl $LIBS"
835 # <linux/if_packet.h>. If so, then pcap-linux.c can use this
838 # -Scott Barron
862 # Check whether we have the *BSD-style ioctls.
882 # --with-pcap=dag is the only way to get here, and it means
885 V_DEFS="$V_DEFS -DDAG_ONLY"
891 # --with-pcap=septel is the only way to get here, and it means
894 V_DEFS="$V_DEFS -DSEPTEL_ONLY"
900 # --with-pcap=snf is the only way to get here, and it means
903 V_DEFS="$V_DEFS -DSNF_ONLY"
932 V_FINDALLDEVS=fad-getad.c
935 # We don't have the header - give up.
936 # XXX - we could also fall back on some other
940 # but without "ifaddrs.h", if there is something
952 # getifaddrs(), but in -lsocket, not in -lxnet, so we
953 # won't find it if we link with -lxnet, which we want
961 # avoids a not-all-that-useful middleman.)
976 V_FINDALLDEVS=fad-glifc.c
978 V_FINDALLDEVS=fad-gifc.c
994 AC_ARG_ENABLE([packet-ring],
995 [AC_HELP_STRING([--enable-packet-ring],[enable packet ring support on Linux @<:@default=yes@:>@])],
1013 AC_HELP_STRING([--enable-ipv6],[build IPv6-capable version @<:@default=yes@:>@]),
1026 AC_HELP_STRING([--with-dag@<:@=DIR@:>@],[include Endace DAG support (located in directory DIR, if s…
1043 # User requested DAG-only libpcap, so we'd better have
1047 # User requested something-else-only pcap, so they don't
1058 AC_ARG_WITH([dag-includes],
1059 AC_HELP_STRING([--with-dag-includes=IDIR],[Endace DAG include directory, if not DIR/include]),
1066 AC_ARG_WITH([dag-libraries],
1067 AC_HELP_STRING([--with-dag-libraries=LDIR],[Endace DAG library directory, if not DIR/lib]),
1077 if test -z "$dag_root"; then
1081 if test -z "$dag_include_dir"; then
1085 if test -z "$dag_lib_dir"; then
1089 V_INCLS="$V_INCLS -I$dag_include_dir"
1096 SSRC="$SSRC pcap-dag.c"
1100 # Don't need to save and restore LIBS to prevent -ldag being
1101 # included if there's a found-action (arg 3).
1103 LDFLAGS="-L$dag_lib_dir"
1120 LIBS="$LIBS -ldag -ldagconf"
1121 LDFLAGS="$LDFLAGS -L$dag_lib_dir"
1141 …AC_MSG_ERROR([DAG support requested with --with-pcap=dag, but the DAG headers weren't found at $da…
1146 …AC_MSG_ERROR([DAG support requested with --with-dag, but the DAG headers weren't found at $dag_inc…
1152 AC_HELP_STRING([--with-septel@<:@=DIR@:>@],[include Septel support (located in directory DIR, if su…
1167 # User requested Septel-only libpcap, so we'd better have
1171 # User requested something-else-only pcap, so they don't
1188 if test -z "$septel_root"; then
1195 if test -r "$septel_include_dir/msg.h"; then
1202 V_INCLS="$V_INCLS -I$septel_include_dir"
1207 SSRC="$SSRC pcap-septel.c"
1217 …AC_MSG_ERROR([Septel support requested with --with-pcap=septel, but the Septel headers weren't fou…
1222 …AC_MSG_ERROR([Septel support requested with --with-septel, but the Septel headers weren't found at…
1229 AC_HELP_STRING([--with-snf@<:@=DIR@:>@],[include Myricom SNF support (located in directory DIR, if …
1246 # User requested Sniffer-only libpcap, so we'd better have
1250 # User requested something-else-only pcap, so they don't
1261 AC_ARG_WITH([snf-includes],
1262 AC_HELP_STRING([--with-snf-includes=IDIR],[Myricom SNF include directory, if not DIR/include]),
1269 AC_ARG_WITH([snf-libraries],
1270 AC_HELP_STRING([--with-snf-libraries=LDIR],[Myricom SNF library directory, if not DIR/lib]),
1283 if test -z "$snf_root"; then
1287 if test -z "$snf_include_dir"; then
1291 if test -z "$snf_lib_dir"; then
1295 if test -f "$snf_include_dir/snf.h"; then
1298 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
1309 V_INCLS="$V_INCLS -I$snf_include_dir"
1310 LIBS="$LIBS -lsnf"
1311 LDFLAGS="$LDFLAGS -L$snf_lib_dir"
1314 SSRC="$SSRC pcap-snf.c"
1324 …AC_MSG_ERROR([Myricom Sniffer support requested with --with-pcap=snf, but the Sniffer headers were…
1328 …AC_MSG_ERROR([Myricom Sniffer support requested with --with-snf, but the Sniffer headers weren't f…
1335 AC_HELP_STRING([--with-turbocap@<:@=DIR@:>@],[include Riverbed TurboCap support (located in directo…
1352 # User requested something-else-only pcap, so they don't
1370 if test ! -z "$turbocap_root"; then
1371 TURBOCAP_CFLAGS="-I$turbocap_root/include"
1372 TURBOCAP_LIBS="-L$turbocap_root/lib"
1391 SSRC="$SSRC pcap-tc.c"
1393 LIBS="$LIBS $TURBOCAP_LIBS -lTcApi -lpthread -lstdc++"
1401 …AC_MSG_ERROR([TurboCap support requested with --with-turbocap, but the TurboCap headers weren't fo…
1413 [ --enable-remote enable remote packet capture @<:@default=no@:>@
1414 --disable-remote disable remote packet capture],,
1418 AC_WARN([Remote packet capture may expose libpcap-based applications])
1433 # No. Do we have it in -lcrypt?
1438 # Yes; add -lcrypt to the libraries for rpcapd.
1440 RPCAPD_LIBS="$RPCAPD_LIBS -lcrypt"
1468 SSRC="$SSRC pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c"
1469 BUILD_RPCAPD=build-rpcapd
1470 INSTALL_RPCAPD=install-rpcapd
1477 AC_ARG_ENABLE(optimizer-dbg,
1478 AC_HELP_STRING([--enable-optimizer-dbg],[build optimizer debugging code]))
1482 AC_MSG_RESULT(${enable_optimizer_dbg-no})
1486 AC_HELP_STRING([--enable-yydebug],[build parser debugging code]))
1490 AC_MSG_RESULT(${enable_yydebug-no})
1501 # Make sure {f}lex supports the -P, --header-file, and --nounput flags
1502 # and supports processing our scanner.l.
1505 if $LEX -P pcap_ --header-file=/dev/null --nounput -t $srcdir/scanner.l > /dev/null 2>&1; then
1521 # Make sure it supports the -p flag and supports processing our
1525 if $YACC -p pcap_ -o /dev/null $srcdir/grammar.y >/dev/null 2>&1; then
1576 if test -f $pseexe ; then
1578 LIBS="-I:$pseexe"
1584 # If we're using BPF, we need "-lodm" and "-lcfg", as
1587 LIBS="-lodm -lcfg"
1594 V_CCOPT="$V_CCOPT -fno-common"
1596 AC_HELP_STRING([--disable-universal],[don't build universal on macOS]))
1600 darwin[0-7].*)
1602 # Pre-Tiger. Build only for 32-bit PowerPC; no
1609 # Tiger, prior to Intel support. Build for 32-bit
1610 # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
1613 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64"
1614 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64"
1620 # x86-64 support. Build for 32-bit PowerPC, 64-bit
1621 # PowerPC, and x86, with 32-bit PowerPC first.
1624 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386"
1625 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386"
1630 # All other Tiger, so subsequent to x86-64
1631 # support. Build for 32-bit PowerPC, 64-bit
1632 # PowerPC, x86, and x86-64, and with 32-bit PowerPC
1635 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
1636 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
1641 # Leopard. Build for 32-bit PowerPC, 64-bit
1642 # PowerPC, x86, and x86-64, with 32-bit PowerPC
1645 V_CCOPT="$V_CCOPT -arch ppc -arch ppc64 -arch i386 -arch x86_64"
1646 LDFLAGS="$LDFLAGS -arch ppc -arch ppc64 -arch i386 -arch x86_64"
1651 # Snow Leopard. Build for x86-64, x86, and
1652 # 32-bit PowerPC, with x86-64 first. (That's
1659 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386 -arch ppc"
1660 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386 -arch ppc"
1665 # Post-Snow Leopard. Build for x86-64 and
1666 # x86, with x86-64 first. (That's probably what
1668 # XXX - update if and when Apple drops support
1669 # for 32-bit x86 code.
1671 V_CCOPT="$V_CCOPT -arch x86_64 -arch i386"
1672 LDFLAGS="$LDFLAGS -arch x86_64 -arch i386"
1679 AC_DEFINE(HAVE_HPUX9,1,[on HP-UX 9.x])
1713 dnl XXX - DYEXT should be set to "sl" if this is building
1714 dnl for 32-bit PA-RISC, but should be left as "so" for
1715 dnl 64-bit PA-RISC or, I suspect, IA-64.
1716 AC_DEFINE(HAVE_HPUX10_20_OR_LATER,1,[on HP-UX 10.20 or later])
1717 if test "`uname -m`" = "ia64"; then
1724 # "-b" builds a shared library; "+h" sets the soname.
1726 SHLIB_OPT="-b"
1750 # Compiler assumed to be GCC; run-time linker may require a -R
1754 V_RFLAGS=-Wl,-R$libdir
1791 # Make sure errno is thread-safe, in case we're called in
1796 # is thread-safe (it wasn't thread-safe in some older versions).
1798 V_CCOPT="$V_CCOPT -D_TS_ERRNO"
1800 case "`uname -r`" in
1817 AC_HELP_STRING([--enable-shared],[build shared libraries @<:@default=yes, if support available@:>@]…
1847 # Check to see if the dl_hp_ppa_info_t struct has the HP-UX 11.00
1892 [AC_HELP_STRING([--enable-usb],[enable USB capture support @<:@default=yes, if support available@:>…
1897 # User requested something-else-only pcap, so they don't
1907 AC_DEFINE(PCAP_SUPPORT_USB, 1, [target host supports USB sniffing])
1908 USB_SRC=pcap-usb-linux.c
1910 ac_usb_dev_name=`udevinfo -q name -p /sys/class/usb_device/usbmon 2>/dev/null`
1911 if test $? -ne 0 ; then
1923 # Yes - include it when testing for <linux/usbdevice_fs.h>.
1995 [target host supports netfilter sniffing])
1996 NETFILTER_SRC=pcap-netfilter-linux.c
2008 [AC_HELP_STRING([--enable-netmap],[enable netmap support @<:@default=yes, if support available@:>@]…
2016 # is defined, for example, as it includes a non-existent malloc.h
2031 [target host supports netmap])
2032 NETMAP_SRC=pcap-netmap.c
2040 [AC_HELP_STRING([--enable-bluetooth],[enable Bluetooth support @<:@default=yes, if support availabl…
2045 # User requested something-else-only pcap, so they don't
2060 AC_DEFINE(PCAP_SUPPORT_BT, 1, [target host supports Bluetooth sniffing])
2061 BT_SRC=pcap-bt-linux.c
2087 [target host supports Bluetooth Monitor])
2088 BT_MONITOR_SRC=pcap-bt-monitor-linux.c
2105 AC_MSG_ERROR(Bluetooth sniffing is not supported; install bluez-lib devel to enable it)
2107 AC_MSG_NOTICE(Bluetooth sniffing is not supported; install bluez-lib devel to enable it)
2125 [AC_HELP_STRING([--enable-dbus],[enable D-Bus capture support @<:@default=yes, if support available…
2130 # User requested something-else-only pcap, so they don't
2131 # want D-Bus support.
2141 # We don't support D-Bus sniffing on macOS; see
2147 AC_MSG_ERROR([Due to freedesktop.org bug 74029, D-Bus capture support is not available on macOS])
2154 # We don't support D-Bus sniffing on macOS; see
2168 AC_CHECK_PROG([PKGCONFIG], [pkg-config], [pkg-config], [no])
2170 AC_MSG_CHECKING([for D-Bus])
2171 if "$PKGCONFIG" dbus-1; then
2173 DBUS_CFLAGS=`"$PKGCONFIG" --cflags dbus-1`
2174 DBUS_LIBS=`"$PKGCONFIG" --libs dbus-1`
2179 AC_MSG_CHECKING(whether the D-Bus library defines dbus_connection_read_write)
2190 AC_DEFINE(PCAP_SUPPORT_DBUS, 1, [support D-Bus sniffing])
2191 DBUS_SRC=pcap-dbus.c
2197 …AC_MSG_ERROR([--enable-dbus was given, but the D-Bus library doesn't define dbus_connection_read_w…
2205 AC_MSG_ERROR([--enable-dbus was given, but the dbus-1 package is not installed])
2214 [AC_HELP_STRING([--enable-rdma],[enable RDMA capture support @<:@default=yes, if support available@…
2219 # User requested something-else-only pcap, so they don't
2249 AC_DEFINE(PCAP_SUPPORT_RDMASNIFF, , [target host supports RDMA sniffing])
2250 RDMA_SRC=pcap-rdmasniff.c
2251 LIBS="-libverbs $LIBS"
2267 AC_OUTPUT_COMMANDS([if test -f .devel; then
2268 echo timestamp > stamp-h
2269 cat $srcdir/Makefile-devel-adds >> Makefile
2272 AC_OUTPUT(Makefile pcap-filter.manmisc pcap-linktype.manmisc
2273 pcap-tstamp.manmisc pcap-savefile.manfile pcap.3pcap