build: rename --with-suspend-resume to --with-systemd-suspend-resume

And only define WITH_SYSTEMD_SUSPEND_RESUME when enabled.

We already have other systemd specific features under the
--with-systemd-* name scheme, so consolidate that, given that we don't
have any other method to support suspend/resume notifications.
This commit is contained in:
Aleksander Morgado
2017-06-22 10:51:40 +02:00
parent b2a859a782
commit 4d6896f0d9
3 changed files with 22 additions and 25 deletions
+1 -1
View File
@@ -354,7 +354,7 @@ ModemManager_SOURCES += mm-auth-provider-polkit.h mm-auth-provider-polkit.c
endif
# Additional suspend/resume support via systemd
if SUSPEND_RESUME_SYSTEMD
if WITH_SYSTEMD_SUSPEND_RESUME
ModemManager_SOURCES += mm-sleep-monitor.h mm-sleep-monitor.c
endif
+3 -3
View File
@@ -30,7 +30,7 @@
#include "mm-log.h"
#include "mm-context.h"
#if WITH_SUSPEND_RESUME
#if defined WITH_SYSTEMD_SUSPEND_RESUME
# include "mm-sleep-monitor.h"
#endif
@@ -55,7 +55,7 @@ quit_cb (gpointer user_data)
return FALSE;
}
#if WITH_SUSPEND_RESUME
#if defined WITH_SYSTEMD_SUSPEND_RESUME
static void
sleeping_cb (MMSleepMonitor *sleep_monitor)
@@ -165,7 +165,7 @@ main (int argc, char *argv[])
name_lost_cb,
NULL,
NULL);
#if WITH_SUSPEND_RESUME
#if defined WITH_SYSTEMD_SUSPEND_RESUME
{
MMSleepMonitor *sleep_monitor;