diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 35 |
1 files changed, 35 insertions, 0 deletions
@@ -630,6 +630,8 @@ PKGCONFIG BT_MONITOR_SRC BT_SRC PCAP_SUPPORT_BT +NETMAP_SRC +PCAP_SUPPORT_NETMAP NETFILTER_SRC PCAP_SUPPORT_NETFILTER USB_SRC @@ -752,6 +754,7 @@ enable_remote enable_universal enable_shared enable_usb +enable_netmap enable_bluetooth enable_dbus enable_packet_ring @@ -1392,6 +1395,8 @@ Optional Features: available] --enable-usb enable nusb support [default=yes, if support available] + --enable-netmap enable netmap support [default=yes, if support + available] --enable-bluetooth enable Bluetooth support [default=yes, if support available] --enable-dbus enable D-Bus capture support [default=yes, if @@ -8628,6 +8633,36 @@ fi +# Check whether --enable-netmap was given. +if test "${enable_netmap+set}" = set; then : + enableval=$enable_netmap; +else + enable_netmap=yes +fi + + +if test "x$enable_netmap" != "xno" ; then + ac_fn_c_check_header_compile "$LINENO" "net/netmap_user.h" "ac_cv_header_net_netmap_user_h" "$ac_includes_default + +" +if test "x$ac_cv_header_net_netmap_user_h" = xyes; then : + +$as_echo "#define PCAP_SUPPORT_NETMAP 1" >>confdefs.h + + NETMAP_SRC=pcap-netmap.c + { $as_echo "$as_me:${as_lineno-$LINENO}: netmap is supported" >&5 +$as_echo "$as_me: netmap is supported" >&6;} +else + { $as_echo "$as_me:${as_lineno-$LINENO}: netmap is not supported" >&5 +$as_echo "$as_me: netmap is not supported" >&6;} +fi + + + + +fi + + # Check whether --enable-bluetooth was given. if test "${enable_bluetooth+set}" = set; then : enableval=$enable_bluetooth; |