meson: reverse intl check

If we have a library, use that, otherwise use the normal dep.

Might fix build on musl
This commit is contained in:
Wim Taymans 2022-01-29 08:28:15 +01:00
parent 6543899fe6
commit 7201b079fc

View file

@ -426,10 +426,9 @@ libinotify_dep = (build_machine.system() == 'freebsd'
: dependency('', required: false))
# On FreeBSD, libintl library is required for gettext
libintl_dep = dependency('intl', required: false)
libintl_dep = cc.find_library('intl', required: false)
if not libintl_dep.found()
libintl_dep = cc.find_library('intl', required: false)
libintl_dep = dependency('intl', required: false)
endif
summary({'intl support': libintl_dep.found()}, bool_yn: true)