path: root/
diff options
authorJan Engelhardt <>2010-10-19 16:02:04 +0200
committerJan Engelhardt <>2010-10-19 17:53:28 +0200
commit7607e809e947dbdc89de84cbad960e5aa0accc91 (patch)
tree2b7e93f85aac8575eeadcc2ebb41b38dfa24ffa7 /
parentd6484ee2f3b256ec2a011bad383175388fd4ee05 (diff)
build: use libmnl's pkgconfig files
libmnl installs .pc files that we can directly use and which are preferable over AC_CHECK_LIB. Also make sure that is linked with libmnl, otherwise linking errors can ensue when a program tries to link to libipset. Furthermore, remove the now-unused LIBS variable. Signed-off-by: Jan Engelhardt <>
Diffstat (limited to '')
1 files changed, 1 insertions, 4 deletions
diff --git a/ b/
index 906ef84..99129ea 100644
--- a/
+++ b/
@@ -109,10 +109,7 @@ AC_PROG_INSTALL
dnl Checks for libraries
-AC_CHECK_LIB([mnl], [mnl_socket_open])
-if test x"${ac_cv_lib_mnl_mnl_socket_open}" = xno; then
- AC_MSG_ERROR(libmnl not found)
+PKG_CHECK_MODULES([libmnl], [libmnl >= 1])
dnl Checks for header files