summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-12-02 23:40:53 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-12-02 23:40:53 +0100
commit89c4dac320b1f13386dfb1f4ad0a3e308a8a6372 (patch)
treea628a28bf93b72af51fa67c11fa39c6834489dec
parenteac6fa70a753064a947b33b1d9ca702cf53f23e0 (diff)
downloadpolkit-89c4dac320b1f13386dfb1f4ad0a3e308a8a6372.tar.gz
configure.ac: fix detection of systemd with cgroups v2
sys/fs/cgroup/systemd/ does not exist on modern systems.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index bfa87dd..5c37e48 100644
--- a/configure.ac
+++ b/configure.ac
@@ -201,7 +201,7 @@ fi
AS_IF([test "x$cross_compiling" != "xyes" ], [
AS_IF([test "$have_libsystemd" = "yes"], [
- AS_IF([test ! -d /sys/fs/cgroup/systemd/ ], [
+ AS_IF([test ! -d /sys/fs/cgroup/systemd/ -a ! -d /sys/fs/cgroup/init.scope ], [
AS_IF([test "$enable_libsystemd_login" = "yes"], [
AC_MSG_WARN([libsystemd requested but system does not appear to be using systemd])
], [