1 --- configure.in 2008-10-27 18:26:13.000000000 -0700
2 +++ configure.in 2008-12-15 10:48:45.000000000 -0800
5 AC_MSG_RESULT($have_socklen_t)
8 +AC_MSG_CHECKING(if --disable-remote option is specified)
9 +AC_ARG_ENABLE(remote, [ --disable-remote disable remote capture capabilities])
11 +case "x$enable_remote" in
12 +xyes) enable_remote=enabled ;;
13 +xno) enable_remote=disabled ;;
14 +x) enable_remote=enabled ;;
17 +AC_MSG_RESULT(${enable_remote})
19 +if test "$enable_remote" = "enabled"; then
22 + dnl Checking if the remote features of libpcap are supported by
23 + dnl the OS and must be compiled
26 + AC_MSG_CHECKING(if remote capture is supported)
28 + if test -e ./remote-ext.h ; then # Check that the remote extensions are there
33 + V_REMOTE_FILES="pcap-new.c pcap-remote.c sockutils.c"
34 + V_HAVE_REMOTE="-DHAVE_REMOTE"
35 + AC_DEFINE(HAVE_REMOTE,1,[Enable remote capture support])
40 + V_REMOTE_FILES="pcap-new.c pcap-remote.c sockutils.c"
41 + V_HAVE_REMOTE="-DHAVE_REMOTE"
42 + AC_DEFINE(HAVE_REMOTE,1,[Enable remote capture support])
52 + AC_MSG_RESULT(${have_remote})
58 AC_ARG_ENABLE(ipv6, [ --enable-ipv6 build IPv6-capable version @<:@default=yes, if getaddrinfo available@:>@],
60 [enable_ipv6=ifavailable])
61 @@ -1007,6 +1058,10 @@
64 AC_SUBST(V_FINDALLDEVS)
66 +AC_SUBST(V_HAVE_REMOTE)
67 +AC_SUBST(V_REMOTE_FILES)