diff options
author | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org> | 2006-08-03 10:37:00 +0000 |
---|---|---|
committer | /C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org> | 2006-08-03 10:37:00 +0000 |
commit | 42755eefea4ffcc2b160468f3a1a6fc575d5061a (patch) | |
tree | 11735cd1418b908213b07bd7b88b4d8ecf543517 /configure.in | |
parent | c27661b3dc89496052e4d9e5a0830f828475ac5a (diff) | |
download | conntrack-tools-42755eefea4ffcc2b160468f3a1a6fc575d5061a.tar.gz conntrack-tools-42755eefea4ffcc2b160468f3a1a6fc575d5061a.zip |
[PATCH 5/6] conntrack pkt-config changes (KOVACS Krisztian <hidden@balabit.hu>)
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 37 |
1 files changed, 11 insertions, 26 deletions
diff --git a/configure.in b/configure.in index 2692b67..1b1b391 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,6 @@ AC_INIT AC_CANONICAL_SYSTEM AM_INIT_AUTOMAKE(conntrack, 1.00beta2) -#AM_CONFIG_HEADER(config.h) AC_PROG_CC AM_PROG_LIBTOOL @@ -15,14 +14,14 @@ case $target in *) AC_MSG_ERROR([Linux only, dude!]);; esac -# Checks for libraries. -# FIXME: Replace `main' with a function in `-lc': -dnl AC_CHECK_LIB([c], [main]) -# FIXME: Replace `main' with a function in `-ldl': - -AC_CHECK_LIB([dl], [dlopen]) -AC_CHECK_LIB([netfilter_conntrack], [nfct_dump_conntrack_table] ,,,[-lnetfilter_conntrack]) +dnl Dependencies +LIBNFCONNTRACK_REQUIRED=0.0.31 + +AC_CHECK_LIB(dl, dlopen) +PKG_CHECK_MODULES(LIBNFCONNTRACK, libnetfilter_conntrack >= $LIBNFCONNTRACK_REQUIRED,, + AC_MSG_ERROR(Cannot find libnetfilter_conntrack >= $LIBNFCONNTRACK_REQUIRED)) + AC_CHECK_HEADERS(arpa/inet.h) dnl check for inet_pton AC_CHECK_FUNCS(inet_pton) @@ -56,19 +55,6 @@ int main() ], AC_MSG_RESULT(no), AC_MSG_RESULT(no)) fi -# Checks for header files. -dnl AC_HEADER_STDC -dnl AC_CHECK_HEADERS([netinet/in.h stdlib.h]) - -# Checks for typedefs, structures, and compiler characteristics. -dnl AC_C_CONST -dnl AC_C_INLINE - -# Checks for library functions. -dnl AC_FUNC_MALLOC -dnl AC_FUNC_VPRINTF -dnl AC_CHECK_FUNCS([memset]) - dnl-------------------------------- if test ! -z "$libdir"; then @@ -78,10 +64,9 @@ fi dnl-------------------------------- -dnl AC_CONFIG_FILES([Makefile -dnl debug/Makefile -dnl debug/src/Makefile -dnl extensions/Makefile -dnl src/Makefile]) +CFLAGS="$CFLAGS $LIBNFCONNTRACK_CFLAGS" +CONNTRACK_LIBS="$LIBNFCONNTRACK_LIBS" + +AC_SUBST(CONNTRACK_LIBS) AC_OUTPUT(Makefile src/Makefile extensions/Makefile include/Makefile) |