build-sys: meson: support elogind alternative for module-systemd-login

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/502>
This commit is contained in:
Igor V. Kovalenko 2021-02-11 08:56:22 +03:00
parent 156e16f941
commit de8b7c0d8f
3 changed files with 11 additions and 2 deletions

View file

@ -203,9 +203,9 @@ if openssl_dep.found()
endif
endif
if libsystemd_dep.found()
if libsystemd_dep.found() or libelogind_dep.found()
all_modules += [
[ 'module-systemd-login', 'module-systemd-login.c', [], [], [libsystemd_dep] ],
[ 'module-systemd-login', 'module-systemd-login.c', [], [], [libsystemd_dep, libelogind_dep] ],
]
endif