summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f4f4bf4)
raw | patch | inline | side by side (parent: f4f4bf4)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 29 Aug 2014 08:55:18 +0000 (10:55 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 29 Aug 2014 08:55:18 +0000 (10:55 +0200) |
That is, use the full plugin names (except "backend" prefixes) for the
--enable-* options.
--enable-* options.
configure.ac | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 37d77ff9dcb18f202ffe40aab8b4af50aeee6ffa..2bcd7248a60786a751fc1227b273c16771123fdf 100644 (file)
--- a/configure.ac
+++ b/configure.ac
if test "x$puppet_storeconfigs_default" != "xyes"; then
puppet_storeconfigs_default="no (requires libdbi)"
fi
+rrdtool_default=$have_librrd
+if test "x$rrdtool_default" != "xyes"; then
+ rrdtool_default="no (required librrd)"
+fi
m4_divert_once([HELP_ENABLE], [
Backends:])
AC_SDB_PLUGIN_INIT
-AC_SDB_PLUGIN([collectd], [yes],
+AC_SDB_PLUGIN([collectd-unixsock], [yes],
[backend accessing the system statistics collection daemon])
AC_SDB_PLUGIN([mk-livestatus], [yes],
[backend accessing Nagios/Icinga/Shinken using MK Livestatus])
m4_divert_once([HELP_ENABLE], [
Time-series fetchers:])
-AC_SDB_PLUGIN([rrdtool], [$have_librrd],
+AC_SDB_PLUGIN([timeseries-rrdtool], [$rrdtool_default],
[fetch time-series data from RRD files])
m4_divert_once([HELP_ENABLE], [
AC_MSG_RESULT([ librrd: . . . . . . . . . . $have_librrd])
AC_MSG_RESULT()
AC_MSG_RESULT([ Backends:])
-AC_MSG_RESULT([ collectd: . . . . . . . . . $enable_collectd])
+AC_MSG_RESULT([ collectd::unixsock: . . . . $enable_collectd_unixsock])
AC_MSG_RESULT([ mk-livestatus: . . . . . . $enable_mk_livestatus])
-AC_MSG_RESULT([ puppet-storeconfigs: . . . $enable_puppet_storeconfigs])
+AC_MSG_RESULT([ puppet::storeconfigs: . . . $enable_puppet_storeconfigs])
AC_MSG_RESULT()
AC_MSG_RESULT([ Time-series fetchers:])
-AC_MSG_RESULT([ rrdtool: . . . . . . . . . $enable_rrdtool])
+AC_MSG_RESULT([ rrdtool: . . . . . . . . . $enable_timeseries_rrdtool])
AC_MSG_RESULT()
AC_MSG_RESULT([ Plugins:])
AC_MSG_RESULT([ cname::dns: . . . . . . . . $enable_cname_dns])
diff --git a/src/Makefile.am b/src/Makefile.am
index ef6367ea75910948cf3fcd3642c2f71f16b0b856..a69769d72dd21f159fea34daee3b6d540cae1bb3 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
sysdbd_DEPENDENCIES += plugins/cname/dns.la
endif
-if BUILD_PLUGIN_COLLECTD
+if BUILD_PLUGIN_COLLECTDUNIXSOCK
pkgbackendcollectdlib_LTLIBRARIES += plugins/backend/collectd/unixsock.la
plugins_backend_collectd_unixsock_la_SOURCES = plugins/backend/collectd/unixsock.c
plugins_backend_collectd_unixsock_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version
sysdbd_DEPENDENCIES += plugins/backend/puppet/store-configs.la
endif
-if BUILD_PLUGIN_RRDTOOL
-pkgtimeserieslib_LTLIBRARIES += plugins/timeseries/rrdtool.la
-plugins_timeseries_rrdtool_la_SOURCES = plugins/timeseries/rrdtool.c
-plugins_timeseries_rrdtool_la_CFLAGS = $(AM_CFLAGS) @RRD_CFLAGS@
-plugins_timeseries_rrdtool_la_LDFLAGS = $(AM_LDFLAGS) @RRD_LIBS@ -module -avoid-version
-sysdbd_LDADD += -dlopen plugins/timeseries/rrdtool.la
-sysdbd_DEPENDENCIES += plugins/timeseries/rrdtool.la
-endif
-
if BUILD_PLUGIN_SYSLOG
pkglib_LTLIBRARIES += plugins/syslog.la
plugins_syslog_la_SOURCE = plugins/syslog.c
sysdbd_DEPENDENCIES += plugins/syslog.la
endif
+if BUILD_PLUGIN_TIMESERIESRRDTOOL
+pkgtimeserieslib_LTLIBRARIES += plugins/timeseries/rrdtool.la
+plugins_timeseries_rrdtool_la_SOURCES = plugins/timeseries/rrdtool.c
+plugins_timeseries_rrdtool_la_CFLAGS = $(AM_CFLAGS) @RRD_CFLAGS@
+plugins_timeseries_rrdtool_la_LDFLAGS = $(AM_LDFLAGS) @RRD_LIBS@ -module -avoid-version
+sysdbd_LDADD += -dlopen plugins/timeseries/rrdtool.la
+sysdbd_DEPENDENCIES += plugins/timeseries/rrdtool.la
+endif
+
include/client/sysdb.h: include/client/sysdb.h.in ../version
source ../version; sed \
-e "s/@SDB_VERSION_MAJOR@/$$VERSION_MAJOR/g" \