From 505c6b2a36ae8e3dc5b4bbbfb86262be8c7904ce Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 17 Mar 2010 18:36:05 +0100 Subject: [PATCH] Build system: Add the "modbus" plugin. --- configure.in | 2 ++ src/Makefile.am | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/configure.in b/configure.in index 417da4da..1a63dedd 100644 --- a/configure.in +++ b/configure.in @@ -4263,6 +4263,7 @@ AC_PLUGIN([mbmon], [yes], [Query mbmond]) AC_PLUGIN([memcachec], [$with_libmemcached], [memcachec statistics]) AC_PLUGIN([memcached], [yes], [memcached statistics]) AC_PLUGIN([memory], [$plugin_memory], [Memory usage]) +AC_PLUGIN([modbus], [$with_libmodbus], [Modbus plugin]) AC_PLUGIN([multimeter], [$plugin_multimeter], [Read multimeter values]) AC_PLUGIN([mysql], [$with_libmysql], [MySQL statistics]) AC_PLUGIN([netapp], [$with_libnetapp], [NetApp plugin]) @@ -4575,6 +4576,7 @@ Configuration: memcachec . . . . . . $enable_memcachec memcached . . . . . . $enable_memcached memory . . . . . . . $enable_memory + modbus . . . . . . . $enable_modbus multimeter . . . . . $enable_multimeter mysql . . . . . . . . $enable_mysql netapp . . . . . . . $enable_netapp diff --git a/src/Makefile.am b/src/Makefile.am index 02563509..68db92eb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -598,6 +598,16 @@ memory_la_LIBADD += -lperfstat endif endif +if BUILD_PLUGIN_MODBUS +pkglib_LTLIBRARIES += modbus.la +modbus_la_SOURCES = modbus.c +modbus_la_LDFLAGS = -module -avoid-version +modbus_la_CFLAGS = $(AM_CFLAGS) $(BUILD_WITH_LIBMODBUS_CFLAGS) +modbus_la_LIBADD = $(BUILD_WITH_LIBMODBUS_LIBS) +collectd_LDADD += "-dlopen" modbus.la +collectd_DEPENDENCIES += modbus.la +endif + if BUILD_PLUGIN_MULTIMETER pkglib_LTLIBRARIES += multimeter.la multimeter_la_SOURCES = multimeter.c -- 2.30.2