From c577cf2c6713c7b74326fe5238ec03a97b728b59 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 29 Apr 2014 19:47:29 +0200 Subject: Fix build on Debian In clean Debian unstable build chroots, the udisks plugin of mate-sensors-applets does not get built. Reason: The pkg-config tool returns an empty string for "pkg-config --cflags libatasmart" in clean Debian unstable build chroots. This probably is the case, because the result "-I/usr/include" is in the include path anyway and would not add include locations to the build process. Checking the LIBATASMART_LIBS variable is more safe here (as opposed to checking LIBATASMART_CFLAGS). It always contains a value if the library is installed and has a proper version. Closes https://github.com/mate-desktop/mate-sensors-applet/issues/17 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b469b11..b6b0c53 100644 --- a/configure.ac +++ b/configure.ac @@ -90,7 +90,7 @@ else AC_SUBST(LIBATASMART_LIBS) fi -AM_CONDITIONAL(UDISKS, test -n "$DBUSGLIB_CFLAGS" -a -n "$LIBATASMART_CFLAGS") +AM_CONDITIONAL(UDISKS, test -n "$DBUSGLIB_LIBS" -a -n "$LIBATASMART_LIBS") # support for libnotify LIBNOTIFY_CFLAGS= -- cgit v1.2.1