diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-03-18 00:55:10 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2017-03-18 00:55:10 +0200 |
commit | fa57c9e50d49f3b51dcd9a5f7ec8798153af5992 (patch) | |
tree | 4cf9a1330952b03446f130119a76823e1a3639a4 /configure.ac | |
parent | 518fb596709b39a374820471cb146f481f0b8340 (diff) |
added connection tracking information via netlink
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index db6c25936c..e8fe1974c9 100644 --- a/configure.ac +++ b/configure.ac @@ -363,12 +363,21 @@ AM_CONDITIONAL([ENABLE_PLUGIN_FREEIPMI], [test "${enable_plugin_freeipmi}" = "ye # ----------------------------------------------------------------------------- # nfacct.plugin - libmnl, libnetfilter_acct +AC_CHECK_HEADERS_ONCE([linux/netfilter/nfnetlink_conntrack.h]) + PKG_CHECK_MODULES( [NFACCT], [libnetfilter_acct], [have_libnetfilter_acct=yes], [have_libnetfilter_acct=no] ) + +if test "${have_libnetfilter_acct}" = "yes"; then + AC_DEFINE([HAVE_LIBNETFILTER_ACCT], [1], [libnetfilter_acct usability]) + OPTIONAL_NFACCT_CLFAGS="${OPTIONAL_NFACCT_CLFAGS} ${NFACCT_CFLAGS}" + OPTIONAL_NFACCT_LIBS="${OPTIONAL_NFACCT_LIBS} ${NFACCT_LIBS}" +fi + PKG_CHECK_MODULES( [LIBMNL], [libmnl], @@ -376,6 +385,12 @@ PKG_CHECK_MODULES( [have_libmnl=no] ) +if test "${have_libmnl}" = "yes"; then + AC_DEFINE([HAVE_LIBMNL], [1], [libmnl usability]) + OPTIONAL_NFACCT_CLFAGS="${OPTIONAL_NFACCT_CLFAGS} ${LIBMNL_CFLAGS}" + OPTIONAL_NFACCT_LIBS="${OPTIONAL_NFACCT_LIBS} ${LIBMNL_LIBS}" +fi + test "${enable_plugin_nfacct}" = "yes" -a "${have_libnetfilter_acct}" != "yes" && \ AC_MSG_ERROR([netfilter_acct required but not found]) |