From: Florian Forster Date: Thu, 2 Feb 2012 17:05:34 +0000 (+0100) Subject: Build system: Add the write_graphite plugin. X-Git-Tag: collectd-5.1.0~33^2~24 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f6cab9349c3ff8331590a7ca563cc6168f5dbf9;p=collectd.git Build system: Add the write_graphite plugin. Change-Id: I333cb950bb68e47366bf9dd17eca181dde25847d --- diff --git a/configure.in b/configure.in index b3ab7c9c..d8fce2cc 100644 --- a/configure.in +++ b/configure.in @@ -4759,6 +4759,7 @@ AC_PLUGIN([varnish], [$with_libvarnish], [Varnish cache statistics]) AC_PLUGIN([vmem], [$plugin_vmem], [Virtual memory statistics]) AC_PLUGIN([vserver], [$plugin_vserver], [Linux VServer statistics]) AC_PLUGIN([wireless], [$plugin_wireless], [Wireless statistics]) +AC_PLUGIN([write_graphite], [$with_libcurl], [Graphite / Carbon output plugin]) AC_PLUGIN([write_http], [$with_libcurl], [HTTP output plugin]) AC_PLUGIN([write_redis], [$with_libcredis], [Redis output plugin]) AC_PLUGIN([write_mongodb], [$with_libmongoc], [MongoDB output plugin]) @@ -5086,6 +5087,7 @@ Configuration: vmem . . . . . . . . $enable_vmem vserver . . . . . . . $enable_vserver wireless . . . . . . $enable_wireless + write_graphite . . . $enable_write_graphite write_http . . . . . $enable_write_http write_redis . . . . . $enable_write_redis write_mongodb . . . . $enable_write_mongodb diff --git a/src/Makefile.am b/src/Makefile.am index affc171f..c41c13fb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1230,6 +1230,21 @@ collectd_LDADD += "-dlopen" wireless.la collectd_DEPENDENCIES += wireless.la endif +if BUILD_PLUGIN_WRITE_GRAPHITE +pkglib_LTLIBRARIES += write_graphite.la +write_graphite_la_SOURCES = write_graphite.c \ + utils_format_json.c utils_format_json.h +write_graphite_la_LDFLAGS = -module -avoid-version +write_graphite_la_CFLAGS = $(AM_CFLAGS) +write_graphite_la_LIBADD = +collectd_LDADD += "-dlopen" write_graphite.la +if BUILD_WITH_LIBCURL +write_graphite_la_CFLAGS += $(BUILD_WITH_LIBCURL_CFLAGS) +write_graphite_la_LIBADD += $(BUILD_WITH_LIBCURL_LIBS) +endif +collectd_DEPENDENCIES += write_graphite.la +endif + if BUILD_PLUGIN_WRITE_HTTP pkglib_LTLIBRARIES += write_http.la write_http_la_SOURCES = write_http.c \