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.m412
-rw-r--r--gl/m4/arpa_inet_h.m42
-rw-r--r--gl/m4/base64.m42
-rw-r--r--gl/m4/btowc.m42
-rw-r--r--gl/m4/builtin-expect.m42
-rw-r--r--gl/m4/byteswap.m410
-rw-r--r--gl/m4/calloc.m413
-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/eealloc.m42
-rw-r--r--gl/m4/environ.m42
-rw-r--r--gl/m4/errno_h.m412
-rw-r--r--gl/m4/error.m42
-rw-r--r--gl/m4/exponentd.m42
-rw-r--r--gl/m4/extensions.m42
-rw-r--r--gl/m4/extern-inline.m421
-rw-r--r--gl/m4/fcntl-o.m42
-rw-r--r--gl/m4/fcntl.m42
-rw-r--r--gl/m4/fcntl_h.m42
-rw-r--r--gl/m4/fflush.m42
-rw-r--r--gl/m4/float_h.m422
-rw-r--r--gl/m4/floorf.m42
-rw-r--r--gl/m4/fopen.m49
-rw-r--r--gl/m4/fpurge.m42
-rw-r--r--gl/m4/freading.m42
-rw-r--r--gl/m4/free.m42
-rw-r--r--gl/m4/fseek.m42
-rw-r--r--gl/m4/fseeko.m42
-rw-r--r--gl/m4/fstat.m42
-rw-r--r--gl/m4/fstypename.m42
-rw-r--r--gl/m4/fsusage.m42
-rw-r--r--gl/m4/ftell.m42
-rw-r--r--gl/m4/ftello.m42
-rw-r--r--gl/m4/getaddrinfo.m42
-rw-r--r--gl/m4/getdelim.m42
-rw-r--r--gl/m4/getdtablesize.m42
-rw-r--r--gl/m4/gethostname.m42
-rw-r--r--gl/m4/getline.m42
-rw-r--r--gl/m4/getloadavg.m42
-rw-r--r--gl/m4/getopt.m412
-rw-r--r--gl/m4/getprogname.m42
-rw-r--r--gl/m4/gettext.m42
-rw-r--r--gl/m4/gl-openssl.m42
-rw-r--r--gl/m4/gnulib-cache.m44
-rw-r--r--gl/m4/gnulib-common.m4133
-rw-r--r--gl/m4/gnulib-comp.m4438
-rw-r--r--gl/m4/gnulib-tool.m410
-rw-r--r--gl/m4/host-cpu-c-abi.m47
-rw-r--r--gl/m4/hostent.m42
-rw-r--r--gl/m4/iconv.m426
-rw-r--r--gl/m4/idpriv.m42
-rw-r--r--gl/m4/include_next.m48
-rw-r--r--gl/m4/inet_ntop.m42
-rw-r--r--gl/m4/intl-thread-locale.m42
-rw-r--r--gl/m4/intlmacosx.m42
-rw-r--r--gl/m4/intmax_t.m42
-rw-r--r--gl/m4/inttypes.m46
-rw-r--r--gl/m4/inttypes_h.m42
-rw-r--r--gl/m4/langinfo_h.m42
-rw-r--r--gl/m4/largefile.m49
-rw-r--r--gl/m4/lib-ld.m42
-rw-r--r--gl/m4/lib-link.m48
-rw-r--r--gl/m4/lib-prefix.m46
-rw-r--r--gl/m4/limits-h.m411
-rw-r--r--gl/m4/localcharset.m42
-rw-r--r--gl/m4/locale-fr.m42
-rw-r--r--gl/m4/locale-ja.m42
-rw-r--r--gl/m4/locale-zh.m42
-rw-r--r--gl/m4/locale_h.m42
-rw-r--r--gl/m4/localeconv.m42
-rw-r--r--gl/m4/lock.m42
-rw-r--r--gl/m4/lseek.m42
-rw-r--r--gl/m4/malloc.m413
-rw-r--r--gl/m4/malloca.m42
-rw-r--r--gl/m4/math_h.m42
-rw-r--r--gl/m4/mbrtowc.m42
-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.m42
-rw-r--r--gl/m4/minmax.m42
-rw-r--r--gl/m4/mktime.m431
-rw-r--r--gl/m4/mmap-anon.m42
-rw-r--r--gl/m4/mode_t.m42
-rw-r--r--gl/m4/mountlist.m42
-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/netdb_h.m42
-rw-r--r--gl/m4/netinet_in_h.m410
-rw-r--r--gl/m4/nl_langinfo.m42
-rw-r--r--gl/m4/nls.m42
-rw-r--r--gl/m4/nocrash.m42
-rw-r--r--gl/m4/off_t.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/po.m42
-rw-r--r--gl/m4/printf.m42
-rw-r--r--gl/m4/progtest.m42
-rw-r--r--gl/m4/pthread_rwlock_rdlock.m42
-rw-r--r--gl/m4/realloc.m412
-rw-r--r--gl/m4/reallocarray.m42
-rw-r--r--gl/m4/regex.m42
-rw-r--r--gl/m4/servent.m42
-rw-r--r--gl/m4/setenv.m42
-rw-r--r--gl/m4/setlocale_null.m42
-rw-r--r--gl/m4/sha1.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.m42
-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.m42
-rw-r--r--gl/m4/stdalign.m49
-rw-r--r--gl/m4/stdbool.m4124
-rw-r--r--gl/m4/stddef_h.m416
-rw-r--r--gl/m4/stdint.m410
-rw-r--r--gl/m4/stdint_h.m42
-rw-r--r--gl/m4/stdio_h.m433
-rw-r--r--gl/m4/stdlib_h.m416
-rw-r--r--gl/m4/strcase.m42
-rw-r--r--gl/m4/strcasestr.m42
-rw-r--r--gl/m4/strerror.m46
-rw-r--r--gl/m4/string_h.m42
-rw-r--r--gl/m4/strings_h.m42
-rw-r--r--gl/m4/strsep.m42
-rw-r--r--gl/m4/strstr.m42
-rw-r--r--gl/m4/sys_socket_h.m49
-rw-r--r--gl/m4/sys_stat_h.m48
-rw-r--r--gl/m4/sys_types_h.m42
-rw-r--r--gl/m4/sys_uio_h.m42
-rw-r--r--gl/m4/threadlib.m42
-rw-r--r--gl/m4/time_h.m46
-rw-r--r--gl/m4/time_r.m42
-rw-r--r--gl/m4/timegm.m42
-rw-r--r--gl/m4/ungetc.m42
-rw-r--r--gl/m4/unistd_h.m4191
-rw-r--r--gl/m4/unlocked-io.m42
-rw-r--r--gl/m4/vararrays.m472
-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.m42
-rw-r--r--gl/m4/wchar_t.m42
-rw-r--r--gl/m4/wcrtomb.m42
-rw-r--r--gl/m4/wctype_h.m42
-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/year2038.m412
-rw-r--r--gl/m4/zzgnulib.m42
166 files changed, 966 insertions, 647 deletions
diff --git a/gl/m4/00gnulib.m4 b/gl/m4/00gnulib.m4
index 9ba1743..dea34e8 100644
--- a/gl/m4/00gnulib.m4
+++ b/gl/m4/00gnulib.m4
@@ -1,5 +1,5 @@
1# 00gnulib.m4 serial 8 1# 00gnulib.m4 serial 8
2dnl Copyright (C) 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/__inline.m4 b/gl/m4/__inline.m4
index b28cc6a..fbe2098 100644
--- a/gl/m4/__inline.m4
+++ b/gl/m4/__inline.m4
@@ -1,5 +1,5 @@
1# Test for __inline keyword 1# Test for __inline keyword
2dnl Copyright 2017-2021 Free Software Foundation, Inc. 2dnl Copyright 2017-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 52d80d0..67d6507 100644
--- a/gl/m4/absolute-header.m4
+++ b/gl/m4/absolute-header.m4
@@ -1,5 +1,5 @@
1# absolute-header.m4 serial 17 1# absolute-header.m4 serial 17
2dnl Copyright (C) 2006-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 601cf67..9c7edf0 100644
--- a/gl/m4/af_alg.m4
+++ b/gl/m4/af_alg.m4
@@ -1,5 +1,5 @@
1# af_alg.m4 serial 6 1# af_alg.m4 serial 6
2dnl Copyright 2018-2021 Free Software Foundation, Inc. 2dnl Copyright 2018-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/alloca.m4 b/gl/m4/alloca.m4
index ba2f679..dc6f47e 100644
--- a/gl/m4/alloca.m4
+++ b/gl/m4/alloca.m4
@@ -1,5 +1,5 @@
1# alloca.m4 serial 20 1# alloca.m4 serial 21
2dnl Copyright (C) 2002-2004, 2006-2007, 2009-2021 Free Software Foundation, 2dnl Copyright (C) 2002-2004, 2006-2007, 2009-2022 Free Software Foundation,
3dnl Inc. 3dnl 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,
@@ -26,17 +26,15 @@ AC_DEFUN([gl_FUNC_ALLOCA],
26 AC_DEFINE([HAVE_ALLOCA], [1], 26 AC_DEFINE([HAVE_ALLOCA], [1],
27 [Define to 1 if you have 'alloca' after including <alloca.h>, 27 [Define to 1 if you have 'alloca' after including <alloca.h>,
28 a header that may be supplied by this distribution.]) 28 a header that may be supplied by this distribution.])
29 ALLOCA_H=alloca.h 29 GL_GENERATE_ALLOCA_H=true
30 else 30 else
31 dnl alloca exists as a library function, i.e. it is slow and probably 31 dnl alloca exists as a library function, i.e. it is slow and probably
32 dnl a memory leak. Don't define HAVE_ALLOCA in this case. 32 dnl a memory leak. Don't define HAVE_ALLOCA in this case.
33 ALLOCA_H= 33 GL_GENERATE_ALLOCA_H=false
34 fi 34 fi
35 else 35 else
36 ALLOCA_H=alloca.h 36 GL_GENERATE_ALLOCA_H=true
37 fi 37 fi
38 AC_SUBST([ALLOCA_H])
39 AM_CONDITIONAL([GL_GENERATE_ALLOCA_H], [test -n "$ALLOCA_H"])
40 38
41 if test $ac_cv_working_alloca_h = yes; then 39 if test $ac_cv_working_alloca_h = yes; then
42 HAVE_ALLOCA_H=1 40 HAVE_ALLOCA_H=1
diff --git a/gl/m4/arpa_inet_h.m4 b/gl/m4/arpa_inet_h.m4
index a3ba256..057e13f 100644
--- a/gl/m4/arpa_inet_h.m4
+++ b/gl/m4/arpa_inet_h.m4
@@ -1,5 +1,5 @@
1# arpa_inet_h.m4 serial 17 1# arpa_inet_h.m4 serial 17
2dnl Copyright (C) 2006, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2006, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/base64.m4 b/gl/m4/base64.m4
index ab95081..fed3398 100644
--- a/gl/m4/base64.m4
+++ b/gl/m4/base64.m4
@@ -1,5 +1,5 @@
1# base64.m4 serial 4 1# base64.m4 serial 4
2dnl Copyright (C) 2004, 2006, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2004, 2006, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/btowc.m4 b/gl/m4/btowc.m4
index d2b2fe8..45a61f5 100644
--- a/gl/m4/btowc.m4
+++ b/gl/m4/btowc.m4
@@ -1,5 +1,5 @@
1# btowc.m4 serial 12 1# btowc.m4 serial 12
2dnl Copyright (C) 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 c584116..b1fb12a 100644
--- a/gl/m4/builtin-expect.m4
+++ b/gl/m4/builtin-expect.m4
@@ -1,6 +1,6 @@
1dnl Check for __builtin_expect. 1dnl Check for __builtin_expect.
2 2
3dnl Copyright 2016-2021 Free Software Foundation, Inc. 3dnl Copyright 2016-2022 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 1083b4c..99aeb68 100644
--- a/gl/m4/byteswap.m4
+++ b/gl/m4/byteswap.m4
@@ -1,5 +1,5 @@
1# byteswap.m4 serial 4 1# byteswap.m4 serial 5
2dnl Copyright (C) 2005, 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -10,10 +10,8 @@ AC_DEFUN([gl_BYTESWAP],
10[ 10[
11 dnl Prerequisites of lib/byteswap.in.h. 11 dnl Prerequisites of lib/byteswap.in.h.
12 AC_CHECK_HEADERS([byteswap.h], [ 12 AC_CHECK_HEADERS([byteswap.h], [
13 BYTESWAP_H='' 13 GL_GENERATE_BYTESWAP_H=false
14 ], [ 14 ], [
15 BYTESWAP_H='byteswap.h' 15 GL_GENERATE_BYTESWAP_H=true
16 ]) 16 ])
17 AC_SUBST([BYTESWAP_H])
18 AM_CONDITIONAL([GL_GENERATE_BYTESWAP_H], [test -n "$BYTESWAP_H"])
19]) 17])
diff --git a/gl/m4/calloc.m4 b/gl/m4/calloc.m4
index fe12b15..c01520e 100644
--- a/gl/m4/calloc.m4
+++ b/gl/m4/calloc.m4
@@ -1,6 +1,6 @@
1# calloc.m4 serial 27 1# calloc.m4 serial 29
2 2
3# Copyright (C) 2004-2021 Free Software Foundation, Inc. 3# Copyright (C) 2004-2022 Free Software Foundation, Inc.
4# This file is free software; the Free Software Foundation 4# This file is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it, 5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved. 6# with or without modifications, as long as this notice is preserved.
@@ -58,8 +58,9 @@ AC_DEFUN([gl_FUNC_CALLOC_GNU],
58[ 58[
59 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 59 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
60 AC_REQUIRE([gl_FUNC_CALLOC_POSIX]) 60 AC_REQUIRE([gl_FUNC_CALLOC_POSIX])
61 if test $REPLACE_CALLOC = 0; then 61 REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX"
62 _AC_FUNC_CALLOC_IF([], [REPLACE_CALLOC=1]) 62 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then
63 _AC_FUNC_CALLOC_IF([], [REPLACE_CALLOC_FOR_CALLOC_GNU=1])
63 fi 64 fi
64])# gl_FUNC_CALLOC_GNU 65])# gl_FUNC_CALLOC_GNU
65 66
@@ -72,8 +73,8 @@ AC_DEFUN([gl_FUNC_CALLOC_POSIX],
72[ 73[
73 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 74 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
74 AC_REQUIRE([gl_FUNC_MALLOC_POSIX]) 75 AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
75 if test $REPLACE_MALLOC = 1; then 76 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
76 REPLACE_CALLOC=1 77 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
77 fi 78 fi
78 dnl Although in theory we should also test for size_t overflow, 79 dnl Although in theory we should also test for size_t overflow,
79 dnl in practice testing for ptrdiff_t overflow suffices 80 dnl in practice testing for ptrdiff_t overflow suffices
diff --git a/gl/m4/close.m4 b/gl/m4/close.m4
index 77a5047..f95dbc9 100644
--- a/gl/m4/close.m4
+++ b/gl/m4/close.m4
@@ -1,5 +1,5 @@
1# close.m4 serial 9 1# close.m4 serial 9
2dnl Copyright (C) 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/codeset.m4 b/gl/m4/codeset.m4
index 629f4ee..eb73260 100644
--- a/gl/m4/codeset.m4
+++ b/gl/m4/codeset.m4
@@ -1,5 +1,5 @@
1# codeset.m4 serial 5 (gettext-0.18.2) 1# codeset.m4 serial 5 (gettext-0.18.2)
2dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016, 2019-2021 Free Software 2dnl Copyright (C) 2000-2002, 2006, 2008-2014, 2016, 2019-2022 Free Software
3dnl Foundation, Inc. 3dnl 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,
diff --git a/gl/m4/double-slash-root.m4 b/gl/m4/double-slash-root.m4
index c9bbcef..09ff5f0 100644
--- a/gl/m4/double-slash-root.m4
+++ b/gl/m4/double-slash-root.m4
@@ -1,5 +1,5 @@
1# double-slash-root.m4 serial 4 -*- Autoconf -*- 1# double-slash-root.m4 serial 4 -*- Autoconf -*-
2dnl Copyright (C) 2006, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2006, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/dup2.m4 b/gl/m4/dup2.m4
index 0753a32..7e777cd 100644
--- a/gl/m4/dup2.m4
+++ b/gl/m4/dup2.m4
@@ -1,5 +1,5 @@
1#serial 27 1#serial 27
2dnl Copyright (C) 2002, 2005, 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002, 2005, 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/eealloc.m4 b/gl/m4/eealloc.m4
index 002f0c8..a6aa2f8 100644
--- a/gl/m4/eealloc.m4
+++ b/gl/m4/eealloc.m4
@@ -1,5 +1,5 @@
1# eealloc.m4 serial 3 1# eealloc.m4 serial 3
2dnl Copyright (C) 2003, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2003, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/environ.m4 b/gl/m4/environ.m4
index ae53291..583dac3 100644
--- a/gl/m4/environ.m4
+++ b/gl/m4/environ.m4
@@ -1,5 +1,5 @@
1# environ.m4 serial 8 1# environ.m4 serial 8
2dnl Copyright (C) 2001-2004, 2006-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2001-2004, 2006-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 51dfe92..4be9780 100644
--- a/gl/m4/errno_h.m4
+++ b/gl/m4/errno_h.m4
@@ -1,5 +1,5 @@
1# errno_h.m4 serial 13 1# errno_h.m4 serial 14
2dnl Copyright (C) 2004, 2006, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2004, 2006, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -68,13 +68,11 @@ booboo
68 [gl_cv_header_errno_h_complete=yes]) 68 [gl_cv_header_errno_h_complete=yes])
69 ]) 69 ])
70 if test $gl_cv_header_errno_h_complete = yes; then 70 if test $gl_cv_header_errno_h_complete = yes; then
71 ERRNO_H='' 71 GL_GENERATE_ERRNO_H=false
72 else 72 else
73 gl_NEXT_HEADERS([errno.h]) 73 gl_NEXT_HEADERS([errno.h])
74 ERRNO_H='errno.h' 74 GL_GENERATE_ERRNO_H=true
75 fi 75 fi
76 AC_SUBST([ERRNO_H])
77 AM_CONDITIONAL([GL_GENERATE_ERRNO_H], [test -n "$ERRNO_H"])
78 gl_REPLACE_ERRNO_VALUE([EMULTIHOP]) 76 gl_REPLACE_ERRNO_VALUE([EMULTIHOP])
79 gl_REPLACE_ERRNO_VALUE([ENOLINK]) 77 gl_REPLACE_ERRNO_VALUE([ENOLINK])
80 gl_REPLACE_ERRNO_VALUE([EOVERFLOW]) 78 gl_REPLACE_ERRNO_VALUE([EOVERFLOW])
@@ -88,7 +86,7 @@ booboo
88# Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE. 86# Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE.
89AC_DEFUN([gl_REPLACE_ERRNO_VALUE], 87AC_DEFUN([gl_REPLACE_ERRNO_VALUE],
90[ 88[
91 if test -n "$ERRNO_H"; then 89 if $GL_GENERATE_ERRNO_H; then
92 AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [ 90 AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [
93 AC_EGREP_CPP([yes],[ 91 AC_EGREP_CPP([yes],[
94#include <errno.h> 92#include <errno.h>
diff --git a/gl/m4/error.m4 b/gl/m4/error.m4
index 8e3cf95..7a10344 100644
--- a/gl/m4/error.m4
+++ b/gl/m4/error.m4
@@ -1,6 +1,6 @@
1#serial 15 1#serial 15
2 2
3# Copyright (C) 1996-1998, 2001-2004, 2009-2021 Free Software Foundation, Inc. 3# Copyright (C) 1996-1998, 2001-2004, 2009-2022 Free Software Foundation, Inc.
4# 4#
5# This file is free software; the Free Software Foundation 5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it, 6# gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/exponentd.m4 b/gl/m4/exponentd.m4
index fb136f4..83ac08b 100644
--- a/gl/m4/exponentd.m4
+++ b/gl/m4/exponentd.m4
@@ -1,5 +1,5 @@
1# exponentd.m4 serial 3 1# exponentd.m4 serial 3
2dnl Copyright (C) 2007-2008, 2010-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2008, 2010-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/extensions.m4 b/gl/m4/extensions.m4
index 5792a95..0b3e4b5 100644
--- a/gl/m4/extensions.m4
+++ b/gl/m4/extensions.m4
@@ -1,7 +1,7 @@
1# serial 22 -*- Autoconf -*- 1# serial 22 -*- Autoconf -*-
2# Enable extensions on systems that normally disable them. 2# Enable extensions on systems that normally disable them.
3 3
4# Copyright (C) 2003, 2006-2021 Free Software Foundation, Inc. 4# Copyright (C) 2003, 2006-2022 Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation 5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it, 6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved. 7# 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 a4ac5ea..8a12bdd 100644
--- a/gl/m4/extern-inline.m4
+++ b/gl/m4/extern-inline.m4
@@ -1,13 +1,28 @@
1dnl 'extern inline' a la ISO C99. 1dnl 'extern inline' a la ISO C99.
2 2
3dnl Copyright 2012-2021 Free Software Foundation, Inc. 3dnl Copyright 2012-2022 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.
7 7
8AC_DEFUN([gl_EXTERN_INLINE], 8AC_DEFUN([gl_EXTERN_INLINE],
9[ 9[
10 AH_VERBATIM([extern_inline], 10 AC_CACHE_CHECK([whether ctype.h defines __header_inline],
11 [gl_cv_have___header_inline],
12 [AC_PREPROC_IFELSE(
13 [AC_LANG_SOURCE([[#include <ctype.h>
14 #ifndef __header_inline
15 #error "<ctype.h> does not define __header_inline"
16 #endif
17 ]])],
18 [gl_cv_have___header_inline=yes],
19 [gl_cv_have___header_inline=no])])
20 if test "$gl_cv_have___header_inline" = yes; then
21 AC_DEFINE([HAVE___HEADER_INLINE], [1],
22 [Define to 1 if ctype.h defines __header_inline.])
23 fi
24
25 AH_VERBATIM([HAVE___HEADER_INLINE_1],
11[/* Please see the Gnulib manual for how to use these macros. 26[/* Please see the Gnulib manual for how to use these macros.
12 27
13 Suppress extern inline with HP-UX cc, as it appears to be broken; see 28 Suppress extern inline with HP-UX cc, as it appears to be broken; see
@@ -54,7 +69,7 @@ AC_DEFUN([gl_EXTERN_INLINE],
54 */ 69 */
55#if (((defined __APPLE__ && defined __MACH__) \ 70#if (((defined __APPLE__ && defined __MACH__) \
56 || defined __DragonFly__ || defined __FreeBSD__) \ 71 || defined __DragonFly__ || defined __FreeBSD__) \
57 && (defined __header_inline \ 72 && (defined HAVE___HEADER_INLINE \
58 ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \ 73 ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \
59 && ! defined __clang__) \ 74 && ! defined __clang__) \
60 : ((! defined _DONT_USE_CTYPE_INLINE_ \ 75 : ((! defined _DONT_USE_CTYPE_INLINE_ \
diff --git a/gl/m4/fcntl-o.m4 b/gl/m4/fcntl-o.m4
index 7c459ad..4dcde9e 100644
--- a/gl/m4/fcntl-o.m4
+++ b/gl/m4/fcntl-o.m4
@@ -1,5 +1,5 @@
1# fcntl-o.m4 serial 7 1# fcntl-o.m4 serial 7
2dnl Copyright (C) 2006, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fcntl.m4 b/gl/m4/fcntl.m4
index f626434..428e570 100644
--- a/gl/m4/fcntl.m4
+++ b/gl/m4/fcntl.m4
@@ -1,5 +1,5 @@
1# fcntl.m4 serial 11 1# fcntl.m4 serial 11
2dnl Copyright (C) 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 aba4473..267f98b 100644
--- a/gl/m4/fcntl_h.m4
+++ b/gl/m4/fcntl_h.m4
@@ -1,6 +1,6 @@
1# serial 20 1# serial 20
2# Configure fcntl.h. 2# Configure fcntl.h.
3dnl Copyright (C) 2006-2007, 2009-2021 Free Software Foundation, Inc. 3dnl Copyright (C) 2006-2007, 2009-2022 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/fflush.m4 b/gl/m4/fflush.m4
index 43266ef..e36f90e 100644
--- a/gl/m4/fflush.m4
+++ b/gl/m4/fflush.m4
@@ -1,6 +1,6 @@
1# fflush.m4 serial 18 1# fflush.m4 serial 18
2 2
3# Copyright (C) 2007-2021 Free Software Foundation, Inc. 3# Copyright (C) 2007-2022 Free Software Foundation, Inc.
4# This file is free software; the Free Software Foundation 4# This file is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it, 5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved. 6# 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 ba38a28..0e84572 100644
--- a/gl/m4/float_h.m4
+++ b/gl/m4/float_h.m4
@@ -1,5 +1,5 @@
1# float_h.m4 serial 12 1# float_h.m4 serial 13
2dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -8,18 +8,18 @@ AC_DEFUN([gl_FLOAT_H],
8[ 8[
9 AC_REQUIRE([AC_PROG_CC]) 9 AC_REQUIRE([AC_PROG_CC])
10 AC_REQUIRE([AC_CANONICAL_HOST]) 10 AC_REQUIRE([AC_CANONICAL_HOST])
11 FLOAT_H= 11 GL_GENERATE_FLOAT_H=false
12 REPLACE_FLOAT_LDBL=0 12 REPLACE_FLOAT_LDBL=0
13 case "$host_os" in 13 case "$host_os" in
14 aix* | beos* | openbsd* | mirbsd* | irix*) 14 aix* | beos* | openbsd* | mirbsd* | irix*)
15 FLOAT_H=float.h 15 GL_GENERATE_FLOAT_H=true
16 ;; 16 ;;
17 freebsd* | dragonfly*) 17 freebsd* | dragonfly*)
18 case "$host_cpu" in 18 case "$host_cpu" in
19changequote(,)dnl 19changequote(,)dnl
20 i[34567]86 ) 20 i[34567]86 )
21changequote([,])dnl 21changequote([,])dnl
22 FLOAT_H=float.h 22 GL_GENERATE_FLOAT_H=true
23 ;; 23 ;;
24 x86_64 ) 24 x86_64 )
25 # On x86_64 systems, the C compiler may still be generating 25 # On x86_64 systems, the C compiler may still be generating
@@ -33,21 +33,21 @@ changequote([,])dnl
33 #endif 33 #endif
34 ]])], 34 ]])],
35 [], 35 [],
36 [FLOAT_H=float.h]) 36 [GL_GENERATE_FLOAT_H=true])
37 ;; 37 ;;
38 esac 38 esac
39 ;; 39 ;;
40 linux*) 40 linux*)
41 case "$host_cpu" in 41 case "$host_cpu" in
42 powerpc*) 42 powerpc*)
43 FLOAT_H=float.h 43 GL_GENERATE_FLOAT_H=true
44 ;; 44 ;;
45 esac 45 esac
46 ;; 46 ;;
47 esac 47 esac
48 case "$host_os" in 48 case "$host_os" in
49 aix* | freebsd* | dragonfly* | linux*) 49 aix* | freebsd* | dragonfly* | linux*)
50 if test -n "$FLOAT_H"; then 50 if $GL_GENERATE_FLOAT_H; then
51 REPLACE_FLOAT_LDBL=1 51 REPLACE_FLOAT_LDBL=1
52 fi 52 fi
53 ;; 53 ;;
@@ -95,14 +95,12 @@ int main ()
95 REPLACE_ITOLD=1 95 REPLACE_ITOLD=1
96 dnl We add the workaround to <float.h> but also to <math.h>, 96 dnl We add the workaround to <float.h> but also to <math.h>,
97 dnl to increase the chances that the fix function gets pulled in. 97 dnl to increase the chances that the fix function gets pulled in.
98 FLOAT_H=float.h 98 GL_GENERATE_FLOAT_H=true
99 ;; 99 ;;
100 esac 100 esac
101 101
102 if test -n "$FLOAT_H"; then 102 if $GL_GENERATE_FLOAT_H; then
103 gl_NEXT_HEADERS([float.h]) 103 gl_NEXT_HEADERS([float.h])
104 fi 104 fi
105 AC_SUBST([FLOAT_H])
106 AM_CONDITIONAL([GL_GENERATE_FLOAT_H], [test -n "$FLOAT_H"])
107 AC_SUBST([REPLACE_ITOLD]) 105 AC_SUBST([REPLACE_ITOLD])
108]) 106])
diff --git a/gl/m4/floorf.m4 b/gl/m4/floorf.m4
index f521437..e8f290b 100644
--- a/gl/m4/floorf.m4
+++ b/gl/m4/floorf.m4
@@ -1,5 +1,5 @@
1# floorf.m4 serial 18 1# floorf.m4 serial 18
2dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fopen.m4 b/gl/m4/fopen.m4
index 4ed7dce..50767f8 100644
--- a/gl/m4/fopen.m4
+++ b/gl/m4/fopen.m4
@@ -1,5 +1,5 @@
1# fopen.m4 serial 12 1# fopen.m4 serial 13
2dnl Copyright (C) 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -136,11 +136,12 @@ int main ()
136 ]) 136 ])
137 rm -f conftest.x 137 rm -f conftest.x
138 ]) 138 ])
139 REPLACE_FOPEN_FOR_FOPEN_GNU="$REPLACE_FOPEN"
139 case "$gl_cv_func_fopen_mode_x" in 140 case "$gl_cv_func_fopen_mode_x" in
140 *no) REPLACE_FOPEN=1 ;; 141 *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;;
141 esac 142 esac
142 case "$gl_cv_func_fopen_mode_e" in 143 case "$gl_cv_func_fopen_mode_e" in
143 *no) REPLACE_FOPEN=1 ;; 144 *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;;
144 esac 145 esac
145]) 146])
146 147
diff --git a/gl/m4/fpurge.m4 b/gl/m4/fpurge.m4
index 275c9d0..1a15454 100644
--- a/gl/m4/fpurge.m4
+++ b/gl/m4/fpurge.m4
@@ -1,5 +1,5 @@
1# fpurge.m4 serial 12 1# fpurge.m4 serial 12
2dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/freading.m4 b/gl/m4/freading.m4
index 6cc660f..81b17a6 100644
--- a/gl/m4/freading.m4
+++ b/gl/m4/freading.m4
@@ -1,5 +1,5 @@
1# freading.m4 serial 2 1# freading.m4 serial 2
2dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/free.m4 b/gl/m4/free.m4
index a7923b9..dfeecd2 100644
--- a/gl/m4/free.m4
+++ b/gl/m4/free.m4
@@ -1,5 +1,5 @@
1# free.m4 serial 6 1# free.m4 serial 6
2# Copyright (C) 2003-2005, 2009-2021 Free Software Foundation, Inc. 2# Copyright (C) 2003-2005, 2009-2022 Free Software Foundation, Inc.
3# This file is free software; the Free Software Foundation 3# This file is free software; the Free Software Foundation
4# gives unlimited permission to copy and/or distribute it, 4# gives unlimited permission to copy and/or distribute it,
5# with or without modifications, as long as this notice is preserved. 5# with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fseek.m4 b/gl/m4/fseek.m4
index 2e90afc..bd4a55b 100644
--- a/gl/m4/fseek.m4
+++ b/gl/m4/fseek.m4
@@ -1,5 +1,5 @@
1# fseek.m4 serial 4 1# fseek.m4 serial 4
2dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fseeko.m4 b/gl/m4/fseeko.m4
index 531e442..e50fe39 100644
--- a/gl/m4/fseeko.m4
+++ b/gl/m4/fseeko.m4
@@ -1,5 +1,5 @@
1# fseeko.m4 serial 20 1# fseeko.m4 serial 20
2dnl Copyright (C) 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fstat.m4 b/gl/m4/fstat.m4
index cdaca80..9e61bcc 100644
--- a/gl/m4/fstat.m4
+++ b/gl/m4/fstat.m4
@@ -1,5 +1,5 @@
1# fstat.m4 serial 8 1# fstat.m4 serial 8
2dnl Copyright (C) 2011-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/fstypename.m4 b/gl/m4/fstypename.m4
index 895c4f0..6749922 100644
--- a/gl/m4/fstypename.m4
+++ b/gl/m4/fstypename.m4
@@ -6,7 +6,7 @@ dnl See if struct statfs has the f_fstypename member.
6dnl If so, define HAVE_STRUCT_STATFS_F_FSTYPENAME. 6dnl If so, define HAVE_STRUCT_STATFS_F_FSTYPENAME.
7dnl 7dnl
8 8
9# Copyright (C) 1998-1999, 2001, 2004, 2006, 2009-2021 Free Software 9# Copyright (C) 1998-1999, 2001, 2004, 2006, 2009-2022 Free Software
10# Foundation, Inc. 10# Foundation, Inc.
11# This file is free software; the Free Software Foundation 11# This file is free software; the Free Software Foundation
12# gives unlimited permission to copy and/or distribute it, 12# gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/fsusage.m4 b/gl/m4/fsusage.m4
index d005579..06e6088 100644
--- a/gl/m4/fsusage.m4
+++ b/gl/m4/fsusage.m4
@@ -1,7 +1,7 @@
1# serial 35 1# serial 35
2# Obtaining file system usage information. 2# Obtaining file system usage information.
3 3
4# Copyright (C) 1997-1998, 2000-2001, 2003-2021 Free Software Foundation, Inc. 4# Copyright (C) 1997-1998, 2000-2001, 2003-2022 Free Software Foundation, Inc.
5# 5#
6# This file is free software; the Free Software Foundation 6# This file is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it, 7# gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/ftell.m4 b/gl/m4/ftell.m4
index f9cc619..89f2d1b 100644
--- a/gl/m4/ftell.m4
+++ b/gl/m4/ftell.m4
@@ -1,5 +1,5 @@
1# ftell.m4 serial 3 1# ftell.m4 serial 3
2dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/ftello.m4 b/gl/m4/ftello.m4
index 65bec39..919f39d 100644
--- a/gl/m4/ftello.m4
+++ b/gl/m4/ftello.m4
@@ -1,5 +1,5 @@
1# ftello.m4 serial 14 1# ftello.m4 serial 14
2dnl Copyright (C) 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/getaddrinfo.m4 b/gl/m4/getaddrinfo.m4
index 3f8e04f..65a0fd0 100644
--- a/gl/m4/getaddrinfo.m4
+++ b/gl/m4/getaddrinfo.m4
@@ -1,5 +1,5 @@
1# getaddrinfo.m4 serial 34 1# getaddrinfo.m4 serial 34
2dnl Copyright (C) 2004-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2004-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/getdelim.m4 b/gl/m4/getdelim.m4
index 244a731..0b63b55 100644
--- a/gl/m4/getdelim.m4
+++ b/gl/m4/getdelim.m4
@@ -1,6 +1,6 @@
1# getdelim.m4 serial 15 1# getdelim.m4 serial 15
2 2
3dnl Copyright (C) 2005-2007, 2009-2021 Free Software Foundation, Inc. 3dnl Copyright (C) 2005-2007, 2009-2022 Free Software Foundation, Inc.
4dnl 4dnl
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/getdtablesize.m4 b/gl/m4/getdtablesize.m4
index 8fbc941..6134eaa 100644
--- a/gl/m4/getdtablesize.m4
+++ b/gl/m4/getdtablesize.m4
@@ -1,5 +1,5 @@
1# getdtablesize.m4 serial 8 1# getdtablesize.m4 serial 8
2dnl Copyright (C) 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/gethostname.m4 b/gl/m4/gethostname.m4
index 25e9eb2..11f22b2 100644
--- a/gl/m4/gethostname.m4
+++ b/gl/m4/gethostname.m4
@@ -1,5 +1,5 @@
1# gethostname.m4 serial 15 1# gethostname.m4 serial 15
2dnl Copyright (C) 2002, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/getline.m4 b/gl/m4/getline.m4
index 58b27c7..ca0301d 100644
--- a/gl/m4/getline.m4
+++ b/gl/m4/getline.m4
@@ -1,6 +1,6 @@
1# getline.m4 serial 30 1# getline.m4 serial 30
2 2
3dnl Copyright (C) 1998-2003, 2005-2007, 2009-2021 Free Software Foundation, 3dnl Copyright (C) 1998-2003, 2005-2007, 2009-2022 Free Software Foundation,
4dnl Inc. 4dnl Inc.
5dnl 5dnl
6dnl This file is free software; the Free Software Foundation 6dnl This file is free software; the Free Software Foundation
diff --git a/gl/m4/getloadavg.m4 b/gl/m4/getloadavg.m4
index bba2216..7bb8890 100644
--- a/gl/m4/getloadavg.m4
+++ b/gl/m4/getloadavg.m4
@@ -1,6 +1,6 @@
1# Check for getloadavg. 1# Check for getloadavg.
2 2
3# Copyright (C) 1992-1996, 1999-2000, 2002-2003, 2006, 2008-2021 Free Software 3# Copyright (C) 1992-1996, 1999-2000, 2002-2003, 2006, 2008-2022 Free Software
4# Foundation, Inc. 4# Foundation, Inc.
5 5
6# This file is free software; the Free Software Foundation 6# This file is free software; the Free Software Foundation
diff --git a/gl/m4/getopt.m4 b/gl/m4/getopt.m4
index bb95c5e..ff78ed5 100644
--- a/gl/m4/getopt.m4
+++ b/gl/m4/getopt.m4
@@ -1,5 +1,5 @@
1# getopt.m4 serial 47 1# getopt.m4 serial 48
2dnl Copyright (C) 2002-2006, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2006, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -21,6 +21,8 @@ AC_DEFUN([gl_FUNC_GETOPT_POSIX],
21 REPLACE_GETOPT=1 21 REPLACE_GETOPT=1
22 fi 22 fi
23 ]) 23 ])
24 GL_GENERATE_GETOPT_H=false
25 GL_GENERATE_GETOPT_CDEFS_H=false
24 if test $REPLACE_GETOPT = 1; then 26 if test $REPLACE_GETOPT = 1; then
25 dnl Arrange for getopt.h to be created. 27 dnl Arrange for getopt.h to be created.
26 gl_GETOPT_SUBSTITUTE_HEADER 28 gl_GETOPT_SUBSTITUTE_HEADER
@@ -374,8 +376,6 @@ AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER],
374 AC_DEFINE([__GETOPT_PREFIX], [[rpl_]], 376 AC_DEFINE([__GETOPT_PREFIX], [[rpl_]],
375 [Define to rpl_ if the getopt replacement functions and variables 377 [Define to rpl_ if the getopt replacement functions and variables
376 should be used.]) 378 should be used.])
377 GETOPT_H=getopt.h 379 GL_GENERATE_GETOPT_H=true
378 GETOPT_CDEFS_H=getopt-cdefs.h 380 GL_GENERATE_GETOPT_CDEFS_H=true
379 AC_SUBST([GETOPT_H])
380 AC_SUBST([GETOPT_CDEFS_H])
381]) 381])
diff --git a/gl/m4/getprogname.m4 b/gl/m4/getprogname.m4
index 65917d6..b26146e 100644
--- a/gl/m4/getprogname.m4
+++ b/gl/m4/getprogname.m4
@@ -1,6 +1,6 @@
1# getprogname.m4 - check for getprogname or replacements for it 1# getprogname.m4 - check for getprogname or replacements for it
2 2
3# Copyright (C) 2016-2021 Free Software Foundation, Inc. 3# Copyright (C) 2016-2022 Free Software Foundation, Inc.
4# This file is free software; the Free Software Foundation 4# This file is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it, 5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved. 6# with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/gettext.m4 b/gl/m4/gettext.m4
index c7f5460..989d645 100644
--- a/gl/m4/gettext.m4
+++ b/gl/m4/gettext.m4
@@ -1,5 +1,5 @@
1# gettext.m4 serial 71 (gettext-0.20.2) 1# gettext.m4 serial 71 (gettext-0.20.2)
2dnl Copyright (C) 1995-2014, 2016, 2018-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 1995-2014, 2016, 2018-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/gl-openssl.m4 b/gl/m4/gl-openssl.m4
index c968eb6..d076f84 100644
--- a/gl/m4/gl-openssl.m4
+++ b/gl/m4/gl-openssl.m4
@@ -1,5 +1,5 @@
1# gl-openssl.m4 serial 6 1# gl-openssl.m4 serial 6
2dnl Copyright (C) 2013-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2013-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/gnulib-cache.m4 b/gl/m4/gnulib-cache.m4
index 2471be2..9d0128a 100644
--- a/gl/m4/gnulib-cache.m4
+++ b/gl/m4/gnulib-cache.m4
@@ -1,8 +1,8 @@
1# Copyright (C) 2002-2021 Free Software Foundation, Inc. 1# Copyright (C) 2002-2022 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
5# the Free Software Foundation; either version 3 of the License, or 5# the Free Software Foundation, either version 3 of the License, or
6# (at your option) any later version. 6# (at your option) any later version.
7# 7#
8# This file is distributed in the hope that it will be useful, 8# This file is distributed in the hope that it will be useful,
diff --git a/gl/m4/gnulib-common.m4 b/gl/m4/gnulib-common.m4
index 12b19db..30911d1 100644
--- a/gl/m4/gnulib-common.m4
+++ b/gl/m4/gnulib-common.m4
@@ -1,5 +1,5 @@
1# gnulib-common.m4 serial 67 1# gnulib-common.m4 serial 73
2dnl Copyright (C) 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -69,7 +69,9 @@ AC_DEFUN([gl_COMMON_BODY], [
69[/* Attributes. */ 69[/* Attributes. */
70#if (defined __has_attribute \ 70#if (defined __has_attribute \
71 && (!defined __clang_minor__ \ 71 && (!defined __clang_minor__ \
72 || 3 < __clang_major__ + (5 <= __clang_minor__))) 72 || (defined __apple_build_version__ \
73 ? 6000000 <= __apple_build_version__ \
74 : 3 < __clang_major__ + (5 <= __clang_minor__))))
73# define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__) 75# define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
74#else 76#else
75# define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr 77# define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr
@@ -104,6 +106,10 @@ AC_DEFUN([gl_COMMON_BODY], [
104#endif 106#endif
105 107
106#ifdef __has_c_attribute 108#ifdef __has_c_attribute
109# if ((defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) <= 201710 \
110 && _GL_GNUC_PREREQ (4, 6))
111# pragma GCC diagnostic ignored "-Wpedantic"
112# endif
107# define _GL_HAS_C_ATTRIBUTE(attr) __has_c_attribute (__##attr##__) 113# define _GL_HAS_C_ATTRIBUTE(attr) __has_c_attribute (__##attr##__)
108#else 114#else
109# define _GL_HAS_C_ATTRIBUTE(attr) 0 115# define _GL_HAS_C_ATTRIBUTE(attr) 0
@@ -181,7 +187,12 @@ AC_DEFUN([gl_COMMON_BODY], [
181#else 187#else
182# define _GL_ATTRIBUTE_DEALLOC(f, i) 188# define _GL_ATTRIBUTE_DEALLOC(f, i)
183#endif 189#endif
184#define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1) 190/* If gnulib's <string.h> or <wchar.h> has already defined this macro, continue
191 to use this earlier definition, since <stdlib.h> may not have been included
192 yet. */
193#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
194# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1)
195#endif
185 196
186/* _GL_ATTRIBUTE_DEPRECATED: Declares that an entity is deprecated. 197/* _GL_ATTRIBUTE_DEPRECATED: Declares that an entity is deprecated.
187 The compiler may warn if the entity is used. */ 198 The compiler may warn if the entity is used. */
@@ -813,6 +824,24 @@ AC_DEFUN([gl_CACHE_VAL_SILENT],
813 ]) 824 ])
814]) 825])
815 826
827# gl_CONDITIONAL(conditional, condition)
828# is like AM_CONDITIONAL(conditional, condition), except that it does not
829# produce an error
830# configure: error: conditional "..." was never defined.
831# Usually this means the macro was only invoked conditionally.
832# when only invoked conditionally. Instead, in that case, both the _TRUE
833# and the _FALSE case are disabled.
834AC_DEFUN([gl_CONDITIONAL],
835[
836 pushdef([AC_CONFIG_COMMANDS_PRE], [:])dnl
837 AM_CONDITIONAL([$1], [$2])
838 popdef([AC_CONFIG_COMMANDS_PRE])dnl
839 if test -z "${[$1]_TRUE}" && test -z "${[$1]_FALSE}"; then
840 [$1]_TRUE='#'
841 [$1]_FALSE='#'
842 fi
843])
844
816# gl_CC_ALLOW_WARNINGS 845# gl_CC_ALLOW_WARNINGS
817# sets and substitutes a variable GL_CFLAG_ALLOW_WARNINGS, to a $(CC) option 846# sets and substitutes a variable GL_CFLAG_ALLOW_WARNINGS, to a $(CC) option
818# that reverts a preceding '-Werror' option, if available. 847# that reverts a preceding '-Werror' option, if available.
@@ -879,6 +908,102 @@ AC_DEFUN([gl_CXX_ALLOW_WARNINGS],
879 AC_SUBST([GL_CXXFLAG_ALLOW_WARNINGS]) 908 AC_SUBST([GL_CXXFLAG_ALLOW_WARNINGS])
880]) 909])
881 910
911# gl_CC_GNULIB_WARNINGS
912# sets and substitutes a variable GL_CFLAG_GNULIB_WARNINGS, to a $(CC) option
913# set that enables or disables warnings as suitable for the Gnulib coding style.
914AC_DEFUN([gl_CC_GNULIB_WARNINGS],
915[
916 AC_REQUIRE([gl_CC_ALLOW_WARNINGS])
917 dnl Assume that the compiler supports -Wno-* options only if it also supports
918 dnl -Wno-error.
919 GL_CFLAG_GNULIB_WARNINGS=''
920 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
921 dnl Enable these warning options:
922 dnl
923 dnl GCC clang
924 dnl -Wno-cast-qual >= 3 >= 3.9
925 dnl -Wno-conversion >= 3 >= 3.9
926 dnl -Wno-float-conversion >= 4.9 >= 3.9
927 dnl -Wno-float-equal >= 3 >= 3.9
928 dnl -Wimplicit-fallthrough >= 7 >= 3.9
929 dnl -Wno-pedantic >= 4.8 >= 3.9
930 dnl -Wno-sign-compare >= 3 >= 3.9
931 dnl -Wno-sign-conversion >= 4.3 >= 3.9
932 dnl -Wno-type-limits >= 4.3 >= 3.9
933 dnl -Wno-undef >= 3 >= 3.9
934 dnl -Wno-unsuffixed-float-constants >= 4.5
935 dnl -Wno-unused-function >= 3 >= 3.9
936 dnl -Wno-unused-parameter >= 3 >= 3.9
937 dnl
938 cat > conftest.c <<\EOF
939 #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
940 -Wno-cast-qual
941 -Wno-conversion
942 -Wno-float-equal
943 -Wno-sign-compare
944 -Wno-undef
945 -Wno-unused-function
946 -Wno-unused-parameter
947 #endif
948 #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
949 -Wno-float-conversion
950 #endif
951 #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
952 -Wimplicit-fallthrough
953 #endif
954 #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
955 -Wno-pedantic
956 #endif
957 #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
958 -Wno-sign-conversion
959 -Wno-type-limits
960 #endif
961 #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
962 -Wno-unsuffixed-float-constants
963 #endif
964EOF
965 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
966 if AC_TRY_EVAL([gl_command]); then
967 gl_options=`grep -v '#' conftest.out`
968 for word in $gl_options; do
969 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
970 done
971 fi
972 rm -f conftest.c conftest.out
973 fi
974 AC_SUBST([GL_CFLAG_GNULIB_WARNINGS])
975])
976
977dnl gl_CONDITIONAL_HEADER([foo.h])
978dnl takes a shell variable GL_GENERATE_FOO_H (with value true or false) as input
979dnl and produces
980dnl - an AC_SUBSTed variable FOO_H that is either a file name or empty, based
981dnl on whether GL_GENERATE_FOO_H is true or false,
982dnl - an Automake conditional GL_GENERATE_FOO_H that evaluates to the value of
983dnl the shell variable GL_GENERATE_FOO_H.
984AC_DEFUN([gl_CONDITIONAL_HEADER],
985[
986 m4_pushdef([gl_header_name], AS_TR_SH(m4_toupper($1)))
987 m4_pushdef([gl_generate_var], [GL_GENERATE_]AS_TR_SH(m4_toupper($1)))
988 m4_pushdef([gl_generate_cond], [GL_GENERATE_]AS_TR_SH(m4_toupper($1)))
989 case "$gl_generate_var" in
990 false) gl_header_name='' ;;
991 true)
992 dnl It is OK to use a .h file in lib/ from within tests/, but not vice
993 dnl versa.
994 if test -z "$gl_header_name"; then
995 gl_header_name="${gl_source_base_prefix}$1"
996 fi
997 ;;
998 *) echo "*** gl_generate_var is not set correctly" 1>&2; exit 1 ;;
999 esac
1000 AC_SUBST(gl_header_name)
1001 gl_CONDITIONAL(gl_generate_cond, [$gl_generate_var])
1002 m4_popdef([gl_generate_cond])
1003 m4_popdef([gl_generate_var])
1004 m4_popdef([gl_header_name])
1005])
1006
882dnl Expands to some code for use in .c programs that, on native Windows, defines 1007dnl Expands to some code for use in .c programs that, on native Windows, defines
883dnl the Microsoft deprecated alias function names to the underscore-prefixed 1008dnl the Microsoft deprecated alias function names to the underscore-prefixed
884dnl actual function names. With this macro, these function names are available 1009dnl actual function names. With this macro, these function names are available
diff --git a/gl/m4/gnulib-comp.m4 b/gl/m4/gnulib-comp.m4
index 219b81e..a82c5de 100644
--- a/gl/m4/gnulib-comp.m4
+++ b/gl/m4/gnulib-comp.m4
@@ -1,9 +1,9 @@
1# DO NOT EDIT! GENERATED AUTOMATICALLY! 1# DO NOT EDIT! GENERATED AUTOMATICALLY!
2# Copyright (C) 2002-2021 Free Software Foundation, Inc. 2# Copyright (C) 2002-2022 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
6# the Free Software Foundation; either version 3 of the License, or 6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version. 7# (at your option) any later version.
8# 8#
9# This file is distributed in the hope that it will be useful, 9# This file is distributed in the hope that it will be useful,
@@ -42,7 +42,6 @@ AC_DEFUN([gl_EARLY],
42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43 AC_REQUIRE([gl_PROG_AR_RANLIB]) 43 AC_REQUIRE([gl_PROG_AR_RANLIB])
44 44
45 AC_REQUIRE([AM_PROG_CC_C_O])
46 # Code from module absolute-header: 45 # Code from module absolute-header:
47 # Code from module alloca-opt: 46 # Code from module alloca-opt:
48 # Code from module arpa_inet: 47 # Code from module arpa_inet:
@@ -92,6 +91,7 @@ AC_DEFUN([gl_EARLY],
92 # Code from module ftell: 91 # Code from module ftell:
93 # Code from module ftello: 92 # Code from module ftello:
94 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE]) 93 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
94 # Code from module gen-header:
95 # Code from module getaddrinfo: 95 # Code from module getaddrinfo:
96 # Code from module getdelim: 96 # Code from module getdelim:
97 # Code from module getdtablesize: 97 # Code from module getdtablesize:
@@ -167,6 +167,7 @@ AC_DEFUN([gl_EARLY],
167 # Code from module std-gnu11: 167 # Code from module std-gnu11:
168 # Code from module stdalign: 168 # Code from module stdalign:
169 # Code from module stdbool: 169 # Code from module stdbool:
170 # Code from module stdckdint:
170 # Code from module stddef: 171 # Code from module stddef:
171 # Code from module stdint: 172 # Code from module stdint:
172 # Code from module stdio: 173 # Code from module stdio:
@@ -193,6 +194,7 @@ AC_DEFUN([gl_EARLY],
193 # Code from module unistd: 194 # Code from module unistd:
194 # Code from module unlocked-io-internal: 195 # Code from module unlocked-io-internal:
195 # Code from module unsetenv: 196 # Code from module unsetenv:
197 # Code from module vararrays:
196 # Code from module vasnprintf: 198 # Code from module vasnprintf:
197 # Code from module vasprintf: 199 # Code from module vasprintf:
198 # Code from module verify: 200 # Code from module verify:
@@ -228,33 +230,38 @@ AC_DEFUN([gl_INIT],
228 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL]) 230 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
229 gl_COMMON 231 gl_COMMON
230 gl_source_base='gl' 232 gl_source_base='gl'
233 gl_source_base_prefix=
231 gl_FUNC_ALLOCA 234 gl_FUNC_ALLOCA
235 gl_CONDITIONAL_HEADER([alloca.h])
236 AC_PROG_MKDIR_P
232 gl_ARPA_INET_H 237 gl_ARPA_INET_H
233 gl_ARPA_INET_H_REQUIRE_DEFAULTS 238 gl_ARPA_INET_H_REQUIRE_DEFAULTS
234 AC_PROG_MKDIR_P 239 AC_PROG_MKDIR_P
235 gl_FUNC_BASE64 240 gl_FUNC_BASE64
236 gl_FUNC_BTOWC 241 gl_FUNC_BTOWC
237 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then 242 gl_CONDITIONAL([GL_COND_OBJ_BTOWC],
238 AC_LIBOBJ([btowc]) 243 [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1])
244 AM_COND_IF([GL_COND_OBJ_BTOWC], [
239 gl_PREREQ_BTOWC 245 gl_PREREQ_BTOWC
240 fi 246 ])
241 gl_WCHAR_MODULE_INDICATOR([btowc]) 247 gl_WCHAR_MODULE_INDICATOR([btowc])
242 gl___BUILTIN_EXPECT 248 gl___BUILTIN_EXPECT
243 gl_BYTESWAP 249 gl_BYTESWAP
250 gl_CONDITIONAL_HEADER([byteswap.h])
251 AC_PROG_MKDIR_P
244 gl_FUNC_CALLOC_GNU 252 gl_FUNC_CALLOC_GNU
245 if test $REPLACE_CALLOC = 1; then 253 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then
246 AC_LIBOBJ([calloc]) 254 AC_LIBOBJ([calloc])
247 fi 255 fi
256 gl_STDLIB_MODULE_INDICATOR([calloc-gnu])
248 gl_FUNC_CALLOC_POSIX 257 gl_FUNC_CALLOC_POSIX
249 if test $REPLACE_CALLOC = 1; then 258 if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then
250 AC_LIBOBJ([calloc]) 259 AC_LIBOBJ([calloc])
251 fi 260 fi
252 gl_STDLIB_MODULE_INDICATOR([calloc-posix]) 261 gl_STDLIB_MODULE_INDICATOR([calloc-posix])
253 gl_MODULE_INDICATOR_FOR_TESTS([cloexec]) 262 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
254 gl_FUNC_CLOSE 263 gl_FUNC_CLOSE
255 if test $REPLACE_CLOSE = 1; then 264 gl_CONDITIONAL([GL_COND_OBJ_CLOSE], [test $REPLACE_CLOSE = 1])
256 AC_LIBOBJ([close])
257 fi
258 gl_UNISTD_MODULE_INDICATOR([close]) 265 gl_UNISTD_MODULE_INDICATOR([close])
259 gl_AF_ALG 266 gl_AF_ALG
260 AC_REQUIRE([AC_C_RESTRICT]) 267 AC_REQUIRE([AC_C_RESTRICT])
@@ -262,18 +269,20 @@ AC_DEFUN([gl_INIT],
262 gl_MODULE_INDICATOR([dirname]) 269 gl_MODULE_INDICATOR([dirname])
263 gl_DOUBLE_SLASH_ROOT 270 gl_DOUBLE_SLASH_ROOT
264 gl_FUNC_DUP2 271 gl_FUNC_DUP2
265 if test $REPLACE_DUP2 = 1; then 272 gl_CONDITIONAL([GL_COND_OBJ_DUP2], [test $REPLACE_DUP2 = 1])
266 AC_LIBOBJ([dup2]) 273 AM_COND_IF([GL_COND_OBJ_DUP2], [
267 gl_PREREQ_DUP2 274 gl_PREREQ_DUP2
268 fi 275 ])
269 gl_UNISTD_MODULE_INDICATOR([dup2]) 276 gl_UNISTD_MODULE_INDICATOR([dup2])
270 AC_PROG_MKDIR_P 277 AC_PROG_MKDIR_P
271 gl_ENVIRON 278 gl_ENVIRON
272 gl_UNISTD_MODULE_INDICATOR([environ]) 279 gl_UNISTD_MODULE_INDICATOR([environ])
273 gl_HEADER_ERRNO_H 280 gl_HEADER_ERRNO_H
281 gl_CONDITIONAL_HEADER([errno.h])
282 AC_PROG_MKDIR_P
274 gl_ERROR 283 gl_ERROR
275 AS_IF([test "$ac_cv_lib_error_at_line" = no], [ 284 gl_CONDITIONAL([GL_COND_OBJ_ERROR], [test "$ac_cv_lib_error_at_line" = no])
276 AC_LIBOBJ([error]) 285 AM_COND_IF([GL_COND_OBJ_ERROR], [
277 gl_PREREQ_ERROR 286 gl_PREREQ_ERROR
278 ]) 287 ])
279 m4_ifdef([AM_XGETTEXT_OPTION], 288 m4_ifdef([AM_XGETTEXT_OPTION],
@@ -281,30 +290,27 @@ AC_DEFUN([gl_INIT],
281 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) 290 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
282 AC_REQUIRE([gl_EXTERN_INLINE]) 291 AC_REQUIRE([gl_EXTERN_INLINE])
283 gl_FUNC_FCNTL 292 gl_FUNC_FCNTL
284 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then 293 gl_CONDITIONAL([GL_COND_OBJ_FCNTL],
285 AC_LIBOBJ([fcntl]) 294 [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1])
286 fi
287 gl_FCNTL_MODULE_INDICATOR([fcntl]) 295 gl_FCNTL_MODULE_INDICATOR([fcntl])
288 gl_FCNTL_H 296 gl_FCNTL_H
289 gl_FCNTL_H_REQUIRE_DEFAULTS 297 gl_FCNTL_H_REQUIRE_DEFAULTS
298 AC_PROG_MKDIR_P
290 gl_FUNC_FFLUSH 299 gl_FUNC_FFLUSH
291 if test $REPLACE_FFLUSH = 1; then 300 gl_CONDITIONAL([GL_COND_OBJ_FFLUSH], [test $REPLACE_FFLUSH = 1])
292 AC_LIBOBJ([fflush]) 301 AM_COND_IF([GL_COND_OBJ_FFLUSH], [
293 gl_PREREQ_FFLUSH 302 gl_PREREQ_FFLUSH
294 fi 303 ])
295 gl_MODULE_INDICATOR([fflush]) 304 gl_MODULE_INDICATOR([fflush])
296 gl_STDIO_MODULE_INDICATOR([fflush]) 305 gl_STDIO_MODULE_INDICATOR([fflush])
297 gl_FLOAT_H 306 gl_FLOAT_H
298 if test $REPLACE_FLOAT_LDBL = 1; then 307 gl_CONDITIONAL_HEADER([float.h])
299 AC_LIBOBJ([float]) 308 AC_PROG_MKDIR_P
300 fi 309 gl_CONDITIONAL([GL_COND_OBJ_FLOAT], [test $REPLACE_FLOAT_LDBL = 1])
301 if test $REPLACE_ITOLD = 1; then 310 gl_CONDITIONAL([GL_COND_OBJ_ITOLD], [test $REPLACE_ITOLD = 1])
302 AC_LIBOBJ([itold])
303 fi
304 gl_FUNC_FLOORF 311 gl_FUNC_FLOORF
305 if test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1; then 312 gl_CONDITIONAL([GL_COND_OBJ_FLOORF],
306 AC_LIBOBJ([floorf]) 313 [test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1])
307 fi
308 gl_MATH_MODULE_INDICATOR([floorf]) 314 gl_MATH_MODULE_INDICATOR([floorf])
309 gl_FUNC_FOPEN 315 gl_FUNC_FOPEN
310 if test $REPLACE_FOPEN = 1; then 316 if test $REPLACE_FOPEN = 1; then
@@ -313,112 +319,112 @@ AC_DEFUN([gl_INIT],
313 fi 319 fi
314 gl_STDIO_MODULE_INDICATOR([fopen]) 320 gl_STDIO_MODULE_INDICATOR([fopen])
315 gl_FUNC_FOPEN_GNU 321 gl_FUNC_FOPEN_GNU
316 if test $REPLACE_FOPEN = 1; then 322 if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then
317 AC_LIBOBJ([fopen]) 323 AC_LIBOBJ([fopen])
318 gl_PREREQ_FOPEN 324 gl_PREREQ_FOPEN
319 fi 325 fi
320 gl_MODULE_INDICATOR([fopen-gnu]) 326 gl_MODULE_INDICATOR([fopen-gnu])
327 gl_STDIO_MODULE_INDICATOR([fopen-gnu])
321 gl_FUNC_FPURGE 328 gl_FUNC_FPURGE
322 if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then 329 gl_CONDITIONAL([GL_COND_OBJ_FPURGE],
323 AC_LIBOBJ([fpurge]) 330 [test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1])
324 fi
325 gl_STDIO_MODULE_INDICATOR([fpurge]) 331 gl_STDIO_MODULE_INDICATOR([fpurge])
326 gl_FUNC_FREADING 332 gl_FUNC_FREADING
327 gl_FUNC_FREE 333 gl_FUNC_FREE
328 if test $REPLACE_FREE = 1; then 334 gl_CONDITIONAL([GL_COND_OBJ_FREE], [test $REPLACE_FREE = 1])
329 AC_LIBOBJ([free]) 335 AM_COND_IF([GL_COND_OBJ_FREE], [
330 gl_PREREQ_FREE 336 gl_PREREQ_FREE
331 fi 337 ])
332 gl_STDLIB_MODULE_INDICATOR([free-posix]) 338 gl_STDLIB_MODULE_INDICATOR([free-posix])
333 gl_FUNC_FSEEK 339 gl_FUNC_FSEEK
334 if test $REPLACE_FSEEK = 1; then 340 gl_CONDITIONAL([GL_COND_OBJ_FSEEK], [test $REPLACE_FSEEK = 1])
335 AC_LIBOBJ([fseek])
336 fi
337 gl_STDIO_MODULE_INDICATOR([fseek]) 341 gl_STDIO_MODULE_INDICATOR([fseek])
338 gl_FUNC_FSEEKO 342 gl_FUNC_FSEEKO
339 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then 343 gl_CONDITIONAL([GL_COND_OBJ_FSEEKO],
340 AC_LIBOBJ([fseeko]) 344 [test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1])
345 AM_COND_IF([GL_COND_OBJ_FSEEKO], [
341 gl_PREREQ_FSEEKO 346 gl_PREREQ_FSEEKO
342 fi 347 ])
343 gl_STDIO_MODULE_INDICATOR([fseeko]) 348 gl_STDIO_MODULE_INDICATOR([fseeko])
344 gl_FUNC_FSTAT 349 gl_FUNC_FSTAT
345 if test $REPLACE_FSTAT = 1; then 350 gl_CONDITIONAL([GL_COND_OBJ_FSTAT], [test $REPLACE_FSTAT = 1])
346 AC_LIBOBJ([fstat]) 351 AM_COND_IF([GL_COND_OBJ_FSTAT], [
347 case "$host_os" in 352 case "$host_os" in
348 mingw*) 353 mingw*)
349 AC_LIBOBJ([stat-w32]) 354 AC_LIBOBJ([stat-w32])
350 ;; 355 ;;
351 esac 356 esac
352 gl_PREREQ_FSTAT 357 gl_PREREQ_FSTAT
353 fi 358 ])
354 gl_SYS_STAT_MODULE_INDICATOR([fstat]) 359 gl_SYS_STAT_MODULE_INDICATOR([fstat])
355 gl_FSUSAGE 360 gl_FSUSAGE
356 if test $gl_cv_fs_space = yes; then 361 gl_CONDITIONAL([GL_COND_OBJ_FSUSAGE], [test $gl_cv_fs_space = yes])
357 AC_LIBOBJ([fsusage]) 362 AM_COND_IF([GL_COND_OBJ_FSUSAGE], [
358 gl_PREREQ_FSUSAGE_EXTRA 363 gl_PREREQ_FSUSAGE_EXTRA
359 fi 364 ])
360 gl_FUNC_FTELL 365 gl_FUNC_FTELL
361 if test $REPLACE_FTELL = 1; then 366 gl_CONDITIONAL([GL_COND_OBJ_FTELL], [test $REPLACE_FTELL = 1])
362 AC_LIBOBJ([ftell])
363 fi
364 gl_STDIO_MODULE_INDICATOR([ftell]) 367 gl_STDIO_MODULE_INDICATOR([ftell])
365 gl_FUNC_FTELLO 368 gl_FUNC_FTELLO
366 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then 369 gl_CONDITIONAL([GL_COND_OBJ_FTELLO],
367 AC_LIBOBJ([ftello]) 370 [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1])
371 AM_COND_IF([GL_COND_OBJ_FTELLO], [
368 gl_PREREQ_FTELLO 372 gl_PREREQ_FTELLO
369 fi 373 ])
370 gl_STDIO_MODULE_INDICATOR([ftello]) 374 gl_STDIO_MODULE_INDICATOR([ftello])
371 gl_GETADDRINFO 375 gl_GETADDRINFO
372 if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then 376 gl_CONDITIONAL([GL_COND_OBJ_GETADDRINFO],
373 AC_LIBOBJ([getaddrinfo]) 377 [test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1])
374 fi 378 gl_CONDITIONAL([GL_COND_OBJ_GAI_STRERROR],
375 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then 379 [test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1])
376 AC_LIBOBJ([gai_strerror])
377 fi
378 gl_NETDB_MODULE_INDICATOR([getaddrinfo]) 380 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
379 gl_FUNC_GETDELIM 381 gl_FUNC_GETDELIM
380 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then 382 gl_CONDITIONAL([GL_COND_OBJ_GETDELIM],
381 AC_LIBOBJ([getdelim]) 383 [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1])
384 AM_COND_IF([GL_COND_OBJ_GETDELIM], [
382 gl_PREREQ_GETDELIM 385 gl_PREREQ_GETDELIM
383 fi 386 ])
384 gl_STDIO_MODULE_INDICATOR([getdelim]) 387 gl_STDIO_MODULE_INDICATOR([getdelim])
385 gl_FUNC_GETDTABLESIZE 388 gl_FUNC_GETDTABLESIZE
386 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then 389 gl_CONDITIONAL([GL_COND_OBJ_GETDTABLESIZE],
387 AC_LIBOBJ([getdtablesize]) 390 [test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1])
391 AM_COND_IF([GL_COND_OBJ_GETDTABLESIZE], [
388 gl_PREREQ_GETDTABLESIZE 392 gl_PREREQ_GETDTABLESIZE
389 fi 393 ])
390 gl_UNISTD_MODULE_INDICATOR([getdtablesize]) 394 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
391 gl_FUNC_GETHOSTNAME 395 gl_FUNC_GETHOSTNAME
392 if test $HAVE_GETHOSTNAME = 0; then 396 gl_CONDITIONAL([GL_COND_OBJ_GETHOSTNAME], [test $HAVE_GETHOSTNAME = 0])
393 AC_LIBOBJ([gethostname]) 397 AM_COND_IF([GL_COND_OBJ_GETHOSTNAME], [
394 gl_PREREQ_GETHOSTNAME 398 gl_PREREQ_GETHOSTNAME
395 fi 399 ])
396 gl_UNISTD_MODULE_INDICATOR([gethostname]) 400 gl_UNISTD_MODULE_INDICATOR([gethostname])
397 gl_FUNC_GETLINE 401 gl_FUNC_GETLINE
398 if test $REPLACE_GETLINE = 1; then 402 gl_CONDITIONAL([GL_COND_OBJ_GETLINE], [test $REPLACE_GETLINE = 1])
399 AC_LIBOBJ([getline]) 403 AM_COND_IF([GL_COND_OBJ_GETLINE], [
400 gl_PREREQ_GETLINE 404 gl_PREREQ_GETLINE
401 fi 405 ])
402 gl_STDIO_MODULE_INDICATOR([getline]) 406 gl_STDIO_MODULE_INDICATOR([getline])
403 AC_REQUIRE([AC_CANONICAL_HOST]) 407 AC_REQUIRE([AC_CANONICAL_HOST])
404 gl_GETLOADAVG 408 gl_GETLOADAVG
405 if test $HAVE_GETLOADAVG = 0; then 409 gl_CONDITIONAL([GL_COND_OBJ_GETLOADAVG], [test $HAVE_GETLOADAVG = 0])
406 AC_LIBOBJ([getloadavg]) 410 AM_COND_IF([GL_COND_OBJ_GETLOADAVG], [
407 gl_PREREQ_GETLOADAVG 411 gl_PREREQ_GETLOADAVG
408 fi 412 ])
409 gl_STDLIB_MODULE_INDICATOR([getloadavg]) 413 gl_STDLIB_MODULE_INDICATOR([getloadavg])
410 gl_FUNC_GETOPT_GNU 414 gl_FUNC_GETOPT_GNU
411 dnl Because of the way gl_FUNC_GETOPT_GNU is implemented (the gl_getopt_required 415 dnl Because of the way gl_FUNC_GETOPT_GNU is implemented (the gl_getopt_required
412 dnl mechanism), there is no need to do any AC_LIBOBJ or AC_SUBST here; they are 416 dnl mechanism), there is no need to do any AC_LIBOBJ or AC_SUBST here; they are
413 dnl done in the getopt-posix module. 417 dnl done in the getopt-posix module.
414 gl_FUNC_GETOPT_POSIX 418 gl_FUNC_GETOPT_POSIX
415 if test $REPLACE_GETOPT = 1; then 419 gl_CONDITIONAL_HEADER([getopt.h])
416 AC_LIBOBJ([getopt]) 420 gl_CONDITIONAL_HEADER([getopt-cdefs.h])
417 AC_LIBOBJ([getopt1]) 421 AC_PROG_MKDIR_P
422 gl_CONDITIONAL([GL_COND_OBJ_GETOPT], [test $REPLACE_GETOPT = 1])
423 AM_COND_IF([GL_COND_OBJ_GETOPT], [
418 dnl Define the substituted variable GNULIB_UNISTD_H_GETOPT to 1. 424 dnl Define the substituted variable GNULIB_UNISTD_H_GETOPT to 1.
419 gl_UNISTD_H_REQUIRE_DEFAULTS 425 gl_UNISTD_H_REQUIRE_DEFAULTS
420 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT], [1]) 426 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT], [1])
421 fi 427 ])
422 gl_UNISTD_MODULE_INDICATOR([getopt-posix]) 428 gl_UNISTD_MODULE_INDICATOR([getopt-posix])
423 gl_FUNC_GETPROGNAME 429 gl_FUNC_GETPROGNAME
424 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac. 430 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
@@ -432,77 +438,86 @@ AC_DEFUN([gl_INIT],
432 gl_HOSTENT 438 gl_HOSTENT
433 gl_IDPRIV 439 gl_IDPRIV
434 gl_FUNC_INET_NTOP 440 gl_FUNC_INET_NTOP
435 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then 441 gl_CONDITIONAL([GL_COND_OBJ_INET_NTOP],
436 AC_LIBOBJ([inet_ntop]) 442 [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1])
443 AM_COND_IF([GL_COND_OBJ_INET_NTOP], [
437 gl_PREREQ_INET_NTOP 444 gl_PREREQ_INET_NTOP
438 fi 445 ])
439 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop]) 446 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
440 gl_INTTYPES_INCOMPLETE 447 gl_INTTYPES_INCOMPLETE
441 gl_INTTYPES_H_REQUIRE_DEFAULTS 448 gl_INTTYPES_H_REQUIRE_DEFAULTS
449 AC_PROG_MKDIR_P
442 gl_LANGINFO_H 450 gl_LANGINFO_H
443 gl_LANGINFO_H_REQUIRE_DEFAULTS 451 gl_LANGINFO_H_REQUIRE_DEFAULTS
452 AC_PROG_MKDIR_P
444 AC_REQUIRE([gl_LARGEFILE]) 453 AC_REQUIRE([gl_LARGEFILE])
445 gl___INLINE 454 gl___INLINE
446 gl_LIMITS_H 455 gl_LIMITS_H
456 gl_CONDITIONAL_HEADER([limits.h])
457 AC_PROG_MKDIR_P
447 gl_LOCALCHARSET 458 gl_LOCALCHARSET
448 dnl For backward compatibility. Some packages still use this. 459 dnl For backward compatibility. Some packages still use this.
449 LOCALCHARSET_TESTS_ENVIRONMENT= 460 LOCALCHARSET_TESTS_ENVIRONMENT=
450 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) 461 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
451 gl_LOCALE_H 462 gl_LOCALE_H
452 gl_LOCALE_H_REQUIRE_DEFAULTS 463 gl_LOCALE_H_REQUIRE_DEFAULTS
464 AC_PROG_MKDIR_P
453 gl_FUNC_LOCALECONV 465 gl_FUNC_LOCALECONV
454 if test $REPLACE_LOCALECONV = 1; then 466 gl_CONDITIONAL([GL_COND_OBJ_LOCALECONV], [test $REPLACE_LOCALECONV = 1])
455 AC_LIBOBJ([localeconv]) 467 AM_COND_IF([GL_COND_OBJ_LOCALECONV], [
456 gl_PREREQ_LOCALECONV 468 gl_PREREQ_LOCALECONV
457 fi 469 ])
458 gl_LOCALE_MODULE_INDICATOR([localeconv]) 470 gl_LOCALE_MODULE_INDICATOR([localeconv])
459 gl_LOCK 471 gl_LOCK
460 gl_MODULE_INDICATOR([lock]) 472 gl_MODULE_INDICATOR([lock])
461 gl_FUNC_LSEEK 473 gl_FUNC_LSEEK
462 if test $REPLACE_LSEEK = 1; then 474 gl_CONDITIONAL([GL_COND_OBJ_LSEEK], [test $REPLACE_LSEEK = 1])
463 AC_LIBOBJ([lseek])
464 fi
465 gl_UNISTD_MODULE_INDICATOR([lseek]) 475 gl_UNISTD_MODULE_INDICATOR([lseek])
466 gl_FUNC_MALLOC_GNU 476 gl_FUNC_MALLOC_GNU
467 if test $REPLACE_MALLOC = 1; then 477 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
468 AC_LIBOBJ([malloc]) 478 AC_LIBOBJ([malloc])
469 fi 479 fi
480 gl_STDLIB_MODULE_INDICATOR([malloc-gnu])
470 AC_REQUIRE([gl_FUNC_MALLOC_POSIX]) 481 AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
471 if test $REPLACE_MALLOC = 1; then 482 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
472 AC_LIBOBJ([malloc]) 483 AC_LIBOBJ([malloc])
473 fi 484 fi
474 gl_STDLIB_MODULE_INDICATOR([malloc-posix]) 485 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
475 gl_MALLOCA 486 gl_MALLOCA
476 gl_MATH_H 487 gl_MATH_H
477 gl_MATH_H_REQUIRE_DEFAULTS 488 gl_MATH_H_REQUIRE_DEFAULTS
489 AC_PROG_MKDIR_P
478 gl_FUNC_MBRTOWC 490 gl_FUNC_MBRTOWC
479 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 491 gl_CONDITIONAL([GL_COND_OBJ_MBRTOWC],
480 AC_LIBOBJ([mbrtowc]) 492 [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1])
493 AM_COND_IF([GL_COND_OBJ_MBRTOWC], [
481 if test $REPLACE_MBSTATE_T = 1; then 494 if test $REPLACE_MBSTATE_T = 1; then
482 AC_LIBOBJ([lc-charset-dispatch]) 495 AC_LIBOBJ([lc-charset-dispatch])
483 AC_LIBOBJ([mbtowc-lock]) 496 AC_LIBOBJ([mbtowc-lock])
484 gl_PREREQ_MBTOWC_LOCK 497 gl_PREREQ_MBTOWC_LOCK
485 fi 498 fi
486 gl_PREREQ_MBRTOWC 499 gl_PREREQ_MBRTOWC
487 fi 500 ])
488 gl_WCHAR_MODULE_INDICATOR([mbrtowc]) 501 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
489 gl_FUNC_MBSINIT 502 gl_FUNC_MBSINIT
490 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then 503 gl_CONDITIONAL([GL_COND_OBJ_MBSINIT],
491 AC_LIBOBJ([mbsinit]) 504 [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1])
505 AM_COND_IF([GL_COND_OBJ_MBSINIT], [
492 gl_PREREQ_MBSINIT 506 gl_PREREQ_MBSINIT
493 fi 507 ])
494 gl_WCHAR_MODULE_INDICATOR([mbsinit]) 508 gl_WCHAR_MODULE_INDICATOR([mbsinit])
495 gl_FUNC_MBTOWC 509 gl_FUNC_MBTOWC
496 if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then 510 gl_CONDITIONAL([GL_COND_OBJ_MBTOWC],
497 AC_LIBOBJ([mbtowc]) 511 [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1])
512 AM_COND_IF([GL_COND_OBJ_MBTOWC], [
498 gl_PREREQ_MBTOWC 513 gl_PREREQ_MBTOWC
499 fi 514 ])
500 gl_STDLIB_MODULE_INDICATOR([mbtowc]) 515 gl_STDLIB_MODULE_INDICATOR([mbtowc])
501 gl_FUNC_MEMCHR 516 gl_FUNC_MEMCHR
502 if test $REPLACE_MEMCHR = 1; then 517 gl_CONDITIONAL([GL_COND_OBJ_MEMCHR], [test $REPLACE_MEMCHR = 1])
503 AC_LIBOBJ([memchr]) 518 AM_COND_IF([GL_COND_OBJ_MEMCHR], [
504 gl_PREREQ_MEMCHR 519 gl_PREREQ_MEMCHR
505 fi 520 ])
506 gl_STRING_MODULE_INDICATOR([memchr]) 521 gl_STRING_MODULE_INDICATOR([memchr])
507 gl_MINMAX 522 gl_MINMAX
508 gl_FUNC_MKTIME 523 gl_FUNC_MKTIME
@@ -517,72 +532,74 @@ AC_DEFUN([gl_INIT],
517 gl_PREREQ_MKTIME 532 gl_PREREQ_MKTIME
518 fi 533 fi
519 gl_MOUNTLIST 534 gl_MOUNTLIST
520 if test $gl_cv_list_mounted_fs = yes; then 535 gl_CONDITIONAL([GL_COND_OBJ_MOUNTLIST], [test $gl_cv_list_mounted_fs = yes])
521 AC_LIBOBJ([mountlist]) 536 AM_COND_IF([GL_COND_OBJ_MOUNTLIST], [
522 gl_PREREQ_MOUNTLIST_EXTRA 537 gl_PREREQ_MOUNTLIST_EXTRA
523 fi 538 ])
524 AC_REQUIRE([gl_MSVC_INVAL]) 539 AC_REQUIRE([gl_MSVC_INVAL])
525 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 540 gl_CONDITIONAL([GL_COND_OBJ_MSVC_INVAL],
526 AC_LIBOBJ([msvc-inval]) 541 [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
527 fi
528 AC_REQUIRE([gl_MSVC_NOTHROW]) 542 AC_REQUIRE([gl_MSVC_NOTHROW])
529 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 543 gl_CONDITIONAL([GL_COND_OBJ_MSVC_NOTHROW],
530 AC_LIBOBJ([msvc-nothrow]) 544 [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
531 fi
532 gl_MODULE_INDICATOR([msvc-nothrow]) 545 gl_MODULE_INDICATOR([msvc-nothrow])
533 gl_MULTIARCH 546 gl_MULTIARCH
534 gl_NETDB_H 547 gl_NETDB_H
535 gl_NETDB_H_REQUIRE_DEFAULTS 548 gl_NETDB_H_REQUIRE_DEFAULTS
549 AC_PROG_MKDIR_P
536 gl_HEADER_NETINET_IN 550 gl_HEADER_NETINET_IN
551 gl_CONDITIONAL_HEADER([netinet/in.h])
537 AC_PROG_MKDIR_P 552 AC_PROG_MKDIR_P
538 gl_FUNC_NL_LANGINFO 553 gl_FUNC_NL_LANGINFO
539 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then 554 gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO],
540 AC_LIBOBJ([nl_langinfo]) 555 [test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1])
541 fi 556 gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO_LOCK],
557 [test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0])
542 if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then 558 if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
543 AC_LIBOBJ([nl_langinfo-lock])
544 gl_PREREQ_NL_LANGINFO_LOCK 559 gl_PREREQ_NL_LANGINFO_LOCK
545 fi 560 fi
546 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo]) 561 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
547 gl_FUNC_OPEN 562 gl_FUNC_OPEN
548 if test $REPLACE_OPEN = 1; then 563 gl_CONDITIONAL([GL_COND_OBJ_OPEN], [test $REPLACE_OPEN = 1])
549 AC_LIBOBJ([open]) 564 AM_COND_IF([GL_COND_OBJ_OPEN], [
550 gl_PREREQ_OPEN 565 gl_PREREQ_OPEN
551 fi 566 ])
552 gl_FCNTL_MODULE_INDICATOR([open]) 567 gl_FCNTL_MODULE_INDICATOR([open])
553 gl_PATHMAX 568 gl_PATHMAX
554 gl_FUNC_REALLOC_GNU 569 gl_FUNC_REALLOC_GNU
555 if test $REPLACE_REALLOC = 1; then 570 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
556 AC_LIBOBJ([realloc]) 571 AC_LIBOBJ([realloc])
557 fi 572 fi
573 gl_STDLIB_MODULE_INDICATOR([realloc-gnu])
558 gl_FUNC_REALLOC_POSIX 574 gl_FUNC_REALLOC_POSIX
559 if test $REPLACE_REALLOC = 1; then 575 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
560 AC_LIBOBJ([realloc]) 576 AC_LIBOBJ([realloc])
561 fi 577 fi
562 gl_STDLIB_MODULE_INDICATOR([realloc-posix]) 578 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
563 gl_FUNC_REALLOCARRAY 579 gl_FUNC_REALLOCARRAY
564 if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then 580 gl_CONDITIONAL([GL_COND_OBJ_REALLOCARRAY],
565 AC_LIBOBJ([reallocarray]) 581 [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1])
582 AM_COND_IF([GL_COND_OBJ_REALLOCARRAY], [
566 gl_PREREQ_REALLOCARRAY 583 gl_PREREQ_REALLOCARRAY
567 fi 584 ])
568 gl_MODULE_INDICATOR([reallocarray]) 585 gl_MODULE_INDICATOR([reallocarray])
569 gl_STDLIB_MODULE_INDICATOR([reallocarray]) 586 gl_STDLIB_MODULE_INDICATOR([reallocarray])
570 gl_REGEX 587 gl_REGEX
571 if test $ac_use_included_regex = yes; then 588 gl_CONDITIONAL([GL_COND_OBJ_REGEX], [test $ac_use_included_regex = yes])
572 AC_LIBOBJ([regex]) 589 AM_COND_IF([GL_COND_OBJ_REGEX], [
573 gl_PREREQ_REGEX 590 gl_PREREQ_REGEX
574 fi 591 ])
575 gl_SERVENT 592 gl_SERVENT
576 gl_FUNC_SETENV 593 gl_FUNC_SETENV
577 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then 594 gl_CONDITIONAL([GL_COND_OBJ_SETENV],
578 AC_LIBOBJ([setenv]) 595 [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1])
579 fi
580 gl_STDLIB_MODULE_INDICATOR([setenv]) 596 gl_STDLIB_MODULE_INDICATOR([setenv])
581 gl_FUNC_SETLOCALE_NULL 597 gl_FUNC_SETLOCALE_NULL
582 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then 598 gl_CONDITIONAL([GL_COND_OBJ_SETLOCALE_LOCK],
583 AC_LIBOBJ([setlocale-lock]) 599 [test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0])
600 AM_COND_IF([GL_COND_OBJ_SETLOCALE_LOCK], [
584 gl_PREREQ_SETLOCALE_LOCK 601 gl_PREREQ_SETLOCALE_LOCK
585 fi 602 ])
586 gl_LOCALE_MODULE_INDICATOR([setlocale_null]) 603 gl_LOCALE_MODULE_INDICATOR([setlocale_null])
587 gl_SIZE_MAX 604 gl_SIZE_MAX
588 gl_FUNC_SNPRINTF 605 gl_FUNC_SNPRINTF
@@ -593,25 +610,46 @@ AC_DEFUN([gl_INIT],
593 gl_TYPE_SOCKLEN_T 610 gl_TYPE_SOCKLEN_T
594 gt_TYPE_SSIZE_T 611 gt_TYPE_SSIZE_T
595 gl_FUNC_STAT 612 gl_FUNC_STAT
596 if test $REPLACE_STAT = 1; then 613 gl_CONDITIONAL([GL_COND_OBJ_STAT], [test $REPLACE_STAT = 1])
597 AC_LIBOBJ([stat]) 614 AM_COND_IF([GL_COND_OBJ_STAT], [
598 case "$host_os" in 615 case "$host_os" in
599 mingw*) 616 mingw*)
600 AC_LIBOBJ([stat-w32]) 617 AC_LIBOBJ([stat-w32])
601 ;; 618 ;;
602 esac 619 esac
603 gl_PREREQ_STAT 620 gl_PREREQ_STAT
604 fi 621 ])
605 gl_SYS_STAT_MODULE_INDICATOR([stat]) 622 gl_SYS_STAT_MODULE_INDICATOR([stat])
606 gl_STAT_TIME 623 gl_STAT_TIME
607 gl_STAT_BIRTHTIME 624 gl_STAT_BIRTHTIME
608 gl_STDALIGN_H 625 gl_STDALIGN_H
609 AM_STDBOOL_H 626 gl_CONDITIONAL_HEADER([stdalign.h])
627 AC_PROG_MKDIR_P
628 gl_STDBOOL_H
629 gl_CONDITIONAL_HEADER([stdbool.h])
630 AC_PROG_MKDIR_P
631 AC_CHECK_HEADERS_ONCE([stdckdint.h])
632 if test $ac_cv_header_stdckdint_h = yes; then
633 GL_GENERATE_STDCKDINT_H=false
634 else
635 GL_GENERATE_STDCKDINT_H=true
636 fi
637 gl_CONDITIONAL_HEADER([stdckdint.h])
638 AC_PROG_MKDIR_P
610 gl_STDDEF_H 639 gl_STDDEF_H
611 gl_STDDEF_H_REQUIRE_DEFAULTS 640 gl_STDDEF_H_REQUIRE_DEFAULTS
641 gl_CONDITIONAL_HEADER([stddef.h])
642 AC_PROG_MKDIR_P
612 gl_STDINT_H 643 gl_STDINT_H
644 gl_CONDITIONAL_HEADER([stdint.h])
645 dnl Because of gl_REPLACE_LIMITS_H:
646 gl_CONDITIONAL_HEADER([limits.h])
647 AC_PROG_MKDIR_P
613 gl_STDIO_H 648 gl_STDIO_H
614 gl_STDIO_H_REQUIRE_DEFAULTS 649 gl_STDIO_H_REQUIRE_DEFAULTS
650 AC_PROG_MKDIR_P
651 gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1])
652 gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1])
615 dnl No need to create extra modules for these functions. Everyone who uses 653 dnl No need to create extra modules for these functions. Everyone who uses
616 dnl <stdio.h> likely needs them. 654 dnl <stdio.h> likely needs them.
617 gl_STDIO_MODULE_INDICATOR([fscanf]) 655 gl_STDIO_MODULE_INDICATOR([fscanf])
@@ -637,15 +675,16 @@ AC_DEFUN([gl_INIT],
637 gl_STDIO_MODULE_INDICATOR([fwrite]) 675 gl_STDIO_MODULE_INDICATOR([fwrite])
638 gl_STDLIB_H 676 gl_STDLIB_H
639 gl_STDLIB_H_REQUIRE_DEFAULTS 677 gl_STDLIB_H_REQUIRE_DEFAULTS
678 AC_PROG_MKDIR_P
640 gl_STRCASE 679 gl_STRCASE
641 if test $HAVE_STRCASECMP = 0; then 680 gl_CONDITIONAL([GL_COND_OBJ_STRCASECMP], [test $HAVE_STRCASECMP = 0])
642 AC_LIBOBJ([strcasecmp]) 681 AM_COND_IF([GL_COND_OBJ_STRCASECMP], [
643 gl_PREREQ_STRCASECMP 682 gl_PREREQ_STRCASECMP
644 fi 683 ])
645 if test $HAVE_STRNCASECMP = 0; then 684 gl_CONDITIONAL([GL_COND_OBJ_STRNCASECMP], [test $HAVE_STRNCASECMP = 0])
646 AC_LIBOBJ([strncasecmp]) 685 AM_COND_IF([GL_COND_OBJ_STRNCASECMP], [
647 gl_PREREQ_STRNCASECMP 686 gl_PREREQ_STRNCASECMP
648 fi 687 ])
649 gl_FUNC_STRCASESTR 688 gl_FUNC_STRCASESTR
650 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then 689 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
651 AC_LIBOBJ([strcasestr]) 690 AC_LIBOBJ([strcasestr])
@@ -658,26 +697,27 @@ AC_DEFUN([gl_INIT],
658 fi 697 fi
659 gl_STRING_MODULE_INDICATOR([strcasestr]) 698 gl_STRING_MODULE_INDICATOR([strcasestr])
660 gl_FUNC_STRERROR 699 gl_FUNC_STRERROR
661 if test $REPLACE_STRERROR = 1; then 700 gl_CONDITIONAL([GL_COND_OBJ_STRERROR], [test $REPLACE_STRERROR = 1])
662 AC_LIBOBJ([strerror])
663 fi
664 gl_MODULE_INDICATOR([strerror]) 701 gl_MODULE_INDICATOR([strerror])
665 gl_STRING_MODULE_INDICATOR([strerror]) 702 gl_STRING_MODULE_INDICATOR([strerror])
666 AC_REQUIRE([gl_HEADER_ERRNO_H]) 703 AC_REQUIRE([gl_HEADER_ERRNO_H])
667 AC_REQUIRE([gl_FUNC_STRERROR_0]) 704 AC_REQUIRE([gl_FUNC_STRERROR_0])
668 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then 705 gl_CONDITIONAL([GL_COND_OBJ_STRERROR_OVERRIDE],
669 AC_LIBOBJ([strerror-override]) 706 [test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1])
707 AM_COND_IF([GL_COND_OBJ_STRERROR_OVERRIDE], [
670 gl_PREREQ_SYS_H_WINSOCK2 708 gl_PREREQ_SYS_H_WINSOCK2
671 fi 709 ])
672 gl_STRING_H 710 gl_STRING_H
673 gl_STRING_H_REQUIRE_DEFAULTS 711 gl_STRING_H_REQUIRE_DEFAULTS
712 AC_PROG_MKDIR_P
674 gl_STRINGS_H 713 gl_STRINGS_H
675 gl_STRINGS_H_REQUIRE_DEFAULTS 714 gl_STRINGS_H_REQUIRE_DEFAULTS
715 AC_PROG_MKDIR_P
676 gl_FUNC_STRSEP 716 gl_FUNC_STRSEP
677 if test $HAVE_STRSEP = 0; then 717 gl_CONDITIONAL([GL_COND_OBJ_STRSEP], [test $HAVE_STRSEP = 0])
678 AC_LIBOBJ([strsep]) 718 AM_COND_IF([GL_COND_OBJ_STRSEP], [
679 gl_PREREQ_STRSEP 719 gl_PREREQ_STRSEP
680 fi 720 ])
681 gl_STRING_MODULE_INDICATOR([strsep]) 721 gl_STRING_MODULE_INDICATOR([strsep])
682 gl_FUNC_STRSTR_SIMPLE 722 gl_FUNC_STRSTR_SIMPLE
683 if test $REPLACE_STRSTR = 1; then 723 if test $REPLACE_STRSTR = 1; then
@@ -699,27 +739,33 @@ AC_DEFUN([gl_INIT],
699 AC_REQUIRE([gl_THREADLIB]) 739 AC_REQUIRE([gl_THREADLIB])
700 gl_TIME_H 740 gl_TIME_H
701 gl_TIME_H_REQUIRE_DEFAULTS 741 gl_TIME_H_REQUIRE_DEFAULTS
742 AC_PROG_MKDIR_P
702 gl_TIME_R 743 gl_TIME_R
703 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then 744 gl_CONDITIONAL([GL_COND_OBJ_TIME_R],
704 AC_LIBOBJ([time_r]) 745 [test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1])
746 AM_COND_IF([GL_COND_OBJ_TIME_R], [
705 gl_PREREQ_TIME_R 747 gl_PREREQ_TIME_R
706 fi 748 ])
707 gl_TIME_MODULE_INDICATOR([time_r]) 749 gl_TIME_MODULE_INDICATOR([time_r])
708 gl_FUNC_TIMEGM 750 gl_FUNC_TIMEGM
709 if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then 751 gl_CONDITIONAL([GL_COND_OBJ_TIMEGM],
710 AC_LIBOBJ([timegm]) 752 [test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1])
753 AM_COND_IF([GL_COND_OBJ_TIMEGM], [
711 gl_PREREQ_TIMEGM 754 gl_PREREQ_TIMEGM
712 fi 755 ])
713 gl_TIME_MODULE_INDICATOR([timegm]) 756 gl_TIME_MODULE_INDICATOR([timegm])
714 gl_UNISTD_H 757 gl_UNISTD_H
715 gl_UNISTD_H_REQUIRE_DEFAULTS 758 gl_UNISTD_H_REQUIRE_DEFAULTS
759 AC_PROG_MKDIR_P
716 gl_FUNC_GLIBC_UNLOCKED_IO 760 gl_FUNC_GLIBC_UNLOCKED_IO
717 gl_FUNC_UNSETENV 761 gl_FUNC_UNSETENV
718 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then 762 gl_CONDITIONAL([GL_COND_OBJ_UNSETENV],
719 AC_LIBOBJ([unsetenv]) 763 [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1])
764 AM_COND_IF([GL_COND_OBJ_UNSETENV], [
720 gl_PREREQ_UNSETENV 765 gl_PREREQ_UNSETENV
721 fi 766 ])
722 gl_STDLIB_MODULE_INDICATOR([unsetenv]) 767 gl_STDLIB_MODULE_INDICATOR([unsetenv])
768 AC_C_VARARRAYS
723 AC_REQUIRE([AC_C_RESTRICT]) 769 AC_REQUIRE([AC_C_RESTRICT])
724 gl_FUNC_VASNPRINTF 770 gl_FUNC_VASNPRINTF
725 gl_FUNC_VASPRINTF 771 gl_FUNC_VASPRINTF
@@ -731,38 +777,29 @@ AC_DEFUN([gl_INIT],
731 gl_STDIO_MODULE_INDICATOR([vsnprintf]) 777 gl_STDIO_MODULE_INDICATOR([vsnprintf])
732 gl_WCHAR_H 778 gl_WCHAR_H
733 gl_WCHAR_H_REQUIRE_DEFAULTS 779 gl_WCHAR_H_REQUIRE_DEFAULTS
780 AC_PROG_MKDIR_P
734 gl_FUNC_WCRTOMB 781 gl_FUNC_WCRTOMB
735 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then 782 gl_CONDITIONAL([GL_COND_OBJ_WCRTOMB],
736 AC_LIBOBJ([wcrtomb]) 783 [test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1])
784 AM_COND_IF([GL_COND_OBJ_WCRTOMB], [
737 gl_PREREQ_WCRTOMB 785 gl_PREREQ_WCRTOMB
738 fi 786 ])
739 gl_WCHAR_MODULE_INDICATOR([wcrtomb]) 787 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
740 gl_WCTYPE_H 788 gl_WCTYPE_H
741 gl_WCTYPE_H_REQUIRE_DEFAULTS 789 gl_WCTYPE_H_REQUIRE_DEFAULTS
790 AC_PROG_MKDIR_P
742 AC_REQUIRE([AC_CANONICAL_HOST]) 791 AC_REQUIRE([AC_CANONICAL_HOST])
743 case "$host_os" in 792 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_MUTEX],
744 mingw*) 793 [case "$host_os" in mingw*) true;; *) false;; esac])
745 AC_LIBOBJ([windows-mutex])
746 ;;
747 esac
748 AC_REQUIRE([AC_CANONICAL_HOST]) 794 AC_REQUIRE([AC_CANONICAL_HOST])
749 case "$host_os" in 795 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_ONCE],
750 mingw*) 796 [case "$host_os" in mingw*) true;; *) false;; esac])
751 AC_LIBOBJ([windows-once])
752 ;;
753 esac
754 AC_REQUIRE([AC_CANONICAL_HOST]) 797 AC_REQUIRE([AC_CANONICAL_HOST])
755 case "$host_os" in 798 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_RECMUTEX],
756 mingw*) 799 [case "$host_os" in mingw*) true;; *) false;; esac])
757 AC_LIBOBJ([windows-recmutex])
758 ;;
759 esac
760 AC_REQUIRE([AC_CANONICAL_HOST]) 800 AC_REQUIRE([AC_CANONICAL_HOST])
761 case "$host_os" in 801 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_RWLOCK],
762 mingw*) 802 [case "$host_os" in mingw*) true;; *) false;; esac])
763 AC_LIBOBJ([windows-rwlock])
764 ;;
765 esac
766 gl_XALLOC 803 gl_XALLOC
767 gl_MODULE_INDICATOR([xalloc]) 804 gl_MODULE_INDICATOR([xalloc])
768 gl_MODULE_INDICATOR([xalloc-die]) 805 gl_MODULE_INDICATOR([xalloc-die])
@@ -789,16 +826,28 @@ AC_DEFUN([gl_INIT],
789 AC_CONFIG_COMMANDS_PRE([ 826 AC_CONFIG_COMMANDS_PRE([
790 gl_libobjs= 827 gl_libobjs=
791 gl_ltlibobjs= 828 gl_ltlibobjs=
829 gl_libobjdeps=
792 if test -n "$gl_LIBOBJS"; then 830 if test -n "$gl_LIBOBJS"; then
793 # Remove the extension. 831 # Remove the extension.
832changequote(,)dnl
794 sed_drop_objext='s/\.o$//;s/\.obj$//' 833 sed_drop_objext='s/\.o$//;s/\.obj$//'
834 sed_dirname1='s,//*,/,g'
835 sed_dirname2='s,\(.\)/$,\1,'
836 sed_dirname3='s,^[^/]*$,.,'
837 sed_dirname4='s,\(.\)/[^/]*$,\1,'
838 sed_basename1='s,.*/,,'
839changequote([, ])dnl
795 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 840 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
796 gl_libobjs="$gl_libobjs $i.$ac_objext" 841 gl_libobjs="$gl_libobjs $i.$ac_objext"
797 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 842 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
843 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
844 i_base=`echo "$i" | sed -e "$sed_basename1"`
845 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
798 done 846 done
799 fi 847 fi
800 AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) 848 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
801 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) 849 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
850 AC_SUBST([gl_LIBOBJDEPS], [$gl_libobjdeps])
802 ]) 851 ])
803 gltests_libdeps= 852 gltests_libdeps=
804 gltests_ltlibdeps= 853 gltests_ltlibdeps=
@@ -811,6 +860,7 @@ AC_DEFUN([gl_INIT],
811 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL]) 860 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
812 gl_COMMON 861 gl_COMMON
813 gl_source_base='tests' 862 gl_source_base='tests'
863 gl_source_base_prefix=
814changequote(,)dnl 864changequote(,)dnl
815 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS 865 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
816changequote([, ])dnl 866changequote([, ])dnl
@@ -839,17 +889,30 @@ changequote([, ])dnl
839 AC_CONFIG_COMMANDS_PRE([ 889 AC_CONFIG_COMMANDS_PRE([
840 gltests_libobjs= 890 gltests_libobjs=
841 gltests_ltlibobjs= 891 gltests_ltlibobjs=
892 gltests_libobjdeps=
842 if test -n "$gltests_LIBOBJS"; then 893 if test -n "$gltests_LIBOBJS"; then
843 # Remove the extension. 894 # Remove the extension.
895changequote(,)dnl
844 sed_drop_objext='s/\.o$//;s/\.obj$//' 896 sed_drop_objext='s/\.o$//;s/\.obj$//'
897 sed_dirname1='s,//*,/,g'
898 sed_dirname2='s,\(.\)/$,\1,'
899 sed_dirname3='s,^[^/]*$,.,'
900 sed_dirname4='s,\(.\)/[^/]*$,\1,'
901 sed_basename1='s,.*/,,'
902changequote([, ])dnl
845 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 903 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
846 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 904 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
847 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 905 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
906 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
907 i_base=`echo "$i" | sed -e "$sed_basename1"`
908 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
848 done 909 done
849 fi 910 fi
850 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) 911 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
851 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) 912 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
913 AC_SUBST([gltests_LIBOBJDEPS], [$gltests_libobjdeps])
852 ]) 914 ])
915 AC_REQUIRE([gl_CC_GNULIB_WARNINGS])
853 LIBGNU_LIBDEPS="$gl_libdeps" 916 LIBGNU_LIBDEPS="$gl_libdeps"
854 AC_SUBST([LIBGNU_LIBDEPS]) 917 AC_SUBST([LIBGNU_LIBDEPS])
855 LIBGNU_LTLIBDEPS="$gl_ltlibdeps" 918 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
@@ -1000,6 +1063,7 @@ AC_DEFUN([gl_FILE_LIST], [
1000 lib/idpriv.h 1063 lib/idpriv.h
1001 lib/idx.h 1064 lib/idx.h
1002 lib/inet_ntop.c 1065 lib/inet_ntop.c
1066 lib/intprops-internal.h
1003 lib/intprops.h 1067 lib/intprops.h
1004 lib/inttypes.in.h 1068 lib/inttypes.in.h
1005 lib/itold.c 1069 lib/itold.c
@@ -1080,9 +1144,12 @@ AC_DEFUN([gl_FILE_LIST], [
1080 lib/stat.c 1144 lib/stat.c
1081 lib/stdalign.in.h 1145 lib/stdalign.in.h
1082 lib/stdbool.in.h 1146 lib/stdbool.in.h
1147 lib/stdckdint.in.h
1083 lib/stddef.in.h 1148 lib/stddef.in.h
1084 lib/stdint.in.h 1149 lib/stdint.in.h
1085 lib/stdio-impl.h 1150 lib/stdio-impl.h
1151 lib/stdio-read.c
1152 lib/stdio-write.c
1086 lib/stdio.in.h 1153 lib/stdio.in.h
1087 lib/stdlib.in.h 1154 lib/stdlib.in.h
1088 lib/str-two-way.h 1155 lib/str-two-way.h
@@ -1285,6 +1352,7 @@ AC_DEFUN([gl_FILE_LIST], [
1285 m4/ungetc.m4 1352 m4/ungetc.m4
1286 m4/unistd_h.m4 1353 m4/unistd_h.m4
1287 m4/unlocked-io.m4 1354 m4/unlocked-io.m4
1355 m4/vararrays.m4
1288 m4/vasnprintf.m4 1356 m4/vasnprintf.m4
1289 m4/vasprintf.m4 1357 m4/vasprintf.m4
1290 m4/visibility.m4 1358 m4/visibility.m4
diff --git a/gl/m4/gnulib-tool.m4 b/gl/m4/gnulib-tool.m4
index 3d56d83..8428901 100644
--- a/gl/m4/gnulib-tool.m4
+++ b/gl/m4/gnulib-tool.m4
@@ -1,5 +1,5 @@
1# gnulib-tool.m4 serial 2 1# gnulib-tool.m4 serial 4
2dnl Copyright (C) 2004-2005, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2004-2005, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -44,6 +44,12 @@ AC_DEFUN([gl_LGPL], [])
44dnl Usage: gl_MAKEFILE_NAME([FILENAME]) 44dnl Usage: gl_MAKEFILE_NAME([FILENAME])
45AC_DEFUN([gl_MAKEFILE_NAME], []) 45AC_DEFUN([gl_MAKEFILE_NAME], [])
46 46
47dnl Usage: gl_TESTS_MAKEFILE_NAME([FILENAME])
48AC_DEFUN([gl_TESTS_MAKEFILE_NAME], [])
49
50dnl Usage: gl_AUTOMAKE_SUBDIR
51AC_DEFUN([gl_AUTOMAKE_SUBDIR], [])
52
47dnl Usage: gl_LIBTOOL 53dnl Usage: gl_LIBTOOL
48AC_DEFUN([gl_LIBTOOL], []) 54AC_DEFUN([gl_LIBTOOL], [])
49 55
diff --git a/gl/m4/host-cpu-c-abi.m4 b/gl/m4/host-cpu-c-abi.m4
index 64e28b1..b922324 100644
--- a/gl/m4/host-cpu-c-abi.m4
+++ b/gl/m4/host-cpu-c-abi.m4
@@ -1,5 +1,5 @@
1# host-cpu-c-abi.m4 serial 14 1# host-cpu-c-abi.m4 serial 15
2dnl Copyright (C) 2002-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -382,6 +382,9 @@ EOF
382#ifndef __ia64__ 382#ifndef __ia64__
383#undef __ia64__ 383#undef __ia64__
384#endif 384#endif
385#ifndef __loongarch64__
386#undef __loongarch64__
387#endif
385#ifndef __m68k__ 388#ifndef __m68k__
386#undef __m68k__ 389#undef __m68k__
387#endif 390#endif
diff --git a/gl/m4/hostent.m4 b/gl/m4/hostent.m4
index f1390a3..69fc5ac 100644
--- a/gl/m4/hostent.m4
+++ b/gl/m4/hostent.m4
@@ -1,5 +1,5 @@
1# hostent.m4 serial 4 1# hostent.m4 serial 4
2dnl Copyright (C) 2008, 2010-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008, 2010-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/iconv.m4 b/gl/m4/iconv.m4
index d0e61de..2065c97 100644
--- a/gl/m4/iconv.m4
+++ b/gl/m4/iconv.m4
@@ -1,5 +1,5 @@
1# iconv.m4 serial 24 1# iconv.m4 serial 26
2dnl Copyright (C) 2000-2002, 2007-2014, 2016-2021 Free Software Foundation, 2dnl Copyright (C) 2000-2002, 2007-2014, 2016-2022 Free Software Foundation,
3dnl Inc. 3dnl 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,
@@ -234,12 +234,6 @@ AC_DEFUN([AM_ICONV_LINK],
234 234
235dnl Define AM_ICONV using AC_DEFUN_ONCE, in order to avoid warnings like 235dnl Define AM_ICONV using AC_DEFUN_ONCE, in order to avoid warnings like
236dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". 236dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required".
237dnl This is tricky because of the way 'aclocal' is implemented:
238dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN.
239dnl Otherwise aclocal's initial scan pass would miss the macro definition.
240dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions.
241dnl Otherwise aclocal would emit many "Use of uninitialized value $1"
242dnl warnings.
243AC_DEFUN_ONCE([AM_ICONV], 237AC_DEFUN_ONCE([AM_ICONV],
244[ 238[
245 AM_ICONV_LINK 239 AM_ICONV_LINK
@@ -280,4 +274,20 @@ size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, si
280 ICONV_CONST="const" 274 ICONV_CONST="const"
281 fi 275 fi
282 ]) 276 ])
277
278 dnl A summary result, for those packages which want to print a summary at the
279 dnl end of the configuration.
280 if test "$am_func_iconv" = yes; then
281 if test -n "$LIBICONV"; then
282 am_cv_func_iconv_summary='yes, in libiconv'
283 else
284 am_cv_func_iconv_summary='yes, in libc'
285 fi
286 else
287 if test "$am_cv_func_iconv" = yes; then
288 am_cv_func_iconv_summary='not working, consider installing GNU libiconv'
289 else
290 am_cv_func_iconv_summary='no, consider installing GNU libiconv'
291 fi
292 fi
283]) 293])
diff --git a/gl/m4/idpriv.m4 b/gl/m4/idpriv.m4
index d96fdd1..b3b1c7b 100644
--- a/gl/m4/idpriv.m4
+++ b/gl/m4/idpriv.m4
@@ -1,5 +1,5 @@
1# idpriv.m4 serial 1 1# idpriv.m4 serial 1
2dnl Copyright (C) 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 bdd542b..a9247f6 100644
--- a/gl/m4/include_next.m4
+++ b/gl/m4/include_next.m4
@@ -1,5 +1,5 @@
1# include_next.m4 serial 26 1# include_next.m4 serial 26
2dnl Copyright (C) 2006-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -193,9 +193,9 @@ AC_DEFUN([gl_NEXT_HEADERS_INTERNAL],
193 if test AS_VAR_GET([gl_header_exists]) = yes; then 193 if test AS_VAR_GET([gl_header_exists]) = yes; then
194 AS_VAR_POPDEF([gl_header_exists]) 194 AS_VAR_POPDEF([gl_header_exists])
195 ]) 195 ])
196 gl_ABSOLUTE_HEADER_ONE(gl_HEADER_NAME) 196 gl_ABSOLUTE_HEADER_ONE(gl_HEADER_NAME)
197 AS_VAR_COPY([gl_header], [gl_cv_absolute_]AS_TR_SH(gl_HEADER_NAME)) 197 AS_VAR_COPY([gl_header], [gl_cv_absolute_]AS_TR_SH(gl_HEADER_NAME))
198 AS_VAR_SET([gl_next_header], ['"'$gl_header'"']) 198 AS_VAR_SET([gl_next_header], ['"'$gl_header'"'])
199 m4_if([$2], [check], 199 m4_if([$2], [check],
200 [else 200 [else
201 AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>']) 201 AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
diff --git a/gl/m4/inet_ntop.m4 b/gl/m4/inet_ntop.m4
index 171f53e..c335cae 100644
--- a/gl/m4/inet_ntop.m4
+++ b/gl/m4/inet_ntop.m4
@@ -1,5 +1,5 @@
1# inet_ntop.m4 serial 21 1# inet_ntop.m4 serial 21
2dnl Copyright (C) 2005-2006, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2005-2006, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/intl-thread-locale.m4 b/gl/m4/intl-thread-locale.m4
index 890fec0..d5d5b26 100644
--- a/gl/m4/intl-thread-locale.m4
+++ b/gl/m4/intl-thread-locale.m4
@@ -1,5 +1,5 @@
1# intl-thread-locale.m4 serial 9 1# intl-thread-locale.m4 serial 9
2dnl Copyright (C) 2015-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2015-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/intlmacosx.m4 b/gl/m4/intlmacosx.m4
index 4ae0d12..ecc88d6 100644
--- a/gl/m4/intlmacosx.m4
+++ b/gl/m4/intlmacosx.m4
@@ -1,5 +1,5 @@
1# intlmacosx.m4 serial 8 (gettext-0.20.2) 1# intlmacosx.m4 serial 8 (gettext-0.20.2)
2dnl Copyright (C) 2004-2014, 2016, 2019-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2004-2014, 2016, 2019-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/intmax_t.m4 b/gl/m4/intmax_t.m4
index 63c4b41..8a15dab 100644
--- a/gl/m4/intmax_t.m4
+++ b/gl/m4/intmax_t.m4
@@ -1,5 +1,5 @@
1# intmax_t.m4 serial 9 1# intmax_t.m4 serial 9
2dnl Copyright (C) 1997-2004, 2006-2007, 2009-2021 Free Software Foundation, 2dnl Copyright (C) 1997-2004, 2006-2007, 2009-2022 Free Software Foundation,
3dnl Inc. 3dnl 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,
diff --git a/gl/m4/inttypes.m4 b/gl/m4/inttypes.m4
index 64b1de5..df25a21 100644
--- a/gl/m4/inttypes.m4
+++ b/gl/m4/inttypes.m4
@@ -1,5 +1,5 @@
1# inttypes.m4 serial 35 1# inttypes.m4 serial 36
2dnl Copyright (C) 2006-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -36,7 +36,7 @@ AC_DEFUN_ONCE([gl_INTTYPES_INCOMPLETE],
36AC_DEFUN([gl_INTTYPES_PRI_SCN], 36AC_DEFUN([gl_INTTYPES_PRI_SCN],
37[ 37[
38 PRIPTR_PREFIX= 38 PRIPTR_PREFIX=
39 if test -n "$STDINT_H"; then 39 if $GL_GENERATE_STDINT_H; then
40 dnl Using the gnulib <stdint.h>. It defines intptr_t to 'long' or 40 dnl Using the gnulib <stdint.h>. It defines intptr_t to 'long' or
41 dnl 'long long', depending on _WIN64. 41 dnl 'long long', depending on _WIN64.
42 AC_COMPILE_IFELSE( 42 AC_COMPILE_IFELSE(
diff --git a/gl/m4/inttypes_h.m4 b/gl/m4/inttypes_h.m4
index 672a93e..6e9eebf 100644
--- a/gl/m4/inttypes_h.m4
+++ b/gl/m4/inttypes_h.m4
@@ -1,5 +1,5 @@
1# inttypes_h.m4 serial 10 1# inttypes_h.m4 serial 10
2dnl Copyright (C) 1997-2004, 2006, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 1997-2004, 2006, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 87959f7..563c8c4 100644
--- a/gl/m4/langinfo_h.m4
+++ b/gl/m4/langinfo_h.m4
@@ -1,5 +1,5 @@
1# langinfo_h.m4 serial 12 1# langinfo_h.m4 serial 12
2dnl Copyright (C) 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/largefile.m4 b/gl/m4/largefile.m4
index fbde5e6..ec9677c 100644
--- a/gl/m4/largefile.m4
+++ b/gl/m4/largefile.m4
@@ -1,7 +1,7 @@
1# Enable large files on systems where this is not the default. 1# Enable large files on systems where this is not the default.
2# Enable support for files on Linux file systems with 64-bit inode numbers. 2# Enable support for files on Linux file systems with 64-bit inode numbers.
3 3
4# Copyright 1992-1996, 1998-2021 Free Software Foundation, Inc. 4# Copyright 1992-1996, 1998-2022 Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation 5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it, 6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved. 7# with or without modifications, as long as this notice is preserved.
@@ -10,8 +10,10 @@
10# It does not set _LARGEFILE_SOURCE=1 on HP-UX/ia64 32-bit, although this 10# It does not set _LARGEFILE_SOURCE=1 on HP-UX/ia64 32-bit, although this
11# setting of _LARGEFILE_SOURCE is needed so that <stdio.h> declares fseeko 11# setting of _LARGEFILE_SOURCE is needed so that <stdio.h> declares fseeko
12# and ftello in C++ mode as well. 12# and ftello in C++ mode as well.
13# Fixed in Autoconf 2.72, which has AC_SYS_YEAR2038.
13AC_DEFUN([gl_SET_LARGEFILE_SOURCE], 14AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
14[ 15[
16 m4_ifndef([AC_SYS_YEAR2038], [
15 AC_REQUIRE([AC_CANONICAL_HOST]) 17 AC_REQUIRE([AC_CANONICAL_HOST])
16 AC_FUNC_FSEEKO 18 AC_FUNC_FSEEKO
17 case "$host_os" in 19 case "$host_os" in
@@ -20,9 +22,10 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
20 [Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).]) 22 [Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).])
21 ;; 23 ;;
22 esac 24 esac
25 ])
23]) 26])
24 27
25# Work around a problem in Autoconf through at least 2.71 on glibc 2.34+ 28# Work around a problem in Autoconf through 2.71 on glibc 2.34+
26# with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: 29# with _TIME_BITS. Also, work around a problem in autoconf <= 2.69:
27# AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, 30# AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
28# or configures them incorrectly in some cases. 31# or configures them incorrectly in some cases.
@@ -43,6 +46,7 @@ m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES],
43]) 46])
44])# m4_version_prereq 2.70 47])# m4_version_prereq 2.70
45 48
49m4_ifndef([AC_SYS_YEAR2038], [
46 50
47# _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, 51# _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE,
48# CACHE-VAR, 52# CACHE-VAR,
@@ -118,6 +122,7 @@ AS_IF([test "$enable_largefile" != no],
118 [64], 122 [64],
119 [gl_YEAR2038_BODY([])])]) 123 [gl_YEAR2038_BODY([])])])
120])# AC_SYS_LARGEFILE 124])# AC_SYS_LARGEFILE
125])# m4_ifndef AC_SYS_YEAR2038
121 126
122# Enable large files on systems where this is implemented by Gnulib, not by the 127# Enable large files on systems where this is implemented by Gnulib, not by the
123# system headers. 128# system headers.
diff --git a/gl/m4/lib-ld.m4 b/gl/m4/lib-ld.m4
index 076358d..934207a 100644
--- a/gl/m4/lib-ld.m4
+++ b/gl/m4/lib-ld.m4
@@ -1,5 +1,5 @@
1# lib-ld.m4 serial 10 1# lib-ld.m4 serial 10
2dnl Copyright (C) 1996-2003, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 1996-2003, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/lib-link.m4 b/gl/m4/lib-link.m4
index 787efab..3b75bcd 100644
--- a/gl/m4/lib-link.m4
+++ b/gl/m4/lib-link.m4
@@ -1,5 +1,5 @@
1# lib-link.m4 serial 32 1# lib-link.m4 serial 33
2dnl Copyright (C) 2001-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2001-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -196,8 +196,8 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
196 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" 196 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
197 ]) 197 ])
198 AC_ARG_WITH(PACK[-prefix], 198 AC_ARG_WITH(PACK[-prefix],
199[[ --with-]]PACK[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib 199[[ --with-]]PACK[[-prefix[=DIR] search for ]]PACKLIBS[[ in DIR/include and DIR/lib
200 --without-]]PACK[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], 200 --without-]]PACK[[-prefix don't search for ]]PACKLIBS[[ in includedir and libdir]],
201[ 201[
202 if test "X$withval" = "Xno"; then 202 if test "X$withval" = "Xno"; then
203 use_additional=no 203 use_additional=no
diff --git a/gl/m4/lib-prefix.m4 b/gl/m4/lib-prefix.m4
index 3c94db0..999f712 100644
--- a/gl/m4/lib-prefix.m4
+++ b/gl/m4/lib-prefix.m4
@@ -1,5 +1,5 @@
1# lib-prefix.m4 serial 19 1# lib-prefix.m4 serial 20
2dnl Copyright (C) 2001-2005, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2001-2005, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -174,7 +174,7 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
174 174
175 AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf], 175 AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf],
176 [AC_EGREP_CPP([Extensible Linking Format], 176 [AC_EGREP_CPP([Extensible Linking Format],
177 [#ifdef __ELF__ 177 [#if defined __ELF__ || (defined __linux__ && defined __EDG__)
178 Extensible Linking Format 178 Extensible Linking Format
179 #endif 179 #endif
180 ], 180 ],
diff --git a/gl/m4/limits-h.m4 b/gl/m4/limits-h.m4
index 00c9fe9..5d5a5bf 100644
--- a/gl/m4/limits-h.m4
+++ b/gl/m4/limits-h.m4
@@ -1,6 +1,6 @@
1dnl Check whether limits.h has needed features. 1dnl Check whether limits.h has needed features.
2 2
3dnl Copyright 2016-2021 Free Software Foundation, Inc. 3dnl Copyright 2016-2022 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.
@@ -27,18 +27,15 @@ AC_DEFUN_ONCE([gl_LIMITS_H],
27 [gl_cv_header_limits_width=yes], 27 [gl_cv_header_limits_width=yes],
28 [gl_cv_header_limits_width=no])]) 28 [gl_cv_header_limits_width=no])])
29 if test "$gl_cv_header_limits_width" = yes; then 29 if test "$gl_cv_header_limits_width" = yes; then
30 LIMITS_H= 30 GL_GENERATE_LIMITS_H=false
31 else 31 else
32 LIMITS_H=limits.h 32 GL_GENERATE_LIMITS_H=true
33 fi 33 fi
34 AC_SUBST([LIMITS_H])
35 AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"])
36]) 34])
37 35
38dnl Unconditionally enables the replacement of <limits.h>. 36dnl Unconditionally enables the replacement of <limits.h>.
39AC_DEFUN([gl_REPLACE_LIMITS_H], 37AC_DEFUN([gl_REPLACE_LIMITS_H],
40[ 38[
41 AC_REQUIRE([gl_LIMITS_H]) 39 AC_REQUIRE([gl_LIMITS_H])
42 LIMITS_H='limits.h' 40 GL_GENERATE_LIMITS_H=true
43 AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"])
44]) 41])
diff --git a/gl/m4/localcharset.m4 b/gl/m4/localcharset.m4
index 04389fc..f5dbbd4 100644
--- a/gl/m4/localcharset.m4
+++ b/gl/m4/localcharset.m4
@@ -1,5 +1,5 @@
1# localcharset.m4 serial 8 1# localcharset.m4 serial 8
2dnl Copyright (C) 2002, 2004, 2006, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002, 2004, 2006, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/locale-fr.m4 b/gl/m4/locale-fr.m4
index b61df7e..3753891 100644
--- a/gl/m4/locale-fr.m4
+++ b/gl/m4/locale-fr.m4
@@ -1,5 +1,5 @@
1# locale-fr.m4 serial 20 1# locale-fr.m4 serial 20
2dnl Copyright (C) 2003, 2005-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2003, 2005-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/locale-ja.m4 b/gl/m4/locale-ja.m4
index cd94288..73a5d1a 100644
--- a/gl/m4/locale-ja.m4
+++ b/gl/m4/locale-ja.m4
@@ -1,5 +1,5 @@
1# locale-ja.m4 serial 15 1# locale-ja.m4 serial 15
2dnl Copyright (C) 2003, 2005-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2003, 2005-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/locale-zh.m4 b/gl/m4/locale-zh.m4
index 1228be8..c997971 100644
--- a/gl/m4/locale-zh.m4
+++ b/gl/m4/locale-zh.m4
@@ -1,5 +1,5 @@
1# locale-zh.m4 serial 15 1# locale-zh.m4 serial 15
2dnl Copyright (C) 2003, 2005-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2003, 2005-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 444a381..ca5d0d0 100644
--- a/gl/m4/locale_h.m4
+++ b/gl/m4/locale_h.m4
@@ -1,5 +1,5 @@
1# locale_h.m4 serial 28 1# locale_h.m4 serial 28
2dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/localeconv.m4 b/gl/m4/localeconv.m4
index e29c7c3..09c1a1a 100644
--- a/gl/m4/localeconv.m4
+++ b/gl/m4/localeconv.m4
@@ -1,5 +1,5 @@
1# localeconv.m4 serial 1 1# localeconv.m4 serial 1
2dnl Copyright (C) 2012-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2012-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/lock.m4 b/gl/m4/lock.m4
index d68c12d..c4cbf07 100644
--- a/gl/m4/lock.m4
+++ b/gl/m4/lock.m4
@@ -1,5 +1,5 @@
1# lock.m4 serial 14 1# lock.m4 serial 14
2dnl Copyright (C) 2005-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2005-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/lseek.m4 b/gl/m4/lseek.m4
index faab09b..0583511 100644
--- a/gl/m4/lseek.m4
+++ b/gl/m4/lseek.m4
@@ -1,5 +1,5 @@
1# lseek.m4 serial 12 1# lseek.m4 serial 12
2dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/malloc.m4 b/gl/m4/malloc.m4
index 972e808..6b76c1e 100644
--- a/gl/m4/malloc.m4
+++ b/gl/m4/malloc.m4
@@ -1,5 +1,5 @@
1# malloc.m4 serial 27 1# malloc.m4 serial 28
2dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -43,8 +43,9 @@ AC_DEFUN([gl_FUNC_MALLOC_GNU],
43[ 43[
44 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 44 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
45 AC_REQUIRE([gl_FUNC_MALLOC_POSIX]) 45 AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
46 if test $REPLACE_MALLOC = 0; then 46 REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX"
47 _AC_FUNC_MALLOC_IF([], [REPLACE_MALLOC=1]) 47 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then
48 _AC_FUNC_MALLOC_IF([], [REPLACE_MALLOC_FOR_MALLOC_GNU=1])
48 fi 49 fi
49]) 50])
50 51
@@ -56,7 +57,7 @@ AC_DEFUN([gl_FUNC_MALLOC_PTRDIFF],
56[ 57[
57 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 58 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
58 AC_REQUIRE([gl_CHECK_MALLOC_PTRDIFF]) 59 AC_REQUIRE([gl_CHECK_MALLOC_PTRDIFF])
59 test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC=1 60 test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1
60]) 61])
61 62
62# Test whether malloc, realloc, calloc refuse to create objects 63# Test whether malloc, realloc, calloc refuse to create objects
@@ -109,7 +110,7 @@ AC_DEFUN([gl_FUNC_MALLOC_POSIX],
109 AC_DEFINE([HAVE_MALLOC_POSIX], [1], 110 AC_DEFINE([HAVE_MALLOC_POSIX], [1],
110 [Define if malloc, realloc, and calloc set errno on allocation failure.]) 111 [Define if malloc, realloc, and calloc set errno on allocation failure.])
111 else 112 else
112 REPLACE_MALLOC=1 113 REPLACE_MALLOC_FOR_MALLOC_POSIX=1
113 fi 114 fi
114]) 115])
115 116
diff --git a/gl/m4/malloca.m4 b/gl/m4/malloca.m4
index 06ed2c6..77eb96a 100644
--- a/gl/m4/malloca.m4
+++ b/gl/m4/malloca.m4
@@ -1,5 +1,5 @@
1# malloca.m4 serial 2 1# malloca.m4 serial 2
2dnl Copyright (C) 2003-2004, 2006-2007, 2009-2021 Free Software Foundation, 2dnl Copyright (C) 2003-2004, 2006-2007, 2009-2022 Free Software Foundation,
3dnl Inc. 3dnl 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,
diff --git a/gl/m4/math_h.m4 b/gl/m4/math_h.m4
index b3a10c3..a08526a 100644
--- a/gl/m4/math_h.m4
+++ b/gl/m4/math_h.m4
@@ -1,5 +1,5 @@
1# math_h.m4 serial 125 1# math_h.m4 serial 125
2dnl Copyright (C) 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mbrtowc.m4 b/gl/m4/mbrtowc.m4
index 1d4e73d..ec8716b 100644
--- a/gl/m4/mbrtowc.m4
+++ b/gl/m4/mbrtowc.m4
@@ -1,5 +1,5 @@
1# mbrtowc.m4 serial 38 -*- coding: utf-8 -*- 1# mbrtowc.m4 serial 38 -*- coding: utf-8 -*-
2dnl Copyright (C) 2001-2002, 2004-2005, 2008-2021 Free Software Foundation, 2dnl Copyright (C) 2001-2002, 2004-2005, 2008-2022 Free Software Foundation,
3dnl Inc. 3dnl 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,
diff --git a/gl/m4/mbsinit.m4 b/gl/m4/mbsinit.m4
index dc6e10d..ebd2d4f 100644
--- a/gl/m4/mbsinit.m4
+++ b/gl/m4/mbsinit.m4
@@ -1,5 +1,5 @@
1# mbsinit.m4 serial 9 1# mbsinit.m4 serial 9
2dnl Copyright (C) 2008, 2010-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008, 2010-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 e7fe358..a6eba1b 100644
--- a/gl/m4/mbstate_t.m4
+++ b/gl/m4/mbstate_t.m4
@@ -1,5 +1,5 @@
1# mbstate_t.m4 serial 14 1# mbstate_t.m4 serial 14
2dnl Copyright (C) 2000-2002, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2000-2002, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mbtowc.m4 b/gl/m4/mbtowc.m4
index 7fc74c9..2827e83 100644
--- a/gl/m4/mbtowc.m4
+++ b/gl/m4/mbtowc.m4
@@ -1,5 +1,5 @@
1# mbtowc.m4 serial 3 1# mbtowc.m4 serial 3
2dnl Copyright (C) 2011-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/memchr.m4 b/gl/m4/memchr.m4
index ca08192..c7489d8 100644
--- a/gl/m4/memchr.m4
+++ b/gl/m4/memchr.m4
@@ -1,5 +1,5 @@
1# memchr.m4 serial 18 1# memchr.m4 serial 18
2dnl Copyright (C) 2002-2004, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2004, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/minmax.m4 b/gl/m4/minmax.m4
index e21a687..b976739 100644
--- a/gl/m4/minmax.m4
+++ b/gl/m4/minmax.m4
@@ -1,5 +1,5 @@
1# minmax.m4 serial 4 1# minmax.m4 serial 4
2dnl Copyright (C) 2005, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mktime.m4 b/gl/m4/mktime.m4
index 721189a..431b17d 100644
--- a/gl/m4/mktime.m4
+++ b/gl/m4/mktime.m4
@@ -1,5 +1,5 @@
1# serial 36 1# serial 37
2dnl Copyright (C) 2002-2003, 2005-2007, 2009-2021 Free Software Foundation, 2dnl Copyright (C) 2002-2003, 2005-2007, 2009-2022 Free Software Foundation,
3dnl Inc. 3dnl 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,
@@ -82,7 +82,8 @@ spring_forward_gap ()
82 instead of "TZ=America/Vancouver" in order to detect the bug even 82 instead of "TZ=America/Vancouver" in order to detect the bug even
83 on systems that don't support the Olson extension, or don't have the 83 on systems that don't support the Olson extension, or don't have the
84 full zoneinfo tables installed. */ 84 full zoneinfo tables installed. */
85 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 85 if (putenv ("TZ=PST8PDT,M4.1.0,M10.5.0") != 0)
86 return -1;
86 87
87 tm.tm_year = 98; 88 tm.tm_year = 98;
88 tm.tm_mon = 3; 89 tm.tm_mon = 3;
@@ -170,7 +171,8 @@ year_2050_test ()
170 instead of "TZ=America/Vancouver" in order to detect the bug even 171 instead of "TZ=America/Vancouver" in order to detect the bug even
171 on systems that don't support the Olson extension, or don't have the 172 on systems that don't support the Olson extension, or don't have the
172 full zoneinfo tables installed. */ 173 full zoneinfo tables installed. */
173 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); 174 if (putenv ("TZ=PST8PDT,M4.1.0,M10.5.0") != 0)
175 return -1;
174 176
175 t = mktime (&tm); 177 t = mktime (&tm);
176 178
@@ -181,6 +183,25 @@ year_2050_test ()
181 || (0 < t && answer - 120 <= t && t <= answer + 120)); 183 || (0 < t && answer - 120 <= t && t <= answer + 120));
182} 184}
183 185
186static int
187indiana_test ()
188{
189 if (putenv ("TZ=America/Indiana/Indianapolis") != 0)
190 return -1;
191 struct tm tm;
192 tm.tm_year = 1986 - 1900; tm.tm_mon = 4 - 1; tm.tm_mday = 28;
193 tm.tm_hour = 16; tm.tm_min = 24; tm.tm_sec = 50; tm.tm_isdst = 0;
194 time_t std = mktime (&tm);
195 if (! (std == 515107490 || std == 515107503))
196 return 1;
197
198 /* This platform supports TZDB, either without or with leap seconds.
199 Return true if GNU Bug#48085 is absent. */
200 tm.tm_isdst = 1;
201 time_t dst = mktime (&tm);
202 return std - dst == 60 * 60;
203}
204
184int 205int
185main () 206main ()
186{ 207{
@@ -236,7 +257,7 @@ main ()
236 result |= 16; 257 result |= 16;
237 if (! spring_forward_gap ()) 258 if (! spring_forward_gap ())
238 result |= 32; 259 result |= 32;
239 if (! year_2050_test ()) 260 if (! year_2050_test () || ! indiana_test ())
240 result |= 64; 261 result |= 64;
241 return result; 262 return result;
242}]])], 263}]])],
diff --git a/gl/m4/mmap-anon.m4 b/gl/m4/mmap-anon.m4
index e47aa2d..a4580ff 100644
--- a/gl/m4/mmap-anon.m4
+++ b/gl/m4/mmap-anon.m4
@@ -1,5 +1,5 @@
1# mmap-anon.m4 serial 12 1# mmap-anon.m4 serial 12
2dnl Copyright (C) 2005, 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mode_t.m4 b/gl/m4/mode_t.m4
index 3bd4b89..e08d27a 100644
--- a/gl/m4/mode_t.m4
+++ b/gl/m4/mode_t.m4
@@ -1,5 +1,5 @@
1# mode_t.m4 serial 2 1# mode_t.m4 serial 2
2dnl Copyright (C) 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/mountlist.m4 b/gl/m4/mountlist.m4
index 49029ed..a3f72df 100644
--- a/gl/m4/mountlist.m4
+++ b/gl/m4/mountlist.m4
@@ -1,5 +1,5 @@
1# serial 15 1# serial 15
2dnl Copyright (C) 2002-2006, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/msvc-inval.m4 b/gl/m4/msvc-inval.m4
index 3ba5b4e..b32cf6e 100644
--- a/gl/m4/msvc-inval.m4
+++ b/gl/m4/msvc-inval.m4
@@ -1,5 +1,5 @@
1# msvc-inval.m4 serial 1 1# msvc-inval.m4 serial 1
2dnl Copyright (C) 2011-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 aae25ce..16ceb1f 100644
--- a/gl/m4/msvc-nothrow.m4
+++ b/gl/m4/msvc-nothrow.m4
@@ -1,5 +1,5 @@
1# msvc-nothrow.m4 serial 1 1# msvc-nothrow.m4 serial 1
2dnl Copyright (C) 2011-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/multiarch.m4 b/gl/m4/multiarch.m4
index f1678d9..5d94276 100644
--- a/gl/m4/multiarch.m4
+++ b/gl/m4/multiarch.m4
@@ -1,5 +1,5 @@
1# multiarch.m4 serial 9 1# multiarch.m4 serial 9
2dnl Copyright (C) 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 eb7c3b8..d6a9d70 100644
--- a/gl/m4/netdb_h.m4
+++ b/gl/m4/netdb_h.m4
@@ -1,5 +1,5 @@
1# netdb_h.m4 serial 15 1# netdb_h.m4 serial 15
2dnl Copyright (C) 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 c555596..de26fe8 100644
--- a/gl/m4/netinet_in_h.m4
+++ b/gl/m4/netinet_in_h.m4
@@ -1,5 +1,5 @@
1# netinet_in_h.m4 serial 5 1# netinet_in_h.m4 serial 6
2dnl Copyright (C) 2006-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -14,9 +14,9 @@ AC_DEFUN([gl_HEADER_NETINET_IN],
14 [gl_cv_header_netinet_in_h_selfcontained=no]) 14 [gl_cv_header_netinet_in_h_selfcontained=no])
15 ]) 15 ])
16 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then 16 if test $gl_cv_header_netinet_in_h_selfcontained = yes; then
17 NETINET_IN_H='' 17 GL_GENERATE_NETINET_IN_H=false
18 else 18 else
19 NETINET_IN_H='netinet/in.h' 19 GL_GENERATE_NETINET_IN_H=true
20 AC_CHECK_HEADERS([netinet/in.h]) 20 AC_CHECK_HEADERS([netinet/in.h])
21 gl_CHECK_NEXT_HEADERS([netinet/in.h]) 21 gl_CHECK_NEXT_HEADERS([netinet/in.h])
22 if test $ac_cv_header_netinet_in_h = yes; then 22 if test $ac_cv_header_netinet_in_h = yes; then
@@ -26,6 +26,4 @@ AC_DEFUN([gl_HEADER_NETINET_IN],
26 fi 26 fi
27 AC_SUBST([HAVE_NETINET_IN_H]) 27 AC_SUBST([HAVE_NETINET_IN_H])
28 fi 28 fi
29 AC_SUBST([NETINET_IN_H])
30 AM_CONDITIONAL([GL_GENERATE_NETINET_IN_H], [test -n "$NETINET_IN_H"])
31]) 29])
diff --git a/gl/m4/nl_langinfo.m4 b/gl/m4/nl_langinfo.m4
index 6ad32c8..d20a09c 100644
--- a/gl/m4/nl_langinfo.m4
+++ b/gl/m4/nl_langinfo.m4
@@ -1,5 +1,5 @@
1# nl_langinfo.m4 serial 8 1# nl_langinfo.m4 serial 8
2dnl Copyright (C) 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/nls.m4 b/gl/m4/nls.m4
index f4f6b80..7c11c90 100644
--- a/gl/m4/nls.m4
+++ b/gl/m4/nls.m4
@@ -1,5 +1,5 @@
1# nls.m4 serial 6 (gettext-0.20.2) 1# nls.m4 serial 6 (gettext-0.20.2)
2dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016, 2019-2021 Free 2dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016, 2019-2022 Free
3dnl Software Foundation, Inc. 3dnl 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,
diff --git a/gl/m4/nocrash.m4 b/gl/m4/nocrash.m4
index 27412cd..91f00c1 100644
--- a/gl/m4/nocrash.m4
+++ b/gl/m4/nocrash.m4
@@ -1,5 +1,5 @@
1# nocrash.m4 serial 5 1# nocrash.m4 serial 5
2dnl Copyright (C) 2005, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 bdec43c..0890ada 100644
--- a/gl/m4/off_t.m4
+++ b/gl/m4/off_t.m4
@@ -1,5 +1,5 @@
1# off_t.m4 serial 1 1# off_t.m4 serial 1
2dnl Copyright (C) 2012-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2012-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 542a90f..16cd5ec 100644
--- a/gl/m4/open-cloexec.m4
+++ b/gl/m4/open-cloexec.m4
@@ -1,6 +1,6 @@
1# Test whether O_CLOEXEC is defined. 1# Test whether O_CLOEXEC is defined.
2 2
3dnl Copyright 2017-2021 Free Software Foundation, Inc. 3dnl Copyright 2017-2022 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 e619039..4fbf491 100644
--- a/gl/m4/open-slash.m4
+++ b/gl/m4/open-slash.m4
@@ -1,5 +1,5 @@
1# open-slash.m4 serial 2 1# open-slash.m4 serial 2
2dnl Copyright (C) 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/open.m4 b/gl/m4/open.m4
index c634386..f82fd6c 100644
--- a/gl/m4/open.m4
+++ b/gl/m4/open.m4
@@ -1,5 +1,5 @@
1# open.m4 serial 15 1# open.m4 serial 15
2dnl Copyright (C) 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/pathmax.m4 b/gl/m4/pathmax.m4
index e67c656..44add99 100644
--- a/gl/m4/pathmax.m4
+++ b/gl/m4/pathmax.m4
@@ -1,5 +1,5 @@
1# pathmax.m4 serial 11 1# pathmax.m4 serial 11
2dnl Copyright (C) 2002-2003, 2005-2006, 2009-2021 Free Software Foundation, 2dnl Copyright (C) 2002-2003, 2005-2006, 2009-2022 Free Software Foundation,
3dnl Inc. 3dnl 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,
diff --git a/gl/m4/pid_t.m4 b/gl/m4/pid_t.m4
index b7650a1..cb26f36 100644
--- a/gl/m4/pid_t.m4
+++ b/gl/m4/pid_t.m4
@@ -1,5 +1,5 @@
1# pid_t.m4 serial 4 1# pid_t.m4 serial 4
2dnl Copyright (C) 2020-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2020-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/po.m4 b/gl/m4/po.m4
index 66bea3e..ace6f96 100644
--- a/gl/m4/po.m4
+++ b/gl/m4/po.m4
@@ -1,5 +1,5 @@
1# po.m4 serial 31 (gettext-0.20.2) 1# po.m4 serial 31 (gettext-0.20.2)
2dnl Copyright (C) 1995-2014, 2016, 2018-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 1995-2014, 2016, 2018-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/printf.m4 b/gl/m4/printf.m4
index 284c7c5..667452e 100644
--- a/gl/m4/printf.m4
+++ b/gl/m4/printf.m4
@@ -1,5 +1,5 @@
1# printf.m4 serial 73 1# printf.m4 serial 73
2dnl Copyright (C) 2003, 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2003, 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/progtest.m4 b/gl/m4/progtest.m4
index 9e8823c..4a5b0b4 100644
--- a/gl/m4/progtest.m4
+++ b/gl/m4/progtest.m4
@@ -1,5 +1,5 @@
1# progtest.m4 serial 9 (gettext-0.21.1) 1# progtest.m4 serial 9 (gettext-0.21.1)
2dnl Copyright (C) 1996-2003, 2005, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 1996-2003, 2005, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 a5fbead..8ad7839 100644
--- a/gl/m4/pthread_rwlock_rdlock.m4
+++ b/gl/m4/pthread_rwlock_rdlock.m4
@@ -1,5 +1,5 @@
1# pthread_rwlock_rdlock.m4 serial 4 1# pthread_rwlock_rdlock.m4 serial 4
2dnl Copyright (C) 2017-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2017-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/realloc.m4 b/gl/m4/realloc.m4
index 0abc418..86e57c2 100644
--- a/gl/m4/realloc.m4
+++ b/gl/m4/realloc.m4
@@ -1,5 +1,5 @@
1# realloc.m4 serial 24 1# realloc.m4 serial 26
2dnl Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -43,8 +43,8 @@ AC_DEFUN([gl_FUNC_REALLOC_GNU],
43[ 43[
44 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 44 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
45 AC_REQUIRE([gl_FUNC_REALLOC_POSIX]) 45 AC_REQUIRE([gl_FUNC_REALLOC_POSIX])
46 if test $REPLACE_REALLOC = 0; then 46 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then
47 _AC_FUNC_REALLOC_IF([], [REPLACE_REALLOC=1]) 47 _AC_FUNC_REALLOC_IF([], [REPLACE_REALLOC_FOR_REALLOC_GNU=1])
48 fi 48 fi
49])# gl_FUNC_REALLOC_GNU 49])# gl_FUNC_REALLOC_GNU
50 50
@@ -57,7 +57,7 @@ AC_DEFUN([gl_FUNC_REALLOC_POSIX],
57[ 57[
58 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) 58 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
59 AC_REQUIRE([gl_FUNC_MALLOC_POSIX]) 59 AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
60 if test $REPLACE_MALLOC = 1; then 60 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
61 REPLACE_REALLOC=1 61 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
62 fi 62 fi
63]) 63])
diff --git a/gl/m4/reallocarray.m4 b/gl/m4/reallocarray.m4
index 9d8a626..f39ab6e 100644
--- a/gl/m4/reallocarray.m4
+++ b/gl/m4/reallocarray.m4
@@ -1,5 +1,5 @@
1# reallocarray.m4 serial 3 1# reallocarray.m4 serial 3
2dnl Copyright (C) 2017-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2017-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/regex.m4 b/gl/m4/regex.m4
index 1c7e562..4734298 100644
--- a/gl/m4/regex.m4
+++ b/gl/m4/regex.m4
@@ -1,6 +1,6 @@
1# serial 73 1# serial 73
2 2
3# Copyright (C) 1996-2001, 2003-2021 Free Software Foundation, Inc. 3# Copyright (C) 1996-2001, 2003-2022 Free Software Foundation, Inc.
4# 4#
5# This file is free software; the Free Software Foundation 5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it, 6# gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/servent.m4 b/gl/m4/servent.m4
index 9bc3bcd..c1b7d15 100644
--- a/gl/m4/servent.m4
+++ b/gl/m4/servent.m4
@@ -1,5 +1,5 @@
1# servent.m4 serial 4 1# servent.m4 serial 4
2dnl Copyright (C) 2008, 2010-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008, 2010-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/setenv.m4 b/gl/m4/setenv.m4
index f79a278..2000039 100644
--- a/gl/m4/setenv.m4
+++ b/gl/m4/setenv.m4
@@ -1,5 +1,5 @@
1# setenv.m4 serial 30 1# setenv.m4 serial 30
2dnl Copyright (C) 2001-2004, 2006-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2001-2004, 2006-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/setlocale_null.m4 b/gl/m4/setlocale_null.m4
index 2c958ed..09ea50e 100644
--- a/gl/m4/setlocale_null.m4
+++ b/gl/m4/setlocale_null.m4
@@ -1,5 +1,5 @@
1# setlocale_null.m4 serial 5 1# setlocale_null.m4 serial 5
2dnl Copyright (C) 2019-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2019-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/sha1.m4 b/gl/m4/sha1.m4
index fdba7a6..0d7abc7 100644
--- a/gl/m4/sha1.m4
+++ b/gl/m4/sha1.m4
@@ -1,5 +1,5 @@
1# sha1.m4 serial 12 1# sha1.m4 serial 12
2dnl Copyright (C) 2002-2006, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2006, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 1d41ce9..1d6abae 100644
--- a/gl/m4/size_max.m4
+++ b/gl/m4/size_max.m4
@@ -1,5 +1,5 @@
1# size_max.m4 serial 12 1# size_max.m4 serial 12
2dnl Copyright (C) 2003, 2005-2006, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2003, 2005-2006, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/snprintf.m4 b/gl/m4/snprintf.m4
index 8520994..7420591 100644
--- a/gl/m4/snprintf.m4
+++ b/gl/m4/snprintf.m4
@@ -1,5 +1,5 @@
1# snprintf.m4 serial 7 1# snprintf.m4 serial 7
2dnl Copyright (C) 2002-2004, 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2004, 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/socketlib.m4 b/gl/m4/socketlib.m4
index 0f8a082..b8bd0af 100644
--- a/gl/m4/socketlib.m4
+++ b/gl/m4/socketlib.m4
@@ -1,5 +1,5 @@
1# socketlib.m4 serial 3 1# socketlib.m4 serial 3
2dnl Copyright (C) 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/sockets.m4 b/gl/m4/sockets.m4
index 02b43b6..aa04acc 100644
--- a/gl/m4/sockets.m4
+++ b/gl/m4/sockets.m4
@@ -1,5 +1,5 @@
1# sockets.m4 serial 7 1# sockets.m4 serial 7
2dnl Copyright (C) 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/socklen.m4 b/gl/m4/socklen.m4
index eca1d1b..1390ac4 100644
--- a/gl/m4/socklen.m4
+++ b/gl/m4/socklen.m4
@@ -1,5 +1,5 @@
1# socklen.m4 serial 11 1# socklen.m4 serial 11
2dnl Copyright (C) 2005-2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2005-2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/sockpfaf.m4 b/gl/m4/sockpfaf.m4
index 17e14c7..b1c4068 100644
--- a/gl/m4/sockpfaf.m4
+++ b/gl/m4/sockpfaf.m4
@@ -1,5 +1,5 @@
1# sockpfaf.m4 serial 10 1# sockpfaf.m4 serial 10
2dnl Copyright (C) 2004, 2006, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2004, 2006, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 f0ed509..03b2b89 100644
--- a/gl/m4/ssize_t.m4
+++ b/gl/m4/ssize_t.m4
@@ -1,5 +1,5 @@
1# ssize_t.m4 serial 5 (gettext-0.18.2) 1# ssize_t.m4 serial 5 (gettext-0.18.2)
2dnl Copyright (C) 2001-2003, 2006, 2010-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2001-2003, 2006, 2010-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 df1c2a7..342857d 100644
--- a/gl/m4/stat-time.m4
+++ b/gl/m4/stat-time.m4
@@ -1,6 +1,6 @@
1# Checks for stat-related time functions. 1# Checks for stat-related time functions.
2 2
3# Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2021 Free Software 3# Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2022 Free Software
4# Foundation, Inc. 4# Foundation, Inc.
5 5
6# This file is free software; the Free Software Foundation 6# This file is free software; the Free Software Foundation
diff --git a/gl/m4/stat.m4 b/gl/m4/stat.m4
index 9bcdb72..916eb88 100644
--- a/gl/m4/stat.m4
+++ b/gl/m4/stat.m4
@@ -1,6 +1,6 @@
1# serial 18 1# serial 18
2 2
3# Copyright (C) 2009-2021 Free Software Foundation, Inc. 3# Copyright (C) 2009-2022 Free Software Foundation, Inc.
4# 4#
5# This file is free software; the Free Software Foundation 5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it, 6# gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/std-gnu11.m4 b/gl/m4/std-gnu11.m4
index 7b1a042..5ca1860 100644
--- a/gl/m4/std-gnu11.m4
+++ b/gl/m4/std-gnu11.m4
@@ -9,7 +9,7 @@
9m4_version_prereq([2.70], [], [ 9m4_version_prereq([2.70], [], [
10 10
11 11
12# Copyright (C) 2001-2021 Free Software Foundation, Inc. 12# Copyright (C) 2001-2022 Free Software Foundation, Inc.
13 13
14# This program is free software; you can redistribute it and/or modify 14# This program is free software; you can redistribute it and/or modify
15# it under the terms of the GNU General Public License as published by 15# it under the terms of the GNU General Public License as published by
diff --git a/gl/m4/stdalign.m4 b/gl/m4/stdalign.m4
index e22d7f7..78577cb 100644
--- a/gl/m4/stdalign.m4
+++ b/gl/m4/stdalign.m4
@@ -1,6 +1,6 @@
1# Check for stdalign.h that conforms to C11. 1# Check for stdalign.h that conforms to C11.
2 2
3dnl Copyright 2011-2021 Free Software Foundation, Inc. 3dnl Copyright 2011-2022 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.
@@ -49,11 +49,8 @@ AC_DEFUN([gl_STDALIGN_H],
49 [gl_cv_header_working_stdalign_h=no])]) 49 [gl_cv_header_working_stdalign_h=no])])
50 50
51 if test $gl_cv_header_working_stdalign_h = yes; then 51 if test $gl_cv_header_working_stdalign_h = yes; then
52 STDALIGN_H='' 52 GL_GENERATE_STDALIGN_H=false
53 else 53 else
54 STDALIGN_H='stdalign.h' 54 GL_GENERATE_STDALIGN_H=true
55 fi 55 fi
56
57 AC_SUBST([STDALIGN_H])
58 AM_CONDITIONAL([GL_GENERATE_STDALIGN_H], [test -n "$STDALIGN_H"])
59]) 56])
diff --git a/gl/m4/stdbool.m4 b/gl/m4/stdbool.m4
index 3169779..c67908a 100644
--- a/gl/m4/stdbool.m4
+++ b/gl/m4/stdbool.m4
@@ -1,15 +1,15 @@
1# Check for stdbool.h that conforms to C99. 1# Check for stdbool.h that conforms to C99.
2 2
3dnl Copyright (C) 2002-2006, 2009-2021 Free Software Foundation, Inc. 3dnl Copyright (C) 2002-2006, 2009-2022 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.
7 7
8#serial 8 8#serial 9
9 9
10# Prepare for substituting <stdbool.h> if it is not supported. 10# Prepare for substituting <stdbool.h> if it is not supported.
11 11
12AC_DEFUN([AM_STDBOOL_H], 12AC_DEFUN([gl_STDBOOL_H],
13[ 13[
14 AC_REQUIRE([AC_CHECK_HEADER_STDBOOL]) 14 AC_REQUIRE([AC_CHECK_HEADER_STDBOOL])
15 AC_REQUIRE([AC_CANONICAL_HOST]) 15 AC_REQUIRE([AC_CANONICAL_HOST])
@@ -22,20 +22,18 @@ AC_DEFUN([AM_STDBOOL_H],
22 case "$host_os" in 22 case "$host_os" in
23 solaris*) 23 solaris*)
24 if test -z "$GCC"; then 24 if test -z "$GCC"; then
25 STDBOOL_H='stdbool.h' 25 GL_GENERATE_STDBOOL_H=true
26 else 26 else
27 STDBOOL_H='' 27 GL_GENERATE_STDBOOL_H=false
28 fi 28 fi
29 ;; 29 ;;
30 *) 30 *)
31 STDBOOL_H='' 31 GL_GENERATE_STDBOOL_H=false
32 ;; 32 ;;
33 esac 33 esac
34 else 34 else
35 STDBOOL_H='stdbool.h' 35 GL_GENERATE_STDBOOL_H=true
36 fi 36 fi
37 AC_SUBST([STDBOOL_H])
38 AM_CONDITIONAL([GL_GENERATE_STDBOOL_H], [test -n "$STDBOOL_H"])
39 37
40 if test "$ac_cv_type__Bool" = yes; then 38 if test "$ac_cv_type__Bool" = yes; then
41 HAVE__BOOL=1 39 HAVE__BOOL=1
@@ -45,78 +43,76 @@ AC_DEFUN([AM_STDBOOL_H],
45 AC_SUBST([HAVE__BOOL]) 43 AC_SUBST([HAVE__BOOL])
46]) 44])
47 45
48# AM_STDBOOL_H will be renamed to gl_STDBOOL_H in the future. 46m4_version_prereq([2.72], [], [
49AC_DEFUN([gl_STDBOOL_H], [AM_STDBOOL_H])
50
51# This version of the macro is needed in autoconf <= 2.68.
52 47
53AC_DEFUN([AC_CHECK_HEADER_STDBOOL], 48AC_DEFUN([AC_CHECK_HEADER_STDBOOL],
54 [AC_CACHE_CHECK([for stdbool.h that conforms to C99], 49 [AC_CHECK_TYPES([_Bool])
50 AC_CACHE_CHECK([for stdbool.h that conforms to C99 or later],
55 [ac_cv_header_stdbool_h], 51 [ac_cv_header_stdbool_h],
56 [AC_COMPILE_IFELSE( 52 [AC_COMPILE_IFELSE(
57 [AC_LANG_PROGRAM( 53 [AC_LANG_PROGRAM(
58 [[ 54 [[#include <stdbool.h>
59 #include <stdbool.h> 55
60 56 /* "true" and "false" should be usable in #if expressions and
61 #ifdef __cplusplus 57 integer constant expressions, and "bool" should be a valid
62 typedef bool Bool; 58 type name.
63 #else 59
64 typedef _Bool Bool; 60 Although C 1999 requires bool, true, and false to be macros,
65 #ifndef bool 61 C 2023 and C++ 2011 overrule that, so do not test for that.
66 "error: bool is not defined" 62 Although C 1999 requires __bool_true_false_are_defined and
67 #endif 63 _Bool, C 2023 says they are obsolescent, so do not require
68 #ifndef false 64 them. */
69 "error: false is not defined" 65
70 #endif 66 #if !true
71 #if false 67 #error "'true' is not true"
72 "error: false is not 0" 68 #endif
73 #endif 69 #if true != 1
74 #ifndef true 70 #error "'true' is not equal to 1"
75 "error: true is not defined"
76 #endif
77 #if true != 1
78 "error: true is not 1"
79 #endif
80 #endif 71 #endif
72 char b[true == 1 ? 1 : -1];
73 char c[true];
81 74
82 #ifndef __bool_true_false_are_defined 75 #if false
83 "error: __bool_true_false_are_defined is not defined" 76 #error "'false' is not false"
77 #endif
78 #if false != 0
79 #error "'false' is not equal to 0"
84 #endif 80 #endif
81 char d[false == 0 ? 1 : -1];
82
83 enum { e = false, f = true, g = false * true, h = true * 256 };
84
85 char i[(bool) 0.5 == true ? 1 : -1];
86 char j[(bool) 0.0 == false ? 1 : -1];
87 char k[sizeof (bool) > 0 ? 1 : -1];
88
89 struct sb { bool s: 1; bool t; } s;
90 char l[sizeof s.t > 0 ? 1 : -1];
85 91
86 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
87
88 char a[true == 1 ? 1 : -1];
89 char b[false == 0 ? 1 : -1];
90 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
91 char d[(bool) 0.5 == true ? 1 : -1];
92 /* See body of main program for 'e'. */
93 char f[(Bool) 0.0 == false ? 1 : -1];
94 char g[true];
95 char h[sizeof (Bool)];
96 char i[sizeof s.t];
97 enum { j = false, k = true, l = false * true, m = true * 256 };
98 /* The following fails for 92 /* The following fails for
99 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 93 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
100 Bool n[m]; 94 bool m[h];
101 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 95 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
102 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 96 char o[-1 - (bool) 0 < 0 ? 1 : -1];
103 /* Catch a bug in an HP-UX C compiler. See 97 /* Catch a bug in an HP-UX C compiler. See
104 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 98 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
105 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html 99 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
106 */ 100 */
107 Bool q = true; 101 bool p = true;
108 Bool *pq = &q; 102 bool *pp = &p;
109 bool *qq = &q;
110 ]], 103 ]],
111 [[ 104 [[
112 bool e = &s; 105 bool ps = &s;
113 *pq |= q; *pq |= ! q; 106 *pp |= p;
114 *qq |= q; *qq |= ! q; 107 *pp |= ! p;
115 /* Refer to every declared value, to avoid compiler optimizations. */ 108
116 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 109 /* Refer to every declared value, so they cannot be
117 + !m + !n + !o + !p + !q + !pq + !qq); 110 discarded as unused. */
111 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
112 + !l + !m + !n + !o + !p + !pp + !ps);
118 ]])], 113 ]])],
119 [ac_cv_header_stdbool_h=yes], 114 [ac_cv_header_stdbool_h=yes],
120 [ac_cv_header_stdbool_h=no])]) 115 [ac_cv_header_stdbool_h=no])])
121 AC_CHECK_TYPES([_Bool]) 116])# AC_CHECK_HEADER_STDBOOL
122]) 117
118]) # m4_version_prereq 2.72
diff --git a/gl/m4/stddef_h.m4 b/gl/m4/stddef_h.m4
index 1303d2e..abfd203 100644
--- a/gl/m4/stddef_h.m4
+++ b/gl/m4/stddef_h.m4
@@ -1,5 +1,5 @@
1# stddef_h.m4 serial 11 1# stddef_h.m4 serial 12
2dnl Copyright (C) 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -14,7 +14,7 @@ AC_DEFUN_ONCE([gl_STDDEF_H],
14 dnl Persuade OpenBSD <stddef.h> to declare max_align_t. 14 dnl Persuade OpenBSD <stddef.h> to declare max_align_t.
15 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) 15 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
16 16
17 STDDEF_H= 17 GL_GENERATE_STDDEF_H=false
18 18
19 dnl Test whether the type max_align_t exists and whether its alignment 19 dnl Test whether the type max_align_t exists and whether its alignment
20 dnl "is as great as is supported by the implementation in all contexts". 20 dnl "is as great as is supported by the implementation in all contexts".
@@ -41,12 +41,12 @@ AC_DEFUN_ONCE([gl_STDDEF_H],
41 ]) 41 ])
42 if test $gl_cv_type_max_align_t = no; then 42 if test $gl_cv_type_max_align_t = no; then
43 HAVE_MAX_ALIGN_T=0 43 HAVE_MAX_ALIGN_T=0
44 STDDEF_H=stddef.h 44 GL_GENERATE_STDDEF_H=true
45 fi 45 fi
46 46
47 if test $gt_cv_c_wchar_t = no; then 47 if test $gt_cv_c_wchar_t = no; then
48 HAVE_WCHAR_T=0 48 HAVE_WCHAR_T=0
49 STDDEF_H=stddef.h 49 GL_GENERATE_STDDEF_H=true
50 fi 50 fi
51 51
52 AC_CACHE_CHECK([whether NULL can be used in arbitrary expressions], 52 AC_CACHE_CHECK([whether NULL can be used in arbitrary expressions],
@@ -58,12 +58,10 @@ AC_DEFUN_ONCE([gl_STDDEF_H],
58 [gl_cv_decl_null_works=no])]) 58 [gl_cv_decl_null_works=no])])
59 if test $gl_cv_decl_null_works = no; then 59 if test $gl_cv_decl_null_works = no; then
60 REPLACE_NULL=1 60 REPLACE_NULL=1
61 STDDEF_H=stddef.h 61 GL_GENERATE_STDDEF_H=true
62 fi 62 fi
63 63
64 AC_SUBST([STDDEF_H]) 64 if $GL_GENERATE_STDDEF_H; then
65 AM_CONDITIONAL([GL_GENERATE_STDDEF_H], [test -n "$STDDEF_H"])
66 if test -n "$STDDEF_H"; then
67 gl_NEXT_HEADERS([stddef.h]) 65 gl_NEXT_HEADERS([stddef.h])
68 fi 66 fi
69]) 67])
diff --git a/gl/m4/stdint.m4 b/gl/m4/stdint.m4
index 2eb1652..c3f0894 100644
--- a/gl/m4/stdint.m4
+++ b/gl/m4/stdint.m4
@@ -1,5 +1,5 @@
1# stdint.m4 serial 60 1# stdint.m4 serial 61
2dnl Copyright (C) 2001-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2001-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -296,7 +296,7 @@ static const char *macro_values[] =
296 HAVE_C99_STDINT_H=0 296 HAVE_C99_STDINT_H=0
297 HAVE_SYS_BITYPES_H=0 297 HAVE_SYS_BITYPES_H=0
298 HAVE_SYS_INTTYPES_H=0 298 HAVE_SYS_INTTYPES_H=0
299 STDINT_H=stdint.h 299 GL_GENERATE_STDINT_H=true
300 case "$gl_cv_header_working_stdint_h" in 300 case "$gl_cv_header_working_stdint_h" in
301 *yes) 301 *yes)
302 HAVE_C99_STDINT_H=1 302 HAVE_C99_STDINT_H=1
@@ -341,7 +341,7 @@ int32_t i32 = INT32_C (0x7fffffff);
341 ]])], 341 ]])],
342 [gl_cv_header_stdint_width=yes])]) 342 [gl_cv_header_stdint_width=yes])])
343 if test "$gl_cv_header_stdint_width" = yes; then 343 if test "$gl_cv_header_stdint_width" = yes; then
344 STDINT_H= 344 GL_GENERATE_STDINT_H=false
345 fi 345 fi
346 ;; 346 ;;
347 *) 347 *)
@@ -364,8 +364,6 @@ int32_t i32 = INT32_C (0x7fffffff);
364 AC_SUBST([HAVE_C99_STDINT_H]) 364 AC_SUBST([HAVE_C99_STDINT_H])
365 AC_SUBST([HAVE_SYS_BITYPES_H]) 365 AC_SUBST([HAVE_SYS_BITYPES_H])
366 AC_SUBST([HAVE_SYS_INTTYPES_H]) 366 AC_SUBST([HAVE_SYS_INTTYPES_H])
367 AC_SUBST([STDINT_H])
368 AM_CONDITIONAL([GL_GENERATE_STDINT_H], [test -n "$STDINT_H"])
369]) 367])
370 368
371dnl gl_STDINT_BITSIZEOF(TYPES, INCLUDES) 369dnl gl_STDINT_BITSIZEOF(TYPES, INCLUDES)
diff --git a/gl/m4/stdint_h.m4 b/gl/m4/stdint_h.m4
index 18aa50a..b8684b6 100644
--- a/gl/m4/stdint_h.m4
+++ b/gl/m4/stdint_h.m4
@@ -1,5 +1,5 @@
1# stdint_h.m4 serial 9 1# stdint_h.m4 serial 9
2dnl Copyright (C) 1997-2004, 2006, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 1997-2004, 2006, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 e704383..42e9607 100644
--- a/gl/m4/stdio_h.m4
+++ b/gl/m4/stdio_h.m4
@@ -1,5 +1,5 @@
1# stdio_h.m4 serial 56 1# stdio_h.m4 serial 59
2dnl Copyright (C) 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -40,41 +40,32 @@ AC_DEFUN_ONCE([gl_STDIO_H],
40 attribute "__gnu_printf__" instead of "__printf__"]) 40 attribute "__gnu_printf__" instead of "__printf__"])
41 fi 41 fi
42 42
43 dnl This ifdef is necessary to avoid an error "missing file lib/stdio-read.c" 43 dnl This ifdef is an optimization, to avoid performing a configure check whose
44 dnl "expected source file, required through AC_LIBSOURCES, not found". It is 44 dnl result is not used. But it does not make the test of
45 dnl also an optimization, to avoid performing a configure check whose result 45 dnl GNULIB_STDIO_H_NONBLOCKING or GNULIB_NONBLOCKING redundant.
46 dnl is not used. But it does not make the test of GNULIB_STDIO_H_NONBLOCKING
47 dnl or GNULIB_NONBLOCKING redundant.
48 m4_ifdef([gl_NONBLOCKING_IO], [ 46 m4_ifdef([gl_NONBLOCKING_IO], [
49 gl_NONBLOCKING_IO 47 gl_NONBLOCKING_IO
50 if test $gl_cv_have_nonblocking != yes; then 48 if test $gl_cv_have_nonblocking != yes; then
51 REPLACE_STDIO_READ_FUNCS=1 49 REPLACE_STDIO_READ_FUNCS=1
52 AC_LIBOBJ([stdio-read])
53 fi 50 fi
54 ]) 51 ])
55 52
56 dnl This ifdef is necessary to avoid an error "missing file lib/stdio-write.c" 53 dnl This ifdef is an optimization, to avoid performing a configure check whose
57 dnl "expected source file, required through AC_LIBSOURCES, not found". It is 54 dnl result is not used. But it does not make the test of
58 dnl also an optimization, to avoid performing a configure check whose result 55 dnl GNULIB_STDIO_H_SIGPIPE or GNULIB_SIGPIPE redundant.
59 dnl is not used. But it does not make the test of GNULIB_STDIO_H_SIGPIPE or
60 dnl GNULIB_SIGPIPE redundant.
61 m4_ifdef([gl_SIGNAL_SIGPIPE], [ 56 m4_ifdef([gl_SIGNAL_SIGPIPE], [
62 gl_SIGNAL_SIGPIPE 57 gl_SIGNAL_SIGPIPE
63 if test $gl_cv_header_signal_h_SIGPIPE != yes; then 58 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
64 REPLACE_STDIO_WRITE_FUNCS=1 59 REPLACE_STDIO_WRITE_FUNCS=1
65 AC_LIBOBJ([stdio-write])
66 fi 60 fi
67 ]) 61 ])
68 dnl This ifdef is necessary to avoid an error "missing file lib/stdio-write.c" 62 dnl This ifdef is an optimization, to avoid performing a configure check whose
69 dnl "expected source file, required through AC_LIBSOURCES, not found". It is 63 dnl result is not used. But it does not make the test of
70 dnl also an optimization, to avoid performing a configure check whose result 64 dnl GNULIB_STDIO_H_NONBLOCKING or GNULIB_NONBLOCKING redundant.
71 dnl is not used. But it does not make the test of GNULIB_STDIO_H_NONBLOCKING
72 dnl or GNULIB_NONBLOCKING redundant.
73 m4_ifdef([gl_NONBLOCKING_IO], [ 65 m4_ifdef([gl_NONBLOCKING_IO], [
74 gl_NONBLOCKING_IO 66 gl_NONBLOCKING_IO
75 if test $gl_cv_have_nonblocking != yes; then 67 if test $gl_cv_have_nonblocking != yes; then
76 REPLACE_STDIO_WRITE_FUNCS=1 68 REPLACE_STDIO_WRITE_FUNCS=1
77 AC_LIBOBJ([stdio-write])
78 fi 69 fi
79 ]) 70 ])
80 71
@@ -119,6 +110,7 @@ AC_DEFUN([gl_STDIO_H_REQUIRE_DEFAULTS],
119 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FGETC]) 110 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FGETC])
120 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FGETS]) 111 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FGETS])
121 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FOPEN]) 112 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FOPEN])
113 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FOPEN_GNU])
122 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPRINTF]) 114 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPRINTF])
123 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPRINTF_POSIX]) 115 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPRINTF_POSIX])
124 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPURGE]) 116 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPURGE])
@@ -202,6 +194,7 @@ AC_DEFUN([gl_STDIO_H_DEFAULTS],
202 REPLACE_FDOPEN=0; AC_SUBST([REPLACE_FDOPEN]) 194 REPLACE_FDOPEN=0; AC_SUBST([REPLACE_FDOPEN])
203 REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH]) 195 REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH])
204 REPLACE_FOPEN=0; AC_SUBST([REPLACE_FOPEN]) 196 REPLACE_FOPEN=0; AC_SUBST([REPLACE_FOPEN])
197 REPLACE_FOPEN_FOR_FOPEN_GNU=0; AC_SUBST([REPLACE_FOPEN_FOR_FOPEN_GNU])
205 REPLACE_FPRINTF=0; AC_SUBST([REPLACE_FPRINTF]) 198 REPLACE_FPRINTF=0; AC_SUBST([REPLACE_FPRINTF])
206 REPLACE_FPURGE=0; AC_SUBST([REPLACE_FPURGE]) 199 REPLACE_FPURGE=0; AC_SUBST([REPLACE_FPURGE])
207 REPLACE_FREOPEN=0; AC_SUBST([REPLACE_FREOPEN]) 200 REPLACE_FREOPEN=0; AC_SUBST([REPLACE_FREOPEN])
diff --git a/gl/m4/stdlib_h.m4 b/gl/m4/stdlib_h.m4
index 9c1d1c7..9e20969 100644
--- a/gl/m4/stdlib_h.m4
+++ b/gl/m4/stdlib_h.m4
@@ -1,5 +1,5 @@
1# stdlib_h.m4 serial 63 1# stdlib_h.m4 serial 66
2dnl Copyright (C) 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -68,12 +68,14 @@ AC_DEFUN([gl_STDLIB_H_REQUIRE_DEFAULTS],
68 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB__EXIT]) 68 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB__EXIT])
69 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ALIGNED_ALLOC]) 69 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ALIGNED_ALLOC])
70 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ATOLL]) 70 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ATOLL])
71 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CALLOC_GNU])
71 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CALLOC_POSIX]) 72 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CALLOC_POSIX])
72 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CANONICALIZE_FILE_NAME]) 73 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CANONICALIZE_FILE_NAME])
73 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FREE_POSIX]) 74 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FREE_POSIX])
74 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETLOADAVG]) 75 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETLOADAVG])
75 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETSUBOPT]) 76 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETSUBOPT])
76 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GRANTPT]) 77 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GRANTPT])
78 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MALLOC_GNU])
77 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MALLOC_POSIX]) 79 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MALLOC_POSIX])
78 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBTOWC]) 80 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBTOWC])
79 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKDTEMP]) 81 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKDTEMP])
@@ -90,6 +92,7 @@ AC_DEFUN([gl_STDLIB_H_REQUIRE_DEFAULTS],
90 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RANDOM]) 92 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RANDOM])
91 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RANDOM_R]) 93 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RANDOM_R])
92 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALLOCARRAY]) 94 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALLOCARRAY])
95 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALLOC_GNU])
93 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALLOC_POSIX]) 96 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALLOC_POSIX])
94 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALPATH]) 97 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALPATH])
95 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RPMATCH]) 98 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RPMATCH])
@@ -164,11 +167,13 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS],
164 HAVE_UNLOCKPT=1; AC_SUBST([HAVE_UNLOCKPT]) 167 HAVE_UNLOCKPT=1; AC_SUBST([HAVE_UNLOCKPT])
165 HAVE_DECL_UNSETENV=1; AC_SUBST([HAVE_DECL_UNSETENV]) 168 HAVE_DECL_UNSETENV=1; AC_SUBST([HAVE_DECL_UNSETENV])
166 REPLACE_ALIGNED_ALLOC=0; AC_SUBST([REPLACE_ALIGNED_ALLOC]) 169 REPLACE_ALIGNED_ALLOC=0; AC_SUBST([REPLACE_ALIGNED_ALLOC])
167 REPLACE_CALLOC=0; AC_SUBST([REPLACE_CALLOC]) 170 REPLACE_CALLOC_FOR_CALLOC_GNU=0; AC_SUBST([REPLACE_CALLOC_FOR_CALLOC_GNU])
171 REPLACE_CALLOC_FOR_CALLOC_POSIX=0; AC_SUBST([REPLACE_CALLOC_FOR_CALLOC_POSIX])
168 REPLACE_CANONICALIZE_FILE_NAME=0; AC_SUBST([REPLACE_CANONICALIZE_FILE_NAME]) 172 REPLACE_CANONICALIZE_FILE_NAME=0; AC_SUBST([REPLACE_CANONICALIZE_FILE_NAME])
169 REPLACE_FREE=0; AC_SUBST([REPLACE_FREE]) 173 REPLACE_FREE=0; AC_SUBST([REPLACE_FREE])
170 REPLACE_INITSTATE=0; AC_SUBST([REPLACE_INITSTATE]) 174 REPLACE_INITSTATE=0; AC_SUBST([REPLACE_INITSTATE])
171 REPLACE_MALLOC=0; AC_SUBST([REPLACE_MALLOC]) 175 REPLACE_MALLOC_FOR_MALLOC_GNU=0; AC_SUBST([REPLACE_MALLOC_FOR_MALLOC_GNU])
176 REPLACE_MALLOC_FOR_MALLOC_POSIX=0; AC_SUBST([REPLACE_MALLOC_FOR_MALLOC_POSIX])
172 REPLACE_MBTOWC=0; AC_SUBST([REPLACE_MBTOWC]) 177 REPLACE_MBTOWC=0; AC_SUBST([REPLACE_MBTOWC])
173 REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP]) 178 REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP])
174 REPLACE_POSIX_MEMALIGN=0; AC_SUBST([REPLACE_POSIX_MEMALIGN]) 179 REPLACE_POSIX_MEMALIGN=0; AC_SUBST([REPLACE_POSIX_MEMALIGN])
@@ -178,7 +183,8 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS],
178 REPLACE_QSORT_R=0; AC_SUBST([REPLACE_QSORT_R]) 183 REPLACE_QSORT_R=0; AC_SUBST([REPLACE_QSORT_R])
179 REPLACE_RANDOM=0; AC_SUBST([REPLACE_RANDOM]) 184 REPLACE_RANDOM=0; AC_SUBST([REPLACE_RANDOM])
180 REPLACE_RANDOM_R=0; AC_SUBST([REPLACE_RANDOM_R]) 185 REPLACE_RANDOM_R=0; AC_SUBST([REPLACE_RANDOM_R])
181 REPLACE_REALLOC=0; AC_SUBST([REPLACE_REALLOC]) 186 REPLACE_REALLOC_FOR_REALLOC_GNU=0; AC_SUBST([REPLACE_REALLOC_FOR_REALLOC_GNU])
187 REPLACE_REALLOC_FOR_REALLOC_POSIX=0; AC_SUBST([REPLACE_REALLOC_FOR_REALLOC_POSIX])
182 REPLACE_REALLOCARRAY=0; AC_SUBST([REPLACE_REALLOCARRAY]) 188 REPLACE_REALLOCARRAY=0; AC_SUBST([REPLACE_REALLOCARRAY])
183 REPLACE_REALPATH=0; AC_SUBST([REPLACE_REALPATH]) 189 REPLACE_REALPATH=0; AC_SUBST([REPLACE_REALPATH])
184 REPLACE_SETENV=0; AC_SUBST([REPLACE_SETENV]) 190 REPLACE_SETENV=0; AC_SUBST([REPLACE_SETENV])
diff --git a/gl/m4/strcase.m4 b/gl/m4/strcase.m4
index ea88283..d1ffaba 100644
--- a/gl/m4/strcase.m4
+++ b/gl/m4/strcase.m4
@@ -1,5 +1,5 @@
1# strcase.m4 serial 12 1# strcase.m4 serial 12
2dnl Copyright (C) 2002, 2005-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002, 2005-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/strcasestr.m4 b/gl/m4/strcasestr.m4
index 6939144..6344b7e 100644
--- a/gl/m4/strcasestr.m4
+++ b/gl/m4/strcasestr.m4
@@ -1,5 +1,5 @@
1# strcasestr.m4 serial 28 1# strcasestr.m4 serial 28
2dnl Copyright (C) 2005, 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2005, 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/strerror.m4 b/gl/m4/strerror.m4
index 438ba92..4716649 100644
--- a/gl/m4/strerror.m4
+++ b/gl/m4/strerror.m4
@@ -1,5 +1,5 @@
1# strerror.m4 serial 22 1# strerror.m4 serial 23
2dnl Copyright (C) 2002, 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002, 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -13,7 +13,7 @@ AC_DEFUN([gl_FUNC_STRERROR],
13 m4_ifdef([gl_FUNC_STRERROR_R_WORKS], [ 13 m4_ifdef([gl_FUNC_STRERROR_R_WORKS], [
14 AC_REQUIRE([gl_FUNC_STRERROR_R_WORKS]) 14 AC_REQUIRE([gl_FUNC_STRERROR_R_WORKS])
15 ]) 15 ])
16 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then 16 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
17 AC_CACHE_CHECK([for working strerror function], 17 AC_CACHE_CHECK([for working strerror function],
18 [gl_cv_func_working_strerror], 18 [gl_cv_func_working_strerror],
19 [AC_RUN_IFELSE( 19 [AC_RUN_IFELSE(
diff --git a/gl/m4/string_h.m4 b/gl/m4/string_h.m4
index e88ac9c..9e09b96 100644
--- a/gl/m4/string_h.m4
+++ b/gl/m4/string_h.m4
@@ -1,6 +1,6 @@
1# Configure a GNU-like replacement for <string.h>. 1# Configure a GNU-like replacement for <string.h>.
2 2
3# Copyright (C) 2007-2021 Free Software Foundation, Inc. 3# Copyright (C) 2007-2022 Free Software Foundation, Inc.
4# This file is free software; the Free Software Foundation 4# This file is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it, 5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved. 6# with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/strings_h.m4 b/gl/m4/strings_h.m4
index 69de32a..6965b7c 100644
--- a/gl/m4/strings_h.m4
+++ b/gl/m4/strings_h.m4
@@ -1,7 +1,7 @@
1# Configure a replacement for <strings.h>. 1# Configure a replacement for <strings.h>.
2# serial 9 2# serial 9
3 3
4# Copyright (C) 2007, 2009-2021 Free Software Foundation, Inc. 4# Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation 5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it, 6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved. 7# with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/strsep.m4 b/gl/m4/strsep.m4
index 8743f05..602f96a 100644
--- a/gl/m4/strsep.m4
+++ b/gl/m4/strsep.m4
@@ -1,5 +1,5 @@
1# strsep.m4 serial 11 1# strsep.m4 serial 11
2dnl Copyright (C) 2002-2004, 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2004, 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/strstr.m4 b/gl/m4/strstr.m4
index a32e9c1..6cc2072 100644
--- a/gl/m4/strstr.m4
+++ b/gl/m4/strstr.m4
@@ -1,5 +1,5 @@
1# strstr.m4 serial 24 1# strstr.m4 serial 24
2dnl Copyright (C) 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 5676a0d..ba3ae68 100644
--- a/gl/m4/sys_socket_h.m4
+++ b/gl/m4/sys_socket_h.m4
@@ -1,5 +1,5 @@
1# sys_socket_h.m4 serial 28 1# sys_socket_h.m4 serial 29
2dnl Copyright (C) 2005-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2005-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -22,6 +22,7 @@ AC_DEFUN_ONCE([gl_SYS_SOCKET_H],
22 ;; 22 ;;
23 esac 23 esac
24 24
25 GL_GENERATE_SYS_SOCKET_H=false
25 AC_CACHE_CHECK([whether <sys/socket.h> is self-contained], 26 AC_CACHE_CHECK([whether <sys/socket.h> is self-contained],
26 [gl_cv_header_sys_socket_h_selfcontained], 27 [gl_cv_header_sys_socket_h_selfcontained],
27 [ 28 [
@@ -44,7 +45,7 @@ AC_DEFUN_ONCE([gl_SYS_SOCKET_H],
44 [gl_cv_header_sys_socket_h_shut=no]) 45 [gl_cv_header_sys_socket_h_shut=no])
45 ]) 46 ])
46 if test $gl_cv_header_sys_socket_h_shut = no; then 47 if test $gl_cv_header_sys_socket_h_shut = no; then
47 SYS_SOCKET_H='sys/socket.h' 48 GL_GENERATE_SYS_SOCKET_H=true
48 fi 49 fi
49 fi 50 fi
50 fi 51 fi
@@ -83,7 +84,7 @@ AC_DEFUN_ONCE([gl_SYS_SOCKET_H],
83 fi 84 fi
84 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \ 85 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
85 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then 86 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
86 SYS_SOCKET_H='sys/socket.h' 87 GL_GENERATE_SYS_SOCKET_H=true
87 fi 88 fi
88 gl_PREREQ_SYS_H_WINSOCK2 89 gl_PREREQ_SYS_H_WINSOCK2
89 90
diff --git a/gl/m4/sys_stat_h.m4 b/gl/m4/sys_stat_h.m4
index ac91d42..2adbfde 100644
--- a/gl/m4/sys_stat_h.m4
+++ b/gl/m4/sys_stat_h.m4
@@ -1,5 +1,5 @@
1# sys_stat_h.m4 serial 41 -*- Autoconf -*- 1# sys_stat_h.m4 serial 42 -*- Autoconf -*-
2dnl Copyright (C) 2006-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -46,7 +46,7 @@ AC_DEFUN_ONCE([gl_SYS_STAT_H],
46 dnl Check for declarations of anything we want to poison if the 46 dnl Check for declarations of anything we want to poison if the
47 dnl corresponding gnulib module is not in use. 47 dnl corresponding gnulib module is not in use.
48 gl_WARN_ON_USE_PREPARE([[#include <sys/stat.h> 48 gl_WARN_ON_USE_PREPARE([[#include <sys/stat.h>
49 ]], [fchmodat fstat fstatat futimens getumask lchmod lstat 49 ]], [chmod fchmodat fstat fstatat futimens getumask lchmod lstat
50 mkdirat mkfifo mkfifoat mknod mknodat stat utimensat]) 50 mkdirat mkfifo mkfifoat mknod mknodat stat utimensat])
51 51
52 AC_REQUIRE([AC_C_RESTRICT]) 52 AC_REQUIRE([AC_C_RESTRICT])
@@ -72,6 +72,7 @@ AC_DEFUN([gl_SYS_STAT_H_REQUIRE_DEFAULTS],
72[ 72[
73 m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_STAT_H_MODULE_INDICATOR_DEFAULTS], [ 73 m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_STAT_H_MODULE_INDICATOR_DEFAULTS], [
74 gl_UNISTD_H_REQUIRE_DEFAULTS dnl for REPLACE_FCHDIR 74 gl_UNISTD_H_REQUIRE_DEFAULTS dnl for REPLACE_FCHDIR
75 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CHMOD])
75 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCHMODAT]) 76 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCHMODAT])
76 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSTAT]) 77 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSTAT])
77 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSTATAT]) 78 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSTATAT])
@@ -112,6 +113,7 @@ AC_DEFUN([gl_SYS_STAT_H_DEFAULTS],
112 HAVE_MKNOD=1; AC_SUBST([HAVE_MKNOD]) 113 HAVE_MKNOD=1; AC_SUBST([HAVE_MKNOD])
113 HAVE_MKNODAT=1; AC_SUBST([HAVE_MKNODAT]) 114 HAVE_MKNODAT=1; AC_SUBST([HAVE_MKNODAT])
114 HAVE_UTIMENSAT=1; AC_SUBST([HAVE_UTIMENSAT]) 115 HAVE_UTIMENSAT=1; AC_SUBST([HAVE_UTIMENSAT])
116 REPLACE_CHMOD=0; AC_SUBST([REPLACE_CHMOD])
115 REPLACE_FCHMODAT=0; AC_SUBST([REPLACE_FCHMODAT]) 117 REPLACE_FCHMODAT=0; AC_SUBST([REPLACE_FCHMODAT])
116 REPLACE_FSTAT=0; AC_SUBST([REPLACE_FSTAT]) 118 REPLACE_FSTAT=0; AC_SUBST([REPLACE_FSTAT])
117 REPLACE_FSTATAT=0; AC_SUBST([REPLACE_FSTATAT]) 119 REPLACE_FSTATAT=0; AC_SUBST([REPLACE_FSTATAT])
diff --git a/gl/m4/sys_types_h.m4 b/gl/m4/sys_types_h.m4
index 6dd6fee..a5bef22 100644
--- a/gl/m4/sys_types_h.m4
+++ b/gl/m4/sys_types_h.m4
@@ -1,5 +1,5 @@
1# sys_types_h.m4 serial 13 1# sys_types_h.m4 serial 13
2dnl Copyright (C) 2011-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 fa176e0..36f55ea 100644
--- a/gl/m4/sys_uio_h.m4
+++ b/gl/m4/sys_uio_h.m4
@@ -1,5 +1,5 @@
1# sys_uio_h.m4 serial 3 1# sys_uio_h.m4 serial 3
2dnl Copyright (C) 2011-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/threadlib.m4 b/gl/m4/threadlib.m4
index 6b43bbd..ecb4970 100644
--- a/gl/m4/threadlib.m4
+++ b/gl/m4/threadlib.m4
@@ -1,5 +1,5 @@
1# threadlib.m4 serial 32 1# threadlib.m4 serial 32
2dnl Copyright (C) 2005-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2005-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/time_h.m4 b/gl/m4/time_h.m4
index b57474b..98d7b6e 100644
--- a/gl/m4/time_h.m4
+++ b/gl/m4/time_h.m4
@@ -1,8 +1,8 @@
1# Configure a more-standard replacement for <time.h>. 1# Configure a more-standard replacement for <time.h>.
2 2
3# Copyright (C) 2000-2001, 2003-2007, 2009-2021 Free Software Foundation, Inc. 3# Copyright (C) 2000-2001, 2003-2007, 2009-2022 Free Software Foundation, Inc.
4 4
5# serial 18 5# serial 19
6 6
7# This file is free software; the Free Software Foundation 7# This file is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it, 8# gives unlimited permission to copy and/or distribute it,
@@ -133,6 +133,7 @@ AC_DEFUN([gl_TIME_H_REQUIRE_DEFAULTS],
133 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRPTIME]) 133 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRPTIME])
134 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMEGM]) 134 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMEGM])
135 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMESPEC_GET]) 135 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMESPEC_GET])
136 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMESPEC_GETRES])
136 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_R]) 137 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_R])
137 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_RZ]) 138 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_RZ])
138 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TZSET]) 139 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TZSET])
@@ -151,6 +152,7 @@ AC_DEFUN([gl_TIME_H_DEFAULTS],
151 HAVE_STRPTIME=1; AC_SUBST([HAVE_STRPTIME]) 152 HAVE_STRPTIME=1; AC_SUBST([HAVE_STRPTIME])
152 HAVE_TIMEGM=1; AC_SUBST([HAVE_TIMEGM]) 153 HAVE_TIMEGM=1; AC_SUBST([HAVE_TIMEGM])
153 HAVE_TIMESPEC_GET=1; AC_SUBST([HAVE_TIMESPEC_GET]) 154 HAVE_TIMESPEC_GET=1; AC_SUBST([HAVE_TIMESPEC_GET])
155 HAVE_TIMESPEC_GETRES=1; AC_SUBST([HAVE_TIMESPEC_GETRES])
154 dnl Even GNU libc does not have timezone_t yet. 156 dnl Even GNU libc does not have timezone_t yet.
155 HAVE_TIMEZONE_T=0; AC_SUBST([HAVE_TIMEZONE_T]) 157 HAVE_TIMEZONE_T=0; AC_SUBST([HAVE_TIMEZONE_T])
156 dnl If another module says to replace or to not replace, do that. 158 dnl If another module says to replace or to not replace, do that.
diff --git a/gl/m4/time_r.m4 b/gl/m4/time_r.m4
index 2d49b64..8a1ad9d 100644
--- a/gl/m4/time_r.m4
+++ b/gl/m4/time_r.m4
@@ -1,6 +1,6 @@
1dnl Reentrant time functions: localtime_r, gmtime_r. 1dnl Reentrant time functions: localtime_r, gmtime_r.
2 2
3dnl Copyright (C) 2003, 2006-2021 Free Software Foundation, Inc. 3dnl Copyright (C) 2003, 2006-2022 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 58123be..f189394 100644
--- a/gl/m4/timegm.m4
+++ b/gl/m4/timegm.m4
@@ -1,5 +1,5 @@
1# timegm.m4 serial 13 1# timegm.m4 serial 13
2dnl Copyright (C) 2003, 2007, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2003, 2007, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/ungetc.m4 b/gl/m4/ungetc.m4
index dd5d1dd..12a1099 100644
--- a/gl/m4/ungetc.m4
+++ b/gl/m4/ungetc.m4
@@ -1,5 +1,5 @@
1# ungetc.m4 serial 10 1# ungetc.m4 serial 10
2dnl Copyright (C) 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 0ce4ea4..4c66ccc 100644
--- a/gl/m4/unistd_h.m4
+++ b/gl/m4/unistd_h.m4
@@ -1,5 +1,5 @@
1# unistd_h.m4 serial 89 1# unistd_h.m4 serial 90
2dnl Copyright (C) 2006-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -112,6 +112,7 @@ AC_DEFUN([gl_UNISTD_H_REQUIRE_DEFAULTS],
112 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETOPT_POSIX]) 112 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETOPT_POSIX])
113 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPAGESIZE]) 113 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPAGESIZE])
114 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPASS]) 114 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPASS])
115 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPASS_GNU])
115 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETUSERSHELL]) 116 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETUSERSHELL])
116 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GROUP_MEMBER]) 117 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GROUP_MEMBER])
117 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISATTY]) 118 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISATTY])
@@ -170,98 +171,100 @@ AC_DEFUN([gl_UNISTD_H_REQUIRE_DEFAULTS],
170AC_DEFUN([gl_UNISTD_H_DEFAULTS], 171AC_DEFUN([gl_UNISTD_H_DEFAULTS],
171[ 172[
172 dnl Assume proper GNU behavior unless another module says otherwise. 173 dnl Assume proper GNU behavior unless another module says otherwise.
173 HAVE_CHOWN=1; AC_SUBST([HAVE_CHOWN]) 174 HAVE_CHOWN=1; AC_SUBST([HAVE_CHOWN])
174 HAVE_COPY_FILE_RANGE=1; AC_SUBST([HAVE_COPY_FILE_RANGE]) 175 HAVE_COPY_FILE_RANGE=1; AC_SUBST([HAVE_COPY_FILE_RANGE])
175 HAVE_DUP3=1; AC_SUBST([HAVE_DUP3]) 176 HAVE_DUP3=1; AC_SUBST([HAVE_DUP3])
176 HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS]) 177 HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS])
177 HAVE_EXECVPE=1; AC_SUBST([HAVE_EXECVPE]) 178 HAVE_EXECVPE=1; AC_SUBST([HAVE_EXECVPE])
178 HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT]) 179 HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT])
179 HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR]) 180 HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR])
180 HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT]) 181 HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT])
181 HAVE_FDATASYNC=1; AC_SUBST([HAVE_FDATASYNC]) 182 HAVE_FDATASYNC=1; AC_SUBST([HAVE_FDATASYNC])
182 HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC]) 183 HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC])
183 HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE]) 184 HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE])
184 HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE]) 185 HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE])
185 HAVE_GETENTROPY=1; AC_SUBST([HAVE_GETENTROPY]) 186 HAVE_GETENTROPY=1; AC_SUBST([HAVE_GETENTROPY])
186 HAVE_GETGROUPS=1; AC_SUBST([HAVE_GETGROUPS]) 187 HAVE_GETGROUPS=1; AC_SUBST([HAVE_GETGROUPS])
187 HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME]) 188 HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME])
188 HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN]) 189 HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN])
189 HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE]) 190 HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE])
190 HAVE_GETPASS=1; AC_SUBST([HAVE_GETPASS]) 191 HAVE_GETPASS=1; AC_SUBST([HAVE_GETPASS])
191 HAVE_GROUP_MEMBER=1; AC_SUBST([HAVE_GROUP_MEMBER]) 192 HAVE_GROUP_MEMBER=1; AC_SUBST([HAVE_GROUP_MEMBER])
192 HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN]) 193 HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN])
193 HAVE_LINK=1; AC_SUBST([HAVE_LINK]) 194 HAVE_LINK=1; AC_SUBST([HAVE_LINK])
194 HAVE_LINKAT=1; AC_SUBST([HAVE_LINKAT]) 195 HAVE_LINKAT=1; AC_SUBST([HAVE_LINKAT])
195 HAVE_PIPE=1; AC_SUBST([HAVE_PIPE]) 196 HAVE_PIPE=1; AC_SUBST([HAVE_PIPE])
196 HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2]) 197 HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2])
197 HAVE_PREAD=1; AC_SUBST([HAVE_PREAD]) 198 HAVE_PREAD=1; AC_SUBST([HAVE_PREAD])
198 HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE]) 199 HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE])
199 HAVE_READLINK=1; AC_SUBST([HAVE_READLINK]) 200 HAVE_READLINK=1; AC_SUBST([HAVE_READLINK])
200 HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT]) 201 HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT])
201 HAVE_SETHOSTNAME=1; AC_SUBST([HAVE_SETHOSTNAME]) 202 HAVE_SETHOSTNAME=1; AC_SUBST([HAVE_SETHOSTNAME])
202 HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP]) 203 HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP])
203 HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK]) 204 HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK])
204 HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT]) 205 HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT])
205 HAVE_UNLINKAT=1; AC_SUBST([HAVE_UNLINKAT]) 206 HAVE_UNLINKAT=1; AC_SUBST([HAVE_UNLINKAT])
206 HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP]) 207 HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP])
207 HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON]) 208 HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON])
208 HAVE_DECL_EXECVPE=1; AC_SUBST([HAVE_DECL_EXECVPE]) 209 HAVE_DECL_EXECVPE=1; AC_SUBST([HAVE_DECL_EXECVPE])
209 HAVE_DECL_FCHDIR=1; AC_SUBST([HAVE_DECL_FCHDIR]) 210 HAVE_DECL_FCHDIR=1; AC_SUBST([HAVE_DECL_FCHDIR])
210 HAVE_DECL_FDATASYNC=1; AC_SUBST([HAVE_DECL_FDATASYNC]) 211 HAVE_DECL_FDATASYNC=1; AC_SUBST([HAVE_DECL_FDATASYNC])
211 HAVE_DECL_GETDOMAINNAME=1; AC_SUBST([HAVE_DECL_GETDOMAINNAME]) 212 HAVE_DECL_GETDOMAINNAME=1; AC_SUBST([HAVE_DECL_GETDOMAINNAME])
212 HAVE_DECL_GETLOGIN=1; AC_SUBST([HAVE_DECL_GETLOGIN]) 213 HAVE_DECL_GETLOGIN=1; AC_SUBST([HAVE_DECL_GETLOGIN])
213 HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R]) 214 HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
214 HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE]) 215 HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE])
215 HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL]) 216 HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL])
216 HAVE_DECL_SETHOSTNAME=1; AC_SUBST([HAVE_DECL_SETHOSTNAME]) 217 HAVE_DECL_SETHOSTNAME=1; AC_SUBST([HAVE_DECL_SETHOSTNAME])
217 HAVE_DECL_TRUNCATE=1; AC_SUBST([HAVE_DECL_TRUNCATE]) 218 HAVE_DECL_TRUNCATE=1; AC_SUBST([HAVE_DECL_TRUNCATE])
218 HAVE_DECL_TTYNAME_R=1; AC_SUBST([HAVE_DECL_TTYNAME_R]) 219 HAVE_DECL_TTYNAME_R=1; AC_SUBST([HAVE_DECL_TTYNAME_R])
219 HAVE_OS_H=0; AC_SUBST([HAVE_OS_H]) 220 HAVE_OS_H=0; AC_SUBST([HAVE_OS_H])
220 HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H]) 221 HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H])
221 REPLACE_ACCESS=0; AC_SUBST([REPLACE_ACCESS]) 222 REPLACE_ACCESS=0; AC_SUBST([REPLACE_ACCESS])
222 REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN]) 223 REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN])
223 REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE]) 224 REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE])
224 REPLACE_DUP=0; AC_SUBST([REPLACE_DUP]) 225 REPLACE_COPY_FILE_RANGE=0; AC_SUBST([REPLACE_COPY_FILE_RANGE])
225 REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2]) 226 REPLACE_DUP=0; AC_SUBST([REPLACE_DUP])
226 REPLACE_EXECL=0; AC_SUBST([REPLACE_EXECL]) 227 REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2])
227 REPLACE_EXECLE=0; AC_SUBST([REPLACE_EXECLE]) 228 REPLACE_EXECL=0; AC_SUBST([REPLACE_EXECL])
228 REPLACE_EXECLP=0; AC_SUBST([REPLACE_EXECLP]) 229 REPLACE_EXECLE=0; AC_SUBST([REPLACE_EXECLE])
229 REPLACE_EXECV=0; AC_SUBST([REPLACE_EXECV]) 230 REPLACE_EXECLP=0; AC_SUBST([REPLACE_EXECLP])
230 REPLACE_EXECVE=0; AC_SUBST([REPLACE_EXECVE]) 231 REPLACE_EXECV=0; AC_SUBST([REPLACE_EXECV])
231 REPLACE_EXECVP=0; AC_SUBST([REPLACE_EXECVP]) 232 REPLACE_EXECVE=0; AC_SUBST([REPLACE_EXECVE])
232 REPLACE_EXECVPE=0; AC_SUBST([REPLACE_EXECVPE]) 233 REPLACE_EXECVP=0; AC_SUBST([REPLACE_EXECVP])
233 REPLACE_FACCESSAT=0; AC_SUBST([REPLACE_FACCESSAT]) 234 REPLACE_EXECVPE=0; AC_SUBST([REPLACE_EXECVPE])
234 REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT]) 235 REPLACE_FACCESSAT=0; AC_SUBST([REPLACE_FACCESSAT])
235 REPLACE_FTRUNCATE=0; AC_SUBST([REPLACE_FTRUNCATE]) 236 REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT])
236 REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD]) 237 REPLACE_FTRUNCATE=0; AC_SUBST([REPLACE_FTRUNCATE])
237 REPLACE_GETDOMAINNAME=0; AC_SUBST([REPLACE_GETDOMAINNAME]) 238 REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD])
238 REPLACE_GETDTABLESIZE=0; AC_SUBST([REPLACE_GETDTABLESIZE]) 239 REPLACE_GETDOMAINNAME=0; AC_SUBST([REPLACE_GETDOMAINNAME])
239 REPLACE_GETLOGIN_R=0; AC_SUBST([REPLACE_GETLOGIN_R]) 240 REPLACE_GETDTABLESIZE=0; AC_SUBST([REPLACE_GETDTABLESIZE])
240 REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS]) 241 REPLACE_GETLOGIN_R=0; AC_SUBST([REPLACE_GETLOGIN_R])
241 REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE]) 242 REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS])
242 REPLACE_GETPASS=0; AC_SUBST([REPLACE_GETPASS]) 243 REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE])
243 REPLACE_ISATTY=0; AC_SUBST([REPLACE_ISATTY]) 244 REPLACE_GETPASS=0; AC_SUBST([REPLACE_GETPASS])
244 REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN]) 245 REPLACE_GETPASS_FOR_GETPASS_GNU=0; AC_SUBST([REPLACE_GETPASS_FOR_GETPASS_GNU])
245 REPLACE_LINK=0; AC_SUBST([REPLACE_LINK]) 246 REPLACE_ISATTY=0; AC_SUBST([REPLACE_ISATTY])
246 REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT]) 247 REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN])
247 REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK]) 248 REPLACE_LINK=0; AC_SUBST([REPLACE_LINK])
248 REPLACE_PREAD=0; AC_SUBST([REPLACE_PREAD]) 249 REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT])
249 REPLACE_PWRITE=0; AC_SUBST([REPLACE_PWRITE]) 250 REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK])
250 REPLACE_READ=0; AC_SUBST([REPLACE_READ]) 251 REPLACE_PREAD=0; AC_SUBST([REPLACE_PREAD])
251 REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK]) 252 REPLACE_PWRITE=0; AC_SUBST([REPLACE_PWRITE])
252 REPLACE_READLINKAT=0; AC_SUBST([REPLACE_READLINKAT]) 253 REPLACE_READ=0; AC_SUBST([REPLACE_READ])
253 REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR]) 254 REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK])
254 REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP]) 255 REPLACE_READLINKAT=0; AC_SUBST([REPLACE_READLINKAT])
255 REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK]) 256 REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR])
256 REPLACE_SYMLINKAT=0; AC_SUBST([REPLACE_SYMLINKAT]) 257 REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP])
257 REPLACE_TRUNCATE=0; AC_SUBST([REPLACE_TRUNCATE]) 258 REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK])
258 REPLACE_TTYNAME_R=0; AC_SUBST([REPLACE_TTYNAME_R]) 259 REPLACE_SYMLINKAT=0; AC_SUBST([REPLACE_SYMLINKAT])
259 REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK]) 260 REPLACE_TRUNCATE=0; AC_SUBST([REPLACE_TRUNCATE])
260 REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT]) 261 REPLACE_TTYNAME_R=0; AC_SUBST([REPLACE_TTYNAME_R])
261 REPLACE_USLEEP=0; AC_SUBST([REPLACE_USLEEP]) 262 REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK])
262 REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE]) 263 REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT])
263 UNISTD_H_HAVE_SYS_RANDOM_H=0; AC_SUBST([UNISTD_H_HAVE_SYS_RANDOM_H]) 264 REPLACE_USLEEP=0; AC_SUBST([REPLACE_USLEEP])
264 UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H]) 265 REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE])
266 UNISTD_H_HAVE_SYS_RANDOM_H=0; AC_SUBST([UNISTD_H_HAVE_SYS_RANDOM_H])
267 UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H])
265 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; 268 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
266 AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS]) 269 AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS])
267]) 270])
diff --git a/gl/m4/unlocked-io.m4 b/gl/m4/unlocked-io.m4
index b689020..d42c95c 100644
--- a/gl/m4/unlocked-io.m4
+++ b/gl/m4/unlocked-io.m4
@@ -1,6 +1,6 @@
1# unlocked-io.m4 serial 16 1# unlocked-io.m4 serial 16
2 2
3# Copyright (C) 1998-2006, 2009-2021 Free Software Foundation, Inc. 3# Copyright (C) 1998-2006, 2009-2022 Free Software Foundation, Inc.
4# 4#
5# This file is free software; the Free Software Foundation 5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it, 6# gives unlimited permission to copy and/or distribute it,
diff --git a/gl/m4/vararrays.m4 b/gl/m4/vararrays.m4
new file mode 100644
index 0000000..28e22a4
--- /dev/null
+++ b/gl/m4/vararrays.m4
@@ -0,0 +1,72 @@
1# Check for variable-length arrays.
2
3# serial 6
4
5# From Paul Eggert
6
7# Copyright (C) 2001, 2009-2022 Free Software Foundation, Inc.
8# This file is free software; the Free Software Foundation
9# gives unlimited permission to copy and/or distribute it,
10# with or without modifications, as long as this notice is preserved.
11
12m4_version_prereq([2.70], [], [
13
14# AC_C_VARARRAYS
15# --------------
16# Check whether the C compiler supports variable-length arrays.
17AC_DEFUN([AC_C_VARARRAYS],
18[
19 AC_CACHE_CHECK([for variable-length arrays],
20 ac_cv_c_vararrays,
21 [AC_EGREP_CPP([defined],
22 [#ifdef __STDC_NO_VLA__
23 defined
24 #endif
25 ],
26 [ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'],
27 [AC_COMPILE_IFELSE(
28 [AC_LANG_PROGRAM(
29 [[/* Test for VLA support. This test is partly inspired
30 from examples in the C standard. Use at least two VLA
31 functions to detect the GCC 3.4.3 bug described in:
32 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
33 */
34 #ifdef __STDC_NO_VLA__
35 syntax error;
36 #else
37 extern int n;
38 int B[100];
39 int fvla (int m, int C[m][m]);
40
41 int
42 simple (int count, int all[static count])
43 {
44 return all[count - 1];
45 }
46
47 int
48 fvla (int m, int C[m][m])
49 {
50 typedef int VLA[m][m];
51 VLA x;
52 int D[m];
53 static int (*q)[m] = &B;
54 int (*s)[n] = q;
55 return C && &x[0][0] == &D[0] && &D[0] == s[0];
56 }
57 #endif
58 ]])],
59 [ac_cv_c_vararrays=yes],
60 [ac_cv_c_vararrays=no])])])
61 if test "$ac_cv_c_vararrays" = yes; then
62 dnl This is for compatibility with Autoconf 2.61-2.69.
63 AC_DEFINE([HAVE_C_VARARRAYS], 1,
64 [Define to 1 if C supports variable-length arrays.])
65 elif test "$ac_cv_c_vararrays" = no; then
66 AC_DEFINE([__STDC_NO_VLA__], 1,
67 [Define to 1 if C does not support variable-length arrays, and
68 if the compiler does not already define this.])
69 fi
70])
71
72])
diff --git a/gl/m4/vasnprintf.m4 b/gl/m4/vasnprintf.m4
index 483bba9..afdece7 100644
--- a/gl/m4/vasnprintf.m4
+++ b/gl/m4/vasnprintf.m4
@@ -1,5 +1,5 @@
1# vasnprintf.m4 serial 38 1# vasnprintf.m4 serial 38
2dnl Copyright (C) 2002-2004, 2006-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2004, 2006-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/vasprintf.m4 b/gl/m4/vasprintf.m4
index a26de84..b92977b 100644
--- a/gl/m4/vasprintf.m4
+++ b/gl/m4/vasprintf.m4
@@ -1,5 +1,5 @@
1# vasprintf.m4 serial 6 1# vasprintf.m4 serial 6
2dnl Copyright (C) 2002-2003, 2006-2007, 2009-2021 Free Software Foundation, 2dnl Copyright (C) 2002-2003, 2006-2007, 2009-2022 Free Software Foundation,
3dnl Inc. 3dnl 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,
diff --git a/gl/m4/visibility.m4 b/gl/m4/visibility.m4
index d161bd7..4a212a4 100644
--- a/gl/m4/visibility.m4
+++ b/gl/m4/visibility.m4
@@ -1,5 +1,5 @@
1# visibility.m4 serial 8 1# visibility.m4 serial 8
2dnl Copyright (C) 2005, 2008, 2010-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2005, 2008, 2010-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/vsnprintf.m4 b/gl/m4/vsnprintf.m4
index 5f5375e..02b448f 100644
--- a/gl/m4/vsnprintf.m4
+++ b/gl/m4/vsnprintf.m4
@@ -1,5 +1,5 @@
1# vsnprintf.m4 serial 7 1# vsnprintf.m4 serial 7
2dnl Copyright (C) 2002-2004, 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2004, 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 04edfe8..d43355a 100644
--- a/gl/m4/warn-on-use.m4
+++ b/gl/m4/warn-on-use.m4
@@ -1,5 +1,5 @@
1# warn-on-use.m4 serial 9 1# warn-on-use.m4 serial 9
2dnl Copyright (C) 2010-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2010-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 9529cdd..4baba1a 100644
--- a/gl/m4/wchar_h.m4
+++ b/gl/m4/wchar_h.m4
@@ -1,6 +1,6 @@
1dnl A placeholder for ISO C99 <wchar.h>, for platforms that have issues. 1dnl A placeholder for ISO C99 <wchar.h>, for platforms that have issues.
2 2
3dnl Copyright (C) 2007-2021 Free Software Foundation, Inc. 3dnl Copyright (C) 2007-2022 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_t.m4 b/gl/m4/wchar_t.m4
index 34db10e..268e3e5 100644
--- a/gl/m4/wchar_t.m4
+++ b/gl/m4/wchar_t.m4
@@ -1,5 +1,5 @@
1# wchar_t.m4 serial 4 (gettext-0.18.2) 1# wchar_t.m4 serial 4 (gettext-0.18.2)
2dnl Copyright (C) 2002-2003, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2003, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/wcrtomb.m4 b/gl/m4/wcrtomb.m4
index cd96f11..fee21d7 100644
--- a/gl/m4/wcrtomb.m4
+++ b/gl/m4/wcrtomb.m4
@@ -1,5 +1,5 @@
1# wcrtomb.m4 serial 17 1# wcrtomb.m4 serial 17
2dnl Copyright (C) 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl 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 7d74212..702cb39 100644
--- a/gl/m4/wctype_h.m4
+++ b/gl/m4/wctype_h.m4
@@ -2,7 +2,7 @@
2 2
3dnl A placeholder for ISO C99 <wctype.h>, for platforms that lack it. 3dnl A placeholder for ISO C99 <wctype.h>, for platforms that lack it.
4 4
5dnl Copyright (C) 2006-2021 Free Software Foundation, Inc. 5dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
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,
8dnl with or without modifications, as long as this notice is preserved. 8dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/wint_t.m4 b/gl/m4/wint_t.m4
index a49c508..adc5866 100644
--- a/gl/m4/wint_t.m4
+++ b/gl/m4/wint_t.m4
@@ -1,5 +1,5 @@
1# wint_t.m4 serial 11 1# wint_t.m4 serial 11
2dnl Copyright (C) 2003, 2007-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2003, 2007-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/xalloc.m4 b/gl/m4/xalloc.m4
index 8fabf1c..17a9c06 100644
--- a/gl/m4/xalloc.m4
+++ b/gl/m4/xalloc.m4
@@ -1,5 +1,5 @@
1# xalloc.m4 serial 18 1# xalloc.m4 serial 18
2dnl Copyright (C) 2002-2006, 2009-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/xsize.m4 b/gl/m4/xsize.m4
index 64e8a4f..0109049 100644
--- a/gl/m4/xsize.m4
+++ b/gl/m4/xsize.m4
@@ -1,5 +1,5 @@
1# xsize.m4 serial 5 1# xsize.m4 serial 5
2dnl Copyright (C) 2003-2004, 2008-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2003-2004, 2008-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
diff --git a/gl/m4/year2038.m4 b/gl/m4/year2038.m4
index da0f8d7..2e4427e 100644
--- a/gl/m4/year2038.m4
+++ b/gl/m4/year2038.m4
@@ -1,5 +1,5 @@
1# year2038.m4 serial 7 1# year2038.m4 serial 8
2dnl Copyright (C) 2017-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2017-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.
@@ -7,6 +7,12 @@ dnl with or without modifications, as long as this notice is preserved.
7dnl Attempt to ensure that 'time_t' can go past the year 2038 and that 7dnl Attempt to ensure that 'time_t' can go past the year 2038 and that
8dnl the functions 'time', 'stat', etc. work with post-2038 timestamps. 8dnl the functions 'time', 'stat', etc. work with post-2038 timestamps.
9 9
10m4_ifdef([AC_SYS_YEAR2038], [
11 AC_DEFUN([gl_YEAR2038_EARLY])
12 AC_DEFUN([gl_YEAR2038], [AC_SYS_YEAR2038])
13 AC_DEFUN([gl_YEAR2038_BODY], [_AC_SYS_YEAR2038])
14], [
15
10AC_DEFUN([gl_YEAR2038_EARLY], 16AC_DEFUN([gl_YEAR2038_EARLY],
11[ 17[
12 AC_REQUIRE([AC_CANONICAL_HOST]) 18 AC_REQUIRE([AC_CANONICAL_HOST])
@@ -122,3 +128,5 @@ AC_DEFUN([gl_YEAR2038],
122[ 128[
123 gl_YEAR2038_BODY([require-year2038-safe]) 129 gl_YEAR2038_BODY([require-year2038-safe])
124]) 130])
131
132]) # m4_ifndef AC_SYS_YEAR2038
diff --git a/gl/m4/zzgnulib.m4 b/gl/m4/zzgnulib.m4
index b953384..fd73a20 100644
--- a/gl/m4/zzgnulib.m4
+++ b/gl/m4/zzgnulib.m4
@@ -1,5 +1,5 @@
1# zzgnulib.m4 serial 1 1# zzgnulib.m4 serial 1
2dnl Copyright (C) 2020-2021 Free Software Foundation, Inc. 2dnl Copyright (C) 2020-2022 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
5dnl with or without modifications, as long as this notice is preserved. 5dnl with or without modifications, as long as this notice is preserved.