build system: Added OpenBSD specific behavior for the tcpconns plugin.
authorFlorian Forster <octo@huhu.verplant.org>
Mon, 18 Aug 2008 14:16:28 +0000 (16:16 +0200)
committerFlorian Forster <octo@noris.net>
Mon, 18 Aug 2008 15:50:01 +0000 (17:50 +0200)
configure.in
src/Makefile.am

index 2b85a2b..106fe39 100644 (file)
@@ -45,6 +45,9 @@ case $host_os in
        *darwin*)
        ac_system="Darwin"
        ;;
+       *openbsd*)
+       ac_system="OpenBSD"
+       ;;
        *)
        ac_system="unknown"
 esac
@@ -2520,6 +2523,11 @@ then
        fi
 fi
 
+if test "x$ac_system" = "xOpenBSD"
+then
+       plugin_tcpconns="yes"
+fi
+
 # Mac OS X devices
 if test "x$with_libiokit" = "xyes"
 then
index 3c5c87b..1e45736 100644 (file)
@@ -679,8 +679,12 @@ if BUILD_PLUGIN_TCPCONNS
 pkglib_LTLIBRARIES += tcpconns.la
 tcpconns_la_SOURCES = tcpconns.c
 tcpconns_la_LDFLAGS = -module -avoid-version
+tcpconns_la_LIBADD =
 collectd_LDADD += "-dlopen" tcpconns.la
 collectd_DEPENDENCIES += tcpconns.la
+if BUILD_WITH_LIBKVM
+tcpconns_la_LIBADD += -lkvm
+endif
 endif
 
 if BUILD_PLUGIN_TEAMSPEAK2