From: Jeff Lucovsky Date: Sat, 11 Dec 2021 13:45:57 +0000 (-0500) Subject: netmap: allow specifying a library directory X-Git-Tag: suricata-6.0.9~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26b78abc0f056f9fc229b94f772dd410fb593171;p=thirdparty%2Fsuricata.git netmap: allow specifying a library directory Ticket: #4482 (cherry picked from commit 142a57997199a8d7cd90085dd1c2c09a949aa948) --- diff --git a/configure.ac b/configure.ac index c2d472aea6..3feacd5ac7 100644 --- a/configure.ac +++ b/configure.ac @@ -1488,6 +1488,9 @@ AC_ARG_WITH(netmap_includes, [ --with-netmap-includes=DIR netmap include directory], [with_netmap_includes="$withval"],[with_netmap_includes=no]) + AC_ARG_WITH(netmap_libraries, + [ --with-netmap-libraries=DIR netmap library directory], + [with_netmap_libraries="$withval"],[with_netmap_libraries=no]) AS_IF([test "x$enable_netmap" = "xyes"], [ AC_DEFINE([HAVE_NETMAP],[1],(NETMAP support enabled)) @@ -1496,6 +1499,10 @@ CPPFLAGS="${CPPFLAGS} -I${with_netmap_includes}" fi + if test "$with_netmap_libraries" != "no"; then + LDFLAGS="${LDFLAGS} -L${with_netmap_libraries}" + fi + AC_CHECK_HEADER(net/netmap_user.h,,[AC_MSG_ERROR(net/netmap_user.h not found ...)],) have_recent_netmap="no"