Code

src/Makefile.am: Use curl CFLAGS when building the nginx plugin.
authorSebastian Harl <sh@tokkee.org>
Wed, 19 Dec 2007 19:36:40 +0000 (20:36 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Thu, 27 Dec 2007 10:24:38 +0000 (11:24 +0100)
Else curl/curl.h cannot be found in non-standard places at build time.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/Makefile.am

index d229407f595143cd7211d54bcf6bc7e0a109d482..d305d855073ad68cbdd85fe5e558102fa1f2e2f6 100644 (file)
@@ -405,9 +405,12 @@ endif
 if BUILD_PLUGIN_NGINX
 pkglib_LTLIBRARIES += nginx.la
 nginx_la_SOURCES = nginx.c
+nginx_la_CFLAGS = $(AM_CFLAGS)
+nginx_la_LIBADD =
 nginx_la_LDFLAGS = -module -avoid-version
 if BUILD_WITH_LIBCURL
-nginx_la_LDFLAGS += $(BUILD_WITH_LIBCURL_LIBS)
+nginx_la_CFLAGS += $(BUILD_WITH_LIBCURL_CFLAGS)
+nginx_la_LIBADD += $(BUILD_WITH_LIBCURL_LIBS)
 endif
 collectd_LDADD += "-dlopen" nginx.la
 collectd_DEPENDENCIES += nginx.la