summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMike Gabriel <[email protected]>2014-04-29 19:47:29 +0200
committerStefano Karapetsas <[email protected]>2014-04-29 19:47:29 +0200
commitc577cf2c6713c7b74326fe5238ec03a97b728b59 (patch)
treec733e827e5ba8c1ed27145d4313880a8fc03aa25 /configure.ac
parent131d9d8e5a6a5c3fe63b1f643105e7bc5892be38 (diff)
downloadmate-sensors-applet-c577cf2c6713c7b74326fe5238ec03a97b728b59.tar.bz2
mate-sensors-applet-c577cf2c6713c7b74326fe5238ec03a97b728b59.tar.xz
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
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
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=