summaryrefslogtreecommitdiffstats
path: root/gl/m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4')
-rw-r--r--gl/m4/00gnulib.m42
-rw-r--r--gl/m4/__inline.m42
-rw-r--r--gl/m4/absolute-header.m42
-rw-r--r--gl/m4/af_alg.m42
-rw-r--r--gl/m4/alloca.m42
-rw-r--r--gl/m4/arpa_inet_h.m42
-rw-r--r--gl/m4/assert_h.m49
-rw-r--r--gl/m4/base64.m42
-rw-r--r--gl/m4/btowc.m447
-rw-r--r--gl/m4/build-to-host.m42
-rw-r--r--gl/m4/builtin-expect.m42
-rw-r--r--gl/m4/byteswap.m42
-rw-r--r--gl/m4/c-bool.m42
-rw-r--r--gl/m4/c32rtomb.m42
-rw-r--r--gl/m4/calloc.m42
-rw-r--r--gl/m4/close.m42
-rw-r--r--gl/m4/codeset.m42
-rw-r--r--gl/m4/double-slash-root.m42
-rw-r--r--gl/m4/dup2.m42
-rw-r--r--gl/m4/environ.m42
-rw-r--r--gl/m4/errno_h.m459
-rw-r--r--gl/m4/error.m42
-rw-r--r--gl/m4/error_h.m42
-rw-r--r--gl/m4/exponentd.m42
-rw-r--r--gl/m4/extensions-aix.m42
-rw-r--r--gl/m4/extensions.m42
-rw-r--r--gl/m4/extern-inline.m416
-rw-r--r--gl/m4/fclose.m42
-rw-r--r--gl/m4/fcntl-o.m42
-rw-r--r--gl/m4/fcntl.m42
-rw-r--r--gl/m4/fcntl_h.m48
-rw-r--r--gl/m4/fflush.m42
-rw-r--r--gl/m4/float_h.m47
-rw-r--r--gl/m4/floorf.m42
-rw-r--r--gl/m4/fopen.m42
-rw-r--r--gl/m4/fpurge.m42
-rw-r--r--gl/m4/freading.m42
-rw-r--r--gl/m4/free.m46
-rw-r--r--gl/m4/fseek.m42
-rw-r--r--gl/m4/fseeko.m42
-rw-r--r--gl/m4/fseterr.m42
-rw-r--r--gl/m4/fstat.m42
-rw-r--r--gl/m4/fstypename.m42
-rw-r--r--gl/m4/fsusage.m445
-rw-r--r--gl/m4/ftell.m42
-rw-r--r--gl/m4/ftello.m42
-rw-r--r--gl/m4/getaddrinfo.m428
-rw-r--r--gl/m4/getdelim.m451
-rw-r--r--gl/m4/getdtablesize.m42
-rw-r--r--gl/m4/gethostname.m42
-rw-r--r--gl/m4/getline.m451
-rw-r--r--gl/m4/getloadavg.m47
-rw-r--r--gl/m4/getopt.m413
-rw-r--r--gl/m4/getprogname.m410
-rw-r--r--gl/m4/gettext_h.m421
-rw-r--r--gl/m4/gl-openssl.m417
-rw-r--r--gl/m4/gnulib-cache.m42
-rw-r--r--gl/m4/gnulib-common.m4117
-rw-r--r--gl/m4/gnulib-comp.m471
-rw-r--r--gl/m4/gnulib-i18n.m42
-rw-r--r--gl/m4/gnulib-tool.m42
-rw-r--r--gl/m4/hostent.m42
-rw-r--r--gl/m4/idpriv.m42
-rw-r--r--gl/m4/include_next.m42
-rw-r--r--gl/m4/inet_ntop.m47
-rw-r--r--gl/m4/inet_pton.m47
-rw-r--r--gl/m4/intmax_t.m42
-rw-r--r--gl/m4/inttypes.m42
-rw-r--r--gl/m4/inttypes_h.m42
-rw-r--r--gl/m4/iswblank.m42
-rw-r--r--gl/m4/iswctype.m42
-rw-r--r--gl/m4/iswdigit.m42
-rw-r--r--gl/m4/iswpunct.m42
-rw-r--r--gl/m4/iswxdigit.m42
-rw-r--r--gl/m4/langinfo_h.m433
-rw-r--r--gl/m4/largefile.m47
-rw-r--r--gl/m4/libunistring-base.m42
-rw-r--r--gl/m4/limits-h.m42
-rw-r--r--gl/m4/localcharset.m42
-rw-r--r--gl/m4/locale-en.m44
-rw-r--r--gl/m4/locale-fr.m48
-rw-r--r--gl/m4/locale-ja.m48
-rw-r--r--gl/m4/locale-zh.m42
-rw-r--r--gl/m4/locale_h.m48
-rw-r--r--gl/m4/localeconv.m42
-rw-r--r--gl/m4/lock.m48
-rw-r--r--gl/m4/lseek.m42
-rw-r--r--gl/m4/lstat.m42
-rw-r--r--gl/m4/malloc.m458
-rw-r--r--gl/m4/malloca.m42
-rw-r--r--gl/m4/math_h.m437
-rw-r--r--gl/m4/mbchar.m42
-rw-r--r--gl/m4/mbiter.m42
-rw-r--r--gl/m4/mbrtoc32.m42
-rw-r--r--gl/m4/mbrtowc.m473
-rw-r--r--gl/m4/mbsinit.m42
-rw-r--r--gl/m4/mbstate_t.m42
-rw-r--r--gl/m4/mbtowc.m42
-rw-r--r--gl/m4/memchr.m435
-rw-r--r--gl/m4/minmax.m42
-rw-r--r--gl/m4/mktime.m426
-rw-r--r--gl/m4/mmap-anon.m421
-rw-r--r--gl/m4/mode_t.m42
-rw-r--r--gl/m4/mountlist.m415
-rw-r--r--gl/m4/msvc-inval.m42
-rw-r--r--gl/m4/msvc-nothrow.m42
-rw-r--r--gl/m4/multiarch.m42
-rw-r--r--gl/m4/musl.m42
-rw-r--r--gl/m4/netdb_h.m42
-rw-r--r--gl/m4/netinet_in_h.m42
-rw-r--r--gl/m4/nl_langinfo.m431
-rw-r--r--gl/m4/nocrash.m42
-rw-r--r--gl/m4/off64_t.m42
-rw-r--r--gl/m4/off_t.m42
-rw-r--r--gl/m4/once.m42
-rw-r--r--gl/m4/open-cloexec.m42
-rw-r--r--gl/m4/open-slash.m42
-rw-r--r--gl/m4/open.m42
-rw-r--r--gl/m4/pathmax.m42
-rw-r--r--gl/m4/pid_t.m42
-rw-r--r--gl/m4/printf.m435
-rw-r--r--gl/m4/pthread-once.m42
-rw-r--r--gl/m4/pthread-spin.m42
-rw-r--r--gl/m4/pthread_h.m42
-rw-r--r--gl/m4/pthread_rwlock_rdlock.m44
-rw-r--r--gl/m4/realloc.m44
-rw-r--r--gl/m4/reallocarray.m42
-rw-r--r--gl/m4/regex.m42
-rw-r--r--gl/m4/sched_h.m42
-rw-r--r--gl/m4/servent.m42
-rw-r--r--gl/m4/setenv.m46
-rw-r--r--gl/m4/setlocale_null.m412
-rw-r--r--gl/m4/sha256.m42
-rw-r--r--gl/m4/size_max.m42
-rw-r--r--gl/m4/snprintf.m42
-rw-r--r--gl/m4/socketlib.m42
-rw-r--r--gl/m4/sockets.m42
-rw-r--r--gl/m4/socklen.m46
-rw-r--r--gl/m4/sockpfaf.m42
-rw-r--r--gl/m4/ssize_t.m42
-rw-r--r--gl/m4/stat-time.m42
-rw-r--r--gl/m4/stat.m42
-rw-r--r--gl/m4/std-gnu11.m44
-rw-r--r--gl/m4/stdalign.m410
-rw-r--r--gl/m4/stdckdint_h.m42
-rw-r--r--gl/m4/stddef_h.m46
-rw-r--r--gl/m4/stdint.m410
-rw-r--r--gl/m4/stdint_h.m42
-rw-r--r--gl/m4/stdio_h.m42
-rw-r--r--gl/m4/stdlib_h.m46
-rw-r--r--gl/m4/strcasecmp.m42
-rw-r--r--gl/m4/strcasestr.m46
-rw-r--r--gl/m4/strerror.m42
-rw-r--r--gl/m4/string_h.m47
-rw-r--r--gl/m4/stringeq.m425
-rw-r--r--gl/m4/strings_h.m42
-rw-r--r--gl/m4/strncasecmp.m42
-rw-r--r--gl/m4/strncpy.m42
-rw-r--r--gl/m4/strsep.m42
-rw-r--r--gl/m4/strstr.m46
-rw-r--r--gl/m4/sys_cdefs_h.m42
-rw-r--r--gl/m4/sys_socket_h.m415
-rw-r--r--gl/m4/sys_stat_h.m44
-rw-r--r--gl/m4/sys_types_h.m42
-rw-r--r--gl/m4/sys_uio_h.m42
-rw-r--r--gl/m4/threadlib.m445
-rw-r--r--gl/m4/time_h.m42
-rw-r--r--gl/m4/time_r.m42
-rw-r--r--gl/m4/timegm.m42
-rw-r--r--gl/m4/uchar_h.m42
-rw-r--r--gl/m4/ungetc.m42
-rw-r--r--gl/m4/unicase_h.m42
-rw-r--r--gl/m4/unictype_h.m42
-rw-r--r--gl/m4/uninorm_h.m42
-rw-r--r--gl/m4/unistd_h.m42
-rw-r--r--gl/m4/unitypes_h.m42
-rw-r--r--gl/m4/unlocked-io.m45
-rw-r--r--gl/m4/vararrays.m42
-rw-r--r--gl/m4/vasnprintf.m42
-rw-r--r--gl/m4/vasprintf.m42
-rw-r--r--gl/m4/visibility.m42
-rw-r--r--gl/m4/vsnprintf.m42
-rw-r--r--gl/m4/warn-on-use.m42
-rw-r--r--gl/m4/wchar_h.m410
-rw-r--r--gl/m4/wcrtomb.m410
-rw-r--r--gl/m4/wctype.m42
-rw-r--r--gl/m4/wctype_h.m42
-rw-r--r--gl/m4/wcwidth.m46
-rw-r--r--gl/m4/wint_t.m42
-rw-r--r--gl/m4/xalloc.m42
-rw-r--r--gl/m4/xsize.m42
-rw-r--r--gl/m4/zzgnulib.m42
192 files changed, 637 insertions, 844 deletions
diff --git a/gl/m4/00gnulib.m4 b/gl/m4/00gnulib.m4
index 2b205b35..a4b32403 100644
--- a/gl/m4/00gnulib.m4
+++ b/gl/m4/00gnulib.m4
@@ -1,6 +1,6 @@
1# 00gnulib.m4 1# 00gnulib.m4
2# serial 9 2# serial 9
3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/__inline.m4 b/gl/m4/__inline.m4
index d1b8257b..4dedc0d4 100644
--- a/gl/m4/__inline.m4
+++ b/gl/m4/__inline.m4
@@ -1,6 +1,6 @@
1# __inline.m4 1# __inline.m4
2# serial 1 2# serial 1
3dnl Copyright 2017-2025 Free Software Foundation, Inc. 3dnl Copyright 2017-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/absolute-header.m4 b/gl/m4/absolute-header.m4
index 5501b07b..94ecc510 100644
--- a/gl/m4/absolute-header.m4
+++ b/gl/m4/absolute-header.m4
@@ -1,6 +1,6 @@
1# absolute-header.m4 1# absolute-header.m4
2# serial 18 2# serial 18
3dnl Copyright (C) 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/af_alg.m4 b/gl/m4/af_alg.m4
index 38575b6d..e4ff9a3d 100644
--- a/gl/m4/af_alg.m4
+++ b/gl/m4/af_alg.m4
@@ -1,6 +1,6 @@
1# af_alg.m4 1# af_alg.m4
2# serial 6 2# serial 6
3dnl Copyright 2018-2025 Free Software Foundation, Inc. 3dnl Copyright 2018-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/alloca.m4 b/gl/m4/alloca.m4
index 68fc6211..ff0c59dd 100644
--- a/gl/m4/alloca.m4
+++ b/gl/m4/alloca.m4
@@ -1,6 +1,6 @@
1# alloca.m4 1# alloca.m4
2# serial 21 2# serial 21
3dnl Copyright (C) 2002-2004, 2006-2007, 2009-2025 Free Software Foundation, 3dnl Copyright (C) 2002-2004, 2006-2007, 2009-2026 Free Software Foundation,
4dnl Inc. 4dnl Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/arpa_inet_h.m4 b/gl/m4/arpa_inet_h.m4
index 5dae6f72..63634c30 100644
--- a/gl/m4/arpa_inet_h.m4
+++ b/gl/m4/arpa_inet_h.m4
@@ -1,6 +1,6 @@
1# arpa_inet_h.m4 1# arpa_inet_h.m4
2# serial 18 2# serial 18
3dnl Copyright (C) 2006, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/assert_h.m4 b/gl/m4/assert_h.m4
index e77524ca..d9433ef7 100644
--- a/gl/m4/assert_h.m4
+++ b/gl/m4/assert_h.m4
@@ -1,6 +1,6 @@
1# assert_h.m4 1# assert_h.m4
2# serial 5 2# serial 6
3dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -56,8 +56,6 @@ AC_DEFUN([gl_ASSERT_H],
56 dnl The seemingly redundant parentheses are necessary for MSVC 14. 56 dnl The seemingly redundant parentheses are necessary for MSVC 14.
57 dnl #undef assert so that programs are not tempted to use it without 57 dnl #undef assert so that programs are not tempted to use it without
58 dnl specifically including assert.h. 58 dnl specifically including assert.h.
59 dnl #undef __ASSERT_H__ so that on IRIX, when programs later include
60 dnl <assert.h>, this include actually defines assert.
61 dnl Break the #undef_s apart with a comment so that 'configure' does 59 dnl Break the #undef_s apart with a comment so that 'configure' does
62 dnl not comment them out. 60 dnl not comment them out.
63 AH_VERBATIM([zzstatic_assert], 61 AH_VERBATIM([zzstatic_assert],
@@ -78,9 +76,6 @@ AC_DEFUN([gl_ASSERT_H],
78 && __GNUG__ < 6 && __clang_major__ < 6))) 76 && __GNUG__ < 6 && __clang_major__ < 6)))
79 #include <assert.h> 77 #include <assert.h>
80 #undef/**/assert 78 #undef/**/assert
81 #ifdef __sgi
82 #undef/**/__ASSERT_H__
83 #endif
84 /* Solaris 11.4 <assert.h> defines static_assert as a macro with 2 arguments. 79 /* Solaris 11.4 <assert.h> defines static_assert as a macro with 2 arguments.
85 We need it also to be invocable with a single argument. 80 We need it also to be invocable with a single argument.
86 Haiku 2022 <assert.h> does not define static_assert at all. */ 81 Haiku 2022 <assert.h> does not define static_assert at all. */
diff --git a/gl/m4/base64.m4 b/gl/m4/base64.m4
index 785d31c0..40beb50b 100644
--- a/gl/m4/base64.m4
+++ b/gl/m4/base64.m4
@@ -1,6 +1,6 @@
1# base64.m4 1# base64.m4
2# serial 4 2# serial 4
3dnl Copyright (C) 2004, 2006, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2004, 2006, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/btowc.m4 b/gl/m4/btowc.m4
index 59d52be6..93c9d769 100644
--- a/gl/m4/btowc.m4
+++ b/gl/m4/btowc.m4
@@ -1,6 +1,6 @@
1# btowc.m4 1# btowc.m4
2# serial 15 2# serial 16
3dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -13,7 +13,7 @@ AC_DEFUN([gl_FUNC_BTOWC],
13 13
14 dnl Check whether <wchar.h> is usable at all, first. Otherwise the test 14 dnl Check whether <wchar.h> is usable at all, first. Otherwise the test
15 dnl program below may lead to an endless loop. See 15 dnl program below may lead to an endless loop. See
16 dnl <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42440>. 16 dnl <https://gcc.gnu.org/PR42440>.
17 AC_REQUIRE([gl_WCHAR_H_INLINE_OK]) 17 AC_REQUIRE([gl_WCHAR_H_INLINE_OK])
18 18
19 AC_CHECK_FUNCS_ONCE([btowc]) 19 AC_CHECK_FUNCS_ONCE([btowc])
@@ -54,43 +54,6 @@ changequote([,])dnl
54 ]) 54 ])
55 ]) 55 ])
56 56
57 dnl IRIX 6.5 btowc(EOF) is 0xFF, not WEOF.
58 AC_CACHE_CHECK([whether btowc(EOF) is correct],
59 [gl_cv_func_btowc_eof],
60 [
61 dnl Initial guess, used when cross-compiling or when no suitable locale
62 dnl is present.
63changequote(,)dnl
64 case "$host_os" in
65 # Guess no on IRIX.
66 irix*) gl_cv_func_btowc_eof="guessing no" ;;
67 # Guess yes on native Windows.
68 mingw* | windows*) gl_cv_func_btowc_eof="guessing yes" ;;
69 # Guess yes otherwise.
70 *) gl_cv_func_btowc_eof="guessing yes" ;;
71 esac
72changequote([,])dnl
73 if test $LOCALE_FR != none; then
74 AC_RUN_IFELSE(
75 [AC_LANG_SOURCE([[
76#include <locale.h>
77#include <stdio.h>
78#include <wchar.h>
79int main ()
80{
81 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
82 {
83 if (btowc (EOF) != WEOF)
84 return 1;
85 }
86 return 0;
87}]])],
88 [gl_cv_func_btowc_eof=yes],
89 [gl_cv_func_btowc_eof=no],
90 [:])
91 fi
92 ])
93
94 dnl On mingw, in the C locale, btowc is inconsistent with mbrtowc: 57 dnl On mingw, in the C locale, btowc is inconsistent with mbrtowc:
95 dnl mbrtowc avoids calling MultiByteToWideChar when MB_CUR_MAX is 1 and 58 dnl mbrtowc avoids calling MultiByteToWideChar when MB_CUR_MAX is 1 and
96 dnl ___lc_codepage_func() is 0, but btowc is lacking this special case. 59 dnl ___lc_codepage_func() is 0, but btowc is lacking this special case.
@@ -146,10 +109,6 @@ int main ()
146 *yes) ;; 109 *yes) ;;
147 *) REPLACE_BTOWC=1 ;; 110 *) REPLACE_BTOWC=1 ;;
148 esac 111 esac
149 case "$gl_cv_func_btowc_eof" in
150 *yes) ;;
151 *) REPLACE_BTOWC=1 ;;
152 esac
153 case "$gl_cv_func_btowc_consistent" in 112 case "$gl_cv_func_btowc_consistent" in
154 *yes) ;; 113 *yes) ;;
155 *) REPLACE_BTOWC=1 ;; 114 *) REPLACE_BTOWC=1 ;;
diff --git a/gl/m4/build-to-host.m4 b/gl/m4/build-to-host.m4
index 01bff8f3..d3b93ce1 100644
--- a/gl/m4/build-to-host.m4
+++ b/gl/m4/build-to-host.m4
@@ -1,6 +1,6 @@
1# build-to-host.m4 1# build-to-host.m4
2# serial 5 2# serial 5
3dnl Copyright (C) 2023-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2023-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/builtin-expect.m4 b/gl/m4/builtin-expect.m4
index 76d32867..cf96977e 100644
--- a/gl/m4/builtin-expect.m4
+++ b/gl/m4/builtin-expect.m4
@@ -1,6 +1,6 @@
1# builtin-expect.m4 1# builtin-expect.m4
2# serial 3 2# serial 3
3dnl Copyright 2016-2025 Free Software Foundation, Inc. 3dnl Copyright 2016-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/byteswap.m4 b/gl/m4/byteswap.m4
index b53cb4d0..a0287062 100644
--- a/gl/m4/byteswap.m4
+++ b/gl/m4/byteswap.m4
@@ -1,6 +1,6 @@
1# byteswap.m4 1# byteswap.m4
2# serial 7 2# serial 7
3dnl Copyright (C) 2005, 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005, 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/c-bool.m4 b/gl/m4/c-bool.m4
index 8fa8bfc8..f04041a4 100644
--- a/gl/m4/c-bool.m4
+++ b/gl/m4/c-bool.m4
@@ -1,6 +1,6 @@
1# c-bool.m4 1# c-bool.m4
2# serial 3 2# serial 3
3dnl Copyright 2022-2025 Free Software Foundation, Inc. 3dnl Copyright 2022-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/c32rtomb.m4 b/gl/m4/c32rtomb.m4
index ce26a31e..b7a0d44c 100644
--- a/gl/m4/c32rtomb.m4
+++ b/gl/m4/c32rtomb.m4
@@ -1,6 +1,6 @@
1# c32rtomb.m4 1# c32rtomb.m4
2# serial 8 2# serial 8
3dnl Copyright (C) 2020-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2020-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/calloc.m4 b/gl/m4/calloc.m4
index ac7d08d4..2ed64332 100644
--- a/gl/m4/calloc.m4
+++ b/gl/m4/calloc.m4
@@ -1,6 +1,6 @@
1# calloc.m4 1# calloc.m4
2# serial 36 2# serial 36
3dnl Copyright (C) 2004-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2004-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/close.m4 b/gl/m4/close.m4
index 314e321e..9b498643 100644
--- a/gl/m4/close.m4
+++ b/gl/m4/close.m4
@@ -1,6 +1,6 @@
1# close.m4 1# close.m4
2# serial 10 2# serial 10
3dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/codeset.m4 b/gl/m4/codeset.m4
index 6bed9dee..4ab542f4 100644
--- a/gl/m4/codeset.m4
+++ b/gl/m4/codeset.m4
@@ -1,6 +1,6 @@
1# codeset.m4 1# codeset.m4
2# serial 5 (gettext-0.18.2) 2# serial 5 (gettext-0.18.2)
3dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016, 2019-2025 Free Software 3dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016, 2019-2026 Free Software
4dnl Foundation, Inc. 4dnl Foundation, Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/double-slash-root.m4 b/gl/m4/double-slash-root.m4
index 5c40b73c..957adca6 100644
--- a/gl/m4/double-slash-root.m4
+++ b/gl/m4/double-slash-root.m4
@@ -1,6 +1,6 @@
1# double-slash-root.m4 1# double-slash-root.m4
2# serial 4 -*- Autoconf -*- 2# serial 4 -*- Autoconf -*-
3dnl Copyright (C) 2006, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/dup2.m4 b/gl/m4/dup2.m4
index 5da3a0b9..e1d51898 100644
--- a/gl/m4/dup2.m4
+++ b/gl/m4/dup2.m4
@@ -1,6 +1,6 @@
1# dup2.m4 1# dup2.m4
2# serial 28 2# serial 28
3dnl Copyright (C) 2002, 2005, 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002, 2005, 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/environ.m4 b/gl/m4/environ.m4
index e0690e54..5c0644ab 100644
--- a/gl/m4/environ.m4
+++ b/gl/m4/environ.m4
@@ -1,6 +1,6 @@
1# environ.m4 1# environ.m4
2# serial 8 2# serial 8
3dnl Copyright (C) 2001-2004, 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2001-2004, 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/errno_h.m4 b/gl/m4/errno_h.m4
index 420d5bb3..ade19b6f 100644
--- a/gl/m4/errno_h.m4
+++ b/gl/m4/errno_h.m4
@@ -1,6 +1,6 @@
1# errno_h.m4 1# errno_h.m4
2# serial 18 2# serial 19
3dnl Copyright (C) 2004, 2006, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2004, 2006, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -83,59 +83,4 @@ booboo
83 gl_NEXT_HEADERS([errno.h]) 83 gl_NEXT_HEADERS([errno.h])
84 GL_GENERATE_ERRNO_H=true 84 GL_GENERATE_ERRNO_H=true
85 fi 85 fi
86 gl_REPLACE_ERRNO_VALUE([EMULTIHOP])
87 gl_REPLACE_ERRNO_VALUE([ENOLINK])
88 gl_REPLACE_ERRNO_VALUE([EOVERFLOW])
89])
90
91# Assuming $1 = EOVERFLOW.
92# The EOVERFLOW errno value ought to be defined in <errno.h>, according to
93# POSIX. But some systems (like OpenBSD 4.0 or AIX 3) don't define it, and
94# some systems (like OSF/1) define it when _XOPEN_SOURCE_EXTENDED is defined.
95# Check for the value of EOVERFLOW.
96# Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE.
97AC_DEFUN([gl_REPLACE_ERRNO_VALUE],
98[
99 if $GL_GENERATE_ERRNO_H; then
100 AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [
101 AC_EGREP_CPP([yes],[
102#include <errno.h>
103#ifdef ]$1[
104yes
105#endif
106 ],
107 [gl_cv_header_errno_h_]$1[=yes],
108 [gl_cv_header_errno_h_]$1[=no])
109 if test $gl_cv_header_errno_h_]$1[ = no; then
110 AC_EGREP_CPP([yes],[
111#define _XOPEN_SOURCE_EXTENDED 1
112#include <errno.h>
113#ifdef ]$1[
114yes
115#endif
116 ], [gl_cv_header_errno_h_]$1[=hidden])
117 if test $gl_cv_header_errno_h_]$1[ = hidden; then
118 dnl The macro exists but is hidden.
119 dnl Define it to the same value.
120 AC_COMPUTE_INT([gl_cv_header_errno_h_]$1, $1, [
121#define _XOPEN_SOURCE_EXTENDED 1
122#include <errno.h>
123/* The following two lines are a workaround against an autoconf-2.52 bug. */
124#include <stdio.h>
125#include <stdlib.h>
126])
127 fi
128 fi
129 ])
130 case $gl_cv_header_errno_h_]$1[ in
131 yes | no)
132 ]$1[_HIDDEN=0; ]$1[_VALUE=
133 ;;
134 *)
135 ]$1[_HIDDEN=1; ]$1[_VALUE="$gl_cv_header_errno_h_]$1["
136 ;;
137 esac
138 AC_SUBST($1[_HIDDEN])
139 AC_SUBST($1[_VALUE])
140 fi
141]) 86])
diff --git a/gl/m4/error.m4 b/gl/m4/error.m4
index 1572250a..f14b9ceb 100644
--- a/gl/m4/error.m4
+++ b/gl/m4/error.m4
@@ -1,6 +1,6 @@
1# error.m4 1# error.m4
2# serial 16 2# serial 16
3dnl Copyright (C) 1996-1998, 2001-2004, 2009-2025 Free Software Foundation, 3dnl Copyright (C) 1996-1998, 2001-2004, 2009-2026 Free Software Foundation,
4dnl Inc. 4dnl Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/error_h.m4 b/gl/m4/error_h.m4
index 4ef5cbff..73e96943 100644
--- a/gl/m4/error_h.m4
+++ b/gl/m4/error_h.m4
@@ -1,6 +1,6 @@
1# error_h.m4 1# error_h.m4
2# serial 5 2# serial 5
3dnl Copyright (C) 1996-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 1996-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/exponentd.m4 b/gl/m4/exponentd.m4
index 08e93397..bff98570 100644
--- a/gl/m4/exponentd.m4
+++ b/gl/m4/exponentd.m4
@@ -1,6 +1,6 @@
1# exponentd.m4 1# exponentd.m4
2# serial 5 2# serial 5
3dnl Copyright (C) 2007-2008, 2010-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2008, 2010-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/extensions-aix.m4 b/gl/m4/extensions-aix.m4
index 08b703b4..9036d7bb 100644
--- a/gl/m4/extensions-aix.m4
+++ b/gl/m4/extensions-aix.m4
@@ -1,6 +1,6 @@
1# extensions-aix.m4 1# extensions-aix.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2024-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2024-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/extensions.m4 b/gl/m4/extensions.m4
index 76516bce..01a8e5f9 100644
--- a/gl/m4/extensions.m4
+++ b/gl/m4/extensions.m4
@@ -1,6 +1,6 @@
1# extensions.m4 1# extensions.m4
2# serial 25 -*- Autoconf -*- 2# serial 25 -*- Autoconf -*-
3dnl Copyright (C) 2003, 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003, 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/extern-inline.m4 b/gl/m4/extern-inline.m4
index d4fe6d82..4ccc4a95 100644
--- a/gl/m4/extern-inline.m4
+++ b/gl/m4/extern-inline.m4
@@ -1,6 +1,6 @@
1# extern-inline.m4 1# extern-inline.m4
2# serial 1 2# serial 2
3dnl Copyright 2012-2025 Free Software Foundation, Inc. 3dnl Copyright 2012-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -43,9 +43,11 @@ AC_DEFUN([gl_EXTERN_INLINE],
43 functions or macros in standard C headers like <ctype.h>. For example, 43 functions or macros in standard C headers like <ctype.h>. For example,
44 if isdigit is mistakenly implemented via a static inline function, 44 if isdigit is mistakenly implemented via a static inline function,
45 a program containing an extern inline function that calls isdigit 45 a program containing an extern inline function that calls isdigit
46 may not work since the C standard prohibits extern inline functions 46 may not work since C99 through C23 prohibit extern inline functions
47 from calling static functions (ISO C 99 section 6.7.4.(3). 47 from calling static functions (ISO C 23 § 6.7.5 ¶ 3)).
48 This bug is known to occur on: 48 Although a future C standard will likely relax this restriction
49 <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3622.txt>,
50 respect it for now. This bug is known to occur on:
49 51
50 OS X 10.8 and earlier; see: 52 OS X 10.8 and earlier; see:
51 https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html 53 https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html
@@ -112,8 +114,8 @@ AC_DEFUN([gl_EXTERN_INLINE],
112 suppress bogus "no previous prototype for 'FOO'" 114 suppress bogus "no previous prototype for 'FOO'"
113 and "no previous declaration for 'FOO'" diagnostics, 115 and "no previous declaration for 'FOO'" diagnostics,
114 when FOO is an inline function in the header; see 116 when FOO is an inline function in the header; see
115 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54113> and 117 <https://gcc.gnu.org/PR54113> and
116 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63877>. */ 118 <https://gcc.gnu.org/PR63877>. */
117#if __GNUC__ == 4 && 6 <= __GNUC_MINOR__ 119#if __GNUC__ == 4 && 6 <= __GNUC_MINOR__
118# if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__ 120# if defined __GNUC_STDC_INLINE__ && __GNUC_STDC_INLINE__
119# define _GL_INLINE_HEADER_CONST_PRAGMA 121# define _GL_INLINE_HEADER_CONST_PRAGMA
diff --git a/gl/m4/fclose.m4 b/gl/m4/fclose.m4
index cfb92e28..65eb7705 100644
--- a/gl/m4/fclose.m4
+++ b/gl/m4/fclose.m4
@@ -1,6 +1,6 @@
1# fclose.m4 1# fclose.m4
2# serial 12 2# serial 12
3dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fcntl-o.m4 b/gl/m4/fcntl-o.m4
index 8020c481..a94fc557 100644
--- a/gl/m4/fcntl-o.m4
+++ b/gl/m4/fcntl-o.m4
@@ -1,6 +1,6 @@
1# fcntl-o.m4 1# fcntl-o.m4
2# serial 12 2# serial 12
3dnl Copyright (C) 2006, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fcntl.m4 b/gl/m4/fcntl.m4
index 08ab936f..69ac76f9 100644
--- a/gl/m4/fcntl.m4
+++ b/gl/m4/fcntl.m4
@@ -1,6 +1,6 @@
1# fcntl.m4 1# fcntl.m4
2# serial 12 2# serial 12
3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fcntl_h.m4 b/gl/m4/fcntl_h.m4
index 1c9f9cce..946a0bd6 100644
--- a/gl/m4/fcntl_h.m4
+++ b/gl/m4/fcntl_h.m4
@@ -1,6 +1,6 @@
1# fcntl_h.m4 1# fcntl_h.m4
2# serial 20 2# serial 21
3dnl Copyright (C) 2006-2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006-2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -26,7 +26,7 @@ AC_DEFUN_ONCE([gl_FCNTL_H],
26 dnl corresponding gnulib module is not in use, if it is not common 26 dnl corresponding gnulib module is not in use, if it is not common
27 dnl enough to be declared everywhere. 27 dnl enough to be declared everywhere.
28 gl_WARN_ON_USE_PREPARE([[#include <fcntl.h> 28 gl_WARN_ON_USE_PREPARE([[#include <fcntl.h>
29 ]], [fcntl openat]) 29 ]], [fcntl openat openat2])
30]) 30])
31 31
32# gl_FCNTL_MODULE_INDICATOR([modulename]) 32# gl_FCNTL_MODULE_INDICATOR([modulename])
@@ -53,6 +53,7 @@ AC_DEFUN([gl_FCNTL_H_REQUIRE_DEFAULTS],
53 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_NONBLOCKING]) 53 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_NONBLOCKING])
54 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPEN]) 54 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPEN])
55 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPENAT]) 55 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPENAT])
56 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPENAT2])
56 dnl Support Microsoft deprecated alias function names by default. 57 dnl Support Microsoft deprecated alias function names by default.
57 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CREAT], [1]) 58 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CREAT], [1])
58 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_OPEN], [1]) 59 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_OPEN], [1])
@@ -66,6 +67,7 @@ AC_DEFUN([gl_FCNTL_H_DEFAULTS],
66 dnl Assume proper GNU behavior unless another module says otherwise. 67 dnl Assume proper GNU behavior unless another module says otherwise.
67 HAVE_FCNTL=1; AC_SUBST([HAVE_FCNTL]) 68 HAVE_FCNTL=1; AC_SUBST([HAVE_FCNTL])
68 HAVE_OPENAT=1; AC_SUBST([HAVE_OPENAT]) 69 HAVE_OPENAT=1; AC_SUBST([HAVE_OPENAT])
70 HAVE_OPENAT2=0; AC_SUBST([HAVE_OPENAT2])
69 REPLACE_CREAT=0; AC_SUBST([REPLACE_CREAT]) 71 REPLACE_CREAT=0; AC_SUBST([REPLACE_CREAT])
70 REPLACE_FCNTL=0; AC_SUBST([REPLACE_FCNTL]) 72 REPLACE_FCNTL=0; AC_SUBST([REPLACE_FCNTL])
71 REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN]) 73 REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN])
diff --git a/gl/m4/fflush.m4 b/gl/m4/fflush.m4
index 399065b6..c5913b23 100644
--- a/gl/m4/fflush.m4
+++ b/gl/m4/fflush.m4
@@ -1,6 +1,6 @@
1# fflush.m4 1# fflush.m4
2# serial 20 2# serial 20
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/float_h.m4 b/gl/m4/float_h.m4
index 8580c9c9..c0ee7f8f 100644
--- a/gl/m4/float_h.m4
+++ b/gl/m4/float_h.m4
@@ -1,6 +1,6 @@
1# float_h.m4 1# float_h.m4
2# serial 15 2# serial 17
3dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -13,7 +13,7 @@ AC_DEFUN([gl_FLOAT_H],
13 GL_GENERATE_FLOAT_H=false 13 GL_GENERATE_FLOAT_H=false
14 REPLACE_FLOAT_LDBL=0 14 REPLACE_FLOAT_LDBL=0
15 case "$host_os" in 15 case "$host_os" in
16 aix* | beos* | openbsd* | mirbsd* | irix*) 16 aix* | beos* | openbsd* | mirbsd*)
17 GL_GENERATE_FLOAT_H=true 17 GL_GENERATE_FLOAT_H=true
18 ;; 18 ;;
19 freebsd* | dragonfly*) 19 freebsd* | dragonfly*)
@@ -63,6 +63,7 @@ changequote([,])dnl
63 [AC_LANG_PROGRAM( 63 [AC_LANG_PROGRAM(
64 [[#include <float.h> 64 [[#include <float.h>
65 int x[] = { FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG }; 65 int x[] = { FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG };
66 int y[] = { FLT_IS_IEC_60559, DBL_IS_IEC_60559, LDBL_IS_IEC_60559 };
66 float maxf = FLT_NORM_MAX; 67 float maxf = FLT_NORM_MAX;
67 double maxd = DBL_NORM_MAX; 68 double maxd = DBL_NORM_MAX;
68 long double maxl = LDBL_NORM_MAX; 69 long double maxl = LDBL_NORM_MAX;
diff --git a/gl/m4/floorf.m4 b/gl/m4/floorf.m4
index cb75fce9..731f0b0a 100644
--- a/gl/m4/floorf.m4
+++ b/gl/m4/floorf.m4
@@ -1,6 +1,6 @@
1# floorf.m4 1# floorf.m4
2# serial 21 2# serial 21
3dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fopen.m4 b/gl/m4/fopen.m4
index e27b3270..07779a16 100644
--- a/gl/m4/fopen.m4
+++ b/gl/m4/fopen.m4
@@ -1,6 +1,6 @@
1# fopen.m4 1# fopen.m4
2# serial 16 2# serial 16
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fpurge.m4 b/gl/m4/fpurge.m4
index 408a2579..a7cf67dc 100644
--- a/gl/m4/fpurge.m4
+++ b/gl/m4/fpurge.m4
@@ -1,6 +1,6 @@
1# fpurge.m4 1# fpurge.m4
2# serial 16 2# serial 16
3dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/freading.m4 b/gl/m4/freading.m4
index 373d2bff..b5b54f40 100644
--- a/gl/m4/freading.m4
+++ b/gl/m4/freading.m4
@@ -1,6 +1,6 @@
1# freading.m4 1# freading.m4
2# serial 3 2# serial 3
3dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/free.m4 b/gl/m4/free.m4
index 485d8243..c7a134ba 100644
--- a/gl/m4/free.m4
+++ b/gl/m4/free.m4
@@ -1,6 +1,6 @@
1# free.m4 1# free.m4
2# serial 6 2# serial 6
3dnl Copyright (C) 2003-2005, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003-2005, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -14,10 +14,10 @@ AC_DEFUN([gl_FUNC_FREE],
14 14
15 dnl In the next release of POSIX, free must preserve errno. 15 dnl In the next release of POSIX, free must preserve errno.
16 dnl https://www.austingroupbugs.net/view.php?id=385 16 dnl https://www.austingroupbugs.net/view.php?id=385
17 dnl https://sourceware.org/bugzilla/show_bug.cgi?id=17924 17 dnl https://sourceware.org/PR17924
18 dnl So far, we know of three platforms that do this: 18 dnl So far, we know of three platforms that do this:
19 dnl * glibc >= 2.33, thanks to the fix for this bug: 19 dnl * glibc >= 2.33, thanks to the fix for this bug:
20 dnl <https://sourceware.org/bugzilla/show_bug.cgi?id=17924> 20 dnl <https://sourceware.org/PR17924>
21 dnl * OpenBSD >= 4.5, thanks to this commit: 21 dnl * OpenBSD >= 4.5, thanks to this commit:
22 dnl <https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/malloc.c.diff?r1=1.100&r2=1.101&f=h> 22 dnl <https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/malloc.c.diff?r1=1.100&r2=1.101&f=h>
23 dnl * Solaris, because its malloc() implementation is based on brk(), 23 dnl * Solaris, because its malloc() implementation is based on brk(),
diff --git a/gl/m4/fseek.m4 b/gl/m4/fseek.m4
index ce728f60..398fd5f8 100644
--- a/gl/m4/fseek.m4
+++ b/gl/m4/fseek.m4
@@ -1,6 +1,6 @@
1# fseek.m4 1# fseek.m4
2# serial 4 2# serial 4
3dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fseeko.m4 b/gl/m4/fseeko.m4
index c093d399..cd81961a 100644
--- a/gl/m4/fseeko.m4
+++ b/gl/m4/fseeko.m4
@@ -1,6 +1,6 @@
1# fseeko.m4 1# fseeko.m4
2# serial 21 2# serial 21
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fseterr.m4 b/gl/m4/fseterr.m4
index 3a94c288..e5ad635b 100644
--- a/gl/m4/fseterr.m4
+++ b/gl/m4/fseterr.m4
@@ -1,6 +1,6 @@
1# fseterr.m4 1# fseterr.m4
2# serial 2 2# serial 2
3dnl Copyright (C) 2012-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2012-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fstat.m4 b/gl/m4/fstat.m4
index e89bbc32..7db4e346 100644
--- a/gl/m4/fstat.m4
+++ b/gl/m4/fstat.m4
@@ -1,6 +1,6 @@
1# fstat.m4 1# fstat.m4
2# serial 10 2# serial 10
3dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fstypename.m4 b/gl/m4/fstypename.m4
index 4407b765..64122a73 100644
--- a/gl/m4/fstypename.m4
+++ b/gl/m4/fstypename.m4
@@ -1,6 +1,6 @@
1# fstypename.m4 1# fstypename.m4
2# serial 6 2# serial 6
3dnl Copyright (C) 1998-1999, 2001, 2004, 2006, 2009-2025 Free Software 3dnl Copyright (C) 1998-1999, 2001, 2004, 2006, 2009-2026 Free Software
4dnl Foundation, Inc. 4dnl Foundation, Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/fsusage.m4 b/gl/m4/fsusage.m4
index bb7b6e43..db6e0e3b 100644
--- a/gl/m4/fsusage.m4
+++ b/gl/m4/fsusage.m4
@@ -1,6 +1,6 @@
1# fsusage.m4 1# fsusage.m4
2# serial 35 2# serial 37
3dnl Copyright (C) 1997-1998, 2000-2001, 2003-2025 Free Software Foundation, 3dnl Copyright (C) 1997-1998, 2000-2001, 2003-2026 Free Software Foundation,
4dnl Inc. 4dnl Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
@@ -48,16 +48,12 @@ AC_DEFUN([gl_FILE_SYSTEM_USAGE],
48 # is what it gets when this test fails. 48 # is what it gets when this test fails.
49 if test $ac_fsusage_space = no; then 49 if test $ac_fsusage_space = no; then
50 # glibc/{Hurd,kFreeBSD}, FreeBSD >= 5.0, NetBSD >= 3.0, 50 # glibc/{Hurd,kFreeBSD}, FreeBSD >= 5.0, NetBSD >= 3.0,
51 # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS. 51 # OpenBSD >= 4.4, AIX, HP-UX, Solaris, Cygwin, Interix, BeOS.
52 AC_CACHE_CHECK([for statvfs function (SVR4)], 52 AC_CACHE_CHECK([for statvfs function (SVR4)],
53 [fu_cv_sys_stat_statvfs], 53 [fu_cv_sys_stat_statvfs],
54 [AC_LINK_IFELSE( 54 [AC_LINK_IFELSE(
55 [AC_LANG_PROGRAM([[ 55 [AC_LANG_PROGRAM([[
56#include <sys/types.h> 56#include <sys/types.h>
57#ifdef __osf__
58"Do not use Tru64's statvfs implementation"
59#endif
60
61#include <sys/statvfs.h> 57#include <sys/statvfs.h>
62 58
63struct statvfs fsd; 59struct statvfs fsd;
@@ -79,7 +75,7 @@ int check_f_blocks_size[sizeof fsd.f_blocks * CHAR_BIT <= 32 ? -1 : 1];
79 if test $fu_cv_sys_stat_statvfs = yes; then 75 if test $fu_cv_sys_stat_statvfs = yes; then
80 ac_fsusage_space=yes 76 ac_fsusage_space=yes
81 # AIX >= 5.2 has statvfs64 that has a wider f_blocks field than statvfs. 77 # AIX >= 5.2 has statvfs64 that has a wider f_blocks field than statvfs.
82 # glibc, HP-UX, IRIX, Solaris have statvfs64 as well, but on these systems 78 # glibc, HP-UX, Solaris have statvfs64 as well, but on these systems
83 # statvfs with large-file support is already equivalent to statvfs64. 79 # statvfs with large-file support is already equivalent to statvfs64.
84 AC_CACHE_CHECK([whether to use statvfs64], 80 AC_CACHE_CHECK([whether to use statvfs64],
85 [fu_cv_sys_stat_statvfs64], 81 [fu_cv_sys_stat_statvfs64],
@@ -141,37 +137,9 @@ int check_f_blocks_size[sizeof fsd.f_blocks * CHAR_BIT <= 32 ? -1 : 1];
141 fi 137 fi
142 138
143 if test $ac_fsusage_space = no; then 139 if test $ac_fsusage_space = no; then
144 # DEC Alpha running OSF/1
145 AC_CACHE_CHECK([for 3-argument statfs function (DEC OSF/1)],
146 [fu_cv_sys_stat_statfs3_osf1],
147 [AC_RUN_IFELSE([AC_LANG_SOURCE([[
148#include <sys/param.h>
149#include <sys/types.h>
150#include <sys/mount.h>
151 int
152 main ()
153 {
154 struct statfs fsd;
155 fsd.f_fsize = 0;
156 return statfs (".", &fsd, sizeof (struct statfs)) != 0;
157 }]])],
158 [fu_cv_sys_stat_statfs3_osf1=yes],
159 [fu_cv_sys_stat_statfs3_osf1=no],
160 [fu_cv_sys_stat_statfs3_osf1=no])
161 ])
162 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
163 ac_fsusage_space=yes
164 AC_DEFINE([STAT_STATFS3_OSF1], [1],
165 [Define if statfs takes 3 args. (DEC Alpha running OSF/1)])
166 fi
167 fi
168
169 if test $ac_fsusage_space = no; then
170 # glibc/Linux, Mac OS X, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4. 140 # glibc/Linux, Mac OS X, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4.
171 # (glibc/{Hurd,kFreeBSD}, FreeBSD >= 5.0, NetBSD >= 3.0, 141 # (glibc/{Hurd,kFreeBSD}, FreeBSD >= 5.0, NetBSD >= 3.0,
172 # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.) 142 # OpenBSD >= 4.4, AIX, HP-UX, Cygwin already handled above.)
173 # (On IRIX you need to include <sys/statfs.h>, not only <sys/mount.h> and
174 # <sys/vfs.h>.)
175 # (On Solaris, statfs has 4 arguments.) 143 # (On Solaris, statfs has 4 arguments.)
176 AC_CACHE_CHECK([for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)], 144 AC_CACHE_CHECK([for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)],
177 [fu_cv_sys_stat_statfs2_bsize], 145 [fu_cv_sys_stat_statfs2_bsize],
@@ -225,13 +193,12 @@ int check_f_blocks_size[sizeof fsd.f_blocks * CHAR_BIT <= 32 ? -1 : 1];
225 if test $fu_cv_sys_stat_statfs4 = yes; then 193 if test $fu_cv_sys_stat_statfs4 = yes; then
226 ac_fsusage_space=yes 194 ac_fsusage_space=yes
227 AC_DEFINE([STAT_STATFS4], [1], 195 AC_DEFINE([STAT_STATFS4], [1],
228 [Define if statfs takes 4 args. (SVR3, old Irix)]) 196 [Define if statfs takes 4 args. (SVR3)])
229 fi 197 fi
230 fi 198 fi
231 199
232 if test $ac_fsusage_space = no; then 200 if test $ac_fsusage_space = no; then
233 # 4.4BSD and older NetBSD 201 # 4.4BSD and older NetBSD
234 # (OSF/1 already handled above.)
235 # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.) 202 # (On AIX, you need to include <sys/statfs.h>, not only <sys/mount.h>.)
236 # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in 203 # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in
237 # <sys/mount.h>.) 204 # <sys/mount.h>.)
diff --git a/gl/m4/ftell.m4 b/gl/m4/ftell.m4
index d5610b70..0b389f86 100644
--- a/gl/m4/ftell.m4
+++ b/gl/m4/ftell.m4
@@ -1,6 +1,6 @@
1# ftell.m4 1# ftell.m4
2# serial 3 2# serial 3
3dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/ftello.m4 b/gl/m4/ftello.m4
index 35d30f98..ae0e884f 100644
--- a/gl/m4/ftello.m4
+++ b/gl/m4/ftello.m4
@@ -1,6 +1,6 @@
1# ftello.m4 1# ftello.m4
2# serial 17 2# serial 17
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/getaddrinfo.m4 b/gl/m4/getaddrinfo.m4
index 2931d526..8a63600b 100644
--- a/gl/m4/getaddrinfo.m4
+++ b/gl/m4/getaddrinfo.m4
@@ -1,6 +1,6 @@
1# getaddrinfo.m4 1# getaddrinfo.m4
2# serial 38 2# serial 39
3dnl Copyright (C) 2004-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2004-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -90,7 +90,7 @@ int getaddrinfo (const char *, const char *, const struct addrinfo *, struct add
90 fi 90 fi
91 fi 91 fi
92 if test $HAVE_GETADDRINFO != 0; then 92 if test $HAVE_GETADDRINFO != 0; then
93 AC_CACHE_CHECK([whether getaddrinfo supports AI_NUMERICSERV], 93 AC_CACHE_CHECK([whether getaddrinfo supports AI_NUMERICHOST and AI_NUMERICSERV],
94 [gl_cv_func_getaddrinfo_works], 94 [gl_cv_func_getaddrinfo_works],
95 [AC_RUN_IFELSE( 95 [AC_RUN_IFELSE(
96 [AC_LANG_PROGRAM([[ 96 [AC_LANG_PROGRAM([[
@@ -107,16 +107,30 @@ int getaddrinfo (const char *, const char *, const struct addrinfo *, struct add
107#include <stddef.h> 107#include <stddef.h>
108#include <string.h> 108#include <string.h>
109 ]], [[ 109 ]], [[
110 struct addrinfo hints; 110 int result = 0;
111 struct addrinfo *ai; 111 struct addrinfo *ai;
112 memset (&hints, 0, sizeof (hints)); 112 {
113 hints.ai_flags = AI_NUMERICSERV; 113 struct addrinfo hints;
114 return getaddrinfo ("www.gnu.org", "http", &hints, &ai) != EAI_NONAME; 114 memset (&hints, 0, sizeof (hints));
115 hints.ai_flags = AI_NUMERICHOST;
116 if (getaddrinfo ("www.gnu.org", "http", &hints, &ai) != EAI_NONAME)
117 result |= 1;
118 }
119 {
120 struct addrinfo hints;
121 memset (&hints, 0, sizeof (hints));
122 hints.ai_flags = AI_NUMERICSERV;
123 if (getaddrinfo ("www.gnu.org", "http", &hints, &ai) != EAI_NONAME)
124 result |= 2;
125 }
126 return result;
115 ]]) 127 ]])
116 ], 128 ],
117 [gl_cv_func_getaddrinfo_works=yes], 129 [gl_cv_func_getaddrinfo_works=yes],
118 [gl_cv_func_getaddrinfo_works=no], 130 [gl_cv_func_getaddrinfo_works=no],
119 [case "$host_os" in 131 [case "$host_os" in
132 # Guess no on Solaris.
133 solaris*) gl_cv_func_getaddrinfo_works="guessing no" ;;
120 # Guess no on native Windows. 134 # Guess no on native Windows.
121 mingw* | windows*) gl_cv_func_getaddrinfo_works="guessing no" ;; 135 mingw* | windows*) gl_cv_func_getaddrinfo_works="guessing no" ;;
122 # Guess yes otherwise. 136 # Guess yes otherwise.
diff --git a/gl/m4/getdelim.m4 b/gl/m4/getdelim.m4
index 63d88306..8b6eff47 100644
--- a/gl/m4/getdelim.m4
+++ b/gl/m4/getdelim.m4
@@ -1,7 +1,7 @@
1# getdelim.m4 1# getdelim.m4
2# serial 19 2# serial 21
3 3
4dnl Copyright (C) 2005-2007, 2009-2025 Free Software Foundation, Inc. 4dnl Copyright (C) 2005-2007, 2009-2026 Free Software Foundation, Inc.
5dnl 5dnl
6dnl This file is free software; the Free Software Foundation 6dnl This file is free software; the Free Software Foundation
7dnl gives unlimited permission to copy and/or distribute it, 7dnl gives unlimited permission to copy and/or distribute it,
@@ -37,6 +37,7 @@ AC_DEFUN([gl_FUNC_GETDELIM],
37 gl_cv_func_working_getdelim=no ;; 37 gl_cv_func_working_getdelim=no ;;
38 *) 38 *)
39 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 39 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
40 touch conftest.empty
40 AC_RUN_IFELSE([AC_LANG_SOURCE([[ 41 AC_RUN_IFELSE([AC_LANG_SOURCE([[
41# include <stdio.h> 42# include <stdio.h>
42# include <stdlib.h> 43# include <stdlib.h>
@@ -44,6 +45,7 @@ AC_DEFUN([gl_FUNC_GETDELIM],
44 int main () 45 int main ()
45 { 46 {
46 FILE *in = fopen ("./conftest.data", "r"); 47 FILE *in = fopen ("./conftest.data", "r");
48 int result = 0;
47 if (!in) 49 if (!in)
48 return 1; 50 return 1;
49 { 51 {
@@ -53,7 +55,7 @@ AC_DEFUN([gl_FUNC_GETDELIM],
53 size_t siz = 0; 55 size_t siz = 0;
54 int len = getdelim (&line, &siz, '\n', in); 56 int len = getdelim (&line, &siz, '\n', in);
55 if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) 57 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
56 { free (line); fclose (in); return 2; } 58 result |= 2;
57 free (line); 59 free (line);
58 } 60 }
59 { 61 {
@@ -62,35 +64,40 @@ AC_DEFUN([gl_FUNC_GETDELIM],
62 char *line = NULL; 64 char *line = NULL;
63 size_t siz = (size_t)(~0) / 4; 65 size_t siz = (size_t)(~0) / 4;
64 if (getdelim (&line, &siz, '\n', in) == -1) 66 if (getdelim (&line, &siz, '\n', in) == -1)
65 { fclose (in); return 3; } 67 result |= 4;
66 free (line); 68 free (line);
67 } 69 }
68 fclose (in); 70 fclose (in);
69 return 0; 71 {
72 /* Test that reading EOF as the first character sets the first byte
73 in the buffer to NUL. This fails on glibc 2.42 and earlier. */
74 in = fopen ("./conftest.empty", "r");
75 if (!in)
76 return 1;
77 char *line = malloc (1);
78 line[0] = 'A';
79 size_t siz = 1;
80 if (getdelim (&line, &siz, '\n', in) != -1 || line[0] != '\0')
81 result |= 8;
82 free (line);
83 }
84 fclose (in);
85 return result;
70 } 86 }
71 ]])], 87 ]])],
72 [gl_cv_func_working_getdelim=yes], 88 [gl_cv_func_working_getdelim=yes],
73 [gl_cv_func_working_getdelim=no], 89 [gl_cv_func_working_getdelim=no],
74 [dnl We're cross compiling. 90 [case "$host_os" in
75 dnl Guess it works on glibc2 systems and musl systems. 91 # Guess yes on musl.
76 AC_EGREP_CPP([Lucky GNU user], 92 *-musl* | midipix*) gl_cv_func_working_getdelim="guessing yes" ;;
77 [ 93 # Guess no on glibc.
78#include <features.h> 94 *-gnu* | gnu*) gl_cv_func_working_getdelim="guessing no" ;;
79#ifdef __GNU_LIBRARY__ 95 *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
80 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 96 esac
81 Lucky GNU user
82 #endif
83#endif
84 ],
85 [gl_cv_func_working_getdelim="guessing yes"],
86 [case "$host_os" in
87 *-musl* | midipix*) gl_cv_func_working_getdelim="guessing yes" ;;
88 *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
89 esac
90 ])
91 ]) 97 ])
92 ;; 98 ;;
93 esac 99 esac
100 rm -f conftest.data conftest.empty
94 ]) 101 ])
95 case "$gl_cv_func_working_getdelim" in 102 case "$gl_cv_func_working_getdelim" in
96 *yes) ;; 103 *yes) ;;
diff --git a/gl/m4/getdtablesize.m4 b/gl/m4/getdtablesize.m4
index 112c1c4d..0b780110 100644
--- a/gl/m4/getdtablesize.m4
+++ b/gl/m4/getdtablesize.m4
@@ -1,6 +1,6 @@
1# getdtablesize.m4 1# getdtablesize.m4
2# serial 8 2# serial 8
3dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/gethostname.m4 b/gl/m4/gethostname.m4
index be71ff78..33293521 100644
--- a/gl/m4/gethostname.m4
+++ b/gl/m4/gethostname.m4
@@ -1,6 +1,6 @@
1# gethostname.m4 1# gethostname.m4
2# serial 16 2# serial 16
3dnl Copyright (C) 2002, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/getline.m4 b/gl/m4/getline.m4
index b97b8011..ed32fa10 100644
--- a/gl/m4/getline.m4
+++ b/gl/m4/getline.m4
@@ -1,7 +1,7 @@
1# getline.m4 1# getline.m4
2# serial 33 2# serial 35
3 3
4dnl Copyright (C) 1998-2003, 2005-2007, 2009-2025 Free Software Foundation, 4dnl Copyright (C) 1998-2003, 2005-2007, 2009-2026 Free Software Foundation,
5dnl Inc. 5dnl Inc.
6dnl 6dnl
7dnl This file is free software; the Free Software Foundation 7dnl This file is free software; the Free Software Foundation
@@ -31,6 +31,7 @@ AC_DEFUN([gl_FUNC_GETLINE],
31 AC_CACHE_CHECK([for working getline function], 31 AC_CACHE_CHECK([for working getline function],
32 [am_cv_func_working_getline], 32 [am_cv_func_working_getline],
33 [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data 33 [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
34 touch conftest.empty
34 AC_RUN_IFELSE([AC_LANG_SOURCE([[ 35 AC_RUN_IFELSE([AC_LANG_SOURCE([[
35# include <stdio.h> 36# include <stdio.h>
36# include <stdlib.h> 37# include <stdlib.h>
@@ -38,6 +39,7 @@ AC_DEFUN([gl_FUNC_GETLINE],
38 int main () 39 int main ()
39 { 40 {
40 FILE *in = fopen ("./conftest.data", "r"); 41 FILE *in = fopen ("./conftest.data", "r");
42 int result = 0;
41 if (!in) 43 if (!in)
42 return 1; 44 return 1;
43 { 45 {
@@ -47,7 +49,7 @@ AC_DEFUN([gl_FUNC_GETLINE],
47 size_t siz = 0; 49 size_t siz = 0;
48 int len = getline (&line, &siz, in); 50 int len = getline (&line, &siz, in);
49 if (!(len == 4 && line && strcmp (line, "foo\n") == 0)) 51 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
50 { free (line); fclose (in); return 2; } 52 result |= 2;
51 free (line); 53 free (line);
52 } 54 }
53 { 55 {
@@ -56,33 +58,38 @@ AC_DEFUN([gl_FUNC_GETLINE],
56 char *line = NULL; 58 char *line = NULL;
57 size_t siz = (size_t)(~0) / 4; 59 size_t siz = (size_t)(~0) / 4;
58 if (getline (&line, &siz, in) == -1) 60 if (getline (&line, &siz, in) == -1)
59 { fclose (in); return 3; } 61 result |= 4;
60 free (line); 62 free (line);
61 } 63 }
62 fclose (in); 64 fclose (in);
63 return 0; 65 {
66 /* Test that reading EOF as the first character sets the first byte
67 in the buffer to NUL. This fails on glibc 2.42 and earlier. */
68 in = fopen ("./conftest.empty", "r");
69 if (!in)
70 return 1;
71 char *line = malloc (1);
72 line[0] = 'A';
73 size_t siz = 1;
74 if (getline (&line, &siz, in) != -1 || line[0] != '\0')
75 result |= 8;
76 free (line);
77 }
78 fclose (in);
79 return result;
64 } 80 }
65 ]])], 81 ]])],
66 [am_cv_func_working_getline=yes], 82 [am_cv_func_working_getline=yes],
67 [am_cv_func_working_getline=no], 83 [am_cv_func_working_getline=no],
68 [dnl We're cross compiling. 84 [case "$host_os" in
69 dnl Guess it works on glibc2 systems and musl systems. 85 # Guess yes on musl.
70 AC_EGREP_CPP([Lucky GNU user], 86 *-musl* | midipix*) am_cv_func_working_getline="guessing yes" ;;
71 [ 87 # Guess no on glibc.
72#include <features.h> 88 *-gnu* | gnu*) am_cv_func_working_getline="guessing no" ;;
73#ifdef __GNU_LIBRARY__ 89 *) am_cv_func_working_getline="$gl_cross_guess_normal" ;;
74 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 90 esac
75 Lucky GNU user
76 #endif
77#endif
78 ],
79 [am_cv_func_working_getline="guessing yes"],
80 [case "$host_os" in
81 *-musl* | midipix*) am_cv_func_working_getline="guessing yes" ;;
82 *) am_cv_func_working_getline="$gl_cross_guess_normal" ;;
83 esac
84 ])
85 ]) 91 ])
92 rm -f conftest.data conftest.empty
86 ]) 93 ])
87 else 94 else
88 am_cv_func_working_getline=no 95 am_cv_func_working_getline=no
diff --git a/gl/m4/getloadavg.m4 b/gl/m4/getloadavg.m4
index 8ab613db..dc226168 100644
--- a/gl/m4/getloadavg.m4
+++ b/gl/m4/getloadavg.m4
@@ -1,6 +1,6 @@
1# getloadavg.m4 1# getloadavg.m4
2# serial 13 2# serial 14
3dnl Copyright (C) 1992-1996, 1999-2000, 2002-2003, 2006, 2008-2025 Free 3dnl Copyright (C) 1992-1996, 1999-2000, 2002-2003, 2006, 2008-2026 Free
4dnl Software Foundation, Inc. 4dnl Software Foundation, Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
@@ -124,8 +124,7 @@ if test $gl_func_getloadavg_done = no; then
124fi 124fi
125 125
126# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it 126# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
127# uses stabs), but it is still SVR4. We cannot check for <elf.h> because 127# uses stabs), but it is still SVR4.
128# Irix 4.0.5F has the header but not the library.
129if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \ 128if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \
130 && test "$ac_cv_lib_kvm_kvm_open" = yes; then 129 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
131 gl_func_getloadavg_done=yes 130 gl_func_getloadavg_done=yes
diff --git a/gl/m4/getopt.m4 b/gl/m4/getopt.m4
index cb344c15..c620b2b7 100644
--- a/gl/m4/getopt.m4
+++ b/gl/m4/getopt.m4
@@ -1,6 +1,6 @@
1# getopt.m4 1# getopt.m4
2# serial 50 2# serial 52
3dnl Copyright (C) 2002-2006, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2006, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -88,8 +88,8 @@ AC_DEFUN([gl_GETOPT_CHECK_HEADERS],
88 dnl Merging these three different test programs into a single one 88 dnl Merging these three different test programs into a single one
89 dnl would require a reset mechanism. On BSD systems, it can be done 89 dnl would require a reset mechanism. On BSD systems, it can be done
90 dnl through 'optreset'; on some others (glibc), it can be done by 90 dnl through 'optreset'; on some others (glibc), it can be done by
91 dnl setting 'optind' to 0; on others again (HP-UX, IRIX, OSF/1, 91 dnl setting 'optind' to 0; on others again (HP-UX, Solaris 9,
92 dnl Solaris 9, musl libc), there is no such mechanism. 92 dnl musl libc), there is no such mechanism.
93 if test $cross_compiling = no; then 93 if test $cross_compiling = no; then
94 dnl Sanity check. Succeeds everywhere (except on MSVC, 94 dnl Sanity check. Succeeds everywhere (except on MSVC,
95 dnl which lacks <unistd.h> and getopt() entirely). 95 dnl which lacks <unistd.h> and getopt() entirely).
@@ -238,8 +238,7 @@ dnl is ambiguous with environment values that contain newlines.
238 nocrash_init(); 238 nocrash_init();
239 239
240 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, 240 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
241 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, 241 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, Solaris 10. */
242 OSF/1 5.1, Solaris 10. */
243 { 242 {
244 static char conftest[] = "conftest"; 243 static char conftest[] = "conftest";
245 static char plus[] = "-+"; 244 static char plus[] = "-+";
@@ -250,7 +249,7 @@ dnl is ambiguous with environment values that contain newlines.
250 } 249 }
251 /* This code succeeds on glibc 2.8, mingw, 250 /* This code succeeds on glibc 2.8, mingw,
252 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, 251 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
253 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ 252 Solaris 10, Cygwin 1.5.x. */
254 { 253 {
255 static char program[] = "program"; 254 static char program[] = "program";
256 static char p[] = "-p"; 255 static char p[] = "-p";
diff --git a/gl/m4/getprogname.m4 b/gl/m4/getprogname.m4
index 90f34c74..d60f3efb 100644
--- a/gl/m4/getprogname.m4
+++ b/gl/m4/getprogname.m4
@@ -1,6 +1,6 @@
1# getprogname.m4 1# getprogname.m4
2# serial 8 2# serial 9
3dnl Copyright (C) 2016-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2016-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -12,6 +12,12 @@ AC_DEFUN([gl_FUNC_GETPROGNAME],
12[ 12[
13 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 13 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
14 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 14 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
15 AC_CHECK_HEADERS_ONCE([sys/process.h])
16 if test $ac_cv_header_sys_process_h = yes; then
17 HAVE_SYS_PROCESS_H=1
18 else
19 HAVE_SYS_PROCESS_H=0
20 fi
15 gl_CHECK_FUNCS_ANDROID([getprogname], [[#include <stdlib.h>]]) 21 gl_CHECK_FUNCS_ANDROID([getprogname], [[#include <stdlib.h>]])
16 if test $ac_cv_func_getprogname = no; then 22 if test $ac_cv_func_getprogname = no; then
17 HAVE_GETPROGNAME=0 23 HAVE_GETPROGNAME=0
diff --git a/gl/m4/gettext_h.m4 b/gl/m4/gettext_h.m4
new file mode 100644
index 00000000..7ef89541
--- /dev/null
+++ b/gl/m4/gettext_h.m4
@@ -0,0 +1,21 @@
1# gettext_h.m4
2# serial 1
3dnl Copyright (C) 2025-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
8
9AC_DEFUN_ONCE([gl_GETTEXT_H],
10[
11 AC_SUBST([LIBINTL])
12 AC_SUBST([LTLIBINTL])
13 AH_BOTTOM([
14/* The text domainname for Gnulib messages. Ordinarily this is "gnulib",
15 but packages that do their own translations of Gnulib can use something
16 different by defining GNULIB_TEXT_DOMAIN in their config.h file. */
17#ifndef GNULIB_TEXT_DOMAIN
18# define GNULIB_TEXT_DOMAIN/**/"gnulib"
19#endif
20])
21])
diff --git a/gl/m4/gl-openssl.m4 b/gl/m4/gl-openssl.m4
index 3cfea50f..70f43a55 100644
--- a/gl/m4/gl-openssl.m4
+++ b/gl/m4/gl-openssl.m4
@@ -1,6 +1,6 @@
1# gl-openssl.m4 1# gl-openssl.m4
2# serial 7 2# serial 8
3dnl Copyright (C) 2013-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2013-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -58,12 +58,17 @@ AC_DEFUN([gl_CRYPTO_CHECK],
58 fi 58 fi
59 if test "x$with_openssl" != xauto-gpl-compat || 59 if test "x$with_openssl" != xauto-gpl-compat ||
60 test "x$gl_cv_openssl_gpl_compat" = xyes; then 60 test "x$gl_cv_openssl_gpl_compat" = xyes; then
61 AC_CHECK_LIB([crypto], [$1], 61 m4_if([$1], [SHA3],
62 [AC_CHECK_HEADERS( 62 [AC_CHECK_LIB([crypto], [EVP_sha3_224],
63 m4_if([$1], [MD5], [openssl/md5.h], [openssl/sha.h]),
64 [LIB_CRYPTO=-lcrypto 63 [LIB_CRYPTO=-lcrypto
65 AC_DEFINE([HAVE_OPENSSL_$1], [1], 64 AC_DEFINE([HAVE_OPENSSL_$1], [1],
66 [Define to 1 if libcrypto is used for $1.])])]) 65 [Define to 1 if libcrypto is used for $1.])])],
66 [AC_CHECK_LIB([crypto], [$1],
67 [AC_CHECK_HEADERS(
68 m4_if([$1], [MD5], [openssl/md5.h], [openssl/sha.h]),
69 [LIB_CRYPTO=-lcrypto
70 AC_DEFINE([HAVE_OPENSSL_$1], [1],
71 [Define to 1 if libcrypto is used for $1.])])])])
67 fi 72 fi
68 if test "x$LIB_CRYPTO" = x; then 73 if test "x$LIB_CRYPTO" = x; then
69 message='openssl development library not found for $1. 74 message='openssl development library not found for $1.
diff --git a/gl/m4/gnulib-cache.m4 b/gl/m4/gnulib-cache.m4
index 6a6e8593..1b964b34 100644
--- a/gl/m4/gnulib-cache.m4
+++ b/gl/m4/gnulib-cache.m4
@@ -1,4 +1,4 @@
1# Copyright (C) 2002-2025 Free Software Foundation, Inc. 1# Copyright (C) 2002-2026 Free Software Foundation, Inc.
2# 2#
3# This file is free software; you can redistribute it and/or modify 3# This file is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by 4# it under the terms of the GNU General Public License as published by
diff --git a/gl/m4/gnulib-common.m4 b/gl/m4/gnulib-common.m4
index 034dae69..26eef771 100644
--- a/gl/m4/gnulib-common.m4
+++ b/gl/m4/gnulib-common.m4
@@ -1,6 +1,6 @@
1# gnulib-common.m4 1# gnulib-common.m4
2# serial 113 2# serial 115
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -168,7 +168,7 @@ AC_DEFUN([gl_COMMON_BODY], [
168 ====================================================================== 168 ======================================================================
169 This gives a syntax error 169 This gives a syntax error
170 - in C mode with gcc 170 - in C mode with gcc
171 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108796>, and 171 <https://gcc.gnu.org/PR108796>, and
172 - in C++ mode with clang++ version < 16, and 172 - in C++ mode with clang++ version < 16, and
173 - in C++ mode, inside extern "C" {}, still in newer clang++ versions 173 - in C++ mode, inside extern "C" {}, still in newer clang++ versions
174 <https://github.com/llvm/llvm-project/issues/101990>. 174 <https://github.com/llvm/llvm-project/issues/101990>.
@@ -414,22 +414,25 @@ AC_DEFUN([gl_COMMON_BODY], [
414#endif 414#endif
415 415
416/* _GL_ATTRIBUTE_CONST declares: 416/* _GL_ATTRIBUTE_CONST declares:
417 It is OK for a compiler to move calls to the function and to omit 417 It is OK for a compiler to move a call, or omit a duplicate call
418 calls to the function if another call has the same arguments or the 418 and reuse a cached return value, even if the state changes between calls.
419 result is not used. 419 It is also OK to omit a call if the result is not used.
420 This attribute is safe for a function that neither depends on 420 This attribute is safe if the function does not change observable state,
421 nor affects state, and always returns exactly once - 421 returns a value determined solely by its arguments' values
422 without examining state, and always returns exactly once -
422 e.g., does not raise an exception, call longjmp, or loop forever. 423 e.g., does not raise an exception, call longjmp, or loop forever.
423 (This attribute is stricter than _GL_ATTRIBUTE_PURE because the 424 (This attribute is stricter than _GL_ATTRIBUTE_PURE because the
424 function cannot observe state. It is stricter than 425 function cannot observe state. Unlike _GL_ATTRIBUTE_UNSEQUENCED
425 _GL_ATTRIBUTE_UNSEQUENCED because the function must return exactly 426 the function must return exactly once and cannot access state
426 once and cannot depend on state addressed by its arguments.) */ 427 addressed by its pointer arguments or that happens to have the same
428 value for all calls to the function, but the function is allowed to
429 return a pointer to storage that can be modified later. */
427/* Applies to: functions. */ 430/* Applies to: functions. */
428#ifndef _GL_ATTRIBUTE_CONST 431#ifndef _GL_ATTRIBUTE_CONST
429# if _GL_HAS_ATTRIBUTE (const) 432# if _GL_HAS_ATTRIBUTE (const)
430# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__)) 433# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
431# else 434# else
432# define _GL_ATTRIBUTE_CONST _GL_ATTRIBUTE_UNSEQUENCED 435# define _GL_ATTRIBUTE_CONST
433# endif 436# endif
434#endif 437#endif
435 438
@@ -451,7 +454,7 @@ AC_DEFUN([gl_COMMON_BODY], [
451 yet. */ 454 yet. */
452#ifndef _GL_ATTRIBUTE_DEALLOC_FREE 455#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
453# if defined __cplusplus && defined __GNUC__ && !defined __clang__ 456# if defined __cplusplus && defined __GNUC__ && !defined __clang__
454/* Work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108231> */ 457/* Work around GCC bug <https://gcc.gnu.org/PR108231> */
455# define _GL_ATTRIBUTE_DEALLOC_FREE \ 458# define _GL_ATTRIBUTE_DEALLOC_FREE \
456 _GL_ATTRIBUTE_DEALLOC ((void (*) (void *)) free, 1) 459 _GL_ATTRIBUTE_DEALLOC ((void (*) (void *)) free, 1)
457# else 460# else
@@ -590,7 +593,9 @@ AC_DEFUN([gl_COMMON_BODY], [
590 593
591/* _GL_ATTRIBUTE_MAYBE_UNUSED declares that it is not a programming mistake if 594/* _GL_ATTRIBUTE_MAYBE_UNUSED declares that it is not a programming mistake if
592 the entity is not used. The compiler should not warn if the entity is not 595 the entity is not used. The compiler should not warn if the entity is not
593 used. */ 596 used. However, 'int _GL_UNNAMED (i)' is preferable to
597 '_GL_ATTRIBUTE_MAYBE_UNUSED int i' when parameter I is unused
598 regardless of preprocessor macro settings. */
594/* Applies to: 599/* Applies to:
595 - function, variable, 600 - function, variable,
596 - struct, union, struct/union member, 601 - struct, union, struct/union member,
@@ -744,39 +749,40 @@ AC_DEFUN([gl_COMMON_BODY], [
744#endif 749#endif
745 750
746/* _GL_ATTRIBUTE_PURE declares: 751/* _GL_ATTRIBUTE_PURE declares:
747 It is OK for a compiler to move calls to the function and to omit 752 It is OK for a compiler to move a call, or omit a duplicate call
748 calls to the function if another call has the same arguments or the 753 and reuse a cached return value, if observable state is the same.
749 result is not used, and if observable state is the same. 754 It is also OK to omit a call if the return value is not used.
750 This attribute is safe for a function that does not affect observable state 755 This attribute is safe if the function does not change observable state,
751 and always returns exactly once. 756 returns a value determined solely by its arguments's values
757 together with observable state, and always returns exactly once.
752 (This attribute is looser than _GL_ATTRIBUTE_CONST because the function 758 (This attribute is looser than _GL_ATTRIBUTE_CONST because the function
753 can depend on observable state. It is stricter than 759 can depend on observable state.
754 _GL_ATTRIBUTE_REPRODUCIBLE because the function must return exactly 760 Unlike _GL_ATTRIBUTE_REPRODUCIBLE the function must return exactly
755 once and cannot affect state addressed by its arguments.) */ 761 once and cannot change state addressed by its arguments, but the
762 function can return a pointer to storage whose contents change later.) */
756/* Applies to: functions. */ 763/* Applies to: functions. */
757#ifndef _GL_ATTRIBUTE_PURE 764#ifndef _GL_ATTRIBUTE_PURE
758# if _GL_HAS_ATTRIBUTE (pure) 765# if _GL_HAS_ATTRIBUTE (pure)
759# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__)) 766# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
760# else 767# else
761# define _GL_ATTRIBUTE_PURE _GL_ATTRIBUTE_REPRODUCIBLE 768# define _GL_ATTRIBUTE_PURE
762# endif 769# endif
763#endif 770#endif
764 771
765/* _GL_ATTRIBUTE_REPRODUCIBLE declares: 772/* _GL_ATTRIBUTE_REPRODUCIBLE declares:
766 It is OK for a compiler to move calls to the function and to omit duplicate 773 It is OK for a compiler to move a call, or omit a duplicate call
767 calls to the function with the same arguments, so long as the state 774 and reuse a cached value returned either directly or indirectly via
768 addressed by its arguments is the same and is updated in time for 775 a pointer, if other observable state is the same;
769 the rest of the program. 776 however, pointer arguments cannot alias.
770 This attribute is safe for a function that is effectless and idempotent; see 777 This attribute is safe for a function that is effectless and idempotent;
771 ISO C 23 § 6.7.12.7 for a definition of these terms. 778 see ISO C 23 § 6.7.13.8 for a definition of these terms.
772 (This attribute is looser than _GL_ATTRIBUTE_UNSEQUENCED because 779 (This attribute is looser than _GL_ATTRIBUTE_UNSEQUENCED because
773 the function need not be stateless and idempotent. It is looser 780 the function need not be stateless or independent.
774 than _GL_ATTRIBUTE_PURE because the function need not return 781 Unlike _GL_ATTRIBUTE_PURE the function need not return exactly once
775 exactly once and can affect state addressed by its arguments.) 782 and can change state addressed by its pointer arguments, but the
783 function cannot return a pointer to storage whose contents change later.)
776 See also <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2956.htm> and 784 See also <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2956.htm> and
777 <https://stackoverflow.com/questions/76847905/>. 785 <https://stackoverflow.com/questions/76847905/>. */
778 ATTENTION! Efforts are underway to change the meaning of this attribute.
779 See <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3424.htm>. */
780/* Applies to: functions, pointer to functions, function types. */ 786/* Applies to: functions, pointer to functions, function types. */
781#ifndef _GL_ATTRIBUTE_REPRODUCIBLE 787#ifndef _GL_ATTRIBUTE_REPRODUCIBLE
782/* This may be revisited when gcc and clang support [[reproducible]] or possibly 788/* This may be revisited when gcc and clang support [[reproducible]] or possibly
@@ -816,20 +822,22 @@ AC_DEFUN([gl_COMMON_BODY], [
816#endif 822#endif
817 823
818/* _GL_ATTRIBUTE_UNSEQUENCED declares: 824/* _GL_ATTRIBUTE_UNSEQUENCED declares:
819 It is OK for a compiler to move calls to the function and to omit duplicate 825 It is OK for a compiler to move a call, or omit a duplicate call
820 calls to the function with the same arguments, so long as the state 826 and reuse a cached value returned either directly or indirectly via
821 addressed by its arguments is the same. 827 a pointer, if the state addressed by its pointer arguments is the same;
828 however, pointer arguments cannot alias.
822 This attribute is safe for a function that is effectless, idempotent, 829 This attribute is safe for a function that is effectless, idempotent,
823 stateless, and independent; see ISO C 23 § 6.7.12.7 for a definition of 830 stateless, and independent; see ISO C 23 § 6.7.13.8 for a definition of
824 these terms. 831 these terms.
825 (This attribute is stricter than _GL_ATTRIBUTE_REPRODUCIBLE because 832 (This attribute is stricter than _GL_ATTRIBUTE_REPRODUCIBLE because
826 the function must be stateless and independent. It is looser than 833 the function must be stateless and independent. Unlike
827 _GL_ATTRIBUTE_CONST because the function need not return exactly 834 _GL_ATTRIBUTE_CONST the function need not return exactly once, and
828 once and can depend on state addressed by its arguments.) 835 can depend on state accessed via its pointer arguments or that
836 happens to have the same value for all calls to the function, but
837 the function cannot return a pointer to storage whose contents
838 change later.)
829 See also <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2956.htm> and 839 See also <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2956.htm> and
830 <https://stackoverflow.com/questions/76847905/>. 840 <https://stackoverflow.com/questions/76847905/>. */
831 ATTENTION! Efforts are underway to change the meaning of this attribute.
832 See <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3424.htm>. */
833/* Applies to: functions, pointer to functions, function types. */ 841/* Applies to: functions, pointer to functions, function types. */
834#ifndef _GL_ATTRIBUTE_UNSEQUENCED 842#ifndef _GL_ATTRIBUTE_UNSEQUENCED
835/* This may be revisited when gcc and clang support [[unsequenced]] or possibly 843/* This may be revisited when gcc and clang support [[unsequenced]] or possibly
@@ -869,6 +877,21 @@ AC_DEFUN([gl_COMMON_BODY], [
869# endif 877# endif
870#endif 878#endif
871 879
880/* _GL_UNNAMED (ID) is the "name" of an unnamed function parameter.
881 Each of the function's unnamed parameters should have a unique "name".
882 The "name" cannot be used. This ports both to C17 and earlier, which
883 lack unnamed parameters, and to C++ and later C, which have them. */
884/* Applies to:
885 - function parameters. */
886#ifndef _GL_UNNAMED
887# if ((defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) < 202311 \
888 && !defined __cplusplus)
889# define _GL_UNNAMED(id) unnamed_##id _GL_ATTRIBUTE_UNUSED
890# else
891# define _GL_UNNAMED(id)
892# endif
893#endif
894
872/* The following attributes enable detection of multithread-safety problems 895/* The following attributes enable detection of multithread-safety problems
873 and resource leaks at compile-time, by clang ≥ 15, when the warning option 896 and resource leaks at compile-time, by clang ≥ 15, when the warning option
874 -Wthread-safety is enabled. For usage, see 897 -Wthread-safety is enabled. For usage, see
@@ -1406,7 +1429,7 @@ AC_DEFUN([gl_CC_GNULIB_WARNINGS],
1406 dnl -Wno-type-limits >= 4.3 >= 3.9 1429 dnl -Wno-type-limits >= 4.3 >= 3.9
1407 dnl -Wno-undef >= 3 >= 3.9 1430 dnl -Wno-undef >= 3 >= 3.9
1408 dnl -Wno-unsuffixed-float-constants >= 4.5 1431 dnl -Wno-unsuffixed-float-constants >= 4.5
1409 dnl -Wno-unused-const-variable >= 4.4 >= 3.9 1432 dnl -Wno-unused-const-variable >= 6.1 >= 3.9
1410 dnl -Wno-unused-function >= 3 >= 3.9 1433 dnl -Wno-unused-function >= 3 >= 3.9
1411 dnl -Wno-unused-parameter >= 3 >= 3.9 1434 dnl -Wno-unused-parameter >= 3 >= 3.9
1412 dnl 1435 dnl
@@ -1436,7 +1459,7 @@ AC_DEFUN([gl_CC_GNULIB_WARNINGS],
1436 -Wno-sign-conversion 1459 -Wno-sign-conversion
1437 -Wno-type-limits 1460 -Wno-type-limits
1438 #endif 1461 #endif
1439 #if (__GNUC__ + (__GNUC_MINOR__ >= 4) > 4 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3) 1462 #if (__GNUC__ + (__GNUC_MINOR__ >= 1) > 6 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
1440 -Wno-unused-const-variable 1463 -Wno-unused-const-variable
1441 #endif 1464 #endif
1442 #if (__GNUC__ + (__GNUC_MINOR__ >= 5) > 4 && !defined __clang__) 1465 #if (__GNUC__ + (__GNUC_MINOR__ >= 5) > 4 && !defined __clang__)
diff --git a/gl/m4/gnulib-comp.m4 b/gl/m4/gnulib-comp.m4
index 50e98454..cdd46759 100644
--- a/gl/m4/gnulib-comp.m4
+++ b/gl/m4/gnulib-comp.m4
@@ -1,5 +1,5 @@
1# DO NOT EDIT! GENERATED AUTOMATICALLY! 1# DO NOT EDIT! GENERATED AUTOMATICALLY!
2# Copyright (C) 2002-2025 Free Software Foundation, Inc. 2# Copyright (C) 2002-2026 Free Software Foundation, Inc.
3# 3#
4# This file is free software; you can redistribute it and/or modify 4# This file is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by 5# it under the terms of the GNU General Public License as published by
@@ -209,6 +209,7 @@ AC_DEFUN([gl_EARLY],
209 # Code from module stdint-h: 209 # Code from module stdint-h:
210 # Code from module stdio-h: 210 # Code from module stdio-h:
211 gl_STDIO_H_EARLY 211 gl_STDIO_H_EARLY
212 # Code from module stdio-windows:
212 # Code from module stdlib-h: 213 # Code from module stdlib-h:
213 # Code from module strcase: 214 # Code from module strcase:
214 # Code from module strcasecmp: 215 # Code from module strcasecmp:
@@ -218,6 +219,7 @@ AC_DEFUN([gl_EARLY],
218 # Code from module strerror: 219 # Code from module strerror:
219 # Code from module strerror-override: 220 # Code from module strerror-override:
220 # Code from module string-h: 221 # Code from module string-h:
222 # Code from module stringeq:
221 # Code from module strings-h: 223 # Code from module strings-h:
222 # Code from module strncasecmp: 224 # Code from module strncasecmp:
223 # Code from module strncpy: 225 # Code from module strncpy:
@@ -570,7 +572,8 @@ AC_DEFUN([gl_INIT],
570 ]) 572 ])
571 gl_UNISTD_MODULE_INDICATOR([getdtablesize]) 573 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
572 gl_FUNC_GETHOSTNAME 574 gl_FUNC_GETHOSTNAME
573 gl_CONDITIONAL([GL_COND_OBJ_GETHOSTNAME], [test $HAVE_GETHOSTNAME = 0]) 575 gl_CONDITIONAL([GL_COND_OBJ_GETHOSTNAME],
576 [test $HAVE_GETHOSTNAME = 0 || test $UNISTD_H_HAVE_WINSOCK2_H = 1])
574 AM_COND_IF([GL_COND_OBJ_GETHOSTNAME], [ 577 AM_COND_IF([GL_COND_OBJ_GETHOSTNAME], [
575 gl_PREREQ_GETHOSTNAME 578 gl_PREREQ_GETHOSTNAME
576 ]) 579 ])
@@ -614,8 +617,7 @@ AC_DEFUN([gl_INIT],
614 gl_PREREQ_GETPROGNAME 617 gl_PREREQ_GETPROGNAME
615 ]) 618 ])
616 gl_STDLIB_MODULE_INDICATOR([getprogname]) 619 gl_STDLIB_MODULE_INDICATOR([getprogname])
617 AC_SUBST([LIBINTL]) 620 gl_GETTEXT_H
618 AC_SUBST([LTLIBINTL])
619 AC_PROG_MKDIR_P 621 AC_PROG_MKDIR_P
620 GNULIB_I18N 622 GNULIB_I18N
621 AC_REQUIRE([gl_FUNC_SETLOCALE_NULL]) 623 AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
@@ -884,19 +886,6 @@ AC_DEFUN([gl_INIT],
884 gl_STDIO_H 886 gl_STDIO_H
885 gl_STDIO_H_REQUIRE_DEFAULTS 887 gl_STDIO_H_REQUIRE_DEFAULTS
886 AC_PROG_MKDIR_P 888 AC_PROG_MKDIR_P
887 USES_MSVCRT=0
888 case "$host_os" in
889 mingw* | windows*)
890 AC_EGREP_CPP([Special], [
891 #ifndef _UCRT
892 Special
893 #endif
894 ],
895 [USES_MSVCRT=1])
896 ;;
897 esac
898 gl_CONDITIONAL([GL_COND_OBJ_STDIO_CONSOLESAFE], [test $USES_MSVCRT = 1])
899 AC_CHECK_FUNCS([vasprintf])
900 gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1]) 889 gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1])
901 gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1]) 890 gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1])
902 dnl No need to create extra modules for these functions. Everyone who uses 891 dnl No need to create extra modules for these functions. Everyone who uses
@@ -922,6 +911,20 @@ AC_DEFUN([gl_INIT],
922 gl_STDIO_MODULE_INDICATOR([fputs]) 911 gl_STDIO_MODULE_INDICATOR([fputs])
923 gl_STDIO_MODULE_INDICATOR([puts]) 912 gl_STDIO_MODULE_INDICATOR([puts])
924 gl_STDIO_MODULE_INDICATOR([fwrite]) 913 gl_STDIO_MODULE_INDICATOR([fwrite])
914 AC_REQUIRE([AC_CANONICAL_HOST])
915 USES_MSVCRT=0
916 case "$host_os" in
917 mingw* | windows*)
918 AC_EGREP_CPP([Special], [
919 #ifndef _UCRT
920 Special
921 #endif
922 ],
923 [USES_MSVCRT=1])
924 ;;
925 esac
926 gl_CONDITIONAL([GL_COND_OBJ_STDIO_CONSOLESAFE], [test $USES_MSVCRT = 1])
927 AC_CHECK_FUNCS([vasprintf])
925 gl_STDLIB_H 928 gl_STDLIB_H
926 gl_STDLIB_H_REQUIRE_DEFAULTS 929 gl_STDLIB_H_REQUIRE_DEFAULTS
927 AC_PROG_MKDIR_P 930 AC_PROG_MKDIR_P
@@ -957,6 +960,9 @@ AC_DEFUN([gl_INIT],
957 gl_STRING_H 960 gl_STRING_H
958 gl_STRING_H_REQUIRE_DEFAULTS 961 gl_STRING_H_REQUIRE_DEFAULTS
959 AC_PROG_MKDIR_P 962 AC_PROG_MKDIR_P
963 gl_FUNC_STREQ
964 gl_FUNC_MEMEQ
965 gl_STRING_MODULE_INDICATOR([stringeq])
960 gl_STRINGS_H 966 gl_STRINGS_H
961 gl_STRINGS_H_REQUIRE_DEFAULTS 967 gl_STRINGS_H_REQUIRE_DEFAULTS
962 AC_PROG_MKDIR_P 968 AC_PROG_MKDIR_P
@@ -1021,35 +1027,35 @@ AC_DEFUN([gl_INIT],
1021 gl_UNICASE_H 1027 gl_UNICASE_H
1022 gl_UNICASE_H_REQUIRE_DEFAULTS 1028 gl_UNICASE_H_REQUIRE_DEFAULTS
1023 AC_PROG_MKDIR_P 1029 AC_PROG_MKDIR_P
1024 gl_LIBUNISTRING_MODULE([1.3], [unicase/tolower]) 1030 gl_LIBUNISTRING_MODULE([1.4], [unicase/tolower])
1025 gl_LIBUNISTRING_LIBHEADER([1.3], [unictype.h]) 1031 gl_LIBUNISTRING_LIBHEADER([1.3], [unictype.h])
1026 gl_UNICTYPE_H 1032 gl_UNICTYPE_H
1027 gl_UNICTYPE_H_REQUIRE_DEFAULTS 1033 gl_UNICTYPE_H_REQUIRE_DEFAULTS
1028 AC_PROG_MKDIR_P 1034 AC_PROG_MKDIR_P
1029 AC_REQUIRE([AC_C_INLINE]) 1035 AC_REQUIRE([AC_C_INLINE])
1030 gl_LIBUNISTRING_MODULE([1.3], [unictype/ctype-alnum]) 1036 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-alnum])
1031 AC_REQUIRE([AC_C_INLINE]) 1037 AC_REQUIRE([AC_C_INLINE])
1032 gl_LIBUNISTRING_MODULE([1.3], [unictype/ctype-alpha]) 1038 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-alpha])
1033 AC_REQUIRE([AC_C_INLINE]) 1039 AC_REQUIRE([AC_C_INLINE])
1034 gl_LIBUNISTRING_MODULE([0.9.8], [unictype/ctype-blank]) 1040 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-blank])
1035 AC_REQUIRE([AC_C_INLINE]) 1041 AC_REQUIRE([AC_C_INLINE])
1036 gl_LIBUNISTRING_MODULE([0.9.8], [unictype/ctype-cntrl]) 1042 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-cntrl])
1037 AC_REQUIRE([AC_C_INLINE]) 1043 AC_REQUIRE([AC_C_INLINE])
1038 gl_LIBUNISTRING_MODULE([0.9.8], [unictype/ctype-digit]) 1044 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-digit])
1039 AC_REQUIRE([AC_C_INLINE]) 1045 AC_REQUIRE([AC_C_INLINE])
1040 gl_LIBUNISTRING_MODULE([1.3], [unictype/ctype-graph]) 1046 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-graph])
1041 AC_REQUIRE([AC_C_INLINE]) 1047 AC_REQUIRE([AC_C_INLINE])
1042 gl_LIBUNISTRING_MODULE([1.3], [unictype/ctype-lower]) 1048 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-lower])
1043 AC_REQUIRE([AC_C_INLINE]) 1049 AC_REQUIRE([AC_C_INLINE])
1044 gl_LIBUNISTRING_MODULE([1.3], [unictype/ctype-print]) 1050 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-print])
1045 AC_REQUIRE([AC_C_INLINE]) 1051 AC_REQUIRE([AC_C_INLINE])
1046 gl_LIBUNISTRING_MODULE([1.3], [unictype/ctype-punct]) 1052 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-punct])
1047 AC_REQUIRE([AC_C_INLINE]) 1053 AC_REQUIRE([AC_C_INLINE])
1048 gl_LIBUNISTRING_MODULE([0.9.8], [unictype/ctype-space]) 1054 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-space])
1049 AC_REQUIRE([AC_C_INLINE]) 1055 AC_REQUIRE([AC_C_INLINE])
1050 gl_LIBUNISTRING_MODULE([1.3], [unictype/ctype-upper]) 1056 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-upper])
1051 AC_REQUIRE([AC_C_INLINE]) 1057 AC_REQUIRE([AC_C_INLINE])
1052 gl_LIBUNISTRING_MODULE([0.9.8], [unictype/ctype-xdigit]) 1058 gl_LIBUNISTRING_MODULE([1.4], [unictype/ctype-xdigit])
1053 gl_LIBUNISTRING_LIBHEADER([1.2], [uninorm.h]) 1059 gl_LIBUNISTRING_LIBHEADER([1.2], [uninorm.h])
1054 gl_UNINORM_H 1060 gl_UNINORM_H
1055 gl_UNINORM_H_REQUIRE_DEFAULTS 1061 gl_UNINORM_H_REQUIRE_DEFAULTS
@@ -1062,7 +1068,7 @@ AC_DEFUN([gl_INIT],
1062 gl_UNITYPES_H 1068 gl_UNITYPES_H
1063 gl_LIBUNISTRING_LIBHEADER([0.9.11], [uniwidth.h]) 1069 gl_LIBUNISTRING_LIBHEADER([0.9.11], [uniwidth.h])
1064 AC_PROG_MKDIR_P 1070 AC_PROG_MKDIR_P
1065 gl_LIBUNISTRING_MODULE([1.3], [uniwidth/width]) 1071 gl_LIBUNISTRING_MODULE([1.4], [uniwidth/width])
1066 gl_FUNC_GLIBC_UNLOCKED_IO 1072 gl_FUNC_GLIBC_UNLOCKED_IO
1067 gl_FUNC_UNSETENV 1073 gl_FUNC_UNSETENV
1068 gl_CONDITIONAL([GL_COND_OBJ_UNSETENV], 1074 gl_CONDITIONAL([GL_COND_OBJ_UNSETENV],
@@ -1535,6 +1541,7 @@ AC_DEFUN([gl_FILE_LIST], [
1535 lib/strerror-override.c 1541 lib/strerror-override.c
1536 lib/strerror-override.h 1542 lib/strerror-override.h
1537 lib/strerror.c 1543 lib/strerror.c
1544 lib/string.c
1538 lib/string.in.h 1545 lib/string.in.h
1539 lib/strings.in.h 1546 lib/strings.in.h
1540 lib/stripslash.c 1547 lib/stripslash.c
@@ -1677,6 +1684,7 @@ AC_DEFUN([gl_FILE_LIST], [
1677 m4/getloadavg.m4 1684 m4/getloadavg.m4
1678 m4/getopt.m4 1685 m4/getopt.m4
1679 m4/getprogname.m4 1686 m4/getprogname.m4
1687 m4/gettext_h.m4
1680 m4/gl-openssl.m4 1688 m4/gl-openssl.m4
1681 m4/gnulib-common.m4 1689 m4/gnulib-common.m4
1682 m4/gnulib-i18n.m4 1690 m4/gnulib-i18n.m4
@@ -1773,6 +1781,7 @@ AC_DEFUN([gl_FILE_LIST], [
1773 m4/strcasestr.m4 1781 m4/strcasestr.m4
1774 m4/strerror.m4 1782 m4/strerror.m4
1775 m4/string_h.m4 1783 m4/string_h.m4
1784 m4/stringeq.m4
1776 m4/strings_h.m4 1785 m4/strings_h.m4
1777 m4/strncasecmp.m4 1786 m4/strncasecmp.m4
1778 m4/strncpy.m4 1787 m4/strncpy.m4
diff --git a/gl/m4/gnulib-i18n.m4 b/gl/m4/gnulib-i18n.m4
index 868043e7..9a389187 100644
--- a/gl/m4/gnulib-i18n.m4
+++ b/gl/m4/gnulib-i18n.m4
@@ -1,6 +1,6 @@
1# gnulib-i18n.m4 1# gnulib-i18n.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2005-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/gnulib-tool.m4 b/gl/m4/gnulib-tool.m4
index 8634a6e9..83d1e701 100644
--- a/gl/m4/gnulib-tool.m4
+++ b/gl/m4/gnulib-tool.m4
@@ -1,6 +1,6 @@
1# gnulib-tool.m4 1# gnulib-tool.m4
2# serial 5 2# serial 5
3dnl Copyright (C) 2004-2005, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2004-2005, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/hostent.m4 b/gl/m4/hostent.m4
index 9278285c..0303ff80 100644
--- a/gl/m4/hostent.m4
+++ b/gl/m4/hostent.m4
@@ -1,6 +1,6 @@
1# hostent.m4 1# hostent.m4
2# serial 5 2# serial 5
3dnl Copyright (C) 2008, 2010-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008, 2010-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/idpriv.m4 b/gl/m4/idpriv.m4
index 6e855e9a..a7091ad3 100644
--- a/gl/m4/idpriv.m4
+++ b/gl/m4/idpriv.m4
@@ -1,6 +1,6 @@
1# idpriv.m4 1# idpriv.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/include_next.m4 b/gl/m4/include_next.m4
index 80de991e..a19f2dfd 100644
--- a/gl/m4/include_next.m4
+++ b/gl/m4/include_next.m4
@@ -1,6 +1,6 @@
1# include_next.m4 1# include_next.m4
2# serial 27 2# serial 27
3dnl Copyright (C) 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/inet_ntop.m4 b/gl/m4/inet_ntop.m4
index 693bd51b..62e7a575 100644
--- a/gl/m4/inet_ntop.m4
+++ b/gl/m4/inet_ntop.m4
@@ -1,6 +1,6 @@
1# inet_ntop.m4 1# inet_ntop.m4
2# serial 22 2# serial 23
3dnl Copyright (C) 2005-2006, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005-2006, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -19,6 +19,7 @@ AC_DEFUN([gl_FUNC_INET_NTOP],
19 dnl Solaris 8..10 provide inet_ntop in libnsl instead. 19 dnl Solaris 8..10 provide inet_ntop in libnsl instead.
20 dnl Solaris 2.6..7 provide inet_ntop in libresolv instead. 20 dnl Solaris 2.6..7 provide inet_ntop in libresolv instead.
21 dnl Haiku provides it in -lnetwork. 21 dnl Haiku provides it in -lnetwork.
22 dnl QNX provides it in -lsocket.
22 dnl Native Windows provides it in -lws2_32 instead, with a declaration in 23 dnl Native Windows provides it in -lws2_32 instead, with a declaration in
23 dnl <ws2tcpip.h>, and it uses stdcall calling convention, not cdecl 24 dnl <ws2tcpip.h>, and it uses stdcall calling convention, not cdecl
24 dnl (hence we cannot use AC_CHECK_FUNCS, AC_SEARCH_LIBS to find it). 25 dnl (hence we cannot use AC_CHECK_FUNCS, AC_SEARCH_LIBS to find it).
@@ -39,7 +40,7 @@ AC_DEFUN([gl_FUNC_INET_NTOP],
39 fi 40 fi
40 else 41 else
41 gl_saved_LIBS=$LIBS 42 gl_saved_LIBS=$LIBS
42 AC_SEARCH_LIBS([inet_ntop], [nsl resolv network], [], 43 AC_SEARCH_LIBS([inet_ntop], [nsl resolv network socket], [],
43 [AC_CHECK_FUNCS([inet_ntop]) 44 [AC_CHECK_FUNCS([inet_ntop])
44 if test $ac_cv_func_inet_ntop = no; then 45 if test $ac_cv_func_inet_ntop = no; then
45 HAVE_INET_NTOP=0 46 HAVE_INET_NTOP=0
diff --git a/gl/m4/inet_pton.m4 b/gl/m4/inet_pton.m4
index b6e59a25..150c3a07 100644
--- a/gl/m4/inet_pton.m4
+++ b/gl/m4/inet_pton.m4
@@ -1,6 +1,6 @@
1# inet_pton.m4 1# inet_pton.m4
2# serial 20 2# serial 21
3dnl Copyright (C) 2006, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -19,6 +19,7 @@ AC_DEFUN([gl_FUNC_INET_PTON],
19 dnl Solaris 8..10 provide inet_pton in libnsl instead. 19 dnl Solaris 8..10 provide inet_pton in libnsl instead.
20 dnl Solaris 2.6..7 provide inet_pton in libresolv instead. 20 dnl Solaris 2.6..7 provide inet_pton in libresolv instead.
21 dnl Haiku provides it in -lnetwork. 21 dnl Haiku provides it in -lnetwork.
22 dnl QNX provides it in -lsocket.
22 dnl Native Windows provides it in -lws2_32 instead, with a declaration in 23 dnl Native Windows provides it in -lws2_32 instead, with a declaration in
23 dnl <ws2tcpip.h>, and it uses stdcall calling convention, not cdecl 24 dnl <ws2tcpip.h>, and it uses stdcall calling convention, not cdecl
24 dnl (hence we cannot use AC_CHECK_FUNCS, AC_SEARCH_LIBS to find it). 25 dnl (hence we cannot use AC_CHECK_FUNCS, AC_SEARCH_LIBS to find it).
@@ -39,7 +40,7 @@ AC_DEFUN([gl_FUNC_INET_PTON],
39 fi 40 fi
40 else 41 else
41 gl_saved_LIBS=$LIBS 42 gl_saved_LIBS=$LIBS
42 AC_SEARCH_LIBS([inet_pton], [nsl resolv network], [], 43 AC_SEARCH_LIBS([inet_pton], [nsl resolv network socket], [],
43 [AC_CHECK_FUNCS([inet_pton]) 44 [AC_CHECK_FUNCS([inet_pton])
44 if test $ac_cv_func_inet_pton = no; then 45 if test $ac_cv_func_inet_pton = no; then
45 HAVE_INET_PTON=0 46 HAVE_INET_PTON=0
diff --git a/gl/m4/intmax_t.m4 b/gl/m4/intmax_t.m4
index c1df7b27..ad79536c 100644
--- a/gl/m4/intmax_t.m4
+++ b/gl/m4/intmax_t.m4
@@ -1,6 +1,6 @@
1# intmax_t.m4 1# intmax_t.m4
2# serial 9 2# serial 9
3dnl Copyright (C) 1997-2004, 2006-2007, 2009-2025 Free Software Foundation, 3dnl Copyright (C) 1997-2004, 2006-2007, 2009-2026 Free Software Foundation,
4dnl Inc. 4dnl Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/inttypes.m4 b/gl/m4/inttypes.m4
index 63c82c61..ec17c237 100644
--- a/gl/m4/inttypes.m4
+++ b/gl/m4/inttypes.m4
@@ -1,6 +1,6 @@
1# inttypes.m4 1# inttypes.m4
2# serial 37 2# serial 37
3dnl Copyright (C) 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/inttypes_h.m4 b/gl/m4/inttypes_h.m4
index ad939a53..ed9e7033 100644
--- a/gl/m4/inttypes_h.m4
+++ b/gl/m4/inttypes_h.m4
@@ -1,6 +1,6 @@
1# inttypes_h.m4 1# inttypes_h.m4
2# serial 10 2# serial 10
3dnl Copyright (C) 1997-2004, 2006, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 1997-2004, 2006, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/iswblank.m4 b/gl/m4/iswblank.m4
index d06b16a2..2c301a97 100644
--- a/gl/m4/iswblank.m4
+++ b/gl/m4/iswblank.m4
@@ -1,6 +1,6 @@
1# iswblank.m4 1# iswblank.m4
2# serial 7 2# serial 7
3dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/iswctype.m4 b/gl/m4/iswctype.m4
index f5a3b760..3b179a76 100644
--- a/gl/m4/iswctype.m4
+++ b/gl/m4/iswctype.m4
@@ -1,6 +1,6 @@
1# iswctype.m4 1# iswctype.m4
2# serial 3 2# serial 3
3dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/iswdigit.m4 b/gl/m4/iswdigit.m4
index 4582f598..7fca8167 100644
--- a/gl/m4/iswdigit.m4
+++ b/gl/m4/iswdigit.m4
@@ -1,6 +1,6 @@
1# iswdigit.m4 1# iswdigit.m4
2# serial 9 2# serial 9
3dnl Copyright (C) 2020-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2020-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/iswpunct.m4 b/gl/m4/iswpunct.m4
index d8e8d712..be312d6c 100644
--- a/gl/m4/iswpunct.m4
+++ b/gl/m4/iswpunct.m4
@@ -1,6 +1,6 @@
1# iswpunct.m4 1# iswpunct.m4
2# serial 2 2# serial 2
3dnl Copyright (C) 2023-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2023-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/iswxdigit.m4 b/gl/m4/iswxdigit.m4
index 95226fc4..2cb8e873 100644
--- a/gl/m4/iswxdigit.m4
+++ b/gl/m4/iswxdigit.m4
@@ -1,6 +1,6 @@
1# iswxdigit.m4 1# iswxdigit.m4
2# serial 9 2# serial 9
3dnl Copyright (C) 2020-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2020-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/langinfo_h.m4 b/gl/m4/langinfo_h.m4
index 69f936f0..3ed8d593 100644
--- a/gl/m4/langinfo_h.m4
+++ b/gl/m4/langinfo_h.m4
@@ -1,6 +1,6 @@
1# langinfo_h.m4 1# langinfo_h.m4
2# serial 13 2# serial 14
3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -18,18 +18,15 @@ AC_DEFUN_ONCE([gl_LANGINFO_H],
18 18
19 dnl Determine whether <langinfo.h> exists. It is missing on mingw and BeOS. 19 dnl Determine whether <langinfo.h> exists. It is missing on mingw and BeOS.
20 HAVE_LANGINFO_CODESET=0 20 HAVE_LANGINFO_CODESET=0
21 HAVE_LANGINFO_T_FMT_AMPM=0
22 HAVE_LANGINFO_ALTMON=0 21 HAVE_LANGINFO_ALTMON=0
23 HAVE_LANGINFO_ABALTMON=0 22 HAVE_LANGINFO_ABALTMON=0
24 HAVE_LANGINFO_ERA=0 23 HAVE_LANGINFO_ERA=0
25 HAVE_LANGINFO_YESEXPR=0
26 AC_CHECK_HEADERS_ONCE([langinfo.h]) 24 AC_CHECK_HEADERS_ONCE([langinfo.h])
27 if test $ac_cv_header_langinfo_h = yes; then 25 if test $ac_cv_header_langinfo_h = yes; then
28 HAVE_LANGINFO_H=1 26 HAVE_LANGINFO_H=1
29 dnl Determine what <langinfo.h> defines. 27 dnl Determine what <langinfo.h> defines.
30 dnl CODESET is missing on OpenBSD 3.8. 28 dnl CODESET is missing on OpenBSD 3.8.
31 dnl ERA etc. are missing on OpenBSD 6.7. 29 dnl ERA etc. are missing on OpenBSD 6.7.
32 dnl T_FMT_AMPM and YESEXPR, NOEXPR are missing on IRIX 5.3.
33 dnl ALTMON_* are missing on glibc 2.26 and many other systems. 30 dnl ALTMON_* are missing on glibc 2.26 and many other systems.
34 dnl ABALTMON_* are missing on glibc 2.41 and many other systems. 31 dnl ABALTMON_* are missing on glibc 2.41 and many other systems.
35 AC_CACHE_CHECK([whether langinfo.h defines CODESET], 32 AC_CACHE_CHECK([whether langinfo.h defines CODESET],
@@ -44,18 +41,6 @@ int a = CODESET;
44 if test $gl_cv_header_langinfo_codeset = yes; then 41 if test $gl_cv_header_langinfo_codeset = yes; then
45 HAVE_LANGINFO_CODESET=1 42 HAVE_LANGINFO_CODESET=1
46 fi 43 fi
47 AC_CACHE_CHECK([whether langinfo.h defines T_FMT_AMPM],
48 [gl_cv_header_langinfo_t_fmt_ampm],
49 [AC_COMPILE_IFELSE(
50 [AC_LANG_PROGRAM([[#include <langinfo.h>
51int a = T_FMT_AMPM;
52]])],
53 [gl_cv_header_langinfo_t_fmt_ampm=yes],
54 [gl_cv_header_langinfo_t_fmt_ampm=no])
55 ])
56 if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
57 HAVE_LANGINFO_T_FMT_AMPM=1
58 fi
59 AC_CACHE_CHECK([whether langinfo.h defines ALTMON_1], 44 AC_CACHE_CHECK([whether langinfo.h defines ALTMON_1],
60 [gl_cv_header_langinfo_altmon], 45 [gl_cv_header_langinfo_altmon],
61 [AC_COMPILE_IFELSE( 46 [AC_COMPILE_IFELSE(
@@ -92,28 +77,14 @@ int a = ERA;
92 if test $gl_cv_header_langinfo_era = yes; then 77 if test $gl_cv_header_langinfo_era = yes; then
93 HAVE_LANGINFO_ERA=1 78 HAVE_LANGINFO_ERA=1
94 fi 79 fi
95 AC_CACHE_CHECK([whether langinfo.h defines YESEXPR],
96 [gl_cv_header_langinfo_yesexpr],
97 [AC_COMPILE_IFELSE(
98 [AC_LANG_PROGRAM([[#include <langinfo.h>
99int a = YESEXPR;
100]])],
101 [gl_cv_header_langinfo_yesexpr=yes],
102 [gl_cv_header_langinfo_yesexpr=no])
103 ])
104 if test $gl_cv_header_langinfo_yesexpr = yes; then
105 HAVE_LANGINFO_YESEXPR=1
106 fi
107 else 80 else
108 HAVE_LANGINFO_H=0 81 HAVE_LANGINFO_H=0
109 fi 82 fi
110 AC_SUBST([HAVE_LANGINFO_H]) 83 AC_SUBST([HAVE_LANGINFO_H])
111 AC_SUBST([HAVE_LANGINFO_CODESET]) 84 AC_SUBST([HAVE_LANGINFO_CODESET])
112 AC_SUBST([HAVE_LANGINFO_T_FMT_AMPM])
113 AC_SUBST([HAVE_LANGINFO_ALTMON]) 85 AC_SUBST([HAVE_LANGINFO_ALTMON])
114 AC_SUBST([HAVE_LANGINFO_ABALTMON]) 86 AC_SUBST([HAVE_LANGINFO_ABALTMON])
115 AC_SUBST([HAVE_LANGINFO_ERA]) 87 AC_SUBST([HAVE_LANGINFO_ERA])
116 AC_SUBST([HAVE_LANGINFO_YESEXPR])
117 88
118 dnl Check for declarations of anything we want to poison if the 89 dnl Check for declarations of anything we want to poison if the
119 dnl corresponding gnulib module is not in use. 90 dnl corresponding gnulib module is not in use.
diff --git a/gl/m4/largefile.m4 b/gl/m4/largefile.m4
index b24f657d..3134f336 100644
--- a/gl/m4/largefile.m4
+++ b/gl/m4/largefile.m4
@@ -1,6 +1,6 @@
1# largefile.m4 1# largefile.m4
2# serial 2 2# serial 4
3dnl Copyright 1992-1996, 1998-2025 Free Software Foundation, Inc. 3dnl Copyright 1992-1996, 1998-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -355,8 +355,7 @@ AC_DEFUN([gl_LARGEFILE],
355 *) 355 *)
356 dnl Nothing to do on gnulib's side. 356 dnl Nothing to do on gnulib's side.
357 dnl A 64-bit off_t is 357 dnl A 64-bit off_t is
358 dnl - already the default on Mac OS X, FreeBSD, NetBSD, OpenBSD, IRIX, 358 dnl - already the default on Mac OS X, FreeBSD, NetBSD, OpenBSD, Cygwin,
359 dnl OSF/1, Cygwin,
360 dnl - enabled by _FILE_OFFSET_BITS=64 (ensured by AC_SYS_LARGEFILE) on 359 dnl - enabled by _FILE_OFFSET_BITS=64 (ensured by AC_SYS_LARGEFILE) on
361 dnl glibc, HP-UX, Solaris, 360 dnl glibc, HP-UX, Solaris,
362 dnl - enabled by _LARGE_FILES=1 (ensured by AC_SYS_LARGEFILE) on AIX, 361 dnl - enabled by _LARGE_FILES=1 (ensured by AC_SYS_LARGEFILE) on AIX,
diff --git a/gl/m4/libunistring-base.m4 b/gl/m4/libunistring-base.m4
index 9b5795ed..f2f144ac 100644
--- a/gl/m4/libunistring-base.m4
+++ b/gl/m4/libunistring-base.m4
@@ -1,6 +1,6 @@
1# libunistring-base.m4 1# libunistring-base.m4
2# serial 10 2# serial 10
3dnl Copyright (C) 2010-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2010-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/limits-h.m4 b/gl/m4/limits-h.m4
index 202df492..048c8fab 100644
--- a/gl/m4/limits-h.m4
+++ b/gl/m4/limits-h.m4
@@ -1,6 +1,6 @@
1# limits-h.m4 1# limits-h.m4
2# serial 1 2# serial 1
3dnl Copyright 2016-2025 Free Software Foundation, Inc. 3dnl Copyright 2016-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/localcharset.m4 b/gl/m4/localcharset.m4
index 374a48f1..8e2c2755 100644
--- a/gl/m4/localcharset.m4
+++ b/gl/m4/localcharset.m4
@@ -1,6 +1,6 @@
1# localcharset.m4 1# localcharset.m4
2# serial 8 2# serial 8
3dnl Copyright (C) 2002, 2004, 2006, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002, 2004, 2006, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/locale-en.m4 b/gl/m4/locale-en.m4
index 4151428a..f5e035f3 100644
--- a/gl/m4/locale-en.m4
+++ b/gl/m4/locale-en.m4
@@ -1,6 +1,6 @@
1# locale-en.m4 1# locale-en.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2003-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -19,7 +19,7 @@ AC_DEFUN_ONCE([gt_LOCALE_EN_UTF8],
19 *-musl* | midipix*) 19 *-musl* | midipix*)
20 dnl On musl libc, all kinds of ll_CC.UTF-8 locales exist, even without 20 dnl On musl libc, all kinds of ll_CC.UTF-8 locales exist, even without
21 dnl any locale file on disk. But they are effectively equivalent to the 21 dnl any locale file on disk. But they are effectively equivalent to the
22 dnl C.UTF-8 locale, except for locale categories (such as LC_MESSSAGES) 22 dnl C.UTF-8 locale, except for locale categories (such as LC_MESSAGES)
23 dnl for which localizations (.mo files) have been installed. 23 dnl for which localizations (.mo files) have been installed.
24 gt_cv_locale_en_utf8=en_US.UTF-8 24 gt_cv_locale_en_utf8=en_US.UTF-8
25 ;; 25 ;;
diff --git a/gl/m4/locale-fr.m4 b/gl/m4/locale-fr.m4
index f504d5b5..097cefa6 100644
--- a/gl/m4/locale-fr.m4
+++ b/gl/m4/locale-fr.m4
@@ -1,6 +1,6 @@
1# locale-fr.m4 1# locale-fr.m4
2# serial 24 2# serial 25
3dnl Copyright (C) 2003, 2005-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003, 2005-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -112,7 +112,7 @@ int main () {
112 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 112 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
113 gt_cv_locale_fr=fr_FR.ISO-8859-1 113 gt_cv_locale_fr=fr_FR.ISO-8859-1
114 else 114 else
115 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name. 115 # Test for the AIX, FreeBSD, NetBSD, OpenBSD locale name.
116 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 116 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
117 gt_cv_locale_fr=fr_FR.ISO8859-1 117 gt_cv_locale_fr=fr_FR.ISO8859-1
118 else 118 else
@@ -156,7 +156,7 @@ AC_DEFUN_ONCE([gt_LOCALE_FR_UTF8],
156 *-musl* | midipix*) 156 *-musl* | midipix*)
157 dnl On musl libc, all kinds of ll_CC.UTF-8 locales exist, even without 157 dnl On musl libc, all kinds of ll_CC.UTF-8 locales exist, even without
158 dnl any locale file on disk. But they are effectively equivalent to the 158 dnl any locale file on disk. But they are effectively equivalent to the
159 dnl C.UTF-8 locale, except for locale categories (such as LC_MESSSAGES) 159 dnl C.UTF-8 locale, except for locale categories (such as LC_MESSAGES)
160 dnl for which localizations (.mo files) have been installed. 160 dnl for which localizations (.mo files) have been installed.
161 gt_cv_locale_fr_utf8=fr_FR.UTF-8 161 gt_cv_locale_fr_utf8=fr_FR.UTF-8
162 ;; 162 ;;
diff --git a/gl/m4/locale-ja.m4 b/gl/m4/locale-ja.m4
index 1c813b89..ee4309ed 100644
--- a/gl/m4/locale-ja.m4
+++ b/gl/m4/locale-ja.m4
@@ -1,6 +1,6 @@
1# locale-ja.m4 1# locale-ja.m4
2# serial 19 2# serial 21
3dnl Copyright (C) 2003, 2005-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003, 2005-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -112,11 +112,11 @@ int main ()
112 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 112 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
113 gt_cv_locale_ja=ja_JP.EUC-JP 113 gt_cv_locale_ja=ja_JP.EUC-JP
114 else 114 else
115 # Test for the HP-UX, OSF/1, NetBSD locale name. 115 # Test for the HP-UX, NetBSD locale name.
116 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 116 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
117 gt_cv_locale_ja=ja_JP.eucJP 117 gt_cv_locale_ja=ja_JP.eucJP
118 else 118 else
119 # Test for the IRIX, FreeBSD locale name. 119 # Test for the FreeBSD locale name.
120 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then 120 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
121 gt_cv_locale_ja=ja_JP.EUC 121 gt_cv_locale_ja=ja_JP.EUC
122 else 122 else
diff --git a/gl/m4/locale-zh.m4 b/gl/m4/locale-zh.m4
index 6f9374d2..98975bdd 100644
--- a/gl/m4/locale-zh.m4
+++ b/gl/m4/locale-zh.m4
@@ -1,6 +1,6 @@
1# locale-zh.m4 1# locale-zh.m4
2# serial 20 2# serial 20
3dnl Copyright (C) 2003, 2005-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003, 2005-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/locale_h.m4 b/gl/m4/locale_h.m4
index e1afbc16..aeda9f9d 100644
--- a/gl/m4/locale_h.m4
+++ b/gl/m4/locale_h.m4
@@ -1,6 +1,6 @@
1# locale_h.m4 1# locale_h.m4
2# serial 37 2# serial 39
3dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -63,8 +63,8 @@ AC_DEFUN_ONCE([gl_LOCALE_H],
63 63
64 dnl Check whether 'struct lconv' is complete. 64 dnl Check whether 'struct lconv' is complete.
65 dnl Bionic libc's 'struct lconv' is just a dummy. 65 dnl Bionic libc's 'struct lconv' is just a dummy.
66 dnl On OpenBSD 4.9, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 9, Cygwin 1.5.x, 66 dnl On OpenBSD 4.9, HP-UX 11, Solaris 9, Cygwin 1.5.x, mingw, MSVC 9,
67 dnl mingw, MSVC 9, it lacks the int_p_* and int_n_* members. 67 dnl it lacks the int_p_* and int_n_* members.
68 AC_CACHE_CHECK([whether struct lconv is properly defined], 68 AC_CACHE_CHECK([whether struct lconv is properly defined],
69 [gl_cv_sys_struct_lconv_ok], 69 [gl_cv_sys_struct_lconv_ok],
70 [AC_COMPILE_IFELSE( 70 [AC_COMPILE_IFELSE(
diff --git a/gl/m4/localeconv.m4 b/gl/m4/localeconv.m4
index 55a669d0..9fa31de8 100644
--- a/gl/m4/localeconv.m4
+++ b/gl/m4/localeconv.m4
@@ -1,6 +1,6 @@
1# localeconv.m4 1# localeconv.m4
2# serial 3 2# serial 3
3dnl Copyright (C) 2012-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2012-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/lock.m4 b/gl/m4/lock.m4
index b1d3f435..7058fb30 100644
--- a/gl/m4/lock.m4
+++ b/gl/m4/lock.m4
@@ -1,6 +1,6 @@
1# lock.m4 1# lock.m4
2# serial 14 2# serial 15
3dnl Copyright (C) 2005-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -12,8 +12,8 @@ AC_DEFUN([gl_LOCK],
12[ 12[
13 AC_REQUIRE([gl_THREADLIB]) 13 AC_REQUIRE([gl_THREADLIB])
14 if test "$gl_threads_api" = posix; then 14 if test "$gl_threads_api" = posix; then
15 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the 15 # Mac OS X 10.1 lacks the pthread_rwlock_t type and the pthread_rwlock_*
16 # pthread_rwlock_* functions. 16 # functions.
17 has_rwlock=false 17 has_rwlock=false
18 AC_CHECK_TYPE([pthread_rwlock_t], 18 AC_CHECK_TYPE([pthread_rwlock_t],
19 [has_rwlock=true 19 [has_rwlock=true
diff --git a/gl/m4/lseek.m4 b/gl/m4/lseek.m4
index ddfadd38..342fc55b 100644
--- a/gl/m4/lseek.m4
+++ b/gl/m4/lseek.m4
@@ -1,6 +1,6 @@
1# lseek.m4 1# lseek.m4
2# serial 15 2# serial 15
3dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/lstat.m4 b/gl/m4/lstat.m4
index efae2485..57df6fd9 100644
--- a/gl/m4/lstat.m4
+++ b/gl/m4/lstat.m4
@@ -1,6 +1,6 @@
1# lstat.m4 1# lstat.m4
2# serial 36 2# serial 36
3dnl Copyright (C) 1997-2001, 2003-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 1997-2001, 2003-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/malloc.m4 b/gl/m4/malloc.m4
index 547b4e4d..a95e33db 100644
--- a/gl/m4/malloc.m4
+++ b/gl/m4/malloc.m4
@@ -1,6 +1,6 @@
1# malloc.m4 1# malloc.m4
2# serial 43.1 2# serial 46
3dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -187,40 +187,42 @@ AC_DEFUN([gl_CHECK_MALLOC_POSIX],
187 [gl_cv_func_malloc_posix="guessing yes"], 187 [gl_cv_func_malloc_posix="guessing yes"],
188 [gl_cv_func_malloc_posix="guessing no"]) 188 [gl_cv_func_malloc_posix="guessing no"])
189 ;; 189 ;;
190 irix* | solaris*) 190 solaris*)
191 dnl On IRIX 6.5, the three functions return NULL with errno unset 191 dnl On Solaris 11.3, the three functions might fail with errno set
192 dnl when the argument is larger than PTRDIFF_MAX.
193 dnl On Solaris 11.3, the three functions return NULL with errno set
194 dnl to EAGAIN, not ENOMEM, when the argument is larger than 192 dnl to EAGAIN, not ENOMEM, when the argument is larger than
195 dnl PTRDIFF_MAX. 193 dnl PTRDIFF_MAX. See:
194 dnl https://lists.gnu.org/r/bug-gnulib/2021-05/msg00052.html
196 dnl Here is a test program: 195 dnl Here is a test program:
196
197m4_divert_push([KILL]) 197m4_divert_push([KILL])
198#include <errno.h> 198#include <errno.h>
199#include <stddef.h>
199#include <stdio.h> 200#include <stdio.h>
201#include <stdint.h>
200#include <stdlib.h> 202#include <stdlib.h>
201#define ptrdiff_t long
202#ifndef PTRDIFF_MAX
203# define PTRDIFF_MAX ((ptrdiff_t) ((1UL << (8 * sizeof (ptrdiff_t) - 1)) - 1))
204#endif
205 203
206int main () 204#define TEST_CALL(call) \
205 do { \
206 void *p = call; \
207 if (p) \
208 fprintf (stderr, "returned %p (incorrect success)\n", p); \
209 else if (errno == ENOMEM) \
210 perror ("correct failure"); \
211 else \
212 perror ("incorrect failure (wrong errno)"); \
213 free (p); \
214 } while (0)
215
216int
217main ()
207{ 218{
208 void *p; 219 size_t big = PTRDIFF_MAX;
209 220 TEST_CALL (malloc (big + 1));
210 fprintf (stderr, "PTRDIFF_MAX = %lu\n", (unsigned long) PTRDIFF_MAX); 221 TEST_CALL (calloc (big / 2 + 1, 2));
211 222 TEST_CALL (realloc (NULL, big + 1));
212 errno = 0; 223 void *small = malloc (1);
213 p = malloc ((unsigned long) PTRDIFF_MAX + 1); 224 TEST_CALL (realloc (small, big + 1));
214 fprintf (stderr, "p=%p errno=%d\n", p, errno); 225 free (small);
215
216 errno = 0;
217 p = calloc (PTRDIFF_MAX / 2 + 1, 2);
218 fprintf (stderr, "p=%p errno=%d\n", p, errno);
219
220 errno = 0;
221 p = realloc (NULL, (unsigned long) PTRDIFF_MAX + 1);
222 fprintf (stderr, "p=%p errno=%d\n", p, errno);
223
224 return 0; 226 return 0;
225} 227}
226m4_divert_pop([KILL]) 228m4_divert_pop([KILL])
diff --git a/gl/m4/malloca.m4 b/gl/m4/malloca.m4
index cabe5fe7..2c0ed8ea 100644
--- a/gl/m4/malloca.m4
+++ b/gl/m4/malloca.m4
@@ -1,6 +1,6 @@
1# malloca.m4 1# malloca.m4
2# serial 3 2# serial 3
3dnl Copyright (C) 2003-2004, 2006-2007, 2009-2025 Free Software Foundation, 3dnl Copyright (C) 2003-2004, 2006-2007, 2009-2026 Free Software Foundation,
4dnl Inc. 4dnl Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/math_h.m4 b/gl/m4/math_h.m4
index 8c27503b..4cf59671 100644
--- a/gl/m4/math_h.m4
+++ b/gl/m4/math_h.m4
@@ -1,6 +1,6 @@
1# math_h.m4 1# math_h.m4
2# serial 140.1 2# serial 146
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -131,8 +131,11 @@ AC_DEFUN([gl_MATH_H_REQUIRE_DEFAULTS],
131 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ILOGBF]) 131 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ILOGBF])
132 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ILOGBL]) 132 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ILOGBL])
133 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISFINITE]) 133 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISFINITE])
134 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISFINITE_NO_CXX])
134 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISINF]) 135 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISINF])
136 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISINF_NO_CXX])
135 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNAN]) 137 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNAN])
138 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNAN_NO_CXX])
136 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNANF]) 139 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNANF])
137 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNAND]) 140 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNAND])
138 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNANL]) 141 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNANL])
@@ -177,6 +180,7 @@ AC_DEFUN([gl_MATH_H_REQUIRE_DEFAULTS],
177 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETPAYLOADSIGF]) 180 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETPAYLOADSIGF])
178 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETPAYLOADSIGL]) 181 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETPAYLOADSIGL])
179 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SIGNBIT]) 182 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SIGNBIT])
183 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SIGNBIT_NO_CXX])
180 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SINF]) 184 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SINF])
181 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SINL]) 185 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SINL])
182 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SINHF]) 186 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SINHF])
@@ -220,14 +224,19 @@ AC_DEFUN([gl_MATH_H_DEFAULTS],
220 HAVE_CBRTF=1; AC_SUBST([HAVE_CBRTF]) 224 HAVE_CBRTF=1; AC_SUBST([HAVE_CBRTF])
221 HAVE_CBRTL=1; AC_SUBST([HAVE_CBRTL]) 225 HAVE_CBRTL=1; AC_SUBST([HAVE_CBRTL])
222 HAVE_COPYSIGN=1; AC_SUBST([HAVE_COPYSIGN]) 226 HAVE_COPYSIGN=1; AC_SUBST([HAVE_COPYSIGN])
227 HAVE_COPYSIGNF=1; AC_SUBST([HAVE_COPYSIGNF])
223 HAVE_COPYSIGNL=1; AC_SUBST([HAVE_COPYSIGNL]) 228 HAVE_COPYSIGNL=1; AC_SUBST([HAVE_COPYSIGNL])
224 HAVE_COSF=1; AC_SUBST([HAVE_COSF]) 229 HAVE_COSF=1; AC_SUBST([HAVE_COSF])
225 HAVE_COSL=1; AC_SUBST([HAVE_COSL]) 230 HAVE_COSL=1; AC_SUBST([HAVE_COSL])
226 HAVE_COSHF=1; AC_SUBST([HAVE_COSHF]) 231 HAVE_COSHF=1; AC_SUBST([HAVE_COSHF])
227 HAVE_EXPF=1; AC_SUBST([HAVE_EXPF]) 232 HAVE_EXPF=1; AC_SUBST([HAVE_EXPF])
228 HAVE_EXPL=1; AC_SUBST([HAVE_EXPL]) 233 HAVE_EXPL=1; AC_SUBST([HAVE_EXPL])
234 HAVE_EXP2=1; AC_SUBST([HAVE_EXP2])
235 HAVE_EXP2F=1; AC_SUBST([HAVE_EXP2F])
236 HAVE_EXP2L=1; AC_SUBST([HAVE_EXP2L])
229 HAVE_EXPM1=1; AC_SUBST([HAVE_EXPM1]) 237 HAVE_EXPM1=1; AC_SUBST([HAVE_EXPM1])
230 HAVE_EXPM1F=1; AC_SUBST([HAVE_EXPM1F]) 238 HAVE_EXPM1F=1; AC_SUBST([HAVE_EXPM1F])
239 HAVE_EXPM1L=1; AC_SUBST([HAVE_EXPM1L])
231 HAVE_FABSF=1; AC_SUBST([HAVE_FABSF]) 240 HAVE_FABSF=1; AC_SUBST([HAVE_FABSF])
232 HAVE_FABSL=1; AC_SUBST([HAVE_FABSL]) 241 HAVE_FABSL=1; AC_SUBST([HAVE_FABSL])
233 HAVE_FMA=1; AC_SUBST([HAVE_FMA]) 242 HAVE_FMA=1; AC_SUBST([HAVE_FMA])
@@ -255,6 +264,9 @@ AC_DEFUN([gl_MATH_H_DEFAULTS],
255 HAVE_LOG1P=1; AC_SUBST([HAVE_LOG1P]) 264 HAVE_LOG1P=1; AC_SUBST([HAVE_LOG1P])
256 HAVE_LOG1PF=1; AC_SUBST([HAVE_LOG1PF]) 265 HAVE_LOG1PF=1; AC_SUBST([HAVE_LOG1PF])
257 HAVE_LOG1PL=1; AC_SUBST([HAVE_LOG1PL]) 266 HAVE_LOG1PL=1; AC_SUBST([HAVE_LOG1PL])
267 HAVE_LOG2=1; AC_SUBST([HAVE_LOG2])
268 HAVE_LOG2F=1; AC_SUBST([HAVE_LOG2F])
269 HAVE_LOG2L=1; AC_SUBST([HAVE_LOG2L])
258 HAVE_LOGBF=1; AC_SUBST([HAVE_LOGBF]) 270 HAVE_LOGBF=1; AC_SUBST([HAVE_LOGBF])
259 HAVE_LOGBL=1; AC_SUBST([HAVE_LOGBL]) 271 HAVE_LOGBL=1; AC_SUBST([HAVE_LOGBL])
260 HAVE_LOGP1=1; AC_SUBST([HAVE_LOGP1]) 272 HAVE_LOGP1=1; AC_SUBST([HAVE_LOGP1])
@@ -265,8 +277,13 @@ AC_DEFUN([gl_MATH_H_DEFAULTS],
265 HAVE_POWF=1; AC_SUBST([HAVE_POWF]) 277 HAVE_POWF=1; AC_SUBST([HAVE_POWF])
266 HAVE_REMAINDER=1; AC_SUBST([HAVE_REMAINDER]) 278 HAVE_REMAINDER=1; AC_SUBST([HAVE_REMAINDER])
267 HAVE_REMAINDERF=1; AC_SUBST([HAVE_REMAINDERF]) 279 HAVE_REMAINDERF=1; AC_SUBST([HAVE_REMAINDERF])
280 HAVE_REMAINDERL=1; AC_SUBST([HAVE_REMAINDERL])
268 HAVE_RINT=1; AC_SUBST([HAVE_RINT]) 281 HAVE_RINT=1; AC_SUBST([HAVE_RINT])
282 HAVE_RINTF=1; AC_SUBST([HAVE_RINTF])
269 HAVE_RINTL=1; AC_SUBST([HAVE_RINTL]) 283 HAVE_RINTL=1; AC_SUBST([HAVE_RINTL])
284 HAVE_ROUND=1; AC_SUBST([HAVE_ROUND])
285 HAVE_ROUNDF=1; AC_SUBST([HAVE_ROUNDF])
286 HAVE_ROUNDL=1; AC_SUBST([HAVE_ROUNDL])
270 HAVE_SETPAYLOAD=1; AC_SUBST([HAVE_SETPAYLOAD]) 287 HAVE_SETPAYLOAD=1; AC_SUBST([HAVE_SETPAYLOAD])
271 HAVE_SETPAYLOADF=1; AC_SUBST([HAVE_SETPAYLOADF]) 288 HAVE_SETPAYLOADF=1; AC_SUBST([HAVE_SETPAYLOADF])
272 HAVE_SETPAYLOADL=1; AC_SUBST([HAVE_SETPAYLOADL]) 289 HAVE_SETPAYLOADL=1; AC_SUBST([HAVE_SETPAYLOADL])
@@ -290,33 +307,17 @@ AC_DEFUN([gl_MATH_H_DEFAULTS],
290 HAVE_DECL_ACOSL=1; AC_SUBST([HAVE_DECL_ACOSL]) 307 HAVE_DECL_ACOSL=1; AC_SUBST([HAVE_DECL_ACOSL])
291 HAVE_DECL_ASINL=1; AC_SUBST([HAVE_DECL_ASINL]) 308 HAVE_DECL_ASINL=1; AC_SUBST([HAVE_DECL_ASINL])
292 HAVE_DECL_ATANL=1; AC_SUBST([HAVE_DECL_ATANL]) 309 HAVE_DECL_ATANL=1; AC_SUBST([HAVE_DECL_ATANL])
293 HAVE_DECL_CBRTF=1; AC_SUBST([HAVE_DECL_CBRTF])
294 HAVE_DECL_CBRTL=1; AC_SUBST([HAVE_DECL_CBRTL])
295 HAVE_DECL_CEILF=1; AC_SUBST([HAVE_DECL_CEILF]) 310 HAVE_DECL_CEILF=1; AC_SUBST([HAVE_DECL_CEILF])
296 HAVE_DECL_CEILL=1; AC_SUBST([HAVE_DECL_CEILL]) 311 HAVE_DECL_CEILL=1; AC_SUBST([HAVE_DECL_CEILL])
297 HAVE_DECL_COPYSIGNF=1; AC_SUBST([HAVE_DECL_COPYSIGNF])
298 HAVE_DECL_COSL=1; AC_SUBST([HAVE_DECL_COSL]) 312 HAVE_DECL_COSL=1; AC_SUBST([HAVE_DECL_COSL])
299 HAVE_DECL_EXPL=1; AC_SUBST([HAVE_DECL_EXPL]) 313 HAVE_DECL_EXPL=1; AC_SUBST([HAVE_DECL_EXPL])
300 HAVE_DECL_EXP2=1; AC_SUBST([HAVE_DECL_EXP2])
301 HAVE_DECL_EXP2F=1; AC_SUBST([HAVE_DECL_EXP2F])
302 HAVE_DECL_EXP2L=1; AC_SUBST([HAVE_DECL_EXP2L])
303 HAVE_DECL_EXPM1L=1; AC_SUBST([HAVE_DECL_EXPM1L])
304 HAVE_DECL_FLOORF=1; AC_SUBST([HAVE_DECL_FLOORF]) 314 HAVE_DECL_FLOORF=1; AC_SUBST([HAVE_DECL_FLOORF])
305 HAVE_DECL_FLOORL=1; AC_SUBST([HAVE_DECL_FLOORL]) 315 HAVE_DECL_FLOORL=1; AC_SUBST([HAVE_DECL_FLOORL])
306 HAVE_DECL_FREXPL=1; AC_SUBST([HAVE_DECL_FREXPL]) 316 HAVE_DECL_FREXPL=1; AC_SUBST([HAVE_DECL_FREXPL])
307 HAVE_DECL_LDEXPL=1; AC_SUBST([HAVE_DECL_LDEXPL]) 317 HAVE_DECL_LDEXPL=1; AC_SUBST([HAVE_DECL_LDEXPL])
308 HAVE_DECL_LOGL=1; AC_SUBST([HAVE_DECL_LOGL]) 318 HAVE_DECL_LOGL=1; AC_SUBST([HAVE_DECL_LOGL])
309 HAVE_DECL_LOG10L=1; AC_SUBST([HAVE_DECL_LOG10L]) 319 HAVE_DECL_LOG10L=1; AC_SUBST([HAVE_DECL_LOG10L])
310 HAVE_DECL_LOG2=1; AC_SUBST([HAVE_DECL_LOG2])
311 HAVE_DECL_LOG2F=1; AC_SUBST([HAVE_DECL_LOG2F])
312 HAVE_DECL_LOG2L=1; AC_SUBST([HAVE_DECL_LOG2L])
313 HAVE_DECL_LOGB=1; AC_SUBST([HAVE_DECL_LOGB]) 320 HAVE_DECL_LOGB=1; AC_SUBST([HAVE_DECL_LOGB])
314 HAVE_DECL_REMAINDER=1; AC_SUBST([HAVE_DECL_REMAINDER])
315 HAVE_DECL_REMAINDERL=1; AC_SUBST([HAVE_DECL_REMAINDERL])
316 HAVE_DECL_RINTF=1; AC_SUBST([HAVE_DECL_RINTF])
317 HAVE_DECL_ROUND=1; AC_SUBST([HAVE_DECL_ROUND])
318 HAVE_DECL_ROUNDF=1; AC_SUBST([HAVE_DECL_ROUNDF])
319 HAVE_DECL_ROUNDL=1; AC_SUBST([HAVE_DECL_ROUNDL])
320 HAVE_DECL_SINL=1; AC_SUBST([HAVE_DECL_SINL]) 321 HAVE_DECL_SINL=1; AC_SUBST([HAVE_DECL_SINL])
321 HAVE_DECL_SQRTL=1; AC_SUBST([HAVE_DECL_SQRTL]) 322 HAVE_DECL_SQRTL=1; AC_SUBST([HAVE_DECL_SQRTL])
322 HAVE_DECL_TANL=1; AC_SUBST([HAVE_DECL_TANL]) 323 HAVE_DECL_TANL=1; AC_SUBST([HAVE_DECL_TANL])
diff --git a/gl/m4/mbchar.m4 b/gl/m4/mbchar.m4
index b76f1d7b..4251a84c 100644
--- a/gl/m4/mbchar.m4
+++ b/gl/m4/mbchar.m4
@@ -1,6 +1,6 @@
1# mbchar.m4 1# mbchar.m4
2# serial 9 2# serial 9
3dnl Copyright (C) 2005-2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005-2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mbiter.m4 b/gl/m4/mbiter.m4
index b51242e6..927876bc 100644
--- a/gl/m4/mbiter.m4
+++ b/gl/m4/mbiter.m4
@@ -1,6 +1,6 @@
1# mbiter.m4 1# mbiter.m4
2# serial 7 2# serial 7
3dnl Copyright (C) 2005, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mbrtoc32.m4 b/gl/m4/mbrtoc32.m4
index 1991529c..d1690fb4 100644
--- a/gl/m4/mbrtoc32.m4
+++ b/gl/m4/mbrtoc32.m4
@@ -1,6 +1,6 @@
1# mbrtoc32.m4 1# mbrtoc32.m4
2# serial 21 2# serial 21
3dnl Copyright (C) 2014-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2014-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mbrtowc.m4 b/gl/m4/mbrtowc.m4
index cc09a5fb..a49872fa 100644
--- a/gl/m4/mbrtowc.m4
+++ b/gl/m4/mbrtowc.m4
@@ -1,6 +1,6 @@
1# mbrtowc.m4 1# mbrtowc.m4
2# serial 46 2# serial 47
3dnl Copyright (C) 2001-2002, 2004-2005, 2008-2025 Free Software Foundation, 3dnl Copyright (C) 2001-2002, 2004-2005, 2008-2026 Free Software Foundation,
4dnl Inc. 4dnl Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
@@ -33,7 +33,6 @@ AC_DEFUN([gl_FUNC_MBRTOWC],
33 REPLACE_MBRTOWC=1 33 REPLACE_MBRTOWC=1
34 else 34 else
35 gl_MBRTOWC_NULL_ARG1 35 gl_MBRTOWC_NULL_ARG1
36 gl_MBRTOWC_NULL_ARG2
37 gl_MBRTOWC_RETVAL 36 gl_MBRTOWC_RETVAL
38 gl_MBRTOWC_NUL_RETVAL 37 gl_MBRTOWC_NUL_RETVAL
39 gl_MBRTOWC_STORES_INCOMPLETE 38 gl_MBRTOWC_STORES_INCOMPLETE
@@ -46,13 +45,6 @@ AC_DEFUN([gl_FUNC_MBRTOWC],
46 REPLACE_MBRTOWC=1 45 REPLACE_MBRTOWC=1
47 ;; 46 ;;
48 esac 47 esac
49 case "$gl_cv_func_mbrtowc_null_arg2" in
50 *yes) ;;
51 *) AC_DEFINE([MBRTOWC_NULL_ARG2_BUG], [1],
52 [Define if the mbrtowc function has the NULL string argument bug.])
53 REPLACE_MBRTOWC=1
54 ;;
55 esac
56 case "$gl_cv_func_mbrtowc_retval" in 48 case "$gl_cv_func_mbrtowc_retval" in
57 *yes) ;; 49 *yes) ;;
58 *) AC_DEFINE([MBRTOWC_RETVAL_BUG], [1], 50 *) AC_DEFINE([MBRTOWC_RETVAL_BUG], [1],
@@ -170,10 +162,10 @@ AC_DEFUN([gl_MBRTOWC_INCOMPLETE_STATE],
170 dnl is present. 162 dnl is present.
171changequote(,)dnl 163changequote(,)dnl
172 case "$host_os" in 164 case "$host_os" in
173 # Guess no on AIX and OSF/1. 165 # Guess no on AIX.
174 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;; 166 aix*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
175 # Guess yes otherwise. 167 # Guess yes otherwise.
176 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;; 168 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
177 esac 169 esac
178changequote([,])dnl 170changequote([,])dnl
179 if test $LOCALE_JA != none; then 171 if test $LOCALE_JA != none; then
@@ -346,57 +338,6 @@ int main ()
346 ]) 338 ])
347]) 339])
348 340
349dnl Test whether mbrtowc supports a NULL string argument correctly.
350dnl Result is gl_cv_func_mbrtowc_null_arg2.
351
352AC_DEFUN([gl_MBRTOWC_NULL_ARG2],
353[
354 AC_REQUIRE([AC_PROG_CC])
355 AC_REQUIRE([gt_LOCALE_EN_UTF8])
356 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
357 AC_CACHE_CHECK([whether mbrtowc handles a NULL string argument],
358 [gl_cv_func_mbrtowc_null_arg2],
359 [
360 dnl Initial guess, used when cross-compiling or when no suitable locale
361 dnl is present.
362changequote(,)dnl
363 case "$host_os" in
364 # Guess no on OSF/1.
365 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
366 # Guess yes otherwise.
367 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
368 esac
369changequote([,])dnl
370 if test "$LOCALE_EN_UTF8" != none; then
371 AC_RUN_IFELSE(
372 [AC_LANG_SOURCE([[
373#include <locale.h>
374#include <string.h>
375#include <wchar.h>
376int main ()
377{
378 if (setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
379 {
380 mbstate_t state;
381 wchar_t wc;
382 int ret;
383
384 memset (&state, '\0', sizeof (mbstate_t));
385 wc = (wchar_t) 0xBADFACE;
386 mbrtowc (&wc, NULL, 5, &state);
387 /* Check that wc was not modified. */
388 if (wc != (wchar_t) 0xBADFACE)
389 return 2;
390 }
391 return 0;
392}]])],
393 [gl_cv_func_mbrtowc_null_arg2=yes],
394 [gl_cv_func_mbrtowc_null_arg2=no],
395 [:])
396 fi
397 ])
398])
399
400dnl Test whether mbrtowc, when parsing the end of a multibyte character, 341dnl Test whether mbrtowc, when parsing the end of a multibyte character,
401dnl correctly returns the number of bytes that were needed to complete the 342dnl correctly returns the number of bytes that were needed to complete the
402dnl character (not the total number of bytes of the multibyte character). 343dnl character (not the total number of bytes of the multibyte character).
@@ -716,7 +657,7 @@ AC_DEFUN([gl_MBRTOWC_EMPTY_INPUT],
716dnl Test whether mbrtowc reports encoding errors in the C locale. 657dnl Test whether mbrtowc reports encoding errors in the C locale.
717dnl Although POSIX was never intended to allow this, the GNU C Library 658dnl Although POSIX was never intended to allow this, the GNU C Library
718dnl and other implementations do it. See: 659dnl and other implementations do it. See:
719dnl https://sourceware.org/bugzilla/show_bug.cgi?id=19932 660dnl https://sourceware.org/PR19932
720dnl POSIX has now clarified it: 661dnl POSIX has now clarified it:
721dnl <https://pubs.opengroup.org/onlinepubs/9699919799/functions/mbrtowc.html> 662dnl <https://pubs.opengroup.org/onlinepubs/9699919799/functions/mbrtowc.html>
722dnl says: "In the POSIX locale an [EILSEQ] error cannot occur since all byte 663dnl says: "In the POSIX locale an [EILSEQ] error cannot occur since all byte
diff --git a/gl/m4/mbsinit.m4 b/gl/m4/mbsinit.m4
index 69cfa574..757f2360 100644
--- a/gl/m4/mbsinit.m4
+++ b/gl/m4/mbsinit.m4
@@ -1,6 +1,6 @@
1# mbsinit.m4 1# mbsinit.m4
2# serial 10 2# serial 10
3dnl Copyright (C) 2008, 2010-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008, 2010-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mbstate_t.m4 b/gl/m4/mbstate_t.m4
index 59df1e2e..88307d7a 100644
--- a/gl/m4/mbstate_t.m4
+++ b/gl/m4/mbstate_t.m4
@@ -1,6 +1,6 @@
1# mbstate_t.m4 1# mbstate_t.m4
2# serial 14 2# serial 14
3dnl Copyright (C) 2000-2002, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2000-2002, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mbtowc.m4 b/gl/m4/mbtowc.m4
index 3e3f6ce0..9c5887d3 100644
--- a/gl/m4/mbtowc.m4
+++ b/gl/m4/mbtowc.m4
@@ -1,6 +1,6 @@
1# mbtowc.m4 1# mbtowc.m4
2# serial 5 2# serial 5
3dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/memchr.m4 b/gl/m4/memchr.m4
index 1c2ecf1d..c5c74682 100644
--- a/gl/m4/memchr.m4
+++ b/gl/m4/memchr.m4
@@ -1,6 +1,6 @@
1# memchr.m4 1# memchr.m4
2# serial 20 2# serial 21
3dnl Copyright (C) 2002-2004, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2004, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -21,7 +21,7 @@ AC_DEFUN_ONCE([gl_FUNC_MEMCHR],
21 # https://bugzilla.redhat.com/show_bug.cgi?id=499689 21 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
22 # memchr should not dereference overestimated length after a match 22 # memchr should not dereference overestimated length after a match
23 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737 23 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
24 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162 24 # https://sourceware.org/PR10162
25 # memchr should cast the second argument to 'unsigned char'. 25 # memchr should cast the second argument to 'unsigned char'.
26 # This bug exists in Android 4.3. 26 # This bug exists in Android 4.3.
27 # Assume that memchr works on platforms that lack mprotect. 27 # Assume that memchr works on platforms that lack mprotect.
@@ -33,31 +33,20 @@ AC_DEFUN_ONCE([gl_FUNC_MEMCHR],
33# include <unistd.h> 33# include <unistd.h>
34# include <sys/types.h> 34# include <sys/types.h>
35# include <sys/mman.h> 35# include <sys/mman.h>
36# ifndef MAP_FILE
37# define MAP_FILE 0
38# endif
39#endif 36#endif
40]], [[ 37]], [[
41 int result = 0; 38 int result = 0;
42 char *fence = NULL; 39 char *fence = NULL;
43#if HAVE_SYS_MMAN_H && HAVE_MPROTECT 40#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
44# if HAVE_MAP_ANONYMOUS 41 {
45 const int flags = MAP_ANONYMOUS | MAP_PRIVATE; 42 long int pagesize = sysconf (_SC_PAGESIZE);
46 const int fd = -1; 43 char *two_pages =
47# else /* !HAVE_MAP_ANONYMOUS */ 44 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
48 const int flags = MAP_FILE | MAP_PRIVATE; 45 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
49 int fd = open ("/dev/zero", O_RDONLY, 0666); 46 if (two_pages != (char *)(-1)
50 if (fd >= 0) 47 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
51# endif 48 fence = two_pages + pagesize;
52 { 49 }
53 long int pagesize = sysconf (_SC_PAGESIZE);
54 char *two_pages =
55 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
56 flags, fd, 0);
57 if (two_pages != (char *)(-1)
58 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
59 fence = two_pages + pagesize;
60 }
61#endif 50#endif
62 if (fence) 51 if (fence)
63 { 52 {
diff --git a/gl/m4/minmax.m4 b/gl/m4/minmax.m4
index 69c8a89f..3344e3f7 100644
--- a/gl/m4/minmax.m4
+++ b/gl/m4/minmax.m4
@@ -1,6 +1,6 @@
1# minmax.m4 1# minmax.m4
2# serial 4 2# serial 4
3dnl Copyright (C) 2005, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mktime.m4 b/gl/m4/mktime.m4
index eca6c4d8..fa32d138 100644
--- a/gl/m4/mktime.m4
+++ b/gl/m4/mktime.m4
@@ -1,6 +1,6 @@
1# mktime.m4 1# mktime.m4
2# serial 42 2# serial 43
3dnl Copyright (C) 2002-2003, 2005-2007, 2009-2025 Free Software Foundation, 3dnl Copyright (C) 2002-2003, 2005-2007, 2009-2026 Free Software Foundation,
4dnl Inc. 4dnl Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
@@ -113,22 +113,6 @@ mktime_test (time_t now)
113} 113}
114 114
115static int 115static int
116irix_6_4_bug ()
117{
118 /* Based on code from Ariel Faigon. */
119 struct tm tm;
120 tm.tm_year = 96;
121 tm.tm_mon = 3;
122 tm.tm_mday = 0;
123 tm.tm_hour = 0;
124 tm.tm_min = 0;
125 tm.tm_sec = 0;
126 tm.tm_isdst = -1;
127 mktime (&tm);
128 return tm.tm_mon == 2 && tm.tm_mday == 31;
129}
130
131static int
132bigtime_test (int j) 116bigtime_test (int j)
133{ 117{
134 struct tm tm; 118 struct tm tm;
@@ -255,12 +239,10 @@ main ()
255 if ((result & 8) == 0 && ! bigtime_test (INT_MAX)) 239 if ((result & 8) == 0 && ! bigtime_test (INT_MAX))
256 result |= 8; 240 result |= 8;
257 } 241 }
258 if (! irix_6_4_bug ())
259 result |= 16;
260 if (! spring_forward_gap ()) 242 if (! spring_forward_gap ())
261 result |= 32; 243 result |= 16;
262 if (! year_2050_test () || ! indiana_test ()) 244 if (! year_2050_test () || ! indiana_test ())
263 result |= 64; 245 result |= 32;
264 return result; 246 return result;
265}]])], 247}]])],
266 [gl_cv_func_working_mktime=yes], 248 [gl_cv_func_working_mktime=yes],
diff --git a/gl/m4/mmap-anon.m4 b/gl/m4/mmap-anon.m4
index 3f7a6656..b5e323d4 100644
--- a/gl/m4/mmap-anon.m4
+++ b/gl/m4/mmap-anon.m4
@@ -1,6 +1,6 @@
1# mmap-anon.m4 1# mmap-anon.m4
2# serial 12 2# serial 15
3dnl Copyright (C) 2005, 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005, 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -8,12 +8,10 @@ dnl This file is offered as-is, without any warranty.
8 8
9# Detect how mmap can be used to create anonymous (not file-backed) memory 9# Detect how mmap can be used to create anonymous (not file-backed) memory
10# mappings. 10# mappings.
11# - On Linux, AIX, OSF/1, Solaris, Cygwin, Interix, Haiku, both MAP_ANONYMOUS 11# - On Linux, AIX, Solaris, Cygwin, Interix, Haiku, both MAP_ANONYMOUS and
12# and MAP_ANON exist and have the same value. 12# MAP_ANON exist and have the same value.
13# - On HP-UX, only MAP_ANONYMOUS exists. 13# - On HP-UX, only MAP_ANONYMOUS exists.
14# - On Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, only MAP_ANON exists. 14# - On Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, only MAP_ANON exists.
15# - On IRIX, neither exists, and a file descriptor opened to /dev/zero must be
16# used.
17 15
18AC_DEFUN_ONCE([gl_FUNC_MMAP_ANON], 16AC_DEFUN_ONCE([gl_FUNC_MMAP_ANON],
19[ 17[
@@ -23,11 +21,13 @@ AC_DEFUN_ONCE([gl_FUNC_MMAP_ANON],
23 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it 21 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
24 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is 22 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
25 # irrelevant for anonymous mappings. 23 # irrelevant for anonymous mappings.
26 AC_CHECK_FUNC([mmap], [gl_have_mmap=yes], [gl_have_mmap=no]) 24 # Instead, assume that mmap() exists if and only if <sys/mman.h> exists.
25 # Code needs to tests HAVE_SYS_MMAN_H, not HAVE_MMAP.
26 AC_CHECK_HEADERS_ONCE([sys/mman.h])
27 27
28 # Try to allow MAP_ANONYMOUS. 28 # Try to allow MAP_ANONYMOUS.
29 gl_have_mmap_anonymous=no 29 gl_have_mmap_anonymous=no
30 if test $gl_have_mmap = yes; then 30 if test $ac_cv_header_sys_mman_h = yes; then
31 AC_MSG_CHECKING([for MAP_ANONYMOUS]) 31 AC_MSG_CHECKING([for MAP_ANONYMOUS])
32 AC_EGREP_CPP([I cannot identify this map], [ 32 AC_EGREP_CPP([I cannot identify this map], [
33#include <sys/mman.h> 33#include <sys/mman.h>
@@ -48,10 +48,5 @@ AC_DEFUN_ONCE([gl_FUNC_MMAP_ANON],
48 gl_have_mmap_anonymous=yes]) 48 gl_have_mmap_anonymous=yes])
49 fi 49 fi
50 AC_MSG_RESULT([$gl_have_mmap_anonymous]) 50 AC_MSG_RESULT([$gl_have_mmap_anonymous])
51 if test $gl_have_mmap_anonymous = yes; then
52 AC_DEFINE([HAVE_MAP_ANONYMOUS], [1],
53 [Define to 1 if mmap()'s MAP_ANONYMOUS flag is available after including
54 config.h and <sys/mman.h>.])
55 fi
56 fi 51 fi
57]) 52])
diff --git a/gl/m4/mode_t.m4 b/gl/m4/mode_t.m4
index 7dae201b..4621813d 100644
--- a/gl/m4/mode_t.m4
+++ b/gl/m4/mode_t.m4
@@ -1,6 +1,6 @@
1# mode_t.m4 1# mode_t.m4
2# serial 2 2# serial 2
3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mountlist.m4 b/gl/m4/mountlist.m4
index e7eac2e9..311e00b2 100644
--- a/gl/m4/mountlist.m4
+++ b/gl/m4/mountlist.m4
@@ -1,6 +1,6 @@
1# mountlist.m4 1# mountlist.m4
2# serial 18 2# serial 20
3dnl Copyright (C) 2002-2006, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2006, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -75,7 +75,7 @@ $ac_includes_default
75 # Determine whether it's the one-argument variant or the two-argument one. 75 # Determine whether it's the one-argument variant or the two-argument one.
76 76
77 if test -z "$ac_list_mounted_fs"; then 77 if test -z "$ac_list_mounted_fs"; then
78 # glibc, HP-UX, IRIX, Cygwin, Android, also (obsolete) 4.3BSD, SunOS. 78 # glibc, HP-UX, Cygwin, Android, also (obsolete) 4.3BSD, SunOS.
79 AC_CACHE_CHECK([for one-argument getmntent function], 79 AC_CACHE_CHECK([for one-argument getmntent function],
80 [fu_cv_sys_mounted_getmntent1], 80 [fu_cv_sys_mounted_getmntent1],
81 [AC_COMPILE_IFELSE( 81 [AC_COMPILE_IFELSE(
@@ -107,7 +107,7 @@ $ac_includes_default
107 AC_DEFINE([MOUNTED_GETMNTENT1], [1], 107 AC_DEFINE([MOUNTED_GETMNTENT1], [1],
108 [Define if there is a function named getmntent for reading the list 108 [Define if there is a function named getmntent for reading the list
109 of mounted file systems, and that function takes a single argument. 109 of mounted file systems, and that function takes a single argument.
110 (4.3BSD, SunOS, HP-UX, Irix)]) 110 (4.3BSD, SunOS, HP-UX)])
111 gl_CHECK_FUNCS_ANDROID([setmntent], 111 gl_CHECK_FUNCS_ANDROID([setmntent],
112 [[#include <stdio.h> 112 [[#include <stdio.h>
113 #include <mntent.h> 113 #include <mntent.h>
@@ -159,7 +159,7 @@ $ac_includes_default
159 fi 159 fi
160 160
161 if test -z "$ac_list_mounted_fs"; then 161 if test -z "$ac_list_mounted_fs"; then
162 # OSF/1, also (obsolete) Apple Darwin 1.3. 162 # (obsolete) Apple Darwin 1.3.
163 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h 163 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h
164 164
165 AC_CACHE_CHECK([for getfsstat function], 165 AC_CACHE_CHECK([for getfsstat function],
@@ -185,7 +185,7 @@ $getfsstat_includes
185 ac_list_mounted_fs=found 185 ac_list_mounted_fs=found
186 AC_DEFINE([MOUNTED_GETFSSTAT], [1], 186 AC_DEFINE([MOUNTED_GETFSSTAT], [1],
187 [Define if there is a function named getfsstat for reading the 187 [Define if there is a function named getfsstat for reading the
188 list of mounted file systems. (DEC Alpha running OSF/1)]) 188 list of mounted file systems. (obsolete Darwin)])
189 fi 189 fi
190 fi 190 fi
191 191
@@ -212,10 +212,9 @@ $getfsstat_includes
212 212
213 if test -z "$ac_list_mounted_fs"; then 213 if test -z "$ac_list_mounted_fs"; then
214 # Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, also (obsolete) 4.4BSD. 214 # Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, also (obsolete) 4.4BSD.
215 # OSF/1 also has getmntinfo but is already handled above.
216 # We cannot use AC_CHECK_FUNCS([getmntinfo]) here, because at the linker 215 # We cannot use AC_CHECK_FUNCS([getmntinfo]) here, because at the linker
217 # level the function is sometimes called getmntinfo64 or getmntinfo$INODE64 216 # level the function is sometimes called getmntinfo64 or getmntinfo$INODE64
218 # on Mac OS X, __getmntinfo13 on NetBSD and Minix, _F64_getmntinfo on OSF/1. 217 # on Mac OS X, __getmntinfo13 on NetBSD and Minix.
219 AC_CACHE_CHECK([for getmntinfo function], 218 AC_CACHE_CHECK([for getmntinfo function],
220 [fu_cv_sys_mounted_getmntinfo], 219 [fu_cv_sys_mounted_getmntinfo],
221 [AC_LINK_IFELSE( 220 [AC_LINK_IFELSE(
diff --git a/gl/m4/msvc-inval.m4 b/gl/m4/msvc-inval.m4
index bfbb983b..565c0d3a 100644
--- a/gl/m4/msvc-inval.m4
+++ b/gl/m4/msvc-inval.m4
@@ -1,6 +1,6 @@
1# msvc-inval.m4 1# msvc-inval.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/msvc-nothrow.m4 b/gl/m4/msvc-nothrow.m4
index 6a470971..1c2b491e 100644
--- a/gl/m4/msvc-nothrow.m4
+++ b/gl/m4/msvc-nothrow.m4
@@ -1,6 +1,6 @@
1# msvc-nothrow.m4 1# msvc-nothrow.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/multiarch.m4 b/gl/m4/multiarch.m4
index 817f01f1..4fb642b7 100644
--- a/gl/m4/multiarch.m4
+++ b/gl/m4/multiarch.m4
@@ -1,6 +1,6 @@
1# multiarch.m4 1# multiarch.m4
2# serial 9 2# serial 9
3dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/musl.m4 b/gl/m4/musl.m4
index 6ff778cb..15b34466 100644
--- a/gl/m4/musl.m4
+++ b/gl/m4/musl.m4
@@ -1,6 +1,6 @@
1# musl.m4 1# musl.m4
2# serial 4 2# serial 4
3dnl Copyright (C) 2019-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2019-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/netdb_h.m4 b/gl/m4/netdb_h.m4
index 88512546..bcf19b01 100644
--- a/gl/m4/netdb_h.m4
+++ b/gl/m4/netdb_h.m4
@@ -1,6 +1,6 @@
1# netdb_h.m4 1# netdb_h.m4
2# serial 15 2# serial 15
3dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/netinet_in_h.m4 b/gl/m4/netinet_in_h.m4
index b56e354c..6d9eaf97 100644
--- a/gl/m4/netinet_in_h.m4
+++ b/gl/m4/netinet_in_h.m4
@@ -1,6 +1,6 @@
1# netinet_in_h.m4 1# netinet_in_h.m4
2# serial 6 2# serial 6
3dnl Copyright (C) 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/nl_langinfo.m4 b/gl/m4/nl_langinfo.m4
index 9b1e0f32..a3ec57f7 100644
--- a/gl/m4/nl_langinfo.m4
+++ b/gl/m4/nl_langinfo.m4
@@ -1,6 +1,6 @@
1# nl_langinfo.m4 1# nl_langinfo.m4
2# serial 12.1 2# serial 14
3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -16,31 +16,6 @@ AC_DEFUN([gl_FUNC_NL_LANGINFO],
16 AC_REQUIRE([gl_PTHREADLIB]) 16 AC_REQUIRE([gl_PTHREADLIB])
17 AC_CHECK_HEADERS_ONCE([threads.h]) 17 AC_CHECK_HEADERS_ONCE([threads.h])
18 if test $ac_cv_func_nl_langinfo = yes; then 18 if test $ac_cv_func_nl_langinfo = yes; then
19 # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
20 AC_CACHE_CHECK([whether YESEXPR works],
21 [gl_cv_func_nl_langinfo_yesexpr_works],
22 [AC_RUN_IFELSE(
23 [AC_LANG_PROGRAM([[#include <langinfo.h>
24]], [[return !*nl_langinfo(YESEXPR);
25]])],
26 [gl_cv_func_nl_langinfo_yesexpr_works=yes],
27 [gl_cv_func_nl_langinfo_yesexpr_works=no],
28 [
29 case "$host_os" in
30 # Guess no on irix systems.
31 irix*) gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
32 # Guess yes elsewhere.
33 *) gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
34 esac
35 ])
36 ])
37 case $gl_cv_func_nl_langinfo_yesexpr_works in
38 *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
39 *) FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
40 esac
41 AC_DEFINE_UNQUOTED([FUNC_NL_LANGINFO_YESEXPR_WORKS],
42 [$FUNC_NL_LANGINFO_YESEXPR_WORKS],
43 [Define to 1 if nl_langinfo (YESEXPR) returns a non-empty string.])
44 # On macOS 26, Solaris 10, and Solaris 11.3, nl_langinfo is not 19 # On macOS 26, Solaris 10, and Solaris 11.3, nl_langinfo is not
45 # multithread-safe. 20 # multithread-safe.
46 case "$host_os" in 21 case "$host_os" in
@@ -50,11 +25,9 @@ AC_DEFUN([gl_FUNC_NL_LANGINFO],
50 AC_DEFINE_UNQUOTED([NL_LANGINFO_MTSAFE], [$NL_LANGINFO_MTSAFE], 25 AC_DEFINE_UNQUOTED([NL_LANGINFO_MTSAFE], [$NL_LANGINFO_MTSAFE],
51 [Define to 1 if nl_langinfo is multithread-safe.]) 26 [Define to 1 if nl_langinfo is multithread-safe.])
52 if test $HAVE_LANGINFO_CODESET = 1 \ 27 if test $HAVE_LANGINFO_CODESET = 1 \
53 && test $HAVE_LANGINFO_T_FMT_AMPM = 1 \
54 && test $HAVE_LANGINFO_ALTMON = 1 \ 28 && test $HAVE_LANGINFO_ALTMON = 1 \
55 && test $HAVE_LANGINFO_ABALTMON = 1 \ 29 && test $HAVE_LANGINFO_ABALTMON = 1 \
56 && test $HAVE_LANGINFO_ERA = 1 \ 30 && test $HAVE_LANGINFO_ERA = 1 \
57 && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1 \
58 && test $NL_LANGINFO_MTSAFE = 1; then 31 && test $NL_LANGINFO_MTSAFE = 1; then
59 : 32 :
60 else 33 else
diff --git a/gl/m4/nocrash.m4 b/gl/m4/nocrash.m4
index 662fb049..5c1af8c7 100644
--- a/gl/m4/nocrash.m4
+++ b/gl/m4/nocrash.m4
@@ -1,6 +1,6 @@
1# nocrash.m4 1# nocrash.m4
2# serial 5 2# serial 5
3dnl Copyright (C) 2005, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/off64_t.m4 b/gl/m4/off64_t.m4
index 963d53e9..93d9e37b 100644
--- a/gl/m4/off64_t.m4
+++ b/gl/m4/off64_t.m4
@@ -1,6 +1,6 @@
1# off64_t.m4 1# off64_t.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2024-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2024-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/off_t.m4 b/gl/m4/off_t.m4
index f4f4bbf6..d7d6aa0c 100644
--- a/gl/m4/off_t.m4
+++ b/gl/m4/off_t.m4
@@ -1,6 +1,6 @@
1# off_t.m4 1# off_t.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2012-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2012-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/once.m4 b/gl/m4/once.m4
index 7876a8fe..a478d81a 100644
--- a/gl/m4/once.m4
+++ b/gl/m4/once.m4
@@ -1,6 +1,6 @@
1# once.m4 1# once.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2024-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2024-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/open-cloexec.m4 b/gl/m4/open-cloexec.m4
index 860541b0..9c9aef23 100644
--- a/gl/m4/open-cloexec.m4
+++ b/gl/m4/open-cloexec.m4
@@ -1,6 +1,6 @@
1# open-cloexec.m4 1# open-cloexec.m4
2# serial 1 2# serial 1
3dnl Copyright 2017-2025 Free Software Foundation, Inc. 3dnl Copyright 2017-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/open-slash.m4 b/gl/m4/open-slash.m4
index 2cba48fe..c36bdced 100644
--- a/gl/m4/open-slash.m4
+++ b/gl/m4/open-slash.m4
@@ -1,6 +1,6 @@
1# open-slash.m4 1# open-slash.m4
2# serial 2 2# serial 2
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/open.m4 b/gl/m4/open.m4
index dd3a805f..f5b2a91c 100644
--- a/gl/m4/open.m4
+++ b/gl/m4/open.m4
@@ -1,6 +1,6 @@
1# open.m4 1# open.m4
2# serial 17 2# serial 17
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/pathmax.m4 b/gl/m4/pathmax.m4
index 0c3925df..d6bdf43e 100644
--- a/gl/m4/pathmax.m4
+++ b/gl/m4/pathmax.m4
@@ -1,6 +1,6 @@
1# pathmax.m4 1# pathmax.m4
2# serial 11 2# serial 11
3dnl Copyright (C) 2002-2003, 2005-2006, 2009-2025 Free Software Foundation, 3dnl Copyright (C) 2002-2003, 2005-2006, 2009-2026 Free Software Foundation,
4dnl Inc. 4dnl Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/pid_t.m4 b/gl/m4/pid_t.m4
index a8bdabc2..314792ed 100644
--- a/gl/m4/pid_t.m4
+++ b/gl/m4/pid_t.m4
@@ -1,6 +1,6 @@
1# pid_t.m4 1# pid_t.m4
2# serial 4 2# serial 4
3dnl Copyright (C) 2020-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2020-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/printf.m4 b/gl/m4/printf.m4
index 4619a402..0de493b6 100644
--- a/gl/m4/printf.m4
+++ b/gl/m4/printf.m4
@@ -1,6 +1,6 @@
1# printf.m4 1# printf.m4
2# serial 96 2# serial 98
3dnl Copyright (C) 2003, 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003, 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -659,7 +659,7 @@ int main ()
659 && strcmp (buf, "0x8.0p-2") != 0)) 659 && strcmp (buf, "0x8.0p-2") != 0))
660 result |= 16; 660 result |= 16;
661 /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a 661 /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a
662 glibc 2.4 bug <https://sourceware.org/bugzilla/show_bug.cgi?id=2908> 662 glibc 2.4 bug <https://sourceware.org/PR2908>
663 and a FreeBSD 6.4, NetBSD 10.0 bug. */ 663 and a FreeBSD 6.4, NetBSD 10.0 bug. */
664 if (sprintf (buf, "%.1La", 1.999L) < 0 664 if (sprintf (buf, "%.1La", 1.999L) < 0
665 || (strcmp (buf, "0x1.0p+1") != 0 665 || (strcmp (buf, "0x1.0p+1") != 0
@@ -937,7 +937,7 @@ int main ()
937 _CrtSetReportMode (_CRT_ASSERT, 0); 937 _CrtSetReportMode (_CRT_ASSERT, 0);
938#endif 938#endif
939 signal (SIGABRT, abort_handler); 939 signal (SIGABRT, abort_handler);
940 /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2) 940 /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE >= 2)
941 support %n in format strings in read-only memory but not in writable 941 support %n in format strings in read-only memory but not in writable
942 memory. */ 942 memory. */
943 strcpy (fmtstring, "%d %n"); 943 strcpy (fmtstring, "%d %n");
@@ -994,7 +994,7 @@ int main ()
994 int result = 0; 994 int result = 0;
995 char buf[100]; 995 char buf[100];
996 /* Test whether %ls works at all. 996 /* Test whether %ls works at all.
997 This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on 997 This test fails on OpenBSD 4.0, Solaris 2.6, Haiku, but not on
998 Cygwin 1.5. */ 998 Cygwin 1.5. */
999 { 999 {
1000 static const wchar_t wstring[] = { 'a', 'b', 'c', 0 }; 1000 static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
@@ -1003,8 +1003,8 @@ int main ()
1003 || strcmp (buf, "abc") != 0) 1003 || strcmp (buf, "abc") != 0)
1004 result |= 1; 1004 result |= 1;
1005 } 1005 }
1006 /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an 1006 /* This test fails on Solaris 2.6, Cygwin 1.5, Haiku (with an assertion
1007 assertion failure inside libc), but not on OpenBSD 4.0. */ 1007 failure inside libc), but not on OpenBSD 4.0. */
1008 { 1008 {
1009 static const wchar_t wstring[] = { 'a', 0 }; 1009 static const wchar_t wstring[] = { 'a', 0 };
1010 buf[0] = '\0'; 1010 buf[0] = '\0';
@@ -1037,7 +1037,6 @@ changequote(,)dnl
1037 # Guess yes on OpenBSD >= 6.0. 1037 # Guess yes on OpenBSD >= 6.0.
1038 openbsd[1-5].*) gl_cv_func_printf_directive_ls="guessing no";; 1038 openbsd[1-5].*) gl_cv_func_printf_directive_ls="guessing no";;
1039 openbsd*) gl_cv_func_printf_directive_ls="guessing yes";; 1039 openbsd*) gl_cv_func_printf_directive_ls="guessing yes";;
1040 irix*) gl_cv_func_printf_directive_ls="guessing no";;
1041 solaris*) gl_cv_func_printf_directive_ls="guessing no";; 1040 solaris*) gl_cv_func_printf_directive_ls="guessing no";;
1042 cygwin*) gl_cv_func_printf_directive_ls="guessing no";; 1041 cygwin*) gl_cv_func_printf_directive_ls="guessing no";;
1043 beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";; 1042 beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";;
@@ -1589,10 +1588,6 @@ changequote(,)dnl
1589 *) gl_cv_func_printf_enomem="guessing no";; 1588 *) gl_cv_func_printf_enomem="guessing no";;
1590 esac 1589 esac
1591 ;; 1590 ;;
1592 # Guess yes on IRIX.
1593 irix*) gl_cv_func_printf_enomem="guessing yes";;
1594 # Guess yes on OSF/1.
1595 osf*) gl_cv_func_printf_enomem="guessing yes";;
1596 # Guess yes on BeOS. 1591 # Guess yes on BeOS.
1597 beos*) gl_cv_func_printf_enomem="guessing yes";; 1592 beos*) gl_cv_func_printf_enomem="guessing yes";;
1598 # Guess yes on Haiku. 1593 # Guess yes on Haiku.
@@ -1684,11 +1679,6 @@ changequote(,)dnl
1684 # Guess yes on HP-UX >= 11. 1679 # Guess yes on HP-UX >= 11.
1685 hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";; 1680 hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
1686 hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";; 1681 hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
1687 # Guess yes on IRIX >= 6.5.
1688 irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";;
1689 # Guess yes on OSF/1 >= 5.
1690 osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
1691 osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
1692 # Guess yes on NetBSD >= 3. 1682 # Guess yes on NetBSD >= 3.
1693 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) 1683 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
1694 gl_cv_func_snprintf_truncation_c99="guessing no";; 1684 gl_cv_func_snprintf_truncation_c99="guessing no";;
@@ -1710,7 +1700,7 @@ changequote([,])dnl
1710dnl Test whether the return value of the snprintf function is the number 1700dnl Test whether the return value of the snprintf function is the number
1711dnl of bytes (excluding the terminating NUL) that would have been produced 1701dnl of bytes (excluding the terminating NUL) that would have been produced
1712dnl if the buffer had been large enough. (ISO C99, POSIX:2001) 1702dnl if the buffer had been large enough. (ISO C99, POSIX:2001)
1713dnl For example, this test program fails on IRIX 6.5: 1703dnl For example, this test program fails on HP-UX 11.31 and Solaris 9:
1714dnl --------------------------------------------------------------------- 1704dnl ---------------------------------------------------------------------
1715dnl #include <stdio.h> 1705dnl #include <stdio.h>
1716dnl int main() 1706dnl int main()
@@ -1859,7 +1849,7 @@ int main ()
1859{ 1849{
1860 int count = -1; 1850 int count = -1;
1861 signal (SIGABRT, abort_handler); 1851 signal (SIGABRT, abort_handler);
1862 /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE=2) 1852 /* Copy the format string. Some systems (glibc with _FORTIFY_SOURCE >= 2)
1863 support %n in format strings in read-only memory but not in writable 1853 support %n in format strings in read-only memory but not in writable
1864 memory. */ 1854 memory. */
1865 strcpy (fmtstring, "%d %n"); 1855 strcpy (fmtstring, "%d %n");
@@ -1899,11 +1889,6 @@ changequote(,)dnl
1899 # Guess yes on AIX >= 4. 1889 # Guess yes on AIX >= 4.
1900 aix[1-3]*) gl_cv_func_snprintf_directive_n="guessing no";; 1890 aix[1-3]*) gl_cv_func_snprintf_directive_n="guessing no";;
1901 aix*) gl_cv_func_snprintf_directive_n="guessing yes";; 1891 aix*) gl_cv_func_snprintf_directive_n="guessing yes";;
1902 # Guess yes on IRIX >= 6.5.
1903 irix6.5) gl_cv_func_snprintf_directive_n="guessing yes";;
1904 # Guess yes on OSF/1 >= 5.
1905 osf[3-4]*) gl_cv_func_snprintf_directive_n="guessing no";;
1906 osf*) gl_cv_func_snprintf_directive_n="guessing yes";;
1907 # Guess yes on NetBSD >= 3. 1892 # Guess yes on NetBSD >= 3.
1908 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) 1893 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
1909 gl_cv_func_snprintf_directive_n="guessing no";; 1894 gl_cv_func_snprintf_directive_n="guessing no";;
@@ -2058,8 +2043,6 @@ changequote(,)dnl
2058 # Guess yes on AIX >= 4. 2043 # Guess yes on AIX >= 4.
2059 aix[1-3]*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";; 2044 aix[1-3]*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
2060 aix*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";; 2045 aix*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2061 # Guess yes on IRIX >= 6.5.
2062 irix6.5) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
2063 # Guess yes on NetBSD >= 3. 2046 # Guess yes on NetBSD >= 3.
2064 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*) 2047 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
2065 gl_cv_func_vsnprintf_zerosize_c99="guessing no";; 2048 gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
diff --git a/gl/m4/pthread-once.m4 b/gl/m4/pthread-once.m4
index 85549254..9080363d 100644
--- a/gl/m4/pthread-once.m4
+++ b/gl/m4/pthread-once.m4
@@ -1,6 +1,6 @@
1# pthread-once.m4 1# pthread-once.m4
2# serial 6 2# serial 6
3dnl Copyright (C) 2019-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2019-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/pthread-spin.m4 b/gl/m4/pthread-spin.m4
index aae2fb3b..17fa3b5e 100644
--- a/gl/m4/pthread-spin.m4
+++ b/gl/m4/pthread-spin.m4
@@ -1,6 +1,6 @@
1# pthread-spin.m4 1# pthread-spin.m4
2# serial 8 2# serial 8
3dnl Copyright (C) 2019-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2019-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/pthread_h.m4 b/gl/m4/pthread_h.m4
index bb921386..f01dc3d3 100644
--- a/gl/m4/pthread_h.m4
+++ b/gl/m4/pthread_h.m4
@@ -1,6 +1,6 @@
1# pthread_h.m4 1# pthread_h.m4
2# serial 11 2# serial 11
3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/pthread_rwlock_rdlock.m4 b/gl/m4/pthread_rwlock_rdlock.m4
index aec9f076..c16c781d 100644
--- a/gl/m4/pthread_rwlock_rdlock.m4
+++ b/gl/m4/pthread_rwlock_rdlock.m4
@@ -1,6 +1,6 @@
1# pthread_rwlock_rdlock.m4 1# pthread_rwlock_rdlock.m4
2# serial 8 2# serial 8
3dnl Copyright (C) 2017-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2017-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -32,7 +32,7 @@ dnl https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_rwlock_rd
32dnl but this test verifies the guarantee regardless of TPS and regardless of 32dnl but this test verifies the guarantee regardless of TPS and regardless of
33dnl scheduling policy. 33dnl scheduling policy.
34dnl Glibc does not provide this guarantee (and never will on Linux), see 34dnl Glibc does not provide this guarantee (and never will on Linux), see
35dnl https://sourceware.org/bugzilla/show_bug.cgi?id=13701 35dnl https://sourceware.org/PR13701
36dnl https://bugzilla.redhat.com/show_bug.cgi?id=1410052 36dnl https://bugzilla.redhat.com/show_bug.cgi?id=1410052
37AC_DEFUN([gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER], 37AC_DEFUN([gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER],
38[ 38[
diff --git a/gl/m4/realloc.m4 b/gl/m4/realloc.m4
index 67c1476b..8938db92 100644
--- a/gl/m4/realloc.m4
+++ b/gl/m4/realloc.m4
@@ -1,6 +1,6 @@
1# realloc.m4 1# realloc.m4
2# serial 39.1 2# serial 40
3dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/reallocarray.m4 b/gl/m4/reallocarray.m4
index 3970d9e1..e789967c 100644
--- a/gl/m4/reallocarray.m4
+++ b/gl/m4/reallocarray.m4
@@ -1,6 +1,6 @@
1# reallocarray.m4 1# reallocarray.m4
2# serial 7 2# serial 7
3dnl Copyright (C) 2017-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2017-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/regex.m4 b/gl/m4/regex.m4
index 49a8059f..45a10490 100644
--- a/gl/m4/regex.m4
+++ b/gl/m4/regex.m4
@@ -1,6 +1,6 @@
1# regex.m4 1# regex.m4
2# serial 81 2# serial 81
3dnl Copyright (C) 1996-2001, 2003-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 1996-2001, 2003-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/sched_h.m4 b/gl/m4/sched_h.m4
index 1ffd465f..92ebe1b7 100644
--- a/gl/m4/sched_h.m4
+++ b/gl/m4/sched_h.m4
@@ -1,6 +1,6 @@
1# sched_h.m4 1# sched_h.m4
2# serial 16 2# serial 16
3dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/servent.m4 b/gl/m4/servent.m4
index ba6ebd1d..97bcad0f 100644
--- a/gl/m4/servent.m4
+++ b/gl/m4/servent.m4
@@ -1,6 +1,6 @@
1# servent.m4 1# servent.m4
2# serial 5 2# serial 5
3dnl Copyright (C) 2008, 2010-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008, 2010-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/setenv.m4 b/gl/m4/setenv.m4
index 727e35af..5faf28d2 100644
--- a/gl/m4/setenv.m4
+++ b/gl/m4/setenv.m4
@@ -1,6 +1,6 @@
1# setenv.m4 1# setenv.m4
2# serial 35 2# serial 36
3dnl Copyright (C) 2001-2004, 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2001-2004, 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -85,8 +85,6 @@ AC_DEFUN([gl_FUNC_UNSETENV],
85 [AC_COMPILE_IFELSE( 85 [AC_COMPILE_IFELSE(
86 [AC_LANG_PROGRAM( 86 [AC_LANG_PROGRAM(
87 [[ 87 [[
88#undef _BSD
89#define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
90#include <stdlib.h> 88#include <stdlib.h>
91extern 89extern
92#ifdef __cplusplus 90#ifdef __cplusplus
diff --git a/gl/m4/setlocale_null.m4 b/gl/m4/setlocale_null.m4
index 3c8b693e..b6727245 100644
--- a/gl/m4/setlocale_null.m4
+++ b/gl/m4/setlocale_null.m4
@@ -1,6 +1,6 @@
1# setlocale_null.m4 1# setlocale_null.m4
2# serial 10 2# serial 11
3dnl Copyright (C) 2019-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2019-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -32,8 +32,8 @@ AC_DEFUN_ONCE([gl_FUNC_SETLOCALE_NULL],
32 [gl_cv_func_setlocale_null_all_mtsafe=yes], 32 [gl_cv_func_setlocale_null_all_mtsafe=yes],
33 [gl_cv_func_setlocale_null_all_mtsafe=no]) 33 [gl_cv_func_setlocale_null_all_mtsafe=no])
34 ;; 34 ;;
35 # Guess yes on glibc, HP-UX, IRIX, Solaris, native Windows. 35 # Guess yes on glibc, HP-UX, Solaris, native Windows.
36 *-gnu* | gnu* | hpux* | irix* | solaris* | mingw* | windows*) 36 *-gnu* | gnu* | hpux* | solaris* | mingw* | windows*)
37 gl_cv_func_setlocale_null_all_mtsafe=yes ;; 37 gl_cv_func_setlocale_null_all_mtsafe=yes ;;
38 # If we don't know, obey --enable-cross-guesses. 38 # If we don't know, obey --enable-cross-guesses.
39 *) 39 *)
@@ -63,8 +63,8 @@ AC_DEFUN_ONCE([gl_FUNC_SETLOCALE_NULL],
63 # Guess no on OpenBSD, AIX. 63 # Guess no on OpenBSD, AIX.
64 openbsd* | aix*) 64 openbsd* | aix*)
65 gl_cv_func_setlocale_null_one_mtsafe=no ;; 65 gl_cv_func_setlocale_null_one_mtsafe=no ;;
66 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, IRIX, Solaris, Haiku, Cygwin, native Windows. 66 # Guess yes on glibc, musl libc, macOS, FreeBSD, NetBSD, HP-UX, Solaris, Haiku, Cygwin, native Windows.
67 *-gnu* | gnu* | *-musl* | midipix* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | irix* | solaris* | haiku* | cygwin* | mingw* | windows*) 67 *-gnu* | gnu* | *-musl* | midipix* | darwin* | freebsd* | midnightbsd* | netbsd* | hpux* | solaris* | haiku* | cygwin* | mingw* | windows*)
68 gl_cv_func_setlocale_null_one_mtsafe=yes ;; 68 gl_cv_func_setlocale_null_one_mtsafe=yes ;;
69 # If we don't know, obey --enable-cross-guesses. 69 # If we don't know, obey --enable-cross-guesses.
70 *) 70 *)
diff --git a/gl/m4/sha256.m4 b/gl/m4/sha256.m4
index 30e8deeb..a9bd7857 100644
--- a/gl/m4/sha256.m4
+++ b/gl/m4/sha256.m4
@@ -1,6 +1,6 @@
1# sha256.m4 1# sha256.m4
2# serial 8 2# serial 8
3dnl Copyright (C) 2005, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/size_max.m4 b/gl/m4/size_max.m4
index b0460d45..b7a5153a 100644
--- a/gl/m4/size_max.m4
+++ b/gl/m4/size_max.m4
@@ -1,6 +1,6 @@
1# size_max.m4 1# size_max.m4
2# serial 12 2# serial 12
3dnl Copyright (C) 2003, 2005-2006, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003, 2005-2006, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/snprintf.m4 b/gl/m4/snprintf.m4
index 2c50cee9..6de225c2 100644
--- a/gl/m4/snprintf.m4
+++ b/gl/m4/snprintf.m4
@@ -1,6 +1,6 @@
1# snprintf.m4 1# snprintf.m4
2# serial 7 2# serial 7
3dnl Copyright (C) 2002-2004, 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2004, 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/socketlib.m4 b/gl/m4/socketlib.m4
index e3509f81..f62ffcfd 100644
--- a/gl/m4/socketlib.m4
+++ b/gl/m4/socketlib.m4
@@ -1,6 +1,6 @@
1# socketlib.m4 1# socketlib.m4
2# serial 4 2# serial 4
3dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/sockets.m4 b/gl/m4/sockets.m4
index 54f4dc79..95800d2e 100644
--- a/gl/m4/sockets.m4
+++ b/gl/m4/sockets.m4
@@ -1,6 +1,6 @@
1# sockets.m4 1# sockets.m4
2# serial 7 2# serial 7
3dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/socklen.m4 b/gl/m4/socklen.m4
index a8ac25b1..e5156511 100644
--- a/gl/m4/socklen.m4
+++ b/gl/m4/socklen.m4
@@ -1,6 +1,6 @@
1# socklen.m4 1# socklen.m4
2# serial 11 2# serial 13
3dnl Copyright (C) 2005-2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005-2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -11,7 +11,7 @@ dnl From Albert Chin, Windows fixes from Simon Josefsson.
11dnl Check for socklen_t: historically on BSD it is an int, and in 11dnl Check for socklen_t: historically on BSD it is an int, and in
12dnl POSIX 1g it is a type of its own, but some platforms use different 12dnl POSIX 1g it is a type of its own, but some platforms use different
13dnl types for the argument to getsockopt, getpeername, etc.: 13dnl types for the argument to getsockopt, getpeername, etc.:
14dnl HP-UX 10.20, IRIX 6.5, OSF/1 4.0, Interix 3.5, BeOS. 14dnl HP-UX 10.20, Interix 3.5, BeOS.
15dnl So we have to test to find something that will work. 15dnl So we have to test to find something that will work.
16 16
17AC_DEFUN([gl_TYPE_SOCKLEN_T], 17AC_DEFUN([gl_TYPE_SOCKLEN_T],
diff --git a/gl/m4/sockpfaf.m4 b/gl/m4/sockpfaf.m4
index 08ce843d..6379766d 100644
--- a/gl/m4/sockpfaf.m4
+++ b/gl/m4/sockpfaf.m4
@@ -1,6 +1,6 @@
1# sockpfaf.m4 1# sockpfaf.m4
2# serial 11 2# serial 11
3dnl Copyright (C) 2004, 2006, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2004, 2006, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/ssize_t.m4 b/gl/m4/ssize_t.m4
index a2ffd6fc..8710cb72 100644
--- a/gl/m4/ssize_t.m4
+++ b/gl/m4/ssize_t.m4
@@ -1,6 +1,6 @@
1# ssize_t.m4 1# ssize_t.m4
2# serial 6 2# serial 6
3dnl Copyright (C) 2001-2003, 2006, 2010-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2001-2003, 2006, 2010-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/stat-time.m4 b/gl/m4/stat-time.m4
index 4aa24e7f..10eb1dfa 100644
--- a/gl/m4/stat-time.m4
+++ b/gl/m4/stat-time.m4
@@ -1,6 +1,6 @@
1# stat-time.m4 1# stat-time.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2025 Free Software 3dnl Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2026 Free Software
4dnl Foundation, Inc. 4dnl Foundation, Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/stat.m4 b/gl/m4/stat.m4
index 66876305..3764ec0b 100644
--- a/gl/m4/stat.m4
+++ b/gl/m4/stat.m4
@@ -1,6 +1,6 @@
1# stat.m4 1# stat.m4
2# serial 21 2# serial 21
3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/std-gnu11.m4 b/gl/m4/std-gnu11.m4
index 762764e0..0868a43a 100644
--- a/gl/m4/std-gnu11.m4
+++ b/gl/m4/std-gnu11.m4
@@ -16,7 +16,7 @@ m4_ifndef([_AC_C_C23_OPTIONS], [
16m4_version_prereq([2.70], [], [ 16m4_version_prereq([2.70], [], [
17 17
18 18
19# Copyright (C) 2001-2025 Free Software Foundation, Inc. 19# Copyright (C) 2001-2026 Free Software Foundation, Inc.
20 20
21# This file is part of Autoconf. This program is free 21# This file is part of Autoconf. This program is free
22# software; you can redistribute it and/or modify it under the 22# software; you can redistribute it and/or modify it under the
@@ -777,7 +777,7 @@ AC_DEFUN([_AC_CXX_CXX11_TEST_BODY],
777} 777}
778{ 778{
779 // Unicode literals 779 // Unicode literals
780 char const *utf8 = u8"UTF-8 string \u2500"; 780 auto const *utf8 = u8"UTF-8 string \u2500"; // This is portable to C++20.
781 char16_t const *utf16 = u"UTF-8 string \u2500"; 781 char16_t const *utf16 = u"UTF-8 string \u2500";
782 char32_t const *utf32 = U"UTF-32 string \u2500"; 782 char32_t const *utf32 = U"UTF-32 string \u2500";
783} 783}
diff --git a/gl/m4/stdalign.m4 b/gl/m4/stdalign.m4
index 885feafd..7177d034 100644
--- a/gl/m4/stdalign.m4
+++ b/gl/m4/stdalign.m4
@@ -1,6 +1,6 @@
1# stdalign.m4 1# stdalign.m4
2# serial 3 2# serial 3
3dnl Copyright 2011-2025 Free Software Foundation, Inc. 3dnl Copyright 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -30,7 +30,7 @@ AC_DEFUN([gl_ALIGNASOF],
30 30
31 /* Test that alignof yields a result consistent with offsetof. 31 /* Test that alignof yields a result consistent with offsetof.
32 This catches GCC bug 52023 32 This catches GCC bug 52023
33 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ 33 <https://gcc.gnu.org/PR52023>. */
34 #ifdef __cplusplus 34 #ifdef __cplusplus
35 template <class t> struct alignof_helper { char a; t b; }; 35 template <class t> struct alignof_helper { char a; t b; };
36 # define ao(type) offsetof (alignof_helper<type>, b) 36 # define ao(type) offsetof (alignof_helper<type>, b)
@@ -82,8 +82,8 @@ AC_DEFUN([gl_ALIGNASOF],
82 82
83 References: 83 References:
84 ISO C23 (latest free draft 84 ISO C23 (latest free draft
85 <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3096.pdf>) 85 <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf>)
86 sections 6.5.3.4, 6.7.5, 7.15. 86 sections 6.2.8, 6.7.6.
87 C++11 (latest free draft 87 C++11 (latest free draft
88 <https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf>) 88 <https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf>)
89 section 18.10. */ 89 section 18.10. */
@@ -103,7 +103,7 @@ AC_DEFUN([gl_ALIGNASOF],
103 want to be portable to HP-UX 10.20 cc and AIX 3.2.5 xlc. */ 103 want to be portable to HP-UX 10.20 cc and AIX 3.2.5 xlc. */
104 104
105/* GCC releases before GCC 4.9 had a bug in _Alignof. See GCC bug 52023 105/* GCC releases before GCC 4.9 had a bug in _Alignof. See GCC bug 52023
106 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. 106 <https://gcc.gnu.org/PR52023>.
107 clang versions < 8.0.0 have the same bug. 107 clang versions < 8.0.0 have the same bug.
108 IBM XL C V16.1.0 cc (non-clang) has the same bug. */ 108 IBM XL C V16.1.0 cc (non-clang) has the same bug. */
109# if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \ 109# if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \
diff --git a/gl/m4/stdckdint_h.m4 b/gl/m4/stdckdint_h.m4
index d269faa5..eb8c858a 100644
--- a/gl/m4/stdckdint_h.m4
+++ b/gl/m4/stdckdint_h.m4
@@ -1,6 +1,6 @@
1# stdckdint_h.m4 1# stdckdint_h.m4
2# serial 1 2# serial 1
3dnl Copyright 2025 Free Software Foundation, Inc. 3dnl Copyright 2025-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/stddef_h.m4 b/gl/m4/stddef_h.m4
index 127ec05b..299472b1 100644
--- a/gl/m4/stddef_h.m4
+++ b/gl/m4/stddef_h.m4
@@ -1,6 +1,6 @@
1# stddef_h.m4 1# stddef_h.m4
2# serial 23 2# serial 23
3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -85,7 +85,7 @@ AC_DEFUN_ONCE([gl_STDDEF_H],
85 dnl Provide gl_unreachable() unconditionally. 85 dnl Provide gl_unreachable() unconditionally.
86 GL_GENERATE_STDDEF_H=true 86 GL_GENERATE_STDDEF_H=true
87 87
88 dnl https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114869 88 dnl https://gcc.gnu.org/PR114869
89 AC_CACHE_CHECK([whether nullptr_t needs <stddef.h>], 89 AC_CACHE_CHECK([whether nullptr_t needs <stddef.h>],
90 [gl_cv_nullptr_t_needs_stddef], 90 [gl_cv_nullptr_t_needs_stddef],
91 [AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[nullptr_t x;]], 91 [AC_COMPILE_IFELSE([AC_LANG_DEFINES_PROVIDED[nullptr_t x;]],
@@ -96,7 +96,7 @@ AC_DEFUN_ONCE([gl_STDDEF_H],
96 GL_GENERATE_STDDEF_H=true 96 GL_GENERATE_STDDEF_H=true
97 fi 97 fi
98 98
99 dnl https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114870 99 dnl https://gcc.gnu.org/PR114870
100 dnl affects GCC 13.3 and 14.2. 100 dnl affects GCC 13.3 and 14.2.
101 AC_CACHE_CHECK([whether <stddef.h> is idempotent], 101 AC_CACHE_CHECK([whether <stddef.h> is idempotent],
102 [gl_cv_stddef_idempotent], 102 [gl_cv_stddef_idempotent],
diff --git a/gl/m4/stdint.m4 b/gl/m4/stdint.m4
index 2d69088b..410da153 100644
--- a/gl/m4/stdint.m4
+++ b/gl/m4/stdint.m4
@@ -1,6 +1,6 @@
1# stdint.m4 1# stdint.m4
2# serial 64 2# serial 65
3dnl Copyright (C) 2001-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2001-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -391,9 +391,9 @@ AC_DEFUN([gl_STDINT_BITSIZEOF],
391 ]) 391 ])
392 eval result=\$gl_cv_bitsizeof_${gltype} 392 eval result=\$gl_cv_bitsizeof_${gltype}
393 if test $result = unknown; then 393 if test $result = unknown; then
394 dnl Use a nonempty default, because some compilers, such as IRIX 5 cc, 394 dnl Use a nonempty default, because some old compilers do a syntax check
395 dnl do a syntax check even on unused #if conditions and give an error 395 dnl even on unused #if conditions and give an error on valid C code like
396 dnl on valid C code like this: 396 dnl this:
397 dnl #if 0 397 dnl #if 0
398 dnl # if > 32 398 dnl # if > 32
399 dnl # endif 399 dnl # endif
diff --git a/gl/m4/stdint_h.m4 b/gl/m4/stdint_h.m4
index d4f1acdd..7f60af20 100644
--- a/gl/m4/stdint_h.m4
+++ b/gl/m4/stdint_h.m4
@@ -1,6 +1,6 @@
1# stdint_h.m4 1# stdint_h.m4
2# serial 9 2# serial 9
3dnl Copyright (C) 1997-2004, 2006, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 1997-2004, 2006, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/stdio_h.m4 b/gl/m4/stdio_h.m4
index 71d86180..9d4126f5 100644
--- a/gl/m4/stdio_h.m4
+++ b/gl/m4/stdio_h.m4
@@ -1,6 +1,6 @@
1# stdio_h.m4 1# stdio_h.m4
2# serial 75 2# serial 75
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/stdlib_h.m4 b/gl/m4/stdlib_h.m4
index 2d25da37..f35d6611 100644
--- a/gl/m4/stdlib_h.m4
+++ b/gl/m4/stdlib_h.m4
@@ -1,6 +1,6 @@
1# stdlib_h.m4 1# stdlib_h.m4
2# serial 84 2# serial 86
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -205,7 +205,6 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS],
205 HAVE_PTSNAME_R=1; AC_SUBST([HAVE_PTSNAME_R]) 205 HAVE_PTSNAME_R=1; AC_SUBST([HAVE_PTSNAME_R])
206 HAVE_QSORT_R=1; AC_SUBST([HAVE_QSORT_R]) 206 HAVE_QSORT_R=1; AC_SUBST([HAVE_QSORT_R])
207 HAVE_RANDOM=1; AC_SUBST([HAVE_RANDOM]) 207 HAVE_RANDOM=1; AC_SUBST([HAVE_RANDOM])
208 HAVE_RANDOM_H=1; AC_SUBST([HAVE_RANDOM_H])
209 HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R]) 208 HAVE_RANDOM_R=1; AC_SUBST([HAVE_RANDOM_R])
210 HAVE_REALLOCARRAY=1; AC_SUBST([HAVE_REALLOCARRAY]) 209 HAVE_REALLOCARRAY=1; AC_SUBST([HAVE_REALLOCARRAY])
211 HAVE_REALPATH=1; AC_SUBST([HAVE_REALPATH]) 210 HAVE_REALPATH=1; AC_SUBST([HAVE_REALPATH])
@@ -224,6 +223,7 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS],
224 HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL]) 223 HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL])
225 HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA]) 224 HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA])
226 HAVE_SYS_LOADAVG_H=0; AC_SUBST([HAVE_SYS_LOADAVG_H]) 225 HAVE_SYS_LOADAVG_H=0; AC_SUBST([HAVE_SYS_LOADAVG_H])
226 HAVE_SYS_PROCESS_H=0; AC_SUBST([HAVE_SYS_PROCESS_H])
227 HAVE_UNLOCKPT=1; AC_SUBST([HAVE_UNLOCKPT]) 227 HAVE_UNLOCKPT=1; AC_SUBST([HAVE_UNLOCKPT])
228 HAVE_DECL_UNSETENV=1; AC_SUBST([HAVE_DECL_UNSETENV]) 228 HAVE_DECL_UNSETENV=1; AC_SUBST([HAVE_DECL_UNSETENV])
229 REPLACE__EXIT=0; AC_SUBST([REPLACE__EXIT]) 229 REPLACE__EXIT=0; AC_SUBST([REPLACE__EXIT])
diff --git a/gl/m4/strcasecmp.m4 b/gl/m4/strcasecmp.m4
index eb4345d9..f9f90928 100644
--- a/gl/m4/strcasecmp.m4
+++ b/gl/m4/strcasecmp.m4
@@ -1,6 +1,6 @@
1# strcasecmp.m4 1# strcasecmp.m4
2# serial 3 2# serial 3
3dnl Copyright (C) 2002-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/strcasestr.m4 b/gl/m4/strcasestr.m4
index eb2862f1..f56eed58 100644
--- a/gl/m4/strcasestr.m4
+++ b/gl/m4/strcasestr.m4
@@ -1,6 +1,6 @@
1# strcasestr.m4 1# strcasestr.m4
2# serial 29 2# serial 29
3dnl Copyright (C) 2005, 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005, 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -22,8 +22,8 @@ AC_DEFUN([gl_FUNC_STRCASESTR_SIMPLE],
22 if test $REPLACE_MEMCHR = 1; then 22 if test $REPLACE_MEMCHR = 1; then
23 REPLACE_STRCASESTR=1 23 REPLACE_STRCASESTR=1
24 else 24 else
25 dnl Detect https://sourceware.org/bugzilla/show_bug.cgi?id=12092 25 dnl Detect https://sourceware.org/PR12092
26 dnl and https://sourceware.org/bugzilla/show_bug.cgi?id=23637. 26 dnl and https://sourceware.org/PR23637.
27 AC_CACHE_CHECK([whether strcasestr works], 27 AC_CACHE_CHECK([whether strcasestr works],
28 [gl_cv_func_strcasestr_works_always], 28 [gl_cv_func_strcasestr_works_always],
29 [AC_RUN_IFELSE( 29 [AC_RUN_IFELSE(
diff --git a/gl/m4/strerror.m4 b/gl/m4/strerror.m4
index c8b3b207..9bb60c3f 100644
--- a/gl/m4/strerror.m4
+++ b/gl/m4/strerror.m4
@@ -1,6 +1,6 @@
1# strerror.m4 1# strerror.m4
2# serial 25 2# serial 25
3dnl Copyright (C) 2002, 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002, 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/string_h.m4 b/gl/m4/string_h.m4
index fc73603a..2a6e4db4 100644
--- a/gl/m4/string_h.m4
+++ b/gl/m4/string_h.m4
@@ -1,6 +1,6 @@
1# string_h.m4 1# string_h.m4
2# serial 44.1 2# serial 46
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -63,6 +63,7 @@ AC_DEFUN([gl_STRING_H_REQUIRE_DEFAULTS],
63 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STPNCPY]) 63 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STPNCPY])
64 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRCHRNUL]) 64 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRCHRNUL])
65 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRDUP]) 65 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRDUP])
66 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRINGEQ])
66 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNCAT]) 67 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNCAT])
67 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNCPY]) 68 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNCPY])
68 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNDUP]) 69 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNDUP])
@@ -115,6 +116,7 @@ AC_DEFUN([gl_STRING_H_DEFAULTS],
115 HAVE_EXPLICIT_BZERO=1; AC_SUBST([HAVE_EXPLICIT_BZERO]) 116 HAVE_EXPLICIT_BZERO=1; AC_SUBST([HAVE_EXPLICIT_BZERO])
116 HAVE_FFSL=1; AC_SUBST([HAVE_FFSL]) 117 HAVE_FFSL=1; AC_SUBST([HAVE_FFSL])
117 HAVE_FFSLL=1; AC_SUBST([HAVE_FFSLL]) 118 HAVE_FFSLL=1; AC_SUBST([HAVE_FFSLL])
119 HAVE_DECL_MEMEQ=0; AC_SUBST([HAVE_DECL_MEMEQ])
118 HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM]) 120 HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM])
119 HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY]) 121 HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY])
120 HAVE_MEMSET_EXPLICIT=1; AC_SUBST([HAVE_MEMSET_EXPLICIT]) 122 HAVE_MEMSET_EXPLICIT=1; AC_SUBST([HAVE_MEMSET_EXPLICIT])
@@ -124,6 +126,7 @@ AC_DEFUN([gl_STRING_H_DEFAULTS],
124 HAVE_STPNCPY=1; AC_SUBST([HAVE_STPNCPY]) 126 HAVE_STPNCPY=1; AC_SUBST([HAVE_STPNCPY])
125 HAVE_STRCHRNUL=1; AC_SUBST([HAVE_STRCHRNUL]) 127 HAVE_STRCHRNUL=1; AC_SUBST([HAVE_STRCHRNUL])
126 HAVE_DECL_STRDUP=1; AC_SUBST([HAVE_DECL_STRDUP]) 128 HAVE_DECL_STRDUP=1; AC_SUBST([HAVE_DECL_STRDUP])
129 HAVE_DECL_STREQ=0; AC_SUBST([HAVE_DECL_STREQ])
127 HAVE_DECL_STRNDUP=1; AC_SUBST([HAVE_DECL_STRNDUP]) 130 HAVE_DECL_STRNDUP=1; AC_SUBST([HAVE_DECL_STRNDUP])
128 HAVE_DECL_STRNLEN=1; AC_SUBST([HAVE_DECL_STRNLEN]) 131 HAVE_DECL_STRNLEN=1; AC_SUBST([HAVE_DECL_STRNLEN])
129 HAVE_STRPBRK=1; AC_SUBST([HAVE_STRPBRK]) 132 HAVE_STRPBRK=1; AC_SUBST([HAVE_STRPBRK])
diff --git a/gl/m4/stringeq.m4 b/gl/m4/stringeq.m4
new file mode 100644
index 00000000..ffea8afc
--- /dev/null
+++ b/gl/m4/stringeq.m4
@@ -0,0 +1,25 @@
1# stringeq.m4
2# serial 1
3dnl Copyright (C) 2025-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
8
9AC_DEFUN([gl_FUNC_STREQ],
10[
11 AC_REQUIRE([gl_STRING_H_DEFAULTS])
12 AC_CHECK_DECLS_ONCE([streq])
13 if test $ac_cv_have_decl_streq != no; then
14 HAVE_DECL_STREQ=1
15 fi
16])
17
18AC_DEFUN([gl_FUNC_MEMEQ],
19[
20 AC_REQUIRE([gl_STRING_H_DEFAULTS])
21 AC_CHECK_DECLS_ONCE([memeq])
22 if test $ac_cv_have_decl_memeq != no; then
23 HAVE_DECL_MEMEQ=1
24 fi
25])
diff --git a/gl/m4/strings_h.m4 b/gl/m4/strings_h.m4
index 18f30d4a..aec4f715 100644
--- a/gl/m4/strings_h.m4
+++ b/gl/m4/strings_h.m4
@@ -1,6 +1,6 @@
1# strings_h.m4 1# strings_h.m4
2# serial 14 2# serial 14
3dnl Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/strncasecmp.m4 b/gl/m4/strncasecmp.m4
index c7c8b240..4314b603 100644
--- a/gl/m4/strncasecmp.m4
+++ b/gl/m4/strncasecmp.m4
@@ -1,6 +1,6 @@
1# strncasecmp.m4 1# strncasecmp.m4
2# serial 2 2# serial 2
3dnl Copyright (C) 2002-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/strncpy.m4 b/gl/m4/strncpy.m4
index 57876171..b94abede 100644
--- a/gl/m4/strncpy.m4
+++ b/gl/m4/strncpy.m4
@@ -1,6 +1,6 @@
1# strncpy.m4 1# strncpy.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2002-2004, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2004, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/strsep.m4 b/gl/m4/strsep.m4
index b018ff88..6afd34a9 100644
--- a/gl/m4/strsep.m4
+++ b/gl/m4/strsep.m4
@@ -1,6 +1,6 @@
1# strsep.m4 1# strsep.m4
2# serial 11 2# serial 11
3dnl Copyright (C) 2002-2004, 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2004, 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/strstr.m4 b/gl/m4/strstr.m4
index 1b5ef6c1..3a9e9c60 100644
--- a/gl/m4/strstr.m4
+++ b/gl/m4/strstr.m4
@@ -1,6 +1,6 @@
1# strstr.m4 1# strstr.m4
2# serial 25 2# serial 25
3dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -14,8 +14,8 @@ AC_DEFUN([gl_FUNC_STRSTR_SIMPLE],
14 if test $REPLACE_MEMCHR = 1; then 14 if test $REPLACE_MEMCHR = 1; then
15 REPLACE_STRSTR=1 15 REPLACE_STRSTR=1
16 else 16 else
17 dnl Detect https://sourceware.org/bugzilla/show_bug.cgi?id=12092 17 dnl Detect https://sourceware.org/PR12092
18 dnl and https://sourceware.org/bugzilla/show_bug.cgi?id=23637. 18 dnl and https://sourceware.org/PR23637.
19 AC_CACHE_CHECK([whether strstr works], 19 AC_CACHE_CHECK([whether strstr works],
20 [gl_cv_func_strstr_works_always], 20 [gl_cv_func_strstr_works_always],
21 [AC_RUN_IFELSE( 21 [AC_RUN_IFELSE(
diff --git a/gl/m4/sys_cdefs_h.m4 b/gl/m4/sys_cdefs_h.m4
index d72796ca..a1398a29 100644
--- a/gl/m4/sys_cdefs_h.m4
+++ b/gl/m4/sys_cdefs_h.m4
@@ -1,6 +1,6 @@
1# sys_cdefs_h.m4 - Is <sys/cdefs.h> compatible enough with glibc? 1# sys_cdefs_h.m4 - Is <sys/cdefs.h> compatible enough with glibc?
2# serial 2 2# serial 2
3dnl Copyright 2024-2025 Free Software Foundation, Inc. 3dnl Copyright 2024-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/sys_socket_h.m4 b/gl/m4/sys_socket_h.m4
index fb69209b..cdc374e4 100644
--- a/gl/m4/sys_socket_h.m4
+++ b/gl/m4/sys_socket_h.m4
@@ -1,6 +1,6 @@
1# sys_socket_h.m4 1# sys_socket_h.m4
2# serial 31 2# serial 32
3dnl Copyright (C) 2005-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -13,17 +13,6 @@ AC_DEFUN_ONCE([gl_SYS_SOCKET_H],
13 AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS]) 13 AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS])
14 AC_REQUIRE([AC_CANONICAL_HOST]) 14 AC_REQUIRE([AC_CANONICAL_HOST])
15 15
16 dnl On OSF/1, the functions recv(), send(), recvfrom(), sendto() have
17 dnl old-style declarations (with return type 'int' instead of 'ssize_t')
18 dnl unless _POSIX_PII_SOCKET is defined.
19 case "$host_os" in
20 osf*)
21 AC_DEFINE([_POSIX_PII_SOCKET], [1],
22 [Define to 1 in order to get the POSIX compatible declarations
23 of socket functions.])
24 ;;
25 esac
26
27 GL_GENERATE_SYS_SOCKET_H=false 16 GL_GENERATE_SYS_SOCKET_H=false
28 AC_CACHE_CHECK([whether <sys/socket.h> is self-contained], 17 AC_CACHE_CHECK([whether <sys/socket.h> is self-contained],
29 [gl_cv_header_sys_socket_h_selfcontained], 18 [gl_cv_header_sys_socket_h_selfcontained],
diff --git a/gl/m4/sys_stat_h.m4 b/gl/m4/sys_stat_h.m4
index fdcc8954..04dfce7e 100644
--- a/gl/m4/sys_stat_h.m4
+++ b/gl/m4/sys_stat_h.m4
@@ -1,6 +1,6 @@
1# sys_stat_h.m4 1# sys_stat_h.m4
2# serial 42 -*- Autoconf -*- 2# serial 44 -*- Autoconf -*-
3dnl Copyright (C) 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/sys_types_h.m4 b/gl/m4/sys_types_h.m4
index e99fdcc6..b284e08e 100644
--- a/gl/m4/sys_types_h.m4
+++ b/gl/m4/sys_types_h.m4
@@ -1,6 +1,6 @@
1# sys_types_h.m4 1# sys_types_h.m4
2# serial 15 2# serial 15
3dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/sys_uio_h.m4 b/gl/m4/sys_uio_h.m4
index eb0e8424..59496e01 100644
--- a/gl/m4/sys_uio_h.m4
+++ b/gl/m4/sys_uio_h.m4
@@ -1,6 +1,6 @@
1# sys_uio_h.m4 1# sys_uio_h.m4
2# serial 3 2# serial 3
3dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/threadlib.m4 b/gl/m4/threadlib.m4
index 333c8fe0..bdea4b97 100644
--- a/gl/m4/threadlib.m4
+++ b/gl/m4/threadlib.m4
@@ -1,6 +1,6 @@
1# threadlib.m4 1# threadlib.m4
2# serial 45.1 2# serial 49
3dnl Copyright (C) 2005-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -57,16 +57,6 @@ AC_DEFUN([gl_ANYTHREADLIB_EARLY],
57[ 57[
58 AC_REQUIRE([AC_CANONICAL_HOST]) 58 AC_REQUIRE([AC_CANONICAL_HOST])
59 if test -z "$gl_anythreadlib_early_done"; then 59 if test -z "$gl_anythreadlib_early_done"; then
60 AS_CASE([$host_os],
61 [osf*],
62 [# On OSF/1, the compiler needs the flag -D_REENTRANT so that it
63 # groks <pthread.h>. cc also understands the flag -pthread, but
64 # we do not use it because 1. gcc-2.95 does not understand -pthread,
65 # 2. putting a flag into CPPFLAGS that has an effect on the linker
66 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
67 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
68 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
69 ])
70 # Some systems optimize for single-threaded programs by default, and 60 # Some systems optimize for single-threaded programs by default, and
71 # need special flags to disable these optimizations. For example, the 61 # need special flags to disable these optimizations. For example, the
72 # definition of errno in <errno.h>. 62 # definition of errno in <errno.h>.
@@ -190,17 +180,13 @@ AC_DEFUN([gl_PTHREADLIB_BODY],
190 gl_pthread_api=no 180 gl_pthread_api=no
191 LIBPTHREAD= 181 LIBPTHREAD=
192 LIBPMULTITHREAD= 182 LIBPMULTITHREAD=
193 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
194 # it groks <pthread.h>. It is added above, in gl_ANYTHREADLIB_EARLY.
195 AC_CHECK_HEADER([pthread.h], 183 AC_CHECK_HEADER([pthread.h],
196 [gl_have_pthread_h=yes], [gl_have_pthread_h=no]) 184 [gl_have_pthread_h=yes], [gl_have_pthread_h=no])
197 AS_IF([test "$gl_have_pthread_h" = yes], [ 185 AS_IF([test "$gl_have_pthread_h" = yes], [
198 # Other possible tests: 186 # Other possible tests:
199 # -lpthreads (FSU threads, PCthreads) 187 # -lpthreads (FSU threads, PCthreads)
200 # -lgthreads 188 # -lgthreads
201 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 189 # Test whether both pthread_mutex_lock exists in libc.
202 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
203 # the second one only in libpthread, and lock.c needs it.
204 # 190 #
205 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04 191 # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
206 # needs -pthread for some reason. See: 192 # needs -pthread for some reason. See:
@@ -212,10 +198,8 @@ AC_DEFUN([gl_PTHREADLIB_BODY],
212 [AC_LANG_PROGRAM( 198 [AC_LANG_PROGRAM(
213 [[#include <pthread.h> 199 [[#include <pthread.h>
214 pthread_mutex_t m; 200 pthread_mutex_t m;
215 pthread_mutexattr_t ma;
216 ]], 201 ]],
217 [[pthread_mutex_lock (&m); 202 [[pthread_mutex_lock (&m);]])],
218 pthread_mutexattr_init (&ma);]])],
219 [gl_pthread_api=yes 203 [gl_pthread_api=yes
220 LIBPTHREAD=$gl_pthread 204 LIBPTHREAD=$gl_pthread
221 LIBPMULTITHREAD=$gl_pthread]) 205 LIBPMULTITHREAD=$gl_pthread])
@@ -244,8 +228,7 @@ AC_DEFUN([gl_PTHREADLIB_BODY],
244 ]) 228 ])
245 echo "$as_me:__oline__: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&AS_MESSAGE_LOG_FD 229 echo "$as_me:__oline__: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&AS_MESSAGE_LOG_FD
246 230
247 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 231 # Test for libpthread by looking for pthread_kill.
248 # since it is defined as a macro on OSF/1.)
249 AS_IF([test $gl_pthread_api = yes && test -z "$LIBPTHREAD"], [ 232 AS_IF([test $gl_pthread_api = yes && test -z "$LIBPTHREAD"], [
250 # The program links fine without libpthread. But it may actually 233 # The program links fine without libpthread. But it may actually
251 # need to link with libpthread in order to create multiple threads. 234 # need to link with libpthread in order to create multiple threads.
@@ -451,18 +434,19 @@ AC_DEFUN([gl_THREADLIB_EARLY_BODY],
451 dnl gl_use_winpthreads_default defaults to "no", because in mingw 10, like 434 dnl gl_use_winpthreads_default defaults to "no", because in mingw 10, like
452 dnl in mingw 5, the use of libwinpthread still makes test-pthread-tss crash. 435 dnl in mingw 5, the use of libwinpthread still makes test-pthread-tss crash.
453 m4_divert_text([DEFAULTS], [gl_use_winpthreads_default=no]) 436 m4_divert_text([DEFAULTS], [gl_use_winpthreads_default=no])
437 dnl Don't display the --disable-threads option
438 dnl - if the package builds one or more libraries, because libraries must
439 dnl always be multithread-safe (as far as possible),
440 dnl - if the package defines gl_THREADLIB_DEFAULT_NO, because the option
441 dnl would then be a no-op.
454 AC_ARG_ENABLE([threads], 442 AC_ARG_ENABLE([threads],
455AS_HELP_STRING([[--enable-threads={isoc|posix|isoc+posix|windows}]], [specify multithreading API])m4_ifdef([gl_THREADLIB_DEFAULT_NO], [], [ 443AS_HELP_STRING([[--enable-threads={isoc|posix|isoc+posix|windows}]], [specify multithreading API])m4_ifdef([LT_INIT], [], [m4_ifdef([gl_THREADLIB_DEFAULT_NO], [], [
456AS_HELP_STRING([[--disable-threads]], [build without multithread safety])]), 444AS_HELP_STRING([[--disable-threads]], [build without multithread safety])])]),
457 [gl_use_threads=$enableval], 445 [gl_use_threads=$enableval],
458 [if test -n "$gl_use_threads_default"; then 446 [if test -n "$gl_use_threads_default"; then
459 gl_use_threads="$gl_use_threads_default" 447 gl_use_threads="$gl_use_threads_default"
460 else 448 else
461 AS_CASE([$host_os], 449 AS_CASE([$host_os],
462 dnl Disable multithreading by default on OSF/1, because it interferes
463 dnl with fork()/exec(): When msgexec is linked with -lpthread, its
464 dnl child process gets an endless segmentation fault inside execvp().
465 [osf*], [gl_use_threads=no],
466 dnl Disable multithreading by default on Cygwin 1.5.x, because it has 450 dnl Disable multithreading by default on Cygwin 1.5.x, because it has
467 dnl bugs that lead to endless loops or crashes. See 451 dnl bugs that lead to endless loops or crashes. See
468 dnl <https://cygwin.com/ml/cygwin/2009-08/msg00283.html>. 452 dnl <https://cygwin.com/ml/cygwin/2009-08/msg00283.html>.
@@ -665,13 +649,8 @@ dnl
665dnl HP-UX 11 posix -lpthread N (cc) OK 649dnl HP-UX 11 posix -lpthread N (cc) OK
666dnl Y (gcc) 650dnl Y (gcc)
667dnl 651dnl
668dnl IRIX 6.5 posix -lpthread Y 0.5
669dnl
670dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK 652dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK
671dnl 653dnl
672dnl OSF/1 4.0,5.1 posix -pthread (cc) N OK
673dnl -lpthread (gcc) Y
674dnl
675dnl Cygwin posix -lpthread Y OK 654dnl Cygwin posix -lpthread Y OK
676dnl 655dnl
677dnl Mingw windows N OK 656dnl Mingw windows N OK
diff --git a/gl/m4/time_h.m4 b/gl/m4/time_h.m4
index f4d8e20f..8d896ea5 100644
--- a/gl/m4/time_h.m4
+++ b/gl/m4/time_h.m4
@@ -1,6 +1,6 @@
1# time_h.m4 1# time_h.m4
2# serial 27 2# serial 27
3dnl Copyright (C) 2000-2001, 2003-2007, 2009-2025 Free Software Foundation, 3dnl Copyright (C) 2000-2001, 2003-2007, 2009-2026 Free Software Foundation,
4dnl Inc. 4dnl Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/time_r.m4 b/gl/m4/time_r.m4
index 96f5c5b5..59477e3b 100644
--- a/gl/m4/time_r.m4
+++ b/gl/m4/time_r.m4
@@ -1,6 +1,6 @@
1# time_r.m4 1# time_r.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2003, 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003, 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/timegm.m4 b/gl/m4/timegm.m4
index cb6da6da..50a98b25 100644
--- a/gl/m4/timegm.m4
+++ b/gl/m4/timegm.m4
@@ -1,6 +1,6 @@
1# timegm.m4 1# timegm.m4
2# serial 16 2# serial 16
3dnl Copyright (C) 2003, 2007, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003, 2007, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/uchar_h.m4 b/gl/m4/uchar_h.m4
index b2309385..20b63b6c 100644
--- a/gl/m4/uchar_h.m4
+++ b/gl/m4/uchar_h.m4
@@ -1,6 +1,6 @@
1# uchar_h.m4 1# uchar_h.m4
2# serial 32 2# serial 32
3dnl Copyright (C) 2019-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2019-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/ungetc.m4 b/gl/m4/ungetc.m4
index 969b60e8..299c43f2 100644
--- a/gl/m4/ungetc.m4
+++ b/gl/m4/ungetc.m4
@@ -1,6 +1,6 @@
1# ungetc.m4 1# ungetc.m4
2# serial 12 2# serial 12
3dnl Copyright (C) 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/unicase_h.m4 b/gl/m4/unicase_h.m4
index bf5d4c2e..71dccf06 100644
--- a/gl/m4/unicase_h.m4
+++ b/gl/m4/unicase_h.m4
@@ -1,6 +1,6 @@
1# unicase_h.m4 1# unicase_h.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2023-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2023-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/unictype_h.m4 b/gl/m4/unictype_h.m4
index 68ddaf6c..ba5a3688 100644
--- a/gl/m4/unictype_h.m4
+++ b/gl/m4/unictype_h.m4
@@ -1,6 +1,6 @@
1# unictype_h.m4 1# unictype_h.m4
2# serial 4 2# serial 4
3dnl Copyright (C) 2023-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2023-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/uninorm_h.m4 b/gl/m4/uninorm_h.m4
index d416f73b..5ec9ea67 100644
--- a/gl/m4/uninorm_h.m4
+++ b/gl/m4/uninorm_h.m4
@@ -1,6 +1,6 @@
1# uninorm_h.m4 1# uninorm_h.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2023-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2023-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/unistd_h.m4 b/gl/m4/unistd_h.m4
index 6ec16286..8000e888 100644
--- a/gl/m4/unistd_h.m4
+++ b/gl/m4/unistd_h.m4
@@ -1,6 +1,6 @@
1# unistd_h.m4 1# unistd_h.m4
2# serial 97 2# serial 97
3dnl Copyright (C) 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/unitypes_h.m4 b/gl/m4/unitypes_h.m4
index 264e61be..733b9ee2 100644
--- a/gl/m4/unitypes_h.m4
+++ b/gl/m4/unitypes_h.m4
@@ -1,6 +1,6 @@
1# unitypes_h.m4 1# unitypes_h.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2021-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2021-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/unlocked-io.m4 b/gl/m4/unlocked-io.m4
index 97f43f4b..16ab6e9a 100644
--- a/gl/m4/unlocked-io.m4
+++ b/gl/m4/unlocked-io.m4
@@ -1,6 +1,6 @@
1# unlocked-io.m4 1# unlocked-io.m4
2# serial 16 2# serial 17
3dnl Copyright (C) 1998-2006, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 1998-2006, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -25,6 +25,7 @@ AC_DEFUN([gl_FUNC_GLIBC_UNLOCKED_IO],
25 AC_CHECK_DECLS_ONCE([ferror_unlocked]) 25 AC_CHECK_DECLS_ONCE([ferror_unlocked])
26 AC_CHECK_DECLS_ONCE([fflush_unlocked]) 26 AC_CHECK_DECLS_ONCE([fflush_unlocked])
27 AC_CHECK_DECLS_ONCE([fgets_unlocked]) 27 AC_CHECK_DECLS_ONCE([fgets_unlocked])
28 AC_CHECK_DECLS_ONCE([fileno_unlocked])
28 AC_CHECK_DECLS_ONCE([fputc_unlocked]) 29 AC_CHECK_DECLS_ONCE([fputc_unlocked])
29 AC_CHECK_DECLS_ONCE([fputs_unlocked]) 30 AC_CHECK_DECLS_ONCE([fputs_unlocked])
30 AC_CHECK_DECLS_ONCE([fread_unlocked]) 31 AC_CHECK_DECLS_ONCE([fread_unlocked])
diff --git a/gl/m4/vararrays.m4 b/gl/m4/vararrays.m4
index 086e409f..3dd8e68f 100644
--- a/gl/m4/vararrays.m4
+++ b/gl/m4/vararrays.m4
@@ -1,6 +1,6 @@
1# vararrays.m4 1# vararrays.m4
2# serial 6 2# serial 6
3dnl Copyright (C) 2001, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2001, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/vasnprintf.m4 b/gl/m4/vasnprintf.m4
index 1d040d6e..4e01fbc9 100644
--- a/gl/m4/vasnprintf.m4
+++ b/gl/m4/vasnprintf.m4
@@ -1,6 +1,6 @@
1# vasnprintf.m4 1# vasnprintf.m4
2# serial 56 2# serial 56
3dnl Copyright (C) 2002-2004, 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2004, 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/vasprintf.m4 b/gl/m4/vasprintf.m4
index 6ea602bd..3e6913e2 100644
--- a/gl/m4/vasprintf.m4
+++ b/gl/m4/vasprintf.m4
@@ -1,6 +1,6 @@
1# vasprintf.m4 1# vasprintf.m4
2# serial 6 2# serial 6
3dnl Copyright (C) 2002-2003, 2006-2007, 2009-2025 Free Software Foundation, 3dnl Copyright (C) 2002-2003, 2006-2007, 2009-2026 Free Software Foundation,
4dnl Inc. 4dnl Inc.
5dnl This file is free software; the Free Software Foundation 5dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 6dnl gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/visibility.m4 b/gl/m4/visibility.m4
index c2cd38d0..55ceb672 100644
--- a/gl/m4/visibility.m4
+++ b/gl/m4/visibility.m4
@@ -1,6 +1,6 @@
1# visibility.m4 1# visibility.m4
2# serial 9 2# serial 9
3dnl Copyright (C) 2005, 2008, 2010-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2005, 2008, 2010-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/vsnprintf.m4 b/gl/m4/vsnprintf.m4
index 68ab757d..df767486 100644
--- a/gl/m4/vsnprintf.m4
+++ b/gl/m4/vsnprintf.m4
@@ -1,6 +1,6 @@
1# vsnprintf.m4 1# vsnprintf.m4
2# serial 7 2# serial 7
3dnl Copyright (C) 2002-2004, 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2004, 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/warn-on-use.m4 b/gl/m4/warn-on-use.m4
index 73cf16fb..3765368c 100644
--- a/gl/m4/warn-on-use.m4
+++ b/gl/m4/warn-on-use.m4
@@ -1,6 +1,6 @@
1# warn-on-use.m4 1# warn-on-use.m4
2# serial 11 2# serial 11
3dnl Copyright (C) 2010-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2010-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/wchar_h.m4 b/gl/m4/wchar_h.m4
index 722fcfc2..42338a00 100644
--- a/gl/m4/wchar_h.m4
+++ b/gl/m4/wchar_h.m4
@@ -1,6 +1,6 @@
1# wchar_h.m4 1# wchar_h.m4
2# serial 65 2# serial 66
3dnl Copyright (C) 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -65,8 +65,8 @@ dnl Check whether <wchar.h> is usable at all.
65AC_DEFUN([gl_WCHAR_H_INLINE_OK], 65AC_DEFUN([gl_WCHAR_H_INLINE_OK],
66[ 66[
67 dnl Test whether <wchar.h> suffers due to the transition from '__inline' to 67 dnl Test whether <wchar.h> suffers due to the transition from '__inline' to
68 dnl 'gnu_inline'. See <https://sourceware.org/bugzilla/show_bug.cgi?id=4022> 68 dnl 'gnu_inline'. See <https://sourceware.org/PR4022>
69 dnl and <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42440>. In summary, 69 dnl and <https://gcc.gnu.org/PR42440>. In summary,
70 dnl glibc version 2.5 or older, together with gcc version 4.3 or newer and 70 dnl glibc version 2.5 or older, together with gcc version 4.3 or newer and
71 dnl the option -std=c99 or -std=gnu99, leads to a broken <wchar.h>. 71 dnl the option -std=c99 or -std=gnu99, leads to a broken <wchar.h>.
72 AC_REQUIRE([AC_CANONICAL_HOST]) 72 AC_REQUIRE([AC_CANONICAL_HOST])
@@ -239,7 +239,7 @@ AC_DEFUN([gl_WCHAR_H_DEFAULTS],
239 HAVE_WCSTOK=1; AC_SUBST([HAVE_WCSTOK]) 239 HAVE_WCSTOK=1; AC_SUBST([HAVE_WCSTOK])
240 HAVE_WCSWIDTH=1; AC_SUBST([HAVE_WCSWIDTH]) 240 HAVE_WCSWIDTH=1; AC_SUBST([HAVE_WCSWIDTH])
241 HAVE_WCSFTIME=1; AC_SUBST([HAVE_WCSFTIME]) 241 HAVE_WCSFTIME=1; AC_SUBST([HAVE_WCSFTIME])
242 HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB]) 242 HAVE_WCTOB=1; AC_SUBST([HAVE_WCTOB])
243 HAVE_DECL_WCSDUP=1; AC_SUBST([HAVE_DECL_WCSDUP]) 243 HAVE_DECL_WCSDUP=1; AC_SUBST([HAVE_DECL_WCSDUP])
244 HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH]) 244 HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH])
245 REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T]) 245 REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T])
diff --git a/gl/m4/wcrtomb.m4 b/gl/m4/wcrtomb.m4
index 91530176..a69f17c4 100644
--- a/gl/m4/wcrtomb.m4
+++ b/gl/m4/wcrtomb.m4
@@ -1,6 +1,6 @@
1# wcrtomb.m4 1# wcrtomb.m4
2# serial 21 2# serial 22
3dnl Copyright (C) 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -33,7 +33,7 @@ AC_DEFUN([gl_FUNC_WCRTOMB],
33 dnl fi 33 dnl fi
34 if test $REPLACE_WCRTOMB = 0; then 34 if test $REPLACE_WCRTOMB = 0; then
35 dnl On Android 4.3, wcrtomb produces wrong characters in the C locale. 35 dnl On Android 4.3, wcrtomb produces wrong characters in the C locale.
36 dnl On AIX 4.3, OSF/1 5.1 and Solaris <= 11.3, wcrtomb (NULL, 0, NULL) 36 dnl On AIX 4.3 and Solaris <= 11.3, wcrtomb (NULL, 0, NULL)
37 dnl sometimes returns 0 instead of 1. 37 dnl sometimes returns 0 instead of 1.
38 AC_REQUIRE([AC_PROG_CC]) 38 AC_REQUIRE([AC_PROG_CC])
39 AC_REQUIRE([gt_LOCALE_FR]) 39 AC_REQUIRE([gt_LOCALE_FR])
@@ -83,8 +83,8 @@ int main ()
83 dnl is present. 83 dnl is present.
84changequote(,)dnl 84changequote(,)dnl
85 case "$host_os" in 85 case "$host_os" in
86 # Guess no on AIX 4, OSF/1, Solaris, native Windows. 86 # Guess no on AIX 4, Solaris, native Windows.
87 aix4* | osf* | solaris* | mingw* | windows*) 87 aix4* | solaris* | mingw* | windows*)
88 gl_cv_func_wcrtomb_retval="guessing no" ;; 88 gl_cv_func_wcrtomb_retval="guessing no" ;;
89 # Guess yes otherwise. 89 # Guess yes otherwise.
90 *) 90 *)
diff --git a/gl/m4/wctype.m4 b/gl/m4/wctype.m4
index 56593cd5..6a6cb3a4 100644
--- a/gl/m4/wctype.m4
+++ b/gl/m4/wctype.m4
@@ -1,6 +1,6 @@
1# wctype.m4 1# wctype.m4
2# serial 6 2# serial 6
3dnl Copyright (C) 2011-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2011-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/wctype_h.m4 b/gl/m4/wctype_h.m4
index 8e54678d..12b4c618 100644
--- a/gl/m4/wctype_h.m4
+++ b/gl/m4/wctype_h.m4
@@ -3,7 +3,7 @@
3 3
4dnl A placeholder for ISO C99 <wctype.h>, for platforms that lack it. 4dnl A placeholder for ISO C99 <wctype.h>, for platforms that lack it.
5 5
6dnl Copyright (C) 2006-2025 Free Software Foundation, Inc. 6dnl Copyright (C) 2006-2026 Free Software Foundation, Inc.
7dnl This file is free software; the Free Software Foundation 7dnl This file is free software; the Free Software Foundation
8dnl gives unlimited permission to copy and/or distribute it, 8dnl gives unlimited permission to copy and/or distribute it,
9dnl with or without modifications, as long as this notice is preserved. 9dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/wcwidth.m4 b/gl/m4/wcwidth.m4
index 2cc6ebb1..515076ba 100644
--- a/gl/m4/wcwidth.m4
+++ b/gl/m4/wcwidth.m4
@@ -1,6 +1,6 @@
1# wcwidth.m4 1# wcwidth.m4
2# serial 38 2# serial 39
3dnl Copyright (C) 2006-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
@@ -44,7 +44,7 @@ AC_DEFUN([gl_FUNC_WCWIDTH],
44 dnl On Mac OS X 10.3, wcwidth(0x0301) (COMBINING ACUTE ACCENT) returns 1. 44 dnl On Mac OS X 10.3, wcwidth(0x0301) (COMBINING ACUTE ACCENT) returns 1.
45 dnl On macOS 12.5, NetBSD 9.3, OpenBSD 5.0, MidnightBSD 1.1, 45 dnl On macOS 12.5, NetBSD 9.3, OpenBSD 5.0, MidnightBSD 1.1,
46 dnl wcwidth(0x05B0) (HEBREW POINT SHEVA) returns 1. 46 dnl wcwidth(0x05B0) (HEBREW POINT SHEVA) returns 1.
47 dnl On macOS 12.5, NetBSD 9.3, MidnightBSD 1.1, OSF/1 5.1, 47 dnl On macOS 12.5, NetBSD 9.3, MidnightBSD 1.1,
48 dnl wcwidth(0x200B) (ZERO WIDTH SPACE) returns 1. 48 dnl wcwidth(0x200B) (ZERO WIDTH SPACE) returns 1.
49 dnl On OpenBSD 5.8, wcwidth(0xFF1A) (FULLWIDTH COLON) returns 0. 49 dnl On OpenBSD 5.8, wcwidth(0xFF1A) (FULLWIDTH COLON) returns 0.
50 dnl This leads to bugs in 'ls' (coreutils). 50 dnl This leads to bugs in 'ls' (coreutils).
diff --git a/gl/m4/wint_t.m4 b/gl/m4/wint_t.m4
index 8a3c7944..384462d2 100644
--- a/gl/m4/wint_t.m4
+++ b/gl/m4/wint_t.m4
@@ -1,6 +1,6 @@
1# wint_t.m4 1# wint_t.m4
2# serial 11 2# serial 11
3dnl Copyright (C) 2003, 2007-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003, 2007-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/xalloc.m4 b/gl/m4/xalloc.m4
index c10c4189..a0d0f060 100644
--- a/gl/m4/xalloc.m4
+++ b/gl/m4/xalloc.m4
@@ -1,6 +1,6 @@
1# xalloc.m4 1# xalloc.m4
2# serial 18 2# serial 18
3dnl Copyright (C) 2002-2006, 2009-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2006, 2009-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/xsize.m4 b/gl/m4/xsize.m4
index 157d635c..4e35a5fe 100644
--- a/gl/m4/xsize.m4
+++ b/gl/m4/xsize.m4
@@ -1,6 +1,6 @@
1# xsize.m4 1# xsize.m4
2# serial 5 2# serial 5
3dnl Copyright (C) 2003-2004, 2008-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2003-2004, 2008-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/zzgnulib.m4 b/gl/m4/zzgnulib.m4
index 343bda5c..fed091ca 100644
--- a/gl/m4/zzgnulib.m4
+++ b/gl/m4/zzgnulib.m4
@@ -1,6 +1,6 @@
1# zzgnulib.m4 1# zzgnulib.m4
2# serial 1 2# serial 1
3dnl Copyright (C) 2020-2025 Free Software Foundation, Inc. 3dnl Copyright (C) 2020-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.