1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-28 17:19:05 +00:00

o Stopped linking against libnl when not necessary (when linking

dynamically with libpcap). Patch by Kevin Locke.
This commit is contained in:
david
2011-05-13 21:59:09 +00:00
parent b98ef466b3
commit ff7e265138
3 changed files with 64 additions and 61 deletions

View File

@@ -417,6 +417,9 @@ if test $have_libpcap != yes; then
PCAP_CLEAN="pcap_clean"
PCAP_DIST_CLEAN="pcap_dist_clean"
AC_DEFINE(PCAP_INCLUDED)
# libpcap can require libnl
AC_SEARCH_LIBS(nl_handle_alloc, nl)
else
AC_DEFINE(HAVE_LIBPCAP)
LIBPCAP_LIBS="-lpcap"
@@ -579,9 +582,6 @@ AC_HELP_STRING([--without-liblua], [Compile without lua (this will exclude all o
# OpenSSL and NSE C modules can require dlopen
AC_SEARCH_LIBS(dlopen, dl)
# libpcap can require libnl
AC_SEARCH_LIBS(nl_handle_alloc, nl)
# They don't want lua
if test "$no_lua" = "yes"; then
CPPFLAGS="-DNOLUA $CPPFLAGS"