Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / libpcap / configure.in.rej
blobc43d45864b4350321227d06b2fc57004adc4b4bc
1 --- configure.in        2008-10-27 18:26:13.000000000 -0700
2 +++ configure.in        2008-12-15 10:48:45.000000000 -0800
3 @@ -501,6 +501,57 @@
4  fi
5  AC_MSG_RESULT($have_socklen_t)
6  
7 +dnl HAVE_REMOTE
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   ;;
15 +esac
17 +AC_MSG_RESULT(${enable_remote})
19 +if test "$enable_remote" = "enabled"; then
21 +       dnl
22 +       dnl Checking if the remote features of libpcap are supported by
23 +       dnl the OS and must be compiled
24 +       dnl
26 +       AC_MSG_CHECKING(if remote capture is supported)
27 +       
28 +       if test -e ./remote-ext.h ; then        # Check that the remote extensions are there
29 +       
30 +               case "$V_PCAP" in
31 +               
32 +               linux)
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])
36 +                       have_remote=yes
37 +                       ;;
38 +               
39 +               bpf)
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])
43 +                       have_remote=yes
44 +                       ;;
45 +               
46 +               *)
47 +                       have_remote=no
48 +                       ;;
49 +               
50 +               esac
51 +       
52 +       AC_MSG_RESULT(${have_remote})
53 +       fi
55 +fi
56 +dnl END HAVE_REMOTE
58  AC_ARG_ENABLE(ipv6, [  --enable-ipv6           build IPv6-capable version @<:@default=yes, if getaddrinfo available@:>@],
59      [],
60      [enable_ipv6=ifavailable])
61 @@ -1007,6 +1058,10 @@
62  AC_SUBST(V_LEX)
63  AC_SUBST(V_PCAP)
64  AC_SUBST(V_FINDALLDEVS)
65 +# HAVE_REMOTE
66 +AC_SUBST(V_HAVE_REMOTE)
67 +AC_SUBST(V_REMOTE_FILES)
68 +# END HAVE_REMOTE
69  AC_SUBST(V_YACC)
70  AC_SUBST(SSRC)
71  AC_SUBST(DYEXT)