summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-07-08 15:06:16 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-07-08 15:06:16 +0200
commitc11ff891614efc8b939d906c00ed63b02f807f13 (patch)
treea002967526444b36ce8ad3fce795680acd42e57c /configure
parentb05baa0d26ea0107575336070cee2496c24c8f6a (diff)
configure: Fix check for libnetfilter-conntrack
Correct the type to struct nf_conntrack and call a function to prevent the variable from getting optimized away by the compiler and cause a linker call. Also add the proper linker flag. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 4bbbaed..74e1c14 100755
--- a/configure
+++ b/configure
@@ -208,11 +208,13 @@ check_libnf_ct()
void main(void)
{
- struct nfconntrack *ct;
+ struct nf_conntrack *ct;
+
+ const uint32_t id = nfct_get_attr_u32(ct, ATTR_ID);
}
EOF
- $CC -o $TMPDIR/nfcttest $TMPDIR/nfcttest.c >> $TMPDIR/config.log 2>&1
+ $CC -o $TMPDIR/nfcttest $TMPDIR/nfcttest.c -lnetfilter_conntrack >> $TMPDIR/config.log 2>&1
if [ ! -x $TMPDIR/nfcttest ] ; then
echo "[NO]"
MISSING_DEFS=1