From 7132090f6bfe5556558975a2b3507ace80388491 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 18 Aug 2008 16:16:28 +0200 Subject: [PATCH] build system: Added OpenBSD specific behavior for the tcpconns plugin. --- configure.in | 8 ++++++++ src/Makefile.am | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/configure.in b/configure.in index 2b85a2bd..106fe397 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/src/Makefile.am b/src/Makefile.am index 3c5c87b2..1e457362 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 -- 2.30.2