mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-28 02:20:04 +01:00
Merge branch 'meson-intl-iconv-lookup' into 'main'
meson: try iconv in libintl lookup See merge request GNOME/glib!3448
This commit is contained in:
commit
d3fbb6e0fc
13
meson.build
13
meson.build
@ -2118,11 +2118,16 @@ if libintl.found()
|
||||
if cc.has_function('ngettext', dependencies : libintl, prefix: libintl_prefix)
|
||||
libintl_deps += [libintl]
|
||||
else
|
||||
libintl_pthread = cc.find_library('pthread', required : false)
|
||||
if libintl_pthread.found() and cc.has_function('ngettext', dependencies : [libintl, libintl_pthread], prefix: libintl_prefix)
|
||||
libintl_deps += [libintl, libintl_pthread]
|
||||
libintl_iconv = cc.find_library('iconv', required : false)
|
||||
if libintl_iconv.found() and cc.has_function('ngettext', dependencies : [libintl, libintl_iconv])
|
||||
libintl_deps += [libintl, libintl_iconv]
|
||||
else
|
||||
libintl = disabler()
|
||||
libintl_pthread = cc.find_library('pthread', required : false)
|
||||
if libintl_pthread.found() and cc.has_function('ngettext', dependencies : [libintl, libintl_pthread], prefix: libintl_prefix)
|
||||
libintl_deps += [libintl, libintl_pthread]
|
||||
else
|
||||
libintl = disabler()
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user