diff options
author | Stefano Karapetsas <[email protected]> | 2013-05-02 03:01:36 -0700 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-05-02 03:01:36 -0700 |
commit | acbec2f8c4c0bf0227bd9e43c3c74cea0974ebc3 (patch) | |
tree | fe47686e67595d81cf6a67b606074abe8e1f2b52 /configure.ac | |
parent | e4710f05da0f07667f1392385864d32e79681549 (diff) | |
parent | 4963dd54412f8bdab61fd4537c753c064c2d3712 (diff) | |
download | mate-power-manager-acbec2f8c4c0bf0227bd9e43c3c74cea0974ebc3.tar.bz2 mate-power-manager-acbec2f8c4c0bf0227bd9e43c3c74cea0974ebc3.tar.xz |
Merge pull request #55 from boyarsh/master
Add ability to suspend/hibernate via logind
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 20a981d..5a3a0b7 100644 --- a/configure.ac +++ b/configure.ac @@ -305,6 +305,27 @@ AM_CONDITIONAL(WITH_SYSTEMD_INHIBIT, test x$use_systemdinhibit = xyes) AC_SUBST(WITH_SYSTEMD_INHIBIT) dnl --------------------------------------------------------------------------- +dnl systemd sleep +dnl --------------------------------------------------------------------------- + +AC_ARG_WITH(systemdsleep, + AS_HELP_STRING([--with-systemdsleep], + [Use logind for suspend and hibernate instead of upower]),, + with_systemdsleep=auto) + +use_systemdsleep=no +if test "x$with_systemdsleep" != "xno" ; then + PKG_CHECK_MODULES(SYSTEMD_SLEEP, libsystemd-login >= 195 libsystemd-daemon >= 195 , use_systemdsleep=yes, use_systemdsleep=no) + + if test "x$use_systemdsleep" = "xyes"; then + AC_DEFINE(WITH_SYSTEMD_SLEEP, 1, [systemdsleeo support]) + fi + +fi +AM_CONDITIONAL(WITH_SYSTEMD_SLEEP, test x$use_systemdsleep = xyes) +AC_SUBST(WITH_SYSTEMD_SLEEP) + +dnl --------------------------------------------------------------------------- dnl - DocBook Documentation dnl --------------------------------------------------------------------------- AC_ARG_ENABLE(docbook-docs, @@ -419,6 +440,7 @@ echo " Self test support: ${have_tests} Use libunique: ${enable_libunique} systemd support: ${use_systemdinhibit} + systemd sleep support: ${use_systemdsleep} Docbook support: ${enable_docbook_docs} documentation dir: $DOCDIR dbus-1 services dir: $DBUS_SERVICES_DIR |