From: Marc Fournier Date: Sun, 13 Sep 2015 22:03:44 +0000 (+0200) Subject: gmond: fix linking against libganglia at build time X-Git-Tag: collectd-5.5.1~52^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1a0ffe992fa7a970346fafb5f688fce5ee6f22ee;p=collectd.git gmond: fix linking against libganglia at build time Current versions of libganglia don't ship the ganglia-config utility anymore. Change the configure script to not expect it to be in $PATH and provide sensible defaults instead. Fix #1129 --- diff --git a/configure.ac b/configure.ac index 41c36cb5..18e055e7 100644 --- a/configure.ac +++ b/configure.ac @@ -1852,30 +1852,33 @@ AC_ARG_WITH(libganglia, [AS_HELP_STRING([--with-libganglia@<:@=PREFIX@:>@], [Pat GANGLIA_LDFLAGS="-L$withval/lib" with_libganglia="yes" else - with_libganglia_config="ganglia-config" with_libganglia="$withval" fi; fi; fi ], [ - with_libganglia_config="ganglia-config" with_libganglia="yes" ]) -if test "x$with_libganglia" = "xyes" && test "x$with_libganglia_config" != "x" +if test "x$with_libganglia" = "xyes" then - if test "x$GANGLIA_CPPFLAGS" = "x" + if test "x$with_libganglia_config" != "x" then - GANGLIA_CPPFLAGS=`"$with_libganglia_config" --cflags 2>/dev/null` - fi + if test "x$GANGLIA_CPPFLAGS" = "x" + then + GANGLIA_CPPFLAGS=`"$with_libganglia_config" --cflags 2>/dev/null` + fi - if test "x$GANGLIA_LDFLAGS" = "x" - then - GANGLIA_LDFLAGS=`"$with_libganglia_config" --ldflags 2>/dev/null` - fi + if test "x$GANGLIA_LDFLAGS" = "x" + then + GANGLIA_LDFLAGS=`"$with_libganglia_config" --ldflags 2>/dev/null` + fi - if test "x$GANGLIA_LIBS" = "x" - then - GANGLIA_LIBS=`"$with_libganglia_config" --libs 2>/dev/null` + if test "x$GANGLIA_LIBS" = "x" + then + GANGLIA_LIBS=`"$with_libganglia_config" --libs 2>/dev/null` + fi + else + GANGLIA_LIBS="-lganglia" fi fi