summaryrefslogtreecommitdiff
blob: a5cf836d734a7e9dc56b17024f9d08b6cb14b3f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 95b8f96ad66ab555c763dafebac8a49b9c6f3d51 Mon Sep 17 00:00:00 2001
From: Monsta <monsta@inbox.ru>
Date: Thu, 1 Oct 2015 11:20:49 +0300
Subject: [PATCH] configure.ac: add support for new libsystemd library

From 6d4a81780e3598435b565569e8e16f1410cb5761 Mon Sep 17 00:00:00 2001
From: Monsta <monsta@inbox.ru>
Date: Mon, 5 Oct 2015 16:30:14 +0300
Subject: [PATCH] fix build w/o systemd support

fixes https://github.com/mate-desktop/mate-screensaver/issues/83

---
 configure.ac | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 379f9b1..87ab770 100644
--- a/configure.ac
+++ b/configure.ac
@@ -934,9 +934,9 @@ AC_ARG_WITH(systemd,
             [Add systemd support]),
             [with_systemd=$withval], [with_systemd=auto])
 
-PKG_CHECK_MODULES(SYSTEMD,
-                  [libsystemd-login],
-                  [have_systemd=yes], [have_systemd=no])
+PKG_CHECK_MODULES(SYSTEMD, [libsystemd], [have_systemd=yes],
+                  [PKG_CHECK_MODULES(SYSTEMD, [libsystemd-login],
+                  [have_systemd=yes], [have_systemd=no])])
 
 if test "x$with_systemd" = "xauto" ; then
         if test x$have_systemd = xno ; then