(Changed: src/Makefile.am, configure.in)
[with_libcurl="no"])
AM_CONDITIONAL(BUILD_WITH_LIBCURL, test "x$with_libcurl" = "xyes")
+if test "x$with_libcurl" = "xyes"
+then
+ with_libcurl_libs=`curl-config --libs`
+ if test "x$with_libcurl_libs" != "x"
+ then
+ BUILD_WITH_LIBCURL_LIBS="$with_libcurl_libs";
+ AC_SUBST(BUILD_WITH_LIBCURL_LIBS)
+ fi
+fi
+
m4_divert_once([HELP_WITH], [
collectd additional packages:])
apache_la_SOURCES = apache.c
apache_la_LDFLAGS = -module -avoid-version
if BUILD_WITH_LIBCURL
-apache_la_LDFLAGS += -lcurl
+apache_la_LDFLAGS += $(BUILD_WITH_LIBCURL_LIBS)
endif
collectd_LDADD += "-dlopen" apache.la
collectd_DEPENDENCIES += apache.la