summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: efa4700)
raw | patch | inline | side by side (parent: efa4700)
author | Florian Forster <octo@collectd.org> | |
Thu, 2 Feb 2012 17:05:34 +0000 (18:05 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Thu, 2 Feb 2012 17:19:24 +0000 (18:19 +0100) |
Change-Id: I333cb950bb68e47366bf9dd17eca181dde25847d
configure.in | patch | blob | history | |
src/Makefile.am | patch | blob | history |
diff --git a/configure.in b/configure.in
index b3ab7c9c350967e43091f3e88166f91316471eb8..d8fce2cc505c38f3d10b2e4849caf98dd9e47775 100644 (file)
--- a/configure.in
+++ b/configure.in
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])
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 affc171faf2c6271c8e479a26e46a5a1118023ab..c41c13fb77dfe49de904e6bb38f988dd79df56ce 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
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 \