Also check in ip4tc for iptc_init
authorAndrew Elwell <Andrew.Elwell@gmail.com>
Sun, 26 Feb 2012 21:32:08 +0000 (22:32 +0100)
committerFlorian Forster <octo@collectd.org>
Tue, 28 Feb 2012 08:13:30 +0000 (09:13 +0100)
./configure --enable-iptables was failing on fedora as iptc_init
wasn't found. This patches configure.in to also look in ip4tc

Signed-off-by: Florian Forster <octo@collectd.org>
configure.in

index 0acad70..02a6361 100644 (file)
@@ -1649,9 +1649,10 @@ then
        AC_CHECK_TYPES([iptc_handle_t, ip6tc_handle_t], [], [])
 fi
 # Check for the iptc_init symbol in the library.
+# This could be in iptc or ip4tc
 if test "x$with_libiptc" = "xpkgconfig"
 then
-       AC_CHECK_LIB(iptc, iptc_init,
+       AC_SEARCH_LIBS(iptc_init, [iptc ip4tc],
                        [with_libiptc="pkgconfig"],
                        [with_libiptc="no"],
                        [$with_libiptc_libs])