diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 131b480..ff0ea31 100644 --- a/configure.ac +++ b/configure.ac @@ -144,13 +144,18 @@ AC_ARG_ENABLE(upower, enable_upower=$enableval, enable_upower=no) if test "x$enable_upower" = "xyes"; then - PKG_CHECK_MODULES(UPOWER, upower-glib >= $UPOWER_REQUIRED, has_upower=yes, has_upower=no) + PKG_CHECK_MODULES([UPOWER], [upower-glib >= $UPOWER_REQUIRED], has_upower=yes, has_upower=no) if test "x$has_upower" = "xyes"; then AC_DEFINE(HAVE_UPOWER, 1, [upower support]) AC_SUBST(UPOWER_CFLAGS) AC_SUBST(UPOWER_LIBS) fi + PKG_CHECK_MODULES([UPOWER_HIBERNATE], [upower-glib < 0.99], has_upower_hibernate_suspend=yes, has_upower_hibernate_suspend=no) + if test "x$has_upower_hibernate_suspend" = "xyes"; then + AC_DEFINE(HAVE_UPOWER_HIBERNATE_SUSPEND, 1, [upower based support for hibernate and suspend (<0.99) ]) + fi + fi AM_CONDITIONAL(HAVE_UPOWER, test "x$has_upower" = "xyes") AC_SUBST(HAVE_UPOWER) |