meson - systemd - fix check to systemd209+ checks that were not done

autofoo did these and set defines code relied on. meson did not. this
fixes that and makes meson do the same checks with the same defines.
This commit is contained in:
Carsten Haitzler 2018-12-08 04:47:06 +00:00
parent 3a075988e4
commit 10819b4ea5
1 changed files with 3 additions and 0 deletions

View File

@ -264,6 +264,9 @@ if get_option('systemd') == true
systemd = dependency('libsystemd')
eina_deps += systemd
config_h.set('HAVE_SYSTEMD', '1')
if systemd.version().version_compare('>=209')
config_h.set('HAVE_SYSTEMD_LOGIN_209', '1')
endif
else
systemd = []
endif