From ee7dfa9bdcf2d9206e3095d669fe967ae0cb13f6 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 4 Mar 2021 12:18:52 +0100 Subject: [PATCH] Fix configure issue with systemd runtime dir detection This issue was introduced in 7bbaae110abb53f43d0bf60c81efe3bb8630a925 --- m4/systemd.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/m4/systemd.m4 b/m4/systemd.m4 index 26edf52134..3c8f196783 100644 --- a/m4/systemd.m4 +++ b/m4/systemd.m4 @@ -177,6 +177,9 @@ AC_DEFUN([AX_CHECK_SYSTEMD_FEATURES], [ if test $_systemd_version -ge 239; then systemd_private_mounts=y fi + if test $_systemd_version -ge 240; then + systemd_with_runtime_dir_env=y + fi if test $_systemd_version -ge 242; then systemd_protect_hostname=y systemd_restrict_suidsgid=y @@ -212,5 +215,5 @@ AC_DEFUN([AX_CHECK_SYSTEMD_FEATURES], [ AM_CONDITIONAL([HAVE_SYSTEMD_RESTRICT_SUIDSGID], [ test x"$systemd_restrict_suidsgid" = "xy" ]) AM_CONDITIONAL([HAVE_SYSTEMD_SYSTEM_CALL_ARCHITECTURES], [ test x"$systemd_system_call_architectures" = "xy" ]) AM_CONDITIONAL([HAVE_SYSTEMD_SYSTEM_CALL_FILTER], [ test x"$systemd_system_call_filter" = "xy" ]) - AM_CONDITIONAL([HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV], [ test $_systemd_version -ge 240 ]) + AM_CONDITIONAL([HAVE_SYSTEMD_WITH_RUNTIME_DIR_ENV], [ test x"$systemd_with_runtime_dir_env" = "xy" ]) ]) -- 2.47.2