meson: fix build with -Di18n=disabled

Resolves: https://github.com/linux-pam/linux-pam/issues/847
This commit is contained in:
Dmitry V. Levin 2024-10-27 15:00:00 +00:00
parent ea980d9911
commit 900c9c82e0

View File

@ -211,7 +211,9 @@ endif
libdl = dependency('dl')
if not get_option('i18n').disabled()
if get_option('i18n').disabled()
libintl = null_dep
else
libintl = dependency('intl', required: get_option('i18n'))
if libintl.found()
cdata.set('ENABLE_NLS', 1)