diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-07-08 15:06:16 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-07-08 15:06:16 +0200 |
commit | c11ff891614efc8b939d906c00ed63b02f807f13 (patch) | |
tree | a002967526444b36ce8ad3fce795680acd42e57c /configure | |
parent | b05baa0d26ea0107575336070cee2496c24c8f6a (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-x | configure | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |