aboutsummaryrefslogtreecommitdiff
path: root/x11/gnome-shell/files/patch-subprojects_extensions-tool_src_meson.build
blob: 0e27d7bd84a4b61f0ff5f855a96d35bb24df8c6c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- subprojects/extensions-tool/src/meson.build.orig	2023-04-24 08:26:56 UTC
+++ subprojects/extensions-tool/src/meson.build
@@ -3,7 +3,10 @@ config_h.set_quoted('GETTEXT_PACKAGE', package_name)
 config_h.set_quoted('VERSION', meson.project_version())
 config_h.set('MAJOR_VERSION', meson.project_version().split('.')[0])
 config_h.set_quoted('LOCALEDIR', localedir)
-config_h.set('HAVE_BIND_TEXTDOMAIN_CODESET', cc.has_function('bind_textdomain_codeset'))
+intl_dep = cc.find_library('intl', required: false)                             
+if cc.has_function('bind_textdomain_codeset', prefix: '#include <libintl.h>', dependencies: intl_dep)
+  config_h.set('HAVE_BIND_TEXTDOMAIN_CODESET', 1)                        
+endif 
 configure_file(
   output: 'config.h',
   configuration: config_h,