summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 367405c)
raw | patch | inline | side by side (parent: 367405c)
author | Florian Forster <octo@noris.net> | |
Wed, 17 Mar 2010 17:36:05 +0000 (18:36 +0100) | ||
committer | Florian Forster <octo@noris.net> | |
Wed, 17 Mar 2010 17:36:05 +0000 (18:36 +0100) |
configure.in | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/configure.in b/configure.in
index 417da4dae0a60a9b2525b98fa28ce878e21597c0..1a63dedd5950a7a6a7894c023df4e0ca85985d9a 100644 (file)
--- a/configure.in
+++ b/configure.in
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])
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 02563509a8439b0e6c3d152c82e78339aedca58a..68db92eb99eb653b04cd87ef4cc98b9c9414bbcd 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
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