From: Karel Zak Date: Mon, 3 May 2021 09:10:10 +0000 (+0200) Subject: meson: fix systemd dependence X-Git-Tag: v2.37-rc2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fcbcb0cdaad26bda55984eda2630130095a2e5b8;p=thirdparty%2Futil-linux.git meson: fix systemd dependence Fixes: https://github.com/karelzak/util-linux/issues/1301 Signed-off-by: Karel Zak --- diff --git a/meson.build b/meson.build index ddf1015fc0..898c55d726 100644 --- a/meson.build +++ b/meson.build @@ -710,8 +710,9 @@ if fs_search_path_extra != '' endif conf.set_quoted('FS_SEARCH_PATH', fs_search_path) -systemdsystemunitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir') - +if systemd.found() + systemdsystemunitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir') +endif chfn_chsh_password = get_option('chfn-chsh-password') or lib_user.found() conf.set('CHFN_CHSH_PASSWORD', chfn_chsh_password ? 1 : false)