From: Christian Hesse Date: Fri, 16 Jun 2023 09:52:10 +0000 (+0200) Subject: meson: check for _NL_TIME_WEEK_1STDAY in langinfo.h X-Git-Tag: v2.39.1~29^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22d0a655717370b0b4960730548503850093b900;p=thirdparty%2Futil-linux.git meson: check for _NL_TIME_WEEK_1STDAY in langinfo.h ... which is required for `cal`. Fixes GH-2316 --- diff --git a/meson.build b/meson.build index 8b053f8211..b3641946ad 100644 --- a/meson.build +++ b/meson.build @@ -483,6 +483,18 @@ have = cc.compiles(''' name : 'langinfo.h defines _NL_ABALTMON_x constants') conf.set('HAVE_LANGINFO_NL_ABALTMON', have ? 1 : false) +have = cc.compiles(''' + #define _GNU_SOURCE 1 + #include + int main(void) { + char *str; + str = nl_langinfo (_NL_TIME_WEEK_1STDAY); + return 0; + } + ''', + name : 'langinfo.h defines _NL_TIME_WEEK_1STDAY constant') +conf.set('HAVE_DECL__NL_TIME_WEEK_1STDAY', have ? 1 : false) + funcs = ''' clearenv close_range