Description: Build udisks plugin in clean Debian unstable chroots
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Abstract:
 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.
--- a/configure.ac
+++ b/configure.ac
@@ -90,7 +90,7 @@
 	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=
