summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-03-07 00:08:41 +0100
committerStefano Karapetsas <[email protected]>2014-03-07 00:08:41 +0100
commit5d80fd351b650f467e063d57d8eca8b42700a9a9 (patch)
treef85c6f94cf4250e3a8141f23e1bdb05aee413ab6 /configure.ac
parenta467222c3a66b4b8c2cc64b76cc97cc3c2262919 (diff)
parent4e0fec5a1833324cbc74a59e0b285971e4b6ad9e (diff)
downloadmate-session-manager-5d80fd351b650f467e063d57d8eca8b42700a9a9.tar.bz2
mate-session-manager-5d80fd351b650f467e063d57d8eca8b42700a9a9.tar.xz
Merge pull request #50 from cygwinports/master
Fix build with --disable-upower
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 39b6465..99f287c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -137,9 +137,12 @@ AC_ARG_ENABLE(upower,
enable_upower=yes)
if test "x$enable_upower" = "xyes"; then
PKG_CHECK_MODULES(UPOWER, upower-glib >= $UPOWER_REQUIRED, has_upower=yes, has_upower=no)
- AC_DEFINE(HAVE_UPOWER, 1, [upower support])
- AC_SUBST(UPOWER_CFLAGS)
- AC_SUBST(UPOWER_LIBS)
+
+ if test "x$has_upower" = "xyes"; then
+ AC_DEFINE(HAVE_UPOWER, 1, [upower support])
+ AC_SUBST(UPOWER_CFLAGS)
+ AC_SUBST(UPOWER_LIBS)
+ fi
fi
AM_CONDITIONAL(HAVE_UPOWER, test "x$has_upower" = "xyes")
AC_SUBST(HAVE_UPOWER)