mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Add configure test for PCAP_NETMASK_UNKNOWN
This commit is contained in:
38
configure
vendored
38
configure
vendored
@@ -6526,6 +6526,44 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if PCAP_NETMASK_UNKNOWN is defined/handled by libpcap" >&5
|
||||
$as_echo_n "checking if PCAP_NETMASK_UNKNOWN is defined/handled by libpcap... " >&6; }
|
||||
if ${ac_cv_have_pcap_netmask_unknown+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <pcap.h>
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
|
||||
int i = PCAP_NETMASK_UNKNOWN;
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"; then :
|
||||
ac_cv_have_pcap_netmask_unknown=yes
|
||||
else
|
||||
ac_cv_have_pcap_netmask_unknown=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
||||
fi
|
||||
|
||||
if test $ac_cv_have_pcap_netmask_unknown = no; then
|
||||
|
||||
$as_echo "#define PCAP_NETMASK_UNKNOWN 0" >>confdefs.h
|
||||
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pcap_netmask_unknown" >&5
|
||||
$as_echo "$ac_cv_have_pcap_netmask_unknown" >&6; }
|
||||
|
||||
|
||||
have_pcre=no
|
||||
requested_included_pcre=no
|
||||
LIBPCREDIR=libpcre
|
||||
|
||||
Reference in New Issue
Block a user