diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-05-24 01:28:39 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-05-24 01:28:39 +0200 |
commit | 1d2c692c1237f51058b91fd3086d724daf34e9f9 (patch) | |
tree | 1aac5ddd20dddef98bafe8c20f9f0244ad19ecfc /configure.ac | |
parent | 89486f4f9a4f5e506e48a6c10ba0e9c7e5aa9ecd (diff) |
added Npcap support (fixes #14)
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5a6af52..d1b48a7 100644 --- a/configure.ac +++ b/configure.ac @@ -128,6 +128,16 @@ case ${pcap_enabled} in *) AC_MSG_ERROR([Unknown option \`${pcap_enabled}\` for --disable-pcap]) ;; esac +dnl `--enable-npcap`: Enable npcap interface (Windows only!) +AC_ARG_ENABLE([npcap], + [AS_HELP_STRING([--enable-npcap], [Enable npcap support. (Windows only; default: disabled)])],[npcap_enabled=yes],) +npcap_enabled=$(echo ${npcap_enabled}) +case ${npcap_enabled} in + 1|y|yes) pcap_enabled=yes ;; + ''|0|n|no) pcap_enabled= ;; + *) AC_MSG_ERROR([Unknown option \`${npcap_enabled}\` for --enable-npcap]) ;; +esac + dnl `--disable-selinux`: Enabled if found. AC_ARG_ENABLE([selinux], [AS_HELP_STRING([--disable-selinux], [Disable SELINUX support. (default: enabled if found)])],,[selinux_enabled=yes]) @@ -203,6 +213,7 @@ AC_SEARCH_LIBS([__android_log_vprint], [log],,,) dnl Set automake conf vars AM_CONDITIONAL([HAVE_PCAP], [test x"${pcap_enabled}" = xyes]) +AM_CONDITIONAL([HAVE_NPCAP], [test x"${npcap_enabled}" = xyes]) AM_CONDITIONAL([HAVE_SELINUX], [test x"${selinux_enabled}" = xyes]) AM_CONDITIONAL([IS_WINDOWS], [test x"${use_msw}" = xyes]) AM_CONDITIONAL([HAVE_ICMPFILTER], [test x"${with_icmp_filter}" = xyes]) |