write_gcm plugin: Build only when libyajl 2 is avaiable.
authorFlorian Forster <octo@collectd.org>
Mon, 9 Oct 2017 10:59:57 +0000 (12:59 +0200)
committerFlorian Forster <octo@collectd.org>
Thu, 4 Oct 2018 19:14:37 +0000 (21:14 +0200)
Makefile.am
configure.ac

index c44955c..93a4ca8 100644 (file)
@@ -576,7 +576,7 @@ liboconfig_la_LDFLAGS = -avoid-version $(LEXLIB)
 
 if BUILD_WITH_LIBCURL
 if BUILD_WITH_LIBSSL
-if BUILD_WITH_LIBYAJL
+if BUILD_WITH_LIBYAJL2
 noinst_LTLIBRARIES += liboauth.la
 liboauth_la_SOURCES = \
        src/utils_oauth.c \
@@ -615,7 +615,7 @@ libgce_la_LIBADD = \
        $(BUILD_WITH_LIBCURL_LIBS)
 endif
 
-if BUILD_WITH_LIBYAJL
+if BUILD_WITH_LIBYAJL2
 noinst_LTLIBRARIES += libformat_gcm.la
 libformat_gcm_la_SOURCES = \
        src/utils_format_gcm.c \
index b32af6e..92c81ee 100644 (file)
@@ -5844,6 +5844,7 @@ AC_SUBST([BUILD_WITH_LIBYAJL_LDFLAGS])
 AC_SUBST([BUILD_WITH_LIBYAJL_LIBS])
 
 AM_CONDITIONAL([BUILD_WITH_LIBYAJL], [test "x$with_libyajl" = "xyes"])
+AM_CONDITIONAL([BUILD_WITH_LIBYAJL2], [test "x$with_libyajl$with_libyajl2" = "xyesyes"])
 # }}}
 
 # --with-mic {{{
@@ -6561,6 +6562,9 @@ fi
 
 if test "x$with_libcurl" = "xyes" && test "x$with_libyajl" = "xyes"; then
   plugin_curl_json="yes"
+fi
+
+if test "x$with_libcurl" = "xyes" && test "x$with_libssl" = "xyes" && test "x$with_libyajl" = "xyes" && test "x$with_libyajl2" = "xyes"; then
   plugin_write_gcm="yes"
 fi