Code

Merge branch 'master' into collectd-4
[collectd.git] / src / Makefile.am
index cbc92b270da7476f13017915f5b4353742019f69..0610aa694fa01d66d8c8555353943476bced7d1e 100644 (file)
@@ -237,6 +237,17 @@ collectd_LDADD += "-dlopen" hddtemp.la
 collectd_DEPENDENCIES += hddtemp.la
 endif
 
+if BUILD_MODULE_IPTABLES
+pkglib_LTLIBRARIES += iptables.la
+iptables_la_SOURCES = iptables.c
+iptables_la_LDFLAGS = -module -avoid-version
+if BUILD_WITH_LIBIPTC
+iptables_la_LDFLAGS += -liptc
+endif
+collectd_LDADD += "-dlopen" iptables.la
+collectd_DEPENDENCIES += iptables.la
+endif
+
 if BUILD_MODULE_IRQ
 pkglib_LTLIBRARIES += irq.la
 irq_la_SOURCES = irq.c