summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gmail.com>2021-02-09 18:11:28 +0000
committerEmmanuele Bassi <ebassi@gmail.com>2021-02-09 18:11:28 +0000
commitc509550a93a4294ed2cbae71f082b8f926c8a756 (patch)
tree845798a6d4f3f75e5a792eb6b8b11e3f1de958c9
parent14bcdd470c0a307ba290469374d3b607b42cbcaa (diff)
parentd0fc7252bea4cd8c387d204eed68360d2cf08e7f (diff)
downloadgdk-pixbuf-c509550a93a4294ed2cbae71f082b8f926c8a756.tar.gz
Merge branch 'master' into 'master'
meson.build: link with lintl if needed See merge request GNOME/gdk-pixbuf!101
-rw-r--r--meson.build5
1 files changed, 3 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 1cef125a3..f43d2334e 100644
--- a/meson.build
+++ b/meson.build
@@ -93,7 +93,8 @@ if cc.has_function('lrint', dependencies: mathlib_dep)
gdk_pixbuf_conf.set('HAVE_LRINT', 1)
endif
-if cc.has_function('bind_textdomain_codeset', prefix: '#include <libintl.h>')
+intl_dep = cc.find_library('intl', required: false)
+if cc.has_function('bind_textdomain_codeset', prefix: '#include <libintl.h>', dependency: intl_dep)
gdk_pixbuf_conf.set('HAVE_BIND_TEXTDOMAIN_CODESET', 1)
endif
@@ -212,7 +213,7 @@ if medialib_dep.found()
endif
gdk_pixbuf_deps = [ mathlib_dep, glib_dep, gobject_dep, gmodule_dep, gio_dep,
- shared_mime_dep, medialib_dep ]
+ shared_mime_dep, medialib_dep, intl_dep ]
# Check if we can build shared modules
if gmodule_dep.type_name() == 'pkgconfig'