diff --git a/config.h.meson b/config.h.meson index 65d7e09b08..1200bd0eb7 100644 --- a/config.h.meson +++ b/config.h.meson @@ -47,15 +47,9 @@ /* Define to 1 if you have the `getresuid' function. */ #mesondefine HAVE_GETRESUID -/* Define if the GNU gettext() function is already present or preinstalled. */ -#mesondefine HAVE_GETTEXT - /* Define if gio-unix is available */ #mesondefine HAVE_GIO_UNIX -/* Have GNU ftw */ -#mesondefine HAVE_GNU_FTW - /* Define to 1 if you have the `httpGetAuthString' function. */ #mesondefine HAVE_HTTPGETAUTHSTRING @@ -68,15 +62,9 @@ /* Define to 1 if the system has the type `IPrintDialogCallback'. */ #mesondefine HAVE_IPRINTDIALOGCALLBACK -/* Define if your file defines LC_MESSAGES. */ -#mesondefine HAVE_LC_MESSAGES - /* Define to 1 if you have the header file. */ #mesondefine HAVE_LOCALE_H -/* Define to 1 if you have the `localtime_r' function. */ -#mesondefine HAVE_LOCALTIME_R - /* Define to 1 if you have the `lstat' function. */ #mesondefine HAVE_LSTAT @@ -119,12 +107,6 @@ /* Define to 1 if you ahve the `exp2` function */ #mesondefine HAVE_EXP2 -/* Have the sockaddr_un.sun_len member */ -#mesondefine HAVE_SOCKADDR_UN_SUN_LEN - -/* Define to 1 if solaris xinerama is available */ -#mesondefine HAVE_SOLARIS_XINERAMA - /* Define to 1 if you have the header file. */ #mesondefine HAVE_STDINT_H @@ -146,12 +128,6 @@ /* Define to 1 if you have the header file. */ #mesondefine HAVE_SYS_STAT_H -/* Define to 1 if sys/sysinfo.h is available */ -#mesondefine HAVE_SYS_SYSINFO_H - -/* Define to 1 if sys/systeminfo.h is available */ -#mesondefine HAVE_SYS_SYSTEMINFO_H - /* Define to 1 if you have the header file. */ #mesondefine HAVE_SYS_TIME_H @@ -179,9 +155,6 @@ /* Have XGenericEvent */ #mesondefine HAVE_XGENERICEVENTS -/* Define to 1 if xinerama is available */ -#mesondefine HAVE_XINERAMA - /* Define to use XKB extension */ #mesondefine HAVE_XKB @@ -206,9 +179,6 @@ /* Define if _NL_TIME_FIRST_WEEKDAY is available */ #mesondefine HAVE__NL_TIME_FIRST_WEEKDAY -/* Define to 1 if you have the `_NSGetEnviron' function. */ -#mesondefine HAVE__NSGETENVIRON - /* Define to the sub-directory where libtool stores uninstalled libraries. */ #mesondefine LT_OBJDIR diff --git a/gtk/meson.build b/gtk/meson.build index 55c921a6b5..5c33f77d96 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -829,6 +829,25 @@ endif # org.gtk.Settings.Debug.gschema.xml gnome.compile_schemas() +# Check for more things + +if cc.has_header('langinfo.h') + foreach nl_enum : [ '_NL_MEASUREMENT_MEASUREMENT', + '_NL_PAPER_HEIGHT', + '_NL_PAPER_WIDTH', + '_NL_TIME_FIRST_WEEKDAY' ] + cdata.set('HAVE_' + nl_enum, cc.has_header_symbol('langinfo.h', nl_enum)) + endforeach +endif + +# check token HAVE__NL_MEASUREMENT_MEASUREMENT +# check token HAVE__NL_PAPER_HEIGHT +# check token HAVE__NL_PAPER_WIDTH +# check token HAVE__NL_TIME_FIRST_WEEKDAY + + +# Library + libgtk = shared_library('gtk-4', sources: [typefuncs, gtk_sources, gtkmarshal_h, gtkprivatetypebuiltins_h], c_args: gtk_cargs, diff --git a/meson.build b/meson.build index 9afb89bef0..335cffb687 100644 --- a/meson.build +++ b/meson.build @@ -122,25 +122,7 @@ endforeach # Maths functions might be implemented in libm libm = cc.find_library('m', required : false) -# check token HAVE_BIND_TEXTDOMAIN_CODESET -# check token HAVE_CUPS_API_1_6 -# check token HAVE_GETTEXT -# check token HAVE_GIO_UNIX -# check token HAVE_GNU_FTW -# check token HAVE_HTTPGETAUTHSTRING -# check token HAVE_HTTP_AUTHSTRING -# check token HAVE_IPRINTDIALOGCALLBACK -# check token HAVE_LC_MESSAGES -# check token HAVE_LOCALTIME_R -# check token HAVE_SOCKADDR_UN_SUN_LEN -# check token HAVE_SOLARIS_XINERAMA -# check token HAVE_XFREE_XINERAMA -# check token HAVE_XINERAMA -# check token HAVE__NL_MEASUREMENT_MEASUREMENT -# check token HAVE__NL_PAPER_HEIGHT -# check token HAVE__NL_PAPER_WIDTH -# check token HAVE__NL_TIME_FIRST_WEEKDAY -# check token HAVE__NSGETENVIRON +# FIXME: HAVE_XFREE_XINERAMA check_functions = [ 'dcgettext', @@ -330,6 +312,11 @@ endif mlib = cc.find_library('m', required: false) +# Check for bind_textdomain_codeset, including -lintl if GLib brings it in +if cc.has_function('bind_textdomain_codeset', dependencies: glib_dep) + cdata.set('HAVE_BIND_TEXTDOMAIN_CODESET', 1) +endif + cdata.set('HAVE_GIO_UNIX', giounix_dep.found()) # Check for Vulkan support