mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-06 11:40:42 +01:00
build: fix build with '--with-suspend-resume=upower'
Now we have a single file for all suspend APIs and the selection is done through the preprocessor: remove stale AM_CONDITIONALs and define SUSPEND_RESUME_UPOWER when needed. Fixes:c76eb3e8f7(cherry picked from commite4b2c989dc)
This commit is contained in:
parent
2df604975d
commit
f864c58cfe
1 changed files with 3 additions and 4 deletions
|
|
@ -472,7 +472,9 @@ if test "z$with_suspend_resume" = "z"; then
|
|||
fi
|
||||
|
||||
case $with_suspend_resume in
|
||||
upower) ;;
|
||||
upower)
|
||||
AC_DEFINE([SUSPEND_RESUME_UPOWER], 1, [Define to 1 to use UPower suspend api])
|
||||
;;
|
||||
systemd)
|
||||
PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd >= 209],,
|
||||
[PKG_CHECK_MODULES(SYSTEMD_INHIBIT, [libsystemd-login >= 183])])
|
||||
|
|
@ -485,9 +487,6 @@ case $with_suspend_resume in
|
|||
AC_MSG_ERROR(--with-suspend-resume must be one of [upower, systemd, consolekit])
|
||||
;;
|
||||
esac
|
||||
AM_CONDITIONAL(SUSPEND_RESUME_UPOWER, test "x$with_suspend_resume" = "xupower")
|
||||
AM_CONDITIONAL(SUSPEND_RESUME_SYSTEMD, test "x$with_suspend_resume" = "xsystemd")
|
||||
AM_CONDITIONAL(SUSPEND_RESUME_CONSOLEKIT, test "x$with_suspend_resume" = "xconsolekit")
|
||||
|
||||
# SELinux support
|
||||
AC_ARG_WITH(selinux, AS_HELP_STRING([--with-selinux=yes|no|auto], [Build with SELinux (default: auto)]),,[with_selinux=auto])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue