From b0afb8fe0ff1d87165af9df61501197a06240dda Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Sun, 28 Dec 2025 12:13:40 +0100 Subject: Sync with Gnulib stable-202507 code (a8ac9f9ce5) --- gl/m4/langinfo_h.m4 | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'gl/m4/langinfo_h.m4') diff --git a/gl/m4/langinfo_h.m4 b/gl/m4/langinfo_h.m4 index 5eee8a71..69f936f0 100644 --- a/gl/m4/langinfo_h.m4 +++ b/gl/m4/langinfo_h.m4 @@ -1,9 +1,10 @@ # langinfo_h.m4 -# serial 12 -dnl Copyright (C) 2009-2024 Free Software Foundation, Inc. +# serial 13 +dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. +dnl This file is offered as-is, without any warranty. AC_DEFUN_ONCE([gl_LANGINFO_H], [ @@ -19,6 +20,7 @@ AC_DEFUN_ONCE([gl_LANGINFO_H], HAVE_LANGINFO_CODESET=0 HAVE_LANGINFO_T_FMT_AMPM=0 HAVE_LANGINFO_ALTMON=0 + HAVE_LANGINFO_ABALTMON=0 HAVE_LANGINFO_ERA=0 HAVE_LANGINFO_YESEXPR=0 AC_CHECK_HEADERS_ONCE([langinfo.h]) @@ -29,6 +31,7 @@ AC_DEFUN_ONCE([gl_LANGINFO_H], dnl ERA etc. are missing on OpenBSD 6.7. dnl T_FMT_AMPM and YESEXPR, NOEXPR are missing on IRIX 5.3. dnl ALTMON_* are missing on glibc 2.26 and many other systems. + dnl ABALTMON_* are missing on glibc 2.41 and many other systems. AC_CACHE_CHECK([whether langinfo.h defines CODESET], [gl_cv_header_langinfo_codeset], [AC_COMPILE_IFELSE( @@ -65,6 +68,18 @@ int a = ALTMON_1; if test $gl_cv_header_langinfo_altmon = yes; then HAVE_LANGINFO_ALTMON=1 fi + AC_CACHE_CHECK([whether langinfo.h defines ABALTMON_1], + [gl_cv_header_langinfo_abaltmon], + [AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([[#include +int a = ABALTMON_1; +]])], + [gl_cv_header_langinfo_abaltmon=yes], + [gl_cv_header_langinfo_abaltmon=no]) + ]) + if test $gl_cv_header_langinfo_abaltmon = yes; then + HAVE_LANGINFO_ABALTMON=1 + fi AC_CACHE_CHECK([whether langinfo.h defines ERA], [gl_cv_header_langinfo_era], [AC_COMPILE_IFELSE( @@ -96,6 +111,7 @@ int a = YESEXPR; AC_SUBST([HAVE_LANGINFO_CODESET]) AC_SUBST([HAVE_LANGINFO_T_FMT_AMPM]) AC_SUBST([HAVE_LANGINFO_ALTMON]) + AC_SUBST([HAVE_LANGINFO_ABALTMON]) AC_SUBST([HAVE_LANGINFO_ERA]) AC_SUBST([HAVE_LANGINFO_YESEXPR]) -- cgit v1.2.3-74-g34f1