From 7607e809e947dbdc89de84cbad960e5aa0accc91 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 19 Oct 2010 16:02:04 +0200 Subject: 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 libipset.so 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 --- configure.ac | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 906ef84..99129ea 100644 --- a/configure.ac +++ b/configure.ac @@ -109,10 +109,7 @@ AC_PROG_INSTALL AC_PROG_LN_S 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) -fi +PKG_CHECK_MODULES([libmnl], [libmnl >= 1]) dnl Checks for header files -- cgit v1.2.3