diff options
| author | Victor Kareh <[email protected]> | 2025-10-09 09:41:37 -0400 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2025-10-15 14:50:37 +0000 |
| commit | 6df44358e1e1688a32c63d840ea50e21491ffc0a (patch) | |
| tree | 09953dd712b34a5e69661d2d10fbb99f66082a4c /configure.ac | |
| parent | 7258f4630cd15e74278e7dd5cbd6c9170c748ddb (diff) | |
| download | mate-session-manager-6df44358e1e1688a32c63d840ea50e21491ffc0a.tar.bz2 mate-session-manager-6df44358e1e1688a32c63d840ea50e21491ffc0a.tar.xz | |
This loosens mate-session's env var value restrictions to match
systemd's modern restrictions.
Backported from https://gitlab.gnome.org/GNOME/gnome-session/-/commit/cbc5e5de421359ee5642e44fa9ab670d705d23ea
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index fd7f6a0..0bf02ca 100644 --- a/configure.ac +++ b/configure.ac @@ -120,6 +120,12 @@ if test "x$with_systemd" != "xno" ; then AC_DEFINE(HAVE_SYSTEMD, 1, [systemd support]) AC_SUBST(SYSTEMD_CFLAGS) AC_SUBST(SYSTEMD_LIBS) + PKG_CHECK_EXISTS([libsystemd], + [systemd_pkgconfig=libsystemd], + [systemd_pkgconfig=libsystemd-login]) + PKG_CHECK_EXISTS([$systemd_pkgconfig >= 248],, + [AC_DEFINE([SYSTEMD_STRICT_ENV], [1], + [Use strict environment variable validation for systemd < 248])]) fi fi AM_CONDITIONAL(HAVE_SYSTEMD, test "x$use_systemd" = "xyes") |
