Build system: write_graphite doesn't depend on cURL.
authorFlorian Forster <octo@collectd.org>
Fri, 3 Feb 2012 09:03:28 +0000 (10:03 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 3 Feb 2012 09:03:28 +0000 (10:03 +0100)
Change-Id: Ide4fccdef64fc37434c87e662484930ab69b9f1b

configure.in
src/Makefile.am

index d8fce2c..db63a30 100644 (file)
@@ -4759,7 +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_graphite], [yes],             [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])
index c41c13f..2f2acc0 100644 (file)
@@ -1235,13 +1235,7 @@ 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