meson: fix libintl detection

Related to D12291
This commit is contained in:
Boris Faure 2021-09-29 21:37:21 +02:00
parent fc2d12a52f
commit f11b698828
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 6 additions and 2 deletions

View File

@ -66,9 +66,13 @@ edj_files = []
if get_option('nls') == true
subdir('po')
# need both cause libintl may be included in glibc or not
terminology_dependencies += dependency('intl', required: false)
dep = dependency('intl', required: false)
if dep.found()
terminology_dependencies += dep
else
terminology_dependencies += cc.find_library('intl', required: false)
endif
endif
foreach efl_dep: efl_deps
dep = dependency(efl_dep, version: '>=' + efl_version)