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>2007-06-09 18:41:28 +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>2007-06-09 18:41:28 +0000
commite0cdc12b83e62b4236f4b4bff3a4fd0475ed4822 (patch)
tree176c0af0fde545db90d7365d5b911db7a34c98c1 /configure.in
parent3e093dbcb66b3bca23f603836510b1b3032d92a5 (diff)
downloadconntrack-tools-e0cdc12b83e62b4236f4b4bff3a4fd0475ed4822.tar.gz
conntrack-tools-e0cdc12b83e62b4236f4b4bff3a4fd0475ed4822.zip
add library dependency checking
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 37e7a9c..06c787f 100644
--- a/configure.in
+++ b/configure.in
@@ -16,6 +16,16 @@ case $target in
*) AC_MSG_ERROR([Linux only, dude!]);;
esac
+dnl Dependencies
+LIBNFNETLINK_REQUIRED=0.0.25
+LIBNETFILTER_CONNTRACK_REQUIRED=0.0.80
+
+PKG_CHECK_MODULES(LIBNFNETLINK, libnfnetlink >= $LIBNFNETLINK_REQUIRED,,
+ AC_MSG_ERROR(Cannot find libnfnetlink >= $LIBNFNETLINK_REQUIRED))
+
+PKG_CHECK_MODULES(LIBNETFILTER_CONNTRACK, libnetfilter_conntrack >= $LIBNETFILTER_CONNTRACK_REQUIRED,,
+ AC_MSG_ERROR(Cannot find libnetfilter_conntrack >= $LIBNETFILTER_CONNTRACK_REQUIRED))
+
AC_CHECK_PROGS(XYACC,$YACC bison yacc,none)
if test "$XYACC" = "none"
then