summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-04-13 02:21:39 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2008-04-13 02:21:39 +0000
commit00ad9470fa48e68ee0cfda2079c99dc55961e4e1 (patch)
tree726a9b72d7b1f84bd0feaed11e2757ebc402d9e0 /configure.in
parentc2f6ad83b0087a246447726a121d1694d95fc627 (diff)
downloadconntrack-tools-00ad9470fa48e68ee0cfda2079c99dc55961e4e1.tar.gz
conntrack-tools-00ad9470fa48e68ee0cfda2079c99dc55961e4e1.zip
check for pkg-config before anything (fix bogus missing libraries failure)
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 92a0389..46dd7b8 100644
--- a/configure.in
+++ b/configure.in
@@ -20,6 +20,14 @@ dnl Dependencies
LIBNFNETLINK_REQUIRED=0.0.32
LIBNETFILTER_CONNTRACK_REQUIRED=0.0.91
+AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
+if test "x$HAVE_PKG_CONFIG" = "x"
+then
+ echo "*** Error: No suitable pkg-config found. ***"
+ echo " Please install the 'pkg-config' package."
+ exit 1
+fi
+
PKG_CHECK_MODULES(LIBNFNETLINK, libnfnetlink >= $LIBNFNETLINK_REQUIRED,,
AC_MSG_ERROR(Cannot find libnfnetlink >= $LIBNFNETLINK_REQUIRED))