From: Pieter Lexis Date: Thu, 4 Mar 2021 11:18:52 +0000 (+0100) Subject: Fix configure issue with systemd runtime dir detection X-Git-Tag: rec-4.5.0-beta1~29^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10141%2Fhead;p=thirdparty%2Fpdns.git Fix configure issue with systemd runtime dir detection This issue was introduced in 7bbaae110abb53f43d0bf60c81efe3bb8630a925 --- 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" ]) ])