Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage-utils:master commit in: /, autotools/m4/, autotools/gnulib/malloc/, autotools/gnulib/
Date: Wed, 23 Feb 2022 11:57:15
Message-Id: 1645294598.7ce2e1919efb5cd1527f9cfae4560637bc3b41b1.grobian@gentoo
1 commit: 7ce2e1919efb5cd1527f9cfae4560637bc3b41b1
2 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 19 18:16:38 2022 +0000
4 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 19 18:16:38 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=7ce2e191
7
8 autotools: update gnulib
9
10 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
11
12 Makefile.in | 880 ++--
13 autotools/gnulib/Makefile.am | 1717 ++++---
14 autotools/gnulib/Makefile.in | 5017 ++++++++++++++------
15 autotools/gnulib/_Noreturn.h | 39 +-
16 autotools/gnulib/alloca.in.h | 39 +-
17 autotools/gnulib/arg-nonnull.h | 12 +-
18 autotools/gnulib/asnprintf.c | 18 +-
19 autotools/gnulib/asprintf.c | 18 +-
20 autotools/gnulib/assure.h | 40 +-
21 autotools/gnulib/at-func.c | 6 +-
22 autotools/gnulib/at-func2.c | 13 +-
23 autotools/gnulib/basename-lgpl.c | 36 +-
24 autotools/gnulib/c++defs.h | 37 +-
25 autotools/gnulib/calloc.c | 55 +
26 autotools/gnulib/canonicalize-lgpl.c | 504 +-
27 autotools/gnulib/chdir-long.c | 4 +-
28 autotools/gnulib/chdir-long.h | 4 +-
29 autotools/gnulib/cloexec.c | 20 +-
30 autotools/gnulib/cloexec.h | 20 +-
31 autotools/gnulib/close.c | 24 +-
32 autotools/gnulib/closedir.c | 16 +-
33 autotools/gnulib/dirent-private.h | 20 +-
34 autotools/gnulib/dirent.in.h | 152 +-
35 autotools/gnulib/dirfd.c | 16 +-
36 autotools/gnulib/dirname-lgpl.c | 16 +-
37 autotools/gnulib/dirname.h | 48 +-
38 autotools/gnulib/dosname.h | 52 -
39 autotools/gnulib/dup-safer-flag.c | 4 +-
40 autotools/gnulib/dup-safer.c | 4 +-
41 autotools/gnulib/dup.c | 24 +-
42 autotools/gnulib/dup2.c | 118 +-
43 autotools/gnulib/errno.in.h | 18 +-
44 autotools/gnulib/error.c | 22 +-
45 autotools/gnulib/error.h | 53 +-
46 autotools/gnulib/euidaccess.c | 25 +-
47 autotools/gnulib/exitfail.c | 16 +-
48 autotools/gnulib/exitfail.h | 16 +-
49 autotools/gnulib/faccessat.c | 7 +-
50 autotools/gnulib/fchdir.c | 28 +-
51 autotools/gnulib/fcntl.c | 25 +-
52 autotools/gnulib/fcntl.in.h | 103 +-
53 autotools/gnulib/fd-hook.c | 18 +-
54 autotools/gnulib/fd-hook.h | 18 +-
55 autotools/gnulib/fd-safer-flag.c | 4 +-
56 autotools/gnulib/fd-safer.c | 4 +-
57 autotools/gnulib/fdopendir.c | 4 +-
58 autotools/gnulib/filename.h | 110 +-
59 autotools/gnulib/filenamecat-lgpl.c | 41 +-
60 autotools/gnulib/filenamecat.h | 25 +-
61 autotools/gnulib/float+.h | 18 +-
62 autotools/gnulib/float.c | 16 +-
63 autotools/gnulib/float.in.h | 22 +-
64 autotools/gnulib/fpucw.h | 26 +-
65 autotools/gnulib/free.c | 53 +
66 autotools/gnulib/frexp.c | 16 +-
67 autotools/gnulib/frexpl.c | 16 +-
68 autotools/gnulib/fstat.c | 16 +-
69 autotools/gnulib/fstatat.c | 5 +-
70 autotools/gnulib/futimens.c | 16 +-
71 autotools/gnulib/getcwd-lgpl.c | 45 +-
72 autotools/gnulib/getdelim.c | 22 +-
73 autotools/gnulib/getdtablesize.c | 16 +-
74 autotools/gnulib/getgroups.c | 24 +-
75 autotools/gnulib/getline.c | 22 +-
76 autotools/gnulib/getopt-cdefs.in.h | 25 +-
77 autotools/gnulib/getopt-core.h | 10 +-
78 autotools/gnulib/getopt-ext.h | 10 +-
79 autotools/gnulib/getopt-pfx-core.h | 31 +-
80 autotools/gnulib/getopt-pfx-ext.h | 23 +-
81 autotools/gnulib/getopt.c | 14 +-
82 autotools/gnulib/getopt.in.h | 22 +-
83 autotools/gnulib/getopt1.c | 10 +-
84 autotools/gnulib/getopt_int.h | 10 +-
85 autotools/gnulib/getprogname.c | 65 +-
86 autotools/gnulib/getprogname.h | 10 +-
87 autotools/gnulib/gettext.h | 31 +-
88 autotools/gnulib/gettime.c | 18 +-
89 autotools/gnulib/gettimeofday.c | 47 +-
90 autotools/gnulib/group-member.c | 24 +-
91 autotools/gnulib/ialloc.c | 21 +
92 autotools/gnulib/intprops.h | 307 +-
93 autotools/gnulib/inttypes.in.h | 520 +-
94 autotools/gnulib/isnan.c | 16 +-
95 autotools/gnulib/isnand-nolibm.h | 20 +-
96 autotools/gnulib/isnand.c | 16 +-
97 autotools/gnulib/isnanf-nolibm.h | 23 +-
98 autotools/gnulib/isnanf.c | 16 +-
99 autotools/gnulib/isnanl-nolibm.h | 23 +-
100 autotools/gnulib/isnanl.c | 16 +-
101 autotools/gnulib/itold.c | 16 +-
102 autotools/gnulib/limits.in.h | 57 +-
103 autotools/gnulib/localtime-buffer.c | 60 -
104 autotools/gnulib/localtime-buffer.h | 27 -
105 autotools/gnulib/lstat.c | 16 +-
106 autotools/gnulib/malloc.c | 43 +-
107 autotools/gnulib/malloc/.dirstamp | 0
108 autotools/gnulib/malloc/scratch_buffer.gl.h | 148 +
109 autotools/gnulib/malloc/scratch_buffer.h | 151 +
110 autotools/gnulib/malloc/scratch_buffer_dupfree.c | 41 +
111 autotools/gnulib/malloc/scratch_buffer_grow.c | 56 +
112 .../gnulib/malloc/scratch_buffer_grow_preserve.c | 67 +
113 .../gnulib/malloc/scratch_buffer_set_array_size.c | 64 +
114 autotools/gnulib/malloca.c | 42 +-
115 autotools/gnulib/malloca.h | 47 +-
116 autotools/gnulib/math.c | 18 +
117 autotools/gnulib/math.in.h | 373 +-
118 autotools/gnulib/memchr.c | 26 +-
119 autotools/gnulib/memchr.valgrind | 16 +
120 autotools/gnulib/mempcpy.c | 23 +-
121 autotools/gnulib/memrchr.c | 16 +-
122 autotools/gnulib/mkdir.c | 20 +-
123 autotools/gnulib/mkdirat.c | 8 +-
124 autotools/gnulib/msvc-inval.c | 18 +-
125 autotools/gnulib/msvc-inval.h | 18 +-
126 autotools/gnulib/msvc-nothrow.c | 18 +-
127 autotools/gnulib/msvc-nothrow.h | 18 +-
128 autotools/gnulib/open.c | 61 +-
129 autotools/gnulib/openat-die.c | 4 +-
130 autotools/gnulib/openat-priv.h | 4 +-
131 autotools/gnulib/openat-proc.c | 9 +-
132 autotools/gnulib/openat.c | 50 +-
133 autotools/gnulib/openat.h | 24 +-
134 autotools/gnulib/opendir.c | 26 +-
135 autotools/gnulib/pathmax.h | 20 +-
136 autotools/gnulib/pipe-safer.c | 12 +-
137 autotools/gnulib/pipe.c | 50 +
138 autotools/gnulib/printf-args.c | 22 +-
139 autotools/gnulib/printf-args.h | 30 +-
140 autotools/gnulib/printf-frexp.c | 16 +-
141 autotools/gnulib/printf-frexp.h | 16 +-
142 autotools/gnulib/printf-frexpl.c | 16 +-
143 autotools/gnulib/printf-frexpl.h | 16 +-
144 autotools/gnulib/printf-parse.c | 53 +-
145 autotools/gnulib/printf-parse.h | 18 +-
146 autotools/gnulib/rawmemchr.c | 125 +
147 autotools/gnulib/rawmemchr.valgrind | 28 +
148 autotools/gnulib/readlink.c | 66 +-
149 autotools/gnulib/readlinkat.c | 56 +-
150 autotools/gnulib/realloc.c | 66 +-
151 autotools/gnulib/reallocarray.c | 39 +
152 autotools/gnulib/rename.c | 24 +-
153 autotools/gnulib/renameat.c | 4 +-
154 autotools/gnulib/renameatu.c | 74 +-
155 autotools/gnulib/renameatu.h | 4 +-
156 autotools/gnulib/rmdir.c | 21 +-
157 autotools/gnulib/root-uid.h | 20 +-
158 autotools/gnulib/same-inode.h | 16 +-
159 autotools/gnulib/save-cwd.c | 4 +-
160 autotools/gnulib/save-cwd.h | 4 +-
161 autotools/gnulib/signbitd.c | 16 +-
162 autotools/gnulib/signbitf.c | 16 +-
163 autotools/gnulib/signbitl.c | 16 +-
164 autotools/gnulib/size_max.h | 18 +-
165 autotools/gnulib/stat-time.c | 18 +
166 autotools/gnulib/stat-time.h | 22 +-
167 autotools/gnulib/stat-w32.c | 72 +-
168 autotools/gnulib/stat-w32.h | 16 +-
169 autotools/gnulib/stat.c | 29 +-
170 autotools/gnulib/statat.c | 18 +
171 autotools/gnulib/stdbool.in.h | 18 +-
172 autotools/gnulib/stddef.in.h | 75 +-
173 autotools/gnulib/stdint.in.h | 102 +-
174 autotools/gnulib/stdio-read.c | 168 +
175 autotools/gnulib/stdio-write.c | 206 +
176 autotools/gnulib/stdio.in.h | 737 ++-
177 autotools/gnulib/stdlib.in.h | 639 ++-
178 autotools/gnulib/str-two-way.h | 22 +-
179 autotools/gnulib/strcasecmp.c | 20 +-
180 autotools/gnulib/strcasestr.c | 18 +-
181 autotools/gnulib/strdup.c | 18 +-
182 autotools/gnulib/strerror-override.c | 102 +-
183 autotools/gnulib/strerror-override.h | 17 +-
184 autotools/gnulib/strerror.c | 16 +-
185 autotools/gnulib/string.in.h | 322 +-
186 autotools/gnulib/strings.in.h | 18 +-
187 autotools/gnulib/stripslash.c | 16 +-
188 autotools/gnulib/strncasecmp.c | 20 +-
189 autotools/gnulib/strncat.c | 18 +-
190 autotools/gnulib/symlink.c | 22 +-
191 autotools/gnulib/symlinkat.c | 15 +-
192 autotools/gnulib/sys_stat.in.h | 223 +-
193 autotools/gnulib/sys_time.in.h | 26 +-
194 autotools/gnulib/sys_types.in.h | 18 +-
195 autotools/gnulib/time.in.h | 168 +-
196 autotools/gnulib/timespec.c | 18 +
197 autotools/gnulib/timespec.h | 58 +-
198 autotools/gnulib/unistd--.h | 4 +-
199 autotools/gnulib/unistd-safer.h | 4 +-
200 autotools/gnulib/unistd.c | 18 +
201 autotools/gnulib/unistd.in.h | 812 +++-
202 autotools/gnulib/unlink.c | 29 +-
203 autotools/gnulib/unlinkat.c | 9 +-
204 autotools/gnulib/utime.c | 52 +-
205 autotools/gnulib/utime.in.h | 42 +-
206 autotools/gnulib/utimens.c | 41 +-
207 autotools/gnulib/utimens.h | 16 +-
208 autotools/gnulib/utimensat.c | 107 +-
209 autotools/gnulib/vasnprintf.c | 494 +-
210 autotools/gnulib/vasnprintf.h | 41 +-
211 autotools/gnulib/vasprintf.c | 18 +-
212 autotools/gnulib/verify.h | 148 +-
213 autotools/gnulib/warn-on-use.h | 58 +-
214 autotools/gnulib/wchar.in.h | 486 +-
215 autotools/gnulib/xalloc-die.c | 4 +-
216 autotools/gnulib/xalloc-oversized.h | 55 +-
217 autotools/gnulib/xalloc.h | 223 +-
218 autotools/gnulib/xmalloc.c | 303 +-
219 autotools/gnulib/xsize.c | 18 +
220 autotools/gnulib/xsize.h | 41 +-
221 autotools/m4/00gnulib.m4 | 107 +-
222 autotools/m4/__inline.m4 | 22 +
223 autotools/m4/absolute-header.m4 | 12 +-
224 autotools/m4/alloca.m4 | 46 +-
225 autotools/m4/builtin-expect.m4 | 49 +
226 autotools/m4/calloc.m4 | 83 +
227 autotools/m4/canonicalize.m4 | 80 +-
228 autotools/m4/chdir-long.m4 | 12 +-
229 autotools/m4/clock_time.m4 | 9 +-
230 autotools/m4/close.m4 | 2 +-
231 autotools/m4/closedir.m4 | 2 +-
232 autotools/m4/dirent_h.m4 | 47 +-
233 autotools/m4/dirfd.m4 | 2 +-
234 autotools/m4/dirname.m4 | 19 -
235 autotools/m4/double-slash-root.m4 | 2 +-
236 autotools/m4/dup.m4 | 7 +-
237 autotools/m4/dup2.m4 | 184 +-
238 autotools/m4/eealloc.m4 | 2 +-
239 autotools/m4/errno_h.m4 | 12 +-
240 autotools/m4/error.m4 | 8 +-
241 autotools/m4/euidaccess.m4 | 2 +-
242 autotools/m4/exponentd.m4 | 2 +-
243 autotools/m4/exponentf.m4 | 2 +-
244 autotools/m4/exponentl.m4 | 16 +-
245 autotools/m4/extensions.m4 | 174 +-
246 autotools/m4/extern-inline.m4 | 30 +-
247 autotools/m4/faccessat.m4 | 6 +-
248 autotools/m4/fchdir.m4 | 39 +-
249 autotools/m4/fcntl-o.m4 | 5 +-
250 autotools/m4/fcntl.m4 | 55 +-
251 autotools/m4/fcntl_h.m4 | 38 +-
252 autotools/m4/fdopendir.m4 | 32 +-
253 autotools/m4/filenamecat.m4 | 2 +-
254 autotools/m4/float_h.m4 | 22 +-
255 autotools/m4/fpieee.m4 | 2 +-
256 autotools/m4/free.m4 | 52 +
257 autotools/m4/frexp.m4 | 2 +-
258 autotools/m4/frexpl.m4 | 8 +-
259 autotools/m4/fstat.m4 | 7 +-
260 autotools/m4/fstatat.m4 | 2 +-
261 autotools/m4/futimens.m4 | 27 +-
262 autotools/m4/getcwd.m4 | 22 +-
263 autotools/m4/getdelim.m4 | 43 +-
264 autotools/m4/getdtablesize.m4 | 21 +-
265 autotools/m4/getgroups.m4 | 23 +-
266 autotools/m4/getline.m4 | 40 +-
267 autotools/m4/getopt.m4 | 18 +-
268 autotools/m4/getprogname.m4 | 2 +-
269 autotools/m4/gettime.m4 | 14 +-
270 autotools/m4/gettimeofday.m4 | 65 +-
271 autotools/m4/gnulib-cache.m4 | 4 +-
272 autotools/m4/gnulib-common.m4 | 839 +++-
273 autotools/m4/gnulib-comp.m4 | 580 ++-
274 autotools/m4/gnulib-tool.m4 | 10 +-
275 autotools/m4/group-member.m4 | 2 +-
276 autotools/m4/include_next.m4 | 40 +-
277 autotools/m4/intmax_t.m4 | 16 +-
278 autotools/m4/inttypes-pri.m4 | 42 -
279 autotools/m4/inttypes.m4 | 57 +-
280 autotools/m4/inttypes_h.m4 | 2 +-
281 autotools/m4/isnand.m4 | 8 +-
282 autotools/m4/isnanf.m4 | 18 +-
283 autotools/m4/isnanl.m4 | 16 +-
284 autotools/m4/largefile.m4 | 61 +-
285 autotools/m4/ldexpl.m4 | 2 +-
286 autotools/m4/limits-h.m4 | 14 +-
287 autotools/m4/localtime-buffer.m4 | 21 -
288 autotools/m4/longlong.m4 | 113 -
289 autotools/m4/lstat.m4 | 8 +-
290 autotools/m4/malloc.m4 | 168 +-
291 autotools/m4/malloca.m4 | 5 +-
292 autotools/m4/math_h.m4 | 576 +--
293 autotools/m4/memchr.m4 | 76 +-
294 autotools/m4/mempcpy.m4 | 6 +-
295 autotools/m4/memrchr.m4 | 6 +-
296 autotools/m4/minmax.m4 | 44 +
297 autotools/m4/mkdir.m4 | 89 +-
298 autotools/m4/mkdirat.m4 | 2 +-
299 autotools/m4/mmap-anon.m4 | 8 +-
300 autotools/m4/mode_t.m4 | 2 +-
301 autotools/m4/msvc-inval.m4 | 2 +-
302 autotools/m4/msvc-nothrow.m4 | 2 +-
303 autotools/m4/multiarch.m4 | 69 +-
304 autotools/m4/nocrash.m4 | 6 +-
305 autotools/m4/off_t.m4 | 2 +-
306 autotools/m4/open-cloexec.m4 | 2 +-
307 autotools/m4/open-slash.m4 | 60 +
308 autotools/m4/open.m4 | 43 +-
309 autotools/m4/openat.m4 | 2 +-
310 autotools/m4/opendir.m4 | 2 +-
311 autotools/m4/pathmax.m4 | 2 +-
312 autotools/m4/pid_t.m4 | 38 +
313 autotools/m4/{unistd-safer.m4 => pipe.m4} | 11 +-
314 autotools/m4/printf-frexp.m4 | 2 +-
315 autotools/m4/printf-frexpl.m4 | 2 +-
316 autotools/m4/printf.m4 | 140 +-
317 autotools/m4/rawmemchr.m4 | 20 +
318 autotools/m4/readlink.m4 | 63 +-
319 autotools/m4/readlinkat.m4 | 15 +-
320 autotools/m4/realloc.m4 | 62 +-
321 autotools/m4/reallocarray.m4 | 23 +
322 autotools/m4/rename.m4 | 107 +-
323 autotools/m4/renameat.m4 | 2 +-
324 autotools/m4/rmdir.m4 | 27 +-
325 autotools/m4/save-cwd.m4 | 2 +-
326 autotools/m4/signbit.m4 | 188 +-
327 autotools/m4/size_max.m4 | 8 +-
328 autotools/m4/ssize_t.m4 | 2 +-
329 autotools/m4/stat-time.m4 | 2 +-
330 autotools/m4/stat.m4 | 21 +-
331 autotools/m4/std-gnu11.m4 | 829 ++++
332 autotools/m4/stdalign.m4 | 56 +
333 autotools/m4/stdbool.m4 | 33 +-
334 autotools/m4/stddef_h.m4 | 53 +-
335 autotools/m4/stdint.m4 | 61 +-
336 autotools/m4/stdint_h.m4 | 2 +-
337 autotools/m4/stdio_h.m4 | 200 +-
338 autotools/m4/stdlib_h.m4 | 158 +-
339 autotools/m4/strcase.m4 | 8 +-
340 autotools/m4/strcasestr.m4 | 15 +-
341 autotools/m4/strdup.m4 | 16 +-
342 autotools/m4/strerror.m4 | 20 +-
343 autotools/m4/string_h.m4 | 135 +-
344 autotools/m4/strings_h.m4 | 40 +-
345 autotools/m4/strncat.m4 | 9 +-
346 autotools/m4/symlink.m4 | 8 +-
347 autotools/m4/symlinkat.m4 | 8 +-
348 autotools/m4/sys_socket_h.m4 | 88 +-
349 autotools/m4/sys_stat_h.m4 | 73 +-
350 autotools/m4/sys_time_h.m4 | 36 +-
351 autotools/m4/sys_types_h.m4 | 38 +-
352 autotools/m4/time_h.m4 | 83 +-
353 autotools/m4/timespec.m4 | 2 +-
354 autotools/m4/unistd-safer.m4 | 2 +-
355 autotools/m4/unistd_h.m4 | 353 +-
356 autotools/m4/unlink.m4 | 15 +-
357 autotools/m4/unlinkat.m4 | 2 +-
358 autotools/m4/utime.m4 | 78 +-
359 autotools/m4/utime_h.m4 | 53 +-
360 autotools/m4/utimens.m4 | 11 +-
361 autotools/m4/utimensat.m4 | 62 +-
362 autotools/m4/utimes.m4 | 13 +-
363 autotools/m4/vararrays.m4 | 72 +
364 autotools/m4/vasnprintf.m4 | 17 +-
365 autotools/m4/vasprintf-posix.m4 | 2 +-
366 autotools/m4/vasprintf.m4 | 2 +-
367 autotools/m4/warn-on-use.m4 | 16 +-
368 autotools/m4/wchar_h.m4 | 221 +-
369 autotools/m4/wchar_t.m4 | 2 +-
370 autotools/m4/wint_t.m4 | 47 +-
371 autotools/m4/xalloc.m4 | 2 +-
372 autotools/m4/xsize.m4 | 2 +-
373 autotools/m4/year2038.m4 | 124 +
374 autotools/m4/zzgnulib.m4 | 23 +
375 363 files changed, 19300 insertions(+), 8972 deletions(-)
376
377 diff --git a/Makefile.in b/Makefile.in
378 index 8ba85a3..4007fa4 100644
379 --- a/Makefile.in
380 +++ b/Makefile.in
381 @@ -101,9 +101,12 @@ bin_PROGRAMS = q$(EXEEXT)
382 subdir = .
383 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
384 am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
385 + $(top_srcdir)/autotools/m4/__inline.m4 \
386 $(top_srcdir)/autotools/m4/absolute-header.m4 \
387 $(top_srcdir)/autotools/m4/ac_check_sendfile.m4 \
388 $(top_srcdir)/autotools/m4/alloca.m4 \
389 + $(top_srcdir)/autotools/m4/builtin-expect.m4 \
390 + $(top_srcdir)/autotools/m4/calloc.m4 \
391 $(top_srcdir)/autotools/m4/canonicalize.m4 \
392 $(top_srcdir)/autotools/m4/chdir-long.m4 \
393 $(top_srcdir)/autotools/m4/clock_time.m4 \
394 @@ -111,7 +114,6 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
395 $(top_srcdir)/autotools/m4/closedir.m4 \
396 $(top_srcdir)/autotools/m4/dirent_h.m4 \
397 $(top_srcdir)/autotools/m4/dirfd.m4 \
398 - $(top_srcdir)/autotools/m4/dirname.m4 \
399 $(top_srcdir)/autotools/m4/double-slash-root.m4 \
400 $(top_srcdir)/autotools/m4/dup.m4 \
401 $(top_srcdir)/autotools/m4/dup2.m4 \
402 @@ -133,6 +135,7 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
403 $(top_srcdir)/autotools/m4/filenamecat.m4 \
404 $(top_srcdir)/autotools/m4/float_h.m4 \
405 $(top_srcdir)/autotools/m4/fpieee.m4 \
406 + $(top_srcdir)/autotools/m4/free.m4 \
407 $(top_srcdir)/autotools/m4/frexp.m4 \
408 $(top_srcdir)/autotools/m4/frexpl.m4 \
409 $(top_srcdir)/autotools/m4/fstat.m4 \
410 @@ -152,7 +155,6 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
411 $(top_srcdir)/autotools/m4/group-member.m4 \
412 $(top_srcdir)/autotools/m4/include_next.m4 \
413 $(top_srcdir)/autotools/m4/intmax_t.m4 \
414 - $(top_srcdir)/autotools/m4/inttypes-pri.m4 \
415 $(top_srcdir)/autotools/m4/inttypes.m4 \
416 $(top_srcdir)/autotools/m4/inttypes_h.m4 \
417 $(top_srcdir)/autotools/m4/isnand.m4 \
418 @@ -162,8 +164,6 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
419 $(top_srcdir)/autotools/m4/ldexpl.m4 \
420 $(top_srcdir)/autotools/m4/libtool.m4 \
421 $(top_srcdir)/autotools/m4/limits-h.m4 \
422 - $(top_srcdir)/autotools/m4/localtime-buffer.m4 \
423 - $(top_srcdir)/autotools/m4/longlong.m4 \
424 $(top_srcdir)/autotools/m4/lstat.m4 \
425 $(top_srcdir)/autotools/m4/ltoptions.m4 \
426 $(top_srcdir)/autotools/m4/ltsugar.m4 \
427 @@ -175,6 +175,7 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
428 $(top_srcdir)/autotools/m4/memchr.m4 \
429 $(top_srcdir)/autotools/m4/mempcpy.m4 \
430 $(top_srcdir)/autotools/m4/memrchr.m4 \
431 + $(top_srcdir)/autotools/m4/minmax.m4 \
432 $(top_srcdir)/autotools/m4/mkdir.m4 \
433 $(top_srcdir)/autotools/m4/mkdirat.m4 \
434 $(top_srcdir)/autotools/m4/mmap-anon.m4 \
435 @@ -185,16 +186,20 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
436 $(top_srcdir)/autotools/m4/nocrash.m4 \
437 $(top_srcdir)/autotools/m4/off_t.m4 \
438 $(top_srcdir)/autotools/m4/open-cloexec.m4 \
439 + $(top_srcdir)/autotools/m4/open-slash.m4 \
440 $(top_srcdir)/autotools/m4/open.m4 \
441 $(top_srcdir)/autotools/m4/openat.m4 \
442 $(top_srcdir)/autotools/m4/opendir.m4 \
443 $(top_srcdir)/autotools/m4/pathmax.m4 \
444 + $(top_srcdir)/autotools/m4/pipe.m4 \
445 $(top_srcdir)/autotools/m4/printf-frexp.m4 \
446 $(top_srcdir)/autotools/m4/printf-frexpl.m4 \
447 $(top_srcdir)/autotools/m4/printf.m4 \
448 + $(top_srcdir)/autotools/m4/rawmemchr.m4 \
449 $(top_srcdir)/autotools/m4/readlink.m4 \
450 $(top_srcdir)/autotools/m4/readlinkat.m4 \
451 $(top_srcdir)/autotools/m4/realloc.m4 \
452 + $(top_srcdir)/autotools/m4/reallocarray.m4 \
453 $(top_srcdir)/autotools/m4/rename.m4 \
454 $(top_srcdir)/autotools/m4/renameat.m4 \
455 $(top_srcdir)/autotools/m4/rmdir.m4 \
456 @@ -204,6 +209,7 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
457 $(top_srcdir)/autotools/m4/ssize_t.m4 \
458 $(top_srcdir)/autotools/m4/stat-time.m4 \
459 $(top_srcdir)/autotools/m4/stat.m4 \
460 + $(top_srcdir)/autotools/m4/stdalign.m4 \
461 $(top_srcdir)/autotools/m4/stdbool.m4 \
462 $(top_srcdir)/autotools/m4/stddef_h.m4 \
463 $(top_srcdir)/autotools/m4/stdint.m4 \
464 @@ -242,7 +248,10 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
465 $(top_srcdir)/autotools/m4/wchar_t.m4 \
466 $(top_srcdir)/autotools/m4/wint_t.m4 \
467 $(top_srcdir)/autotools/m4/xalloc.m4 \
468 - $(top_srcdir)/autotools/m4/xsize.m4 $(top_srcdir)/configure.ac
469 + $(top_srcdir)/autotools/m4/xsize.m4 \
470 + $(top_srcdir)/autotools/m4/year2038.m4 \
471 + $(top_srcdir)/autotools/m4/zzgnulib.m4 \
472 + $(top_srcdir)/configure.ac
473 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
474 $(ACLOCAL_M4)
475 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
476 @@ -490,368 +499,450 @@ FGREP = @FGREP@
477 FLOAT_H = @FLOAT_H@
478 GETOPT_CDEFS_H = @GETOPT_CDEFS_H@
479 GETOPT_H = @GETOPT_H@
480 -GNULIB_ACOSF = @GNULIB_ACOSF@
481 -GNULIB_ACOSL = @GNULIB_ACOSL@
482 -GNULIB_ALPHASORT = @GNULIB_ALPHASORT@
483 -GNULIB_ASINF = @GNULIB_ASINF@
484 -GNULIB_ASINL = @GNULIB_ASINL@
485 -GNULIB_ATAN2F = @GNULIB_ATAN2F@
486 -GNULIB_ATANF = @GNULIB_ATANF@
487 -GNULIB_ATANL = @GNULIB_ATANL@
488 -GNULIB_ATOLL = @GNULIB_ATOLL@
489 -GNULIB_BTOWC = @GNULIB_BTOWC@
490 -GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@
491 -GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@
492 -GNULIB_CBRT = @GNULIB_CBRT@
493 -GNULIB_CBRTF = @GNULIB_CBRTF@
494 -GNULIB_CBRTL = @GNULIB_CBRTL@
495 -GNULIB_CEIL = @GNULIB_CEIL@
496 -GNULIB_CEILF = @GNULIB_CEILF@
497 -GNULIB_CEILL = @GNULIB_CEILL@
498 -GNULIB_CHDIR = @GNULIB_CHDIR@
499 -GNULIB_CHOWN = @GNULIB_CHOWN@
500 -GNULIB_CLOSE = @GNULIB_CLOSE@
501 -GNULIB_CLOSEDIR = @GNULIB_CLOSEDIR@
502 -GNULIB_COPYSIGN = @GNULIB_COPYSIGN@
503 -GNULIB_COPYSIGNF = @GNULIB_COPYSIGNF@
504 -GNULIB_COPYSIGNL = @GNULIB_COPYSIGNL@
505 -GNULIB_COSF = @GNULIB_COSF@
506 -GNULIB_COSHF = @GNULIB_COSHF@
507 -GNULIB_COSL = @GNULIB_COSL@
508 -GNULIB_CTIME = @GNULIB_CTIME@
509 -GNULIB_DIRFD = @GNULIB_DIRFD@
510 -GNULIB_DPRINTF = @GNULIB_DPRINTF@
511 -GNULIB_DUP = @GNULIB_DUP@
512 -GNULIB_DUP2 = @GNULIB_DUP2@
513 -GNULIB_DUP3 = @GNULIB_DUP3@
514 -GNULIB_ENVIRON = @GNULIB_ENVIRON@
515 -GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@
516 -GNULIB_EXP2 = @GNULIB_EXP2@
517 -GNULIB_EXP2F = @GNULIB_EXP2F@
518 -GNULIB_EXP2L = @GNULIB_EXP2L@
519 -GNULIB_EXPF = @GNULIB_EXPF@
520 -GNULIB_EXPL = @GNULIB_EXPL@
521 -GNULIB_EXPLICIT_BZERO = @GNULIB_EXPLICIT_BZERO@
522 -GNULIB_EXPM1 = @GNULIB_EXPM1@
523 -GNULIB_EXPM1F = @GNULIB_EXPM1F@
524 -GNULIB_EXPM1L = @GNULIB_EXPM1L@
525 -GNULIB_FABSF = @GNULIB_FABSF@
526 -GNULIB_FABSL = @GNULIB_FABSL@
527 -GNULIB_FACCESSAT = @GNULIB_FACCESSAT@
528 -GNULIB_FCHDIR = @GNULIB_FCHDIR@
529 -GNULIB_FCHMODAT = @GNULIB_FCHMODAT@
530 -GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@
531 -GNULIB_FCLOSE = @GNULIB_FCLOSE@
532 -GNULIB_FCNTL = @GNULIB_FCNTL@
533 -GNULIB_FDATASYNC = @GNULIB_FDATASYNC@
534 -GNULIB_FDOPEN = @GNULIB_FDOPEN@
535 -GNULIB_FDOPENDIR = @GNULIB_FDOPENDIR@
536 -GNULIB_FFLUSH = @GNULIB_FFLUSH@
537 -GNULIB_FFS = @GNULIB_FFS@
538 -GNULIB_FFSL = @GNULIB_FFSL@
539 -GNULIB_FFSLL = @GNULIB_FFSLL@
540 -GNULIB_FGETC = @GNULIB_FGETC@
541 -GNULIB_FGETS = @GNULIB_FGETS@
542 -GNULIB_FLOOR = @GNULIB_FLOOR@
543 -GNULIB_FLOORF = @GNULIB_FLOORF@
544 -GNULIB_FLOORL = @GNULIB_FLOORL@
545 -GNULIB_FMA = @GNULIB_FMA@
546 -GNULIB_FMAF = @GNULIB_FMAF@
547 -GNULIB_FMAL = @GNULIB_FMAL@
548 -GNULIB_FMOD = @GNULIB_FMOD@
549 -GNULIB_FMODF = @GNULIB_FMODF@
550 -GNULIB_FMODL = @GNULIB_FMODL@
551 -GNULIB_FOPEN = @GNULIB_FOPEN@
552 -GNULIB_FPRINTF = @GNULIB_FPRINTF@
553 -GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
554 -GNULIB_FPURGE = @GNULIB_FPURGE@
555 -GNULIB_FPUTC = @GNULIB_FPUTC@
556 -GNULIB_FPUTS = @GNULIB_FPUTS@
557 -GNULIB_FREAD = @GNULIB_FREAD@
558 -GNULIB_FREOPEN = @GNULIB_FREOPEN@
559 -GNULIB_FREXP = @GNULIB_FREXP@
560 -GNULIB_FREXPF = @GNULIB_FREXPF@
561 -GNULIB_FREXPL = @GNULIB_FREXPL@
562 -GNULIB_FSCANF = @GNULIB_FSCANF@
563 -GNULIB_FSEEK = @GNULIB_FSEEK@
564 -GNULIB_FSEEKO = @GNULIB_FSEEKO@
565 -GNULIB_FSTAT = @GNULIB_FSTAT@
566 -GNULIB_FSTATAT = @GNULIB_FSTATAT@
567 -GNULIB_FSYNC = @GNULIB_FSYNC@
568 -GNULIB_FTELL = @GNULIB_FTELL@
569 -GNULIB_FTELLO = @GNULIB_FTELLO@
570 -GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
571 -GNULIB_FUTIMENS = @GNULIB_FUTIMENS@
572 -GNULIB_FWRITE = @GNULIB_FWRITE@
573 -GNULIB_GETC = @GNULIB_GETC@
574 -GNULIB_GETCHAR = @GNULIB_GETCHAR@
575 -GNULIB_GETCWD = @GNULIB_GETCWD@
576 -GNULIB_GETDELIM = @GNULIB_GETDELIM@
577 -GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@
578 -GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@
579 -GNULIB_GETGROUPS = @GNULIB_GETGROUPS@
580 -GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@
581 -GNULIB_GETLINE = @GNULIB_GETLINE@
582 -GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@
583 -GNULIB_GETLOGIN = @GNULIB_GETLOGIN@
584 -GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
585 -GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@
586 -GNULIB_GETPASS = @GNULIB_GETPASS@
587 -GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
588 +GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@
589 +GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@
590 +GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@
591 +GL_GNULIB_ACOSF = @GL_GNULIB_ACOSF@
592 +GL_GNULIB_ACOSL = @GL_GNULIB_ACOSL@
593 +GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@
594 +GL_GNULIB_ALPHASORT = @GL_GNULIB_ALPHASORT@
595 +GL_GNULIB_ASINF = @GL_GNULIB_ASINF@
596 +GL_GNULIB_ASINL = @GL_GNULIB_ASINL@
597 +GL_GNULIB_ATAN2F = @GL_GNULIB_ATAN2F@
598 +GL_GNULIB_ATANF = @GL_GNULIB_ATANF@
599 +GL_GNULIB_ATANL = @GL_GNULIB_ATANL@
600 +GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@
601 +GL_GNULIB_BTOWC = @GL_GNULIB_BTOWC@
602 +GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@
603 +GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@
604 +GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@
605 +GL_GNULIB_CBRT = @GL_GNULIB_CBRT@
606 +GL_GNULIB_CBRTF = @GL_GNULIB_CBRTF@
607 +GL_GNULIB_CBRTL = @GL_GNULIB_CBRTL@
608 +GL_GNULIB_CEIL = @GL_GNULIB_CEIL@
609 +GL_GNULIB_CEILF = @GL_GNULIB_CEILF@
610 +GL_GNULIB_CEILL = @GL_GNULIB_CEILL@
611 +GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@
612 +GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@
613 +GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@
614 +GL_GNULIB_CLOSEDIR = @GL_GNULIB_CLOSEDIR@
615 +GL_GNULIB_COPYSIGN = @GL_GNULIB_COPYSIGN@
616 +GL_GNULIB_COPYSIGNF = @GL_GNULIB_COPYSIGNF@
617 +GL_GNULIB_COPYSIGNL = @GL_GNULIB_COPYSIGNL@
618 +GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@
619 +GL_GNULIB_COSF = @GL_GNULIB_COSF@
620 +GL_GNULIB_COSHF = @GL_GNULIB_COSHF@
621 +GL_GNULIB_COSL = @GL_GNULIB_COSL@
622 +GL_GNULIB_CREAT = @GL_GNULIB_CREAT@
623 +GL_GNULIB_CTIME = @GL_GNULIB_CTIME@
624 +GL_GNULIB_DIRFD = @GL_GNULIB_DIRFD@
625 +GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@
626 +GL_GNULIB_DUP = @GL_GNULIB_DUP@
627 +GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@
628 +GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@
629 +GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@
630 +GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@
631 +GL_GNULIB_EXECL = @GL_GNULIB_EXECL@
632 +GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@
633 +GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@
634 +GL_GNULIB_EXECV = @GL_GNULIB_EXECV@
635 +GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@
636 +GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@
637 +GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@
638 +GL_GNULIB_EXP2 = @GL_GNULIB_EXP2@
639 +GL_GNULIB_EXP2F = @GL_GNULIB_EXP2F@
640 +GL_GNULIB_EXP2L = @GL_GNULIB_EXP2L@
641 +GL_GNULIB_EXPF = @GL_GNULIB_EXPF@
642 +GL_GNULIB_EXPL = @GL_GNULIB_EXPL@
643 +GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@
644 +GL_GNULIB_EXPM1 = @GL_GNULIB_EXPM1@
645 +GL_GNULIB_EXPM1F = @GL_GNULIB_EXPM1F@
646 +GL_GNULIB_EXPM1L = @GL_GNULIB_EXPM1L@
647 +GL_GNULIB_FABSF = @GL_GNULIB_FABSF@
648 +GL_GNULIB_FABSL = @GL_GNULIB_FABSL@
649 +GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@
650 +GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@
651 +GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@
652 +GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@
653 +GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@
654 +GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@
655 +GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@
656 +GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@
657 +GL_GNULIB_FDOPENDIR = @GL_GNULIB_FDOPENDIR@
658 +GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@
659 +GL_GNULIB_FFS = @GL_GNULIB_FFS@
660 +GL_GNULIB_FFSL = @GL_GNULIB_FFSL@
661 +GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@
662 +GL_GNULIB_FGETC = @GL_GNULIB_FGETC@
663 +GL_GNULIB_FGETS = @GL_GNULIB_FGETS@
664 +GL_GNULIB_FLOOR = @GL_GNULIB_FLOOR@
665 +GL_GNULIB_FLOORF = @GL_GNULIB_FLOORF@
666 +GL_GNULIB_FLOORL = @GL_GNULIB_FLOORL@
667 +GL_GNULIB_FMA = @GL_GNULIB_FMA@
668 +GL_GNULIB_FMAF = @GL_GNULIB_FMAF@
669 +GL_GNULIB_FMAL = @GL_GNULIB_FMAL@
670 +GL_GNULIB_FMOD = @GL_GNULIB_FMOD@
671 +GL_GNULIB_FMODF = @GL_GNULIB_FMODF@
672 +GL_GNULIB_FMODL = @GL_GNULIB_FMODL@
673 +GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@
674 +GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@
675 +GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@
676 +GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@
677 +GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@
678 +GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@
679 +GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@
680 +GL_GNULIB_FREAD = @GL_GNULIB_FREAD@
681 +GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@
682 +GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@
683 +GL_GNULIB_FREXP = @GL_GNULIB_FREXP@
684 +GL_GNULIB_FREXPF = @GL_GNULIB_FREXPF@
685 +GL_GNULIB_FREXPL = @GL_GNULIB_FREXPL@
686 +GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@
687 +GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@
688 +GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@
689 +GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@
690 +GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@
691 +GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@
692 +GL_GNULIB_FTELL = @GL_GNULIB_FTELL@
693 +GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@
694 +GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@
695 +GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@
696 +GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@
697 +GL_GNULIB_GETC = @GL_GNULIB_GETC@
698 +GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@
699 +GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@
700 +GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@
701 +GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@
702 +GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@
703 +GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@
704 +GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@
705 +GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@
706 +GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@
707 +GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@
708 +GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@
709 +GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@
710 +GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@
711 +GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@
712 +GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@
713 +GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@
714 +GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@
715 +GL_GNULIB_GETTIMEOFDAY = @GL_GNULIB_GETTIMEOFDAY@
716 +GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@
717 +GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@
718 +GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@
719 +GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@
720 +GL_GNULIB_HYPOT = @GL_GNULIB_HYPOT@
721 +GL_GNULIB_HYPOTF = @GL_GNULIB_HYPOTF@
722 +GL_GNULIB_HYPOTL = @GL_GNULIB_HYPOTL@
723 +GL_GNULIB_ILOGB = @GL_GNULIB_ILOGB@
724 +GL_GNULIB_ILOGBF = @GL_GNULIB_ILOGBF@
725 +GL_GNULIB_ILOGBL = @GL_GNULIB_ILOGBL@
726 +GL_GNULIB_IMAXABS = @GL_GNULIB_IMAXABS@
727 +GL_GNULIB_IMAXDIV = @GL_GNULIB_IMAXDIV@
728 +GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@
729 +GL_GNULIB_ISFINITE = @GL_GNULIB_ISFINITE@
730 +GL_GNULIB_ISINF = @GL_GNULIB_ISINF@
731 +GL_GNULIB_ISNAN = @GL_GNULIB_ISNAN@
732 +GL_GNULIB_ISNAND = @GL_GNULIB_ISNAND@
733 +GL_GNULIB_ISNANF = @GL_GNULIB_ISNANF@
734 +GL_GNULIB_ISNANL = @GL_GNULIB_ISNANL@
735 +GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@
736 +GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@
737 +GL_GNULIB_LDEXPF = @GL_GNULIB_LDEXPF@
738 +GL_GNULIB_LDEXPL = @GL_GNULIB_LDEXPL@
739 +GL_GNULIB_LINK = @GL_GNULIB_LINK@
740 +GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@
741 +GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@
742 +GL_GNULIB_LOG = @GL_GNULIB_LOG@
743 +GL_GNULIB_LOG10 = @GL_GNULIB_LOG10@
744 +GL_GNULIB_LOG10F = @GL_GNULIB_LOG10F@
745 +GL_GNULIB_LOG10L = @GL_GNULIB_LOG10L@
746 +GL_GNULIB_LOG1P = @GL_GNULIB_LOG1P@
747 +GL_GNULIB_LOG1PF = @GL_GNULIB_LOG1PF@
748 +GL_GNULIB_LOG1PL = @GL_GNULIB_LOG1PL@
749 +GL_GNULIB_LOG2 = @GL_GNULIB_LOG2@
750 +GL_GNULIB_LOG2F = @GL_GNULIB_LOG2F@
751 +GL_GNULIB_LOG2L = @GL_GNULIB_LOG2L@
752 +GL_GNULIB_LOGB = @GL_GNULIB_LOGB@
753 +GL_GNULIB_LOGBF = @GL_GNULIB_LOGBF@
754 +GL_GNULIB_LOGBL = @GL_GNULIB_LOGBL@
755 +GL_GNULIB_LOGF = @GL_GNULIB_LOGF@
756 +GL_GNULIB_LOGL = @GL_GNULIB_LOGL@
757 +GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@
758 +GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@
759 +GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@
760 +GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@
761 +GL_GNULIB_MBRLEN = @GL_GNULIB_MBRLEN@
762 +GL_GNULIB_MBRTOWC = @GL_GNULIB_MBRTOWC@
763 +GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@
764 +GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@
765 +GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@
766 +GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@
767 +GL_GNULIB_MBSINIT = @GL_GNULIB_MBSINIT@
768 +GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@
769 +GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@
770 +GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@
771 +GL_GNULIB_MBSNRTOWCS = @GL_GNULIB_MBSNRTOWCS@
772 +GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@
773 +GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@
774 +GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@
775 +GL_GNULIB_MBSRTOWCS = @GL_GNULIB_MBSRTOWCS@
776 +GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@
777 +GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@
778 +GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@
779 +GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@
780 +GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@
781 +GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@
782 +GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@
783 +GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@
784 +GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@
785 +GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@
786 +GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@
787 +GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@
788 +GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@
789 +GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@
790 +GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@
791 +GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@
792 +GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@
793 +GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@
794 +GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@
795 +GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@
796 +GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@
797 +GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@
798 +GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@
799 +GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@
800 +GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@
801 +GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@
802 +GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@
803 +GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@
804 +GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@
805 +GL_GNULIB_MDA_J0 = @GL_GNULIB_MDA_J0@
806 +GL_GNULIB_MDA_J1 = @GL_GNULIB_MDA_J1@
807 +GL_GNULIB_MDA_JN = @GL_GNULIB_MDA_JN@
808 +GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@
809 +GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@
810 +GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@
811 +GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@
812 +GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@
813 +GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@
814 +GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@
815 +GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@
816 +GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@
817 +GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@
818 +GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@
819 +GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@
820 +GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@
821 +GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@
822 +GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@
823 +GL_GNULIB_MDA_UTIME = @GL_GNULIB_MDA_UTIME@
824 +GL_GNULIB_MDA_WCSDUP = @GL_GNULIB_MDA_WCSDUP@
825 +GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@
826 +GL_GNULIB_MDA_Y0 = @GL_GNULIB_MDA_Y0@
827 +GL_GNULIB_MDA_Y1 = @GL_GNULIB_MDA_Y1@
828 +GL_GNULIB_MDA_YN = @GL_GNULIB_MDA_YN@
829 +GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@
830 +GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@
831 +GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@
832 +GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@
833 +GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@
834 +GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@
835 +GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@
836 +GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@
837 +GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@
838 +GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@
839 +GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@
840 +GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@
841 +GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@
842 +GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@
843 +GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@
844 +GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@
845 +GL_GNULIB_MODF = @GL_GNULIB_MODF@
846 +GL_GNULIB_MODFF = @GL_GNULIB_MODFF@
847 +GL_GNULIB_MODFL = @GL_GNULIB_MODFL@
848 +GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@
849 +GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@
850 +GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@
851 +GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@
852 +GL_GNULIB_OPEN = @GL_GNULIB_OPEN@
853 +GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@
854 +GL_GNULIB_OPENDIR = @GL_GNULIB_OPENDIR@
855 +GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@
856 +GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@
857 +GL_GNULIB_PERROR = @GL_GNULIB_PERROR@
858 +GL_GNULIB_PIPE = @GL_GNULIB_PIPE@
859 +GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@
860 +GL_GNULIB_POPEN = @GL_GNULIB_POPEN@
861 +GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@
862 +GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@
863 +GL_GNULIB_POWF = @GL_GNULIB_POWF@
864 +GL_GNULIB_PREAD = @GL_GNULIB_PREAD@
865 +GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@
866 +GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@
867 +GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@
868 +GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@
869 +GL_GNULIB_PUTC = @GL_GNULIB_PUTC@
870 +GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@
871 +GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@
872 +GL_GNULIB_PUTS = @GL_GNULIB_PUTS@
873 +GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@
874 +GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@
875 +GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@
876 +GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@
877 +GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@
878 +GL_GNULIB_READ = @GL_GNULIB_READ@
879 +GL_GNULIB_READDIR = @GL_GNULIB_READDIR@
880 +GL_GNULIB_READLINK = @GL_GNULIB_READLINK@
881 +GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@
882 +GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@
883 +GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@
884 +GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@
885 +GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@
886 +GL_GNULIB_REMAINDER = @GL_GNULIB_REMAINDER@
887 +GL_GNULIB_REMAINDERF = @GL_GNULIB_REMAINDERF@
888 +GL_GNULIB_REMAINDERL = @GL_GNULIB_REMAINDERL@
889 +GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@
890 +GL_GNULIB_RENAME = @GL_GNULIB_RENAME@
891 +GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@
892 +GL_GNULIB_REWINDDIR = @GL_GNULIB_REWINDDIR@
893 +GL_GNULIB_RINT = @GL_GNULIB_RINT@
894 +GL_GNULIB_RINTF = @GL_GNULIB_RINTF@
895 +GL_GNULIB_RINTL = @GL_GNULIB_RINTL@
896 +GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@
897 +GL_GNULIB_ROUND = @GL_GNULIB_ROUND@
898 +GL_GNULIB_ROUNDF = @GL_GNULIB_ROUNDF@
899 +GL_GNULIB_ROUNDL = @GL_GNULIB_ROUNDL@
900 +GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@
901 +GL_GNULIB_SCANDIR = @GL_GNULIB_SCANDIR@
902 +GL_GNULIB_SCANF = @GL_GNULIB_SCANF@
903 +GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@
904 +GL_GNULIB_SETENV = @GL_GNULIB_SETENV@
905 +GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@
906 +GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@
907 +GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@
908 +GL_GNULIB_SIGNBIT = @GL_GNULIB_SIGNBIT@
909 +GL_GNULIB_SINF = @GL_GNULIB_SINF@
910 +GL_GNULIB_SINHF = @GL_GNULIB_SINHF@
911 +GL_GNULIB_SINL = @GL_GNULIB_SINL@
912 +GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@
913 +GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@
914 +GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@
915 +GL_GNULIB_SQRTF = @GL_GNULIB_SQRTF@
916 +GL_GNULIB_SQRTL = @GL_GNULIB_SQRTL@
917 +GL_GNULIB_STAT = @GL_GNULIB_STAT@
918 +GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@
919 +GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@
920 +GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@
921 +GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@
922 +GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@
923 +GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@
924 +GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@
925 +GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@
926 +GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@
927 +GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@
928 +GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@
929 +GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@
930 +GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@
931 +GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@
932 +GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@
933 +GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@
934 +GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@
935 +GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@
936 +GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@
937 +GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@
938 +GL_GNULIB_STRTOIMAX = @GL_GNULIB_STRTOIMAX@
939 +GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@
940 +GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@
941 +GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@
942 +GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@
943 +GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@
944 +GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@
945 +GL_GNULIB_STRTOUMAX = @GL_GNULIB_STRTOUMAX@
946 +GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@
947 +GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@
948 +GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@
949 +GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@
950 +GL_GNULIB_TANF = @GL_GNULIB_TANF@
951 +GL_GNULIB_TANHF = @GL_GNULIB_TANHF@
952 +GL_GNULIB_TANL = @GL_GNULIB_TANL@
953 +GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@
954 +GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@
955 +GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@
956 +GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@
957 +GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@
958 +GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@
959 +GL_GNULIB_TRUNC = @GL_GNULIB_TRUNC@
960 +GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@
961 +GL_GNULIB_TRUNCF = @GL_GNULIB_TRUNCF@
962 +GL_GNULIB_TRUNCL = @GL_GNULIB_TRUNCL@
963 +GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@
964 +GL_GNULIB_TZSET = @GL_GNULIB_TZSET@
965 +GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@
966 +GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@
967 +GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@
968 +GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@
969 +GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@
970 +GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@
971 +GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@
972 +GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@
973 +GL_GNULIB_UTIME = @GL_GNULIB_UTIME@
974 +GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@
975 +GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@
976 +GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@
977 +GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@
978 +GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@
979 +GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@
980 +GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@
981 +GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@
982 +GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@
983 +GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@
984 +GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@
985 +GL_GNULIB_WCPCPY = @GL_GNULIB_WCPCPY@
986 +GL_GNULIB_WCPNCPY = @GL_GNULIB_WCPNCPY@
987 +GL_GNULIB_WCRTOMB = @GL_GNULIB_WCRTOMB@
988 +GL_GNULIB_WCSCASECMP = @GL_GNULIB_WCSCASECMP@
989 +GL_GNULIB_WCSCAT = @GL_GNULIB_WCSCAT@
990 +GL_GNULIB_WCSCHR = @GL_GNULIB_WCSCHR@
991 +GL_GNULIB_WCSCMP = @GL_GNULIB_WCSCMP@
992 +GL_GNULIB_WCSCOLL = @GL_GNULIB_WCSCOLL@
993 +GL_GNULIB_WCSCPY = @GL_GNULIB_WCSCPY@
994 +GL_GNULIB_WCSCSPN = @GL_GNULIB_WCSCSPN@
995 +GL_GNULIB_WCSDUP = @GL_GNULIB_WCSDUP@
996 +GL_GNULIB_WCSFTIME = @GL_GNULIB_WCSFTIME@
997 +GL_GNULIB_WCSLEN = @GL_GNULIB_WCSLEN@
998 +GL_GNULIB_WCSNCASECMP = @GL_GNULIB_WCSNCASECMP@
999 +GL_GNULIB_WCSNCAT = @GL_GNULIB_WCSNCAT@
1000 +GL_GNULIB_WCSNCMP = @GL_GNULIB_WCSNCMP@
1001 +GL_GNULIB_WCSNCPY = @GL_GNULIB_WCSNCPY@
1002 +GL_GNULIB_WCSNLEN = @GL_GNULIB_WCSNLEN@
1003 +GL_GNULIB_WCSNRTOMBS = @GL_GNULIB_WCSNRTOMBS@
1004 +GL_GNULIB_WCSPBRK = @GL_GNULIB_WCSPBRK@
1005 +GL_GNULIB_WCSRCHR = @GL_GNULIB_WCSRCHR@
1006 +GL_GNULIB_WCSRTOMBS = @GL_GNULIB_WCSRTOMBS@
1007 +GL_GNULIB_WCSSPN = @GL_GNULIB_WCSSPN@
1008 +GL_GNULIB_WCSSTR = @GL_GNULIB_WCSSTR@
1009 +GL_GNULIB_WCSTOK = @GL_GNULIB_WCSTOK@
1010 +GL_GNULIB_WCSWIDTH = @GL_GNULIB_WCSWIDTH@
1011 +GL_GNULIB_WCSXFRM = @GL_GNULIB_WCSXFRM@
1012 +GL_GNULIB_WCTOB = @GL_GNULIB_WCTOB@
1013 +GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@
1014 +GL_GNULIB_WCWIDTH = @GL_GNULIB_WCWIDTH@
1015 +GL_GNULIB_WMEMCHR = @GL_GNULIB_WMEMCHR@
1016 +GL_GNULIB_WMEMCMP = @GL_GNULIB_WMEMCMP@
1017 +GL_GNULIB_WMEMCPY = @GL_GNULIB_WMEMCPY@
1018 +GL_GNULIB_WMEMMOVE = @GL_GNULIB_WMEMMOVE@
1019 +GL_GNULIB_WMEMPCPY = @GL_GNULIB_WMEMPCPY@
1020 +GL_GNULIB_WMEMSET = @GL_GNULIB_WMEMSET@
1021 +GL_GNULIB_WRITE = @GL_GNULIB_WRITE@
1022 +GL_GNULIB__EXIT = @GL_GNULIB__EXIT@
1023 +GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@
1024 GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@
1025 -GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@
1026 -GNULIB_GL_UNISTD_H_GETOPT = @GNULIB_GL_UNISTD_H_GETOPT@
1027 -GNULIB_GRANTPT = @GNULIB_GRANTPT@
1028 -GNULIB_GROUP_MEMBER = @GNULIB_GROUP_MEMBER@
1029 -GNULIB_HYPOT = @GNULIB_HYPOT@
1030 -GNULIB_HYPOTF = @GNULIB_HYPOTF@
1031 -GNULIB_HYPOTL = @GNULIB_HYPOTL@
1032 -GNULIB_ILOGB = @GNULIB_ILOGB@
1033 -GNULIB_ILOGBF = @GNULIB_ILOGBF@
1034 -GNULIB_ILOGBL = @GNULIB_ILOGBL@
1035 -GNULIB_IMAXABS = @GNULIB_IMAXABS@
1036 -GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
1037 -GNULIB_ISATTY = @GNULIB_ISATTY@
1038 -GNULIB_ISFINITE = @GNULIB_ISFINITE@
1039 -GNULIB_ISINF = @GNULIB_ISINF@
1040 -GNULIB_ISNAN = @GNULIB_ISNAN@
1041 -GNULIB_ISNAND = @GNULIB_ISNAND@
1042 -GNULIB_ISNANF = @GNULIB_ISNANF@
1043 -GNULIB_ISNANL = @GNULIB_ISNANL@
1044 -GNULIB_LCHMOD = @GNULIB_LCHMOD@
1045 -GNULIB_LCHOWN = @GNULIB_LCHOWN@
1046 -GNULIB_LDEXPF = @GNULIB_LDEXPF@
1047 -GNULIB_LDEXPL = @GNULIB_LDEXPL@
1048 -GNULIB_LINK = @GNULIB_LINK@
1049 -GNULIB_LINKAT = @GNULIB_LINKAT@
1050 -GNULIB_LOCALTIME = @GNULIB_LOCALTIME@
1051 -GNULIB_LOG = @GNULIB_LOG@
1052 -GNULIB_LOG10 = @GNULIB_LOG10@
1053 -GNULIB_LOG10F = @GNULIB_LOG10F@
1054 -GNULIB_LOG10L = @GNULIB_LOG10L@
1055 -GNULIB_LOG1P = @GNULIB_LOG1P@
1056 -GNULIB_LOG1PF = @GNULIB_LOG1PF@
1057 -GNULIB_LOG1PL = @GNULIB_LOG1PL@
1058 -GNULIB_LOG2 = @GNULIB_LOG2@
1059 -GNULIB_LOG2F = @GNULIB_LOG2F@
1060 -GNULIB_LOG2L = @GNULIB_LOG2L@
1061 -GNULIB_LOGB = @GNULIB_LOGB@
1062 -GNULIB_LOGBF = @GNULIB_LOGBF@
1063 -GNULIB_LOGBL = @GNULIB_LOGBL@
1064 -GNULIB_LOGF = @GNULIB_LOGF@
1065 -GNULIB_LOGL = @GNULIB_LOGL@
1066 -GNULIB_LSEEK = @GNULIB_LSEEK@
1067 -GNULIB_LSTAT = @GNULIB_LSTAT@
1068 -GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@
1069 -GNULIB_MBRLEN = @GNULIB_MBRLEN@
1070 -GNULIB_MBRTOWC = @GNULIB_MBRTOWC@
1071 -GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
1072 -GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
1073 -GNULIB_MBSCHR = @GNULIB_MBSCHR@
1074 -GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
1075 -GNULIB_MBSINIT = @GNULIB_MBSINIT@
1076 -GNULIB_MBSLEN = @GNULIB_MBSLEN@
1077 -GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
1078 -GNULIB_MBSNLEN = @GNULIB_MBSNLEN@
1079 -GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@
1080 -GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
1081 -GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
1082 -GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
1083 -GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@
1084 -GNULIB_MBSSEP = @GNULIB_MBSSEP@
1085 -GNULIB_MBSSPN = @GNULIB_MBSSPN@
1086 -GNULIB_MBSSTR = @GNULIB_MBSSTR@
1087 -GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
1088 -GNULIB_MBTOWC = @GNULIB_MBTOWC@
1089 -GNULIB_MEMCHR = @GNULIB_MEMCHR@
1090 -GNULIB_MEMMEM = @GNULIB_MEMMEM@
1091 -GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
1092 -GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
1093 -GNULIB_MKDIRAT = @GNULIB_MKDIRAT@
1094 -GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
1095 -GNULIB_MKFIFO = @GNULIB_MKFIFO@
1096 -GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@
1097 -GNULIB_MKNOD = @GNULIB_MKNOD@
1098 -GNULIB_MKNODAT = @GNULIB_MKNODAT@
1099 -GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@
1100 -GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@
1101 -GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
1102 -GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@
1103 -GNULIB_MKTIME = @GNULIB_MKTIME@
1104 -GNULIB_MODF = @GNULIB_MODF@
1105 -GNULIB_MODFF = @GNULIB_MODFF@
1106 -GNULIB_MODFL = @GNULIB_MODFL@
1107 -GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@
1108 -GNULIB_NONBLOCKING = @GNULIB_NONBLOCKING@
1109 -GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@
1110 -GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@
1111 -GNULIB_OPEN = @GNULIB_OPEN@
1112 -GNULIB_OPENAT = @GNULIB_OPENAT@
1113 -GNULIB_OPENDIR = @GNULIB_OPENDIR@
1114 -GNULIB_OVERRIDES_STRUCT_STAT = @GNULIB_OVERRIDES_STRUCT_STAT@
1115 -GNULIB_OVERRIDES_WINT_T = @GNULIB_OVERRIDES_WINT_T@
1116 -GNULIB_PCLOSE = @GNULIB_PCLOSE@
1117 -GNULIB_PERROR = @GNULIB_PERROR@
1118 -GNULIB_PIPE = @GNULIB_PIPE@
1119 -GNULIB_PIPE2 = @GNULIB_PIPE2@
1120 -GNULIB_POPEN = @GNULIB_POPEN@
1121 -GNULIB_POSIX_OPENPT = @GNULIB_POSIX_OPENPT@
1122 -GNULIB_POWF = @GNULIB_POWF@
1123 -GNULIB_PREAD = @GNULIB_PREAD@
1124 -GNULIB_PRINTF = @GNULIB_PRINTF@
1125 -GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
1126 -GNULIB_PTSNAME = @GNULIB_PTSNAME@
1127 -GNULIB_PTSNAME_R = @GNULIB_PTSNAME_R@
1128 -GNULIB_PUTC = @GNULIB_PUTC@
1129 -GNULIB_PUTCHAR = @GNULIB_PUTCHAR@
1130 -GNULIB_PUTENV = @GNULIB_PUTENV@
1131 -GNULIB_PUTS = @GNULIB_PUTS@
1132 -GNULIB_PWRITE = @GNULIB_PWRITE@
1133 -GNULIB_QSORT_R = @GNULIB_QSORT_R@
1134 -GNULIB_RANDOM = @GNULIB_RANDOM@
1135 -GNULIB_RANDOM_R = @GNULIB_RANDOM_R@
1136 -GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@
1137 -GNULIB_READ = @GNULIB_READ@
1138 -GNULIB_READDIR = @GNULIB_READDIR@
1139 -GNULIB_READLINK = @GNULIB_READLINK@
1140 -GNULIB_READLINKAT = @GNULIB_READLINKAT@
1141 -GNULIB_REALLOCARRAY = @GNULIB_REALLOCARRAY@
1142 -GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@
1143 -GNULIB_REALPATH = @GNULIB_REALPATH@
1144 -GNULIB_REMAINDER = @GNULIB_REMAINDER@
1145 -GNULIB_REMAINDERF = @GNULIB_REMAINDERF@
1146 -GNULIB_REMAINDERL = @GNULIB_REMAINDERL@
1147 -GNULIB_REMOVE = @GNULIB_REMOVE@
1148 -GNULIB_RENAME = @GNULIB_RENAME@
1149 -GNULIB_RENAMEAT = @GNULIB_RENAMEAT@
1150 -GNULIB_REWINDDIR = @GNULIB_REWINDDIR@
1151 -GNULIB_RINT = @GNULIB_RINT@
1152 -GNULIB_RINTF = @GNULIB_RINTF@
1153 -GNULIB_RINTL = @GNULIB_RINTL@
1154 -GNULIB_RMDIR = @GNULIB_RMDIR@
1155 -GNULIB_ROUND = @GNULIB_ROUND@
1156 -GNULIB_ROUNDF = @GNULIB_ROUNDF@
1157 -GNULIB_ROUNDL = @GNULIB_ROUNDL@
1158 -GNULIB_RPMATCH = @GNULIB_RPMATCH@
1159 -GNULIB_SCANDIR = @GNULIB_SCANDIR@
1160 -GNULIB_SCANF = @GNULIB_SCANF@
1161 -GNULIB_SECURE_GETENV = @GNULIB_SECURE_GETENV@
1162 -GNULIB_SETENV = @GNULIB_SETENV@
1163 -GNULIB_SETHOSTNAME = @GNULIB_SETHOSTNAME@
1164 -GNULIB_SIGNBIT = @GNULIB_SIGNBIT@
1165 -GNULIB_SINF = @GNULIB_SINF@
1166 -GNULIB_SINHF = @GNULIB_SINHF@
1167 -GNULIB_SINL = @GNULIB_SINL@
1168 -GNULIB_SLEEP = @GNULIB_SLEEP@
1169 -GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
1170 -GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
1171 -GNULIB_SQRTF = @GNULIB_SQRTF@
1172 -GNULIB_SQRTL = @GNULIB_SQRTL@
1173 -GNULIB_STAT = @GNULIB_STAT@
1174 -GNULIB_STDIO_H_NONBLOCKING = @GNULIB_STDIO_H_NONBLOCKING@
1175 -GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@
1176 -GNULIB_STPCPY = @GNULIB_STPCPY@
1177 -GNULIB_STPNCPY = @GNULIB_STPNCPY@
1178 -GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
1179 -GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
1180 -GNULIB_STRDUP = @GNULIB_STRDUP@
1181 -GNULIB_STRERROR = @GNULIB_STRERROR@
1182 -GNULIB_STRERROR_R = @GNULIB_STRERROR_R@
1183 -GNULIB_STRFTIME = @GNULIB_STRFTIME@
1184 -GNULIB_STRNCAT = @GNULIB_STRNCAT@
1185 -GNULIB_STRNDUP = @GNULIB_STRNDUP@
1186 -GNULIB_STRNLEN = @GNULIB_STRNLEN@
1187 -GNULIB_STRPBRK = @GNULIB_STRPBRK@
1188 -GNULIB_STRPTIME = @GNULIB_STRPTIME@
1189 -GNULIB_STRSEP = @GNULIB_STRSEP@
1190 -GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@
1191 -GNULIB_STRSTR = @GNULIB_STRSTR@
1192 -GNULIB_STRTOD = @GNULIB_STRTOD@
1193 -GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
1194 -GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
1195 -GNULIB_STRTOLD = @GNULIB_STRTOLD@
1196 -GNULIB_STRTOLL = @GNULIB_STRTOLL@
1197 -GNULIB_STRTOULL = @GNULIB_STRTOULL@
1198 -GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
1199 -GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@
1200 -GNULIB_SYMLINK = @GNULIB_SYMLINK@
1201 -GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@
1202 -GNULIB_SYSTEM_POSIX = @GNULIB_SYSTEM_POSIX@
1203 -GNULIB_TANF = @GNULIB_TANF@
1204 -GNULIB_TANHF = @GNULIB_TANHF@
1205 -GNULIB_TANL = @GNULIB_TANL@
1206 -GNULIB_TIMEGM = @GNULIB_TIMEGM@
1207 -GNULIB_TIME_R = @GNULIB_TIME_R@
1208 -GNULIB_TIME_RZ = @GNULIB_TIME_RZ@
1209 -GNULIB_TMPFILE = @GNULIB_TMPFILE@
1210 -GNULIB_TRUNC = @GNULIB_TRUNC@
1211 -GNULIB_TRUNCATE = @GNULIB_TRUNCATE@
1212 -GNULIB_TRUNCF = @GNULIB_TRUNCF@
1213 -GNULIB_TRUNCL = @GNULIB_TRUNCL@
1214 -GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@
1215 -GNULIB_TZSET = @GNULIB_TZSET@
1216 -GNULIB_UNISTD_H_NONBLOCKING = @GNULIB_UNISTD_H_NONBLOCKING@
1217 -GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@
1218 -GNULIB_UNLINK = @GNULIB_UNLINK@
1219 -GNULIB_UNLINKAT = @GNULIB_UNLINKAT@
1220 -GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@
1221 -GNULIB_UNSETENV = @GNULIB_UNSETENV@
1222 -GNULIB_USLEEP = @GNULIB_USLEEP@
1223 -GNULIB_UTIME = @GNULIB_UTIME@
1224 -GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@
1225 -GNULIB_VASPRINTF = @GNULIB_VASPRINTF@
1226 -GNULIB_VDPRINTF = @GNULIB_VDPRINTF@
1227 -GNULIB_VFPRINTF = @GNULIB_VFPRINTF@
1228 -GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
1229 -GNULIB_VFSCANF = @GNULIB_VFSCANF@
1230 -GNULIB_VPRINTF = @GNULIB_VPRINTF@
1231 -GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
1232 -GNULIB_VSCANF = @GNULIB_VSCANF@
1233 -GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
1234 -GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
1235 -GNULIB_WCPCPY = @GNULIB_WCPCPY@
1236 -GNULIB_WCPNCPY = @GNULIB_WCPNCPY@
1237 -GNULIB_WCRTOMB = @GNULIB_WCRTOMB@
1238 -GNULIB_WCSCASECMP = @GNULIB_WCSCASECMP@
1239 -GNULIB_WCSCAT = @GNULIB_WCSCAT@
1240 -GNULIB_WCSCHR = @GNULIB_WCSCHR@
1241 -GNULIB_WCSCMP = @GNULIB_WCSCMP@
1242 -GNULIB_WCSCOLL = @GNULIB_WCSCOLL@
1243 -GNULIB_WCSCPY = @GNULIB_WCSCPY@
1244 -GNULIB_WCSCSPN = @GNULIB_WCSCSPN@
1245 -GNULIB_WCSDUP = @GNULIB_WCSDUP@
1246 -GNULIB_WCSFTIME = @GNULIB_WCSFTIME@
1247 -GNULIB_WCSLEN = @GNULIB_WCSLEN@
1248 -GNULIB_WCSNCASECMP = @GNULIB_WCSNCASECMP@
1249 -GNULIB_WCSNCAT = @GNULIB_WCSNCAT@
1250 -GNULIB_WCSNCMP = @GNULIB_WCSNCMP@
1251 -GNULIB_WCSNCPY = @GNULIB_WCSNCPY@
1252 -GNULIB_WCSNLEN = @GNULIB_WCSNLEN@
1253 -GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@
1254 -GNULIB_WCSPBRK = @GNULIB_WCSPBRK@
1255 -GNULIB_WCSRCHR = @GNULIB_WCSRCHR@
1256 -GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@
1257 -GNULIB_WCSSPN = @GNULIB_WCSSPN@
1258 -GNULIB_WCSSTR = @GNULIB_WCSSTR@
1259 -GNULIB_WCSTOK = @GNULIB_WCSTOK@
1260 -GNULIB_WCSWIDTH = @GNULIB_WCSWIDTH@
1261 -GNULIB_WCSXFRM = @GNULIB_WCSXFRM@
1262 -GNULIB_WCTOB = @GNULIB_WCTOB@
1263 -GNULIB_WCTOMB = @GNULIB_WCTOMB@
1264 -GNULIB_WCWIDTH = @GNULIB_WCWIDTH@
1265 -GNULIB_WMEMCHR = @GNULIB_WMEMCHR@
1266 -GNULIB_WMEMCMP = @GNULIB_WMEMCMP@
1267 -GNULIB_WMEMCPY = @GNULIB_WMEMCPY@
1268 -GNULIB_WMEMMOVE = @GNULIB_WMEMMOVE@
1269 -GNULIB_WMEMSET = @GNULIB_WMEMSET@
1270 -GNULIB_WRITE = @GNULIB_WRITE@
1271 -GNULIB__EXIT = @GNULIB__EXIT@
1272 GPGME_CFLAGS = @GPGME_CFLAGS@
1273 GPGME_CONFIG = @GPGME_CONFIG@
1274 GPGME_LIBS = @GPGME_LIBS@
1275 GREP = @GREP@
1276 HAVE_ACOSF = @HAVE_ACOSF@
1277 HAVE_ACOSL = @HAVE_ACOSL@
1278 +HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@
1279 HAVE_ALLOCA_H = @HAVE_ALLOCA_H@
1280 HAVE_ALPHASORT = @HAVE_ALPHASORT@
1281 HAVE_ASINF = @HAVE_ASINF@
1282 @@ -870,6 +961,7 @@ HAVE_CHOWN = @HAVE_CHOWN@
1283 HAVE_CLOSEDIR = @HAVE_CLOSEDIR@
1284 HAVE_COPYSIGN = @HAVE_COPYSIGN@
1285 HAVE_COPYSIGNL = @HAVE_COPYSIGNL@
1286 +HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@
1287 HAVE_COSF = @HAVE_COSF@
1288 HAVE_COSHF = @HAVE_COSHF@
1289 HAVE_COSL = @HAVE_COSL@
1290 @@ -884,13 +976,17 @@ HAVE_DECL_CEILL = @HAVE_DECL_CEILL@
1291 HAVE_DECL_COPYSIGNF = @HAVE_DECL_COPYSIGNF@
1292 HAVE_DECL_COSL = @HAVE_DECL_COSL@
1293 HAVE_DECL_DIRFD = @HAVE_DECL_DIRFD@
1294 +HAVE_DECL_ECVT = @HAVE_DECL_ECVT@
1295 HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@
1296 +HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@
1297 HAVE_DECL_EXP2 = @HAVE_DECL_EXP2@
1298 HAVE_DECL_EXP2F = @HAVE_DECL_EXP2F@
1299 HAVE_DECL_EXP2L = @HAVE_DECL_EXP2L@
1300 HAVE_DECL_EXPL = @HAVE_DECL_EXPL@
1301 HAVE_DECL_EXPM1L = @HAVE_DECL_EXPM1L@
1302 HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@
1303 +HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@
1304 +HAVE_DECL_FCVT = @HAVE_DECL_FCVT@
1305 HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@
1306 HAVE_DECL_FDOPENDIR = @HAVE_DECL_FDOPENDIR@
1307 HAVE_DECL_FLOORF = @HAVE_DECL_FLOORF@
1308 @@ -899,6 +995,7 @@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@
1309 HAVE_DECL_FREXPL = @HAVE_DECL_FREXPL@
1310 HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@
1311 HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@
1312 +HAVE_DECL_GCVT = @HAVE_DECL_GCVT@
1313 HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@
1314 HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@
1315 HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@
1316 @@ -950,13 +1047,14 @@ HAVE_DECL_TRUNCL = @HAVE_DECL_TRUNCL@
1317 HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@
1318 HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@
1319 HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
1320 +HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@
1321 HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@
1322 HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@
1323 HAVE_DIRENT_H = @HAVE_DIRENT_H@
1324 HAVE_DPRINTF = @HAVE_DPRINTF@
1325 -HAVE_DUP2 = @HAVE_DUP2@
1326 HAVE_DUP3 = @HAVE_DUP3@
1327 HAVE_EUIDACCESS = @HAVE_EUIDACCESS@
1328 +HAVE_EXECVPE = @HAVE_EXECVPE@
1329 HAVE_EXPF = @HAVE_EXPF@
1330 HAVE_EXPL = @HAVE_EXPL@
1331 HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@
1332 @@ -988,6 +1086,7 @@ HAVE_FTELLO = @HAVE_FTELLO@
1333 HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
1334 HAVE_FUTIMENS = @HAVE_FUTIMENS@
1335 HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@
1336 +HAVE_GETENTROPY = @HAVE_GETENTROPY@
1337 HAVE_GETGROUPS = @HAVE_GETGROUPS@
1338 HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@
1339 HAVE_GETLOGIN = @HAVE_GETLOGIN@
1340 @@ -996,6 +1095,7 @@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@
1341 HAVE_GETPASS = @HAVE_GETPASS@
1342 HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
1343 HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@
1344 +HAVE_GETUMASK = @HAVE_GETUMASK@
1345 HAVE_GRANTPT = @HAVE_GRANTPT@
1346 HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@
1347 HAVE_HYPOTF = @HAVE_HYPOTF@
1348 @@ -1023,7 +1123,6 @@ HAVE_LOGBF = @HAVE_LOGBF@
1349 HAVE_LOGBL = @HAVE_LOGBL@
1350 HAVE_LOGF = @HAVE_LOGF@
1351 HAVE_LOGL = @HAVE_LOGL@
1352 -HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
1353 HAVE_LSTAT = @HAVE_LSTAT@
1354 HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@
1355 HAVE_MBRLEN = @HAVE_MBRLEN@
1356 @@ -1033,7 +1132,6 @@ HAVE_MBSLEN = @HAVE_MBSLEN@
1357 HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@
1358 HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@
1359 HAVE_MBTOWC = @HAVE_MBTOWC@
1360 -HAVE_MEMCHR = @HAVE_MEMCHR@
1361 HAVE_MEMPCPY = @HAVE_MEMPCPY@
1362 HAVE_MKDIRAT = @HAVE_MKDIRAT@
1363 HAVE_MKDTEMP = @HAVE_MKDTEMP@
1364 @@ -1056,6 +1154,7 @@ HAVE_PCLOSE = @HAVE_PCLOSE@
1365 HAVE_PIPE = @HAVE_PIPE@
1366 HAVE_PIPE2 = @HAVE_PIPE2@
1367 HAVE_POPEN = @HAVE_POPEN@
1368 +HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@
1369 HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@
1370 HAVE_POWF = @HAVE_POWF@
1371 HAVE_PREAD = @HAVE_PREAD@
1372 @@ -1085,6 +1184,8 @@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@
1373 HAVE_SETENV = @HAVE_SETENV@
1374 HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@
1375 HAVE_SETSTATE = @HAVE_SETSTATE@
1376 +HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@
1377 +HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@
1378 HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
1379 HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
1380 HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
1381 @@ -1100,13 +1201,16 @@ HAVE_STPNCPY = @HAVE_STPNCPY@
1382 HAVE_STRCASECMP = @HAVE_STRCASECMP@
1383 HAVE_STRCASESTR = @HAVE_STRCASESTR@
1384 HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
1385 +HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@
1386 HAVE_STRINGS_H = @HAVE_STRINGS_H@
1387 HAVE_STRPBRK = @HAVE_STRPBRK@
1388 HAVE_STRPTIME = @HAVE_STRPTIME@
1389 HAVE_STRSEP = @HAVE_STRSEP@
1390 HAVE_STRTOD = @HAVE_STRTOD@
1391 +HAVE_STRTOL = @HAVE_STRTOL@
1392 HAVE_STRTOLD = @HAVE_STRTOLD@
1393 HAVE_STRTOLL = @HAVE_STRTOLL@
1394 +HAVE_STRTOUL = @HAVE_STRTOUL@
1395 HAVE_STRTOULL = @HAVE_STRTOULL@
1396 HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@
1397 HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
1398 @@ -1124,12 +1228,12 @@ HAVE_TANF = @HAVE_TANF@
1399 HAVE_TANHF = @HAVE_TANHF@
1400 HAVE_TANL = @HAVE_TANL@
1401 HAVE_TIMEGM = @HAVE_TIMEGM@
1402 +HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@
1403 +HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@
1404 HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@
1405 -HAVE_TZSET = @HAVE_TZSET@
1406 HAVE_UNISTD_H = @HAVE_UNISTD_H@
1407 HAVE_UNLINKAT = @HAVE_UNLINKAT@
1408 HAVE_UNLOCKPT = @HAVE_UNLOCKPT@
1409 -HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
1410 HAVE_USLEEP = @HAVE_USLEEP@
1411 HAVE_UTIME = @HAVE_UTIME@
1412 HAVE_UTIMENSAT = @HAVE_UTIMENSAT@
1413 @@ -1171,6 +1275,7 @@ HAVE_WMEMCHR = @HAVE_WMEMCHR@
1414 HAVE_WMEMCMP = @HAVE_WMEMCMP@
1415 HAVE_WMEMCPY = @HAVE_WMEMCPY@
1416 HAVE_WMEMMOVE = @HAVE_WMEMMOVE@
1417 +HAVE_WMEMPCPY = @HAVE_WMEMPCPY@
1418 HAVE_WMEMSET = @HAVE_WMEMSET@
1419 HAVE__BOOL = @HAVE__BOOL@
1420 HAVE__EXIT = @HAVE__EXIT@
1421 @@ -1185,6 +1290,7 @@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@
1422 INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@
1423 LD = @LD@
1424 LDFLAGS = @LDFLAGS@
1425 +LIBARCHIVE = @LIBARCHIVE@
1426 LIBBL2 = @LIBBL2@
1427 LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@
1428 LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@
1429 @@ -1267,16 +1373,18 @@ PATH_SEPARATOR = @PATH_SEPARATOR@
1430 PRAGMA_COLUMNS = @PRAGMA_COLUMNS@
1431 PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@
1432 PRIPTR_PREFIX = @PRIPTR_PREFIX@
1433 -PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
1434 PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@
1435 PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
1436 RANLIB = @RANLIB@
1437 +REPLACE_ACCESS = @REPLACE_ACCESS@
1438 REPLACE_ACOSF = @REPLACE_ACOSF@
1439 +REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@
1440 REPLACE_ASINF = @REPLACE_ASINF@
1441 REPLACE_ATAN2F = @REPLACE_ATAN2F@
1442 REPLACE_ATANF = @REPLACE_ATANF@
1443 REPLACE_BTOWC = @REPLACE_BTOWC@
1444 -REPLACE_CALLOC = @REPLACE_CALLOC@
1445 +REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@
1446 +REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@
1447 REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@
1448 REPLACE_CBRTF = @REPLACE_CBRTF@
1449 REPLACE_CBRTL = @REPLACE_CBRTL@
1450 @@ -1286,13 +1394,22 @@ REPLACE_CEILL = @REPLACE_CEILL@
1451 REPLACE_CHOWN = @REPLACE_CHOWN@
1452 REPLACE_CLOSE = @REPLACE_CLOSE@
1453 REPLACE_CLOSEDIR = @REPLACE_CLOSEDIR@
1454 +REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@
1455 REPLACE_COSF = @REPLACE_COSF@
1456 REPLACE_COSHF = @REPLACE_COSHF@
1457 +REPLACE_CREAT = @REPLACE_CREAT@
1458 REPLACE_CTIME = @REPLACE_CTIME@
1459 REPLACE_DIRFD = @REPLACE_DIRFD@
1460 REPLACE_DPRINTF = @REPLACE_DPRINTF@
1461 REPLACE_DUP = @REPLACE_DUP@
1462 REPLACE_DUP2 = @REPLACE_DUP2@
1463 +REPLACE_EXECL = @REPLACE_EXECL@
1464 +REPLACE_EXECLE = @REPLACE_EXECLE@
1465 +REPLACE_EXECLP = @REPLACE_EXECLP@
1466 +REPLACE_EXECV = @REPLACE_EXECV@
1467 +REPLACE_EXECVE = @REPLACE_EXECVE@
1468 +REPLACE_EXECVP = @REPLACE_EXECVP@
1469 +REPLACE_EXECVPE = @REPLACE_EXECVPE@
1470 REPLACE_EXP2 = @REPLACE_EXP2@
1471 REPLACE_EXP2L = @REPLACE_EXP2L@
1472 REPLACE_EXPF = @REPLACE_EXPF@
1473 @@ -1302,12 +1419,14 @@ REPLACE_EXPM1F = @REPLACE_EXPM1F@
1474 REPLACE_EXPM1L = @REPLACE_EXPM1L@
1475 REPLACE_FABSL = @REPLACE_FABSL@
1476 REPLACE_FACCESSAT = @REPLACE_FACCESSAT@
1477 +REPLACE_FCHMODAT = @REPLACE_FCHMODAT@
1478 REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@
1479 REPLACE_FCLOSE = @REPLACE_FCLOSE@
1480 REPLACE_FCNTL = @REPLACE_FCNTL@
1481 REPLACE_FDOPEN = @REPLACE_FDOPEN@
1482 REPLACE_FDOPENDIR = @REPLACE_FDOPENDIR@
1483 REPLACE_FFLUSH = @REPLACE_FFLUSH@
1484 +REPLACE_FFSLL = @REPLACE_FFSLL@
1485 REPLACE_FLOOR = @REPLACE_FLOOR@
1486 REPLACE_FLOORF = @REPLACE_FLOORF@
1487 REPLACE_FLOORL = @REPLACE_FLOORL@
1488 @@ -1318,8 +1437,10 @@ REPLACE_FMOD = @REPLACE_FMOD@
1489 REPLACE_FMODF = @REPLACE_FMODF@
1490 REPLACE_FMODL = @REPLACE_FMODL@
1491 REPLACE_FOPEN = @REPLACE_FOPEN@
1492 +REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@
1493 REPLACE_FPRINTF = @REPLACE_FPRINTF@
1494 REPLACE_FPURGE = @REPLACE_FPURGE@
1495 +REPLACE_FREE = @REPLACE_FREE@
1496 REPLACE_FREOPEN = @REPLACE_FREOPEN@
1497 REPLACE_FREXP = @REPLACE_FREXP@
1498 REPLACE_FREXPF = @REPLACE_FREXPF@
1499 @@ -1341,6 +1462,7 @@ REPLACE_GETLINE = @REPLACE_GETLINE@
1500 REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@
1501 REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@
1502 REPLACE_GETPASS = @REPLACE_GETPASS@
1503 +REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@
1504 REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
1505 REPLACE_GMTIME = @REPLACE_GMTIME@
1506 REPLACE_HUGE_VAL = @REPLACE_HUGE_VAL@
1507 @@ -1379,7 +1501,8 @@ REPLACE_LOGF = @REPLACE_LOGF@
1508 REPLACE_LOGL = @REPLACE_LOGL@
1509 REPLACE_LSEEK = @REPLACE_LSEEK@
1510 REPLACE_LSTAT = @REPLACE_LSTAT@
1511 -REPLACE_MALLOC = @REPLACE_MALLOC@
1512 +REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@
1513 +REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@
1514 REPLACE_MBRLEN = @REPLACE_MBRLEN@
1515 REPLACE_MBRTOWC = @REPLACE_MBRTOWC@
1516 REPLACE_MBSINIT = @REPLACE_MBSINIT@
1517 @@ -1391,7 +1514,9 @@ REPLACE_MEMCHR = @REPLACE_MEMCHR@
1518 REPLACE_MEMMEM = @REPLACE_MEMMEM@
1519 REPLACE_MKDIR = @REPLACE_MKDIR@
1520 REPLACE_MKFIFO = @REPLACE_MKFIFO@
1521 +REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@
1522 REPLACE_MKNOD = @REPLACE_MKNOD@
1523 +REPLACE_MKNODAT = @REPLACE_MKNODAT@
1524 REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
1525 REPLACE_MKTIME = @REPLACE_MKTIME@
1526 REPLACE_MODF = @REPLACE_MODF@
1527 @@ -1406,6 +1531,7 @@ REPLACE_OPENAT = @REPLACE_OPENAT@
1528 REPLACE_OPENDIR = @REPLACE_OPENDIR@
1529 REPLACE_PERROR = @REPLACE_PERROR@
1530 REPLACE_POPEN = @REPLACE_POPEN@
1531 +REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@
1532 REPLACE_PREAD = @REPLACE_PREAD@
1533 REPLACE_PRINTF = @REPLACE_PRINTF@
1534 REPLACE_PTSNAME = @REPLACE_PTSNAME@
1535 @@ -1418,7 +1544,9 @@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@
1536 REPLACE_READ = @REPLACE_READ@
1537 REPLACE_READLINK = @REPLACE_READLINK@
1538 REPLACE_READLINKAT = @REPLACE_READLINKAT@
1539 -REPLACE_REALLOC = @REPLACE_REALLOC@
1540 +REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@
1541 +REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@
1542 +REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@
1543 REPLACE_REALPATH = @REPLACE_REALPATH@
1544 REPLACE_REMAINDER = @REPLACE_REMAINDER@
1545 REPLACE_REMAINDERF = @REPLACE_REMAINDERF@
1546 @@ -1434,7 +1562,7 @@ REPLACE_ROUNDL = @REPLACE_ROUNDL@
1547 REPLACE_SETENV = @REPLACE_SETENV@
1548 REPLACE_SETSTATE = @REPLACE_SETSTATE@
1549 REPLACE_SIGNBIT = @REPLACE_SIGNBIT@
1550 -REPLACE_SIGNBIT_USING_GCC = @REPLACE_SIGNBIT_USING_GCC@
1551 +REPLACE_SIGNBIT_USING_BUILTINS = @REPLACE_SIGNBIT_USING_BUILTINS@
1552 REPLACE_SINF = @REPLACE_SINF@
1553 REPLACE_SINHF = @REPLACE_SINHF@
1554 REPLACE_SLEEP = @REPLACE_SLEEP@
1555 @@ -1450,6 +1578,7 @@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@
1556 REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@
1557 REPLACE_STRDUP = @REPLACE_STRDUP@
1558 REPLACE_STRERROR = @REPLACE_STRERROR@
1559 +REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@
1560 REPLACE_STRERROR_R = @REPLACE_STRERROR_R@
1561 REPLACE_STRFTIME = @REPLACE_STRFTIME@
1562 REPLACE_STRNCAT = @REPLACE_STRNCAT@
1563 @@ -1460,7 +1589,11 @@ REPLACE_STRSTR = @REPLACE_STRSTR@
1564 REPLACE_STRTOD = @REPLACE_STRTOD@
1565 REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@
1566 REPLACE_STRTOK_R = @REPLACE_STRTOK_R@
1567 +REPLACE_STRTOL = @REPLACE_STRTOL@
1568 REPLACE_STRTOLD = @REPLACE_STRTOLD@
1569 +REPLACE_STRTOLL = @REPLACE_STRTOLL@
1570 +REPLACE_STRTOUL = @REPLACE_STRTOUL@
1571 +REPLACE_STRTOULL = @REPLACE_STRTOULL@
1572 REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@
1573 REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@
1574 REPLACE_SYMLINK = @REPLACE_SYMLINK@
1575 @@ -1491,6 +1624,7 @@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@
1576 REPLACE_WCSFTIME = @REPLACE_WCSFTIME@
1577 REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@
1578 REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@
1579 +REPLACE_WCSTOK = @REPLACE_WCSTOK@
1580 REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@
1581 REPLACE_WCTOB = @REPLACE_WCTOB@
1582 REPLACE_WCTOMB = @REPLACE_WCTOMB@
1583 @@ -1502,19 +1636,21 @@ SET_MAKE = @SET_MAKE@
1584 SHELL = @SHELL@
1585 SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
1586 SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
1587 +STDALIGN_H = @STDALIGN_H@
1588 STDBOOL_H = @STDBOOL_H@
1589 STDDEF_H = @STDDEF_H@
1590 STDINT_H = @STDINT_H@
1591 STRIP = @STRIP@
1592 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
1593 TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
1594 +TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@
1595 UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@
1596 UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@
1597 UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@
1598 UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@
1599 +UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@
1600 UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@
1601 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@
1602 -UTIME_H = @UTIME_H@
1603 VERSION = @VERSION@
1604 WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
1605 WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@
1606 @@ -1546,8 +1682,10 @@ datarootdir = @datarootdir@
1607 docdir = @docdir@
1608 dvidir = @dvidir@
1609 exec_prefix = @exec_prefix@
1610 +gl_LIBOBJDEPS = @gl_LIBOBJDEPS@
1611 gl_LIBOBJS = @gl_LIBOBJS@
1612 gl_LTLIBOBJS = @gl_LTLIBOBJS@
1613 +gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@
1614 gltests_LIBOBJS = @gltests_LIBOBJS@
1615 gltests_LTLIBOBJS = @gltests_LTLIBOBJS@
1616 gltests_WITNESS = @gltests_WITNESS@
1617
1618 diff --git a/autotools/gnulib/Makefile.am b/autotools/gnulib/Makefile.am
1619 index e0a7440..75a456f 100644
1620 --- a/autotools/gnulib/Makefile.am
1621 +++ b/autotools/gnulib/Makefile.am
1622 @@ -1,10 +1,10 @@
1623 ## DO NOT EDIT! GENERATED AUTOMATICALLY!
1624 ## Process this file with automake to produce Makefile.in.
1625 -# Copyright (C) 2002-2019 Free Software Foundation, Inc.
1626 +# Copyright (C) 2002-2022 Free Software Foundation, Inc.
1627 #
1628 # This file is free software; you can redistribute it and/or modify
1629 # it under the terms of the GNU General Public License as published by
1630 -# the Free Software Foundation; either version 3 of the License, or
1631 +# the Free Software Foundation, either version 3 of the License, or
1632 # (at your option) any later version.
1633 #
1634 # This file is distributed in the hope that it will be useful,
1635 @@ -55,7 +55,7 @@
1636 # vasprintf-posix \
1637 # xalloc
1638
1639 -AUTOMAKE_OPTIONS = 1.11 gnits
1640 +AUTOMAKE_OPTIONS = 1.11 gnits subdir-objects
1641
1642 SUBDIRS =
1643 noinst_HEADERS =
1644 @@ -77,6 +77,7 @@ AM_CFLAGS =
1645 noinst_LIBRARIES += libgnu.a
1646
1647 libgnu_a_SOURCES =
1648 +libgnu_a_CFLAGS = $(AM_CFLAGS) $(GL_CFLAG_GNULIB_WARNINGS)
1649 libgnu_a_LIBADD = $(gl_LIBOBJS)
1650 libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
1651 EXTRA_libgnu_a_SOURCES =
1652 @@ -86,7 +87,7 @@ EXTRA_libgnu_a_SOURCES =
1653 # Use this preprocessor expression to decide whether #include_next works.
1654 # Do not rely on a 'configure'-time test for this, since the expression
1655 # might appear in an installed header, which is used by some other compiler.
1656 -HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER)
1657 +HAVE_INCLUDE_NEXT = (__GNUC__ || __clang__ || 60000000 <= __DECC_VER)
1658
1659 ## end gnulib module absolute-header
1660
1661 @@ -98,11 +99,10 @@ BUILT_SOURCES += $(ALLOCA_H)
1662 # doesn't have one that works with the given compiler.
1663 if GL_GENERATE_ALLOCA_H
1664 alloca.h: alloca.in.h $(top_builddir)/config.status
1665 - $(AM_V_GEN)rm -f $@-t $@ && \
1666 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1667 - sed -e 's|@''HAVE_ALLOCA_H''@|$(HAVE_ALLOCA_H)|g' < $(srcdir)/alloca.in.h; \
1668 - } > $@-t && \
1669 - mv -f $@-t $@
1670 + $(gl_V_at)$(SED_HEADER_STDOUT) \
1671 + -e 's|@''HAVE_ALLOCA_H''@|$(HAVE_ALLOCA_H)|g' \
1672 + $(srcdir)/alloca.in.h > $@-t
1673 + $(AM_V_at)mv $@-t $@
1674 else
1675 alloca.h: $(top_builddir)/config.status
1676 rm -f $@
1677 @@ -122,28 +122,58 @@ EXTRA_DIST += assure.h
1678
1679 ## begin gnulib module at-internal
1680
1681 +libgnu_a_SOURCES += openat-priv.h openat-proc.c
1682
1683 -EXTRA_DIST += openat-priv.h openat-proc.c
1684 +## end gnulib module at-internal
1685
1686 -EXTRA_libgnu_a_SOURCES += openat-proc.c
1687 +## begin gnulib module attribute
1688
1689 -## end gnulib module at-internal
1690
1691 -## begin gnulib module canonicalize-lgpl
1692 +EXTRA_DIST += attribute.h
1693 +
1694 +## end gnulib module attribute
1695 +
1696 +## begin gnulib module basename-lgpl
1697 +
1698 +libgnu_a_SOURCES += basename-lgpl.c
1699 +
1700 +EXTRA_DIST += basename-lgpl.h
1701 +
1702 +## end gnulib module basename-lgpl
1703 +
1704 +## begin gnulib module calloc-gnu
1705 +
1706 +
1707 +EXTRA_DIST += calloc.c
1708 +
1709 +EXTRA_libgnu_a_SOURCES += calloc.c
1710 +
1711 +## end gnulib module calloc-gnu
1712 +
1713 +## begin gnulib module calloc-posix
1714 +
1715
1716 +EXTRA_DIST += calloc.c
1717
1718 -EXTRA_DIST += canonicalize-lgpl.c
1719 +EXTRA_libgnu_a_SOURCES += calloc.c
1720
1721 -EXTRA_libgnu_a_SOURCES += canonicalize-lgpl.c
1722 +## end gnulib module calloc-posix
1723 +
1724 +## begin gnulib module canonicalize-lgpl
1725 +
1726 +if GL_COND_OBJ_CANONICALIZE_LGPL
1727 +libgnu_a_SOURCES += canonicalize-lgpl.c
1728 +endif
1729
1730 ## end gnulib module canonicalize-lgpl
1731
1732 ## begin gnulib module chdir-long
1733
1734 +if GL_COND_OBJ_CHDIR_LONG
1735 +libgnu_a_SOURCES += chdir-long.c
1736 +endif
1737
1738 -EXTRA_DIST += chdir-long.c chdir-long.h
1739 -
1740 -EXTRA_libgnu_a_SOURCES += chdir-long.c
1741 +EXTRA_DIST += chdir-long.h
1742
1743 ## end gnulib module chdir-long
1744
1745 @@ -157,19 +187,19 @@ EXTRA_DIST += cloexec.h
1746
1747 ## begin gnulib module close
1748
1749 -
1750 -EXTRA_DIST += close.c
1751 -
1752 -EXTRA_libgnu_a_SOURCES += close.c
1753 +if GL_COND_OBJ_CLOSE
1754 +libgnu_a_SOURCES += close.c
1755 +endif
1756
1757 ## end gnulib module close
1758
1759 ## begin gnulib module closedir
1760
1761 +if GL_COND_OBJ_CLOSEDIR
1762 +libgnu_a_SOURCES += closedir.c
1763 +endif
1764
1765 -EXTRA_DIST += closedir.c dirent-private.h
1766 -
1767 -EXTRA_libgnu_a_SOURCES += closedir.c
1768 +EXTRA_DIST += dirent-private.h
1769
1770 ## end gnulib module closedir
1771
1772 @@ -180,22 +210,21 @@ BUILT_SOURCES += dirent.h
1773 # We need the following in order to create <dirent.h> when the system
1774 # doesn't have one that works with the given compiler.
1775 dirent.h: dirent.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1776 - $(AM_V_GEN)rm -f $@-t $@ && \
1777 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1778 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1779 + $(gl_V_at)$(SED_HEADER_STDOUT) \
1780 + -e 's|@''GUARD_PREFIX''@|GL|g' \
1781 -e 's|@''HAVE_DIRENT_H''@|$(HAVE_DIRENT_H)|g' \
1782 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1783 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1784 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1785 -e 's|@''NEXT_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
1786 - -e 's/@''GNULIB_OPENDIR''@/$(GNULIB_OPENDIR)/g' \
1787 - -e 's/@''GNULIB_READDIR''@/$(GNULIB_READDIR)/g' \
1788 - -e 's/@''GNULIB_REWINDDIR''@/$(GNULIB_REWINDDIR)/g' \
1789 - -e 's/@''GNULIB_CLOSEDIR''@/$(GNULIB_CLOSEDIR)/g' \
1790 - -e 's/@''GNULIB_DIRFD''@/$(GNULIB_DIRFD)/g' \
1791 - -e 's/@''GNULIB_FDOPENDIR''@/$(GNULIB_FDOPENDIR)/g' \
1792 - -e 's/@''GNULIB_SCANDIR''@/$(GNULIB_SCANDIR)/g' \
1793 - -e 's/@''GNULIB_ALPHASORT''@/$(GNULIB_ALPHASORT)/g' \
1794 + -e 's/@''GNULIB_OPENDIR''@/$(GL_GNULIB_OPENDIR)/g' \
1795 + -e 's/@''GNULIB_READDIR''@/$(GL_GNULIB_READDIR)/g' \
1796 + -e 's/@''GNULIB_REWINDDIR''@/$(GL_GNULIB_REWINDDIR)/g' \
1797 + -e 's/@''GNULIB_CLOSEDIR''@/$(GL_GNULIB_CLOSEDIR)/g' \
1798 + -e 's/@''GNULIB_DIRFD''@/$(GL_GNULIB_DIRFD)/g' \
1799 + -e 's/@''GNULIB_FDOPENDIR''@/$(GL_GNULIB_FDOPENDIR)/g' \
1800 + -e 's/@''GNULIB_SCANDIR''@/$(GL_GNULIB_SCANDIR)/g' \
1801 + -e 's/@''GNULIB_ALPHASORT''@/$(GL_GNULIB_ALPHASORT)/g' \
1802 -e 's/@''HAVE_OPENDIR''@/$(HAVE_OPENDIR)/g' \
1803 -e 's/@''HAVE_READDIR''@/$(HAVE_READDIR)/g' \
1804 -e 's/@''HAVE_REWINDDIR''@/$(HAVE_REWINDDIR)/g' \
1805 @@ -212,9 +241,8 @@ dirent.h: dirent.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
1806 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1807 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1808 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
1809 - < $(srcdir)/dirent.in.h; \
1810 - } > $@-t && \
1811 - mv $@-t $@
1812 + $(srcdir)/dirent.in.h > $@-t
1813 + $(AM_V_at)mv $@-t $@
1814 MOSTLYCLEANFILES += dirent.h dirent.h-t
1815
1816 EXTRA_DIST += dirent.in.h
1817 @@ -223,45 +251,42 @@ EXTRA_DIST += dirent.in.h
1818
1819 ## begin gnulib module dirfd
1820
1821 -
1822 -EXTRA_DIST += dirfd.c
1823 -
1824 -EXTRA_libgnu_a_SOURCES += dirfd.c
1825 +if GL_COND_OBJ_DIRFD
1826 +libgnu_a_SOURCES += dirfd.c
1827 +endif
1828
1829 ## end gnulib module dirfd
1830
1831 ## begin gnulib module dirname-lgpl
1832
1833 -libgnu_a_SOURCES += dirname-lgpl.c basename-lgpl.c stripslash.c
1834 +libgnu_a_SOURCES += dirname-lgpl.c stripslash.c
1835
1836 EXTRA_DIST += dirname.h
1837
1838 ## end gnulib module dirname-lgpl
1839
1840 -## begin gnulib module dosname
1841 -
1842 -
1843 -EXTRA_DIST += dosname.h
1844 -
1845 -## end gnulib module dosname
1846 -
1847 ## begin gnulib module dup
1848
1849 -
1850 -EXTRA_DIST += dup.c
1851 -
1852 -EXTRA_libgnu_a_SOURCES += dup.c
1853 +if GL_COND_OBJ_DUP
1854 +libgnu_a_SOURCES += dup.c
1855 +endif
1856
1857 ## end gnulib module dup
1858
1859 ## begin gnulib module dup2
1860
1861 +if GL_COND_OBJ_DUP2
1862 +libgnu_a_SOURCES += dup2.c
1863 +endif
1864 +
1865 +## end gnulib module dup2
1866
1867 -EXTRA_DIST += dup2.c
1868 +## begin gnulib module eloop-threshold
1869
1870 -EXTRA_libgnu_a_SOURCES += dup2.c
1871
1872 -## end gnulib module dup2
1873 +EXTRA_DIST += eloop-threshold.h
1874 +
1875 +## end gnulib module eloop-threshold
1876
1877 ## begin gnulib module errno
1878
1879 @@ -271,9 +296,8 @@ BUILT_SOURCES += $(ERRNO_H)
1880 # doesn't have one that is POSIX compliant.
1881 if GL_GENERATE_ERRNO_H
1882 errno.h: errno.in.h $(top_builddir)/config.status
1883 - $(AM_V_GEN)rm -f $@-t $@ && \
1884 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1885 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1886 + $(gl_V_at)$(SED_HEADER_STDOUT) \
1887 + -e 's|@''GUARD_PREFIX''@|GL|g' \
1888 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1889 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1890 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1891 @@ -284,9 +308,8 @@ errno.h: errno.in.h $(top_builddir)/config.status
1892 -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
1893 -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
1894 -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
1895 - < $(srcdir)/errno.in.h; \
1896 - } > $@-t && \
1897 - mv $@-t $@
1898 + $(srcdir)/errno.in.h > $@-t
1899 + $(AM_V_at)mv $@-t $@
1900 else
1901 errno.h: $(top_builddir)/config.status
1902 rm -f $@
1903 @@ -299,19 +322,19 @@ EXTRA_DIST += errno.in.h
1904
1905 ## begin gnulib module error
1906
1907 +if GL_COND_OBJ_ERROR
1908 +libgnu_a_SOURCES += error.c
1909 +endif
1910
1911 -EXTRA_DIST += error.c error.h
1912 -
1913 -EXTRA_libgnu_a_SOURCES += error.c
1914 +EXTRA_DIST += error.h
1915
1916 ## end gnulib module error
1917
1918 ## begin gnulib module euidaccess
1919
1920 -
1921 -EXTRA_DIST += euidaccess.c
1922 -
1923 -EXTRA_libgnu_a_SOURCES += euidaccess.c
1924 +if GL_COND_OBJ_EUIDACCESS
1925 +libgnu_a_SOURCES += euidaccess.c
1926 +endif
1927
1928 ## end gnulib module euidaccess
1929
1930 @@ -325,28 +348,29 @@ EXTRA_DIST += exitfail.h
1931
1932 ## begin gnulib module faccessat
1933
1934 +if GL_COND_OBJ_FACCESSAT
1935 +libgnu_a_SOURCES += faccessat.c
1936 +endif
1937
1938 -EXTRA_DIST += at-func.c faccessat.c
1939 +EXTRA_DIST += at-func.c
1940
1941 -EXTRA_libgnu_a_SOURCES += at-func.c faccessat.c
1942 +EXTRA_libgnu_a_SOURCES += at-func.c
1943
1944 ## end gnulib module faccessat
1945
1946 ## begin gnulib module fchdir
1947
1948 -
1949 -EXTRA_DIST += fchdir.c
1950 -
1951 -EXTRA_libgnu_a_SOURCES += fchdir.c
1952 +if GL_COND_OBJ_FCHDIR
1953 +libgnu_a_SOURCES += fchdir.c
1954 +endif
1955
1956 ## end gnulib module fchdir
1957
1958 ## begin gnulib module fcntl
1959
1960 -
1961 -EXTRA_DIST += fcntl.c
1962 -
1963 -EXTRA_libgnu_a_SOURCES += fcntl.c
1964 +if GL_COND_OBJ_FCNTL
1965 +libgnu_a_SOURCES += fcntl.c
1966 +endif
1967
1968 ## end gnulib module fcntl
1969
1970 @@ -357,28 +381,30 @@ BUILT_SOURCES += fcntl.h
1971 # We need the following in order to create <fcntl.h> when the system
1972 # doesn't have one that works with the given compiler.
1973 fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1974 - $(AM_V_GEN)rm -f $@-t $@ && \
1975 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1976 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
1977 + $(gl_V_at)$(SED_HEADER_STDOUT) \
1978 + -e 's|@''GUARD_PREFIX''@|GL|g' \
1979 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1980 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1981 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1982 -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \
1983 - -e 's/@''GNULIB_FCNTL''@/$(GNULIB_FCNTL)/g' \
1984 - -e 's/@''GNULIB_NONBLOCKING''@/$(GNULIB_NONBLOCKING)/g' \
1985 - -e 's/@''GNULIB_OPEN''@/$(GNULIB_OPEN)/g' \
1986 - -e 's/@''GNULIB_OPENAT''@/$(GNULIB_OPENAT)/g' \
1987 + -e 's/@''GNULIB_CREAT''@/$(GL_GNULIB_CREAT)/g' \
1988 + -e 's/@''GNULIB_FCNTL''@/$(GL_GNULIB_FCNTL)/g' \
1989 + -e 's/@''GNULIB_NONBLOCKING''@/$(GL_GNULIB_NONBLOCKING)/g' \
1990 + -e 's/@''GNULIB_OPEN''@/$(GL_GNULIB_OPEN)/g' \
1991 + -e 's/@''GNULIB_OPENAT''@/$(GL_GNULIB_OPENAT)/g' \
1992 + -e 's/@''GNULIB_MDA_CREAT''@/$(GL_GNULIB_MDA_CREAT)/g' \
1993 + -e 's/@''GNULIB_MDA_OPEN''@/$(GL_GNULIB_MDA_OPEN)/g' \
1994 -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \
1995 -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \
1996 + -e 's|@''REPLACE_CREAT''@|$(REPLACE_CREAT)|g' \
1997 -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \
1998 -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
1999 -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \
2000 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
2001 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
2002 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
2003 - < $(srcdir)/fcntl.in.h; \
2004 - } > $@-t && \
2005 - mv $@-t $@
2006 + $(srcdir)/fcntl.in.h > $@-t
2007 + $(AM_V_at)mv $@-t $@
2008 MOSTLYCLEANFILES += fcntl.h fcntl.h-t
2009
2010 EXTRA_DIST += fcntl.in.h
2011 @@ -401,10 +427,9 @@ libgnu_a_SOURCES += fd-safer-flag.c dup-safer-flag.c
2012
2013 ## begin gnulib module fdopendir
2014
2015 -
2016 -EXTRA_DIST += fdopendir.c
2017 -
2018 -EXTRA_libgnu_a_SOURCES += fdopendir.c
2019 +if GL_COND_OBJ_FDOPENDIR
2020 +libgnu_a_SOURCES += fdopendir.c
2021 +endif
2022
2023 ## end gnulib module fdopendir
2024
2025 @@ -431,26 +456,29 @@ BUILT_SOURCES += $(FLOAT_H)
2026 # doesn't have one that works with the given compiler.
2027 if GL_GENERATE_FLOAT_H
2028 float.h: float.in.h $(top_builddir)/config.status
2029 - $(AM_V_GEN)rm -f $@-t $@ && \
2030 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
2031 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
2032 + $(gl_V_at)$(SED_HEADER_STDOUT) \
2033 + -e 's|@''GUARD_PREFIX''@|GL|g' \
2034 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2035 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2036 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2037 -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
2038 -e 's|@''REPLACE_ITOLD''@|$(REPLACE_ITOLD)|g' \
2039 - < $(srcdir)/float.in.h; \
2040 - } > $@-t && \
2041 - mv $@-t $@
2042 + $(srcdir)/float.in.h > $@-t
2043 + $(AM_V_at)mv $@-t $@
2044 else
2045 float.h: $(top_builddir)/config.status
2046 rm -f $@
2047 endif
2048 MOSTLYCLEANFILES += float.h float.h-t
2049
2050 -EXTRA_DIST += float.c float.in.h itold.c
2051 +if GL_COND_OBJ_FLOAT
2052 +libgnu_a_SOURCES += float.c
2053 +endif
2054 +if GL_COND_OBJ_ITOLD
2055 +libgnu_a_SOURCES += itold.c
2056 +endif
2057
2058 -EXTRA_libgnu_a_SOURCES += float.c itold.c
2059 +EXTRA_DIST += float.in.h
2060
2061 ## end gnulib module float
2062
2063 @@ -461,6 +489,14 @@ EXTRA_DIST += fpucw.h
2064
2065 ## end gnulib module fpucw
2066
2067 +## begin gnulib module free-posix
2068 +
2069 +if GL_COND_OBJ_FREE
2070 +libgnu_a_SOURCES += free.c
2071 +endif
2072 +
2073 +## end gnulib module free-posix
2074 +
2075 ## begin gnulib module frexp-nolibm
2076
2077
2078 @@ -481,73 +517,92 @@ EXTRA_libgnu_a_SOURCES += frexp.c frexpl.c
2079
2080 ## begin gnulib module fstat
2081
2082 +if GL_COND_OBJ_FSTAT
2083 +libgnu_a_SOURCES += fstat.c
2084 +endif
2085
2086 -EXTRA_DIST += fstat.c stat-w32.c stat-w32.h
2087 +EXTRA_DIST += stat-w32.c stat-w32.h
2088
2089 -EXTRA_libgnu_a_SOURCES += fstat.c stat-w32.c
2090 +EXTRA_libgnu_a_SOURCES += stat-w32.c
2091
2092 ## end gnulib module fstat
2093
2094 ## begin gnulib module fstatat
2095
2096 +if GL_COND_OBJ_FSTATAT
2097 +libgnu_a_SOURCES += fstatat.c
2098 +endif
2099
2100 -EXTRA_DIST += at-func.c fstatat.c
2101 +EXTRA_DIST += at-func.c
2102
2103 -EXTRA_libgnu_a_SOURCES += at-func.c fstatat.c
2104 +EXTRA_libgnu_a_SOURCES += at-func.c
2105
2106 ## end gnulib module fstatat
2107
2108 ## begin gnulib module futimens
2109
2110 +if GL_COND_OBJ_FUTIMENS
2111 +libgnu_a_SOURCES += futimens.c
2112 +endif
2113
2114 -EXTRA_DIST += futimens.c
2115 +## end gnulib module futimens
2116
2117 -EXTRA_libgnu_a_SOURCES += futimens.c
2118 +## begin gnulib module gen-header
2119
2120 -## end gnulib module futimens
2121 +# In 'sed', replace the pattern space with a "DO NOT EDIT" comment.
2122 +SED_HEADER_NOEDIT = s,.*,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */,
2123
2124 -## begin gnulib module getcwd-lgpl
2125 +# '$(SED_HEADER_STDOUT) -e "..."' runs 'sed' but first outputs "DO NOT EDIT".
2126 +SED_HEADER_STDOUT = sed -e 1h -e '1$(SED_HEADER_NOEDIT)' -e 1G
2127
2128 +# '$(SED_HEADER_TO_AT_t) FILE' copies FILE to $@-t, prepending a leading
2129 +# "DO_NOT_EDIT". Although this could be done more simply via:
2130 +# SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) > $@-t
2131 +# the -n and 'w' avoid a fork+exec, at least when GNU Make is used.
2132 +SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) -n -e 'w $@-t'
2133
2134 -EXTRA_DIST += getcwd-lgpl.c
2135 +# Use $(gl_V_at) instead of $(AM_V_GEN) or $(AM_V_at) on a line that
2136 +gl_V_at = $(AM_V_GEN)
2137
2138 -EXTRA_libgnu_a_SOURCES += getcwd-lgpl.c
2139 +## end gnulib module gen-header
2140
2141 -## end gnulib module getcwd-lgpl
2142 +## begin gnulib module getcwd-lgpl
2143
2144 -## begin gnulib module getdelim
2145 +if GL_COND_OBJ_GETCWD_LGPL
2146 +libgnu_a_SOURCES += getcwd-lgpl.c
2147 +endif
2148
2149 +## end gnulib module getcwd-lgpl
2150
2151 -EXTRA_DIST += getdelim.c
2152 +## begin gnulib module getdelim
2153
2154 -EXTRA_libgnu_a_SOURCES += getdelim.c
2155 +if GL_COND_OBJ_GETDELIM
2156 +libgnu_a_SOURCES += getdelim.c
2157 +endif
2158
2159 ## end gnulib module getdelim
2160
2161 ## begin gnulib module getdtablesize
2162
2163 -
2164 -EXTRA_DIST += getdtablesize.c
2165 -
2166 -EXTRA_libgnu_a_SOURCES += getdtablesize.c
2167 +if GL_COND_OBJ_GETDTABLESIZE
2168 +libgnu_a_SOURCES += getdtablesize.c
2169 +endif
2170
2171 ## end gnulib module getdtablesize
2172
2173 ## begin gnulib module getgroups
2174
2175 -
2176 -EXTRA_DIST += getgroups.c
2177 -
2178 -EXTRA_libgnu_a_SOURCES += getgroups.c
2179 +if GL_COND_OBJ_GETGROUPS
2180 +libgnu_a_SOURCES += getgroups.c
2181 +endif
2182
2183 ## end gnulib module getgroups
2184
2185 ## begin gnulib module getline
2186
2187 -
2188 -EXTRA_DIST += getline.c
2189 -
2190 -EXTRA_libgnu_a_SOURCES += getline.c
2191 +if GL_COND_OBJ_GETLINE
2192 +libgnu_a_SOURCES += getline.c
2193 +endif
2194
2195 ## end gnulib module getline
2196
2197 @@ -557,33 +612,41 @@ BUILT_SOURCES += $(GETOPT_H) $(GETOPT_CDEFS_H)
2198
2199 # We need the following in order to create <getopt.h> when the system
2200 # doesn't have one that works with the given compiler.
2201 +if GL_GENERATE_GETOPT_H
2202 getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
2203 - $(AM_V_GEN)rm -f $@-t $@ && \
2204 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
2205 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
2206 + $(gl_V_at)$(SED_HEADER_STDOUT) \
2207 + -e 's|@''GUARD_PREFIX''@|GL|g' \
2208 -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
2209 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2210 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2211 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2212 -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
2213 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
2214 - < $(srcdir)/getopt.in.h; \
2215 - } > $@-t && \
2216 - mv -f $@-t $@
2217 + $(srcdir)/getopt.in.h > $@-t
2218 + $(AM_V_at)mv $@-t $@
2219 +else
2220 +getopt.h: $(top_builddir)/config.status
2221 + rm -f $@
2222 +endif
2223
2224 +if GL_GENERATE_GETOPT_CDEFS_H
2225 getopt-cdefs.h: getopt-cdefs.in.h $(top_builddir)/config.status
2226 - $(AM_V_GEN)rm -f $@-t $@ && \
2227 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
2228 - sed -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \
2229 - < $(srcdir)/getopt-cdefs.in.h; \
2230 - } > $@-t && \
2231 - mv -f $@-t $@
2232 + $(AM_V_GEN)$(SED_HEADER_STDOUT) \
2233 + -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \
2234 + $(srcdir)/getopt-cdefs.in.h > $@-t
2235 + $(AM_V_at)mv $@-t $@
2236 +else
2237 +getopt-cdefs.h: $(top_builddir)/config.status
2238 + rm -f $@
2239 +endif
2240
2241 MOSTLYCLEANFILES += getopt.h getopt.h-t getopt-cdefs.h getopt-cdefs.h-t
2242
2243 -EXTRA_DIST += getopt-cdefs.in.h getopt-core.h getopt-ext.h getopt-pfx-core.h getopt-pfx-ext.h getopt.c getopt.in.h getopt1.c getopt_int.h
2244 +if GL_COND_OBJ_GETOPT
2245 +libgnu_a_SOURCES += getopt.c getopt1.c
2246 +endif
2247
2248 -EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
2249 +EXTRA_DIST += getopt-cdefs.in.h getopt-core.h getopt-ext.h getopt-pfx-core.h getopt-pfx-ext.h getopt.in.h getopt_int.h
2250
2251 ## end gnulib module getopt-posix
2252
2253 @@ -607,21 +670,33 @@ libgnu_a_SOURCES += gettime.c
2254
2255 ## begin gnulib module gettimeofday
2256
2257 -
2258 -EXTRA_DIST += gettimeofday.c
2259 -
2260 -EXTRA_libgnu_a_SOURCES += gettimeofday.c
2261 +if GL_COND_OBJ_GETTIMEOFDAY
2262 +libgnu_a_SOURCES += gettimeofday.c
2263 +endif
2264
2265 ## end gnulib module gettimeofday
2266
2267 ## begin gnulib module group-member
2268
2269 +if GL_COND_OBJ_GROUP_MEMBER
2270 +libgnu_a_SOURCES += group-member.c
2271 +endif
2272
2273 -EXTRA_DIST += group-member.c
2274 +## end gnulib module group-member
2275
2276 -EXTRA_libgnu_a_SOURCES += group-member.c
2277 +## begin gnulib module ialloc
2278
2279 -## end gnulib module group-member
2280 +libgnu_a_SOURCES += ialloc.c
2281 +
2282 +EXTRA_DIST += ialloc.h
2283 +
2284 +## end gnulib module ialloc
2285 +
2286 +## begin gnulib module idx
2287 +
2288 +libgnu_a_SOURCES += idx.h
2289 +
2290 +## end gnulib module idx
2291
2292 ## begin gnulib module intprops
2293
2294 @@ -637,22 +712,18 @@ BUILT_SOURCES += inttypes.h
2295 # We need the following in order to create <inttypes.h> when the system
2296 # doesn't have one that works with the given compiler.
2297 inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
2298 - $(AM_V_GEN)rm -f $@-t $@ && \
2299 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
2300 - sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
2301 + $(gl_V_at)$(SED_HEADER_STDOUT) \
2302 + -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
2303 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2304 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2305 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2306 -e 's|@''NEXT_INTTYPES_H''@|$(NEXT_INTTYPES_H)|g' \
2307 - -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \
2308 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
2309 - -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
2310 - -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
2311 -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \
2312 - -e 's/@''GNULIB_IMAXABS''@/$(GNULIB_IMAXABS)/g' \
2313 - -e 's/@''GNULIB_IMAXDIV''@/$(GNULIB_IMAXDIV)/g' \
2314 - -e 's/@''GNULIB_STRTOIMAX''@/$(GNULIB_STRTOIMAX)/g' \
2315 - -e 's/@''GNULIB_STRTOUMAX''@/$(GNULIB_STRTOUMAX)/g' \
2316 + -e 's/@''GNULIB_IMAXABS''@/$(GL_GNULIB_IMAXABS)/g' \
2317 + -e 's/@''GNULIB_IMAXDIV''@/$(GL_GNULIB_IMAXDIV)/g' \
2318 + -e 's/@''GNULIB_STRTOIMAX''@/$(GL_GNULIB_STRTOIMAX)/g' \
2319 + -e 's/@''GNULIB_STRTOUMAX''@/$(GL_GNULIB_STRTOUMAX)/g' \
2320 -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \
2321 -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \
2322 -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
2323 @@ -667,9 +738,8 @@ inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_U
2324 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
2325 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
2326 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
2327 - < $(srcdir)/inttypes.in.h; \
2328 - } > $@-t && \
2329 - mv $@-t $@
2330 + $(srcdir)/inttypes.in.h > $@-t
2331 + $(AM_V_at)mv $@-t $@
2332 MOSTLYCLEANFILES += inttypes.h inttypes.h-t
2333
2334 EXTRA_DIST += inttypes.in.h
2335 @@ -703,6 +773,13 @@ EXTRA_libgnu_a_SOURCES += isnan.c isnanl.c
2336
2337 ## end gnulib module isnanl-nolibm
2338
2339 +## begin gnulib module libc-config
2340 +
2341 +
2342 +EXTRA_DIST += cdefs.h libc-config.h
2343 +
2344 +## end gnulib module libc-config
2345 +
2346 ## begin gnulib module limits-h
2347
2348 BUILT_SOURCES += $(LIMITS_H)
2349 @@ -711,16 +788,14 @@ BUILT_SOURCES += $(LIMITS_H)
2350 # doesn't have one that is compatible with GNU.
2351 if GL_GENERATE_LIMITS_H
2352 limits.h: limits.in.h $(top_builddir)/config.status
2353 - $(AM_V_GEN)rm -f $@-t $@ && \
2354 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
2355 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
2356 + $(gl_V_at)$(SED_HEADER_STDOUT) \
2357 + -e 's|@''GUARD_PREFIX''@|GL|g' \
2358 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2359 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2360 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2361 -e 's|@''NEXT_LIMITS_H''@|$(NEXT_LIMITS_H)|g' \
2362 - < $(srcdir)/limits.in.h; \
2363 - } > $@-t && \
2364 - mv $@-t $@
2365 + $(srcdir)/limits.in.h > $@-t
2366 + $(AM_V_at)mv $@-t $@
2367 else
2368 limits.h: $(top_builddir)/config.status
2369 rm -f $@
2370 @@ -731,23 +806,22 @@ EXTRA_DIST += limits.in.h
2371
2372 ## end gnulib module limits-h
2373
2374 -## begin gnulib module localtime-buffer
2375 -
2376 -
2377 -EXTRA_DIST += localtime-buffer.c localtime-buffer.h
2378 +## begin gnulib module lstat
2379
2380 -EXTRA_libgnu_a_SOURCES += localtime-buffer.c
2381 +if GL_COND_OBJ_LSTAT
2382 +libgnu_a_SOURCES += lstat.c
2383 +endif
2384
2385 -## end gnulib module localtime-buffer
2386 +## end gnulib module lstat
2387
2388 -## begin gnulib module lstat
2389 +## begin gnulib module malloc-gnu
2390
2391
2392 -EXTRA_DIST += lstat.c
2393 +EXTRA_DIST += malloc.c
2394
2395 -EXTRA_libgnu_a_SOURCES += lstat.c
2396 +EXTRA_libgnu_a_SOURCES += malloc.c
2397
2398 -## end gnulib module lstat
2399 +## end gnulib module malloc-gnu
2400
2401 ## begin gnulib module malloc-posix
2402
2403 @@ -774,109 +848,114 @@ libgnu_a_SOURCES += math.c
2404 # We need the following in order to create <math.h> when the system
2405 # doesn't have one that works with the given compiler.
2406 math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
2407 - $(AM_V_GEN)rm -f $@-t $@ && \
2408 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
2409 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
2410 + $(gl_V_at)$(SED_HEADER_STDOUT) \
2411 + -e 's|@''GUARD_PREFIX''@|GL|g' \
2412 -e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
2413 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2414 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2415 -e 's|@''NEXT_AS_FIRST_DIRECTIVE_MATH_H''@|$(NEXT_AS_FIRST_DIRECTIVE_MATH_H)|g' \
2416 - -e 's/@''GNULIB_ACOSF''@/$(GNULIB_ACOSF)/g' \
2417 - -e 's/@''GNULIB_ACOSL''@/$(GNULIB_ACOSL)/g' \
2418 - -e 's/@''GNULIB_ASINF''@/$(GNULIB_ASINF)/g' \
2419 - -e 's/@''GNULIB_ASINL''@/$(GNULIB_ASINL)/g' \
2420 - -e 's/@''GNULIB_ATANF''@/$(GNULIB_ATANF)/g' \
2421 - -e 's/@''GNULIB_ATANL''@/$(GNULIB_ATANL)/g' \
2422 - -e 's/@''GNULIB_ATAN2F''@/$(GNULIB_ATAN2F)/g' \
2423 - -e 's/@''GNULIB_CBRT''@/$(GNULIB_CBRT)/g' \
2424 - -e 's/@''GNULIB_CBRTF''@/$(GNULIB_CBRTF)/g' \
2425 - -e 's/@''GNULIB_CBRTL''@/$(GNULIB_CBRTL)/g' \
2426 - -e 's/@''GNULIB_CEIL''@/$(GNULIB_CEIL)/g' \
2427 - -e 's/@''GNULIB_CEILF''@/$(GNULIB_CEILF)/g' \
2428 - -e 's/@''GNULIB_CEILL''@/$(GNULIB_CEILL)/g' \
2429 - -e 's/@''GNULIB_COPYSIGN''@/$(GNULIB_COPYSIGN)/g' \
2430 - -e 's/@''GNULIB_COPYSIGNF''@/$(GNULIB_COPYSIGNF)/g' \
2431 - -e 's/@''GNULIB_COPYSIGNL''@/$(GNULIB_COPYSIGNL)/g' \
2432 - -e 's/@''GNULIB_COSF''@/$(GNULIB_COSF)/g' \
2433 - -e 's/@''GNULIB_COSL''@/$(GNULIB_COSL)/g' \
2434 - -e 's/@''GNULIB_COSHF''@/$(GNULIB_COSHF)/g' \
2435 - -e 's/@''GNULIB_EXPF''@/$(GNULIB_EXPF)/g' \
2436 - -e 's/@''GNULIB_EXPL''@/$(GNULIB_EXPL)/g' \
2437 - -e 's/@''GNULIB_EXP2''@/$(GNULIB_EXP2)/g' \
2438 - -e 's/@''GNULIB_EXP2F''@/$(GNULIB_EXP2F)/g' \
2439 - -e 's/@''GNULIB_EXP2L''@/$(GNULIB_EXP2L)/g' \
2440 - -e 's/@''GNULIB_EXPM1''@/$(GNULIB_EXPM1)/g' \
2441 - -e 's/@''GNULIB_EXPM1F''@/$(GNULIB_EXPM1F)/g' \
2442 - -e 's/@''GNULIB_EXPM1L''@/$(GNULIB_EXPM1L)/g' \
2443 - -e 's/@''GNULIB_FABSF''@/$(GNULIB_FABSF)/g' \
2444 - -e 's/@''GNULIB_FABSL''@/$(GNULIB_FABSL)/g' \
2445 - -e 's/@''GNULIB_FLOOR''@/$(GNULIB_FLOOR)/g' \
2446 - -e 's/@''GNULIB_FLOORF''@/$(GNULIB_FLOORF)/g' \
2447 - -e 's/@''GNULIB_FLOORL''@/$(GNULIB_FLOORL)/g' \
2448 - -e 's/@''GNULIB_FMA''@/$(GNULIB_FMA)/g' \
2449 - -e 's/@''GNULIB_FMAF''@/$(GNULIB_FMAF)/g' \
2450 - -e 's/@''GNULIB_FMAL''@/$(GNULIB_FMAL)/g' \
2451 - -e 's/@''GNULIB_FMOD''@/$(GNULIB_FMOD)/g' \
2452 - -e 's/@''GNULIB_FMODF''@/$(GNULIB_FMODF)/g' \
2453 - -e 's/@''GNULIB_FMODL''@/$(GNULIB_FMODL)/g' \
2454 - -e 's/@''GNULIB_FREXPF''@/$(GNULIB_FREXPF)/g' \
2455 - -e 's/@''GNULIB_FREXP''@/$(GNULIB_FREXP)/g' \
2456 - -e 's/@''GNULIB_FREXPL''@/$(GNULIB_FREXPL)/g' \
2457 - -e 's/@''GNULIB_HYPOT''@/$(GNULIB_HYPOT)/g' \
2458 - -e 's/@''GNULIB_HYPOTF''@/$(GNULIB_HYPOTF)/g' \
2459 - -e 's/@''GNULIB_HYPOTL''@/$(GNULIB_HYPOTL)/g' \
2460 + -e 's/@''GNULIB_ACOSF''@/$(GL_GNULIB_ACOSF)/g' \
2461 + -e 's/@''GNULIB_ACOSL''@/$(GL_GNULIB_ACOSL)/g' \
2462 + -e 's/@''GNULIB_ASINF''@/$(GL_GNULIB_ASINF)/g' \
2463 + -e 's/@''GNULIB_ASINL''@/$(GL_GNULIB_ASINL)/g' \
2464 + -e 's/@''GNULIB_ATANF''@/$(GL_GNULIB_ATANF)/g' \
2465 + -e 's/@''GNULIB_ATANL''@/$(GL_GNULIB_ATANL)/g' \
2466 + -e 's/@''GNULIB_ATAN2F''@/$(GL_GNULIB_ATAN2F)/g' \
2467 + -e 's/@''GNULIB_CBRT''@/$(GL_GNULIB_CBRT)/g' \
2468 + -e 's/@''GNULIB_CBRTF''@/$(GL_GNULIB_CBRTF)/g' \
2469 + -e 's/@''GNULIB_CBRTL''@/$(GL_GNULIB_CBRTL)/g' \
2470 + -e 's/@''GNULIB_CEIL''@/$(GL_GNULIB_CEIL)/g' \
2471 + -e 's/@''GNULIB_CEILF''@/$(GL_GNULIB_CEILF)/g' \
2472 + -e 's/@''GNULIB_CEILL''@/$(GL_GNULIB_CEILL)/g' \
2473 + -e 's/@''GNULIB_COPYSIGN''@/$(GL_GNULIB_COPYSIGN)/g' \
2474 + -e 's/@''GNULIB_COPYSIGNF''@/$(GL_GNULIB_COPYSIGNF)/g' \
2475 + -e 's/@''GNULIB_COPYSIGNL''@/$(GL_GNULIB_COPYSIGNL)/g' \
2476 + -e 's/@''GNULIB_COSF''@/$(GL_GNULIB_COSF)/g' \
2477 + -e 's/@''GNULIB_COSL''@/$(GL_GNULIB_COSL)/g' \
2478 + -e 's/@''GNULIB_COSHF''@/$(GL_GNULIB_COSHF)/g' \
2479 + -e 's/@''GNULIB_EXPF''@/$(GL_GNULIB_EXPF)/g' \
2480 + -e 's/@''GNULIB_EXPL''@/$(GL_GNULIB_EXPL)/g' \
2481 + -e 's/@''GNULIB_EXP2''@/$(GL_GNULIB_EXP2)/g' \
2482 + -e 's/@''GNULIB_EXP2F''@/$(GL_GNULIB_EXP2F)/g' \
2483 + -e 's/@''GNULIB_EXP2L''@/$(GL_GNULIB_EXP2L)/g' \
2484 + -e 's/@''GNULIB_EXPM1''@/$(GL_GNULIB_EXPM1)/g' \
2485 + -e 's/@''GNULIB_EXPM1F''@/$(GL_GNULIB_EXPM1F)/g' \
2486 + -e 's/@''GNULIB_EXPM1L''@/$(GL_GNULIB_EXPM1L)/g' \
2487 + -e 's/@''GNULIB_FABSF''@/$(GL_GNULIB_FABSF)/g' \
2488 + -e 's/@''GNULIB_FABSL''@/$(GL_GNULIB_FABSL)/g' \
2489 + -e 's/@''GNULIB_FLOOR''@/$(GL_GNULIB_FLOOR)/g' \
2490 + -e 's/@''GNULIB_FLOORF''@/$(GL_GNULIB_FLOORF)/g' \
2491 + -e 's/@''GNULIB_FLOORL''@/$(GL_GNULIB_FLOORL)/g' \
2492 + -e 's/@''GNULIB_FMA''@/$(GL_GNULIB_FMA)/g' \
2493 + -e 's/@''GNULIB_FMAF''@/$(GL_GNULIB_FMAF)/g' \
2494 + -e 's/@''GNULIB_FMAL''@/$(GL_GNULIB_FMAL)/g' \
2495 + -e 's/@''GNULIB_FMOD''@/$(GL_GNULIB_FMOD)/g' \
2496 + -e 's/@''GNULIB_FMODF''@/$(GL_GNULIB_FMODF)/g' \
2497 + -e 's/@''GNULIB_FMODL''@/$(GL_GNULIB_FMODL)/g' \
2498 + -e 's/@''GNULIB_FREXPF''@/$(GL_GNULIB_FREXPF)/g' \
2499 + -e 's/@''GNULIB_FREXP''@/$(GL_GNULIB_FREXP)/g' \
2500 + -e 's/@''GNULIB_FREXPL''@/$(GL_GNULIB_FREXPL)/g' \
2501 + -e 's/@''GNULIB_HYPOT''@/$(GL_GNULIB_HYPOT)/g' \
2502 + -e 's/@''GNULIB_HYPOTF''@/$(GL_GNULIB_HYPOTF)/g' \
2503 + -e 's/@''GNULIB_HYPOTL''@/$(GL_GNULIB_HYPOTL)/g' \
2504 < $(srcdir)/math.in.h | \
2505 - sed -e 's/@''GNULIB_ILOGB''@/$(GNULIB_ILOGB)/g' \
2506 - -e 's/@''GNULIB_ILOGBF''@/$(GNULIB_ILOGBF)/g' \
2507 - -e 's/@''GNULIB_ILOGBL''@/$(GNULIB_ILOGBL)/g' \
2508 - -e 's/@''GNULIB_ISFINITE''@/$(GNULIB_ISFINITE)/g' \
2509 - -e 's/@''GNULIB_ISINF''@/$(GNULIB_ISINF)/g' \
2510 - -e 's/@''GNULIB_ISNAN''@/$(GNULIB_ISNAN)/g' \
2511 - -e 's/@''GNULIB_ISNANF''@/$(GNULIB_ISNANF)/g' \
2512 - -e 's/@''GNULIB_ISNAND''@/$(GNULIB_ISNAND)/g' \
2513 - -e 's/@''GNULIB_ISNANL''@/$(GNULIB_ISNANL)/g' \
2514 - -e 's/@''GNULIB_LDEXPF''@/$(GNULIB_LDEXPF)/g' \
2515 - -e 's/@''GNULIB_LDEXPL''@/$(GNULIB_LDEXPL)/g' \
2516 - -e 's/@''GNULIB_LOG''@/$(GNULIB_LOG)/g' \
2517 - -e 's/@''GNULIB_LOGF''@/$(GNULIB_LOGF)/g' \
2518 - -e 's/@''GNULIB_LOGL''@/$(GNULIB_LOGL)/g' \
2519 - -e 's/@''GNULIB_LOG10''@/$(GNULIB_LOG10)/g' \
2520 - -e 's/@''GNULIB_LOG10F''@/$(GNULIB_LOG10F)/g' \
2521 - -e 's/@''GNULIB_LOG10L''@/$(GNULIB_LOG10L)/g' \
2522 - -e 's/@''GNULIB_LOG1P''@/$(GNULIB_LOG1P)/g' \
2523 - -e 's/@''GNULIB_LOG1PF''@/$(GNULIB_LOG1PF)/g' \
2524 - -e 's/@''GNULIB_LOG1PL''@/$(GNULIB_LOG1PL)/g' \
2525 - -e 's/@''GNULIB_LOG2''@/$(GNULIB_LOG2)/g' \
2526 - -e 's/@''GNULIB_LOG2F''@/$(GNULIB_LOG2F)/g' \
2527 - -e 's/@''GNULIB_LOG2L''@/$(GNULIB_LOG2L)/g' \
2528 - -e 's/@''GNULIB_LOGB''@/$(GNULIB_LOGB)/g' \
2529 - -e 's/@''GNULIB_LOGBF''@/$(GNULIB_LOGBF)/g' \
2530 - -e 's/@''GNULIB_LOGBL''@/$(GNULIB_LOGBL)/g' \
2531 - -e 's/@''GNULIB_MODF''@/$(GNULIB_MODF)/g' \
2532 - -e 's/@''GNULIB_MODFF''@/$(GNULIB_MODFF)/g' \
2533 - -e 's/@''GNULIB_MODFL''@/$(GNULIB_MODFL)/g' \
2534 - -e 's/@''GNULIB_POWF''@/$(GNULIB_POWF)/g' \
2535 - -e 's/@''GNULIB_REMAINDER''@/$(GNULIB_REMAINDER)/g' \
2536 - -e 's/@''GNULIB_REMAINDERF''@/$(GNULIB_REMAINDERF)/g' \
2537 - -e 's/@''GNULIB_REMAINDERL''@/$(GNULIB_REMAINDERL)/g' \
2538 - -e 's/@''GNULIB_RINT''@/$(GNULIB_RINT)/g' \
2539 - -e 's/@''GNULIB_RINTF''@/$(GNULIB_RINTF)/g' \
2540 - -e 's/@''GNULIB_RINTL''@/$(GNULIB_RINTL)/g' \
2541 - -e 's/@''GNULIB_ROUND''@/$(GNULIB_ROUND)/g' \
2542 - -e 's/@''GNULIB_ROUNDF''@/$(GNULIB_ROUNDF)/g' \
2543 - -e 's/@''GNULIB_ROUNDL''@/$(GNULIB_ROUNDL)/g' \
2544 - -e 's/@''GNULIB_SIGNBIT''@/$(GNULIB_SIGNBIT)/g' \
2545 - -e 's/@''GNULIB_SINF''@/$(GNULIB_SINF)/g' \
2546 - -e 's/@''GNULIB_SINL''@/$(GNULIB_SINL)/g' \
2547 - -e 's/@''GNULIB_SINHF''@/$(GNULIB_SINHF)/g' \
2548 - -e 's/@''GNULIB_SQRTF''@/$(GNULIB_SQRTF)/g' \
2549 - -e 's/@''GNULIB_SQRTL''@/$(GNULIB_SQRTL)/g' \
2550 - -e 's/@''GNULIB_TANF''@/$(GNULIB_TANF)/g' \
2551 - -e 's/@''GNULIB_TANL''@/$(GNULIB_TANL)/g' \
2552 - -e 's/@''GNULIB_TANHF''@/$(GNULIB_TANHF)/g' \
2553 - -e 's/@''GNULIB_TRUNC''@/$(GNULIB_TRUNC)/g' \
2554 - -e 's/@''GNULIB_TRUNCF''@/$(GNULIB_TRUNCF)/g' \
2555 - -e 's/@''GNULIB_TRUNCL''@/$(GNULIB_TRUNCL)/g' \
2556 + sed -e 's/@''GNULIB_ILOGB''@/$(GL_GNULIB_ILOGB)/g' \
2557 + -e 's/@''GNULIB_ILOGBF''@/$(GL_GNULIB_ILOGBF)/g' \
2558 + -e 's/@''GNULIB_ILOGBL''@/$(GL_GNULIB_ILOGBL)/g' \
2559 + -e 's/@''GNULIB_ISFINITE''@/$(GL_GNULIB_ISFINITE)/g' \
2560 + -e 's/@''GNULIB_ISINF''@/$(GL_GNULIB_ISINF)/g' \
2561 + -e 's/@''GNULIB_ISNAN''@/$(GL_GNULIB_ISNAN)/g' \
2562 + -e 's/@''GNULIB_ISNANF''@/$(GL_GNULIB_ISNANF)/g' \
2563 + -e 's/@''GNULIB_ISNAND''@/$(GL_GNULIB_ISNAND)/g' \
2564 + -e 's/@''GNULIB_ISNANL''@/$(GL_GNULIB_ISNANL)/g' \
2565 + -e 's/@''GNULIB_LDEXPF''@/$(GL_GNULIB_LDEXPF)/g' \
2566 + -e 's/@''GNULIB_LDEXPL''@/$(GL_GNULIB_LDEXPL)/g' \
2567 + -e 's/@''GNULIB_LOG''@/$(GL_GNULIB_LOG)/g' \
2568 + -e 's/@''GNULIB_LOGF''@/$(GL_GNULIB_LOGF)/g' \
2569 + -e 's/@''GNULIB_LOGL''@/$(GL_GNULIB_LOGL)/g' \
2570 + -e 's/@''GNULIB_LOG10''@/$(GL_GNULIB_LOG10)/g' \
2571 + -e 's/@''GNULIB_LOG10F''@/$(GL_GNULIB_LOG10F)/g' \
2572 + -e 's/@''GNULIB_LOG10L''@/$(GL_GNULIB_LOG10L)/g' \
2573 + -e 's/@''GNULIB_LOG1P''@/$(GL_GNULIB_LOG1P)/g' \
2574 + -e 's/@''GNULIB_LOG1PF''@/$(GL_GNULIB_LOG1PF)/g' \
2575 + -e 's/@''GNULIB_LOG1PL''@/$(GL_GNULIB_LOG1PL)/g' \
2576 + -e 's/@''GNULIB_LOG2''@/$(GL_GNULIB_LOG2)/g' \
2577 + -e 's/@''GNULIB_LOG2F''@/$(GL_GNULIB_LOG2F)/g' \
2578 + -e 's/@''GNULIB_LOG2L''@/$(GL_GNULIB_LOG2L)/g' \
2579 + -e 's/@''GNULIB_LOGB''@/$(GL_GNULIB_LOGB)/g' \
2580 + -e 's/@''GNULIB_LOGBF''@/$(GL_GNULIB_LOGBF)/g' \
2581 + -e 's/@''GNULIB_LOGBL''@/$(GL_GNULIB_LOGBL)/g' \
2582 + -e 's/@''GNULIB_MODF''@/$(GL_GNULIB_MODF)/g' \
2583 + -e 's/@''GNULIB_MODFF''@/$(GL_GNULIB_MODFF)/g' \
2584 + -e 's/@''GNULIB_MODFL''@/$(GL_GNULIB_MODFL)/g' \
2585 + -e 's/@''GNULIB_POWF''@/$(GL_GNULIB_POWF)/g' \
2586 + -e 's/@''GNULIB_REMAINDER''@/$(GL_GNULIB_REMAINDER)/g' \
2587 + -e 's/@''GNULIB_REMAINDERF''@/$(GL_GNULIB_REMAINDERF)/g' \
2588 + -e 's/@''GNULIB_REMAINDERL''@/$(GL_GNULIB_REMAINDERL)/g' \
2589 + -e 's/@''GNULIB_RINT''@/$(GL_GNULIB_RINT)/g' \
2590 + -e 's/@''GNULIB_RINTF''@/$(GL_GNULIB_RINTF)/g' \
2591 + -e 's/@''GNULIB_RINTL''@/$(GL_GNULIB_RINTL)/g' \
2592 + -e 's/@''GNULIB_ROUND''@/$(GL_GNULIB_ROUND)/g' \
2593 + -e 's/@''GNULIB_ROUNDF''@/$(GL_GNULIB_ROUNDF)/g' \
2594 + -e 's/@''GNULIB_ROUNDL''@/$(GL_GNULIB_ROUNDL)/g' \
2595 + -e 's/@''GNULIB_SIGNBIT''@/$(GL_GNULIB_SIGNBIT)/g' \
2596 + -e 's/@''GNULIB_SINF''@/$(GL_GNULIB_SINF)/g' \
2597 + -e 's/@''GNULIB_SINL''@/$(GL_GNULIB_SINL)/g' \
2598 + -e 's/@''GNULIB_SINHF''@/$(GL_GNULIB_SINHF)/g' \
2599 + -e 's/@''GNULIB_SQRTF''@/$(GL_GNULIB_SQRTF)/g' \
2600 + -e 's/@''GNULIB_SQRTL''@/$(GL_GNULIB_SQRTL)/g' \
2601 + -e 's/@''GNULIB_TANF''@/$(GL_GNULIB_TANF)/g' \
2602 + -e 's/@''GNULIB_TANL''@/$(GL_GNULIB_TANL)/g' \
2603 + -e 's/@''GNULIB_TANHF''@/$(GL_GNULIB_TANHF)/g' \
2604 + -e 's/@''GNULIB_TRUNC''@/$(GL_GNULIB_TRUNC)/g' \
2605 + -e 's/@''GNULIB_TRUNCF''@/$(GL_GNULIB_TRUNCF)/g' \
2606 + -e 's/@''GNULIB_TRUNCL''@/$(GL_GNULIB_TRUNCL)/g' \
2607 + -e 's/@''GNULIB_MDA_J0''@/$(GL_GNULIB_MDA_J0)/g' \
2608 + -e 's/@''GNULIB_MDA_J1''@/$(GL_GNULIB_MDA_J1)/g' \
2609 + -e 's/@''GNULIB_MDA_JN''@/$(GL_GNULIB_MDA_JN)/g' \
2610 + -e 's/@''GNULIB_MDA_Y0''@/$(GL_GNULIB_MDA_Y0)/g' \
2611 + -e 's/@''GNULIB_MDA_Y1''@/$(GL_GNULIB_MDA_Y1)/g' \
2612 + -e 's/@''GNULIB_MDA_YN''@/$(GL_GNULIB_MDA_YN)/g' \
2613 | \
2614 sed -e 's|@''HAVE_ACOSF''@|$(HAVE_ACOSF)|g' \
2615 -e 's|@''HAVE_ACOSL''@|$(HAVE_ACOSL)|g' \
2616 @@ -1045,7 +1124,7 @@ math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
2617 -e 's|@''REPLACE_ROUNDF''@|$(REPLACE_ROUNDF)|g' \
2618 -e 's|@''REPLACE_ROUNDL''@|$(REPLACE_ROUNDL)|g' \
2619 -e 's|@''REPLACE_SIGNBIT''@|$(REPLACE_SIGNBIT)|g' \
2620 - -e 's|@''REPLACE_SIGNBIT_USING_GCC''@|$(REPLACE_SIGNBIT_USING_GCC)|g' \
2621 + -e 's|@''REPLACE_SIGNBIT_USING_BUILTINS''@|$(REPLACE_SIGNBIT_USING_BUILTINS)|g' \
2622 -e 's|@''REPLACE_SINF''@|$(REPLACE_SINF)|g' \
2623 -e 's|@''REPLACE_SINHF''@|$(REPLACE_SINHF)|g' \
2624 -e 's|@''REPLACE_SQRTF''@|$(REPLACE_SQRTF)|g' \
2625 @@ -1057,9 +1136,9 @@ math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
2626 -e 's|@''REPLACE_TRUNCL''@|$(REPLACE_TRUNCL)|g' \
2627 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
2628 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
2629 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
2630 - } > $@-t && \
2631 - mv $@-t $@
2632 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
2633 + > $@-t
2634 + $(AM_V_at)mv $@-t $@
2635 MOSTLYCLEANFILES += math.h math.h-t
2636
2637 EXTRA_DIST += math.in.h
2638 @@ -1068,82 +1147,89 @@ EXTRA_DIST += math.in.h
2639
2640 ## begin gnulib module memchr
2641
2642 +if GL_COND_OBJ_MEMCHR
2643 +libgnu_a_SOURCES += memchr.c
2644 +endif
2645
2646 -EXTRA_DIST += memchr.c memchr.valgrind
2647 -
2648 -EXTRA_libgnu_a_SOURCES += memchr.c
2649 +EXTRA_DIST += memchr.valgrind
2650
2651 ## end gnulib module memchr
2652
2653 ## begin gnulib module mempcpy
2654
2655 -
2656 -EXTRA_DIST += mempcpy.c
2657 -
2658 -EXTRA_libgnu_a_SOURCES += mempcpy.c
2659 +if GL_COND_OBJ_MEMPCPY
2660 +libgnu_a_SOURCES += mempcpy.c
2661 +endif
2662
2663 ## end gnulib module mempcpy
2664
2665 ## begin gnulib module memrchr
2666
2667 -
2668 -EXTRA_DIST += memrchr.c
2669 -
2670 -EXTRA_libgnu_a_SOURCES += memrchr.c
2671 +if GL_COND_OBJ_MEMRCHR
2672 +libgnu_a_SOURCES += memrchr.c
2673 +endif
2674
2675 ## end gnulib module memrchr
2676
2677 -## begin gnulib module mkdir
2678 +## begin gnulib module minmax
2679
2680 +libgnu_a_SOURCES += minmax.h
2681
2682 -EXTRA_DIST += mkdir.c
2683 +## end gnulib module minmax
2684
2685 -EXTRA_libgnu_a_SOURCES += mkdir.c
2686 +## begin gnulib module mkdir
2687 +
2688 +if GL_COND_OBJ_MKDIR
2689 +libgnu_a_SOURCES += mkdir.c
2690 +endif
2691
2692 ## end gnulib module mkdir
2693
2694 ## begin gnulib module mkdirat
2695
2696 +if GL_COND_OBJ_MKDIRAT
2697 +libgnu_a_SOURCES += mkdirat.c
2698 +endif
2699
2700 -EXTRA_DIST += at-func.c mkdirat.c
2701 +EXTRA_DIST += at-func.c
2702
2703 -EXTRA_libgnu_a_SOURCES += at-func.c mkdirat.c
2704 +EXTRA_libgnu_a_SOURCES += at-func.c
2705
2706 ## end gnulib module mkdirat
2707
2708 ## begin gnulib module msvc-inval
2709
2710 +if GL_COND_OBJ_MSVC_INVAL
2711 +libgnu_a_SOURCES += msvc-inval.c
2712 +endif
2713
2714 -EXTRA_DIST += msvc-inval.c msvc-inval.h
2715 -
2716 -EXTRA_libgnu_a_SOURCES += msvc-inval.c
2717 +EXTRA_DIST += msvc-inval.h
2718
2719 ## end gnulib module msvc-inval
2720
2721 ## begin gnulib module msvc-nothrow
2722
2723 +if GL_COND_OBJ_MSVC_NOTHROW
2724 +libgnu_a_SOURCES += msvc-nothrow.c
2725 +endif
2726
2727 -EXTRA_DIST += msvc-nothrow.c msvc-nothrow.h
2728 -
2729 -EXTRA_libgnu_a_SOURCES += msvc-nothrow.c
2730 +EXTRA_DIST += msvc-nothrow.h
2731
2732 ## end gnulib module msvc-nothrow
2733
2734 ## begin gnulib module open
2735
2736 -
2737 -EXTRA_DIST += open.c
2738 -
2739 -EXTRA_libgnu_a_SOURCES += open.c
2740 +if GL_COND_OBJ_OPEN
2741 +libgnu_a_SOURCES += open.c
2742 +endif
2743
2744 ## end gnulib module open
2745
2746 ## begin gnulib module openat
2747
2748 -
2749 -EXTRA_DIST += openat.c
2750 -
2751 -EXTRA_libgnu_a_SOURCES += openat.c
2752 +if GL_COND_OBJ_OPENAT
2753 +libgnu_a_SOURCES += openat.c
2754 +endif
2755
2756 ## end gnulib module openat
2757
2758 @@ -1162,10 +1248,11 @@ EXTRA_DIST += openat.h
2759
2760 ## begin gnulib module opendir
2761
2762 +if GL_COND_OBJ_OPENDIR
2763 +libgnu_a_SOURCES += opendir.c
2764 +endif
2765
2766 -EXTRA_DIST += dirent-private.h opendir.c
2767 -
2768 -EXTRA_libgnu_a_SOURCES += opendir.c
2769 +EXTRA_DIST += dirent-private.h
2770
2771 ## end gnulib module opendir
2772
2773 @@ -1176,6 +1263,14 @@ EXTRA_DIST += pathmax.h
2774
2775 ## end gnulib module pathmax
2776
2777 +## begin gnulib module pipe-posix
2778 +
2779 +if GL_COND_OBJ_PIPE
2780 +libgnu_a_SOURCES += pipe.c
2781 +endif
2782 +
2783 +## end gnulib module pipe-posix
2784 +
2785 ## begin gnulib module printf-frexp
2786
2787 libgnu_a_SOURCES += printf-frexp.c
2788 @@ -1194,24 +1289,45 @@ EXTRA_libgnu_a_SOURCES += printf-frexp.c
2789
2790 ## end gnulib module printf-frexpl
2791
2792 -## begin gnulib module readlink
2793 +## begin gnulib module rawmemchr
2794 +
2795 +if GL_COND_OBJ_RAWMEMCHR
2796 +libgnu_a_SOURCES += rawmemchr.c
2797 +endif
2798 +
2799 +EXTRA_DIST += rawmemchr.valgrind
2800
2801 +## end gnulib module rawmemchr
2802
2803 -EXTRA_DIST += readlink.c
2804 +## begin gnulib module readlink
2805
2806 -EXTRA_libgnu_a_SOURCES += readlink.c
2807 +if GL_COND_OBJ_READLINK
2808 +libgnu_a_SOURCES += readlink.c
2809 +endif
2810
2811 ## end gnulib module readlink
2812
2813 ## begin gnulib module readlinkat
2814
2815 +if GL_COND_OBJ_READLINKAT
2816 +libgnu_a_SOURCES += readlinkat.c
2817 +endif
2818
2819 -EXTRA_DIST += at-func.c readlinkat.c
2820 +EXTRA_DIST += at-func.c
2821
2822 -EXTRA_libgnu_a_SOURCES += at-func.c readlinkat.c
2823 +EXTRA_libgnu_a_SOURCES += at-func.c
2824
2825 ## end gnulib module readlinkat
2826
2827 +## begin gnulib module realloc-gnu
2828 +
2829 +
2830 +EXTRA_DIST += realloc.c
2831 +
2832 +EXTRA_libgnu_a_SOURCES += realloc.c
2833 +
2834 +## end gnulib module realloc-gnu
2835 +
2836 ## begin gnulib module realloc-posix
2837
2838
2839 @@ -1221,21 +1337,31 @@ EXTRA_libgnu_a_SOURCES += realloc.c
2840
2841 ## end gnulib module realloc-posix
2842
2843 -## begin gnulib module rename
2844 +## begin gnulib module reallocarray
2845
2846 +if GL_COND_OBJ_REALLOCARRAY
2847 +libgnu_a_SOURCES += reallocarray.c
2848 +endif
2849 +
2850 +## end gnulib module reallocarray
2851
2852 -EXTRA_DIST += rename.c
2853 +## begin gnulib module rename
2854
2855 -EXTRA_libgnu_a_SOURCES += rename.c
2856 +if GL_COND_OBJ_RENAME
2857 +libgnu_a_SOURCES += rename.c
2858 +endif
2859
2860 ## end gnulib module rename
2861
2862 ## begin gnulib module renameat
2863
2864 +if GL_COND_OBJ_RENAMEAT
2865 +libgnu_a_SOURCES += renameat.c
2866 +endif
2867
2868 -EXTRA_DIST += renameat.c
2869 +EXTRA_DIST += at-func2.c
2870
2871 -EXTRA_libgnu_a_SOURCES += renameat.c
2872 +EXTRA_libgnu_a_SOURCES += at-func2.c
2873
2874 ## end gnulib module renameat
2875
2876 @@ -1251,10 +1377,9 @@ EXTRA_libgnu_a_SOURCES += at-func2.c
2877
2878 ## begin gnulib module rmdir
2879
2880 -
2881 -EXTRA_DIST += rmdir.c
2882 -
2883 -EXTRA_libgnu_a_SOURCES += rmdir.c
2884 +if GL_COND_OBJ_RMDIR
2885 +libgnu_a_SOURCES += rmdir.c
2886 +endif
2887
2888 ## end gnulib module rmdir
2889
2890 @@ -1280,12 +1405,34 @@ EXTRA_DIST += save-cwd.h
2891
2892 ## end gnulib module save-cwd
2893
2894 -## begin gnulib module signbit
2895 +## begin gnulib module scratch_buffer
2896
2897 +BUILT_SOURCES += malloc/scratch_buffer.gl.h
2898
2899 -EXTRA_DIST += float+.h signbitd.c signbitf.c signbitl.c
2900 +malloc/scratch_buffer.gl.h: malloc/scratch_buffer.h
2901 + $(AM_V_GEN)$(MKDIR_P) '%reldir%/malloc'
2902 + $(AM_V_at)$(SED_HEADER_STDOUT) \
2903 + -e 's|__always_inline|inline _GL_ATTRIBUTE_ALWAYS_INLINE|g' \
2904 + -e 's|__glibc_likely|_GL_LIKELY|g' \
2905 + -e 's|__glibc_unlikely|_GL_UNLIKELY|g' \
2906 + -e '/libc_hidden_proto/d' \
2907 + $(srcdir)/malloc/scratch_buffer.h > $@-t
2908 + $(AM_V_at)mv $@-t $@
2909 +MOSTLYCLEANFILES += malloc/scratch_buffer.gl.h malloc/scratch_buffer.gl.h-t
2910
2911 -EXTRA_libgnu_a_SOURCES += signbitd.c signbitf.c signbitl.c
2912 +libgnu_a_SOURCES += malloc/scratch_buffer_dupfree.c malloc/scratch_buffer_grow.c malloc/scratch_buffer_grow_preserve.c malloc/scratch_buffer_set_array_size.c
2913 +
2914 +EXTRA_DIST += malloc/scratch_buffer.h scratch_buffer.h
2915 +
2916 +## end gnulib module scratch_buffer
2917 +
2918 +## begin gnulib module signbit
2919 +
2920 +if GL_COND_OBJ_SIGNBIT3
2921 +libgnu_a_SOURCES += signbitf.c signbitd.c signbitl.c
2922 +endif
2923 +
2924 +EXTRA_DIST += float+.h
2925
2926 ## end gnulib module signbit
2927
2928 @@ -1345,10 +1492,13 @@ EXTRA_DIST += warn-on-use.h
2929
2930 ## begin gnulib module stat
2931
2932 +if GL_COND_OBJ_STAT
2933 +libgnu_a_SOURCES += stat.c
2934 +endif
2935
2936 -EXTRA_DIST += stat-w32.c stat-w32.h stat.c
2937 +EXTRA_DIST += stat-w32.c stat-w32.h
2938
2939 -EXTRA_libgnu_a_SOURCES += stat-w32.c stat.c
2940 +EXTRA_libgnu_a_SOURCES += stat-w32.c
2941
2942 ## end gnulib module stat
2943
2944 @@ -1366,6 +1516,26 @@ libgnu_a_SOURCES += statat.c
2945
2946 ## end gnulib module statat
2947
2948 +## begin gnulib module stdalign
2949 +
2950 +BUILT_SOURCES += $(STDALIGN_H)
2951 +
2952 +# We need the following in order to create <stdalign.h> when the system
2953 +# doesn't have one that works.
2954 +if GL_GENERATE_STDALIGN_H
2955 +stdalign.h: stdalign.in.h $(top_builddir)/config.status
2956 + $(gl_V_at)$(SED_HEADER_TO_AT_t) $(srcdir)/stdalign.in.h
2957 + $(AM_V_at)mv $@-t $@
2958 +else
2959 +stdalign.h: $(top_builddir)/config.status
2960 + rm -f $@
2961 +endif
2962 +MOSTLYCLEANFILES += stdalign.h stdalign.h-t
2963 +
2964 +EXTRA_DIST += stdalign.in.h
2965 +
2966 +## end gnulib module stdalign
2967 +
2968 ## begin gnulib module stdbool
2969
2970 BUILT_SOURCES += $(STDBOOL_H)
2971 @@ -1374,11 +1544,10 @@ BUILT_SOURCES += $(STDBOOL_H)
2972 # doesn't have one that works.
2973 if GL_GENERATE_STDBOOL_H
2974 stdbool.h: stdbool.in.h $(top_builddir)/config.status
2975 - $(AM_V_GEN)rm -f $@-t $@ && \
2976 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
2977 - sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
2978 - } > $@-t && \
2979 - mv $@-t $@
2980 + $(gl_V_at)$(SED_HEADER_STDOUT) \
2981 + -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \
2982 + $(srcdir)/stdbool.in.h > $@-t
2983 + $(AM_V_at)mv $@-t $@
2984 else
2985 stdbool.h: $(top_builddir)/config.status
2986 rm -f $@
2987 @@ -1397,9 +1566,8 @@ BUILT_SOURCES += $(STDDEF_H)
2988 # doesn't have one that works with the given compiler.
2989 if GL_GENERATE_STDDEF_H
2990 stddef.h: stddef.in.h $(top_builddir)/config.status
2991 - $(AM_V_GEN)rm -f $@-t $@ && \
2992 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
2993 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
2994 + $(gl_V_at)$(SED_HEADER_STDOUT) \
2995 + -e 's|@''GUARD_PREFIX''@|GL|g' \
2996 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
2997 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
2998 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
2999 @@ -1407,9 +1575,8 @@ stddef.h: stddef.in.h $(top_builddir)/config.status
3000 -e 's|@''HAVE_MAX_ALIGN_T''@|$(HAVE_MAX_ALIGN_T)|g' \
3001 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
3002 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
3003 - < $(srcdir)/stddef.in.h; \
3004 - } > $@-t && \
3005 - mv $@-t $@
3006 + $(srcdir)/stddef.in.h > $@-t
3007 + $(AM_V_at)mv $@-t $@
3008 else
3009 stddef.h: $(top_builddir)/config.status
3010 rm -f $@
3011 @@ -1428,9 +1595,8 @@ BUILT_SOURCES += $(STDINT_H)
3012 # doesn't have one that works with the given compiler.
3013 if GL_GENERATE_STDINT_H
3014 stdint.h: stdint.in.h $(top_builddir)/config.status
3015 - $(AM_V_GEN)rm -f $@-t $@ && \
3016 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
3017 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
3018 + $(gl_V_at)$(SED_HEADER_STDOUT) \
3019 + -e 's|@''GUARD_PREFIX''@|GL|g' \
3020 -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
3021 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
3022 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
3023 @@ -1442,8 +1608,6 @@ stdint.h: stdint.in.h $(top_builddir)/config.status
3024 -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
3025 -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
3026 -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
3027 - -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
3028 - -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
3029 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
3030 -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
3031 -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
3032 @@ -1458,10 +1622,9 @@ stdint.h: stdint.in.h $(top_builddir)/config.status
3033 -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
3034 -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
3035 -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
3036 - -e 's/@''GNULIB_OVERRIDES_WINT_T''@/$(GNULIB_OVERRIDES_WINT_T)/g' \
3037 - < $(srcdir)/stdint.in.h; \
3038 - } > $@-t && \
3039 - mv $@-t $@
3040 + -e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \
3041 + $(srcdir)/stdint.in.h > $@-t
3042 + $(AM_V_at)mv $@-t $@
3043 else
3044 stdint.h: $(top_builddir)/config.status
3045 rm -f $@
3046 @@ -1479,68 +1642,75 @@ BUILT_SOURCES += stdio.h
3047 # We need the following in order to create <stdio.h> when the system
3048 # doesn't have one that works with the given compiler.
3049 stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
3050 - $(AM_V_GEN)rm -f $@-t $@ && \
3051 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
3052 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
3053 + $(gl_V_at)$(SED_HEADER_STDOUT) \
3054 + -e 's|@''GUARD_PREFIX''@|GL|g' \
3055 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
3056 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
3057 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
3058 -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \
3059 - -e 's/@''GNULIB_DPRINTF''@/$(GNULIB_DPRINTF)/g' \
3060 - -e 's/@''GNULIB_FCLOSE''@/$(GNULIB_FCLOSE)/g' \
3061 - -e 's/@''GNULIB_FDOPEN''@/$(GNULIB_FDOPEN)/g' \
3062 - -e 's/@''GNULIB_FFLUSH''@/$(GNULIB_FFLUSH)/g' \
3063 - -e 's/@''GNULIB_FGETC''@/$(GNULIB_FGETC)/g' \
3064 - -e 's/@''GNULIB_FGETS''@/$(GNULIB_FGETS)/g' \
3065 - -e 's/@''GNULIB_FOPEN''@/$(GNULIB_FOPEN)/g' \
3066 - -e 's/@''GNULIB_FPRINTF''@/$(GNULIB_FPRINTF)/g' \
3067 - -e 's/@''GNULIB_FPRINTF_POSIX''@/$(GNULIB_FPRINTF_POSIX)/g' \
3068 - -e 's/@''GNULIB_FPURGE''@/$(GNULIB_FPURGE)/g' \
3069 - -e 's/@''GNULIB_FPUTC''@/$(GNULIB_FPUTC)/g' \
3070 - -e 's/@''GNULIB_FPUTS''@/$(GNULIB_FPUTS)/g' \
3071 - -e 's/@''GNULIB_FREAD''@/$(GNULIB_FREAD)/g' \
3072 - -e 's/@''GNULIB_FREOPEN''@/$(GNULIB_FREOPEN)/g' \
3073 - -e 's/@''GNULIB_FSCANF''@/$(GNULIB_FSCANF)/g' \
3074 - -e 's/@''GNULIB_FSEEK''@/$(GNULIB_FSEEK)/g' \
3075 - -e 's/@''GNULIB_FSEEKO''@/$(GNULIB_FSEEKO)/g' \
3076 - -e 's/@''GNULIB_FTELL''@/$(GNULIB_FTELL)/g' \
3077 - -e 's/@''GNULIB_FTELLO''@/$(GNULIB_FTELLO)/g' \
3078 - -e 's/@''GNULIB_FWRITE''@/$(GNULIB_FWRITE)/g' \
3079 - -e 's/@''GNULIB_GETC''@/$(GNULIB_GETC)/g' \
3080 - -e 's/@''GNULIB_GETCHAR''@/$(GNULIB_GETCHAR)/g' \
3081 - -e 's/@''GNULIB_GETDELIM''@/$(GNULIB_GETDELIM)/g' \
3082 - -e 's/@''GNULIB_GETLINE''@/$(GNULIB_GETLINE)/g' \
3083 - -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GNULIB_OBSTACK_PRINTF)/g' \
3084 - -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GNULIB_OBSTACK_PRINTF_POSIX)/g' \
3085 - -e 's/@''GNULIB_PCLOSE''@/$(GNULIB_PCLOSE)/g' \
3086 - -e 's/@''GNULIB_PERROR''@/$(GNULIB_PERROR)/g' \
3087 - -e 's/@''GNULIB_POPEN''@/$(GNULIB_POPEN)/g' \
3088 - -e 's/@''GNULIB_PRINTF''@/$(GNULIB_PRINTF)/g' \
3089 - -e 's/@''GNULIB_PRINTF_POSIX''@/$(GNULIB_PRINTF_POSIX)/g' \
3090 - -e 's/@''GNULIB_PUTC''@/$(GNULIB_PUTC)/g' \
3091 - -e 's/@''GNULIB_PUTCHAR''@/$(GNULIB_PUTCHAR)/g' \
3092 - -e 's/@''GNULIB_PUTS''@/$(GNULIB_PUTS)/g' \
3093 - -e 's/@''GNULIB_REMOVE''@/$(GNULIB_REMOVE)/g' \
3094 - -e 's/@''GNULIB_RENAME''@/$(GNULIB_RENAME)/g' \
3095 - -e 's/@''GNULIB_RENAMEAT''@/$(GNULIB_RENAMEAT)/g' \
3096 - -e 's/@''GNULIB_SCANF''@/$(GNULIB_SCANF)/g' \
3097 - -e 's/@''GNULIB_SNPRINTF''@/$(GNULIB_SNPRINTF)/g' \
3098 - -e 's/@''GNULIB_SPRINTF_POSIX''@/$(GNULIB_SPRINTF_POSIX)/g' \
3099 - -e 's/@''GNULIB_STDIO_H_NONBLOCKING''@/$(GNULIB_STDIO_H_NONBLOCKING)/g' \
3100 - -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/$(GNULIB_STDIO_H_SIGPIPE)/g' \
3101 - -e 's/@''GNULIB_TMPFILE''@/$(GNULIB_TMPFILE)/g' \
3102 - -e 's/@''GNULIB_VASPRINTF''@/$(GNULIB_VASPRINTF)/g' \
3103 - -e 's/@''GNULIB_VDPRINTF''@/$(GNULIB_VDPRINTF)/g' \
3104 - -e 's/@''GNULIB_VFPRINTF''@/$(GNULIB_VFPRINTF)/g' \
3105 - -e 's/@''GNULIB_VFPRINTF_POSIX''@/$(GNULIB_VFPRINTF_POSIX)/g' \
3106 - -e 's/@''GNULIB_VFSCANF''@/$(GNULIB_VFSCANF)/g' \
3107 - -e 's/@''GNULIB_VSCANF''@/$(GNULIB_VSCANF)/g' \
3108 - -e 's/@''GNULIB_VPRINTF''@/$(GNULIB_VPRINTF)/g' \
3109 - -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GNULIB_VPRINTF_POSIX)/g' \
3110 - -e 's/@''GNULIB_VSNPRINTF''@/$(GNULIB_VSNPRINTF)/g' \
3111 - -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GNULIB_VSPRINTF_POSIX)/g' \
3112 + -e 's/@''GNULIB_DPRINTF''@/$(GL_GNULIB_DPRINTF)/g' \
3113 + -e 's/@''GNULIB_FCLOSE''@/$(GL_GNULIB_FCLOSE)/g' \
3114 + -e 's/@''GNULIB_FDOPEN''@/$(GL_GNULIB_FDOPEN)/g' \
3115 + -e 's/@''GNULIB_FFLUSH''@/$(GL_GNULIB_FFLUSH)/g' \
3116 + -e 's/@''GNULIB_FGETC''@/$(GL_GNULIB_FGETC)/g' \
3117 + -e 's/@''GNULIB_FGETS''@/$(GL_GNULIB_FGETS)/g' \
3118 + -e 's/@''GNULIB_FOPEN''@/$(GL_GNULIB_FOPEN)/g' \
3119 + -e 's/@''GNULIB_FOPEN_GNU''@/$(GL_GNULIB_FOPEN_GNU)/g' \
3120 + -e 's/@''GNULIB_FPRINTF''@/$(GL_GNULIB_FPRINTF)/g' \
3121 + -e 's/@''GNULIB_FPRINTF_POSIX''@/$(GL_GNULIB_FPRINTF_POSIX)/g' \
3122 + -e 's/@''GNULIB_FPURGE''@/$(GL_GNULIB_FPURGE)/g' \
3123 + -e 's/@''GNULIB_FPUTC''@/$(GL_GNULIB_FPUTC)/g' \
3124 + -e 's/@''GNULIB_FPUTS''@/$(GL_GNULIB_FPUTS)/g' \
3125 + -e 's/@''GNULIB_FREAD''@/$(GL_GNULIB_FREAD)/g' \
3126 + -e 's/@''GNULIB_FREOPEN''@/$(GL_GNULIB_FREOPEN)/g' \
3127 + -e 's/@''GNULIB_FSCANF''@/$(GL_GNULIB_FSCANF)/g' \
3128 + -e 's/@''GNULIB_FSEEK''@/$(GL_GNULIB_FSEEK)/g' \
3129 + -e 's/@''GNULIB_FSEEKO''@/$(GL_GNULIB_FSEEKO)/g' \
3130 + -e 's/@''GNULIB_FTELL''@/$(GL_GNULIB_FTELL)/g' \
3131 + -e 's/@''GNULIB_FTELLO''@/$(GL_GNULIB_FTELLO)/g' \
3132 + -e 's/@''GNULIB_FWRITE''@/$(GL_GNULIB_FWRITE)/g' \
3133 + -e 's/@''GNULIB_GETC''@/$(GL_GNULIB_GETC)/g' \
3134 + -e 's/@''GNULIB_GETCHAR''@/$(GL_GNULIB_GETCHAR)/g' \
3135 + -e 's/@''GNULIB_GETDELIM''@/$(GL_GNULIB_GETDELIM)/g' \
3136 + -e 's/@''GNULIB_GETLINE''@/$(GL_GNULIB_GETLINE)/g' \
3137 + -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GL_GNULIB_OBSTACK_PRINTF)/g' \
3138 + -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GL_GNULIB_OBSTACK_PRINTF_POSIX)/g' \
3139 + -e 's/@''GNULIB_PCLOSE''@/$(GL_GNULIB_PCLOSE)/g' \
3140 + -e 's/@''GNULIB_PERROR''@/$(GL_GNULIB_PERROR)/g' \
3141 + -e 's/@''GNULIB_POPEN''@/$(GL_GNULIB_POPEN)/g' \
3142 + -e 's/@''GNULIB_PRINTF''@/$(GL_GNULIB_PRINTF)/g' \
3143 + -e 's/@''GNULIB_PRINTF_POSIX''@/$(GL_GNULIB_PRINTF_POSIX)/g' \
3144 + -e 's/@''GNULIB_PUTC''@/$(GL_GNULIB_PUTC)/g' \
3145 + -e 's/@''GNULIB_PUTCHAR''@/$(GL_GNULIB_PUTCHAR)/g' \
3146 + -e 's/@''GNULIB_PUTS''@/$(GL_GNULIB_PUTS)/g' \
3147 + -e 's/@''GNULIB_REMOVE''@/$(GL_GNULIB_REMOVE)/g' \
3148 + -e 's/@''GNULIB_RENAME''@/$(GL_GNULIB_RENAME)/g' \
3149 + -e 's/@''GNULIB_RENAMEAT''@/$(GL_GNULIB_RENAMEAT)/g' \
3150 + -e 's/@''GNULIB_SCANF''@/$(GL_GNULIB_SCANF)/g' \
3151 + -e 's/@''GNULIB_SNPRINTF''@/$(GL_GNULIB_SNPRINTF)/g' \
3152 + -e 's/@''GNULIB_SPRINTF_POSIX''@/$(GL_GNULIB_SPRINTF_POSIX)/g' \
3153 + -e 's/@''GNULIB_STDIO_H_NONBLOCKING''@/$(GL_GNULIB_STDIO_H_NONBLOCKING)/g' \
3154 + -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/$(GL_GNULIB_STDIO_H_SIGPIPE)/g' \
3155 + -e 's/@''GNULIB_TMPFILE''@/$(GL_GNULIB_TMPFILE)/g' \
3156 + -e 's/@''GNULIB_VASPRINTF''@/$(GL_GNULIB_VASPRINTF)/g' \
3157 + -e 's/@''GNULIB_VDPRINTF''@/$(GL_GNULIB_VDPRINTF)/g' \
3158 + -e 's/@''GNULIB_VFPRINTF''@/$(GL_GNULIB_VFPRINTF)/g' \
3159 + -e 's/@''GNULIB_VFPRINTF_POSIX''@/$(GL_GNULIB_VFPRINTF_POSIX)/g' \
3160 + -e 's/@''GNULIB_VFSCANF''@/$(GL_GNULIB_VFSCANF)/g' \
3161 + -e 's/@''GNULIB_VSCANF''@/$(GL_GNULIB_VSCANF)/g' \
3162 + -e 's/@''GNULIB_VPRINTF''@/$(GL_GNULIB_VPRINTF)/g' \
3163 + -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GL_GNULIB_VPRINTF_POSIX)/g' \
3164 + -e 's/@''GNULIB_VSNPRINTF''@/$(GL_GNULIB_VSNPRINTF)/g' \
3165 + -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GL_GNULIB_VSPRINTF_POSIX)/g' \
3166 + -e 's/@''GNULIB_MDA_FCLOSEALL''@/$(GL_GNULIB_MDA_FCLOSEALL)/g' \
3167 + -e 's/@''GNULIB_MDA_FDOPEN''@/$(GL_GNULIB_MDA_FDOPEN)/g' \
3168 + -e 's/@''GNULIB_MDA_FILENO''@/$(GL_GNULIB_MDA_FILENO)/g' \
3169 + -e 's/@''GNULIB_MDA_GETW''@/$(GL_GNULIB_MDA_GETW)/g' \
3170 + -e 's/@''GNULIB_MDA_PUTW''@/$(GL_GNULIB_MDA_PUTW)/g' \
3171 + -e 's/@''GNULIB_MDA_TEMPNAM''@/$(GL_GNULIB_MDA_TEMPNAM)/g' \
3172 < $(srcdir)/stdio.in.h | \
3173 - sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
3174 + sed -e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \
3175 + -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
3176 -e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \
3177 -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \
3178 -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
3179 @@ -1561,6 +1731,7 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
3180 -e 's|@''REPLACE_FDOPEN''@|$(REPLACE_FDOPEN)|g' \
3181 -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \
3182 -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \
3183 + -e 's|@''REPLACE_FOPEN_FOR_FOPEN_GNU''@|$(REPLACE_FOPEN_FOR_FOPEN_GNU)|g' \
3184 -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \
3185 -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \
3186 -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \
3187 @@ -1591,11 +1762,18 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
3188 -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \
3189 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
3190 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
3191 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
3192 - } > $@-t && \
3193 - mv $@-t $@
3194 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
3195 + > $@-t
3196 + $(AM_V_at)mv $@-t $@
3197 MOSTLYCLEANFILES += stdio.h stdio.h-t
3198
3199 +if GL_COND_OBJ_STDIO_READ
3200 +libgnu_a_SOURCES += stdio-read.c
3201 +endif
3202 +if GL_COND_OBJ_STDIO_WRITE
3203 +libgnu_a_SOURCES += stdio-write.c
3204 +endif
3205 +
3206 EXTRA_DIST += stdio.in.h
3207
3208 ## end gnulib module stdio
3209 @@ -1608,52 +1786,68 @@ BUILT_SOURCES += stdlib.h
3210 # doesn't have one that works with the given compiler.
3211 stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
3212 $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
3213 - $(AM_V_GEN)rm -f $@-t $@ && \
3214 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
3215 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
3216 + $(gl_V_at)$(SED_HEADER_STDOUT) \
3217 + -e 's|@''GUARD_PREFIX''@|GL|g' \
3218 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
3219 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
3220 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
3221 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
3222 - -e 's/@''GNULIB__EXIT''@/$(GNULIB__EXIT)/g' \
3223 - -e 's/@''GNULIB_ATOLL''@/$(GNULIB_ATOLL)/g' \
3224 - -e 's/@''GNULIB_CALLOC_POSIX''@/$(GNULIB_CALLOC_POSIX)/g' \
3225 - -e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GNULIB_CANONICALIZE_FILE_NAME)/g' \
3226 - -e 's/@''GNULIB_GETLOADAVG''@/$(GNULIB_GETLOADAVG)/g' \
3227 - -e 's/@''GNULIB_GETSUBOPT''@/$(GNULIB_GETSUBOPT)/g' \
3228 - -e 's/@''GNULIB_GRANTPT''@/$(GNULIB_GRANTPT)/g' \
3229 - -e 's/@''GNULIB_MALLOC_POSIX''@/$(GNULIB_MALLOC_POSIX)/g' \
3230 - -e 's/@''GNULIB_MBTOWC''@/$(GNULIB_MBTOWC)/g' \
3231 - -e 's/@''GNULIB_MKDTEMP''@/$(GNULIB_MKDTEMP)/g' \
3232 - -e 's/@''GNULIB_MKOSTEMP''@/$(GNULIB_MKOSTEMP)/g' \
3233 - -e 's/@''GNULIB_MKOSTEMPS''@/$(GNULIB_MKOSTEMPS)/g' \
3234 - -e 's/@''GNULIB_MKSTEMP''@/$(GNULIB_MKSTEMP)/g' \
3235 - -e 's/@''GNULIB_MKSTEMPS''@/$(GNULIB_MKSTEMPS)/g' \
3236 - -e 's/@''GNULIB_POSIX_OPENPT''@/$(GNULIB_POSIX_OPENPT)/g' \
3237 - -e 's/@''GNULIB_PTSNAME''@/$(GNULIB_PTSNAME)/g' \
3238 - -e 's/@''GNULIB_PTSNAME_R''@/$(GNULIB_PTSNAME_R)/g' \
3239 - -e 's/@''GNULIB_PUTENV''@/$(GNULIB_PUTENV)/g' \
3240 - -e 's/@''GNULIB_QSORT_R''@/$(GNULIB_QSORT_R)/g' \
3241 - -e 's/@''GNULIB_RANDOM''@/$(GNULIB_RANDOM)/g' \
3242 - -e 's/@''GNULIB_RANDOM_R''@/$(GNULIB_RANDOM_R)/g' \
3243 - -e 's/@''GNULIB_REALLOC_POSIX''@/$(GNULIB_REALLOC_POSIX)/g' \
3244 - -e 's/@''GNULIB_REALLOCARRAY''@/$(GNULIB_REALLOCARRAY)/g' \
3245 - -e 's/@''GNULIB_REALPATH''@/$(GNULIB_REALPATH)/g' \
3246 - -e 's/@''GNULIB_RPMATCH''@/$(GNULIB_RPMATCH)/g' \
3247 - -e 's/@''GNULIB_SECURE_GETENV''@/$(GNULIB_SECURE_GETENV)/g' \
3248 - -e 's/@''GNULIB_SETENV''@/$(GNULIB_SETENV)/g' \
3249 - -e 's/@''GNULIB_STRTOD''@/$(GNULIB_STRTOD)/g' \
3250 - -e 's/@''GNULIB_STRTOLD''@/$(GNULIB_STRTOLD)/g' \
3251 - -e 's/@''GNULIB_STRTOLL''@/$(GNULIB_STRTOLL)/g' \
3252 - -e 's/@''GNULIB_STRTOULL''@/$(GNULIB_STRTOULL)/g' \
3253 - -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GNULIB_SYSTEM_POSIX)/g' \
3254 - -e 's/@''GNULIB_UNLOCKPT''@/$(GNULIB_UNLOCKPT)/g' \
3255 - -e 's/@''GNULIB_UNSETENV''@/$(GNULIB_UNSETENV)/g' \
3256 - -e 's/@''GNULIB_WCTOMB''@/$(GNULIB_WCTOMB)/g' \
3257 + -e 's/@''GNULIB__EXIT''@/$(GL_GNULIB__EXIT)/g' \
3258 + -e 's/@''GNULIB_ALIGNED_ALLOC''@/$(GL_GNULIB_ALIGNED_ALLOC)/g' \
3259 + -e 's/@''GNULIB_ATOLL''@/$(GL_GNULIB_ATOLL)/g' \
3260 + -e 's/@''GNULIB_CALLOC_GNU''@/$(GL_GNULIB_CALLOC_GNU)/g' \
3261 + -e 's/@''GNULIB_CALLOC_POSIX''@/$(GL_GNULIB_CALLOC_POSIX)/g' \
3262 + -e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GL_GNULIB_CANONICALIZE_FILE_NAME)/g' \
3263 + -e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
3264 + -e 's/@''GNULIB_GETLOADAVG''@/$(GL_GNULIB_GETLOADAVG)/g' \
3265 + -e 's/@''GNULIB_GETSUBOPT''@/$(GL_GNULIB_GETSUBOPT)/g' \
3266 + -e 's/@''GNULIB_GRANTPT''@/$(GL_GNULIB_GRANTPT)/g' \
3267 + -e 's/@''GNULIB_MALLOC_GNU''@/$(GL_GNULIB_MALLOC_GNU)/g' \
3268 + -e 's/@''GNULIB_MALLOC_POSIX''@/$(GL_GNULIB_MALLOC_POSIX)/g' \
3269 + -e 's/@''GNULIB_MBTOWC''@/$(GL_GNULIB_MBTOWC)/g' \
3270 + -e 's/@''GNULIB_MKDTEMP''@/$(GL_GNULIB_MKDTEMP)/g' \
3271 + -e 's/@''GNULIB_MKOSTEMP''@/$(GL_GNULIB_MKOSTEMP)/g' \
3272 + -e 's/@''GNULIB_MKOSTEMPS''@/$(GL_GNULIB_MKOSTEMPS)/g' \
3273 + -e 's/@''GNULIB_MKSTEMP''@/$(GL_GNULIB_MKSTEMP)/g' \
3274 + -e 's/@''GNULIB_MKSTEMPS''@/$(GL_GNULIB_MKSTEMPS)/g' \
3275 + -e 's/@''GNULIB_POSIX_MEMALIGN''@/$(GL_GNULIB_POSIX_MEMALIGN)/g' \
3276 + -e 's/@''GNULIB_POSIX_OPENPT''@/$(GL_GNULIB_POSIX_OPENPT)/g' \
3277 + -e 's/@''GNULIB_PTSNAME''@/$(GL_GNULIB_PTSNAME)/g' \
3278 + -e 's/@''GNULIB_PTSNAME_R''@/$(GL_GNULIB_PTSNAME_R)/g' \
3279 + -e 's/@''GNULIB_PUTENV''@/$(GL_GNULIB_PUTENV)/g' \
3280 + -e 's/@''GNULIB_QSORT_R''@/$(GL_GNULIB_QSORT_R)/g' \
3281 + -e 's/@''GNULIB_RANDOM''@/$(GL_GNULIB_RANDOM)/g' \
3282 + -e 's/@''GNULIB_RANDOM_R''@/$(GL_GNULIB_RANDOM_R)/g' \
3283 + -e 's/@''GNULIB_REALLOC_GNU''@/$(GL_GNULIB_REALLOC_GNU)/g' \
3284 + -e 's/@''GNULIB_REALLOC_POSIX''@/$(GL_GNULIB_REALLOC_POSIX)/g' \
3285 + -e 's/@''GNULIB_REALLOCARRAY''@/$(GL_GNULIB_REALLOCARRAY)/g' \
3286 + -e 's/@''GNULIB_REALPATH''@/$(GL_GNULIB_REALPATH)/g' \
3287 + -e 's/@''GNULIB_RPMATCH''@/$(GL_GNULIB_RPMATCH)/g' \
3288 + -e 's/@''GNULIB_SECURE_GETENV''@/$(GL_GNULIB_SECURE_GETENV)/g' \
3289 + -e 's/@''GNULIB_SETENV''@/$(GL_GNULIB_SETENV)/g' \
3290 + -e 's/@''GNULIB_STRTOD''@/$(GL_GNULIB_STRTOD)/g' \
3291 + -e 's/@''GNULIB_STRTOL''@/$(GL_GNULIB_STRTOL)/g' \
3292 + -e 's/@''GNULIB_STRTOLD''@/$(GL_GNULIB_STRTOLD)/g' \
3293 + -e 's/@''GNULIB_STRTOLL''@/$(GL_GNULIB_STRTOLL)/g' \
3294 + -e 's/@''GNULIB_STRTOUL''@/$(GL_GNULIB_STRTOUL)/g' \
3295 + -e 's/@''GNULIB_STRTOULL''@/$(GL_GNULIB_STRTOULL)/g' \
3296 + -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GL_GNULIB_SYSTEM_POSIX)/g' \
3297 + -e 's/@''GNULIB_UNLOCKPT''@/$(GL_GNULIB_UNLOCKPT)/g' \
3298 + -e 's/@''GNULIB_UNSETENV''@/$(GL_GNULIB_UNSETENV)/g' \
3299 + -e 's/@''GNULIB_WCTOMB''@/$(GL_GNULIB_WCTOMB)/g' \
3300 + -e 's/@''GNULIB_MDA_ECVT''@/$(GL_GNULIB_MDA_ECVT)/g' \
3301 + -e 's/@''GNULIB_MDA_FCVT''@/$(GL_GNULIB_MDA_FCVT)/g' \
3302 + -e 's/@''GNULIB_MDA_GCVT''@/$(GL_GNULIB_MDA_GCVT)/g' \
3303 + -e 's/@''GNULIB_MDA_MKTEMP''@/$(GL_GNULIB_MDA_MKTEMP)/g' \
3304 + -e 's/@''GNULIB_MDA_PUTENV''@/$(GL_GNULIB_MDA_PUTENV)/g' \
3305 < $(srcdir)/stdlib.in.h | \
3306 sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
3307 + -e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \
3308 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
3309 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
3310 + -e 's|@''HAVE_DECL_ECVT''@|$(HAVE_DECL_ECVT)|g' \
3311 + -e 's|@''HAVE_DECL_FCVT''@|$(HAVE_DECL_FCVT)|g' \
3312 + -e 's|@''HAVE_DECL_GCVT''@|$(HAVE_DECL_GCVT)|g' \
3313 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
3314 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
3315 -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
3316 @@ -1665,6 +1859,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
3317 -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
3318 -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
3319 -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
3320 + -e 's|@''HAVE_POSIX_MEMALIGN''@|$(HAVE_POSIX_MEMALIGN)|g' \
3321 -e 's|@''HAVE_POSIX_OPENPT''@|$(HAVE_POSIX_OPENPT)|g' \
3322 -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
3323 -e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \
3324 @@ -1680,39 +1875,52 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
3325 -e 's|@''HAVE_SETSTATE''@|$(HAVE_SETSTATE)|g' \
3326 -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \
3327 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
3328 + -e 's|@''HAVE_STRTOL''@|$(HAVE_STRTOL)|g' \
3329 -e 's|@''HAVE_STRTOLD''@|$(HAVE_STRTOLD)|g' \
3330 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
3331 + -e 's|@''HAVE_STRTOUL''@|$(HAVE_STRTOUL)|g' \
3332 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
3333 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
3334 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
3335 -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
3336 -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \
3337 - -e 's|@''REPLACE_CALLOC''@|$(REPLACE_CALLOC)|g' \
3338 + -e 's|@''REPLACE_ALIGNED_ALLOC''@|$(REPLACE_ALIGNED_ALLOC)|g' \
3339 + -e 's|@''REPLACE_CALLOC_FOR_CALLOC_GNU''@|$(REPLACE_CALLOC_FOR_CALLOC_GNU)|g' \
3340 + -e 's|@''REPLACE_CALLOC_FOR_CALLOC_POSIX''@|$(REPLACE_CALLOC_FOR_CALLOC_POSIX)|g' \
3341 -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
3342 + -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
3343 -e 's|@''REPLACE_INITSTATE''@|$(REPLACE_INITSTATE)|g' \
3344 - -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \
3345 + -e 's|@''REPLACE_MALLOC_FOR_MALLOC_GNU''@|$(REPLACE_MALLOC_FOR_MALLOC_GNU)|g' \
3346 + -e 's|@''REPLACE_MALLOC_FOR_MALLOC_POSIX''@|$(REPLACE_MALLOC_FOR_MALLOC_POSIX)|g' \
3347 -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \
3348 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
3349 + -e 's|@''REPLACE_POSIX_MEMALIGN''@|$(REPLACE_POSIX_MEMALIGN)|g' \
3350 -e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \
3351 -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \
3352 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
3353 -e 's|@''REPLACE_QSORT_R''@|$(REPLACE_QSORT_R)|g' \
3354 -e 's|@''REPLACE_RANDOM''@|$(REPLACE_RANDOM)|g' \
3355 -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \
3356 - -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \
3357 + -e 's|@''REPLACE_REALLOC_FOR_REALLOC_GNU''@|$(REPLACE_REALLOC_FOR_REALLOC_GNU)|g' \
3358 + -e 's|@''REPLACE_REALLOC_FOR_REALLOC_POSIX''@|$(REPLACE_REALLOC_FOR_REALLOC_POSIX)|g' \
3359 + -e 's|@''REPLACE_REALLOCARRAY''@|$(REPLACE_REALLOCARRAY)|g' \
3360 -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
3361 -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
3362 -e 's|@''REPLACE_SETSTATE''@|$(REPLACE_SETSTATE)|g' \
3363 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
3364 + -e 's|@''REPLACE_STRTOL''@|$(REPLACE_STRTOL)|g' \
3365 -e 's|@''REPLACE_STRTOLD''@|$(REPLACE_STRTOLD)|g' \
3366 + -e 's|@''REPLACE_STRTOLL''@|$(REPLACE_STRTOLL)|g' \
3367 + -e 's|@''REPLACE_STRTOUL''@|$(REPLACE_STRTOUL)|g' \
3368 + -e 's|@''REPLACE_STRTOULL''@|$(REPLACE_STRTOULL)|g' \
3369 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
3370 -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \
3371 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
3372 -e '/definition of _Noreturn/r $(_NORETURN_H)' \
3373 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
3374 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
3375 - } > $@-t && \
3376 - mv $@-t $@
3377 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
3378 + > $@-t
3379 + $(AM_V_at)mv $@-t $@
3380 MOSTLYCLEANFILES += stdlib.h stdlib.h-t
3381
3382 EXTRA_DIST += stdlib.in.h
3383 @@ -1721,10 +1929,12 @@ EXTRA_DIST += stdlib.in.h
3384
3385 ## begin gnulib module strcase
3386
3387 -
3388 -EXTRA_DIST += strcasecmp.c strncasecmp.c
3389 -
3390 -EXTRA_libgnu_a_SOURCES += strcasecmp.c strncasecmp.c
3391 +if GL_COND_OBJ_STRCASECMP
3392 +libgnu_a_SOURCES += strcasecmp.c
3393 +endif
3394 +if GL_COND_OBJ_STRNCASECMP
3395 +libgnu_a_SOURCES += strncasecmp.c
3396 +endif
3397
3398 ## end gnulib module strcase
3399
3400 @@ -1739,28 +1949,27 @@ EXTRA_libgnu_a_SOURCES += strcasestr.c
3401
3402 ## begin gnulib module strdup-posix
3403
3404 -
3405 -EXTRA_DIST += strdup.c
3406 -
3407 -EXTRA_libgnu_a_SOURCES += strdup.c
3408 +if GL_COND_OBJ_STRDUP
3409 +libgnu_a_SOURCES += strdup.c
3410 +endif
3411
3412 ## end gnulib module strdup-posix
3413
3414 ## begin gnulib module strerror
3415
3416 -
3417 -EXTRA_DIST += strerror.c
3418 -
3419 -EXTRA_libgnu_a_SOURCES += strerror.c
3420 +if GL_COND_OBJ_STRERROR
3421 +libgnu_a_SOURCES += strerror.c
3422 +endif
3423
3424 ## end gnulib module strerror
3425
3426 ## begin gnulib module strerror-override
3427
3428 +if GL_COND_OBJ_STRERROR_OVERRIDE
3429 +libgnu_a_SOURCES += strerror-override.c
3430 +endif
3431
3432 -EXTRA_DIST += strerror-override.c strerror-override.h
3433 -
3434 -EXTRA_libgnu_a_SOURCES += strerror-override.c
3435 +EXTRA_DIST += strerror-override.h
3436
3437 ## end gnulib module strerror-override
3438
3439 @@ -1771,57 +1980,61 @@ BUILT_SOURCES += string.h
3440 # We need the following in order to create <string.h> when the system
3441 # doesn't have one that works with the given compiler.
3442 string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
3443 - $(AM_V_GEN)rm -f $@-t $@ && \
3444 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
3445 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
3446 + $(gl_V_at)$(SED_HEADER_STDOUT) \
3447 + -e 's|@''GUARD_PREFIX''@|GL|g' \
3448 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
3449 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
3450 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
3451 -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
3452 - -e 's/@''GNULIB_EXPLICIT_BZERO''@/$(GNULIB_EXPLICIT_BZERO)/g' \
3453 - -e 's/@''GNULIB_FFSL''@/$(GNULIB_FFSL)/g' \
3454 - -e 's/@''GNULIB_FFSLL''@/$(GNULIB_FFSLL)/g' \
3455 - -e 's/@''GNULIB_MBSLEN''@/$(GNULIB_MBSLEN)/g' \
3456 - -e 's/@''GNULIB_MBSNLEN''@/$(GNULIB_MBSNLEN)/g' \
3457 - -e 's/@''GNULIB_MBSCHR''@/$(GNULIB_MBSCHR)/g' \
3458 - -e 's/@''GNULIB_MBSRCHR''@/$(GNULIB_MBSRCHR)/g' \
3459 - -e 's/@''GNULIB_MBSSTR''@/$(GNULIB_MBSSTR)/g' \
3460 - -e 's/@''GNULIB_MBSCASECMP''@/$(GNULIB_MBSCASECMP)/g' \
3461 - -e 's/@''GNULIB_MBSNCASECMP''@/$(GNULIB_MBSNCASECMP)/g' \
3462 - -e 's/@''GNULIB_MBSPCASECMP''@/$(GNULIB_MBSPCASECMP)/g' \
3463 - -e 's/@''GNULIB_MBSCASESTR''@/$(GNULIB_MBSCASESTR)/g' \
3464 - -e 's/@''GNULIB_MBSCSPN''@/$(GNULIB_MBSCSPN)/g' \
3465 - -e 's/@''GNULIB_MBSPBRK''@/$(GNULIB_MBSPBRK)/g' \
3466 - -e 's/@''GNULIB_MBSSPN''@/$(GNULIB_MBSSPN)/g' \
3467 - -e 's/@''GNULIB_MBSSEP''@/$(GNULIB_MBSSEP)/g' \
3468 - -e 's/@''GNULIB_MBSTOK_R''@/$(GNULIB_MBSTOK_R)/g' \
3469 - -e 's/@''GNULIB_MEMCHR''@/$(GNULIB_MEMCHR)/g' \
3470 - -e 's/@''GNULIB_MEMMEM''@/$(GNULIB_MEMMEM)/g' \
3471 - -e 's/@''GNULIB_MEMPCPY''@/$(GNULIB_MEMPCPY)/g' \
3472 - -e 's/@''GNULIB_MEMRCHR''@/$(GNULIB_MEMRCHR)/g' \
3473 - -e 's/@''GNULIB_RAWMEMCHR''@/$(GNULIB_RAWMEMCHR)/g' \
3474 - -e 's/@''GNULIB_STPCPY''@/$(GNULIB_STPCPY)/g' \
3475 - -e 's/@''GNULIB_STPNCPY''@/$(GNULIB_STPNCPY)/g' \
3476 - -e 's/@''GNULIB_STRCHRNUL''@/$(GNULIB_STRCHRNUL)/g' \
3477 - -e 's/@''GNULIB_STRDUP''@/$(GNULIB_STRDUP)/g' \
3478 - -e 's/@''GNULIB_STRNCAT''@/$(GNULIB_STRNCAT)/g' \
3479 - -e 's/@''GNULIB_STRNDUP''@/$(GNULIB_STRNDUP)/g' \
3480 - -e 's/@''GNULIB_STRNLEN''@/$(GNULIB_STRNLEN)/g' \
3481 - -e 's/@''GNULIB_STRPBRK''@/$(GNULIB_STRPBRK)/g' \
3482 - -e 's/@''GNULIB_STRSEP''@/$(GNULIB_STRSEP)/g' \
3483 - -e 's/@''GNULIB_STRSTR''@/$(GNULIB_STRSTR)/g' \
3484 - -e 's/@''GNULIB_STRCASESTR''@/$(GNULIB_STRCASESTR)/g' \
3485 - -e 's/@''GNULIB_STRTOK_R''@/$(GNULIB_STRTOK_R)/g' \
3486 - -e 's/@''GNULIB_STRERROR''@/$(GNULIB_STRERROR)/g' \
3487 - -e 's/@''GNULIB_STRERROR_R''@/$(GNULIB_STRERROR_R)/g' \
3488 - -e 's/@''GNULIB_STRSIGNAL''@/$(GNULIB_STRSIGNAL)/g' \
3489 - -e 's/@''GNULIB_STRVERSCMP''@/$(GNULIB_STRVERSCMP)/g' \
3490 + -e 's/@''GNULIB_EXPLICIT_BZERO''@/$(GL_GNULIB_EXPLICIT_BZERO)/g' \
3491 + -e 's/@''GNULIB_FFSL''@/$(GL_GNULIB_FFSL)/g' \
3492 + -e 's/@''GNULIB_FFSLL''@/$(GL_GNULIB_FFSLL)/g' \
3493 + -e 's/@''GNULIB_MBSLEN''@/$(GL_GNULIB_MBSLEN)/g' \
3494 + -e 's/@''GNULIB_MBSNLEN''@/$(GL_GNULIB_MBSNLEN)/g' \
3495 + -e 's/@''GNULIB_MBSCHR''@/$(GL_GNULIB_MBSCHR)/g' \
3496 + -e 's/@''GNULIB_MBSRCHR''@/$(GL_GNULIB_MBSRCHR)/g' \
3497 + -e 's/@''GNULIB_MBSSTR''@/$(GL_GNULIB_MBSSTR)/g' \
3498 + -e 's/@''GNULIB_MBSCASECMP''@/$(GL_GNULIB_MBSCASECMP)/g' \
3499 + -e 's/@''GNULIB_MBSNCASECMP''@/$(GL_GNULIB_MBSNCASECMP)/g' \
3500 + -e 's/@''GNULIB_MBSPCASECMP''@/$(GL_GNULIB_MBSPCASECMP)/g' \
3501 + -e 's/@''GNULIB_MBSCASESTR''@/$(GL_GNULIB_MBSCASESTR)/g' \
3502 + -e 's/@''GNULIB_MBSCSPN''@/$(GL_GNULIB_MBSCSPN)/g' \
3503 + -e 's/@''GNULIB_MBSPBRK''@/$(GL_GNULIB_MBSPBRK)/g' \
3504 + -e 's/@''GNULIB_MBSSPN''@/$(GL_GNULIB_MBSSPN)/g' \
3505 + -e 's/@''GNULIB_MBSSEP''@/$(GL_GNULIB_MBSSEP)/g' \
3506 + -e 's/@''GNULIB_MBSTOK_R''@/$(GL_GNULIB_MBSTOK_R)/g' \
3507 + -e 's/@''GNULIB_MEMCHR''@/$(GL_GNULIB_MEMCHR)/g' \
3508 + -e 's/@''GNULIB_MEMMEM''@/$(GL_GNULIB_MEMMEM)/g' \
3509 + -e 's/@''GNULIB_MEMPCPY''@/$(GL_GNULIB_MEMPCPY)/g' \
3510 + -e 's/@''GNULIB_MEMRCHR''@/$(GL_GNULIB_MEMRCHR)/g' \
3511 + -e 's/@''GNULIB_RAWMEMCHR''@/$(GL_GNULIB_RAWMEMCHR)/g' \
3512 + -e 's/@''GNULIB_STPCPY''@/$(GL_GNULIB_STPCPY)/g' \
3513 + -e 's/@''GNULIB_STPNCPY''@/$(GL_GNULIB_STPNCPY)/g' \
3514 + -e 's/@''GNULIB_STRCHRNUL''@/$(GL_GNULIB_STRCHRNUL)/g' \
3515 + -e 's/@''GNULIB_STRDUP''@/$(GL_GNULIB_STRDUP)/g' \
3516 + -e 's/@''GNULIB_STRNCAT''@/$(GL_GNULIB_STRNCAT)/g' \
3517 + -e 's/@''GNULIB_STRNDUP''@/$(GL_GNULIB_STRNDUP)/g' \
3518 + -e 's/@''GNULIB_STRNLEN''@/$(GL_GNULIB_STRNLEN)/g' \
3519 + -e 's/@''GNULIB_STRPBRK''@/$(GL_GNULIB_STRPBRK)/g' \
3520 + -e 's/@''GNULIB_STRSEP''@/$(GL_GNULIB_STRSEP)/g' \
3521 + -e 's/@''GNULIB_STRSTR''@/$(GL_GNULIB_STRSTR)/g' \
3522 + -e 's/@''GNULIB_STRCASESTR''@/$(GL_GNULIB_STRCASESTR)/g' \
3523 + -e 's/@''GNULIB_STRTOK_R''@/$(GL_GNULIB_STRTOK_R)/g' \
3524 + -e 's/@''GNULIB_STRERROR''@/$(GL_GNULIB_STRERROR)/g' \
3525 + -e 's/@''GNULIB_STRERROR_R''@/$(GL_GNULIB_STRERROR_R)/g' \
3526 + -e 's/@''GNULIB_STRERRORNAME_NP''@/$(GL_GNULIB_STRERRORNAME_NP)/g' \
3527 + -e 's/@''GNULIB_SIGABBREV_NP''@/$(GL_GNULIB_SIGABBREV_NP)/g' \
3528 + -e 's/@''GNULIB_SIGDESCR_NP''@/$(GL_GNULIB_SIGDESCR_NP)/g' \
3529 + -e 's/@''GNULIB_STRSIGNAL''@/$(GL_GNULIB_STRSIGNAL)/g' \
3530 + -e 's/@''GNULIB_STRVERSCMP''@/$(GL_GNULIB_STRVERSCMP)/g' \
3531 + -e 's/@''GNULIB_MDA_MEMCCPY''@/$(GL_GNULIB_MDA_MEMCCPY)/g' \
3532 + -e 's/@''GNULIB_MDA_STRDUP''@/$(GL_GNULIB_MDA_STRDUP)/g' \
3533 + -e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
3534 < $(srcdir)/string.in.h | \
3535 sed -e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \
3536 -e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \
3537 -e 's|@''HAVE_FFSLL''@|$(HAVE_FFSLL)|g' \
3538 -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
3539 - -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \
3540 -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
3541 -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
3542 -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
3543 @@ -1837,10 +2050,15 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
3544 -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
3545 -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
3546 -e 's|@''HAVE_DECL_STRERROR_R''@|$(HAVE_DECL_STRERROR_R)|g' \
3547 + -e 's|@''HAVE_STRERRORNAME_NP''@|$(HAVE_STRERRORNAME_NP)|g' \
3548 + -e 's|@''HAVE_SIGABBREV_NP''@|$(HAVE_SIGABBREV_NP)|g' \
3549 + -e 's|@''HAVE_SIGDESCR_NP''@|$(HAVE_SIGDESCR_NP)|g' \
3550 -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
3551 -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
3552 + -e 's|@''REPLACE_FFSLL''@|$(REPLACE_FFSLL)|g' \
3553 -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
3554 -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
3555 + -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
3556 -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
3557 -e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \
3558 -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
3559 @@ -1852,14 +2070,14 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
3560 -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
3561 -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
3562 -e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \
3563 + -e 's|@''REPLACE_STRERRORNAME_NP''@|$(REPLACE_STRERRORNAME_NP)|g' \
3564 -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
3565 -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
3566 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
3567 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
3568 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
3569 - < $(srcdir)/string.in.h; \
3570 - } > $@-t && \
3571 - mv $@-t $@
3572 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
3573 + > $@-t
3574 + $(AM_V_at)mv $@-t $@
3575 MOSTLYCLEANFILES += string.h string.h-t
3576
3577 EXTRA_DIST += string.in.h
3578 @@ -1873,24 +2091,22 @@ BUILT_SOURCES += strings.h
3579 # We need the following in order to create <strings.h> when the system
3580 # doesn't have one that works with the given compiler.
3581 strings.h: strings.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
3582 - $(AM_V_GEN)rm -f $@-t $@ && \
3583 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
3584 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
3585 + $(gl_V_at)$(SED_HEADER_STDOUT) \
3586 + -e 's|@''GUARD_PREFIX''@|GL|g' \
3587 -e 's|@''HAVE_STRINGS_H''@|$(HAVE_STRINGS_H)|g' \
3588 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
3589 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
3590 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
3591 -e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
3592 - -e 's/@''GNULIB_FFS''@/$(GNULIB_FFS)/g' \
3593 + -e 's/@''GNULIB_FFS''@/$(GL_GNULIB_FFS)/g' \
3594 -e 's|@''HAVE_FFS''@|$(HAVE_FFS)|g' \
3595 -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
3596 -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
3597 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
3598 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
3599 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
3600 - < $(srcdir)/strings.in.h; \
3601 - } > $@-t && \
3602 - mv $@-t $@
3603 + $(srcdir)/strings.in.h > $@-t
3604 + $(AM_V_at)mv $@-t $@
3605 MOSTLYCLEANFILES += strings.h strings.h-t
3606
3607 EXTRA_DIST += strings.in.h
3608 @@ -1899,28 +2115,29 @@ EXTRA_DIST += strings.in.h
3609
3610 ## begin gnulib module strncat
3611
3612 -
3613 -EXTRA_DIST += strncat.c
3614 -
3615 -EXTRA_libgnu_a_SOURCES += strncat.c
3616 +if GL_COND_OBJ_STRNCAT
3617 +libgnu_a_SOURCES += strncat.c
3618 +endif
3619
3620 ## end gnulib module strncat
3621
3622 ## begin gnulib module symlink
3623
3624 -
3625 -EXTRA_DIST += symlink.c
3626 -
3627 -EXTRA_libgnu_a_SOURCES += symlink.c
3628 +if GL_COND_OBJ_SYMLINK
3629 +libgnu_a_SOURCES += symlink.c
3630 +endif
3631
3632 ## end gnulib module symlink
3633
3634 ## begin gnulib module symlinkat
3635
3636 +if GL_COND_OBJ_SYMLINKAT
3637 +libgnu_a_SOURCES += symlinkat.c
3638 +endif
3639
3640 -EXTRA_DIST += at-func.c symlinkat.c
3641 +EXTRA_DIST += at-func.c
3642
3643 -EXTRA_libgnu_a_SOURCES += at-func.c symlinkat.c
3644 +EXTRA_libgnu_a_SOURCES += at-func.c
3645
3646 ## end gnulib module symlinkat
3647
3648 @@ -1931,33 +2148,38 @@ BUILT_SOURCES += sys/stat.h
3649 # We need the following in order to create <sys/stat.h> when the system
3650 # has one that is incomplete.
3651 sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
3652 - $(AM_V_at)$(MKDIR_P) sys
3653 - $(AM_V_GEN)rm -f $@-t $@ && \
3654 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
3655 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
3656 + $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
3657 + $(AM_V_at)$(SED_HEADER_STDOUT) \
3658 + -e 's|@''GUARD_PREFIX''@|GL|g' \
3659 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
3660 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
3661 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
3662 -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
3663 -e 's|@''WINDOWS_64_BIT_ST_SIZE''@|$(WINDOWS_64_BIT_ST_SIZE)|g' \
3664 -e 's|@''WINDOWS_STAT_TIMESPEC''@|$(WINDOWS_STAT_TIMESPEC)|g' \
3665 - -e 's/@''GNULIB_FCHMODAT''@/$(GNULIB_FCHMODAT)/g' \
3666 - -e 's/@''GNULIB_FSTAT''@/$(GNULIB_FSTAT)/g' \
3667 - -e 's/@''GNULIB_FSTATAT''@/$(GNULIB_FSTATAT)/g' \
3668 - -e 's/@''GNULIB_FUTIMENS''@/$(GNULIB_FUTIMENS)/g' \
3669 - -e 's/@''GNULIB_LCHMOD''@/$(GNULIB_LCHMOD)/g' \
3670 - -e 's/@''GNULIB_LSTAT''@/$(GNULIB_LSTAT)/g' \
3671 - -e 's/@''GNULIB_MKDIRAT''@/$(GNULIB_MKDIRAT)/g' \
3672 - -e 's/@''GNULIB_MKFIFO''@/$(GNULIB_MKFIFO)/g' \
3673 - -e 's/@''GNULIB_MKFIFOAT''@/$(GNULIB_MKFIFOAT)/g' \
3674 - -e 's/@''GNULIB_MKNOD''@/$(GNULIB_MKNOD)/g' \
3675 - -e 's/@''GNULIB_MKNODAT''@/$(GNULIB_MKNODAT)/g' \
3676 - -e 's/@''GNULIB_STAT''@/$(GNULIB_STAT)/g' \
3677 - -e 's/@''GNULIB_UTIMENSAT''@/$(GNULIB_UTIMENSAT)/g' \
3678 - -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GNULIB_OVERRIDES_STRUCT_STAT)/g' \
3679 + -e 's/@''GNULIB_FCHMODAT''@/$(GL_GNULIB_FCHMODAT)/g' \
3680 + -e 's/@''GNULIB_FSTAT''@/$(GL_GNULIB_FSTAT)/g' \
3681 + -e 's/@''GNULIB_FSTATAT''@/$(GL_GNULIB_FSTATAT)/g' \
3682 + -e 's/@''GNULIB_FUTIMENS''@/$(GL_GNULIB_FUTIMENS)/g' \
3683 + -e 's/@''GNULIB_GETUMASK''@/$(GL_GNULIB_GETUMASK)/g' \
3684 + -e 's/@''GNULIB_LCHMOD''@/$(GL_GNULIB_LCHMOD)/g' \
3685 + -e 's/@''GNULIB_LSTAT''@/$(GL_GNULIB_LSTAT)/g' \
3686 + -e 's/@''GNULIB_MKDIR''@/$(GL_GNULIB_MKDIR)/g' \
3687 + -e 's/@''GNULIB_MKDIRAT''@/$(GL_GNULIB_MKDIRAT)/g' \
3688 + -e 's/@''GNULIB_MKFIFO''@/$(GL_GNULIB_MKFIFO)/g' \
3689 + -e 's/@''GNULIB_MKFIFOAT''@/$(GL_GNULIB_MKFIFOAT)/g' \
3690 + -e 's/@''GNULIB_MKNOD''@/$(GL_GNULIB_MKNOD)/g' \
3691 + -e 's/@''GNULIB_MKNODAT''@/$(GL_GNULIB_MKNODAT)/g' \
3692 + -e 's/@''GNULIB_STAT''@/$(GL_GNULIB_STAT)/g' \
3693 + -e 's/@''GNULIB_UTIMENSAT''@/$(GL_GNULIB_UTIMENSAT)/g' \
3694 + -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GL_GNULIB_OVERRIDES_STRUCT_STAT)/g' \
3695 + -e 's/@''GNULIB_MDA_CHMOD''@/$(GL_GNULIB_MDA_CHMOD)/g' \
3696 + -e 's/@''GNULIB_MDA_MKDIR''@/$(GL_GNULIB_MDA_MKDIR)/g' \
3697 + -e 's/@''GNULIB_MDA_UMASK''@/$(GL_GNULIB_MDA_UMASK)/g' \
3698 -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
3699 -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
3700 -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
3701 + -e 's|@''HAVE_GETUMASK''@|$(HAVE_GETUMASK)|g' \
3702 -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
3703 -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
3704 -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
3705 @@ -1966,21 +2188,23 @@ sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU
3706 -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
3707 -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
3708 -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
3709 + -e 's|@''REPLACE_FCHMODAT''@|$(REPLACE_FCHMODAT)|g' \
3710 -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
3711 -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
3712 -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
3713 -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
3714 -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
3715 -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
3716 + -e 's|@''REPLACE_MKFIFOAT''@|$(REPLACE_MKFIFOAT)|g' \
3717 -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
3718 + -e 's|@''REPLACE_MKNODAT''@|$(REPLACE_MKNODAT)|g' \
3719 -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
3720 -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
3721 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
3722 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
3723 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
3724 - < $(srcdir)/sys_stat.in.h; \
3725 - } > $@-t && \
3726 - mv $@-t $@
3727 + $(srcdir)/sys_stat.in.h > $@-t
3728 + $(AM_V_at)mv $@-t $@
3729 MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
3730 MOSTLYCLEANDIRS += sys
3731
3732 @@ -1995,16 +2219,15 @@ BUILT_SOURCES += sys/time.h
3733 # We need the following in order to create <sys/time.h> when the system
3734 # doesn't have one that works with the given compiler.
3735 sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
3736 - $(AM_V_at)$(MKDIR_P) sys
3737 - $(AM_V_GEN)rm -f $@-t $@ && \
3738 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
3739 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
3740 + $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
3741 + $(AM_V_at)$(SED_HEADER_STDOUT) \
3742 + -e 's|@''GUARD_PREFIX''@|GL|g' \
3743 -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \
3744 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
3745 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
3746 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
3747 -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \
3748 - -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \
3749 + -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GL_GNULIB_GETTIMEOFDAY)/g' \
3750 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
3751 -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \
3752 -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
3753 @@ -2013,9 +2236,8 @@ sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU
3754 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
3755 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
3756 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
3757 - < $(srcdir)/sys_time.in.h; \
3758 - } > $@-t && \
3759 - mv $@-t $@
3760 + $(srcdir)/sys_time.in.h > $@-t
3761 + $(AM_V_at)mv $@-t $@
3762 MOSTLYCLEANFILES += sys/time.h sys/time.h-t
3763
3764 EXTRA_DIST += sys_time.in.h
3765 @@ -2029,19 +2251,17 @@ BUILT_SOURCES += sys/types.h
3766 # We need the following in order to create <sys/types.h> when the system
3767 # doesn't have one that works with the given compiler.
3768 sys/types.h: sys_types.in.h $(top_builddir)/config.status
3769 - $(AM_V_at)$(MKDIR_P) sys
3770 - $(AM_V_GEN)rm -f $@-t $@ && \
3771 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
3772 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
3773 + $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys'
3774 + $(AM_V_at)$(SED_HEADER_STDOUT) \
3775 + -e 's|@''GUARD_PREFIX''@|GL|g' \
3776 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
3777 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
3778 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
3779 -e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \
3780 -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
3781 -e 's|@''WINDOWS_STAT_INODES''@|$(WINDOWS_STAT_INODES)|g' \
3782 - < $(srcdir)/sys_types.in.h; \
3783 - } > $@-t && \
3784 - mv $@-t $@
3785 + $(srcdir)/sys_types.in.h > $@-t
3786 + $(AM_V_at)mv $@-t $@
3787 MOSTLYCLEANFILES += sys/types.h sys/types.h-t
3788
3789 EXTRA_DIST += sys_types.in.h
3790 @@ -2055,29 +2275,32 @@ BUILT_SOURCES += time.h
3791 # We need the following in order to create <time.h> when the system
3792 # doesn't have one that works with the given compiler.
3793 time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
3794 - $(AM_V_GEN)rm -f $@-t $@ && \
3795 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
3796 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
3797 + $(gl_V_at)$(SED_HEADER_STDOUT) \
3798 + -e 's|@''GUARD_PREFIX''@|GL|g' \
3799 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
3800 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
3801 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
3802 -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
3803 - -e 's/@''GNULIB_CTIME''@/$(GNULIB_CTIME)/g' \
3804 - -e 's/@''GNULIB_LOCALTIME''@/$(GNULIB_LOCALTIME)/g' \
3805 - -e 's/@''GNULIB_MKTIME''@/$(GNULIB_MKTIME)/g' \
3806 - -e 's/@''GNULIB_NANOSLEEP''@/$(GNULIB_NANOSLEEP)/g' \
3807 - -e 's/@''GNULIB_STRFTIME''@/$(GNULIB_STRFTIME)/g' \
3808 - -e 's/@''GNULIB_STRPTIME''@/$(GNULIB_STRPTIME)/g' \
3809 - -e 's/@''GNULIB_TIMEGM''@/$(GNULIB_TIMEGM)/g' \
3810 - -e 's/@''GNULIB_TIME_R''@/$(GNULIB_TIME_R)/g' \
3811 - -e 's/@''GNULIB_TIME_RZ''@/$(GNULIB_TIME_RZ)/g' \
3812 - -e 's/@''GNULIB_TZSET''@/$(GNULIB_TZSET)/g' \
3813 + -e 's/@''GNULIB_CTIME''@/$(GL_GNULIB_CTIME)/g' \
3814 + -e 's/@''GNULIB_LOCALTIME''@/$(GL_GNULIB_LOCALTIME)/g' \
3815 + -e 's/@''GNULIB_MKTIME''@/$(GL_GNULIB_MKTIME)/g' \
3816 + -e 's/@''GNULIB_NANOSLEEP''@/$(GL_GNULIB_NANOSLEEP)/g' \
3817 + -e 's/@''GNULIB_STRFTIME''@/$(GL_GNULIB_STRFTIME)/g' \
3818 + -e 's/@''GNULIB_STRPTIME''@/$(GL_GNULIB_STRPTIME)/g' \
3819 + -e 's/@''GNULIB_TIMEGM''@/$(GL_GNULIB_TIMEGM)/g' \
3820 + -e 's/@''GNULIB_TIMESPEC_GET''@/$(GL_GNULIB_TIMESPEC_GET)/g' \
3821 + -e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GL_GNULIB_TIMESPEC_GETRES)/g' \
3822 + -e 's/@''GNULIB_TIME_R''@/$(GL_GNULIB_TIME_R)/g' \
3823 + -e 's/@''GNULIB_TIME_RZ''@/$(GL_GNULIB_TIME_RZ)/g' \
3824 + -e 's/@''GNULIB_TZSET''@/$(GL_GNULIB_TZSET)/g' \
3825 + -e 's/@''GNULIB_MDA_TZSET''@/$(GL_GNULIB_MDA_TZSET)/g' \
3826 -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
3827 -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
3828 -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
3829 -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
3830 + -e 's|@''HAVE_TIMESPEC_GET''@|$(HAVE_TIMESPEC_GET)|g' \
3831 + -e 's|@''HAVE_TIMESPEC_GETRES''@|$(HAVE_TIMESPEC_GETRES)|g' \
3832 -e 's|@''HAVE_TIMEZONE_T''@|$(HAVE_TIMEZONE_T)|g' \
3833 - -e 's|@''HAVE_TZSET''@|$(HAVE_TZSET)|g' \
3834 -e 's|@''REPLACE_CTIME''@|$(REPLACE_CTIME)|g' \
3835 -e 's|@''REPLACE_GMTIME''@|$(REPLACE_GMTIME)|g' \
3836 -e 's|@''REPLACE_LOCALTIME''@|$(REPLACE_LOCALTIME)|g' \
3837 @@ -2091,12 +2314,12 @@ time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
3838 -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
3839 -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
3840 -e 's|@''UNISTD_H_DEFINES_STRUCT_TIMESPEC''@|$(UNISTD_H_DEFINES_STRUCT_TIMESPEC)|g' \
3841 + -e 's|@''TIME_H_DEFINES_TIME_UTC''@|$(TIME_H_DEFINES_TIME_UTC)|g' \
3842 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
3843 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
3844 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
3845 - < $(srcdir)/time.in.h; \
3846 - } > $@-t && \
3847 - mv $@-t $@
3848 + $(srcdir)/time.in.h > $@-t
3849 + $(AM_V_at)mv $@-t $@
3850 MOSTLYCLEANFILES += time.h time.h-t
3851
3852 EXTRA_DIST += time.in.h
3853 @@ -2119,71 +2342,104 @@ libgnu_a_SOURCES += unistd.c
3854 # We need the following in order to create an empty placeholder for
3855 # <unistd.h> when the system doesn't have one.
3856 unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
3857 - $(AM_V_GEN)rm -f $@-t $@ && \
3858 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
3859 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
3860 + $(gl_V_at)$(SED_HEADER_STDOUT) \
3861 + -e 's|@''GUARD_PREFIX''@|GL|g' \
3862 -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
3863 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
3864 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
3865 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
3866 -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
3867 -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
3868 - -e 's/@''GNULIB_CHDIR''@/$(GNULIB_CHDIR)/g' \
3869 - -e 's/@''GNULIB_CHOWN''@/$(GNULIB_CHOWN)/g' \
3870 - -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \
3871 - -e 's/@''GNULIB_DUP''@/$(GNULIB_DUP)/g' \
3872 - -e 's/@''GNULIB_DUP2''@/$(GNULIB_DUP2)/g' \
3873 - -e 's/@''GNULIB_DUP3''@/$(GNULIB_DUP3)/g' \
3874 - -e 's/@''GNULIB_ENVIRON''@/$(GNULIB_ENVIRON)/g' \
3875 - -e 's/@''GNULIB_EUIDACCESS''@/$(GNULIB_EUIDACCESS)/g' \
3876 - -e 's/@''GNULIB_FACCESSAT''@/$(GNULIB_FACCESSAT)/g' \
3877 - -e 's/@''GNULIB_FCHDIR''@/$(GNULIB_FCHDIR)/g' \
3878 - -e 's/@''GNULIB_FCHOWNAT''@/$(GNULIB_FCHOWNAT)/g' \
3879 - -e 's/@''GNULIB_FDATASYNC''@/$(GNULIB_FDATASYNC)/g' \
3880 - -e 's/@''GNULIB_FSYNC''@/$(GNULIB_FSYNC)/g' \
3881 - -e 's/@''GNULIB_FTRUNCATE''@/$(GNULIB_FTRUNCATE)/g' \
3882 - -e 's/@''GNULIB_GETCWD''@/$(GNULIB_GETCWD)/g' \
3883 - -e 's/@''GNULIB_GETDOMAINNAME''@/$(GNULIB_GETDOMAINNAME)/g' \
3884 - -e 's/@''GNULIB_GETDTABLESIZE''@/$(GNULIB_GETDTABLESIZE)/g' \
3885 - -e 's/@''GNULIB_GETGROUPS''@/$(GNULIB_GETGROUPS)/g' \
3886 - -e 's/@''GNULIB_GETHOSTNAME''@/$(GNULIB_GETHOSTNAME)/g' \
3887 - -e 's/@''GNULIB_GETLOGIN''@/$(GNULIB_GETLOGIN)/g' \
3888 - -e 's/@''GNULIB_GETLOGIN_R''@/$(GNULIB_GETLOGIN_R)/g' \
3889 - -e 's/@''GNULIB_GETPAGESIZE''@/$(GNULIB_GETPAGESIZE)/g' \
3890 - -e 's/@''GNULIB_GETPASS''@/$(GNULIB_GETPASS)/g' \
3891 - -e 's/@''GNULIB_GETUSERSHELL''@/$(GNULIB_GETUSERSHELL)/g' \
3892 - -e 's/@''GNULIB_GROUP_MEMBER''@/$(GNULIB_GROUP_MEMBER)/g' \
3893 - -e 's/@''GNULIB_ISATTY''@/$(GNULIB_ISATTY)/g' \
3894 - -e 's/@''GNULIB_LCHOWN''@/$(GNULIB_LCHOWN)/g' \
3895 - -e 's/@''GNULIB_LINK''@/$(GNULIB_LINK)/g' \
3896 - -e 's/@''GNULIB_LINKAT''@/$(GNULIB_LINKAT)/g' \
3897 - -e 's/@''GNULIB_LSEEK''@/$(GNULIB_LSEEK)/g' \
3898 - -e 's/@''GNULIB_PIPE''@/$(GNULIB_PIPE)/g' \
3899 - -e 's/@''GNULIB_PIPE2''@/$(GNULIB_PIPE2)/g' \
3900 - -e 's/@''GNULIB_PREAD''@/$(GNULIB_PREAD)/g' \
3901 - -e 's/@''GNULIB_PWRITE''@/$(GNULIB_PWRITE)/g' \
3902 - -e 's/@''GNULIB_READ''@/$(GNULIB_READ)/g' \
3903 - -e 's/@''GNULIB_READLINK''@/$(GNULIB_READLINK)/g' \
3904 - -e 's/@''GNULIB_READLINKAT''@/$(GNULIB_READLINKAT)/g' \
3905 - -e 's/@''GNULIB_RMDIR''@/$(GNULIB_RMDIR)/g' \
3906 - -e 's/@''GNULIB_SETHOSTNAME''@/$(GNULIB_SETHOSTNAME)/g' \
3907 - -e 's/@''GNULIB_SLEEP''@/$(GNULIB_SLEEP)/g' \
3908 - -e 's/@''GNULIB_SYMLINK''@/$(GNULIB_SYMLINK)/g' \
3909 - -e 's/@''GNULIB_SYMLINKAT''@/$(GNULIB_SYMLINKAT)/g' \
3910 - -e 's/@''GNULIB_TRUNCATE''@/$(GNULIB_TRUNCATE)/g' \
3911 - -e 's/@''GNULIB_TTYNAME_R''@/$(GNULIB_TTYNAME_R)/g' \
3912 - -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GNULIB_GL_UNISTD_H_GETOPT)/g' \
3913 - -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GNULIB_UNISTD_H_NONBLOCKING)/g' \
3914 - -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GNULIB_UNISTD_H_SIGPIPE)/g' \
3915 - -e 's/@''GNULIB_UNLINK''@/$(GNULIB_UNLINK)/g' \
3916 - -e 's/@''GNULIB_UNLINKAT''@/$(GNULIB_UNLINKAT)/g' \
3917 - -e 's/@''GNULIB_USLEEP''@/$(GNULIB_USLEEP)/g' \
3918 - -e 's/@''GNULIB_WRITE''@/$(GNULIB_WRITE)/g' \
3919 + -e 's/@''GNULIB_ACCESS''@/$(GL_GNULIB_ACCESS)/g' \
3920 + -e 's/@''GNULIB_CHDIR''@/$(GL_GNULIB_CHDIR)/g' \
3921 + -e 's/@''GNULIB_CHOWN''@/$(GL_GNULIB_CHOWN)/g' \
3922 + -e 's/@''GNULIB_CLOSE''@/$(GL_GNULIB_CLOSE)/g' \
3923 + -e 's/@''GNULIB_COPY_FILE_RANGE''@/$(GL_GNULIB_COPY_FILE_RANGE)/g' \
3924 + -e 's/@''GNULIB_DUP''@/$(GL_GNULIB_DUP)/g' \
3925 + -e 's/@''GNULIB_DUP2''@/$(GL_GNULIB_DUP2)/g' \
3926 + -e 's/@''GNULIB_DUP3''@/$(GL_GNULIB_DUP3)/g' \
3927 + -e 's/@''GNULIB_ENVIRON''@/$(GL_GNULIB_ENVIRON)/g' \
3928 + -e 's/@''GNULIB_EUIDACCESS''@/$(GL_GNULIB_EUIDACCESS)/g' \
3929 + -e 's/@''GNULIB_EXECL''@/$(GL_GNULIB_EXECL)/g' \
3930 + -e 's/@''GNULIB_EXECLE''@/$(GL_GNULIB_EXECLE)/g' \
3931 + -e 's/@''GNULIB_EXECLP''@/$(GL_GNULIB_EXECLP)/g' \
3932 + -e 's/@''GNULIB_EXECV''@/$(GL_GNULIB_EXECV)/g' \
3933 + -e 's/@''GNULIB_EXECVE''@/$(GL_GNULIB_EXECVE)/g' \
3934 + -e 's/@''GNULIB_EXECVP''@/$(GL_GNULIB_EXECVP)/g' \
3935 + -e 's/@''GNULIB_EXECVPE''@/$(GL_GNULIB_EXECVPE)/g' \
3936 + -e 's/@''GNULIB_FACCESSAT''@/$(GL_GNULIB_FACCESSAT)/g' \
3937 + -e 's/@''GNULIB_FCHDIR''@/$(GL_GNULIB_FCHDIR)/g' \
3938 + -e 's/@''GNULIB_FCHOWNAT''@/$(GL_GNULIB_FCHOWNAT)/g' \
3939 + -e 's/@''GNULIB_FDATASYNC''@/$(GL_GNULIB_FDATASYNC)/g' \
3940 + -e 's/@''GNULIB_FSYNC''@/$(GL_GNULIB_FSYNC)/g' \
3941 + -e 's/@''GNULIB_FTRUNCATE''@/$(GL_GNULIB_FTRUNCATE)/g' \
3942 + -e 's/@''GNULIB_GETCWD''@/$(GL_GNULIB_GETCWD)/g' \
3943 + -e 's/@''GNULIB_GETDOMAINNAME''@/$(GL_GNULIB_GETDOMAINNAME)/g' \
3944 + -e 's/@''GNULIB_GETDTABLESIZE''@/$(GL_GNULIB_GETDTABLESIZE)/g' \
3945 + -e 's/@''GNULIB_GETENTROPY''@/$(GL_GNULIB_GETENTROPY)/g' \
3946 + -e 's/@''GNULIB_GETGROUPS''@/$(GL_GNULIB_GETGROUPS)/g' \
3947 + -e 's/@''GNULIB_GETHOSTNAME''@/$(GL_GNULIB_GETHOSTNAME)/g' \
3948 + -e 's/@''GNULIB_GETLOGIN''@/$(GL_GNULIB_GETLOGIN)/g' \
3949 + -e 's/@''GNULIB_GETLOGIN_R''@/$(GL_GNULIB_GETLOGIN_R)/g' \
3950 + -e 's/@''GNULIB_GETOPT_POSIX''@/$(GL_GNULIB_GETOPT_POSIX)/g' \
3951 + -e 's/@''GNULIB_GETPAGESIZE''@/$(GL_GNULIB_GETPAGESIZE)/g' \
3952 + -e 's/@''GNULIB_GETPASS''@/$(GL_GNULIB_GETPASS)/g' \
3953 + -e 's/@''GNULIB_GETPASS_GNU''@/$(GL_GNULIB_GETPASS_GNU)/g' \
3954 + -e 's/@''GNULIB_GETUSERSHELL''@/$(GL_GNULIB_GETUSERSHELL)/g' \
3955 + -e 's/@''GNULIB_GROUP_MEMBER''@/$(GL_GNULIB_GROUP_MEMBER)/g' \
3956 + -e 's/@''GNULIB_ISATTY''@/$(GL_GNULIB_ISATTY)/g' \
3957 + -e 's/@''GNULIB_LCHOWN''@/$(GL_GNULIB_LCHOWN)/g' \
3958 + -e 's/@''GNULIB_LINK''@/$(GL_GNULIB_LINK)/g' \
3959 + -e 's/@''GNULIB_LINKAT''@/$(GL_GNULIB_LINKAT)/g' \
3960 + -e 's/@''GNULIB_LSEEK''@/$(GL_GNULIB_LSEEK)/g' \
3961 + -e 's/@''GNULIB_PIPE''@/$(GL_GNULIB_PIPE)/g' \
3962 + -e 's/@''GNULIB_PIPE2''@/$(GL_GNULIB_PIPE2)/g' \
3963 + -e 's/@''GNULIB_PREAD''@/$(GL_GNULIB_PREAD)/g' \
3964 + -e 's/@''GNULIB_PWRITE''@/$(GL_GNULIB_PWRITE)/g' \
3965 + -e 's/@''GNULIB_READ''@/$(GL_GNULIB_READ)/g' \
3966 + -e 's/@''GNULIB_READLINK''@/$(GL_GNULIB_READLINK)/g' \
3967 + -e 's/@''GNULIB_READLINKAT''@/$(GL_GNULIB_READLINKAT)/g' \
3968 + -e 's/@''GNULIB_RMDIR''@/$(GL_GNULIB_RMDIR)/g' \
3969 + -e 's/@''GNULIB_SETHOSTNAME''@/$(GL_GNULIB_SETHOSTNAME)/g' \
3970 + -e 's/@''GNULIB_SLEEP''@/$(GL_GNULIB_SLEEP)/g' \
3971 + -e 's/@''GNULIB_SYMLINK''@/$(GL_GNULIB_SYMLINK)/g' \
3972 + -e 's/@''GNULIB_SYMLINKAT''@/$(GL_GNULIB_SYMLINKAT)/g' \
3973 + -e 's/@''GNULIB_TRUNCATE''@/$(GL_GNULIB_TRUNCATE)/g' \
3974 + -e 's/@''GNULIB_TTYNAME_R''@/$(GL_GNULIB_TTYNAME_R)/g' \
3975 + -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GL_GNULIB_UNISTD_H_GETOPT)/g' \
3976 + -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GL_GNULIB_UNISTD_H_NONBLOCKING)/g' \
3977 + -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GL_GNULIB_UNISTD_H_SIGPIPE)/g' \
3978 + -e 's/@''GNULIB_UNLINK''@/$(GL_GNULIB_UNLINK)/g' \
3979 + -e 's/@''GNULIB_UNLINKAT''@/$(GL_GNULIB_UNLINKAT)/g' \
3980 + -e 's/@''GNULIB_USLEEP''@/$(GL_GNULIB_USLEEP)/g' \
3981 + -e 's/@''GNULIB_WRITE''@/$(GL_GNULIB_WRITE)/g' \
3982 + -e 's/@''GNULIB_MDA_ACCESS''@/$(GL_GNULIB_MDA_ACCESS)/g' \
3983 + -e 's/@''GNULIB_MDA_CHDIR''@/$(GL_GNULIB_MDA_CHDIR)/g' \
3984 + -e 's/@''GNULIB_MDA_CLOSE''@/$(GL_GNULIB_MDA_CLOSE)/g' \
3985 + -e 's/@''GNULIB_MDA_DUP''@/$(GL_GNULIB_MDA_DUP)/g' \
3986 + -e 's/@''GNULIB_MDA_DUP2''@/$(GL_GNULIB_MDA_DUP2)/g' \
3987 + -e 's/@''GNULIB_MDA_EXECL''@/$(GL_GNULIB_MDA_EXECL)/g' \
3988 + -e 's/@''GNULIB_MDA_EXECLE''@/$(GL_GNULIB_MDA_EXECLE)/g' \
3989 + -e 's/@''GNULIB_MDA_EXECLP''@/$(GL_GNULIB_MDA_EXECLP)/g' \
3990 + -e 's/@''GNULIB_MDA_EXECV''@/$(GL_GNULIB_MDA_EXECV)/g' \
3991 + -e 's/@''GNULIB_MDA_EXECVE''@/$(GL_GNULIB_MDA_EXECVE)/g' \
3992 + -e 's/@''GNULIB_MDA_EXECVP''@/$(GL_GNULIB_MDA_EXECVP)/g' \
3993 + -e 's/@''GNULIB_MDA_EXECVPE''@/$(GL_GNULIB_MDA_EXECVPE)/g' \
3994 + -e 's/@''GNULIB_MDA_GETCWD''@/$(GL_GNULIB_MDA_GETCWD)/g' \
3995 + -e 's/@''GNULIB_MDA_GETPID''@/$(GL_GNULIB_MDA_GETPID)/g' \
3996 + -e 's/@''GNULIB_MDA_ISATTY''@/$(GL_GNULIB_MDA_ISATTY)/g' \
3997 + -e 's/@''GNULIB_MDA_LSEEK''@/$(GL_GNULIB_MDA_LSEEK)/g' \
3998 + -e 's/@''GNULIB_MDA_READ''@/$(GL_GNULIB_MDA_READ)/g' \
3999 + -e 's/@''GNULIB_MDA_RMDIR''@/$(GL_GNULIB_MDA_RMDIR)/g' \
4000 + -e 's/@''GNULIB_MDA_SWAB''@/$(GL_GNULIB_MDA_SWAB)/g' \
4001 + -e 's/@''GNULIB_MDA_UNLINK''@/$(GL_GNULIB_MDA_UNLINK)/g' \
4002 + -e 's/@''GNULIB_MDA_WRITE''@/$(GL_GNULIB_MDA_WRITE)/g' \
4003 < $(srcdir)/unistd.in.h | \
4004 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
4005 - -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
4006 + -e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \
4007 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
4008 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
4009 + -e 's|@''HAVE_EXECVPE''@|$(HAVE_EXECVPE)|g' \
4010 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
4011 -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
4012 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
4013 @@ -2191,6 +2447,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
4014 -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
4015 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
4016 -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
4017 + -e 's|@''HAVE_GETENTROPY''@|$(HAVE_GETENTROPY)|g' \
4018 -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
4019 -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
4020 -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
4021 @@ -2212,6 +2469,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
4022 -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
4023 -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
4024 -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
4025 + -e 's|@''HAVE_DECL_EXECVPE''@|$(HAVE_DECL_EXECVPE)|g' \
4026 -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \
4027 -e 's|@''HAVE_DECL_FDATASYNC''@|$(HAVE_DECL_FDATASYNC)|g' \
4028 -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \
4029 @@ -2225,10 +2483,19 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
4030 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
4031 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
4032 | \
4033 - sed -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
4034 + sed -e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \
4035 + -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
4036 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
4037 + -e 's|@''REPLACE_COPY_FILE_RANGE''@|$(REPLACE_COPY_FILE_RANGE)|g' \
4038 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
4039 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
4040 + -e 's|@''REPLACE_EXECL''@|$(REPLACE_EXECL)|g' \
4041 + -e 's|@''REPLACE_EXECLE''@|$(REPLACE_EXECLE)|g' \
4042 + -e 's|@''REPLACE_EXECLP''@|$(REPLACE_EXECLP)|g' \
4043 + -e 's|@''REPLACE_EXECV''@|$(REPLACE_EXECV)|g' \
4044 + -e 's|@''REPLACE_EXECVE''@|$(REPLACE_EXECVE)|g' \
4045 + -e 's|@''REPLACE_EXECVP''@|$(REPLACE_EXECVP)|g' \
4046 + -e 's|@''REPLACE_EXECVPE''@|$(REPLACE_EXECVPE)|g' \
4047 -e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \
4048 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
4049 -e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \
4050 @@ -2239,6 +2506,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
4051 -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
4052 -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
4053 -e 's|@''REPLACE_GETPASS''@|$(REPLACE_GETPASS)|g' \
4054 + -e 's|@''REPLACE_GETPASS_FOR_GETPASS_GNU''@|$(REPLACE_GETPASS_FOR_GETPASS_GNU)|g' \
4055 -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \
4056 -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
4057 -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
4058 @@ -2259,13 +2527,14 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
4059 -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
4060 -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
4061 -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
4062 + -e 's|@''UNISTD_H_HAVE_SYS_RANDOM_H''@|$(UNISTD_H_HAVE_SYS_RANDOM_H)|g' \
4063 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
4064 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
4065 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
4066 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
4067 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
4068 - } > $@-t && \
4069 - mv $@-t $@
4070 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
4071 + > $@-t
4072 + $(AM_V_at)mv $@-t $@
4073 MOSTLYCLEANFILES += unistd.h unistd.h-t
4074
4075 EXTRA_DIST += unistd.in.h
4076 @@ -2282,60 +2551,55 @@ EXTRA_DIST += unistd--.h unistd-safer.h
4077
4078 ## begin gnulib module unlink
4079
4080 -
4081 -EXTRA_DIST += unlink.c
4082 -
4083 -EXTRA_libgnu_a_SOURCES += unlink.c
4084 +if GL_COND_OBJ_UNLINK
4085 +libgnu_a_SOURCES += unlink.c
4086 +endif
4087
4088 ## end gnulib module unlink
4089
4090 ## begin gnulib module unlinkat
4091
4092 +if GL_COND_OBJ_UNLINKAT
4093 +libgnu_a_SOURCES += unlinkat.c
4094 +endif
4095
4096 -EXTRA_DIST += at-func.c unlinkat.c
4097 +EXTRA_DIST += at-func.c
4098
4099 -EXTRA_libgnu_a_SOURCES += at-func.c unlinkat.c
4100 +EXTRA_libgnu_a_SOURCES += at-func.c
4101
4102 ## end gnulib module unlinkat
4103
4104 ## begin gnulib module utime
4105
4106 -
4107 -EXTRA_DIST += utime.c
4108 -
4109 -EXTRA_libgnu_a_SOURCES += utime.c
4110 +if GL_COND_OBJ_UTIME
4111 +libgnu_a_SOURCES += utime.c
4112 +endif
4113
4114 ## end gnulib module utime
4115
4116 ## begin gnulib module utime-h
4117
4118 -BUILT_SOURCES += $(UTIME_H)
4119 +BUILT_SOURCES += utime.h
4120
4121 # We need the following in order to create <utime.h> when the system
4122 # doesn't have one that works with the given compiler.
4123 -if GL_GENERATE_UTIME_H
4124 utime.h: utime.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
4125 - $(AM_V_GEN)rm -f $@-t $@ && \
4126 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
4127 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
4128 + $(gl_V_at)$(SED_HEADER_STDOUT) \
4129 + -e 's|@''GUARD_PREFIX''@|GL|g' \
4130 -e 's/@''HAVE_UTIME_H''@/$(HAVE_UTIME_H)/g' \
4131 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
4132 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
4133 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
4134 -e 's|@''NEXT_UTIME_H''@|$(NEXT_UTIME_H)|g' \
4135 - -e 's/@''GNULIB_UTIME''@/$(GNULIB_UTIME)/g' \
4136 + -e 's/@''GNULIB_UTIME''@/$(GL_GNULIB_UTIME)/g' \
4137 + -e 's/@''GNULIB_MDA_UTIME''@/$(GL_GNULIB_MDA_UTIME)/g' \
4138 -e 's|@''HAVE_UTIME''@|$(HAVE_UTIME)|g' \
4139 -e 's|@''REPLACE_UTIME''@|$(REPLACE_UTIME)|g' \
4140 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
4141 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
4142 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
4143 - < $(srcdir)/utime.in.h; \
4144 - } > $@-t && \
4145 - mv $@-t $@
4146 -else
4147 -utime.h: $(top_builddir)/config.status
4148 - rm -f $@
4149 -endif
4150 + $(srcdir)/utime.in.h > $@-t
4151 + $(AM_V_at)mv $@-t $@
4152 MOSTLYCLEANFILES += utime.h utime.h-t
4153
4154 EXTRA_DIST += utime.in.h
4155 @@ -2352,10 +2616,13 @@ EXTRA_DIST += utimens.h
4156
4157 ## begin gnulib module utimensat
4158
4159 +if GL_COND_OBJ_UTIMENSAT
4160 +libgnu_a_SOURCES += utimensat.c
4161 +endif
4162
4163 -EXTRA_DIST += at-func.c utimensat.c
4164 +EXTRA_DIST += at-func.c
4165
4166 -EXTRA_libgnu_a_SOURCES += at-func.c utimensat.c
4167 +EXTRA_libgnu_a_SOURCES += at-func.c
4168
4169 ## end gnulib module utimensat
4170
4171 @@ -2391,9 +2658,8 @@ BUILT_SOURCES += wchar.h
4172 # We need the following in order to create <wchar.h> when the system
4173 # version does not work standalone.
4174 wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
4175 - $(AM_V_GEN)rm -f $@-t $@ && \
4176 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
4177 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
4178 + $(gl_V_at)$(SED_HEADER_STDOUT) \
4179 + -e 's|@''GUARD_PREFIX''@|GL|g' \
4180 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
4181 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
4182 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
4183 @@ -2401,47 +2667,50 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
4184 -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
4185 -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
4186 -e 's/@''HAVE_CRTDEFS_H''@/$(HAVE_CRTDEFS_H)/g' \
4187 - -e 's/@''GNULIB_OVERRIDES_WINT_T''@/$(GNULIB_OVERRIDES_WINT_T)/g' \
4188 - -e 's/@''GNULIB_BTOWC''@/$(GNULIB_BTOWC)/g' \
4189 - -e 's/@''GNULIB_WCTOB''@/$(GNULIB_WCTOB)/g' \
4190 - -e 's/@''GNULIB_MBSINIT''@/$(GNULIB_MBSINIT)/g' \
4191 - -e 's/@''GNULIB_MBRTOWC''@/$(GNULIB_MBRTOWC)/g' \
4192 - -e 's/@''GNULIB_MBRLEN''@/$(GNULIB_MBRLEN)/g' \
4193 - -e 's/@''GNULIB_MBSRTOWCS''@/$(GNULIB_MBSRTOWCS)/g' \
4194 - -e 's/@''GNULIB_MBSNRTOWCS''@/$(GNULIB_MBSNRTOWCS)/g' \
4195 - -e 's/@''GNULIB_WCRTOMB''@/$(GNULIB_WCRTOMB)/g' \
4196 - -e 's/@''GNULIB_WCSRTOMBS''@/$(GNULIB_WCSRTOMBS)/g' \
4197 - -e 's/@''GNULIB_WCSNRTOMBS''@/$(GNULIB_WCSNRTOMBS)/g' \
4198 - -e 's/@''GNULIB_WCWIDTH''@/$(GNULIB_WCWIDTH)/g' \
4199 - -e 's/@''GNULIB_WMEMCHR''@/$(GNULIB_WMEMCHR)/g' \
4200 - -e 's/@''GNULIB_WMEMCMP''@/$(GNULIB_WMEMCMP)/g' \
4201 - -e 's/@''GNULIB_WMEMCPY''@/$(GNULIB_WMEMCPY)/g' \
4202 - -e 's/@''GNULIB_WMEMMOVE''@/$(GNULIB_WMEMMOVE)/g' \
4203 - -e 's/@''GNULIB_WMEMSET''@/$(GNULIB_WMEMSET)/g' \
4204 - -e 's/@''GNULIB_WCSLEN''@/$(GNULIB_WCSLEN)/g' \
4205 - -e 's/@''GNULIB_WCSNLEN''@/$(GNULIB_WCSNLEN)/g' \
4206 - -e 's/@''GNULIB_WCSCPY''@/$(GNULIB_WCSCPY)/g' \
4207 - -e 's/@''GNULIB_WCPCPY''@/$(GNULIB_WCPCPY)/g' \
4208 - -e 's/@''GNULIB_WCSNCPY''@/$(GNULIB_WCSNCPY)/g' \
4209 - -e 's/@''GNULIB_WCPNCPY''@/$(GNULIB_WCPNCPY)/g' \
4210 - -e 's/@''GNULIB_WCSCAT''@/$(GNULIB_WCSCAT)/g' \
4211 - -e 's/@''GNULIB_WCSNCAT''@/$(GNULIB_WCSNCAT)/g' \
4212 - -e 's/@''GNULIB_WCSCMP''@/$(GNULIB_WCSCMP)/g' \
4213 - -e 's/@''GNULIB_WCSNCMP''@/$(GNULIB_WCSNCMP)/g' \
4214 - -e 's/@''GNULIB_WCSCASECMP''@/$(GNULIB_WCSCASECMP)/g' \
4215 - -e 's/@''GNULIB_WCSNCASECMP''@/$(GNULIB_WCSNCASECMP)/g' \
4216 - -e 's/@''GNULIB_WCSCOLL''@/$(GNULIB_WCSCOLL)/g' \
4217 - -e 's/@''GNULIB_WCSXFRM''@/$(GNULIB_WCSXFRM)/g' \
4218 - -e 's/@''GNULIB_WCSDUP''@/$(GNULIB_WCSDUP)/g' \
4219 - -e 's/@''GNULIB_WCSCHR''@/$(GNULIB_WCSCHR)/g' \
4220 - -e 's/@''GNULIB_WCSRCHR''@/$(GNULIB_WCSRCHR)/g' \
4221 - -e 's/@''GNULIB_WCSCSPN''@/$(GNULIB_WCSCSPN)/g' \
4222 - -e 's/@''GNULIB_WCSSPN''@/$(GNULIB_WCSSPN)/g' \
4223 - -e 's/@''GNULIB_WCSPBRK''@/$(GNULIB_WCSPBRK)/g' \
4224 - -e 's/@''GNULIB_WCSSTR''@/$(GNULIB_WCSSTR)/g' \
4225 - -e 's/@''GNULIB_WCSTOK''@/$(GNULIB_WCSTOK)/g' \
4226 - -e 's/@''GNULIB_WCSWIDTH''@/$(GNULIB_WCSWIDTH)/g' \
4227 - -e 's/@''GNULIB_WCSFTIME''@/$(GNULIB_WCSFTIME)/g' \
4228 + -e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \
4229 + -e 's/@''GNULIB_BTOWC''@/$(GL_GNULIB_BTOWC)/g' \
4230 + -e 's/@''GNULIB_WCTOB''@/$(GL_GNULIB_WCTOB)/g' \
4231 + -e 's/@''GNULIB_MBSINIT''@/$(GL_GNULIB_MBSINIT)/g' \
4232 + -e 's/@''GNULIB_MBRTOWC''@/$(GL_GNULIB_MBRTOWC)/g' \
4233 + -e 's/@''GNULIB_MBRLEN''@/$(GL_GNULIB_MBRLEN)/g' \
4234 + -e 's/@''GNULIB_MBSRTOWCS''@/$(GL_GNULIB_MBSRTOWCS)/g' \
4235 + -e 's/@''GNULIB_MBSNRTOWCS''@/$(GL_GNULIB_MBSNRTOWCS)/g' \
4236 + -e 's/@''GNULIB_WCRTOMB''@/$(GL_GNULIB_WCRTOMB)/g' \
4237 + -e 's/@''GNULIB_WCSRTOMBS''@/$(GL_GNULIB_WCSRTOMBS)/g' \
4238 + -e 's/@''GNULIB_WCSNRTOMBS''@/$(GL_GNULIB_WCSNRTOMBS)/g' \
4239 + -e 's/@''GNULIB_WCWIDTH''@/$(GL_GNULIB_WCWIDTH)/g' \
4240 + -e 's/@''GNULIB_WMEMCHR''@/$(GL_GNULIB_WMEMCHR)/g' \
4241 + -e 's/@''GNULIB_WMEMCMP''@/$(GL_GNULIB_WMEMCMP)/g' \
4242 + -e 's/@''GNULIB_WMEMCPY''@/$(GL_GNULIB_WMEMCPY)/g' \
4243 + -e 's/@''GNULIB_WMEMMOVE''@/$(GL_GNULIB_WMEMMOVE)/g' \
4244 + -e 's/@''GNULIB_WMEMPCPY''@/$(GL_GNULIB_WMEMPCPY)/g' \
4245 + -e 's/@''GNULIB_WMEMSET''@/$(GL_GNULIB_WMEMSET)/g' \
4246 + -e 's/@''GNULIB_WCSLEN''@/$(GL_GNULIB_WCSLEN)/g' \
4247 + -e 's/@''GNULIB_WCSNLEN''@/$(GL_GNULIB_WCSNLEN)/g' \
4248 + -e 's/@''GNULIB_WCSCPY''@/$(GL_GNULIB_WCSCPY)/g' \
4249 + -e 's/@''GNULIB_WCPCPY''@/$(GL_GNULIB_WCPCPY)/g' \
4250 + -e 's/@''GNULIB_WCSNCPY''@/$(GL_GNULIB_WCSNCPY)/g' \
4251 + -e 's/@''GNULIB_WCPNCPY''@/$(GL_GNULIB_WCPNCPY)/g' \
4252 + -e 's/@''GNULIB_WCSCAT''@/$(GL_GNULIB_WCSCAT)/g' \
4253 + -e 's/@''GNULIB_WCSNCAT''@/$(GL_GNULIB_WCSNCAT)/g' \
4254 + -e 's/@''GNULIB_WCSCMP''@/$(GL_GNULIB_WCSCMP)/g' \
4255 + -e 's/@''GNULIB_WCSNCMP''@/$(GL_GNULIB_WCSNCMP)/g' \
4256 + -e 's/@''GNULIB_WCSCASECMP''@/$(GL_GNULIB_WCSCASECMP)/g' \
4257 + -e 's/@''GNULIB_WCSNCASECMP''@/$(GL_GNULIB_WCSNCASECMP)/g' \
4258 + -e 's/@''GNULIB_WCSCOLL''@/$(GL_GNULIB_WCSCOLL)/g' \
4259 + -e 's/@''GNULIB_WCSXFRM''@/$(GL_GNULIB_WCSXFRM)/g' \
4260 + -e 's/@''GNULIB_WCSDUP''@/$(GL_GNULIB_WCSDUP)/g' \
4261 + -e 's/@''GNULIB_WCSCHR''@/$(GL_GNULIB_WCSCHR)/g' \
4262 + -e 's/@''GNULIB_WCSRCHR''@/$(GL_GNULIB_WCSRCHR)/g' \
4263 + -e 's/@''GNULIB_WCSCSPN''@/$(GL_GNULIB_WCSCSPN)/g' \
4264 + -e 's/@''GNULIB_WCSSPN''@/$(GL_GNULIB_WCSSPN)/g' \
4265 + -e 's/@''GNULIB_WCSPBRK''@/$(GL_GNULIB_WCSPBRK)/g' \
4266 + -e 's/@''GNULIB_WCSSTR''@/$(GL_GNULIB_WCSSTR)/g' \
4267 + -e 's/@''GNULIB_WCSTOK''@/$(GL_GNULIB_WCSTOK)/g' \
4268 + -e 's/@''GNULIB_WCSWIDTH''@/$(GL_GNULIB_WCSWIDTH)/g' \
4269 + -e 's/@''GNULIB_WCSFTIME''@/$(GL_GNULIB_WCSFTIME)/g' \
4270 + -e 's/@''GNULIB_MDA_WCSDUP''@/$(GL_GNULIB_MDA_WCSDUP)/g' \
4271 + -e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
4272 < $(srcdir)/wchar.in.h | \
4273 sed -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
4274 -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
4275 @@ -2457,6 +2726,7 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
4276 -e 's|@''HAVE_WMEMCMP''@|$(HAVE_WMEMCMP)|g' \
4277 -e 's|@''HAVE_WMEMCPY''@|$(HAVE_WMEMCPY)|g' \
4278 -e 's|@''HAVE_WMEMMOVE''@|$(HAVE_WMEMMOVE)|g' \
4279 + -e 's|@''HAVE_WMEMPCPY''@|$(HAVE_WMEMPCPY)|g' \
4280 -e 's|@''HAVE_WMEMSET''@|$(HAVE_WMEMSET)|g' \
4281 -e 's|@''HAVE_WCSLEN''@|$(HAVE_WCSLEN)|g' \
4282 -e 's|@''HAVE_WCSNLEN''@|$(HAVE_WCSNLEN)|g' \
4283 @@ -2483,11 +2753,13 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
4284 -e 's|@''HAVE_WCSWIDTH''@|$(HAVE_WCSWIDTH)|g' \
4285 -e 's|@''HAVE_WCSFTIME''@|$(HAVE_WCSFTIME)|g' \
4286 -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
4287 + -e 's|@''HAVE_DECL_WCSDUP''@|$(HAVE_DECL_WCSDUP)|g' \
4288 -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
4289 | \
4290 sed -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
4291 -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
4292 -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
4293 + -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
4294 -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
4295 -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
4296 -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
4297 @@ -2499,11 +2771,12 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
4298 -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
4299 -e 's|@''REPLACE_WCSWIDTH''@|$(REPLACE_WCSWIDTH)|g' \
4300 -e 's|@''REPLACE_WCSFTIME''@|$(REPLACE_WCSFTIME)|g' \
4301 + -e 's|@''REPLACE_WCSTOK''@|$(REPLACE_WCSTOK)|g' \
4302 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
4303 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
4304 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
4305 - } > $@-t && \
4306 - mv $@-t $@
4307 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
4308 + > $@-t
4309 + $(AM_V_at)mv $@-t $@
4310 MOSTLYCLEANFILES += wchar.h wchar.h-t
4311
4312 EXTRA_DIST += wchar.in.h
4313 @@ -2522,6 +2795,8 @@ EXTRA_DIST += xalloc.h
4314
4315 libgnu_a_SOURCES += xalloc-die.c
4316
4317 +EXTRA_DIST += xalloc.h
4318 +
4319 ## end gnulib module xalloc-die
4320
4321 ## begin gnulib module xalloc-oversized
4322 @@ -2545,3 +2820,7 @@ mostlyclean-local: mostlyclean-generic
4323 fi; \
4324 done; \
4325 :
4326 +distclean-local: distclean-gnulib-libobjs
4327 +distclean-gnulib-libobjs:
4328 + -rm -f @gl_LIBOBJDEPS@
4329 +maintainer-clean-local: distclean-gnulib-libobjs
4330
4331 diff --git a/autotools/gnulib/Makefile.in b/autotools/gnulib/Makefile.in
4332 index e3a99d4..d1b2063 100644
4333 --- a/autotools/gnulib/Makefile.in
4334 +++ b/autotools/gnulib/Makefile.in
4335 @@ -14,11 +14,11 @@
4336
4337 @SET_MAKE@
4338
4339 -# Copyright (C) 2002-2019 Free Software Foundation, Inc.
4340 +# Copyright (C) 2002-2022 Free Software Foundation, Inc.
4341 #
4342 # This file is free software; you can redistribute it and/or modify
4343 # it under the terms of the GNU General Public License as published by
4344 -# the Free Software Foundation; either version 3 of the License, or
4345 +# the Free Software Foundation, either version 3 of the License, or
4346 # (at your option) any later version.
4347 #
4348 # This file is distributed in the hope that it will be useful,
4349 @@ -145,12 +145,77 @@ PRE_UNINSTALL = :
4350 POST_UNINSTALL = :
4351 build_triplet = @build@
4352 host_triplet = @host@
4353 +@GL_COND_OBJ_CANONICALIZE_LGPL_TRUE@am__append_1 = canonicalize-lgpl.c
4354 +@GL_COND_OBJ_CHDIR_LONG_TRUE@am__append_2 = chdir-long.c
4355 +@GL_COND_OBJ_CLOSE_TRUE@am__append_3 = close.c
4356 +@GL_COND_OBJ_CLOSEDIR_TRUE@am__append_4 = closedir.c
4357 +@GL_COND_OBJ_DIRFD_TRUE@am__append_5 = dirfd.c
4358 +@GL_COND_OBJ_DUP_TRUE@am__append_6 = dup.c
4359 +@GL_COND_OBJ_DUP2_TRUE@am__append_7 = dup2.c
4360 +@GL_COND_OBJ_ERROR_TRUE@am__append_8 = error.c
4361 +@GL_COND_OBJ_EUIDACCESS_TRUE@am__append_9 = euidaccess.c
4362 +@GL_COND_OBJ_FACCESSAT_TRUE@am__append_10 = faccessat.c
4363 +@GL_COND_OBJ_FCHDIR_TRUE@am__append_11 = fchdir.c
4364 +@GL_COND_OBJ_FCNTL_TRUE@am__append_12 = fcntl.c
4365 +@GL_COND_OBJ_FDOPENDIR_TRUE@am__append_13 = fdopendir.c
4366 +@GL_COND_OBJ_FLOAT_TRUE@am__append_14 = float.c
4367 +@GL_COND_OBJ_ITOLD_TRUE@am__append_15 = itold.c
4368 +@GL_COND_OBJ_FREE_TRUE@am__append_16 = free.c
4369 +@GL_COND_OBJ_FSTAT_TRUE@am__append_17 = fstat.c
4370 +@GL_COND_OBJ_FSTATAT_TRUE@am__append_18 = fstatat.c
4371 +@GL_COND_OBJ_FUTIMENS_TRUE@am__append_19 = futimens.c
4372 +@GL_COND_OBJ_GETCWD_LGPL_TRUE@am__append_20 = getcwd-lgpl.c
4373 +@GL_COND_OBJ_GETDELIM_TRUE@am__append_21 = getdelim.c
4374 +@GL_COND_OBJ_GETDTABLESIZE_TRUE@am__append_22 = getdtablesize.c
4375 +@GL_COND_OBJ_GETGROUPS_TRUE@am__append_23 = getgroups.c
4376 +@GL_COND_OBJ_GETLINE_TRUE@am__append_24 = getline.c
4377 +@GL_COND_OBJ_GETOPT_TRUE@am__append_25 = getopt.c getopt1.c
4378 +@GL_COND_OBJ_GETTIMEOFDAY_TRUE@am__append_26 = gettimeofday.c
4379 +@GL_COND_OBJ_GROUP_MEMBER_TRUE@am__append_27 = group-member.c
4380 +@GL_COND_OBJ_LSTAT_TRUE@am__append_28 = lstat.c
4381 +@GL_COND_OBJ_MEMCHR_TRUE@am__append_29 = memchr.c
4382 +@GL_COND_OBJ_MEMPCPY_TRUE@am__append_30 = mempcpy.c
4383 +@GL_COND_OBJ_MEMRCHR_TRUE@am__append_31 = memrchr.c
4384 +@GL_COND_OBJ_MKDIR_TRUE@am__append_32 = mkdir.c
4385 +@GL_COND_OBJ_MKDIRAT_TRUE@am__append_33 = mkdirat.c
4386 +@GL_COND_OBJ_MSVC_INVAL_TRUE@am__append_34 = msvc-inval.c
4387 +@GL_COND_OBJ_MSVC_NOTHROW_TRUE@am__append_35 = msvc-nothrow.c
4388 +@GL_COND_OBJ_OPEN_TRUE@am__append_36 = open.c
4389 +@GL_COND_OBJ_OPENAT_TRUE@am__append_37 = openat.c
4390 +@GL_COND_OBJ_OPENDIR_TRUE@am__append_38 = opendir.c
4391 +@GL_COND_OBJ_PIPE_TRUE@am__append_39 = pipe.c
4392 +@GL_COND_OBJ_RAWMEMCHR_TRUE@am__append_40 = rawmemchr.c
4393 +@GL_COND_OBJ_READLINK_TRUE@am__append_41 = readlink.c
4394 +@GL_COND_OBJ_READLINKAT_TRUE@am__append_42 = readlinkat.c
4395 +@GL_COND_OBJ_REALLOCARRAY_TRUE@am__append_43 = reallocarray.c
4396 +@GL_COND_OBJ_RENAME_TRUE@am__append_44 = rename.c
4397 +@GL_COND_OBJ_RENAMEAT_TRUE@am__append_45 = renameat.c
4398 +@GL_COND_OBJ_RMDIR_TRUE@am__append_46 = rmdir.c
4399 +@GL_COND_OBJ_SIGNBIT3_TRUE@am__append_47 = signbitf.c signbitd.c signbitl.c
4400 +@GL_COND_OBJ_STAT_TRUE@am__append_48 = stat.c
4401 +@GL_COND_OBJ_STDIO_READ_TRUE@am__append_49 = stdio-read.c
4402 +@GL_COND_OBJ_STDIO_WRITE_TRUE@am__append_50 = stdio-write.c
4403 +@GL_COND_OBJ_STRCASECMP_TRUE@am__append_51 = strcasecmp.c
4404 +@GL_COND_OBJ_STRNCASECMP_TRUE@am__append_52 = strncasecmp.c
4405 +@GL_COND_OBJ_STRDUP_TRUE@am__append_53 = strdup.c
4406 +@GL_COND_OBJ_STRERROR_TRUE@am__append_54 = strerror.c
4407 +@GL_COND_OBJ_STRERROR_OVERRIDE_TRUE@am__append_55 = strerror-override.c
4408 +@GL_COND_OBJ_STRNCAT_TRUE@am__append_56 = strncat.c
4409 +@GL_COND_OBJ_SYMLINK_TRUE@am__append_57 = symlink.c
4410 +@GL_COND_OBJ_SYMLINKAT_TRUE@am__append_58 = symlinkat.c
4411 +@GL_COND_OBJ_UNLINK_TRUE@am__append_59 = unlink.c
4412 +@GL_COND_OBJ_UNLINKAT_TRUE@am__append_60 = unlinkat.c
4413 +@GL_COND_OBJ_UTIME_TRUE@am__append_61 = utime.c
4414 +@GL_COND_OBJ_UTIMENSAT_TRUE@am__append_62 = utimensat.c
4415 subdir = autotools/gnulib
4416 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
4417 am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
4418 + $(top_srcdir)/autotools/m4/__inline.m4 \
4419 $(top_srcdir)/autotools/m4/absolute-header.m4 \
4420 $(top_srcdir)/autotools/m4/ac_check_sendfile.m4 \
4421 $(top_srcdir)/autotools/m4/alloca.m4 \
4422 + $(top_srcdir)/autotools/m4/builtin-expect.m4 \
4423 + $(top_srcdir)/autotools/m4/calloc.m4 \
4424 $(top_srcdir)/autotools/m4/canonicalize.m4 \
4425 $(top_srcdir)/autotools/m4/chdir-long.m4 \
4426 $(top_srcdir)/autotools/m4/clock_time.m4 \
4427 @@ -158,7 +223,6 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
4428 $(top_srcdir)/autotools/m4/closedir.m4 \
4429 $(top_srcdir)/autotools/m4/dirent_h.m4 \
4430 $(top_srcdir)/autotools/m4/dirfd.m4 \
4431 - $(top_srcdir)/autotools/m4/dirname.m4 \
4432 $(top_srcdir)/autotools/m4/double-slash-root.m4 \
4433 $(top_srcdir)/autotools/m4/dup.m4 \
4434 $(top_srcdir)/autotools/m4/dup2.m4 \
4435 @@ -180,6 +244,7 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
4436 $(top_srcdir)/autotools/m4/filenamecat.m4 \
4437 $(top_srcdir)/autotools/m4/float_h.m4 \
4438 $(top_srcdir)/autotools/m4/fpieee.m4 \
4439 + $(top_srcdir)/autotools/m4/free.m4 \
4440 $(top_srcdir)/autotools/m4/frexp.m4 \
4441 $(top_srcdir)/autotools/m4/frexpl.m4 \
4442 $(top_srcdir)/autotools/m4/fstat.m4 \
4443 @@ -199,7 +264,6 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
4444 $(top_srcdir)/autotools/m4/group-member.m4 \
4445 $(top_srcdir)/autotools/m4/include_next.m4 \
4446 $(top_srcdir)/autotools/m4/intmax_t.m4 \
4447 - $(top_srcdir)/autotools/m4/inttypes-pri.m4 \
4448 $(top_srcdir)/autotools/m4/inttypes.m4 \
4449 $(top_srcdir)/autotools/m4/inttypes_h.m4 \
4450 $(top_srcdir)/autotools/m4/isnand.m4 \
4451 @@ -209,8 +273,6 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
4452 $(top_srcdir)/autotools/m4/ldexpl.m4 \
4453 $(top_srcdir)/autotools/m4/libtool.m4 \
4454 $(top_srcdir)/autotools/m4/limits-h.m4 \
4455 - $(top_srcdir)/autotools/m4/localtime-buffer.m4 \
4456 - $(top_srcdir)/autotools/m4/longlong.m4 \
4457 $(top_srcdir)/autotools/m4/lstat.m4 \
4458 $(top_srcdir)/autotools/m4/ltoptions.m4 \
4459 $(top_srcdir)/autotools/m4/ltsugar.m4 \
4460 @@ -222,6 +284,7 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
4461 $(top_srcdir)/autotools/m4/memchr.m4 \
4462 $(top_srcdir)/autotools/m4/mempcpy.m4 \
4463 $(top_srcdir)/autotools/m4/memrchr.m4 \
4464 + $(top_srcdir)/autotools/m4/minmax.m4 \
4465 $(top_srcdir)/autotools/m4/mkdir.m4 \
4466 $(top_srcdir)/autotools/m4/mkdirat.m4 \
4467 $(top_srcdir)/autotools/m4/mmap-anon.m4 \
4468 @@ -232,16 +295,20 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
4469 $(top_srcdir)/autotools/m4/nocrash.m4 \
4470 $(top_srcdir)/autotools/m4/off_t.m4 \
4471 $(top_srcdir)/autotools/m4/open-cloexec.m4 \
4472 + $(top_srcdir)/autotools/m4/open-slash.m4 \
4473 $(top_srcdir)/autotools/m4/open.m4 \
4474 $(top_srcdir)/autotools/m4/openat.m4 \
4475 $(top_srcdir)/autotools/m4/opendir.m4 \
4476 $(top_srcdir)/autotools/m4/pathmax.m4 \
4477 + $(top_srcdir)/autotools/m4/pipe.m4 \
4478 $(top_srcdir)/autotools/m4/printf-frexp.m4 \
4479 $(top_srcdir)/autotools/m4/printf-frexpl.m4 \
4480 $(top_srcdir)/autotools/m4/printf.m4 \
4481 + $(top_srcdir)/autotools/m4/rawmemchr.m4 \
4482 $(top_srcdir)/autotools/m4/readlink.m4 \
4483 $(top_srcdir)/autotools/m4/readlinkat.m4 \
4484 $(top_srcdir)/autotools/m4/realloc.m4 \
4485 + $(top_srcdir)/autotools/m4/reallocarray.m4 \
4486 $(top_srcdir)/autotools/m4/rename.m4 \
4487 $(top_srcdir)/autotools/m4/renameat.m4 \
4488 $(top_srcdir)/autotools/m4/rmdir.m4 \
4489 @@ -251,6 +318,7 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
4490 $(top_srcdir)/autotools/m4/ssize_t.m4 \
4491 $(top_srcdir)/autotools/m4/stat-time.m4 \
4492 $(top_srcdir)/autotools/m4/stat.m4 \
4493 + $(top_srcdir)/autotools/m4/stdalign.m4 \
4494 $(top_srcdir)/autotools/m4/stdbool.m4 \
4495 $(top_srcdir)/autotools/m4/stddef_h.m4 \
4496 $(top_srcdir)/autotools/m4/stdint.m4 \
4497 @@ -289,7 +357,10 @@ am__aclocal_m4_deps = $(top_srcdir)/autotools/m4/00gnulib.m4 \
4498 $(top_srcdir)/autotools/m4/wchar_t.m4 \
4499 $(top_srcdir)/autotools/m4/wint_t.m4 \
4500 $(top_srcdir)/autotools/m4/xalloc.m4 \
4501 - $(top_srcdir)/autotools/m4/xsize.m4 $(top_srcdir)/configure.ac
4502 + $(top_srcdir)/autotools/m4/xsize.m4 \
4503 + $(top_srcdir)/autotools/m4/year2038.m4 \
4504 + $(top_srcdir)/autotools/m4/zzgnulib.m4 \
4505 + $(top_srcdir)/configure.ac
4506 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
4507 $(ACLOCAL_M4)
4508 DIST_COMMON = $(srcdir)/Makefile.am $(noinst_HEADERS) \
4509 @@ -306,17 +377,164 @@ am__v_AR_0 = @echo " AR " $@;
4510 am__v_AR_1 =
4511 libgnu_a_AR = $(AR) $(ARFLAGS)
4512 am__DEPENDENCIES_1 =
4513 -am_libgnu_a_OBJECTS = cloexec.$(OBJEXT) dirname-lgpl.$(OBJEXT) \
4514 - basename-lgpl.$(OBJEXT) stripslash.$(OBJEXT) \
4515 - exitfail.$(OBJEXT) fd-hook.$(OBJEXT) fd-safer-flag.$(OBJEXT) \
4516 - dup-safer-flag.$(OBJEXT) filenamecat-lgpl.$(OBJEXT) \
4517 - getprogname.$(OBJEXT) gettime.$(OBJEXT) malloca.$(OBJEXT) \
4518 - math.$(OBJEXT) openat-die.$(OBJEXT) printf-frexp.$(OBJEXT) \
4519 - printf-frexpl.$(OBJEXT) renameatu.$(OBJEXT) save-cwd.$(OBJEXT) \
4520 - stat-time.$(OBJEXT) statat.$(OBJEXT) timespec.$(OBJEXT) \
4521 - unistd.$(OBJEXT) dup-safer.$(OBJEXT) fd-safer.$(OBJEXT) \
4522 - pipe-safer.$(OBJEXT) utimens.$(OBJEXT) xmalloc.$(OBJEXT) \
4523 - xalloc-die.$(OBJEXT) xsize.$(OBJEXT)
4524 +am__libgnu_a_SOURCES_DIST = openat-priv.h openat-proc.c \
4525 + basename-lgpl.c canonicalize-lgpl.c chdir-long.c cloexec.c \
4526 + close.c closedir.c dirfd.c dirname-lgpl.c stripslash.c dup.c \
4527 + dup2.c error.c euidaccess.c exitfail.c faccessat.c fchdir.c \
4528 + fcntl.c fd-hook.c fd-safer-flag.c dup-safer-flag.c fdopendir.c \
4529 + filenamecat-lgpl.c float.c itold.c free.c fstat.c fstatat.c \
4530 + futimens.c getcwd-lgpl.c getdelim.c getdtablesize.c \
4531 + getgroups.c getline.c getopt.c getopt1.c getprogname.h \
4532 + getprogname.c gettext.h gettime.c gettimeofday.c \
4533 + group-member.c ialloc.c idx.h lstat.c malloca.c math.c \
4534 + memchr.c mempcpy.c memrchr.c minmax.h mkdir.c mkdirat.c \
4535 + msvc-inval.c msvc-nothrow.c open.c openat.c openat-die.c \
4536 + opendir.c pipe.c printf-frexp.c printf-frexpl.c rawmemchr.c \
4537 + readlink.c readlinkat.c reallocarray.c rename.c renameat.c \
4538 + renameatu.c rmdir.c save-cwd.c malloc/scratch_buffer_dupfree.c \
4539 + malloc/scratch_buffer_grow.c \
4540 + malloc/scratch_buffer_grow_preserve.c \
4541 + malloc/scratch_buffer_set_array_size.c signbitf.c signbitd.c \
4542 + signbitl.c size_max.h stat.c stat-time.c statat.c stdio-read.c \
4543 + stdio-write.c strcasecmp.c strncasecmp.c strdup.c strerror.c \
4544 + strerror-override.c strncat.c symlink.c symlinkat.c timespec.c \
4545 + unistd.c dup-safer.c fd-safer.c pipe-safer.c unlink.c \
4546 + unlinkat.c utime.c utimens.c utimensat.c xmalloc.c \
4547 + xalloc-die.c xsize.h xsize.c
4548 +@GL_COND_OBJ_CANONICALIZE_LGPL_TRUE@am__objects_1 = libgnu_a-canonicalize-lgpl.$(OBJEXT)
4549 +@GL_COND_OBJ_CHDIR_LONG_TRUE@am__objects_2 = \
4550 +@GL_COND_OBJ_CHDIR_LONG_TRUE@ libgnu_a-chdir-long.$(OBJEXT)
4551 +@GL_COND_OBJ_CLOSE_TRUE@am__objects_3 = libgnu_a-close.$(OBJEXT)
4552 +@GL_COND_OBJ_CLOSEDIR_TRUE@am__objects_4 = \
4553 +@GL_COND_OBJ_CLOSEDIR_TRUE@ libgnu_a-closedir.$(OBJEXT)
4554 +@GL_COND_OBJ_DIRFD_TRUE@am__objects_5 = libgnu_a-dirfd.$(OBJEXT)
4555 +@GL_COND_OBJ_DUP_TRUE@am__objects_6 = libgnu_a-dup.$(OBJEXT)
4556 +@GL_COND_OBJ_DUP2_TRUE@am__objects_7 = libgnu_a-dup2.$(OBJEXT)
4557 +@GL_COND_OBJ_ERROR_TRUE@am__objects_8 = libgnu_a-error.$(OBJEXT)
4558 +@GL_COND_OBJ_EUIDACCESS_TRUE@am__objects_9 = \
4559 +@GL_COND_OBJ_EUIDACCESS_TRUE@ libgnu_a-euidaccess.$(OBJEXT)
4560 +@GL_COND_OBJ_FACCESSAT_TRUE@am__objects_10 = \
4561 +@GL_COND_OBJ_FACCESSAT_TRUE@ libgnu_a-faccessat.$(OBJEXT)
4562 +@GL_COND_OBJ_FCHDIR_TRUE@am__objects_11 = libgnu_a-fchdir.$(OBJEXT)
4563 +@GL_COND_OBJ_FCNTL_TRUE@am__objects_12 = libgnu_a-fcntl.$(OBJEXT)
4564 +@GL_COND_OBJ_FDOPENDIR_TRUE@am__objects_13 = \
4565 +@GL_COND_OBJ_FDOPENDIR_TRUE@ libgnu_a-fdopendir.$(OBJEXT)
4566 +@GL_COND_OBJ_FLOAT_TRUE@am__objects_14 = libgnu_a-float.$(OBJEXT)
4567 +@GL_COND_OBJ_ITOLD_TRUE@am__objects_15 = libgnu_a-itold.$(OBJEXT)
4568 +@GL_COND_OBJ_FREE_TRUE@am__objects_16 = libgnu_a-free.$(OBJEXT)
4569 +@GL_COND_OBJ_FSTAT_TRUE@am__objects_17 = libgnu_a-fstat.$(OBJEXT)
4570 +@GL_COND_OBJ_FSTATAT_TRUE@am__objects_18 = libgnu_a-fstatat.$(OBJEXT)
4571 +@GL_COND_OBJ_FUTIMENS_TRUE@am__objects_19 = \
4572 +@GL_COND_OBJ_FUTIMENS_TRUE@ libgnu_a-futimens.$(OBJEXT)
4573 +@GL_COND_OBJ_GETCWD_LGPL_TRUE@am__objects_20 = \
4574 +@GL_COND_OBJ_GETCWD_LGPL_TRUE@ libgnu_a-getcwd-lgpl.$(OBJEXT)
4575 +@GL_COND_OBJ_GETDELIM_TRUE@am__objects_21 = \
4576 +@GL_COND_OBJ_GETDELIM_TRUE@ libgnu_a-getdelim.$(OBJEXT)
4577 +@GL_COND_OBJ_GETDTABLESIZE_TRUE@am__objects_22 = libgnu_a-getdtablesize.$(OBJEXT)
4578 +@GL_COND_OBJ_GETGROUPS_TRUE@am__objects_23 = \
4579 +@GL_COND_OBJ_GETGROUPS_TRUE@ libgnu_a-getgroups.$(OBJEXT)
4580 +@GL_COND_OBJ_GETLINE_TRUE@am__objects_24 = libgnu_a-getline.$(OBJEXT)
4581 +@GL_COND_OBJ_GETOPT_TRUE@am__objects_25 = libgnu_a-getopt.$(OBJEXT) \
4582 +@GL_COND_OBJ_GETOPT_TRUE@ libgnu_a-getopt1.$(OBJEXT)
4583 +@GL_COND_OBJ_GETTIMEOFDAY_TRUE@am__objects_26 = libgnu_a-gettimeofday.$(OBJEXT)
4584 +@GL_COND_OBJ_GROUP_MEMBER_TRUE@am__objects_27 = libgnu_a-group-member.$(OBJEXT)
4585 +@GL_COND_OBJ_LSTAT_TRUE@am__objects_28 = libgnu_a-lstat.$(OBJEXT)
4586 +@GL_COND_OBJ_MEMCHR_TRUE@am__objects_29 = libgnu_a-memchr.$(OBJEXT)
4587 +@GL_COND_OBJ_MEMPCPY_TRUE@am__objects_30 = libgnu_a-mempcpy.$(OBJEXT)
4588 +@GL_COND_OBJ_MEMRCHR_TRUE@am__objects_31 = libgnu_a-memrchr.$(OBJEXT)
4589 +@GL_COND_OBJ_MKDIR_TRUE@am__objects_32 = libgnu_a-mkdir.$(OBJEXT)
4590 +@GL_COND_OBJ_MKDIRAT_TRUE@am__objects_33 = libgnu_a-mkdirat.$(OBJEXT)
4591 +@GL_COND_OBJ_MSVC_INVAL_TRUE@am__objects_34 = \
4592 +@GL_COND_OBJ_MSVC_INVAL_TRUE@ libgnu_a-msvc-inval.$(OBJEXT)
4593 +@GL_COND_OBJ_MSVC_NOTHROW_TRUE@am__objects_35 = libgnu_a-msvc-nothrow.$(OBJEXT)
4594 +@GL_COND_OBJ_OPEN_TRUE@am__objects_36 = libgnu_a-open.$(OBJEXT)
4595 +@GL_COND_OBJ_OPENAT_TRUE@am__objects_37 = libgnu_a-openat.$(OBJEXT)
4596 +@GL_COND_OBJ_OPENDIR_TRUE@am__objects_38 = libgnu_a-opendir.$(OBJEXT)
4597 +@GL_COND_OBJ_PIPE_TRUE@am__objects_39 = libgnu_a-pipe.$(OBJEXT)
4598 +@GL_COND_OBJ_RAWMEMCHR_TRUE@am__objects_40 = \
4599 +@GL_COND_OBJ_RAWMEMCHR_TRUE@ libgnu_a-rawmemchr.$(OBJEXT)
4600 +@GL_COND_OBJ_READLINK_TRUE@am__objects_41 = \
4601 +@GL_COND_OBJ_READLINK_TRUE@ libgnu_a-readlink.$(OBJEXT)
4602 +@GL_COND_OBJ_READLINKAT_TRUE@am__objects_42 = \
4603 +@GL_COND_OBJ_READLINKAT_TRUE@ libgnu_a-readlinkat.$(OBJEXT)
4604 +@GL_COND_OBJ_REALLOCARRAY_TRUE@am__objects_43 = libgnu_a-reallocarray.$(OBJEXT)
4605 +@GL_COND_OBJ_RENAME_TRUE@am__objects_44 = libgnu_a-rename.$(OBJEXT)
4606 +@GL_COND_OBJ_RENAMEAT_TRUE@am__objects_45 = \
4607 +@GL_COND_OBJ_RENAMEAT_TRUE@ libgnu_a-renameat.$(OBJEXT)
4608 +@GL_COND_OBJ_RMDIR_TRUE@am__objects_46 = libgnu_a-rmdir.$(OBJEXT)
4609 +am__dirstamp = $(am__leading_dot)dirstamp
4610 +@GL_COND_OBJ_SIGNBIT3_TRUE@am__objects_47 = \
4611 +@GL_COND_OBJ_SIGNBIT3_TRUE@ libgnu_a-signbitf.$(OBJEXT) \
4612 +@GL_COND_OBJ_SIGNBIT3_TRUE@ libgnu_a-signbitd.$(OBJEXT) \
4613 +@GL_COND_OBJ_SIGNBIT3_TRUE@ libgnu_a-signbitl.$(OBJEXT)
4614 +@GL_COND_OBJ_STAT_TRUE@am__objects_48 = libgnu_a-stat.$(OBJEXT)
4615 +@GL_COND_OBJ_STDIO_READ_TRUE@am__objects_49 = \
4616 +@GL_COND_OBJ_STDIO_READ_TRUE@ libgnu_a-stdio-read.$(OBJEXT)
4617 +@GL_COND_OBJ_STDIO_WRITE_TRUE@am__objects_50 = \
4618 +@GL_COND_OBJ_STDIO_WRITE_TRUE@ libgnu_a-stdio-write.$(OBJEXT)
4619 +@GL_COND_OBJ_STRCASECMP_TRUE@am__objects_51 = \
4620 +@GL_COND_OBJ_STRCASECMP_TRUE@ libgnu_a-strcasecmp.$(OBJEXT)
4621 +@GL_COND_OBJ_STRNCASECMP_TRUE@am__objects_52 = \
4622 +@GL_COND_OBJ_STRNCASECMP_TRUE@ libgnu_a-strncasecmp.$(OBJEXT)
4623 +@GL_COND_OBJ_STRDUP_TRUE@am__objects_53 = libgnu_a-strdup.$(OBJEXT)
4624 +@GL_COND_OBJ_STRERROR_TRUE@am__objects_54 = \
4625 +@GL_COND_OBJ_STRERROR_TRUE@ libgnu_a-strerror.$(OBJEXT)
4626 +@GL_COND_OBJ_STRERROR_OVERRIDE_TRUE@am__objects_55 = libgnu_a-strerror-override.$(OBJEXT)
4627 +@GL_COND_OBJ_STRNCAT_TRUE@am__objects_56 = libgnu_a-strncat.$(OBJEXT)
4628 +@GL_COND_OBJ_SYMLINK_TRUE@am__objects_57 = libgnu_a-symlink.$(OBJEXT)
4629 +@GL_COND_OBJ_SYMLINKAT_TRUE@am__objects_58 = \
4630 +@GL_COND_OBJ_SYMLINKAT_TRUE@ libgnu_a-symlinkat.$(OBJEXT)
4631 +@GL_COND_OBJ_UNLINK_TRUE@am__objects_59 = libgnu_a-unlink.$(OBJEXT)
4632 +@GL_COND_OBJ_UNLINKAT_TRUE@am__objects_60 = \
4633 +@GL_COND_OBJ_UNLINKAT_TRUE@ libgnu_a-unlinkat.$(OBJEXT)
4634 +@GL_COND_OBJ_UTIME_TRUE@am__objects_61 = libgnu_a-utime.$(OBJEXT)
4635 +@GL_COND_OBJ_UTIMENSAT_TRUE@am__objects_62 = \
4636 +@GL_COND_OBJ_UTIMENSAT_TRUE@ libgnu_a-utimensat.$(OBJEXT)
4637 +am_libgnu_a_OBJECTS = libgnu_a-openat-proc.$(OBJEXT) \
4638 + libgnu_a-basename-lgpl.$(OBJEXT) $(am__objects_1) \
4639 + $(am__objects_2) libgnu_a-cloexec.$(OBJEXT) $(am__objects_3) \
4640 + $(am__objects_4) $(am__objects_5) \
4641 + libgnu_a-dirname-lgpl.$(OBJEXT) libgnu_a-stripslash.$(OBJEXT) \
4642 + $(am__objects_6) $(am__objects_7) $(am__objects_8) \
4643 + $(am__objects_9) libgnu_a-exitfail.$(OBJEXT) $(am__objects_10) \
4644 + $(am__objects_11) $(am__objects_12) libgnu_a-fd-hook.$(OBJEXT) \
4645 + libgnu_a-fd-safer-flag.$(OBJEXT) \
4646 + libgnu_a-dup-safer-flag.$(OBJEXT) $(am__objects_13) \
4647 + libgnu_a-filenamecat-lgpl.$(OBJEXT) $(am__objects_14) \
4648 + $(am__objects_15) $(am__objects_16) $(am__objects_17) \
4649 + $(am__objects_18) $(am__objects_19) $(am__objects_20) \
4650 + $(am__objects_21) $(am__objects_22) $(am__objects_23) \
4651 + $(am__objects_24) $(am__objects_25) \
4652 + libgnu_a-getprogname.$(OBJEXT) libgnu_a-gettime.$(OBJEXT) \
4653 + $(am__objects_26) $(am__objects_27) libgnu_a-ialloc.$(OBJEXT) \
4654 + $(am__objects_28) libgnu_a-malloca.$(OBJEXT) \
4655 + libgnu_a-math.$(OBJEXT) $(am__objects_29) $(am__objects_30) \
4656 + $(am__objects_31) $(am__objects_32) $(am__objects_33) \
4657 + $(am__objects_34) $(am__objects_35) $(am__objects_36) \
4658 + $(am__objects_37) libgnu_a-openat-die.$(OBJEXT) \
4659 + $(am__objects_38) $(am__objects_39) \
4660 + libgnu_a-printf-frexp.$(OBJEXT) \
4661 + libgnu_a-printf-frexpl.$(OBJEXT) $(am__objects_40) \
4662 + $(am__objects_41) $(am__objects_42) $(am__objects_43) \
4663 + $(am__objects_44) $(am__objects_45) \
4664 + libgnu_a-renameatu.$(OBJEXT) $(am__objects_46) \
4665 + libgnu_a-save-cwd.$(OBJEXT) \
4666 + malloc/libgnu_a-scratch_buffer_dupfree.$(OBJEXT) \
4667 + malloc/libgnu_a-scratch_buffer_grow.$(OBJEXT) \
4668 + malloc/libgnu_a-scratch_buffer_grow_preserve.$(OBJEXT) \
4669 + malloc/libgnu_a-scratch_buffer_set_array_size.$(OBJEXT) \
4670 + $(am__objects_47) $(am__objects_48) \
4671 + libgnu_a-stat-time.$(OBJEXT) libgnu_a-statat.$(OBJEXT) \
4672 + $(am__objects_49) $(am__objects_50) $(am__objects_51) \
4673 + $(am__objects_52) $(am__objects_53) $(am__objects_54) \
4674 + $(am__objects_55) $(am__objects_56) $(am__objects_57) \
4675 + $(am__objects_58) libgnu_a-timespec.$(OBJEXT) \
4676 + libgnu_a-unistd.$(OBJEXT) libgnu_a-dup-safer.$(OBJEXT) \
4677 + libgnu_a-fd-safer.$(OBJEXT) libgnu_a-pipe-safer.$(OBJEXT) \
4678 + $(am__objects_59) $(am__objects_60) $(am__objects_61) \
4679 + libgnu_a-utimens.$(OBJEXT) $(am__objects_62) \
4680 + libgnu_a-xmalloc.$(OBJEXT) libgnu_a-xalloc-die.$(OBJEXT) \
4681 + libgnu_a-xsize.$(OBJEXT)
4682 libgnu_a_OBJECTS = $(am_libgnu_a_OBJECTS)
4683 AM_V_P = $(am__v_P_@AM_V@)
4684 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
4685 @@ -333,67 +551,110 @@ am__v_at_1 =
4686 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
4687 depcomp = $(SHELL) $(top_srcdir)/depcomp
4688 am__maybe_remake_depfiles = depfiles
4689 -am__depfiles_remade = ./$(DEPDIR)/asnprintf.Po ./$(DEPDIR)/asprintf.Po \
4690 - ./$(DEPDIR)/at-func.Po ./$(DEPDIR)/at-func2.Po \
4691 - ./$(DEPDIR)/basename-lgpl.Po ./$(DEPDIR)/canonicalize-lgpl.Po \
4692 - ./$(DEPDIR)/chdir-long.Po ./$(DEPDIR)/cloexec.Po \
4693 - ./$(DEPDIR)/close.Po ./$(DEPDIR)/closedir.Po \
4694 - ./$(DEPDIR)/dirfd.Po ./$(DEPDIR)/dirname-lgpl.Po \
4695 - ./$(DEPDIR)/dup-safer-flag.Po ./$(DEPDIR)/dup-safer.Po \
4696 - ./$(DEPDIR)/dup.Po ./$(DEPDIR)/dup2.Po ./$(DEPDIR)/error.Po \
4697 - ./$(DEPDIR)/euidaccess.Po ./$(DEPDIR)/exitfail.Po \
4698 - ./$(DEPDIR)/faccessat.Po ./$(DEPDIR)/fchdir.Po \
4699 - ./$(DEPDIR)/fcntl.Po ./$(DEPDIR)/fd-hook.Po \
4700 - ./$(DEPDIR)/fd-safer-flag.Po ./$(DEPDIR)/fd-safer.Po \
4701 - ./$(DEPDIR)/fdopendir.Po ./$(DEPDIR)/filenamecat-lgpl.Po \
4702 - ./$(DEPDIR)/float.Po ./$(DEPDIR)/frexp.Po \
4703 - ./$(DEPDIR)/frexpl.Po ./$(DEPDIR)/fstat.Po \
4704 - ./$(DEPDIR)/fstatat.Po ./$(DEPDIR)/futimens.Po \
4705 - ./$(DEPDIR)/getcwd-lgpl.Po ./$(DEPDIR)/getdelim.Po \
4706 - ./$(DEPDIR)/getdtablesize.Po ./$(DEPDIR)/getgroups.Po \
4707 - ./$(DEPDIR)/getline.Po ./$(DEPDIR)/getopt.Po \
4708 - ./$(DEPDIR)/getopt1.Po ./$(DEPDIR)/getprogname.Po \
4709 - ./$(DEPDIR)/gettime.Po ./$(DEPDIR)/gettimeofday.Po \
4710 - ./$(DEPDIR)/group-member.Po ./$(DEPDIR)/isnan.Po \
4711 - ./$(DEPDIR)/isnand.Po ./$(DEPDIR)/isnanf.Po \
4712 - ./$(DEPDIR)/isnanl.Po ./$(DEPDIR)/itold.Po \
4713 - ./$(DEPDIR)/localtime-buffer.Po ./$(DEPDIR)/lstat.Po \
4714 - ./$(DEPDIR)/malloc.Po ./$(DEPDIR)/malloca.Po \
4715 - ./$(DEPDIR)/math.Po ./$(DEPDIR)/memchr.Po \
4716 - ./$(DEPDIR)/mempcpy.Po ./$(DEPDIR)/memrchr.Po \
4717 - ./$(DEPDIR)/mkdir.Po ./$(DEPDIR)/mkdirat.Po \
4718 - ./$(DEPDIR)/msvc-inval.Po ./$(DEPDIR)/msvc-nothrow.Po \
4719 - ./$(DEPDIR)/open.Po ./$(DEPDIR)/openat-die.Po \
4720 - ./$(DEPDIR)/openat-proc.Po ./$(DEPDIR)/openat.Po \
4721 - ./$(DEPDIR)/opendir.Po ./$(DEPDIR)/pipe-safer.Po \
4722 - ./$(DEPDIR)/printf-args.Po ./$(DEPDIR)/printf-frexp.Po \
4723 - ./$(DEPDIR)/printf-frexpl.Po ./$(DEPDIR)/printf-parse.Po \
4724 - ./$(DEPDIR)/readlink.Po ./$(DEPDIR)/readlinkat.Po \
4725 - ./$(DEPDIR)/realloc.Po ./$(DEPDIR)/rename.Po \
4726 - ./$(DEPDIR)/renameat.Po ./$(DEPDIR)/renameatu.Po \
4727 - ./$(DEPDIR)/rmdir.Po ./$(DEPDIR)/save-cwd.Po \
4728 - ./$(DEPDIR)/signbitd.Po ./$(DEPDIR)/signbitf.Po \
4729 - ./$(DEPDIR)/signbitl.Po ./$(DEPDIR)/stat-time.Po \
4730 - ./$(DEPDIR)/stat-w32.Po ./$(DEPDIR)/stat.Po \
4731 - ./$(DEPDIR)/statat.Po ./$(DEPDIR)/strcasecmp.Po \
4732 - ./$(DEPDIR)/strcasestr.Po ./$(DEPDIR)/strdup.Po \
4733 - ./$(DEPDIR)/strerror-override.Po ./$(DEPDIR)/strerror.Po \
4734 - ./$(DEPDIR)/stripslash.Po ./$(DEPDIR)/strncasecmp.Po \
4735 - ./$(DEPDIR)/strncat.Po ./$(DEPDIR)/symlink.Po \
4736 - ./$(DEPDIR)/symlinkat.Po ./$(DEPDIR)/timespec.Po \
4737 - ./$(DEPDIR)/unistd.Po ./$(DEPDIR)/unlink.Po \
4738 - ./$(DEPDIR)/unlinkat.Po ./$(DEPDIR)/utime.Po \
4739 - ./$(DEPDIR)/utimens.Po ./$(DEPDIR)/utimensat.Po \
4740 - ./$(DEPDIR)/vasnprintf.Po ./$(DEPDIR)/vasprintf.Po \
4741 - ./$(DEPDIR)/xalloc-die.Po ./$(DEPDIR)/xmalloc.Po \
4742 - ./$(DEPDIR)/xsize.Po
4743 +am__depfiles_remade = ./$(DEPDIR)/libgnu_a-asnprintf.Po \
4744 + ./$(DEPDIR)/libgnu_a-asprintf.Po \
4745 + ./$(DEPDIR)/libgnu_a-at-func.Po \
4746 + ./$(DEPDIR)/libgnu_a-at-func2.Po \
4747 + ./$(DEPDIR)/libgnu_a-basename-lgpl.Po \
4748 + ./$(DEPDIR)/libgnu_a-calloc.Po \
4749 + ./$(DEPDIR)/libgnu_a-canonicalize-lgpl.Po \
4750 + ./$(DEPDIR)/libgnu_a-chdir-long.Po \
4751 + ./$(DEPDIR)/libgnu_a-cloexec.Po ./$(DEPDIR)/libgnu_a-close.Po \
4752 + ./$(DEPDIR)/libgnu_a-closedir.Po ./$(DEPDIR)/libgnu_a-dirfd.Po \
4753 + ./$(DEPDIR)/libgnu_a-dirname-lgpl.Po \
4754 + ./$(DEPDIR)/libgnu_a-dup-safer-flag.Po \
4755 + ./$(DEPDIR)/libgnu_a-dup-safer.Po ./$(DEPDIR)/libgnu_a-dup.Po \
4756 + ./$(DEPDIR)/libgnu_a-dup2.Po ./$(DEPDIR)/libgnu_a-error.Po \
4757 + ./$(DEPDIR)/libgnu_a-euidaccess.Po \
4758 + ./$(DEPDIR)/libgnu_a-exitfail.Po \
4759 + ./$(DEPDIR)/libgnu_a-faccessat.Po \
4760 + ./$(DEPDIR)/libgnu_a-fchdir.Po ./$(DEPDIR)/libgnu_a-fcntl.Po \
4761 + ./$(DEPDIR)/libgnu_a-fd-hook.Po \
4762 + ./$(DEPDIR)/libgnu_a-fd-safer-flag.Po \
4763 + ./$(DEPDIR)/libgnu_a-fd-safer.Po \
4764 + ./$(DEPDIR)/libgnu_a-fdopendir.Po \
4765 + ./$(DEPDIR)/libgnu_a-filenamecat-lgpl.Po \
4766 + ./$(DEPDIR)/libgnu_a-float.Po ./$(DEPDIR)/libgnu_a-free.Po \
4767 + ./$(DEPDIR)/libgnu_a-frexp.Po ./$(DEPDIR)/libgnu_a-frexpl.Po \
4768 + ./$(DEPDIR)/libgnu_a-fstat.Po ./$(DEPDIR)/libgnu_a-fstatat.Po \
4769 + ./$(DEPDIR)/libgnu_a-futimens.Po \
4770 + ./$(DEPDIR)/libgnu_a-getcwd-lgpl.Po \
4771 + ./$(DEPDIR)/libgnu_a-getdelim.Po \
4772 + ./$(DEPDIR)/libgnu_a-getdtablesize.Po \
4773 + ./$(DEPDIR)/libgnu_a-getgroups.Po \
4774 + ./$(DEPDIR)/libgnu_a-getline.Po ./$(DEPDIR)/libgnu_a-getopt.Po \
4775 + ./$(DEPDIR)/libgnu_a-getopt1.Po \
4776 + ./$(DEPDIR)/libgnu_a-getprogname.Po \
4777 + ./$(DEPDIR)/libgnu_a-gettime.Po \
4778 + ./$(DEPDIR)/libgnu_a-gettimeofday.Po \
4779 + ./$(DEPDIR)/libgnu_a-group-member.Po \
4780 + ./$(DEPDIR)/libgnu_a-ialloc.Po ./$(DEPDIR)/libgnu_a-isnan.Po \
4781 + ./$(DEPDIR)/libgnu_a-isnand.Po ./$(DEPDIR)/libgnu_a-isnanf.Po \
4782 + ./$(DEPDIR)/libgnu_a-isnanl.Po ./$(DEPDIR)/libgnu_a-itold.Po \
4783 + ./$(DEPDIR)/libgnu_a-lstat.Po ./$(DEPDIR)/libgnu_a-malloc.Po \
4784 + ./$(DEPDIR)/libgnu_a-malloca.Po ./$(DEPDIR)/libgnu_a-math.Po \
4785 + ./$(DEPDIR)/libgnu_a-memchr.Po ./$(DEPDIR)/libgnu_a-mempcpy.Po \
4786 + ./$(DEPDIR)/libgnu_a-memrchr.Po ./$(DEPDIR)/libgnu_a-mkdir.Po \
4787 + ./$(DEPDIR)/libgnu_a-mkdirat.Po \
4788 + ./$(DEPDIR)/libgnu_a-msvc-inval.Po \
4789 + ./$(DEPDIR)/libgnu_a-msvc-nothrow.Po \
4790 + ./$(DEPDIR)/libgnu_a-open.Po \
4791 + ./$(DEPDIR)/libgnu_a-openat-die.Po \
4792 + ./$(DEPDIR)/libgnu_a-openat-proc.Po \
4793 + ./$(DEPDIR)/libgnu_a-openat.Po ./$(DEPDIR)/libgnu_a-opendir.Po \
4794 + ./$(DEPDIR)/libgnu_a-pipe-safer.Po \
4795 + ./$(DEPDIR)/libgnu_a-pipe.Po \
4796 + ./$(DEPDIR)/libgnu_a-printf-args.Po \
4797 + ./$(DEPDIR)/libgnu_a-printf-frexp.Po \
4798 + ./$(DEPDIR)/libgnu_a-printf-frexpl.Po \
4799 + ./$(DEPDIR)/libgnu_a-printf-parse.Po \
4800 + ./$(DEPDIR)/libgnu_a-rawmemchr.Po \
4801 + ./$(DEPDIR)/libgnu_a-readlink.Po \
4802 + ./$(DEPDIR)/libgnu_a-readlinkat.Po \
4803 + ./$(DEPDIR)/libgnu_a-realloc.Po \
4804 + ./$(DEPDIR)/libgnu_a-reallocarray.Po \
4805 + ./$(DEPDIR)/libgnu_a-rename.Po \
4806 + ./$(DEPDIR)/libgnu_a-renameat.Po \
4807 + ./$(DEPDIR)/libgnu_a-renameatu.Po \
4808 + ./$(DEPDIR)/libgnu_a-rmdir.Po ./$(DEPDIR)/libgnu_a-save-cwd.Po \
4809 + ./$(DEPDIR)/libgnu_a-signbitd.Po \
4810 + ./$(DEPDIR)/libgnu_a-signbitf.Po \
4811 + ./$(DEPDIR)/libgnu_a-signbitl.Po \
4812 + ./$(DEPDIR)/libgnu_a-stat-time.Po \
4813 + ./$(DEPDIR)/libgnu_a-stat-w32.Po ./$(DEPDIR)/libgnu_a-stat.Po \
4814 + ./$(DEPDIR)/libgnu_a-statat.Po \
4815 + ./$(DEPDIR)/libgnu_a-stdio-read.Po \
4816 + ./$(DEPDIR)/libgnu_a-stdio-write.Po \
4817 + ./$(DEPDIR)/libgnu_a-strcasecmp.Po \
4818 + ./$(DEPDIR)/libgnu_a-strcasestr.Po \
4819 + ./$(DEPDIR)/libgnu_a-strdup.Po \
4820 + ./$(DEPDIR)/libgnu_a-strerror-override.Po \
4821 + ./$(DEPDIR)/libgnu_a-strerror.Po \
4822 + ./$(DEPDIR)/libgnu_a-stripslash.Po \
4823 + ./$(DEPDIR)/libgnu_a-strncasecmp.Po \
4824 + ./$(DEPDIR)/libgnu_a-strncat.Po \
4825 + ./$(DEPDIR)/libgnu_a-symlink.Po \
4826 + ./$(DEPDIR)/libgnu_a-symlinkat.Po \
4827 + ./$(DEPDIR)/libgnu_a-timespec.Po \
4828 + ./$(DEPDIR)/libgnu_a-unistd.Po ./$(DEPDIR)/libgnu_a-unlink.Po \
4829 + ./$(DEPDIR)/libgnu_a-unlinkat.Po ./$(DEPDIR)/libgnu_a-utime.Po \
4830 + ./$(DEPDIR)/libgnu_a-utimens.Po \
4831 + ./$(DEPDIR)/libgnu_a-utimensat.Po \
4832 + ./$(DEPDIR)/libgnu_a-vasnprintf.Po \
4833 + ./$(DEPDIR)/libgnu_a-vasprintf.Po \
4834 + ./$(DEPDIR)/libgnu_a-xalloc-die.Po \
4835 + ./$(DEPDIR)/libgnu_a-xmalloc.Po ./$(DEPDIR)/libgnu_a-xsize.Po \
4836 + malloc/$(DEPDIR)/libgnu_a-scratch_buffer_dupfree.Po \
4837 + malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow.Po \
4838 + malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow_preserve.Po \
4839 + malloc/$(DEPDIR)/libgnu_a-scratch_buffer_set_array_size.Po
4840 am__mv = mv -f
4841 -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
4842 - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
4843 AM_V_lt = $(am__v_lt_@AM_V@)
4844 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
4845 am__v_lt_0 = --silent
4846 am__v_lt_1 =
4847 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
4848 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
4849 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
4850 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
4851 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
4852 @@ -411,7 +672,7 @@ am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
4853 am__v_CCLD_0 = @echo " CCLD " $@;
4854 am__v_CCLD_1 =
4855 SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES)
4856 -DIST_SOURCES = $(libgnu_a_SOURCES) $(EXTRA_libgnu_a_SOURCES)
4857 +DIST_SOURCES = $(am__libgnu_a_SOURCES_DIST) $(EXTRA_libgnu_a_SOURCES)
4858 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
4859 ctags-recursive dvi-recursive html-recursive info-recursive \
4860 install-data-recursive install-dvi-recursive \
4861 @@ -527,368 +788,450 @@ FGREP = @FGREP@
4862 FLOAT_H = @FLOAT_H@
4863 GETOPT_CDEFS_H = @GETOPT_CDEFS_H@
4864 GETOPT_H = @GETOPT_H@
4865 -GNULIB_ACOSF = @GNULIB_ACOSF@
4866 -GNULIB_ACOSL = @GNULIB_ACOSL@
4867 -GNULIB_ALPHASORT = @GNULIB_ALPHASORT@
4868 -GNULIB_ASINF = @GNULIB_ASINF@
4869 -GNULIB_ASINL = @GNULIB_ASINL@
4870 -GNULIB_ATAN2F = @GNULIB_ATAN2F@
4871 -GNULIB_ATANF = @GNULIB_ATANF@
4872 -GNULIB_ATANL = @GNULIB_ATANL@
4873 -GNULIB_ATOLL = @GNULIB_ATOLL@
4874 -GNULIB_BTOWC = @GNULIB_BTOWC@
4875 -GNULIB_CALLOC_POSIX = @GNULIB_CALLOC_POSIX@
4876 -GNULIB_CANONICALIZE_FILE_NAME = @GNULIB_CANONICALIZE_FILE_NAME@
4877 -GNULIB_CBRT = @GNULIB_CBRT@
4878 -GNULIB_CBRTF = @GNULIB_CBRTF@
4879 -GNULIB_CBRTL = @GNULIB_CBRTL@
4880 -GNULIB_CEIL = @GNULIB_CEIL@
4881 -GNULIB_CEILF = @GNULIB_CEILF@
4882 -GNULIB_CEILL = @GNULIB_CEILL@
4883 -GNULIB_CHDIR = @GNULIB_CHDIR@
4884 -GNULIB_CHOWN = @GNULIB_CHOWN@
4885 -GNULIB_CLOSE = @GNULIB_CLOSE@
4886 -GNULIB_CLOSEDIR = @GNULIB_CLOSEDIR@
4887 -GNULIB_COPYSIGN = @GNULIB_COPYSIGN@
4888 -GNULIB_COPYSIGNF = @GNULIB_COPYSIGNF@
4889 -GNULIB_COPYSIGNL = @GNULIB_COPYSIGNL@
4890 -GNULIB_COSF = @GNULIB_COSF@
4891 -GNULIB_COSHF = @GNULIB_COSHF@
4892 -GNULIB_COSL = @GNULIB_COSL@
4893 -GNULIB_CTIME = @GNULIB_CTIME@
4894 -GNULIB_DIRFD = @GNULIB_DIRFD@
4895 -GNULIB_DPRINTF = @GNULIB_DPRINTF@
4896 -GNULIB_DUP = @GNULIB_DUP@
4897 -GNULIB_DUP2 = @GNULIB_DUP2@
4898 -GNULIB_DUP3 = @GNULIB_DUP3@
4899 -GNULIB_ENVIRON = @GNULIB_ENVIRON@
4900 -GNULIB_EUIDACCESS = @GNULIB_EUIDACCESS@
4901 -GNULIB_EXP2 = @GNULIB_EXP2@
4902 -GNULIB_EXP2F = @GNULIB_EXP2F@
4903 -GNULIB_EXP2L = @GNULIB_EXP2L@
4904 -GNULIB_EXPF = @GNULIB_EXPF@
4905 -GNULIB_EXPL = @GNULIB_EXPL@
4906 -GNULIB_EXPLICIT_BZERO = @GNULIB_EXPLICIT_BZERO@
4907 -GNULIB_EXPM1 = @GNULIB_EXPM1@
4908 -GNULIB_EXPM1F = @GNULIB_EXPM1F@
4909 -GNULIB_EXPM1L = @GNULIB_EXPM1L@
4910 -GNULIB_FABSF = @GNULIB_FABSF@
4911 -GNULIB_FABSL = @GNULIB_FABSL@
4912 -GNULIB_FACCESSAT = @GNULIB_FACCESSAT@
4913 -GNULIB_FCHDIR = @GNULIB_FCHDIR@
4914 -GNULIB_FCHMODAT = @GNULIB_FCHMODAT@
4915 -GNULIB_FCHOWNAT = @GNULIB_FCHOWNAT@
4916 -GNULIB_FCLOSE = @GNULIB_FCLOSE@
4917 -GNULIB_FCNTL = @GNULIB_FCNTL@
4918 -GNULIB_FDATASYNC = @GNULIB_FDATASYNC@
4919 -GNULIB_FDOPEN = @GNULIB_FDOPEN@
4920 -GNULIB_FDOPENDIR = @GNULIB_FDOPENDIR@
4921 -GNULIB_FFLUSH = @GNULIB_FFLUSH@
4922 -GNULIB_FFS = @GNULIB_FFS@
4923 -GNULIB_FFSL = @GNULIB_FFSL@
4924 -GNULIB_FFSLL = @GNULIB_FFSLL@
4925 -GNULIB_FGETC = @GNULIB_FGETC@
4926 -GNULIB_FGETS = @GNULIB_FGETS@
4927 -GNULIB_FLOOR = @GNULIB_FLOOR@
4928 -GNULIB_FLOORF = @GNULIB_FLOORF@
4929 -GNULIB_FLOORL = @GNULIB_FLOORL@
4930 -GNULIB_FMA = @GNULIB_FMA@
4931 -GNULIB_FMAF = @GNULIB_FMAF@
4932 -GNULIB_FMAL = @GNULIB_FMAL@
4933 -GNULIB_FMOD = @GNULIB_FMOD@
4934 -GNULIB_FMODF = @GNULIB_FMODF@
4935 -GNULIB_FMODL = @GNULIB_FMODL@
4936 -GNULIB_FOPEN = @GNULIB_FOPEN@
4937 -GNULIB_FPRINTF = @GNULIB_FPRINTF@
4938 -GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
4939 -GNULIB_FPURGE = @GNULIB_FPURGE@
4940 -GNULIB_FPUTC = @GNULIB_FPUTC@
4941 -GNULIB_FPUTS = @GNULIB_FPUTS@
4942 -GNULIB_FREAD = @GNULIB_FREAD@
4943 -GNULIB_FREOPEN = @GNULIB_FREOPEN@
4944 -GNULIB_FREXP = @GNULIB_FREXP@
4945 -GNULIB_FREXPF = @GNULIB_FREXPF@
4946 -GNULIB_FREXPL = @GNULIB_FREXPL@
4947 -GNULIB_FSCANF = @GNULIB_FSCANF@
4948 -GNULIB_FSEEK = @GNULIB_FSEEK@
4949 -GNULIB_FSEEKO = @GNULIB_FSEEKO@
4950 -GNULIB_FSTAT = @GNULIB_FSTAT@
4951 -GNULIB_FSTATAT = @GNULIB_FSTATAT@
4952 -GNULIB_FSYNC = @GNULIB_FSYNC@
4953 -GNULIB_FTELL = @GNULIB_FTELL@
4954 -GNULIB_FTELLO = @GNULIB_FTELLO@
4955 -GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
4956 -GNULIB_FUTIMENS = @GNULIB_FUTIMENS@
4957 -GNULIB_FWRITE = @GNULIB_FWRITE@
4958 -GNULIB_GETC = @GNULIB_GETC@
4959 -GNULIB_GETCHAR = @GNULIB_GETCHAR@
4960 -GNULIB_GETCWD = @GNULIB_GETCWD@
4961 -GNULIB_GETDELIM = @GNULIB_GETDELIM@
4962 -GNULIB_GETDOMAINNAME = @GNULIB_GETDOMAINNAME@
4963 -GNULIB_GETDTABLESIZE = @GNULIB_GETDTABLESIZE@
4964 -GNULIB_GETGROUPS = @GNULIB_GETGROUPS@
4965 -GNULIB_GETHOSTNAME = @GNULIB_GETHOSTNAME@
4966 -GNULIB_GETLINE = @GNULIB_GETLINE@
4967 -GNULIB_GETLOADAVG = @GNULIB_GETLOADAVG@
4968 -GNULIB_GETLOGIN = @GNULIB_GETLOGIN@
4969 -GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
4970 -GNULIB_GETPAGESIZE = @GNULIB_GETPAGESIZE@
4971 -GNULIB_GETPASS = @GNULIB_GETPASS@
4972 -GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
4973 +GL_CFLAG_ALLOW_WARNINGS = @GL_CFLAG_ALLOW_WARNINGS@
4974 +GL_CFLAG_GNULIB_WARNINGS = @GL_CFLAG_GNULIB_WARNINGS@
4975 +GL_GNULIB_ACCESS = @GL_GNULIB_ACCESS@
4976 +GL_GNULIB_ACOSF = @GL_GNULIB_ACOSF@
4977 +GL_GNULIB_ACOSL = @GL_GNULIB_ACOSL@
4978 +GL_GNULIB_ALIGNED_ALLOC = @GL_GNULIB_ALIGNED_ALLOC@
4979 +GL_GNULIB_ALPHASORT = @GL_GNULIB_ALPHASORT@
4980 +GL_GNULIB_ASINF = @GL_GNULIB_ASINF@
4981 +GL_GNULIB_ASINL = @GL_GNULIB_ASINL@
4982 +GL_GNULIB_ATAN2F = @GL_GNULIB_ATAN2F@
4983 +GL_GNULIB_ATANF = @GL_GNULIB_ATANF@
4984 +GL_GNULIB_ATANL = @GL_GNULIB_ATANL@
4985 +GL_GNULIB_ATOLL = @GL_GNULIB_ATOLL@
4986 +GL_GNULIB_BTOWC = @GL_GNULIB_BTOWC@
4987 +GL_GNULIB_CALLOC_GNU = @GL_GNULIB_CALLOC_GNU@
4988 +GL_GNULIB_CALLOC_POSIX = @GL_GNULIB_CALLOC_POSIX@
4989 +GL_GNULIB_CANONICALIZE_FILE_NAME = @GL_GNULIB_CANONICALIZE_FILE_NAME@
4990 +GL_GNULIB_CBRT = @GL_GNULIB_CBRT@
4991 +GL_GNULIB_CBRTF = @GL_GNULIB_CBRTF@
4992 +GL_GNULIB_CBRTL = @GL_GNULIB_CBRTL@
4993 +GL_GNULIB_CEIL = @GL_GNULIB_CEIL@
4994 +GL_GNULIB_CEILF = @GL_GNULIB_CEILF@
4995 +GL_GNULIB_CEILL = @GL_GNULIB_CEILL@
4996 +GL_GNULIB_CHDIR = @GL_GNULIB_CHDIR@
4997 +GL_GNULIB_CHOWN = @GL_GNULIB_CHOWN@
4998 +GL_GNULIB_CLOSE = @GL_GNULIB_CLOSE@
4999 +GL_GNULIB_CLOSEDIR = @GL_GNULIB_CLOSEDIR@
5000 +GL_GNULIB_COPYSIGN = @GL_GNULIB_COPYSIGN@
5001 +GL_GNULIB_COPYSIGNF = @GL_GNULIB_COPYSIGNF@
5002 +GL_GNULIB_COPYSIGNL = @GL_GNULIB_COPYSIGNL@
5003 +GL_GNULIB_COPY_FILE_RANGE = @GL_GNULIB_COPY_FILE_RANGE@
5004 +GL_GNULIB_COSF = @GL_GNULIB_COSF@
5005 +GL_GNULIB_COSHF = @GL_GNULIB_COSHF@
5006 +GL_GNULIB_COSL = @GL_GNULIB_COSL@
5007 +GL_GNULIB_CREAT = @GL_GNULIB_CREAT@
5008 +GL_GNULIB_CTIME = @GL_GNULIB_CTIME@
5009 +GL_GNULIB_DIRFD = @GL_GNULIB_DIRFD@
5010 +GL_GNULIB_DPRINTF = @GL_GNULIB_DPRINTF@
5011 +GL_GNULIB_DUP = @GL_GNULIB_DUP@
5012 +GL_GNULIB_DUP2 = @GL_GNULIB_DUP2@
5013 +GL_GNULIB_DUP3 = @GL_GNULIB_DUP3@
5014 +GL_GNULIB_ENVIRON = @GL_GNULIB_ENVIRON@
5015 +GL_GNULIB_EUIDACCESS = @GL_GNULIB_EUIDACCESS@
5016 +GL_GNULIB_EXECL = @GL_GNULIB_EXECL@
5017 +GL_GNULIB_EXECLE = @GL_GNULIB_EXECLE@
5018 +GL_GNULIB_EXECLP = @GL_GNULIB_EXECLP@
5019 +GL_GNULIB_EXECV = @GL_GNULIB_EXECV@
5020 +GL_GNULIB_EXECVE = @GL_GNULIB_EXECVE@
5021 +GL_GNULIB_EXECVP = @GL_GNULIB_EXECVP@
5022 +GL_GNULIB_EXECVPE = @GL_GNULIB_EXECVPE@
5023 +GL_GNULIB_EXP2 = @GL_GNULIB_EXP2@
5024 +GL_GNULIB_EXP2F = @GL_GNULIB_EXP2F@
5025 +GL_GNULIB_EXP2L = @GL_GNULIB_EXP2L@
5026 +GL_GNULIB_EXPF = @GL_GNULIB_EXPF@
5027 +GL_GNULIB_EXPL = @GL_GNULIB_EXPL@
5028 +GL_GNULIB_EXPLICIT_BZERO = @GL_GNULIB_EXPLICIT_BZERO@
5029 +GL_GNULIB_EXPM1 = @GL_GNULIB_EXPM1@
5030 +GL_GNULIB_EXPM1F = @GL_GNULIB_EXPM1F@
5031 +GL_GNULIB_EXPM1L = @GL_GNULIB_EXPM1L@
5032 +GL_GNULIB_FABSF = @GL_GNULIB_FABSF@
5033 +GL_GNULIB_FABSL = @GL_GNULIB_FABSL@
5034 +GL_GNULIB_FACCESSAT = @GL_GNULIB_FACCESSAT@
5035 +GL_GNULIB_FCHDIR = @GL_GNULIB_FCHDIR@
5036 +GL_GNULIB_FCHMODAT = @GL_GNULIB_FCHMODAT@
5037 +GL_GNULIB_FCHOWNAT = @GL_GNULIB_FCHOWNAT@
5038 +GL_GNULIB_FCLOSE = @GL_GNULIB_FCLOSE@
5039 +GL_GNULIB_FCNTL = @GL_GNULIB_FCNTL@
5040 +GL_GNULIB_FDATASYNC = @GL_GNULIB_FDATASYNC@
5041 +GL_GNULIB_FDOPEN = @GL_GNULIB_FDOPEN@
5042 +GL_GNULIB_FDOPENDIR = @GL_GNULIB_FDOPENDIR@
5043 +GL_GNULIB_FFLUSH = @GL_GNULIB_FFLUSH@
5044 +GL_GNULIB_FFS = @GL_GNULIB_FFS@
5045 +GL_GNULIB_FFSL = @GL_GNULIB_FFSL@
5046 +GL_GNULIB_FFSLL = @GL_GNULIB_FFSLL@
5047 +GL_GNULIB_FGETC = @GL_GNULIB_FGETC@
5048 +GL_GNULIB_FGETS = @GL_GNULIB_FGETS@
5049 +GL_GNULIB_FLOOR = @GL_GNULIB_FLOOR@
5050 +GL_GNULIB_FLOORF = @GL_GNULIB_FLOORF@
5051 +GL_GNULIB_FLOORL = @GL_GNULIB_FLOORL@
5052 +GL_GNULIB_FMA = @GL_GNULIB_FMA@
5053 +GL_GNULIB_FMAF = @GL_GNULIB_FMAF@
5054 +GL_GNULIB_FMAL = @GL_GNULIB_FMAL@
5055 +GL_GNULIB_FMOD = @GL_GNULIB_FMOD@
5056 +GL_GNULIB_FMODF = @GL_GNULIB_FMODF@
5057 +GL_GNULIB_FMODL = @GL_GNULIB_FMODL@
5058 +GL_GNULIB_FOPEN = @GL_GNULIB_FOPEN@
5059 +GL_GNULIB_FOPEN_GNU = @GL_GNULIB_FOPEN_GNU@
5060 +GL_GNULIB_FPRINTF = @GL_GNULIB_FPRINTF@
5061 +GL_GNULIB_FPRINTF_POSIX = @GL_GNULIB_FPRINTF_POSIX@
5062 +GL_GNULIB_FPURGE = @GL_GNULIB_FPURGE@
5063 +GL_GNULIB_FPUTC = @GL_GNULIB_FPUTC@
5064 +GL_GNULIB_FPUTS = @GL_GNULIB_FPUTS@
5065 +GL_GNULIB_FREAD = @GL_GNULIB_FREAD@
5066 +GL_GNULIB_FREE_POSIX = @GL_GNULIB_FREE_POSIX@
5067 +GL_GNULIB_FREOPEN = @GL_GNULIB_FREOPEN@
5068 +GL_GNULIB_FREXP = @GL_GNULIB_FREXP@
5069 +GL_GNULIB_FREXPF = @GL_GNULIB_FREXPF@
5070 +GL_GNULIB_FREXPL = @GL_GNULIB_FREXPL@
5071 +GL_GNULIB_FSCANF = @GL_GNULIB_FSCANF@
5072 +GL_GNULIB_FSEEK = @GL_GNULIB_FSEEK@
5073 +GL_GNULIB_FSEEKO = @GL_GNULIB_FSEEKO@
5074 +GL_GNULIB_FSTAT = @GL_GNULIB_FSTAT@
5075 +GL_GNULIB_FSTATAT = @GL_GNULIB_FSTATAT@
5076 +GL_GNULIB_FSYNC = @GL_GNULIB_FSYNC@
5077 +GL_GNULIB_FTELL = @GL_GNULIB_FTELL@
5078 +GL_GNULIB_FTELLO = @GL_GNULIB_FTELLO@
5079 +GL_GNULIB_FTRUNCATE = @GL_GNULIB_FTRUNCATE@
5080 +GL_GNULIB_FUTIMENS = @GL_GNULIB_FUTIMENS@
5081 +GL_GNULIB_FWRITE = @GL_GNULIB_FWRITE@
5082 +GL_GNULIB_GETC = @GL_GNULIB_GETC@
5083 +GL_GNULIB_GETCHAR = @GL_GNULIB_GETCHAR@
5084 +GL_GNULIB_GETCWD = @GL_GNULIB_GETCWD@
5085 +GL_GNULIB_GETDELIM = @GL_GNULIB_GETDELIM@
5086 +GL_GNULIB_GETDOMAINNAME = @GL_GNULIB_GETDOMAINNAME@
5087 +GL_GNULIB_GETDTABLESIZE = @GL_GNULIB_GETDTABLESIZE@
5088 +GL_GNULIB_GETENTROPY = @GL_GNULIB_GETENTROPY@
5089 +GL_GNULIB_GETGROUPS = @GL_GNULIB_GETGROUPS@
5090 +GL_GNULIB_GETHOSTNAME = @GL_GNULIB_GETHOSTNAME@
5091 +GL_GNULIB_GETLINE = @GL_GNULIB_GETLINE@
5092 +GL_GNULIB_GETLOADAVG = @GL_GNULIB_GETLOADAVG@
5093 +GL_GNULIB_GETLOGIN = @GL_GNULIB_GETLOGIN@
5094 +GL_GNULIB_GETLOGIN_R = @GL_GNULIB_GETLOGIN_R@
5095 +GL_GNULIB_GETOPT_POSIX = @GL_GNULIB_GETOPT_POSIX@
5096 +GL_GNULIB_GETPAGESIZE = @GL_GNULIB_GETPAGESIZE@
5097 +GL_GNULIB_GETPASS = @GL_GNULIB_GETPASS@
5098 +GL_GNULIB_GETPASS_GNU = @GL_GNULIB_GETPASS_GNU@
5099 +GL_GNULIB_GETSUBOPT = @GL_GNULIB_GETSUBOPT@
5100 +GL_GNULIB_GETTIMEOFDAY = @GL_GNULIB_GETTIMEOFDAY@
5101 +GL_GNULIB_GETUMASK = @GL_GNULIB_GETUMASK@
5102 +GL_GNULIB_GETUSERSHELL = @GL_GNULIB_GETUSERSHELL@
5103 +GL_GNULIB_GRANTPT = @GL_GNULIB_GRANTPT@
5104 +GL_GNULIB_GROUP_MEMBER = @GL_GNULIB_GROUP_MEMBER@
5105 +GL_GNULIB_HYPOT = @GL_GNULIB_HYPOT@
5106 +GL_GNULIB_HYPOTF = @GL_GNULIB_HYPOTF@
5107 +GL_GNULIB_HYPOTL = @GL_GNULIB_HYPOTL@
5108 +GL_GNULIB_ILOGB = @GL_GNULIB_ILOGB@
5109 +GL_GNULIB_ILOGBF = @GL_GNULIB_ILOGBF@
5110 +GL_GNULIB_ILOGBL = @GL_GNULIB_ILOGBL@
5111 +GL_GNULIB_IMAXABS = @GL_GNULIB_IMAXABS@
5112 +GL_GNULIB_IMAXDIV = @GL_GNULIB_IMAXDIV@
5113 +GL_GNULIB_ISATTY = @GL_GNULIB_ISATTY@
5114 +GL_GNULIB_ISFINITE = @GL_GNULIB_ISFINITE@
5115 +GL_GNULIB_ISINF = @GL_GNULIB_ISINF@
5116 +GL_GNULIB_ISNAN = @GL_GNULIB_ISNAN@
5117 +GL_GNULIB_ISNAND = @GL_GNULIB_ISNAND@
5118 +GL_GNULIB_ISNANF = @GL_GNULIB_ISNANF@
5119 +GL_GNULIB_ISNANL = @GL_GNULIB_ISNANL@
5120 +GL_GNULIB_LCHMOD = @GL_GNULIB_LCHMOD@
5121 +GL_GNULIB_LCHOWN = @GL_GNULIB_LCHOWN@
5122 +GL_GNULIB_LDEXPF = @GL_GNULIB_LDEXPF@
5123 +GL_GNULIB_LDEXPL = @GL_GNULIB_LDEXPL@
5124 +GL_GNULIB_LINK = @GL_GNULIB_LINK@
5125 +GL_GNULIB_LINKAT = @GL_GNULIB_LINKAT@
5126 +GL_GNULIB_LOCALTIME = @GL_GNULIB_LOCALTIME@
5127 +GL_GNULIB_LOG = @GL_GNULIB_LOG@
5128 +GL_GNULIB_LOG10 = @GL_GNULIB_LOG10@
5129 +GL_GNULIB_LOG10F = @GL_GNULIB_LOG10F@
5130 +GL_GNULIB_LOG10L = @GL_GNULIB_LOG10L@
5131 +GL_GNULIB_LOG1P = @GL_GNULIB_LOG1P@
5132 +GL_GNULIB_LOG1PF = @GL_GNULIB_LOG1PF@
5133 +GL_GNULIB_LOG1PL = @GL_GNULIB_LOG1PL@
5134 +GL_GNULIB_LOG2 = @GL_GNULIB_LOG2@
5135 +GL_GNULIB_LOG2F = @GL_GNULIB_LOG2F@
5136 +GL_GNULIB_LOG2L = @GL_GNULIB_LOG2L@
5137 +GL_GNULIB_LOGB = @GL_GNULIB_LOGB@
5138 +GL_GNULIB_LOGBF = @GL_GNULIB_LOGBF@
5139 +GL_GNULIB_LOGBL = @GL_GNULIB_LOGBL@
5140 +GL_GNULIB_LOGF = @GL_GNULIB_LOGF@
5141 +GL_GNULIB_LOGL = @GL_GNULIB_LOGL@
5142 +GL_GNULIB_LSEEK = @GL_GNULIB_LSEEK@
5143 +GL_GNULIB_LSTAT = @GL_GNULIB_LSTAT@
5144 +GL_GNULIB_MALLOC_GNU = @GL_GNULIB_MALLOC_GNU@
5145 +GL_GNULIB_MALLOC_POSIX = @GL_GNULIB_MALLOC_POSIX@
5146 +GL_GNULIB_MBRLEN = @GL_GNULIB_MBRLEN@
5147 +GL_GNULIB_MBRTOWC = @GL_GNULIB_MBRTOWC@
5148 +GL_GNULIB_MBSCASECMP = @GL_GNULIB_MBSCASECMP@
5149 +GL_GNULIB_MBSCASESTR = @GL_GNULIB_MBSCASESTR@
5150 +GL_GNULIB_MBSCHR = @GL_GNULIB_MBSCHR@
5151 +GL_GNULIB_MBSCSPN = @GL_GNULIB_MBSCSPN@
5152 +GL_GNULIB_MBSINIT = @GL_GNULIB_MBSINIT@
5153 +GL_GNULIB_MBSLEN = @GL_GNULIB_MBSLEN@
5154 +GL_GNULIB_MBSNCASECMP = @GL_GNULIB_MBSNCASECMP@
5155 +GL_GNULIB_MBSNLEN = @GL_GNULIB_MBSNLEN@
5156 +GL_GNULIB_MBSNRTOWCS = @GL_GNULIB_MBSNRTOWCS@
5157 +GL_GNULIB_MBSPBRK = @GL_GNULIB_MBSPBRK@
5158 +GL_GNULIB_MBSPCASECMP = @GL_GNULIB_MBSPCASECMP@
5159 +GL_GNULIB_MBSRCHR = @GL_GNULIB_MBSRCHR@
5160 +GL_GNULIB_MBSRTOWCS = @GL_GNULIB_MBSRTOWCS@
5161 +GL_GNULIB_MBSSEP = @GL_GNULIB_MBSSEP@
5162 +GL_GNULIB_MBSSPN = @GL_GNULIB_MBSSPN@
5163 +GL_GNULIB_MBSSTR = @GL_GNULIB_MBSSTR@
5164 +GL_GNULIB_MBSTOK_R = @GL_GNULIB_MBSTOK_R@
5165 +GL_GNULIB_MBTOWC = @GL_GNULIB_MBTOWC@
5166 +GL_GNULIB_MDA_ACCESS = @GL_GNULIB_MDA_ACCESS@
5167 +GL_GNULIB_MDA_CHDIR = @GL_GNULIB_MDA_CHDIR@
5168 +GL_GNULIB_MDA_CHMOD = @GL_GNULIB_MDA_CHMOD@
5169 +GL_GNULIB_MDA_CLOSE = @GL_GNULIB_MDA_CLOSE@
5170 +GL_GNULIB_MDA_CREAT = @GL_GNULIB_MDA_CREAT@
5171 +GL_GNULIB_MDA_DUP = @GL_GNULIB_MDA_DUP@
5172 +GL_GNULIB_MDA_DUP2 = @GL_GNULIB_MDA_DUP2@
5173 +GL_GNULIB_MDA_ECVT = @GL_GNULIB_MDA_ECVT@
5174 +GL_GNULIB_MDA_EXECL = @GL_GNULIB_MDA_EXECL@
5175 +GL_GNULIB_MDA_EXECLE = @GL_GNULIB_MDA_EXECLE@
5176 +GL_GNULIB_MDA_EXECLP = @GL_GNULIB_MDA_EXECLP@
5177 +GL_GNULIB_MDA_EXECV = @GL_GNULIB_MDA_EXECV@
5178 +GL_GNULIB_MDA_EXECVE = @GL_GNULIB_MDA_EXECVE@
5179 +GL_GNULIB_MDA_EXECVP = @GL_GNULIB_MDA_EXECVP@
5180 +GL_GNULIB_MDA_EXECVPE = @GL_GNULIB_MDA_EXECVPE@
5181 +GL_GNULIB_MDA_FCLOSEALL = @GL_GNULIB_MDA_FCLOSEALL@
5182 +GL_GNULIB_MDA_FCVT = @GL_GNULIB_MDA_FCVT@
5183 +GL_GNULIB_MDA_FDOPEN = @GL_GNULIB_MDA_FDOPEN@
5184 +GL_GNULIB_MDA_FILENO = @GL_GNULIB_MDA_FILENO@
5185 +GL_GNULIB_MDA_GCVT = @GL_GNULIB_MDA_GCVT@
5186 +GL_GNULIB_MDA_GETCWD = @GL_GNULIB_MDA_GETCWD@
5187 +GL_GNULIB_MDA_GETPID = @GL_GNULIB_MDA_GETPID@
5188 +GL_GNULIB_MDA_GETW = @GL_GNULIB_MDA_GETW@
5189 +GL_GNULIB_MDA_ISATTY = @GL_GNULIB_MDA_ISATTY@
5190 +GL_GNULIB_MDA_J0 = @GL_GNULIB_MDA_J0@
5191 +GL_GNULIB_MDA_J1 = @GL_GNULIB_MDA_J1@
5192 +GL_GNULIB_MDA_JN = @GL_GNULIB_MDA_JN@
5193 +GL_GNULIB_MDA_LSEEK = @GL_GNULIB_MDA_LSEEK@
5194 +GL_GNULIB_MDA_MEMCCPY = @GL_GNULIB_MDA_MEMCCPY@
5195 +GL_GNULIB_MDA_MKDIR = @GL_GNULIB_MDA_MKDIR@
5196 +GL_GNULIB_MDA_MKTEMP = @GL_GNULIB_MDA_MKTEMP@
5197 +GL_GNULIB_MDA_OPEN = @GL_GNULIB_MDA_OPEN@
5198 +GL_GNULIB_MDA_PUTENV = @GL_GNULIB_MDA_PUTENV@
5199 +GL_GNULIB_MDA_PUTW = @GL_GNULIB_MDA_PUTW@
5200 +GL_GNULIB_MDA_READ = @GL_GNULIB_MDA_READ@
5201 +GL_GNULIB_MDA_RMDIR = @GL_GNULIB_MDA_RMDIR@
5202 +GL_GNULIB_MDA_STRDUP = @GL_GNULIB_MDA_STRDUP@
5203 +GL_GNULIB_MDA_SWAB = @GL_GNULIB_MDA_SWAB@
5204 +GL_GNULIB_MDA_TEMPNAM = @GL_GNULIB_MDA_TEMPNAM@
5205 +GL_GNULIB_MDA_TZSET = @GL_GNULIB_MDA_TZSET@
5206 +GL_GNULIB_MDA_UMASK = @GL_GNULIB_MDA_UMASK@
5207 +GL_GNULIB_MDA_UNLINK = @GL_GNULIB_MDA_UNLINK@
5208 +GL_GNULIB_MDA_UTIME = @GL_GNULIB_MDA_UTIME@
5209 +GL_GNULIB_MDA_WCSDUP = @GL_GNULIB_MDA_WCSDUP@
5210 +GL_GNULIB_MDA_WRITE = @GL_GNULIB_MDA_WRITE@
5211 +GL_GNULIB_MDA_Y0 = @GL_GNULIB_MDA_Y0@
5212 +GL_GNULIB_MDA_Y1 = @GL_GNULIB_MDA_Y1@
5213 +GL_GNULIB_MDA_YN = @GL_GNULIB_MDA_YN@
5214 +GL_GNULIB_MEMCHR = @GL_GNULIB_MEMCHR@
5215 +GL_GNULIB_MEMMEM = @GL_GNULIB_MEMMEM@
5216 +GL_GNULIB_MEMPCPY = @GL_GNULIB_MEMPCPY@
5217 +GL_GNULIB_MEMRCHR = @GL_GNULIB_MEMRCHR@
5218 +GL_GNULIB_MKDIR = @GL_GNULIB_MKDIR@
5219 +GL_GNULIB_MKDIRAT = @GL_GNULIB_MKDIRAT@
5220 +GL_GNULIB_MKDTEMP = @GL_GNULIB_MKDTEMP@
5221 +GL_GNULIB_MKFIFO = @GL_GNULIB_MKFIFO@
5222 +GL_GNULIB_MKFIFOAT = @GL_GNULIB_MKFIFOAT@
5223 +GL_GNULIB_MKNOD = @GL_GNULIB_MKNOD@
5224 +GL_GNULIB_MKNODAT = @GL_GNULIB_MKNODAT@
5225 +GL_GNULIB_MKOSTEMP = @GL_GNULIB_MKOSTEMP@
5226 +GL_GNULIB_MKOSTEMPS = @GL_GNULIB_MKOSTEMPS@
5227 +GL_GNULIB_MKSTEMP = @GL_GNULIB_MKSTEMP@
5228 +GL_GNULIB_MKSTEMPS = @GL_GNULIB_MKSTEMPS@
5229 +GL_GNULIB_MKTIME = @GL_GNULIB_MKTIME@
5230 +GL_GNULIB_MODF = @GL_GNULIB_MODF@
5231 +GL_GNULIB_MODFF = @GL_GNULIB_MODFF@
5232 +GL_GNULIB_MODFL = @GL_GNULIB_MODFL@
5233 +GL_GNULIB_NANOSLEEP = @GL_GNULIB_NANOSLEEP@
5234 +GL_GNULIB_NONBLOCKING = @GL_GNULIB_NONBLOCKING@
5235 +GL_GNULIB_OBSTACK_PRINTF = @GL_GNULIB_OBSTACK_PRINTF@
5236 +GL_GNULIB_OBSTACK_PRINTF_POSIX = @GL_GNULIB_OBSTACK_PRINTF_POSIX@
5237 +GL_GNULIB_OPEN = @GL_GNULIB_OPEN@
5238 +GL_GNULIB_OPENAT = @GL_GNULIB_OPENAT@
5239 +GL_GNULIB_OPENDIR = @GL_GNULIB_OPENDIR@
5240 +GL_GNULIB_OVERRIDES_STRUCT_STAT = @GL_GNULIB_OVERRIDES_STRUCT_STAT@
5241 +GL_GNULIB_PCLOSE = @GL_GNULIB_PCLOSE@
5242 +GL_GNULIB_PERROR = @GL_GNULIB_PERROR@
5243 +GL_GNULIB_PIPE = @GL_GNULIB_PIPE@
5244 +GL_GNULIB_PIPE2 = @GL_GNULIB_PIPE2@
5245 +GL_GNULIB_POPEN = @GL_GNULIB_POPEN@
5246 +GL_GNULIB_POSIX_MEMALIGN = @GL_GNULIB_POSIX_MEMALIGN@
5247 +GL_GNULIB_POSIX_OPENPT = @GL_GNULIB_POSIX_OPENPT@
5248 +GL_GNULIB_POWF = @GL_GNULIB_POWF@
5249 +GL_GNULIB_PREAD = @GL_GNULIB_PREAD@
5250 +GL_GNULIB_PRINTF = @GL_GNULIB_PRINTF@
5251 +GL_GNULIB_PRINTF_POSIX = @GL_GNULIB_PRINTF_POSIX@
5252 +GL_GNULIB_PTSNAME = @GL_GNULIB_PTSNAME@
5253 +GL_GNULIB_PTSNAME_R = @GL_GNULIB_PTSNAME_R@
5254 +GL_GNULIB_PUTC = @GL_GNULIB_PUTC@
5255 +GL_GNULIB_PUTCHAR = @GL_GNULIB_PUTCHAR@
5256 +GL_GNULIB_PUTENV = @GL_GNULIB_PUTENV@
5257 +GL_GNULIB_PUTS = @GL_GNULIB_PUTS@
5258 +GL_GNULIB_PWRITE = @GL_GNULIB_PWRITE@
5259 +GL_GNULIB_QSORT_R = @GL_GNULIB_QSORT_R@
5260 +GL_GNULIB_RANDOM = @GL_GNULIB_RANDOM@
5261 +GL_GNULIB_RANDOM_R = @GL_GNULIB_RANDOM_R@
5262 +GL_GNULIB_RAWMEMCHR = @GL_GNULIB_RAWMEMCHR@
5263 +GL_GNULIB_READ = @GL_GNULIB_READ@
5264 +GL_GNULIB_READDIR = @GL_GNULIB_READDIR@
5265 +GL_GNULIB_READLINK = @GL_GNULIB_READLINK@
5266 +GL_GNULIB_READLINKAT = @GL_GNULIB_READLINKAT@
5267 +GL_GNULIB_REALLOCARRAY = @GL_GNULIB_REALLOCARRAY@
5268 +GL_GNULIB_REALLOC_GNU = @GL_GNULIB_REALLOC_GNU@
5269 +GL_GNULIB_REALLOC_POSIX = @GL_GNULIB_REALLOC_POSIX@
5270 +GL_GNULIB_REALPATH = @GL_GNULIB_REALPATH@
5271 +GL_GNULIB_REMAINDER = @GL_GNULIB_REMAINDER@
5272 +GL_GNULIB_REMAINDERF = @GL_GNULIB_REMAINDERF@
5273 +GL_GNULIB_REMAINDERL = @GL_GNULIB_REMAINDERL@
5274 +GL_GNULIB_REMOVE = @GL_GNULIB_REMOVE@
5275 +GL_GNULIB_RENAME = @GL_GNULIB_RENAME@
5276 +GL_GNULIB_RENAMEAT = @GL_GNULIB_RENAMEAT@
5277 +GL_GNULIB_REWINDDIR = @GL_GNULIB_REWINDDIR@
5278 +GL_GNULIB_RINT = @GL_GNULIB_RINT@
5279 +GL_GNULIB_RINTF = @GL_GNULIB_RINTF@
5280 +GL_GNULIB_RINTL = @GL_GNULIB_RINTL@
5281 +GL_GNULIB_RMDIR = @GL_GNULIB_RMDIR@
5282 +GL_GNULIB_ROUND = @GL_GNULIB_ROUND@
5283 +GL_GNULIB_ROUNDF = @GL_GNULIB_ROUNDF@
5284 +GL_GNULIB_ROUNDL = @GL_GNULIB_ROUNDL@
5285 +GL_GNULIB_RPMATCH = @GL_GNULIB_RPMATCH@
5286 +GL_GNULIB_SCANDIR = @GL_GNULIB_SCANDIR@
5287 +GL_GNULIB_SCANF = @GL_GNULIB_SCANF@
5288 +GL_GNULIB_SECURE_GETENV = @GL_GNULIB_SECURE_GETENV@
5289 +GL_GNULIB_SETENV = @GL_GNULIB_SETENV@
5290 +GL_GNULIB_SETHOSTNAME = @GL_GNULIB_SETHOSTNAME@
5291 +GL_GNULIB_SIGABBREV_NP = @GL_GNULIB_SIGABBREV_NP@
5292 +GL_GNULIB_SIGDESCR_NP = @GL_GNULIB_SIGDESCR_NP@
5293 +GL_GNULIB_SIGNBIT = @GL_GNULIB_SIGNBIT@
5294 +GL_GNULIB_SINF = @GL_GNULIB_SINF@
5295 +GL_GNULIB_SINHF = @GL_GNULIB_SINHF@
5296 +GL_GNULIB_SINL = @GL_GNULIB_SINL@
5297 +GL_GNULIB_SLEEP = @GL_GNULIB_SLEEP@
5298 +GL_GNULIB_SNPRINTF = @GL_GNULIB_SNPRINTF@
5299 +GL_GNULIB_SPRINTF_POSIX = @GL_GNULIB_SPRINTF_POSIX@
5300 +GL_GNULIB_SQRTF = @GL_GNULIB_SQRTF@
5301 +GL_GNULIB_SQRTL = @GL_GNULIB_SQRTL@
5302 +GL_GNULIB_STAT = @GL_GNULIB_STAT@
5303 +GL_GNULIB_STDIO_H_NONBLOCKING = @GL_GNULIB_STDIO_H_NONBLOCKING@
5304 +GL_GNULIB_STDIO_H_SIGPIPE = @GL_GNULIB_STDIO_H_SIGPIPE@
5305 +GL_GNULIB_STPCPY = @GL_GNULIB_STPCPY@
5306 +GL_GNULIB_STPNCPY = @GL_GNULIB_STPNCPY@
5307 +GL_GNULIB_STRCASESTR = @GL_GNULIB_STRCASESTR@
5308 +GL_GNULIB_STRCHRNUL = @GL_GNULIB_STRCHRNUL@
5309 +GL_GNULIB_STRDUP = @GL_GNULIB_STRDUP@
5310 +GL_GNULIB_STRERROR = @GL_GNULIB_STRERROR@
5311 +GL_GNULIB_STRERRORNAME_NP = @GL_GNULIB_STRERRORNAME_NP@
5312 +GL_GNULIB_STRERROR_R = @GL_GNULIB_STRERROR_R@
5313 +GL_GNULIB_STRFTIME = @GL_GNULIB_STRFTIME@
5314 +GL_GNULIB_STRNCAT = @GL_GNULIB_STRNCAT@
5315 +GL_GNULIB_STRNDUP = @GL_GNULIB_STRNDUP@
5316 +GL_GNULIB_STRNLEN = @GL_GNULIB_STRNLEN@
5317 +GL_GNULIB_STRPBRK = @GL_GNULIB_STRPBRK@
5318 +GL_GNULIB_STRPTIME = @GL_GNULIB_STRPTIME@
5319 +GL_GNULIB_STRSEP = @GL_GNULIB_STRSEP@
5320 +GL_GNULIB_STRSIGNAL = @GL_GNULIB_STRSIGNAL@
5321 +GL_GNULIB_STRSTR = @GL_GNULIB_STRSTR@
5322 +GL_GNULIB_STRTOD = @GL_GNULIB_STRTOD@
5323 +GL_GNULIB_STRTOIMAX = @GL_GNULIB_STRTOIMAX@
5324 +GL_GNULIB_STRTOK_R = @GL_GNULIB_STRTOK_R@
5325 +GL_GNULIB_STRTOL = @GL_GNULIB_STRTOL@
5326 +GL_GNULIB_STRTOLD = @GL_GNULIB_STRTOLD@
5327 +GL_GNULIB_STRTOLL = @GL_GNULIB_STRTOLL@
5328 +GL_GNULIB_STRTOUL = @GL_GNULIB_STRTOUL@
5329 +GL_GNULIB_STRTOULL = @GL_GNULIB_STRTOULL@
5330 +GL_GNULIB_STRTOUMAX = @GL_GNULIB_STRTOUMAX@
5331 +GL_GNULIB_STRVERSCMP = @GL_GNULIB_STRVERSCMP@
5332 +GL_GNULIB_SYMLINK = @GL_GNULIB_SYMLINK@
5333 +GL_GNULIB_SYMLINKAT = @GL_GNULIB_SYMLINKAT@
5334 +GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@
5335 +GL_GNULIB_TANF = @GL_GNULIB_TANF@
5336 +GL_GNULIB_TANHF = @GL_GNULIB_TANHF@
5337 +GL_GNULIB_TANL = @GL_GNULIB_TANL@
5338 +GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@
5339 +GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@
5340 +GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@
5341 +GL_GNULIB_TIME_R = @GL_GNULIB_TIME_R@
5342 +GL_GNULIB_TIME_RZ = @GL_GNULIB_TIME_RZ@
5343 +GL_GNULIB_TMPFILE = @GL_GNULIB_TMPFILE@
5344 +GL_GNULIB_TRUNC = @GL_GNULIB_TRUNC@
5345 +GL_GNULIB_TRUNCATE = @GL_GNULIB_TRUNCATE@
5346 +GL_GNULIB_TRUNCF = @GL_GNULIB_TRUNCF@
5347 +GL_GNULIB_TRUNCL = @GL_GNULIB_TRUNCL@
5348 +GL_GNULIB_TTYNAME_R = @GL_GNULIB_TTYNAME_R@
5349 +GL_GNULIB_TZSET = @GL_GNULIB_TZSET@
5350 +GL_GNULIB_UNISTD_H_GETOPT = @GL_GNULIB_UNISTD_H_GETOPT@
5351 +GL_GNULIB_UNISTD_H_NONBLOCKING = @GL_GNULIB_UNISTD_H_NONBLOCKING@
5352 +GL_GNULIB_UNISTD_H_SIGPIPE = @GL_GNULIB_UNISTD_H_SIGPIPE@
5353 +GL_GNULIB_UNLINK = @GL_GNULIB_UNLINK@
5354 +GL_GNULIB_UNLINKAT = @GL_GNULIB_UNLINKAT@
5355 +GL_GNULIB_UNLOCKPT = @GL_GNULIB_UNLOCKPT@
5356 +GL_GNULIB_UNSETENV = @GL_GNULIB_UNSETENV@
5357 +GL_GNULIB_USLEEP = @GL_GNULIB_USLEEP@
5358 +GL_GNULIB_UTIME = @GL_GNULIB_UTIME@
5359 +GL_GNULIB_UTIMENSAT = @GL_GNULIB_UTIMENSAT@
5360 +GL_GNULIB_VASPRINTF = @GL_GNULIB_VASPRINTF@
5361 +GL_GNULIB_VDPRINTF = @GL_GNULIB_VDPRINTF@
5362 +GL_GNULIB_VFPRINTF = @GL_GNULIB_VFPRINTF@
5363 +GL_GNULIB_VFPRINTF_POSIX = @GL_GNULIB_VFPRINTF_POSIX@
5364 +GL_GNULIB_VFSCANF = @GL_GNULIB_VFSCANF@
5365 +GL_GNULIB_VPRINTF = @GL_GNULIB_VPRINTF@
5366 +GL_GNULIB_VPRINTF_POSIX = @GL_GNULIB_VPRINTF_POSIX@
5367 +GL_GNULIB_VSCANF = @GL_GNULIB_VSCANF@
5368 +GL_GNULIB_VSNPRINTF = @GL_GNULIB_VSNPRINTF@
5369 +GL_GNULIB_VSPRINTF_POSIX = @GL_GNULIB_VSPRINTF_POSIX@
5370 +GL_GNULIB_WCPCPY = @GL_GNULIB_WCPCPY@
5371 +GL_GNULIB_WCPNCPY = @GL_GNULIB_WCPNCPY@
5372 +GL_GNULIB_WCRTOMB = @GL_GNULIB_WCRTOMB@
5373 +GL_GNULIB_WCSCASECMP = @GL_GNULIB_WCSCASECMP@
5374 +GL_GNULIB_WCSCAT = @GL_GNULIB_WCSCAT@
5375 +GL_GNULIB_WCSCHR = @GL_GNULIB_WCSCHR@
5376 +GL_GNULIB_WCSCMP = @GL_GNULIB_WCSCMP@
5377 +GL_GNULIB_WCSCOLL = @GL_GNULIB_WCSCOLL@
5378 +GL_GNULIB_WCSCPY = @GL_GNULIB_WCSCPY@
5379 +GL_GNULIB_WCSCSPN = @GL_GNULIB_WCSCSPN@
5380 +GL_GNULIB_WCSDUP = @GL_GNULIB_WCSDUP@
5381 +GL_GNULIB_WCSFTIME = @GL_GNULIB_WCSFTIME@
5382 +GL_GNULIB_WCSLEN = @GL_GNULIB_WCSLEN@
5383 +GL_GNULIB_WCSNCASECMP = @GL_GNULIB_WCSNCASECMP@
5384 +GL_GNULIB_WCSNCAT = @GL_GNULIB_WCSNCAT@
5385 +GL_GNULIB_WCSNCMP = @GL_GNULIB_WCSNCMP@
5386 +GL_GNULIB_WCSNCPY = @GL_GNULIB_WCSNCPY@
5387 +GL_GNULIB_WCSNLEN = @GL_GNULIB_WCSNLEN@
5388 +GL_GNULIB_WCSNRTOMBS = @GL_GNULIB_WCSNRTOMBS@
5389 +GL_GNULIB_WCSPBRK = @GL_GNULIB_WCSPBRK@
5390 +GL_GNULIB_WCSRCHR = @GL_GNULIB_WCSRCHR@
5391 +GL_GNULIB_WCSRTOMBS = @GL_GNULIB_WCSRTOMBS@
5392 +GL_GNULIB_WCSSPN = @GL_GNULIB_WCSSPN@
5393 +GL_GNULIB_WCSSTR = @GL_GNULIB_WCSSTR@
5394 +GL_GNULIB_WCSTOK = @GL_GNULIB_WCSTOK@
5395 +GL_GNULIB_WCSWIDTH = @GL_GNULIB_WCSWIDTH@
5396 +GL_GNULIB_WCSXFRM = @GL_GNULIB_WCSXFRM@
5397 +GL_GNULIB_WCTOB = @GL_GNULIB_WCTOB@
5398 +GL_GNULIB_WCTOMB = @GL_GNULIB_WCTOMB@
5399 +GL_GNULIB_WCWIDTH = @GL_GNULIB_WCWIDTH@
5400 +GL_GNULIB_WMEMCHR = @GL_GNULIB_WMEMCHR@
5401 +GL_GNULIB_WMEMCMP = @GL_GNULIB_WMEMCMP@
5402 +GL_GNULIB_WMEMCPY = @GL_GNULIB_WMEMCPY@
5403 +GL_GNULIB_WMEMMOVE = @GL_GNULIB_WMEMMOVE@
5404 +GL_GNULIB_WMEMPCPY = @GL_GNULIB_WMEMPCPY@
5405 +GL_GNULIB_WMEMSET = @GL_GNULIB_WMEMSET@
5406 +GL_GNULIB_WRITE = @GL_GNULIB_WRITE@
5407 +GL_GNULIB__EXIT = @GL_GNULIB__EXIT@
5408 +GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@
5409 GNULIB_GETTIMEOFDAY = @GNULIB_GETTIMEOFDAY@
5410 -GNULIB_GETUSERSHELL = @GNULIB_GETUSERSHELL@
5411 -GNULIB_GL_UNISTD_H_GETOPT = @GNULIB_GL_UNISTD_H_GETOPT@
5412 -GNULIB_GRANTPT = @GNULIB_GRANTPT@
5413 -GNULIB_GROUP_MEMBER = @GNULIB_GROUP_MEMBER@
5414 -GNULIB_HYPOT = @GNULIB_HYPOT@
5415 -GNULIB_HYPOTF = @GNULIB_HYPOTF@
5416 -GNULIB_HYPOTL = @GNULIB_HYPOTL@
5417 -GNULIB_ILOGB = @GNULIB_ILOGB@
5418 -GNULIB_ILOGBF = @GNULIB_ILOGBF@
5419 -GNULIB_ILOGBL = @GNULIB_ILOGBL@
5420 -GNULIB_IMAXABS = @GNULIB_IMAXABS@
5421 -GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
5422 -GNULIB_ISATTY = @GNULIB_ISATTY@
5423 -GNULIB_ISFINITE = @GNULIB_ISFINITE@
5424 -GNULIB_ISINF = @GNULIB_ISINF@
5425 -GNULIB_ISNAN = @GNULIB_ISNAN@
5426 -GNULIB_ISNAND = @GNULIB_ISNAND@
5427 -GNULIB_ISNANF = @GNULIB_ISNANF@
5428 -GNULIB_ISNANL = @GNULIB_ISNANL@
5429 -GNULIB_LCHMOD = @GNULIB_LCHMOD@
5430 -GNULIB_LCHOWN = @GNULIB_LCHOWN@
5431 -GNULIB_LDEXPF = @GNULIB_LDEXPF@
5432 -GNULIB_LDEXPL = @GNULIB_LDEXPL@
5433 -GNULIB_LINK = @GNULIB_LINK@
5434 -GNULIB_LINKAT = @GNULIB_LINKAT@
5435 -GNULIB_LOCALTIME = @GNULIB_LOCALTIME@
5436 -GNULIB_LOG = @GNULIB_LOG@
5437 -GNULIB_LOG10 = @GNULIB_LOG10@
5438 -GNULIB_LOG10F = @GNULIB_LOG10F@
5439 -GNULIB_LOG10L = @GNULIB_LOG10L@
5440 -GNULIB_LOG1P = @GNULIB_LOG1P@
5441 -GNULIB_LOG1PF = @GNULIB_LOG1PF@
5442 -GNULIB_LOG1PL = @GNULIB_LOG1PL@
5443 -GNULIB_LOG2 = @GNULIB_LOG2@
5444 -GNULIB_LOG2F = @GNULIB_LOG2F@
5445 -GNULIB_LOG2L = @GNULIB_LOG2L@
5446 -GNULIB_LOGB = @GNULIB_LOGB@
5447 -GNULIB_LOGBF = @GNULIB_LOGBF@
5448 -GNULIB_LOGBL = @GNULIB_LOGBL@
5449 -GNULIB_LOGF = @GNULIB_LOGF@
5450 -GNULIB_LOGL = @GNULIB_LOGL@
5451 -GNULIB_LSEEK = @GNULIB_LSEEK@
5452 -GNULIB_LSTAT = @GNULIB_LSTAT@
5453 -GNULIB_MALLOC_POSIX = @GNULIB_MALLOC_POSIX@
5454 -GNULIB_MBRLEN = @GNULIB_MBRLEN@
5455 -GNULIB_MBRTOWC = @GNULIB_MBRTOWC@
5456 -GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
5457 -GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
5458 -GNULIB_MBSCHR = @GNULIB_MBSCHR@
5459 -GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
5460 -GNULIB_MBSINIT = @GNULIB_MBSINIT@
5461 -GNULIB_MBSLEN = @GNULIB_MBSLEN@
5462 -GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
5463 -GNULIB_MBSNLEN = @GNULIB_MBSNLEN@
5464 -GNULIB_MBSNRTOWCS = @GNULIB_MBSNRTOWCS@
5465 -GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
5466 -GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
5467 -GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
5468 -GNULIB_MBSRTOWCS = @GNULIB_MBSRTOWCS@
5469 -GNULIB_MBSSEP = @GNULIB_MBSSEP@
5470 -GNULIB_MBSSPN = @GNULIB_MBSSPN@
5471 -GNULIB_MBSSTR = @GNULIB_MBSSTR@
5472 -GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
5473 -GNULIB_MBTOWC = @GNULIB_MBTOWC@
5474 -GNULIB_MEMCHR = @GNULIB_MEMCHR@
5475 -GNULIB_MEMMEM = @GNULIB_MEMMEM@
5476 -GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
5477 -GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
5478 -GNULIB_MKDIRAT = @GNULIB_MKDIRAT@
5479 -GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
5480 -GNULIB_MKFIFO = @GNULIB_MKFIFO@
5481 -GNULIB_MKFIFOAT = @GNULIB_MKFIFOAT@
5482 -GNULIB_MKNOD = @GNULIB_MKNOD@
5483 -GNULIB_MKNODAT = @GNULIB_MKNODAT@
5484 -GNULIB_MKOSTEMP = @GNULIB_MKOSTEMP@
5485 -GNULIB_MKOSTEMPS = @GNULIB_MKOSTEMPS@
5486 -GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
5487 -GNULIB_MKSTEMPS = @GNULIB_MKSTEMPS@
5488 -GNULIB_MKTIME = @GNULIB_MKTIME@
5489 -GNULIB_MODF = @GNULIB_MODF@
5490 -GNULIB_MODFF = @GNULIB_MODFF@
5491 -GNULIB_MODFL = @GNULIB_MODFL@
5492 -GNULIB_NANOSLEEP = @GNULIB_NANOSLEEP@
5493 -GNULIB_NONBLOCKING = @GNULIB_NONBLOCKING@
5494 -GNULIB_OBSTACK_PRINTF = @GNULIB_OBSTACK_PRINTF@
5495 -GNULIB_OBSTACK_PRINTF_POSIX = @GNULIB_OBSTACK_PRINTF_POSIX@
5496 -GNULIB_OPEN = @GNULIB_OPEN@
5497 -GNULIB_OPENAT = @GNULIB_OPENAT@
5498 -GNULIB_OPENDIR = @GNULIB_OPENDIR@
5499 -GNULIB_OVERRIDES_STRUCT_STAT = @GNULIB_OVERRIDES_STRUCT_STAT@
5500 -GNULIB_OVERRIDES_WINT_T = @GNULIB_OVERRIDES_WINT_T@
5501 -GNULIB_PCLOSE = @GNULIB_PCLOSE@
5502 -GNULIB_PERROR = @GNULIB_PERROR@
5503 -GNULIB_PIPE = @GNULIB_PIPE@
5504 -GNULIB_PIPE2 = @GNULIB_PIPE2@
5505 -GNULIB_POPEN = @GNULIB_POPEN@
5506 -GNULIB_POSIX_OPENPT = @GNULIB_POSIX_OPENPT@
5507 -GNULIB_POWF = @GNULIB_POWF@
5508 -GNULIB_PREAD = @GNULIB_PREAD@
5509 -GNULIB_PRINTF = @GNULIB_PRINTF@
5510 -GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
5511 -GNULIB_PTSNAME = @GNULIB_PTSNAME@
5512 -GNULIB_PTSNAME_R = @GNULIB_PTSNAME_R@
5513 -GNULIB_PUTC = @GNULIB_PUTC@
5514 -GNULIB_PUTCHAR = @GNULIB_PUTCHAR@
5515 -GNULIB_PUTENV = @GNULIB_PUTENV@
5516 -GNULIB_PUTS = @GNULIB_PUTS@
5517 -GNULIB_PWRITE = @GNULIB_PWRITE@
5518 -GNULIB_QSORT_R = @GNULIB_QSORT_R@
5519 -GNULIB_RANDOM = @GNULIB_RANDOM@
5520 -GNULIB_RANDOM_R = @GNULIB_RANDOM_R@
5521 -GNULIB_RAWMEMCHR = @GNULIB_RAWMEMCHR@
5522 -GNULIB_READ = @GNULIB_READ@
5523 -GNULIB_READDIR = @GNULIB_READDIR@
5524 -GNULIB_READLINK = @GNULIB_READLINK@
5525 -GNULIB_READLINKAT = @GNULIB_READLINKAT@
5526 -GNULIB_REALLOCARRAY = @GNULIB_REALLOCARRAY@
5527 -GNULIB_REALLOC_POSIX = @GNULIB_REALLOC_POSIX@
5528 -GNULIB_REALPATH = @GNULIB_REALPATH@
5529 -GNULIB_REMAINDER = @GNULIB_REMAINDER@
5530 -GNULIB_REMAINDERF = @GNULIB_REMAINDERF@
5531 -GNULIB_REMAINDERL = @GNULIB_REMAINDERL@
5532 -GNULIB_REMOVE = @GNULIB_REMOVE@
5533 -GNULIB_RENAME = @GNULIB_RENAME@
5534 -GNULIB_RENAMEAT = @GNULIB_RENAMEAT@
5535 -GNULIB_REWINDDIR = @GNULIB_REWINDDIR@
5536 -GNULIB_RINT = @GNULIB_RINT@
5537 -GNULIB_RINTF = @GNULIB_RINTF@
5538 -GNULIB_RINTL = @GNULIB_RINTL@
5539 -GNULIB_RMDIR = @GNULIB_RMDIR@
5540 -GNULIB_ROUND = @GNULIB_ROUND@
5541 -GNULIB_ROUNDF = @GNULIB_ROUNDF@
5542 -GNULIB_ROUNDL = @GNULIB_ROUNDL@
5543 -GNULIB_RPMATCH = @GNULIB_RPMATCH@
5544 -GNULIB_SCANDIR = @GNULIB_SCANDIR@
5545 -GNULIB_SCANF = @GNULIB_SCANF@
5546 -GNULIB_SECURE_GETENV = @GNULIB_SECURE_GETENV@
5547 -GNULIB_SETENV = @GNULIB_SETENV@
5548 -GNULIB_SETHOSTNAME = @GNULIB_SETHOSTNAME@
5549 -GNULIB_SIGNBIT = @GNULIB_SIGNBIT@
5550 -GNULIB_SINF = @GNULIB_SINF@
5551 -GNULIB_SINHF = @GNULIB_SINHF@
5552 -GNULIB_SINL = @GNULIB_SINL@
5553 -GNULIB_SLEEP = @GNULIB_SLEEP@
5554 -GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
5555 -GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
5556 -GNULIB_SQRTF = @GNULIB_SQRTF@
5557 -GNULIB_SQRTL = @GNULIB_SQRTL@
5558 -GNULIB_STAT = @GNULIB_STAT@
5559 -GNULIB_STDIO_H_NONBLOCKING = @GNULIB_STDIO_H_NONBLOCKING@
5560 -GNULIB_STDIO_H_SIGPIPE = @GNULIB_STDIO_H_SIGPIPE@
5561 -GNULIB_STPCPY = @GNULIB_STPCPY@
5562 -GNULIB_STPNCPY = @GNULIB_STPNCPY@
5563 -GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
5564 -GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
5565 -GNULIB_STRDUP = @GNULIB_STRDUP@
5566 -GNULIB_STRERROR = @GNULIB_STRERROR@
5567 -GNULIB_STRERROR_R = @GNULIB_STRERROR_R@
5568 -GNULIB_STRFTIME = @GNULIB_STRFTIME@
5569 -GNULIB_STRNCAT = @GNULIB_STRNCAT@
5570 -GNULIB_STRNDUP = @GNULIB_STRNDUP@
5571 -GNULIB_STRNLEN = @GNULIB_STRNLEN@
5572 -GNULIB_STRPBRK = @GNULIB_STRPBRK@
5573 -GNULIB_STRPTIME = @GNULIB_STRPTIME@
5574 -GNULIB_STRSEP = @GNULIB_STRSEP@
5575 -GNULIB_STRSIGNAL = @GNULIB_STRSIGNAL@
5576 -GNULIB_STRSTR = @GNULIB_STRSTR@
5577 -GNULIB_STRTOD = @GNULIB_STRTOD@
5578 -GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
5579 -GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
5580 -GNULIB_STRTOLD = @GNULIB_STRTOLD@
5581 -GNULIB_STRTOLL = @GNULIB_STRTOLL@
5582 -GNULIB_STRTOULL = @GNULIB_STRTOULL@
5583 -GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
5584 -GNULIB_STRVERSCMP = @GNULIB_STRVERSCMP@
5585 -GNULIB_SYMLINK = @GNULIB_SYMLINK@
5586 -GNULIB_SYMLINKAT = @GNULIB_SYMLINKAT@
5587 -GNULIB_SYSTEM_POSIX = @GNULIB_SYSTEM_POSIX@
5588 -GNULIB_TANF = @GNULIB_TANF@
5589 -GNULIB_TANHF = @GNULIB_TANHF@
5590 -GNULIB_TANL = @GNULIB_TANL@
5591 -GNULIB_TIMEGM = @GNULIB_TIMEGM@
5592 -GNULIB_TIME_R = @GNULIB_TIME_R@
5593 -GNULIB_TIME_RZ = @GNULIB_TIME_RZ@
5594 -GNULIB_TMPFILE = @GNULIB_TMPFILE@
5595 -GNULIB_TRUNC = @GNULIB_TRUNC@
5596 -GNULIB_TRUNCATE = @GNULIB_TRUNCATE@
5597 -GNULIB_TRUNCF = @GNULIB_TRUNCF@
5598 -GNULIB_TRUNCL = @GNULIB_TRUNCL@
5599 -GNULIB_TTYNAME_R = @GNULIB_TTYNAME_R@
5600 -GNULIB_TZSET = @GNULIB_TZSET@
5601 -GNULIB_UNISTD_H_NONBLOCKING = @GNULIB_UNISTD_H_NONBLOCKING@
5602 -GNULIB_UNISTD_H_SIGPIPE = @GNULIB_UNISTD_H_SIGPIPE@
5603 -GNULIB_UNLINK = @GNULIB_UNLINK@
5604 -GNULIB_UNLINKAT = @GNULIB_UNLINKAT@
5605 -GNULIB_UNLOCKPT = @GNULIB_UNLOCKPT@
5606 -GNULIB_UNSETENV = @GNULIB_UNSETENV@
5607 -GNULIB_USLEEP = @GNULIB_USLEEP@
5608 -GNULIB_UTIME = @GNULIB_UTIME@
5609 -GNULIB_UTIMENSAT = @GNULIB_UTIMENSAT@
5610 -GNULIB_VASPRINTF = @GNULIB_VASPRINTF@
5611 -GNULIB_VDPRINTF = @GNULIB_VDPRINTF@
5612 -GNULIB_VFPRINTF = @GNULIB_VFPRINTF@
5613 -GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
5614 -GNULIB_VFSCANF = @GNULIB_VFSCANF@
5615 -GNULIB_VPRINTF = @GNULIB_VPRINTF@
5616 -GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
5617 -GNULIB_VSCANF = @GNULIB_VSCANF@
5618 -GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
5619 -GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
5620 -GNULIB_WCPCPY = @GNULIB_WCPCPY@
5621 -GNULIB_WCPNCPY = @GNULIB_WCPNCPY@
5622 -GNULIB_WCRTOMB = @GNULIB_WCRTOMB@
5623 -GNULIB_WCSCASECMP = @GNULIB_WCSCASECMP@
5624 -GNULIB_WCSCAT = @GNULIB_WCSCAT@
5625 -GNULIB_WCSCHR = @GNULIB_WCSCHR@
5626 -GNULIB_WCSCMP = @GNULIB_WCSCMP@
5627 -GNULIB_WCSCOLL = @GNULIB_WCSCOLL@
5628 -GNULIB_WCSCPY = @GNULIB_WCSCPY@
5629 -GNULIB_WCSCSPN = @GNULIB_WCSCSPN@
5630 -GNULIB_WCSDUP = @GNULIB_WCSDUP@
5631 -GNULIB_WCSFTIME = @GNULIB_WCSFTIME@
5632 -GNULIB_WCSLEN = @GNULIB_WCSLEN@
5633 -GNULIB_WCSNCASECMP = @GNULIB_WCSNCASECMP@
5634 -GNULIB_WCSNCAT = @GNULIB_WCSNCAT@
5635 -GNULIB_WCSNCMP = @GNULIB_WCSNCMP@
5636 -GNULIB_WCSNCPY = @GNULIB_WCSNCPY@
5637 -GNULIB_WCSNLEN = @GNULIB_WCSNLEN@
5638 -GNULIB_WCSNRTOMBS = @GNULIB_WCSNRTOMBS@
5639 -GNULIB_WCSPBRK = @GNULIB_WCSPBRK@
5640 -GNULIB_WCSRCHR = @GNULIB_WCSRCHR@
5641 -GNULIB_WCSRTOMBS = @GNULIB_WCSRTOMBS@
5642 -GNULIB_WCSSPN = @GNULIB_WCSSPN@
5643 -GNULIB_WCSSTR = @GNULIB_WCSSTR@
5644 -GNULIB_WCSTOK = @GNULIB_WCSTOK@
5645 -GNULIB_WCSWIDTH = @GNULIB_WCSWIDTH@
5646 -GNULIB_WCSXFRM = @GNULIB_WCSXFRM@
5647 -GNULIB_WCTOB = @GNULIB_WCTOB@
5648 -GNULIB_WCTOMB = @GNULIB_WCTOMB@
5649 -GNULIB_WCWIDTH = @GNULIB_WCWIDTH@
5650 -GNULIB_WMEMCHR = @GNULIB_WMEMCHR@
5651 -GNULIB_WMEMCMP = @GNULIB_WMEMCMP@
5652 -GNULIB_WMEMCPY = @GNULIB_WMEMCPY@
5653 -GNULIB_WMEMMOVE = @GNULIB_WMEMMOVE@
5654 -GNULIB_WMEMSET = @GNULIB_WMEMSET@
5655 -GNULIB_WRITE = @GNULIB_WRITE@
5656 -GNULIB__EXIT = @GNULIB__EXIT@
5657 GPGME_CFLAGS = @GPGME_CFLAGS@
5658 GPGME_CONFIG = @GPGME_CONFIG@
5659 GPGME_LIBS = @GPGME_LIBS@
5660 GREP = @GREP@
5661 HAVE_ACOSF = @HAVE_ACOSF@
5662 HAVE_ACOSL = @HAVE_ACOSL@
5663 +HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@
5664 HAVE_ALLOCA_H = @HAVE_ALLOCA_H@
5665 HAVE_ALPHASORT = @HAVE_ALPHASORT@
5666 HAVE_ASINF = @HAVE_ASINF@
5667 @@ -907,6 +1250,7 @@ HAVE_CHOWN = @HAVE_CHOWN@
5668 HAVE_CLOSEDIR = @HAVE_CLOSEDIR@
5669 HAVE_COPYSIGN = @HAVE_COPYSIGN@
5670 HAVE_COPYSIGNL = @HAVE_COPYSIGNL@
5671 +HAVE_COPY_FILE_RANGE = @HAVE_COPY_FILE_RANGE@
5672 HAVE_COSF = @HAVE_COSF@
5673 HAVE_COSHF = @HAVE_COSHF@
5674 HAVE_COSL = @HAVE_COSL@
5675 @@ -921,13 +1265,17 @@ HAVE_DECL_CEILL = @HAVE_DECL_CEILL@
5676 HAVE_DECL_COPYSIGNF = @HAVE_DECL_COPYSIGNF@
5677 HAVE_DECL_COSL = @HAVE_DECL_COSL@
5678 HAVE_DECL_DIRFD = @HAVE_DECL_DIRFD@
5679 +HAVE_DECL_ECVT = @HAVE_DECL_ECVT@
5680 HAVE_DECL_ENVIRON = @HAVE_DECL_ENVIRON@
5681 +HAVE_DECL_EXECVPE = @HAVE_DECL_EXECVPE@
5682 HAVE_DECL_EXP2 = @HAVE_DECL_EXP2@
5683 HAVE_DECL_EXP2F = @HAVE_DECL_EXP2F@
5684 HAVE_DECL_EXP2L = @HAVE_DECL_EXP2L@
5685 HAVE_DECL_EXPL = @HAVE_DECL_EXPL@
5686 HAVE_DECL_EXPM1L = @HAVE_DECL_EXPM1L@
5687 HAVE_DECL_FCHDIR = @HAVE_DECL_FCHDIR@
5688 +HAVE_DECL_FCLOSEALL = @HAVE_DECL_FCLOSEALL@
5689 +HAVE_DECL_FCVT = @HAVE_DECL_FCVT@
5690 HAVE_DECL_FDATASYNC = @HAVE_DECL_FDATASYNC@
5691 HAVE_DECL_FDOPENDIR = @HAVE_DECL_FDOPENDIR@
5692 HAVE_DECL_FLOORF = @HAVE_DECL_FLOORF@
5693 @@ -936,6 +1284,7 @@ HAVE_DECL_FPURGE = @HAVE_DECL_FPURGE@
5694 HAVE_DECL_FREXPL = @HAVE_DECL_FREXPL@
5695 HAVE_DECL_FSEEKO = @HAVE_DECL_FSEEKO@
5696 HAVE_DECL_FTELLO = @HAVE_DECL_FTELLO@
5697 +HAVE_DECL_GCVT = @HAVE_DECL_GCVT@
5698 HAVE_DECL_GETDELIM = @HAVE_DECL_GETDELIM@
5699 HAVE_DECL_GETDOMAINNAME = @HAVE_DECL_GETDOMAINNAME@
5700 HAVE_DECL_GETLINE = @HAVE_DECL_GETLINE@
5701 @@ -987,13 +1336,14 @@ HAVE_DECL_TRUNCL = @HAVE_DECL_TRUNCL@
5702 HAVE_DECL_TTYNAME_R = @HAVE_DECL_TTYNAME_R@
5703 HAVE_DECL_UNSETENV = @HAVE_DECL_UNSETENV@
5704 HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
5705 +HAVE_DECL_WCSDUP = @HAVE_DECL_WCSDUP@
5706 HAVE_DECL_WCTOB = @HAVE_DECL_WCTOB@
5707 HAVE_DECL_WCWIDTH = @HAVE_DECL_WCWIDTH@
5708 HAVE_DIRENT_H = @HAVE_DIRENT_H@
5709 HAVE_DPRINTF = @HAVE_DPRINTF@
5710 -HAVE_DUP2 = @HAVE_DUP2@
5711 HAVE_DUP3 = @HAVE_DUP3@
5712 HAVE_EUIDACCESS = @HAVE_EUIDACCESS@
5713 +HAVE_EXECVPE = @HAVE_EXECVPE@
5714 HAVE_EXPF = @HAVE_EXPF@
5715 HAVE_EXPL = @HAVE_EXPL@
5716 HAVE_EXPLICIT_BZERO = @HAVE_EXPLICIT_BZERO@
5717 @@ -1025,6 +1375,7 @@ HAVE_FTELLO = @HAVE_FTELLO@
5718 HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
5719 HAVE_FUTIMENS = @HAVE_FUTIMENS@
5720 HAVE_GETDTABLESIZE = @HAVE_GETDTABLESIZE@
5721 +HAVE_GETENTROPY = @HAVE_GETENTROPY@
5722 HAVE_GETGROUPS = @HAVE_GETGROUPS@
5723 HAVE_GETHOSTNAME = @HAVE_GETHOSTNAME@
5724 HAVE_GETLOGIN = @HAVE_GETLOGIN@
5725 @@ -1033,6 +1384,7 @@ HAVE_GETPAGESIZE = @HAVE_GETPAGESIZE@
5726 HAVE_GETPASS = @HAVE_GETPASS@
5727 HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
5728 HAVE_GETTIMEOFDAY = @HAVE_GETTIMEOFDAY@
5729 +HAVE_GETUMASK = @HAVE_GETUMASK@
5730 HAVE_GRANTPT = @HAVE_GRANTPT@
5731 HAVE_GROUP_MEMBER = @HAVE_GROUP_MEMBER@
5732 HAVE_HYPOTF = @HAVE_HYPOTF@
5733 @@ -1060,7 +1412,6 @@ HAVE_LOGBF = @HAVE_LOGBF@
5734 HAVE_LOGBL = @HAVE_LOGBL@
5735 HAVE_LOGF = @HAVE_LOGF@
5736 HAVE_LOGL = @HAVE_LOGL@
5737 -HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
5738 HAVE_LSTAT = @HAVE_LSTAT@
5739 HAVE_MAX_ALIGN_T = @HAVE_MAX_ALIGN_T@
5740 HAVE_MBRLEN = @HAVE_MBRLEN@
5741 @@ -1070,7 +1421,6 @@ HAVE_MBSLEN = @HAVE_MBSLEN@
5742 HAVE_MBSNRTOWCS = @HAVE_MBSNRTOWCS@
5743 HAVE_MBSRTOWCS = @HAVE_MBSRTOWCS@
5744 HAVE_MBTOWC = @HAVE_MBTOWC@
5745 -HAVE_MEMCHR = @HAVE_MEMCHR@
5746 HAVE_MEMPCPY = @HAVE_MEMPCPY@
5747 HAVE_MKDIRAT = @HAVE_MKDIRAT@
5748 HAVE_MKDTEMP = @HAVE_MKDTEMP@
5749 @@ -1093,6 +1443,7 @@ HAVE_PCLOSE = @HAVE_PCLOSE@
5750 HAVE_PIPE = @HAVE_PIPE@
5751 HAVE_PIPE2 = @HAVE_PIPE2@
5752 HAVE_POPEN = @HAVE_POPEN@
5753 +HAVE_POSIX_MEMALIGN = @HAVE_POSIX_MEMALIGN@
5754 HAVE_POSIX_OPENPT = @HAVE_POSIX_OPENPT@
5755 HAVE_POWF = @HAVE_POWF@
5756 HAVE_PREAD = @HAVE_PREAD@
5757 @@ -1122,6 +1473,8 @@ HAVE_SECURE_GETENV = @HAVE_SECURE_GETENV@
5758 HAVE_SETENV = @HAVE_SETENV@
5759 HAVE_SETHOSTNAME = @HAVE_SETHOSTNAME@
5760 HAVE_SETSTATE = @HAVE_SETSTATE@
5761 +HAVE_SIGABBREV_NP = @HAVE_SIGABBREV_NP@
5762 +HAVE_SIGDESCR_NP = @HAVE_SIGDESCR_NP@
5763 HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
5764 HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
5765 HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
5766 @@ -1137,13 +1490,16 @@ HAVE_STPNCPY = @HAVE_STPNCPY@
5767 HAVE_STRCASECMP = @HAVE_STRCASECMP@
5768 HAVE_STRCASESTR = @HAVE_STRCASESTR@
5769 HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
5770 +HAVE_STRERRORNAME_NP = @HAVE_STRERRORNAME_NP@
5771 HAVE_STRINGS_H = @HAVE_STRINGS_H@
5772 HAVE_STRPBRK = @HAVE_STRPBRK@
5773 HAVE_STRPTIME = @HAVE_STRPTIME@
5774 HAVE_STRSEP = @HAVE_STRSEP@
5775 HAVE_STRTOD = @HAVE_STRTOD@
5776 +HAVE_STRTOL = @HAVE_STRTOL@
5777 HAVE_STRTOLD = @HAVE_STRTOLD@
5778 HAVE_STRTOLL = @HAVE_STRTOLL@
5779 +HAVE_STRTOUL = @HAVE_STRTOUL@
5780 HAVE_STRTOULL = @HAVE_STRTOULL@
5781 HAVE_STRUCT_RANDOM_DATA = @HAVE_STRUCT_RANDOM_DATA@
5782 HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
5783 @@ -1161,12 +1517,12 @@ HAVE_TANF = @HAVE_TANF@
5784 HAVE_TANHF = @HAVE_TANHF@
5785 HAVE_TANL = @HAVE_TANL@
5786 HAVE_TIMEGM = @HAVE_TIMEGM@
5787 +HAVE_TIMESPEC_GET = @HAVE_TIMESPEC_GET@
5788 +HAVE_TIMESPEC_GETRES = @HAVE_TIMESPEC_GETRES@
5789 HAVE_TIMEZONE_T = @HAVE_TIMEZONE_T@
5790 -HAVE_TZSET = @HAVE_TZSET@
5791 HAVE_UNISTD_H = @HAVE_UNISTD_H@
5792 HAVE_UNLINKAT = @HAVE_UNLINKAT@
5793 HAVE_UNLOCKPT = @HAVE_UNLOCKPT@
5794 -HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
5795 HAVE_USLEEP = @HAVE_USLEEP@
5796 HAVE_UTIME = @HAVE_UTIME@
5797 HAVE_UTIMENSAT = @HAVE_UTIMENSAT@
5798 @@ -1208,6 +1564,7 @@ HAVE_WMEMCHR = @HAVE_WMEMCHR@
5799 HAVE_WMEMCMP = @HAVE_WMEMCMP@
5800 HAVE_WMEMCPY = @HAVE_WMEMCPY@
5801 HAVE_WMEMMOVE = @HAVE_WMEMMOVE@
5802 +HAVE_WMEMPCPY = @HAVE_WMEMPCPY@
5803 HAVE_WMEMSET = @HAVE_WMEMSET@
5804 HAVE__BOOL = @HAVE__BOOL@
5805 HAVE__EXIT = @HAVE__EXIT@
5806 @@ -1222,6 +1579,7 @@ INT32_MAX_LT_INTMAX_MAX = @INT32_MAX_LT_INTMAX_MAX@
5807 INT64_MAX_EQ_LONG_MAX = @INT64_MAX_EQ_LONG_MAX@
5808 LD = @LD@
5809 LDFLAGS = @LDFLAGS@
5810 +LIBARCHIVE = @LIBARCHIVE@
5811 LIBBL2 = @LIBBL2@
5812 LIBGNU_LIBDEPS = @LIBGNU_LIBDEPS@
5813 LIBGNU_LTLIBDEPS = @LIBGNU_LTLIBDEPS@
5814 @@ -1304,16 +1662,18 @@ PATH_SEPARATOR = @PATH_SEPARATOR@
5815 PRAGMA_COLUMNS = @PRAGMA_COLUMNS@
5816 PRAGMA_SYSTEM_HEADER = @PRAGMA_SYSTEM_HEADER@
5817 PRIPTR_PREFIX = @PRIPTR_PREFIX@
5818 -PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
5819 PTHREAD_H_DEFINES_STRUCT_TIMESPEC = @PTHREAD_H_DEFINES_STRUCT_TIMESPEC@
5820 PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
5821 RANLIB = @RANLIB@
5822 +REPLACE_ACCESS = @REPLACE_ACCESS@
5823 REPLACE_ACOSF = @REPLACE_ACOSF@
5824 +REPLACE_ALIGNED_ALLOC = @REPLACE_ALIGNED_ALLOC@
5825 REPLACE_ASINF = @REPLACE_ASINF@
5826 REPLACE_ATAN2F = @REPLACE_ATAN2F@
5827 REPLACE_ATANF = @REPLACE_ATANF@
5828 REPLACE_BTOWC = @REPLACE_BTOWC@
5829 -REPLACE_CALLOC = @REPLACE_CALLOC@
5830 +REPLACE_CALLOC_FOR_CALLOC_GNU = @REPLACE_CALLOC_FOR_CALLOC_GNU@
5831 +REPLACE_CALLOC_FOR_CALLOC_POSIX = @REPLACE_CALLOC_FOR_CALLOC_POSIX@
5832 REPLACE_CANONICALIZE_FILE_NAME = @REPLACE_CANONICALIZE_FILE_NAME@
5833 REPLACE_CBRTF = @REPLACE_CBRTF@
5834 REPLACE_CBRTL = @REPLACE_CBRTL@
5835 @@ -1323,13 +1683,22 @@ REPLACE_CEILL = @REPLACE_CEILL@
5836 REPLACE_CHOWN = @REPLACE_CHOWN@
5837 REPLACE_CLOSE = @REPLACE_CLOSE@
5838 REPLACE_CLOSEDIR = @REPLACE_CLOSEDIR@
5839 +REPLACE_COPY_FILE_RANGE = @REPLACE_COPY_FILE_RANGE@
5840 REPLACE_COSF = @REPLACE_COSF@
5841 REPLACE_COSHF = @REPLACE_COSHF@
5842 +REPLACE_CREAT = @REPLACE_CREAT@
5843 REPLACE_CTIME = @REPLACE_CTIME@
5844 REPLACE_DIRFD = @REPLACE_DIRFD@
5845 REPLACE_DPRINTF = @REPLACE_DPRINTF@
5846 REPLACE_DUP = @REPLACE_DUP@
5847 REPLACE_DUP2 = @REPLACE_DUP2@
5848 +REPLACE_EXECL = @REPLACE_EXECL@
5849 +REPLACE_EXECLE = @REPLACE_EXECLE@
5850 +REPLACE_EXECLP = @REPLACE_EXECLP@
5851 +REPLACE_EXECV = @REPLACE_EXECV@
5852 +REPLACE_EXECVE = @REPLACE_EXECVE@
5853 +REPLACE_EXECVP = @REPLACE_EXECVP@
5854 +REPLACE_EXECVPE = @REPLACE_EXECVPE@
5855 REPLACE_EXP2 = @REPLACE_EXP2@
5856 REPLACE_EXP2L = @REPLACE_EXP2L@
5857 REPLACE_EXPF = @REPLACE_EXPF@
5858 @@ -1339,12 +1708,14 @@ REPLACE_EXPM1F = @REPLACE_EXPM1F@
5859 REPLACE_EXPM1L = @REPLACE_EXPM1L@
5860 REPLACE_FABSL = @REPLACE_FABSL@
5861 REPLACE_FACCESSAT = @REPLACE_FACCESSAT@
5862 +REPLACE_FCHMODAT = @REPLACE_FCHMODAT@
5863 REPLACE_FCHOWNAT = @REPLACE_FCHOWNAT@
5864 REPLACE_FCLOSE = @REPLACE_FCLOSE@
5865 REPLACE_FCNTL = @REPLACE_FCNTL@
5866 REPLACE_FDOPEN = @REPLACE_FDOPEN@
5867 REPLACE_FDOPENDIR = @REPLACE_FDOPENDIR@
5868 REPLACE_FFLUSH = @REPLACE_FFLUSH@
5869 +REPLACE_FFSLL = @REPLACE_FFSLL@
5870 REPLACE_FLOOR = @REPLACE_FLOOR@
5871 REPLACE_FLOORF = @REPLACE_FLOORF@
5872 REPLACE_FLOORL = @REPLACE_FLOORL@
5873 @@ -1355,8 +1726,10 @@ REPLACE_FMOD = @REPLACE_FMOD@
5874 REPLACE_FMODF = @REPLACE_FMODF@
5875 REPLACE_FMODL = @REPLACE_FMODL@
5876 REPLACE_FOPEN = @REPLACE_FOPEN@
5877 +REPLACE_FOPEN_FOR_FOPEN_GNU = @REPLACE_FOPEN_FOR_FOPEN_GNU@
5878 REPLACE_FPRINTF = @REPLACE_FPRINTF@
5879 REPLACE_FPURGE = @REPLACE_FPURGE@
5880 +REPLACE_FREE = @REPLACE_FREE@
5881 REPLACE_FREOPEN = @REPLACE_FREOPEN@
5882 REPLACE_FREXP = @REPLACE_FREXP@
5883 REPLACE_FREXPF = @REPLACE_FREXPF@
5884 @@ -1378,6 +1751,7 @@ REPLACE_GETLINE = @REPLACE_GETLINE@
5885 REPLACE_GETLOGIN_R = @REPLACE_GETLOGIN_R@
5886 REPLACE_GETPAGESIZE = @REPLACE_GETPAGESIZE@
5887 REPLACE_GETPASS = @REPLACE_GETPASS@
5888 +REPLACE_GETPASS_FOR_GETPASS_GNU = @REPLACE_GETPASS_FOR_GETPASS_GNU@
5889 REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
5890 REPLACE_GMTIME = @REPLACE_GMTIME@
5891 REPLACE_HUGE_VAL = @REPLACE_HUGE_VAL@
5892 @@ -1416,7 +1790,8 @@ REPLACE_LOGF = @REPLACE_LOGF@
5893 REPLACE_LOGL = @REPLACE_LOGL@
5894 REPLACE_LSEEK = @REPLACE_LSEEK@
5895 REPLACE_LSTAT = @REPLACE_LSTAT@
5896 -REPLACE_MALLOC = @REPLACE_MALLOC@
5897 +REPLACE_MALLOC_FOR_MALLOC_GNU = @REPLACE_MALLOC_FOR_MALLOC_GNU@
5898 +REPLACE_MALLOC_FOR_MALLOC_POSIX = @REPLACE_MALLOC_FOR_MALLOC_POSIX@
5899 REPLACE_MBRLEN = @REPLACE_MBRLEN@
5900 REPLACE_MBRTOWC = @REPLACE_MBRTOWC@
5901 REPLACE_MBSINIT = @REPLACE_MBSINIT@
5902 @@ -1428,7 +1803,9 @@ REPLACE_MEMCHR = @REPLACE_MEMCHR@
5903 REPLACE_MEMMEM = @REPLACE_MEMMEM@
5904 REPLACE_MKDIR = @REPLACE_MKDIR@
5905 REPLACE_MKFIFO = @REPLACE_MKFIFO@
5906 +REPLACE_MKFIFOAT = @REPLACE_MKFIFOAT@
5907 REPLACE_MKNOD = @REPLACE_MKNOD@
5908 +REPLACE_MKNODAT = @REPLACE_MKNODAT@
5909 REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
5910 REPLACE_MKTIME = @REPLACE_MKTIME@
5911 REPLACE_MODF = @REPLACE_MODF@
5912 @@ -1443,6 +1820,7 @@ REPLACE_OPENAT = @REPLACE_OPENAT@
5913 REPLACE_OPENDIR = @REPLACE_OPENDIR@
5914 REPLACE_PERROR = @REPLACE_PERROR@
5915 REPLACE_POPEN = @REPLACE_POPEN@
5916 +REPLACE_POSIX_MEMALIGN = @REPLACE_POSIX_MEMALIGN@
5917 REPLACE_PREAD = @REPLACE_PREAD@
5918 REPLACE_PRINTF = @REPLACE_PRINTF@
5919 REPLACE_PTSNAME = @REPLACE_PTSNAME@
5920 @@ -1455,7 +1833,9 @@ REPLACE_RANDOM_R = @REPLACE_RANDOM_R@
5921 REPLACE_READ = @REPLACE_READ@
5922 REPLACE_READLINK = @REPLACE_READLINK@
5923 REPLACE_READLINKAT = @REPLACE_READLINKAT@
5924 -REPLACE_REALLOC = @REPLACE_REALLOC@
5925 +REPLACE_REALLOCARRAY = @REPLACE_REALLOCARRAY@
5926 +REPLACE_REALLOC_FOR_REALLOC_GNU = @REPLACE_REALLOC_FOR_REALLOC_GNU@
5927 +REPLACE_REALLOC_FOR_REALLOC_POSIX = @REPLACE_REALLOC_FOR_REALLOC_POSIX@
5928 REPLACE_REALPATH = @REPLACE_REALPATH@
5929 REPLACE_REMAINDER = @REPLACE_REMAINDER@
5930 REPLACE_REMAINDERF = @REPLACE_REMAINDERF@
5931 @@ -1471,7 +1851,7 @@ REPLACE_ROUNDL = @REPLACE_ROUNDL@
5932 REPLACE_SETENV = @REPLACE_SETENV@
5933 REPLACE_SETSTATE = @REPLACE_SETSTATE@
5934 REPLACE_SIGNBIT = @REPLACE_SIGNBIT@
5935 -REPLACE_SIGNBIT_USING_GCC = @REPLACE_SIGNBIT_USING_GCC@
5936 +REPLACE_SIGNBIT_USING_BUILTINS = @REPLACE_SIGNBIT_USING_BUILTINS@
5937 REPLACE_SINF = @REPLACE_SINF@
5938 REPLACE_SINHF = @REPLACE_SINHF@
5939 REPLACE_SLEEP = @REPLACE_SLEEP@
5940 @@ -1487,6 +1867,7 @@ REPLACE_STRCASESTR = @REPLACE_STRCASESTR@
5941 REPLACE_STRCHRNUL = @REPLACE_STRCHRNUL@
5942 REPLACE_STRDUP = @REPLACE_STRDUP@
5943 REPLACE_STRERROR = @REPLACE_STRERROR@
5944 +REPLACE_STRERRORNAME_NP = @REPLACE_STRERRORNAME_NP@
5945 REPLACE_STRERROR_R = @REPLACE_STRERROR_R@
5946 REPLACE_STRFTIME = @REPLACE_STRFTIME@
5947 REPLACE_STRNCAT = @REPLACE_STRNCAT@
5948 @@ -1497,7 +1878,11 @@ REPLACE_STRSTR = @REPLACE_STRSTR@
5949 REPLACE_STRTOD = @REPLACE_STRTOD@
5950 REPLACE_STRTOIMAX = @REPLACE_STRTOIMAX@
5951 REPLACE_STRTOK_R = @REPLACE_STRTOK_R@
5952 +REPLACE_STRTOL = @REPLACE_STRTOL@
5953 REPLACE_STRTOLD = @REPLACE_STRTOLD@
5954 +REPLACE_STRTOLL = @REPLACE_STRTOLL@
5955 +REPLACE_STRTOUL = @REPLACE_STRTOUL@
5956 +REPLACE_STRTOULL = @REPLACE_STRTOULL@
5957 REPLACE_STRTOUMAX = @REPLACE_STRTOUMAX@
5958 REPLACE_STRUCT_TIMEVAL = @REPLACE_STRUCT_TIMEVAL@
5959 REPLACE_SYMLINK = @REPLACE_SYMLINK@
5960 @@ -1528,6 +1913,7 @@ REPLACE_WCRTOMB = @REPLACE_WCRTOMB@
5961 REPLACE_WCSFTIME = @REPLACE_WCSFTIME@
5962 REPLACE_WCSNRTOMBS = @REPLACE_WCSNRTOMBS@
5963 REPLACE_WCSRTOMBS = @REPLACE_WCSRTOMBS@
5964 +REPLACE_WCSTOK = @REPLACE_WCSTOK@
5965 REPLACE_WCSWIDTH = @REPLACE_WCSWIDTH@
5966 REPLACE_WCTOB = @REPLACE_WCTOB@
5967 REPLACE_WCTOMB = @REPLACE_WCTOMB@
5968 @@ -1539,19 +1925,21 @@ SET_MAKE = @SET_MAKE@
5969 SHELL = @SHELL@
5970 SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
5971 SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
5972 +STDALIGN_H = @STDALIGN_H@
5973 STDBOOL_H = @STDBOOL_H@
5974 STDDEF_H = @STDDEF_H@
5975 STDINT_H = @STDINT_H@
5976 STRIP = @STRIP@
5977 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
5978 TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
5979 +TIME_H_DEFINES_TIME_UTC = @TIME_H_DEFINES_TIME_UTC@
5980 UINT32_MAX_LT_UINTMAX_MAX = @UINT32_MAX_LT_UINTMAX_MAX@
5981 UINT64_MAX_EQ_ULONG_MAX = @UINT64_MAX_EQ_ULONG_MAX@
5982 UNDEFINE_STRTOK_R = @UNDEFINE_STRTOK_R@
5983 UNISTD_H_DEFINES_STRUCT_TIMESPEC = @UNISTD_H_DEFINES_STRUCT_TIMESPEC@
5984 +UNISTD_H_HAVE_SYS_RANDOM_H = @UNISTD_H_HAVE_SYS_RANDOM_H@
5985 UNISTD_H_HAVE_WINSOCK2_H = @UNISTD_H_HAVE_WINSOCK2_H@
5986 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS = @UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS@
5987 -UTIME_H = @UTIME_H@
5988 VERSION = @VERSION@
5989 WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
5990 WINDOWS_64_BIT_OFF_T = @WINDOWS_64_BIT_OFF_T@
5991 @@ -1583,8 +1971,10 @@ datarootdir = @datarootdir@
5992 docdir = @docdir@
5993 dvidir = @dvidir@
5994 exec_prefix = @exec_prefix@
5995 +gl_LIBOBJDEPS = @gl_LIBOBJDEPS@
5996 gl_LIBOBJS = @gl_LIBOBJS@
5997 gl_LTLIBOBJS = @gl_LTLIBOBJS@
5998 +gltests_LIBOBJDEPS = @gltests_LIBOBJDEPS@
5999 gltests_LIBOBJS = @gltests_LIBOBJS@
6000 gltests_LTLIBOBJS = @gltests_LTLIBOBJS@
6001 gltests_WITNESS = @gltests_WITNESS@
6002 @@ -1617,62 +2007,56 @@ target_alias = @target_alias@
6003 top_build_prefix = @top_build_prefix@
6004 top_builddir = @top_builddir@
6005 top_srcdir = @top_srcdir@
6006 -AUTOMAKE_OPTIONS = 1.11 gnits
6007 +AUTOMAKE_OPTIONS = 1.11 gnits subdir-objects
6008 SUBDIRS =
6009 noinst_HEADERS =
6010 noinst_LIBRARIES = libgnu.a
6011 noinst_LTLIBRARIES =
6012 -EXTRA_DIST = alloca.in.h assure.h openat-priv.h openat-proc.c \
6013 - canonicalize-lgpl.c chdir-long.c chdir-long.h cloexec.h \
6014 - close.c closedir.c dirent-private.h dirent.in.h dirfd.c \
6015 - dirname.h dosname.h dup.c dup2.c errno.in.h error.c error.h \
6016 - euidaccess.c exitfail.h at-func.c faccessat.c fchdir.c fcntl.c \
6017 - fcntl.in.h fd-hook.h fdopendir.c filename.h filenamecat.h \
6018 - float.c float.in.h itold.c fpucw.h frexp.c frexp.c frexpl.c \
6019 - fstat.c stat-w32.c stat-w32.h at-func.c fstatat.c futimens.c \
6020 - getcwd-lgpl.c getdelim.c getdtablesize.c getgroups.c getline.c \
6021 - getopt-cdefs.in.h getopt-core.h getopt-ext.h getopt-pfx-core.h \
6022 - getopt-pfx-ext.h getopt.c getopt.in.h getopt1.c getopt_int.h \
6023 - gettimeofday.c group-member.c intprops.h inttypes.in.h \
6024 - float+.h isnan.c isnand-nolibm.h isnand.c float+.h isnan.c \
6025 +EXTRA_DIST = alloca.in.h assure.h attribute.h basename-lgpl.h calloc.c \
6026 + calloc.c chdir-long.h cloexec.h dirent-private.h dirent.in.h \
6027 + dirname.h eloop-threshold.h errno.in.h error.h exitfail.h \
6028 + at-func.c fcntl.in.h fd-hook.h filename.h filenamecat.h \
6029 + float.in.h fpucw.h frexp.c frexp.c frexpl.c stat-w32.c \
6030 + stat-w32.h at-func.c getopt-cdefs.in.h getopt-core.h \
6031 + getopt-ext.h getopt-pfx-core.h getopt-pfx-ext.h getopt.in.h \
6032 + getopt_int.h ialloc.h intprops.h inttypes.in.h float+.h \
6033 + isnan.c isnand-nolibm.h isnand.c float+.h isnan.c \
6034 isnanf-nolibm.h isnanf.c float+.h isnan.c isnanl-nolibm.h \
6035 - isnanl.c limits.in.h localtime-buffer.c localtime-buffer.h \
6036 - lstat.c malloc.c malloca.h math.in.h memchr.c memchr.valgrind \
6037 - mempcpy.c memrchr.c mkdir.c at-func.c mkdirat.c msvc-inval.c \
6038 - msvc-inval.h msvc-nothrow.c msvc-nothrow.h open.c openat.c \
6039 - openat.h dirent-private.h opendir.c pathmax.h printf-frexp.h \
6040 - printf-frexp.c printf-frexpl.h readlink.c at-func.c \
6041 - readlinkat.c realloc.c rename.c renameat.c at-func2.c \
6042 - renameatu.h rmdir.c root-uid.h same-inode.h save-cwd.h \
6043 - float+.h signbitd.c signbitf.c signbitl.c _Noreturn.h \
6044 + isnanl.c cdefs.h libc-config.h limits.in.h malloc.c malloc.c \
6045 + malloca.h math.in.h memchr.valgrind at-func.c msvc-inval.h \
6046 + msvc-nothrow.h openat.h dirent-private.h pathmax.h \
6047 + printf-frexp.h printf-frexp.c printf-frexpl.h \
6048 + rawmemchr.valgrind at-func.c realloc.c realloc.c at-func2.c \
6049 + at-func2.c renameatu.h root-uid.h same-inode.h save-cwd.h \
6050 + malloc/scratch_buffer.h scratch_buffer.h float+.h _Noreturn.h \
6051 arg-nonnull.h c++defs.h warn-on-use.h stat-w32.c stat-w32.h \
6052 - stat.c stat-time.h stdbool.in.h stddef.in.h stdint.in.h \
6053 - stdio.in.h stdlib.in.h strcasecmp.c strncasecmp.c \
6054 - str-two-way.h strcasestr.c strdup.c strerror.c \
6055 - strerror-override.c strerror-override.h string.in.h \
6056 - strings.in.h strncat.c symlink.c at-func.c symlinkat.c \
6057 + stat-time.h stdalign.in.h stdbool.in.h stddef.in.h stdint.in.h \
6058 + stdio.in.h stdlib.in.h str-two-way.h strcasestr.c \
6059 + strerror-override.h string.in.h strings.in.h at-func.c \
6060 sys_stat.in.h sys_time.in.h sys_types.in.h time.in.h \
6061 - timespec.h unistd.in.h unistd--.h unistd-safer.h unlink.c \
6062 - at-func.c unlinkat.c utime.c utime.in.h utimens.h at-func.c \
6063 - utimensat.c asnprintf.c float+.h printf-args.c printf-args.h \
6064 - printf-parse.c printf-parse.h vasnprintf.c vasnprintf.h \
6065 - asprintf.c vasprintf.c verify.h wchar.in.h xalloc.h \
6066 - xalloc-oversized.h
6067 + timespec.h unistd.in.h unistd--.h unistd-safer.h at-func.c \
6068 + utime.in.h utimens.h at-func.c asnprintf.c float+.h \
6069 + printf-args.c printf-args.h printf-parse.c printf-parse.h \
6070 + vasnprintf.c vasnprintf.h asprintf.c vasprintf.c verify.h \
6071 + wchar.in.h xalloc.h xalloc.h xalloc-oversized.h
6072 BUILT_SOURCES = $(ALLOCA_H) dirent.h $(ERRNO_H) fcntl.h $(FLOAT_H) \
6073 $(GETOPT_H) $(GETOPT_CDEFS_H) inttypes.h $(LIMITS_H) math.h \
6074 - $(STDBOOL_H) $(STDDEF_H) $(STDINT_H) stdio.h stdlib.h string.h \
6075 - strings.h sys/stat.h sys/time.h sys/types.h time.h unistd.h \
6076 - $(UTIME_H) wchar.h
6077 + malloc/scratch_buffer.gl.h $(STDALIGN_H) $(STDBOOL_H) \
6078 + $(STDDEF_H) $(STDINT_H) stdio.h stdlib.h string.h strings.h \
6079 + sys/stat.h sys/time.h sys/types.h time.h unistd.h utime.h \
6080 + wchar.h
6081 SUFFIXES =
6082 MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t dirent.h \
6083 dirent.h-t errno.h errno.h-t fcntl.h fcntl.h-t float.h \
6084 float.h-t getopt.h getopt.h-t getopt-cdefs.h getopt-cdefs.h-t \
6085 inttypes.h inttypes.h-t limits.h limits.h-t math.h math.h-t \
6086 - stdbool.h stdbool.h-t stddef.h stddef.h-t stdint.h stdint.h-t \
6087 - stdio.h stdio.h-t stdlib.h stdlib.h-t string.h string.h-t \
6088 - strings.h strings.h-t sys/stat.h sys/stat.h-t sys/time.h \
6089 - sys/time.h-t sys/types.h sys/types.h-t time.h time.h-t \
6090 - unistd.h unistd.h-t utime.h utime.h-t wchar.h wchar.h-t
6091 + malloc/scratch_buffer.gl.h malloc/scratch_buffer.gl.h-t \
6092 + stdalign.h stdalign.h-t stdbool.h stdbool.h-t stddef.h \
6093 + stddef.h-t stdint.h stdint.h-t stdio.h stdio.h-t stdlib.h \
6094 + stdlib.h-t string.h string.h-t strings.h strings.h-t \
6095 + sys/stat.h sys/stat.h-t sys/time.h sys/time.h-t sys/types.h \
6096 + sys/types.h-t time.h time.h-t unistd.h unistd.h-t utime.h \
6097 + utime.h-t wchar.h wchar.h-t
6098 MOSTLYCLEANDIRS = sys
6099 CLEANFILES =
6100 DISTCLEANFILES =
6101 @@ -1680,39 +2064,67 @@ MAINTAINERCLEANFILES =
6102 # No GNU Make output.
6103 AM_CPPFLAGS =
6104 AM_CFLAGS =
6105 -libgnu_a_SOURCES = cloexec.c dirname-lgpl.c basename-lgpl.c \
6106 - stripslash.c exitfail.c fd-hook.c fd-safer-flag.c \
6107 - dup-safer-flag.c filenamecat-lgpl.c getprogname.h \
6108 - getprogname.c gettext.h gettime.c malloca.c math.c \
6109 - openat-die.c printf-frexp.c printf-frexpl.c renameatu.c \
6110 - save-cwd.c size_max.h stat-time.c statat.c timespec.c unistd.c \
6111 - dup-safer.c fd-safer.c pipe-safer.c utimens.c xmalloc.c \
6112 +libgnu_a_SOURCES = openat-priv.h openat-proc.c basename-lgpl.c \
6113 + $(am__append_1) $(am__append_2) cloexec.c $(am__append_3) \
6114 + $(am__append_4) $(am__append_5) dirname-lgpl.c stripslash.c \
6115 + $(am__append_6) $(am__append_7) $(am__append_8) \
6116 + $(am__append_9) exitfail.c $(am__append_10) $(am__append_11) \
6117 + $(am__append_12) fd-hook.c fd-safer-flag.c dup-safer-flag.c \
6118 + $(am__append_13) filenamecat-lgpl.c $(am__append_14) \
6119 + $(am__append_15) $(am__append_16) $(am__append_17) \
6120 + $(am__append_18) $(am__append_19) $(am__append_20) \
6121 + $(am__append_21) $(am__append_22) $(am__append_23) \
6122 + $(am__append_24) $(am__append_25) getprogname.h getprogname.c \
6123 + gettext.h gettime.c $(am__append_26) $(am__append_27) ialloc.c \
6124 + idx.h $(am__append_28) malloca.c math.c $(am__append_29) \
6125 + $(am__append_30) $(am__append_31) minmax.h $(am__append_32) \
6126 + $(am__append_33) $(am__append_34) $(am__append_35) \
6127 + $(am__append_36) $(am__append_37) openat-die.c \
6128 + $(am__append_38) $(am__append_39) printf-frexp.c \
6129 + printf-frexpl.c $(am__append_40) $(am__append_41) \
6130 + $(am__append_42) $(am__append_43) $(am__append_44) \
6131 + $(am__append_45) renameatu.c $(am__append_46) save-cwd.c \
6132 + malloc/scratch_buffer_dupfree.c malloc/scratch_buffer_grow.c \
6133 + malloc/scratch_buffer_grow_preserve.c \
6134 + malloc/scratch_buffer_set_array_size.c $(am__append_47) \
6135 + size_max.h $(am__append_48) stat-time.c statat.c \
6136 + $(am__append_49) $(am__append_50) $(am__append_51) \
6137 + $(am__append_52) $(am__append_53) $(am__append_54) \
6138 + $(am__append_55) $(am__append_56) $(am__append_57) \
6139 + $(am__append_58) timespec.c unistd.c dup-safer.c fd-safer.c \
6140 + pipe-safer.c $(am__append_59) $(am__append_60) \
6141 + $(am__append_61) utimens.c $(am__append_62) xmalloc.c \
6142 xalloc-die.c xsize.h xsize.c
6143 +libgnu_a_CFLAGS = $(AM_CFLAGS) $(GL_CFLAG_GNULIB_WARNINGS)
6144 libgnu_a_LIBADD = $(gl_LIBOBJS)
6145 libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
6146 -EXTRA_libgnu_a_SOURCES = openat-proc.c canonicalize-lgpl.c \
6147 - chdir-long.c close.c closedir.c dirfd.c dup.c dup2.c error.c \
6148 - euidaccess.c at-func.c faccessat.c fchdir.c fcntl.c \
6149 - fdopendir.c float.c itold.c frexp.c frexp.c frexpl.c fstat.c \
6150 - stat-w32.c at-func.c fstatat.c futimens.c getcwd-lgpl.c \
6151 - getdelim.c getdtablesize.c getgroups.c getline.c getopt.c \
6152 - getopt1.c gettimeofday.c group-member.c isnan.c isnand.c \
6153 - isnan.c isnanf.c isnan.c isnanl.c localtime-buffer.c lstat.c \
6154 - malloc.c memchr.c mempcpy.c memrchr.c mkdir.c at-func.c \
6155 - mkdirat.c msvc-inval.c msvc-nothrow.c open.c openat.c \
6156 - opendir.c printf-frexp.c readlink.c at-func.c readlinkat.c \
6157 - realloc.c rename.c renameat.c at-func2.c rmdir.c signbitd.c \
6158 - signbitf.c signbitl.c stat-w32.c stat.c strcasecmp.c \
6159 - strncasecmp.c strcasestr.c strdup.c strerror.c \
6160 - strerror-override.c strncat.c symlink.c at-func.c symlinkat.c \
6161 - unlink.c at-func.c unlinkat.c utime.c at-func.c utimensat.c \
6162 - asnprintf.c printf-args.c printf-parse.c vasnprintf.c \
6163 - asprintf.c vasprintf.c
6164 +EXTRA_libgnu_a_SOURCES = calloc.c calloc.c at-func.c frexp.c frexp.c \
6165 + frexpl.c stat-w32.c at-func.c isnan.c isnand.c isnan.c \
6166 + isnanf.c isnan.c isnanl.c malloc.c malloc.c at-func.c \
6167 + printf-frexp.c at-func.c realloc.c realloc.c at-func2.c \
6168 + at-func2.c stat-w32.c strcasestr.c at-func.c at-func.c \
6169 + at-func.c asnprintf.c printf-args.c printf-parse.c \
6170 + vasnprintf.c asprintf.c vasprintf.c
6171
6172 # Use this preprocessor expression to decide whether #include_next works.
6173 # Do not rely on a 'configure'-time test for this, since the expression
6174 # might appear in an installed header, which is used by some other compiler.
6175 -HAVE_INCLUDE_NEXT = (__GNUC__ || 60000000 <= __DECC_VER)
6176 +HAVE_INCLUDE_NEXT = (__GNUC__ || __clang__ || 60000000 <= __DECC_VER)
6177 +
6178 +# In 'sed', replace the pattern space with a "DO NOT EDIT" comment.
6179 +SED_HEADER_NOEDIT = s,.*,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */,
6180 +
6181 +# '$(SED_HEADER_STDOUT) -e "..."' runs 'sed' but first outputs "DO NOT EDIT".
6182 +SED_HEADER_STDOUT = sed -e 1h -e '1$(SED_HEADER_NOEDIT)' -e 1G
6183 +
6184 +# '$(SED_HEADER_TO_AT_t) FILE' copies FILE to $@-t, prepending a leading
6185 +# "DO_NOT_EDIT". Although this could be done more simply via:
6186 +# SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) > $@-t
6187 +# the -n and 'w' avoid a fork+exec, at least when GNU Make is used.
6188 +SED_HEADER_TO_AT_t = $(SED_HEADER_STDOUT) -n -e 'w $@-t'
6189 +
6190 +# Use $(gl_V_at) instead of $(AM_V_GEN) or $(AM_V_at) on a line that
6191 +gl_V_at = $(AM_V_GEN)
6192
6193 # Because this Makefile snippet defines a variable used by other
6194 # gnulib Makefile snippets, it must be present in all makefiles that
6195 @@ -1781,6 +2193,20 @@ clean-noinstLTLIBRARIES:
6196 echo rm -f $${locs}; \
6197 rm -f $${locs}; \
6198 }
6199 +malloc/$(am__dirstamp):
6200 + @$(MKDIR_P) malloc
6201 + @: > malloc/$(am__dirstamp)
6202 +malloc/$(DEPDIR)/$(am__dirstamp):
6203 + @$(MKDIR_P) malloc/$(DEPDIR)
6204 + @: > malloc/$(DEPDIR)/$(am__dirstamp)
6205 +malloc/libgnu_a-scratch_buffer_dupfree.$(OBJEXT): \
6206 + malloc/$(am__dirstamp) malloc/$(DEPDIR)/$(am__dirstamp)
6207 +malloc/libgnu_a-scratch_buffer_grow.$(OBJEXT): malloc/$(am__dirstamp) \
6208 + malloc/$(DEPDIR)/$(am__dirstamp)
6209 +malloc/libgnu_a-scratch_buffer_grow_preserve.$(OBJEXT): \
6210 + malloc/$(am__dirstamp) malloc/$(DEPDIR)/$(am__dirstamp)
6211 +malloc/libgnu_a-scratch_buffer_set_array_size.$(OBJEXT): \
6212 + malloc/$(am__dirstamp) malloc/$(DEPDIR)/$(am__dirstamp)
6213
6214 libgnu.a: $(libgnu_a_OBJECTS) $(libgnu_a_DEPENDENCIES) $(EXTRA_libgnu_a_DEPENDENCIES)
6215 $(AM_V_at)-rm -f libgnu.a
6216 @@ -1789,118 +2215,130 @@ libgnu.a: $(libgnu_a_OBJECTS) $(libgnu_a_DEPENDENCIES) $(EXTRA_libgnu_a_DEPENDEN
6217
6218 mostlyclean-compile:
6219 -rm -f *.$(OBJEXT)
6220 + -rm -f malloc/*.$(OBJEXT)
6221
6222 distclean-compile:
6223 -rm -f *.tab.c
6224
6225 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asnprintf.Po@am__quote@ # am--include-marker
6226 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/asprintf.Po@am__quote@ # am--include-marker
6227 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/at-func.Po@am__quote@ # am--include-marker
6228 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/at-func2.Po@am__quote@ # am--include-marker
6229 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/basename-lgpl.Po@am__quote@ # am--include-marker
6230 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/canonicalize-lgpl.Po@am__quote@ # am--include-marker
6231 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/chdir-long.Po@am__quote@ # am--include-marker
6232 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cloexec.Po@am__quote@ # am--include-marker
6233 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/close.Po@am__quote@ # am--include-marker
6234 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/closedir.Po@am__quote@ # am--include-marker
6235 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dirfd.Po@am__quote@ # am--include-marker
6236 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dirname-lgpl.Po@am__quote@ # am--include-marker
6237 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dup-safer-flag.Po@am__quote@ # am--include-marker
6238 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dup-safer.Po@am__quote@ # am--include-marker
6239 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dup.Po@am__quote@ # am--include-marker
6240 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dup2.Po@am__quote@ # am--include-marker
6241 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Po@am__quote@ # am--include-marker
6242 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/euidaccess.Po@am__quote@ # am--include-marker
6243 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exitfail.Po@am__quote@ # am--include-marker
6244 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/faccessat.Po@am__quote@ # am--include-marker
6245 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fchdir.Po@am__quote@ # am--include-marker
6246 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fcntl.Po@am__quote@ # am--include-marker
6247 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fd-hook.Po@am__quote@ # am--include-marker
6248 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fd-safer-flag.Po@am__quote@ # am--include-marker
6249 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fd-safer.Po@am__quote@ # am--include-marker
6250 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fdopendir.Po@am__quote@ # am--include-marker
6251 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filenamecat-lgpl.Po@am__quote@ # am--include-marker
6252 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/float.Po@am__quote@ # am--include-marker
6253 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frexp.Po@am__quote@ # am--include-marker
6254 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frexpl.Po@am__quote@ # am--include-marker
6255 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fstat.Po@am__quote@ # am--include-marker
6256 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fstatat.Po@am__quote@ # am--include-marker
6257 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/futimens.Po@am__quote@ # am--include-marker
6258 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getcwd-lgpl.Po@am__quote@ # am--include-marker
6259 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getdelim.Po@am__quote@ # am--include-marker
6260 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getdtablesize.Po@am__quote@ # am--include-marker
6261 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getgroups.Po@am__quote@ # am--include-marker
6262 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getline.Po@am__quote@ # am--include-marker
6263 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@ # am--include-marker
6264 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt1.Po@am__quote@ # am--include-marker
6265 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getprogname.Po@am__quote@ # am--include-marker
6266 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gettime.Po@am__quote@ # am--include-marker
6267 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gettimeofday.Po@am__quote@ # am--include-marker
6268 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/group-member.Po@am__quote@ # am--include-marker
6269 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isnan.Po@am__quote@ # am--include-marker
6270 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isnand.Po@am__quote@ # am--include-marker
6271 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isnanf.Po@am__quote@ # am--include-marker
6272 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/isnanl.Po@am__quote@ # am--include-marker
6273 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/itold.Po@am__quote@ # am--include-marker
6274 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/localtime-buffer.Po@am__quote@ # am--include-marker
6275 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lstat.Po@am__quote@ # am--include-marker
6276 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/malloc.Po@am__quote@ # am--include-marker
6277 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/malloca.Po@am__quote@ # am--include-marker
6278 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/math.Po@am__quote@ # am--include-marker
6279 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memchr.Po@am__quote@ # am--include-marker
6280 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mempcpy.Po@am__quote@ # am--include-marker
6281 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memrchr.Po@am__quote@ # am--include-marker
6282 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mkdir.Po@am__quote@ # am--include-marker
6283 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mkdirat.Po@am__quote@ # am--include-marker
6284 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msvc-inval.Po@am__quote@ # am--include-marker
6285 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msvc-nothrow.Po@am__quote@ # am--include-marker
6286 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/open.Po@am__quote@ # am--include-marker
6287 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/openat-die.Po@am__quote@ # am--include-marker
6288 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/openat-proc.Po@am__quote@ # am--include-marker
6289 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/openat.Po@am__quote@ # am--include-marker
6290 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/opendir.Po@am__quote@ # am--include-marker
6291 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pipe-safer.Po@am__quote@ # am--include-marker
6292 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/printf-args.Po@am__quote@ # am--include-marker
6293 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/printf-frexp.Po@am__quote@ # am--include-marker
6294 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/printf-frexpl.Po@am__quote@ # am--include-marker
6295 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/printf-parse.Po@am__quote@ # am--include-marker
6296 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readlink.Po@am__quote@ # am--include-marker
6297 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readlinkat.Po@am__quote@ # am--include-marker
6298 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/realloc.Po@am__quote@ # am--include-marker
6299 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rename.Po@am__quote@ # am--include-marker
6300 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/renameat.Po@am__quote@ # am--include-marker
6301 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/renameatu.Po@am__quote@ # am--include-marker
6302 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rmdir.Po@am__quote@ # am--include-marker
6303 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/save-cwd.Po@am__quote@ # am--include-marker
6304 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/signbitd.Po@am__quote@ # am--include-marker
6305 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/signbitf.Po@am__quote@ # am--include-marker
6306 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/signbitl.Po@am__quote@ # am--include-marker
6307 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stat-time.Po@am__quote@ # am--include-marker
6308 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stat-w32.Po@am__quote@ # am--include-marker
6309 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stat.Po@am__quote@ # am--include-marker
6310 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/statat.Po@am__quote@ # am--include-marker
6311 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strcasecmp.Po@am__quote@ # am--include-marker
6312 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strcasestr.Po@am__quote@ # am--include-marker
6313 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strdup.Po@am__quote@ # am--include-marker
6314 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strerror-override.Po@am__quote@ # am--include-marker
6315 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strerror.Po@am__quote@ # am--include-marker
6316 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stripslash.Po@am__quote@ # am--include-marker
6317 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strncasecmp.Po@am__quote@ # am--include-marker
6318 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strncat.Po@am__quote@ # am--include-marker
6319 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symlink.Po@am__quote@ # am--include-marker
6320 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/symlinkat.Po@am__quote@ # am--include-marker
6321 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timespec.Po@am__quote@ # am--include-marker
6322 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unistd.Po@am__quote@ # am--include-marker
6323 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unlink.Po@am__quote@ # am--include-marker
6324 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/unlinkat.Po@am__quote@ # am--include-marker
6325 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utime.Po@am__quote@ # am--include-marker
6326 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utimens.Po@am__quote@ # am--include-marker
6327 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utimensat.Po@am__quote@ # am--include-marker
6328 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vasnprintf.Po@am__quote@ # am--include-marker
6329 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vasprintf.Po@am__quote@ # am--include-marker
6330 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xalloc-die.Po@am__quote@ # am--include-marker
6331 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmalloc.Po@am__quote@ # am--include-marker
6332 -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xsize.Po@am__quote@ # am--include-marker
6333 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-asnprintf.Po@am__quote@ # am--include-marker
6334 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-asprintf.Po@am__quote@ # am--include-marker
6335 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-at-func.Po@am__quote@ # am--include-marker
6336 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-at-func2.Po@am__quote@ # am--include-marker
6337 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-basename-lgpl.Po@am__quote@ # am--include-marker
6338 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-calloc.Po@am__quote@ # am--include-marker
6339 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-canonicalize-lgpl.Po@am__quote@ # am--include-marker
6340 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-chdir-long.Po@am__quote@ # am--include-marker
6341 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-cloexec.Po@am__quote@ # am--include-marker
6342 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-close.Po@am__quote@ # am--include-marker
6343 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-closedir.Po@am__quote@ # am--include-marker
6344 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-dirfd.Po@am__quote@ # am--include-marker
6345 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-dirname-lgpl.Po@am__quote@ # am--include-marker
6346 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-dup-safer-flag.Po@am__quote@ # am--include-marker
6347 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-dup-safer.Po@am__quote@ # am--include-marker
6348 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-dup.Po@am__quote@ # am--include-marker
6349 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-dup2.Po@am__quote@ # am--include-marker
6350 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-error.Po@am__quote@ # am--include-marker
6351 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-euidaccess.Po@am__quote@ # am--include-marker
6352 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-exitfail.Po@am__quote@ # am--include-marker
6353 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-faccessat.Po@am__quote@ # am--include-marker
6354 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-fchdir.Po@am__quote@ # am--include-marker
6355 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-fcntl.Po@am__quote@ # am--include-marker
6356 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-fd-hook.Po@am__quote@ # am--include-marker
6357 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-fd-safer-flag.Po@am__quote@ # am--include-marker
6358 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-fd-safer.Po@am__quote@ # am--include-marker
6359 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-fdopendir.Po@am__quote@ # am--include-marker
6360 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-filenamecat-lgpl.Po@am__quote@ # am--include-marker
6361 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-float.Po@am__quote@ # am--include-marker
6362 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-free.Po@am__quote@ # am--include-marker
6363 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-frexp.Po@am__quote@ # am--include-marker
6364 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-frexpl.Po@am__quote@ # am--include-marker
6365 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-fstat.Po@am__quote@ # am--include-marker
6366 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-fstatat.Po@am__quote@ # am--include-marker
6367 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-futimens.Po@am__quote@ # am--include-marker
6368 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-getcwd-lgpl.Po@am__quote@ # am--include-marker
6369 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-getdelim.Po@am__quote@ # am--include-marker
6370 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-getdtablesize.Po@am__quote@ # am--include-marker
6371 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-getgroups.Po@am__quote@ # am--include-marker
6372 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-getline.Po@am__quote@ # am--include-marker
6373 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-getopt.Po@am__quote@ # am--include-marker
6374 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-getopt1.Po@am__quote@ # am--include-marker
6375 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-getprogname.Po@am__quote@ # am--include-marker
6376 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-gettime.Po@am__quote@ # am--include-marker
6377 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-gettimeofday.Po@am__quote@ # am--include-marker
6378 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-group-member.Po@am__quote@ # am--include-marker
6379 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-ialloc.Po@am__quote@ # am--include-marker
6380 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-isnan.Po@am__quote@ # am--include-marker
6381 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-isnand.Po@am__quote@ # am--include-marker
6382 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-isnanf.Po@am__quote@ # am--include-marker
6383 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-isnanl.Po@am__quote@ # am--include-marker
6384 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-itold.Po@am__quote@ # am--include-marker
6385 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-lstat.Po@am__quote@ # am--include-marker
6386 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-malloc.Po@am__quote@ # am--include-marker
6387 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-malloca.Po@am__quote@ # am--include-marker
6388 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-math.Po@am__quote@ # am--include-marker
6389 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-memchr.Po@am__quote@ # am--include-marker
6390 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-mempcpy.Po@am__quote@ # am--include-marker
6391 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-memrchr.Po@am__quote@ # am--include-marker
6392 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-mkdir.Po@am__quote@ # am--include-marker
6393 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-mkdirat.Po@am__quote@ # am--include-marker
6394 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-msvc-inval.Po@am__quote@ # am--include-marker
6395 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-msvc-nothrow.Po@am__quote@ # am--include-marker
6396 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-open.Po@am__quote@ # am--include-marker
6397 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-openat-die.Po@am__quote@ # am--include-marker
6398 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-openat-proc.Po@am__quote@ # am--include-marker
6399 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-openat.Po@am__quote@ # am--include-marker
6400 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-opendir.Po@am__quote@ # am--include-marker
6401 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-pipe-safer.Po@am__quote@ # am--include-marker
6402 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-pipe.Po@am__quote@ # am--include-marker
6403 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-printf-args.Po@am__quote@ # am--include-marker
6404 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-printf-frexp.Po@am__quote@ # am--include-marker
6405 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-printf-frexpl.Po@am__quote@ # am--include-marker
6406 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-printf-parse.Po@am__quote@ # am--include-marker
6407 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-rawmemchr.Po@am__quote@ # am--include-marker
6408 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-readlink.Po@am__quote@ # am--include-marker
6409 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-readlinkat.Po@am__quote@ # am--include-marker
6410 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-realloc.Po@am__quote@ # am--include-marker
6411 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-reallocarray.Po@am__quote@ # am--include-marker
6412 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-rename.Po@am__quote@ # am--include-marker
6413 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-renameat.Po@am__quote@ # am--include-marker
6414 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-renameatu.Po@am__quote@ # am--include-marker
6415 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-rmdir.Po@am__quote@ # am--include-marker
6416 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-save-cwd.Po@am__quote@ # am--include-marker
6417 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-signbitd.Po@am__quote@ # am--include-marker
6418 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-signbitf.Po@am__quote@ # am--include-marker
6419 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-signbitl.Po@am__quote@ # am--include-marker
6420 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-stat-time.Po@am__quote@ # am--include-marker
6421 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-stat-w32.Po@am__quote@ # am--include-marker
6422 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-stat.Po@am__quote@ # am--include-marker
6423 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-statat.Po@am__quote@ # am--include-marker
6424 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-stdio-read.Po@am__quote@ # am--include-marker
6425 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-stdio-write.Po@am__quote@ # am--include-marker
6426 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-strcasecmp.Po@am__quote@ # am--include-marker
6427 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-strcasestr.Po@am__quote@ # am--include-marker
6428 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-strdup.Po@am__quote@ # am--include-marker
6429 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-strerror-override.Po@am__quote@ # am--include-marker
6430 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-strerror.Po@am__quote@ # am--include-marker
6431 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-stripslash.Po@am__quote@ # am--include-marker
6432 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-strncasecmp.Po@am__quote@ # am--include-marker
6433 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-strncat.Po@am__quote@ # am--include-marker
6434 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-symlink.Po@am__quote@ # am--include-marker
6435 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-symlinkat.Po@am__quote@ # am--include-marker
6436 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-timespec.Po@am__quote@ # am--include-marker
6437 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-unistd.Po@am__quote@ # am--include-marker
6438 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-unlink.Po@am__quote@ # am--include-marker
6439 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-unlinkat.Po@am__quote@ # am--include-marker
6440 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-utime.Po@am__quote@ # am--include-marker
6441 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-utimens.Po@am__quote@ # am--include-marker
6442 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-utimensat.Po@am__quote@ # am--include-marker
6443 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-vasnprintf.Po@am__quote@ # am--include-marker
6444 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-vasprintf.Po@am__quote@ # am--include-marker
6445 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-xalloc-die.Po@am__quote@ # am--include-marker
6446 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-xmalloc.Po@am__quote@ # am--include-marker
6447 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libgnu_a-xsize.Po@am__quote@ # am--include-marker
6448 +@AMDEP_TRUE@@am__include@ @am__quote@malloc/$(DEPDIR)/libgnu_a-scratch_buffer_dupfree.Po@am__quote@ # am--include-marker
6449 +@AMDEP_TRUE@@am__include@ @am__quote@malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow.Po@am__quote@ # am--include-marker
6450 +@AMDEP_TRUE@@am__include@ @am__quote@malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow_preserve.Po@am__quote@ # am--include-marker
6451 +@AMDEP_TRUE@@am__include@ @am__quote@malloc/$(DEPDIR)/libgnu_a-scratch_buffer_set_array_size.Po@am__quote@ # am--include-marker
6452
6453 $(am__depfiles_remade):
6454 @$(MKDIR_P) $(@D)
6455 @@ -1909,26 +2347,1695 @@ $(am__depfiles_remade):
6456 am--depfiles: $(am__depfiles_remade)
6457
6458 .c.o:
6459 -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
6460 -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
6461 +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
6462 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
6463 +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
6464 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
6465 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6466 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
6467
6468 .c.obj:
6469 -@am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
6470 -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
6471 +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
6472 +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
6473 +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
6474 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
6475 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6476 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
6477
6478 .c.lo:
6479 -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
6480 -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
6481 +@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
6482 +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
6483 +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
6484 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
6485 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6486 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
6487
6488 +libgnu_a-openat-proc.o: openat-proc.c
6489 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-openat-proc.o -MD -MP -MF $(DEPDIR)/libgnu_a-openat-proc.Tpo -c -o libgnu_a-openat-proc.o `test -f 'openat-proc.c' || echo '$(srcdir)/'`openat-proc.c
6490 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-openat-proc.Tpo $(DEPDIR)/libgnu_a-openat-proc.Po
6491 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openat-proc.c' object='libgnu_a-openat-proc.o' libtool=no @AMDEPBACKSLASH@
6492 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6493 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-openat-proc.o `test -f 'openat-proc.c' || echo '$(srcdir)/'`openat-proc.c
6494 +
6495 +libgnu_a-openat-proc.obj: openat-proc.c
6496 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-openat-proc.obj -MD -MP -MF $(DEPDIR)/libgnu_a-openat-proc.Tpo -c -o libgnu_a-openat-proc.obj `if test -f 'openat-proc.c'; then $(CYGPATH_W) 'openat-proc.c'; else $(CYGPATH_W) '$(srcdir)/openat-proc.c'; fi`
6497 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-openat-proc.Tpo $(DEPDIR)/libgnu_a-openat-proc.Po
6498 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openat-proc.c' object='libgnu_a-openat-proc.obj' libtool=no @AMDEPBACKSLASH@
6499 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6500 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-openat-proc.obj `if test -f 'openat-proc.c'; then $(CYGPATH_W) 'openat-proc.c'; else $(CYGPATH_W) '$(srcdir)/openat-proc.c'; fi`
6501 +
6502 +libgnu_a-basename-lgpl.o: basename-lgpl.c
6503 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-basename-lgpl.o -MD -MP -MF $(DEPDIR)/libgnu_a-basename-lgpl.Tpo -c -o libgnu_a-basename-lgpl.o `test -f 'basename-lgpl.c' || echo '$(srcdir)/'`basename-lgpl.c
6504 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-basename-lgpl.Tpo $(DEPDIR)/libgnu_a-basename-lgpl.Po
6505 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='basename-lgpl.c' object='libgnu_a-basename-lgpl.o' libtool=no @AMDEPBACKSLASH@
6506 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6507 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-basename-lgpl.o `test -f 'basename-lgpl.c' || echo '$(srcdir)/'`basename-lgpl.c
6508 +
6509 +libgnu_a-basename-lgpl.obj: basename-lgpl.c
6510 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-basename-lgpl.obj -MD -MP -MF $(DEPDIR)/libgnu_a-basename-lgpl.Tpo -c -o libgnu_a-basename-lgpl.obj `if test -f 'basename-lgpl.c'; then $(CYGPATH_W) 'basename-lgpl.c'; else $(CYGPATH_W) '$(srcdir)/basename-lgpl.c'; fi`
6511 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-basename-lgpl.Tpo $(DEPDIR)/libgnu_a-basename-lgpl.Po
6512 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='basename-lgpl.c' object='libgnu_a-basename-lgpl.obj' libtool=no @AMDEPBACKSLASH@
6513 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6514 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-basename-lgpl.obj `if test -f 'basename-lgpl.c'; then $(CYGPATH_W) 'basename-lgpl.c'; else $(CYGPATH_W) '$(srcdir)/basename-lgpl.c'; fi`
6515 +
6516 +libgnu_a-canonicalize-lgpl.o: canonicalize-lgpl.c
6517 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-canonicalize-lgpl.o -MD -MP -MF $(DEPDIR)/libgnu_a-canonicalize-lgpl.Tpo -c -o libgnu_a-canonicalize-lgpl.o `test -f 'canonicalize-lgpl.c' || echo '$(srcdir)/'`canonicalize-lgpl.c
6518 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-canonicalize-lgpl.Tpo $(DEPDIR)/libgnu_a-canonicalize-lgpl.Po
6519 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='canonicalize-lgpl.c' object='libgnu_a-canonicalize-lgpl.o' libtool=no @AMDEPBACKSLASH@
6520 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6521 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-canonicalize-lgpl.o `test -f 'canonicalize-lgpl.c' || echo '$(srcdir)/'`canonicalize-lgpl.c
6522 +
6523 +libgnu_a-canonicalize-lgpl.obj: canonicalize-lgpl.c
6524 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-canonicalize-lgpl.obj -MD -MP -MF $(DEPDIR)/libgnu_a-canonicalize-lgpl.Tpo -c -o libgnu_a-canonicalize-lgpl.obj `if test -f 'canonicalize-lgpl.c'; then $(CYGPATH_W) 'canonicalize-lgpl.c'; else $(CYGPATH_W) '$(srcdir)/canonicalize-lgpl.c'; fi`
6525 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-canonicalize-lgpl.Tpo $(DEPDIR)/libgnu_a-canonicalize-lgpl.Po
6526 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='canonicalize-lgpl.c' object='libgnu_a-canonicalize-lgpl.obj' libtool=no @AMDEPBACKSLASH@
6527 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6528 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-canonicalize-lgpl.obj `if test -f 'canonicalize-lgpl.c'; then $(CYGPATH_W) 'canonicalize-lgpl.c'; else $(CYGPATH_W) '$(srcdir)/canonicalize-lgpl.c'; fi`
6529 +
6530 +libgnu_a-chdir-long.o: chdir-long.c
6531 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-chdir-long.o -MD -MP -MF $(DEPDIR)/libgnu_a-chdir-long.Tpo -c -o libgnu_a-chdir-long.o `test -f 'chdir-long.c' || echo '$(srcdir)/'`chdir-long.c
6532 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-chdir-long.Tpo $(DEPDIR)/libgnu_a-chdir-long.Po
6533 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='chdir-long.c' object='libgnu_a-chdir-long.o' libtool=no @AMDEPBACKSLASH@
6534 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6535 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-chdir-long.o `test -f 'chdir-long.c' || echo '$(srcdir)/'`chdir-long.c
6536 +
6537 +libgnu_a-chdir-long.obj: chdir-long.c
6538 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-chdir-long.obj -MD -MP -MF $(DEPDIR)/libgnu_a-chdir-long.Tpo -c -o libgnu_a-chdir-long.obj `if test -f 'chdir-long.c'; then $(CYGPATH_W) 'chdir-long.c'; else $(CYGPATH_W) '$(srcdir)/chdir-long.c'; fi`
6539 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-chdir-long.Tpo $(DEPDIR)/libgnu_a-chdir-long.Po
6540 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='chdir-long.c' object='libgnu_a-chdir-long.obj' libtool=no @AMDEPBACKSLASH@
6541 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6542 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-chdir-long.obj `if test -f 'chdir-long.c'; then $(CYGPATH_W) 'chdir-long.c'; else $(CYGPATH_W) '$(srcdir)/chdir-long.c'; fi`
6543 +
6544 +libgnu_a-cloexec.o: cloexec.c
6545 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-cloexec.o -MD -MP -MF $(DEPDIR)/libgnu_a-cloexec.Tpo -c -o libgnu_a-cloexec.o `test -f 'cloexec.c' || echo '$(srcdir)/'`cloexec.c
6546 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-cloexec.Tpo $(DEPDIR)/libgnu_a-cloexec.Po
6547 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cloexec.c' object='libgnu_a-cloexec.o' libtool=no @AMDEPBACKSLASH@
6548 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6549 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-cloexec.o `test -f 'cloexec.c' || echo '$(srcdir)/'`cloexec.c
6550 +
6551 +libgnu_a-cloexec.obj: cloexec.c
6552 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-cloexec.obj -MD -MP -MF $(DEPDIR)/libgnu_a-cloexec.Tpo -c -o libgnu_a-cloexec.obj `if test -f 'cloexec.c'; then $(CYGPATH_W) 'cloexec.c'; else $(CYGPATH_W) '$(srcdir)/cloexec.c'; fi`
6553 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-cloexec.Tpo $(DEPDIR)/libgnu_a-cloexec.Po
6554 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='cloexec.c' object='libgnu_a-cloexec.obj' libtool=no @AMDEPBACKSLASH@
6555 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6556 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-cloexec.obj `if test -f 'cloexec.c'; then $(CYGPATH_W) 'cloexec.c'; else $(CYGPATH_W) '$(srcdir)/cloexec.c'; fi`
6557 +
6558 +libgnu_a-close.o: close.c
6559 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-close.o -MD -MP -MF $(DEPDIR)/libgnu_a-close.Tpo -c -o libgnu_a-close.o `test -f 'close.c' || echo '$(srcdir)/'`close.c
6560 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-close.Tpo $(DEPDIR)/libgnu_a-close.Po
6561 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='close.c' object='libgnu_a-close.o' libtool=no @AMDEPBACKSLASH@
6562 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6563 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-close.o `test -f 'close.c' || echo '$(srcdir)/'`close.c
6564 +
6565 +libgnu_a-close.obj: close.c
6566 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-close.obj -MD -MP -MF $(DEPDIR)/libgnu_a-close.Tpo -c -o libgnu_a-close.obj `if test -f 'close.c'; then $(CYGPATH_W) 'close.c'; else $(CYGPATH_W) '$(srcdir)/close.c'; fi`
6567 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-close.Tpo $(DEPDIR)/libgnu_a-close.Po
6568 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='close.c' object='libgnu_a-close.obj' libtool=no @AMDEPBACKSLASH@
6569 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6570 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-close.obj `if test -f 'close.c'; then $(CYGPATH_W) 'close.c'; else $(CYGPATH_W) '$(srcdir)/close.c'; fi`
6571 +
6572 +libgnu_a-closedir.o: closedir.c
6573 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-closedir.o -MD -MP -MF $(DEPDIR)/libgnu_a-closedir.Tpo -c -o libgnu_a-closedir.o `test -f 'closedir.c' || echo '$(srcdir)/'`closedir.c
6574 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-closedir.Tpo $(DEPDIR)/libgnu_a-closedir.Po
6575 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='closedir.c' object='libgnu_a-closedir.o' libtool=no @AMDEPBACKSLASH@
6576 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6577 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-closedir.o `test -f 'closedir.c' || echo '$(srcdir)/'`closedir.c
6578 +
6579 +libgnu_a-closedir.obj: closedir.c
6580 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-closedir.obj -MD -MP -MF $(DEPDIR)/libgnu_a-closedir.Tpo -c -o libgnu_a-closedir.obj `if test -f 'closedir.c'; then $(CYGPATH_W) 'closedir.c'; else $(CYGPATH_W) '$(srcdir)/closedir.c'; fi`
6581 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-closedir.Tpo $(DEPDIR)/libgnu_a-closedir.Po
6582 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='closedir.c' object='libgnu_a-closedir.obj' libtool=no @AMDEPBACKSLASH@
6583 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6584 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-closedir.obj `if test -f 'closedir.c'; then $(CYGPATH_W) 'closedir.c'; else $(CYGPATH_W) '$(srcdir)/closedir.c'; fi`
6585 +
6586 +libgnu_a-dirfd.o: dirfd.c
6587 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dirfd.o -MD -MP -MF $(DEPDIR)/libgnu_a-dirfd.Tpo -c -o libgnu_a-dirfd.o `test -f 'dirfd.c' || echo '$(srcdir)/'`dirfd.c
6588 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dirfd.Tpo $(DEPDIR)/libgnu_a-dirfd.Po
6589 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dirfd.c' object='libgnu_a-dirfd.o' libtool=no @AMDEPBACKSLASH@
6590 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6591 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dirfd.o `test -f 'dirfd.c' || echo '$(srcdir)/'`dirfd.c
6592 +
6593 +libgnu_a-dirfd.obj: dirfd.c
6594 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dirfd.obj -MD -MP -MF $(DEPDIR)/libgnu_a-dirfd.Tpo -c -o libgnu_a-dirfd.obj `if test -f 'dirfd.c'; then $(CYGPATH_W) 'dirfd.c'; else $(CYGPATH_W) '$(srcdir)/dirfd.c'; fi`
6595 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dirfd.Tpo $(DEPDIR)/libgnu_a-dirfd.Po
6596 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dirfd.c' object='libgnu_a-dirfd.obj' libtool=no @AMDEPBACKSLASH@
6597 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6598 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dirfd.obj `if test -f 'dirfd.c'; then $(CYGPATH_W) 'dirfd.c'; else $(CYGPATH_W) '$(srcdir)/dirfd.c'; fi`
6599 +
6600 +libgnu_a-dirname-lgpl.o: dirname-lgpl.c
6601 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dirname-lgpl.o -MD -MP -MF $(DEPDIR)/libgnu_a-dirname-lgpl.Tpo -c -o libgnu_a-dirname-lgpl.o `test -f 'dirname-lgpl.c' || echo '$(srcdir)/'`dirname-lgpl.c
6602 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dirname-lgpl.Tpo $(DEPDIR)/libgnu_a-dirname-lgpl.Po
6603 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dirname-lgpl.c' object='libgnu_a-dirname-lgpl.o' libtool=no @AMDEPBACKSLASH@
6604 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6605 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dirname-lgpl.o `test -f 'dirname-lgpl.c' || echo '$(srcdir)/'`dirname-lgpl.c
6606 +
6607 +libgnu_a-dirname-lgpl.obj: dirname-lgpl.c
6608 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dirname-lgpl.obj -MD -MP -MF $(DEPDIR)/libgnu_a-dirname-lgpl.Tpo -c -o libgnu_a-dirname-lgpl.obj `if test -f 'dirname-lgpl.c'; then $(CYGPATH_W) 'dirname-lgpl.c'; else $(CYGPATH_W) '$(srcdir)/dirname-lgpl.c'; fi`
6609 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dirname-lgpl.Tpo $(DEPDIR)/libgnu_a-dirname-lgpl.Po
6610 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dirname-lgpl.c' object='libgnu_a-dirname-lgpl.obj' libtool=no @AMDEPBACKSLASH@
6611 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6612 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dirname-lgpl.obj `if test -f 'dirname-lgpl.c'; then $(CYGPATH_W) 'dirname-lgpl.c'; else $(CYGPATH_W) '$(srcdir)/dirname-lgpl.c'; fi`
6613 +
6614 +libgnu_a-stripslash.o: stripslash.c
6615 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stripslash.o -MD -MP -MF $(DEPDIR)/libgnu_a-stripslash.Tpo -c -o libgnu_a-stripslash.o `test -f 'stripslash.c' || echo '$(srcdir)/'`stripslash.c
6616 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stripslash.Tpo $(DEPDIR)/libgnu_a-stripslash.Po
6617 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stripslash.c' object='libgnu_a-stripslash.o' libtool=no @AMDEPBACKSLASH@
6618 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6619 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stripslash.o `test -f 'stripslash.c' || echo '$(srcdir)/'`stripslash.c
6620 +
6621 +libgnu_a-stripslash.obj: stripslash.c
6622 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stripslash.obj -MD -MP -MF $(DEPDIR)/libgnu_a-stripslash.Tpo -c -o libgnu_a-stripslash.obj `if test -f 'stripslash.c'; then $(CYGPATH_W) 'stripslash.c'; else $(CYGPATH_W) '$(srcdir)/stripslash.c'; fi`
6623 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stripslash.Tpo $(DEPDIR)/libgnu_a-stripslash.Po
6624 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stripslash.c' object='libgnu_a-stripslash.obj' libtool=no @AMDEPBACKSLASH@
6625 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6626 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stripslash.obj `if test -f 'stripslash.c'; then $(CYGPATH_W) 'stripslash.c'; else $(CYGPATH_W) '$(srcdir)/stripslash.c'; fi`
6627 +
6628 +libgnu_a-dup.o: dup.c
6629 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dup.o -MD -MP -MF $(DEPDIR)/libgnu_a-dup.Tpo -c -o libgnu_a-dup.o `test -f 'dup.c' || echo '$(srcdir)/'`dup.c
6630 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dup.Tpo $(DEPDIR)/libgnu_a-dup.Po
6631 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dup.c' object='libgnu_a-dup.o' libtool=no @AMDEPBACKSLASH@
6632 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6633 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dup.o `test -f 'dup.c' || echo '$(srcdir)/'`dup.c
6634 +
6635 +libgnu_a-dup.obj: dup.c
6636 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dup.obj -MD -MP -MF $(DEPDIR)/libgnu_a-dup.Tpo -c -o libgnu_a-dup.obj `if test -f 'dup.c'; then $(CYGPATH_W) 'dup.c'; else $(CYGPATH_W) '$(srcdir)/dup.c'; fi`
6637 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dup.Tpo $(DEPDIR)/libgnu_a-dup.Po
6638 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dup.c' object='libgnu_a-dup.obj' libtool=no @AMDEPBACKSLASH@
6639 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6640 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dup.obj `if test -f 'dup.c'; then $(CYGPATH_W) 'dup.c'; else $(CYGPATH_W) '$(srcdir)/dup.c'; fi`
6641 +
6642 +libgnu_a-dup2.o: dup2.c
6643 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dup2.o -MD -MP -MF $(DEPDIR)/libgnu_a-dup2.Tpo -c -o libgnu_a-dup2.o `test -f 'dup2.c' || echo '$(srcdir)/'`dup2.c
6644 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dup2.Tpo $(DEPDIR)/libgnu_a-dup2.Po
6645 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dup2.c' object='libgnu_a-dup2.o' libtool=no @AMDEPBACKSLASH@
6646 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6647 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dup2.o `test -f 'dup2.c' || echo '$(srcdir)/'`dup2.c
6648 +
6649 +libgnu_a-dup2.obj: dup2.c
6650 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dup2.obj -MD -MP -MF $(DEPDIR)/libgnu_a-dup2.Tpo -c -o libgnu_a-dup2.obj `if test -f 'dup2.c'; then $(CYGPATH_W) 'dup2.c'; else $(CYGPATH_W) '$(srcdir)/dup2.c'; fi`
6651 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dup2.Tpo $(DEPDIR)/libgnu_a-dup2.Po
6652 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dup2.c' object='libgnu_a-dup2.obj' libtool=no @AMDEPBACKSLASH@
6653 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6654 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dup2.obj `if test -f 'dup2.c'; then $(CYGPATH_W) 'dup2.c'; else $(CYGPATH_W) '$(srcdir)/dup2.c'; fi`
6655 +
6656 +libgnu_a-error.o: error.c
6657 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-error.o -MD -MP -MF $(DEPDIR)/libgnu_a-error.Tpo -c -o libgnu_a-error.o `test -f 'error.c' || echo '$(srcdir)/'`error.c
6658 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-error.Tpo $(DEPDIR)/libgnu_a-error.Po
6659 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='error.c' object='libgnu_a-error.o' libtool=no @AMDEPBACKSLASH@
6660 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6661 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-error.o `test -f 'error.c' || echo '$(srcdir)/'`error.c
6662 +
6663 +libgnu_a-error.obj: error.c
6664 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-error.obj -MD -MP -MF $(DEPDIR)/libgnu_a-error.Tpo -c -o libgnu_a-error.obj `if test -f 'error.c'; then $(CYGPATH_W) 'error.c'; else $(CYGPATH_W) '$(srcdir)/error.c'; fi`
6665 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-error.Tpo $(DEPDIR)/libgnu_a-error.Po
6666 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='error.c' object='libgnu_a-error.obj' libtool=no @AMDEPBACKSLASH@
6667 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6668 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-error.obj `if test -f 'error.c'; then $(CYGPATH_W) 'error.c'; else $(CYGPATH_W) '$(srcdir)/error.c'; fi`
6669 +
6670 +libgnu_a-euidaccess.o: euidaccess.c
6671 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-euidaccess.o -MD -MP -MF $(DEPDIR)/libgnu_a-euidaccess.Tpo -c -o libgnu_a-euidaccess.o `test -f 'euidaccess.c' || echo '$(srcdir)/'`euidaccess.c
6672 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-euidaccess.Tpo $(DEPDIR)/libgnu_a-euidaccess.Po
6673 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='euidaccess.c' object='libgnu_a-euidaccess.o' libtool=no @AMDEPBACKSLASH@
6674 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6675 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-euidaccess.o `test -f 'euidaccess.c' || echo '$(srcdir)/'`euidaccess.c
6676 +
6677 +libgnu_a-euidaccess.obj: euidaccess.c
6678 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-euidaccess.obj -MD -MP -MF $(DEPDIR)/libgnu_a-euidaccess.Tpo -c -o libgnu_a-euidaccess.obj `if test -f 'euidaccess.c'; then $(CYGPATH_W) 'euidaccess.c'; else $(CYGPATH_W) '$(srcdir)/euidaccess.c'; fi`
6679 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-euidaccess.Tpo $(DEPDIR)/libgnu_a-euidaccess.Po
6680 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='euidaccess.c' object='libgnu_a-euidaccess.obj' libtool=no @AMDEPBACKSLASH@
6681 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6682 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-euidaccess.obj `if test -f 'euidaccess.c'; then $(CYGPATH_W) 'euidaccess.c'; else $(CYGPATH_W) '$(srcdir)/euidaccess.c'; fi`
6683 +
6684 +libgnu_a-exitfail.o: exitfail.c
6685 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-exitfail.o -MD -MP -MF $(DEPDIR)/libgnu_a-exitfail.Tpo -c -o libgnu_a-exitfail.o `test -f 'exitfail.c' || echo '$(srcdir)/'`exitfail.c
6686 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-exitfail.Tpo $(DEPDIR)/libgnu_a-exitfail.Po
6687 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='exitfail.c' object='libgnu_a-exitfail.o' libtool=no @AMDEPBACKSLASH@
6688 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6689 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-exitfail.o `test -f 'exitfail.c' || echo '$(srcdir)/'`exitfail.c
6690 +
6691 +libgnu_a-exitfail.obj: exitfail.c
6692 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-exitfail.obj -MD -MP -MF $(DEPDIR)/libgnu_a-exitfail.Tpo -c -o libgnu_a-exitfail.obj `if test -f 'exitfail.c'; then $(CYGPATH_W) 'exitfail.c'; else $(CYGPATH_W) '$(srcdir)/exitfail.c'; fi`
6693 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-exitfail.Tpo $(DEPDIR)/libgnu_a-exitfail.Po
6694 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='exitfail.c' object='libgnu_a-exitfail.obj' libtool=no @AMDEPBACKSLASH@
6695 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6696 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-exitfail.obj `if test -f 'exitfail.c'; then $(CYGPATH_W) 'exitfail.c'; else $(CYGPATH_W) '$(srcdir)/exitfail.c'; fi`
6697 +
6698 +libgnu_a-faccessat.o: faccessat.c
6699 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-faccessat.o -MD -MP -MF $(DEPDIR)/libgnu_a-faccessat.Tpo -c -o libgnu_a-faccessat.o `test -f 'faccessat.c' || echo '$(srcdir)/'`faccessat.c
6700 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-faccessat.Tpo $(DEPDIR)/libgnu_a-faccessat.Po
6701 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='faccessat.c' object='libgnu_a-faccessat.o' libtool=no @AMDEPBACKSLASH@
6702 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6703 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-faccessat.o `test -f 'faccessat.c' || echo '$(srcdir)/'`faccessat.c
6704 +
6705 +libgnu_a-faccessat.obj: faccessat.c
6706 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-faccessat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-faccessat.Tpo -c -o libgnu_a-faccessat.obj `if test -f 'faccessat.c'; then $(CYGPATH_W) 'faccessat.c'; else $(CYGPATH_W) '$(srcdir)/faccessat.c'; fi`
6707 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-faccessat.Tpo $(DEPDIR)/libgnu_a-faccessat.Po
6708 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='faccessat.c' object='libgnu_a-faccessat.obj' libtool=no @AMDEPBACKSLASH@
6709 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6710 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-faccessat.obj `if test -f 'faccessat.c'; then $(CYGPATH_W) 'faccessat.c'; else $(CYGPATH_W) '$(srcdir)/faccessat.c'; fi`
6711 +
6712 +libgnu_a-fchdir.o: fchdir.c
6713 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fchdir.o -MD -MP -MF $(DEPDIR)/libgnu_a-fchdir.Tpo -c -o libgnu_a-fchdir.o `test -f 'fchdir.c' || echo '$(srcdir)/'`fchdir.c
6714 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fchdir.Tpo $(DEPDIR)/libgnu_a-fchdir.Po
6715 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fchdir.c' object='libgnu_a-fchdir.o' libtool=no @AMDEPBACKSLASH@
6716 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6717 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fchdir.o `test -f 'fchdir.c' || echo '$(srcdir)/'`fchdir.c
6718 +
6719 +libgnu_a-fchdir.obj: fchdir.c
6720 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fchdir.obj -MD -MP -MF $(DEPDIR)/libgnu_a-fchdir.Tpo -c -o libgnu_a-fchdir.obj `if test -f 'fchdir.c'; then $(CYGPATH_W) 'fchdir.c'; else $(CYGPATH_W) '$(srcdir)/fchdir.c'; fi`
6721 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fchdir.Tpo $(DEPDIR)/libgnu_a-fchdir.Po
6722 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fchdir.c' object='libgnu_a-fchdir.obj' libtool=no @AMDEPBACKSLASH@
6723 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6724 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fchdir.obj `if test -f 'fchdir.c'; then $(CYGPATH_W) 'fchdir.c'; else $(CYGPATH_W) '$(srcdir)/fchdir.c'; fi`
6725 +
6726 +libgnu_a-fcntl.o: fcntl.c
6727 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fcntl.o -MD -MP -MF $(DEPDIR)/libgnu_a-fcntl.Tpo -c -o libgnu_a-fcntl.o `test -f 'fcntl.c' || echo '$(srcdir)/'`fcntl.c
6728 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fcntl.Tpo $(DEPDIR)/libgnu_a-fcntl.Po
6729 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fcntl.c' object='libgnu_a-fcntl.o' libtool=no @AMDEPBACKSLASH@
6730 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6731 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fcntl.o `test -f 'fcntl.c' || echo '$(srcdir)/'`fcntl.c
6732 +
6733 +libgnu_a-fcntl.obj: fcntl.c
6734 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fcntl.obj -MD -MP -MF $(DEPDIR)/libgnu_a-fcntl.Tpo -c -o libgnu_a-fcntl.obj `if test -f 'fcntl.c'; then $(CYGPATH_W) 'fcntl.c'; else $(CYGPATH_W) '$(srcdir)/fcntl.c'; fi`
6735 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fcntl.Tpo $(DEPDIR)/libgnu_a-fcntl.Po
6736 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fcntl.c' object='libgnu_a-fcntl.obj' libtool=no @AMDEPBACKSLASH@
6737 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6738 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fcntl.obj `if test -f 'fcntl.c'; then $(CYGPATH_W) 'fcntl.c'; else $(CYGPATH_W) '$(srcdir)/fcntl.c'; fi`
6739 +
6740 +libgnu_a-fd-hook.o: fd-hook.c
6741 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fd-hook.o -MD -MP -MF $(DEPDIR)/libgnu_a-fd-hook.Tpo -c -o libgnu_a-fd-hook.o `test -f 'fd-hook.c' || echo '$(srcdir)/'`fd-hook.c
6742 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fd-hook.Tpo $(DEPDIR)/libgnu_a-fd-hook.Po
6743 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fd-hook.c' object='libgnu_a-fd-hook.o' libtool=no @AMDEPBACKSLASH@
6744 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6745 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fd-hook.o `test -f 'fd-hook.c' || echo '$(srcdir)/'`fd-hook.c
6746 +
6747 +libgnu_a-fd-hook.obj: fd-hook.c
6748 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fd-hook.obj -MD -MP -MF $(DEPDIR)/libgnu_a-fd-hook.Tpo -c -o libgnu_a-fd-hook.obj `if test -f 'fd-hook.c'; then $(CYGPATH_W) 'fd-hook.c'; else $(CYGPATH_W) '$(srcdir)/fd-hook.c'; fi`
6749 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fd-hook.Tpo $(DEPDIR)/libgnu_a-fd-hook.Po
6750 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fd-hook.c' object='libgnu_a-fd-hook.obj' libtool=no @AMDEPBACKSLASH@
6751 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6752 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fd-hook.obj `if test -f 'fd-hook.c'; then $(CYGPATH_W) 'fd-hook.c'; else $(CYGPATH_W) '$(srcdir)/fd-hook.c'; fi`
6753 +
6754 +libgnu_a-fd-safer-flag.o: fd-safer-flag.c
6755 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fd-safer-flag.o -MD -MP -MF $(DEPDIR)/libgnu_a-fd-safer-flag.Tpo -c -o libgnu_a-fd-safer-flag.o `test -f 'fd-safer-flag.c' || echo '$(srcdir)/'`fd-safer-flag.c
6756 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fd-safer-flag.Tpo $(DEPDIR)/libgnu_a-fd-safer-flag.Po
6757 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fd-safer-flag.c' object='libgnu_a-fd-safer-flag.o' libtool=no @AMDEPBACKSLASH@
6758 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6759 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fd-safer-flag.o `test -f 'fd-safer-flag.c' || echo '$(srcdir)/'`fd-safer-flag.c
6760 +
6761 +libgnu_a-fd-safer-flag.obj: fd-safer-flag.c
6762 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fd-safer-flag.obj -MD -MP -MF $(DEPDIR)/libgnu_a-fd-safer-flag.Tpo -c -o libgnu_a-fd-safer-flag.obj `if test -f 'fd-safer-flag.c'; then $(CYGPATH_W) 'fd-safer-flag.c'; else $(CYGPATH_W) '$(srcdir)/fd-safer-flag.c'; fi`
6763 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fd-safer-flag.Tpo $(DEPDIR)/libgnu_a-fd-safer-flag.Po
6764 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fd-safer-flag.c' object='libgnu_a-fd-safer-flag.obj' libtool=no @AMDEPBACKSLASH@
6765 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6766 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fd-safer-flag.obj `if test -f 'fd-safer-flag.c'; then $(CYGPATH_W) 'fd-safer-flag.c'; else $(CYGPATH_W) '$(srcdir)/fd-safer-flag.c'; fi`
6767 +
6768 +libgnu_a-dup-safer-flag.o: dup-safer-flag.c
6769 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dup-safer-flag.o -MD -MP -MF $(DEPDIR)/libgnu_a-dup-safer-flag.Tpo -c -o libgnu_a-dup-safer-flag.o `test -f 'dup-safer-flag.c' || echo '$(srcdir)/'`dup-safer-flag.c
6770 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dup-safer-flag.Tpo $(DEPDIR)/libgnu_a-dup-safer-flag.Po
6771 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dup-safer-flag.c' object='libgnu_a-dup-safer-flag.o' libtool=no @AMDEPBACKSLASH@
6772 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6773 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dup-safer-flag.o `test -f 'dup-safer-flag.c' || echo '$(srcdir)/'`dup-safer-flag.c
6774 +
6775 +libgnu_a-dup-safer-flag.obj: dup-safer-flag.c
6776 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dup-safer-flag.obj -MD -MP -MF $(DEPDIR)/libgnu_a-dup-safer-flag.Tpo -c -o libgnu_a-dup-safer-flag.obj `if test -f 'dup-safer-flag.c'; then $(CYGPATH_W) 'dup-safer-flag.c'; else $(CYGPATH_W) '$(srcdir)/dup-safer-flag.c'; fi`
6777 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dup-safer-flag.Tpo $(DEPDIR)/libgnu_a-dup-safer-flag.Po
6778 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dup-safer-flag.c' object='libgnu_a-dup-safer-flag.obj' libtool=no @AMDEPBACKSLASH@
6779 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6780 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dup-safer-flag.obj `if test -f 'dup-safer-flag.c'; then $(CYGPATH_W) 'dup-safer-flag.c'; else $(CYGPATH_W) '$(srcdir)/dup-safer-flag.c'; fi`
6781 +
6782 +libgnu_a-fdopendir.o: fdopendir.c
6783 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fdopendir.o -MD -MP -MF $(DEPDIR)/libgnu_a-fdopendir.Tpo -c -o libgnu_a-fdopendir.o `test -f 'fdopendir.c' || echo '$(srcdir)/'`fdopendir.c
6784 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fdopendir.Tpo $(DEPDIR)/libgnu_a-fdopendir.Po
6785 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fdopendir.c' object='libgnu_a-fdopendir.o' libtool=no @AMDEPBACKSLASH@
6786 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6787 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fdopendir.o `test -f 'fdopendir.c' || echo '$(srcdir)/'`fdopendir.c
6788 +
6789 +libgnu_a-fdopendir.obj: fdopendir.c
6790 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fdopendir.obj -MD -MP -MF $(DEPDIR)/libgnu_a-fdopendir.Tpo -c -o libgnu_a-fdopendir.obj `if test -f 'fdopendir.c'; then $(CYGPATH_W) 'fdopendir.c'; else $(CYGPATH_W) '$(srcdir)/fdopendir.c'; fi`
6791 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fdopendir.Tpo $(DEPDIR)/libgnu_a-fdopendir.Po
6792 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fdopendir.c' object='libgnu_a-fdopendir.obj' libtool=no @AMDEPBACKSLASH@
6793 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6794 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fdopendir.obj `if test -f 'fdopendir.c'; then $(CYGPATH_W) 'fdopendir.c'; else $(CYGPATH_W) '$(srcdir)/fdopendir.c'; fi`
6795 +
6796 +libgnu_a-filenamecat-lgpl.o: filenamecat-lgpl.c
6797 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-filenamecat-lgpl.o -MD -MP -MF $(DEPDIR)/libgnu_a-filenamecat-lgpl.Tpo -c -o libgnu_a-filenamecat-lgpl.o `test -f 'filenamecat-lgpl.c' || echo '$(srcdir)/'`filenamecat-lgpl.c
6798 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-filenamecat-lgpl.Tpo $(DEPDIR)/libgnu_a-filenamecat-lgpl.Po
6799 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='filenamecat-lgpl.c' object='libgnu_a-filenamecat-lgpl.o' libtool=no @AMDEPBACKSLASH@
6800 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6801 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-filenamecat-lgpl.o `test -f 'filenamecat-lgpl.c' || echo '$(srcdir)/'`filenamecat-lgpl.c
6802 +
6803 +libgnu_a-filenamecat-lgpl.obj: filenamecat-lgpl.c
6804 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-filenamecat-lgpl.obj -MD -MP -MF $(DEPDIR)/libgnu_a-filenamecat-lgpl.Tpo -c -o libgnu_a-filenamecat-lgpl.obj `if test -f 'filenamecat-lgpl.c'; then $(CYGPATH_W) 'filenamecat-lgpl.c'; else $(CYGPATH_W) '$(srcdir)/filenamecat-lgpl.c'; fi`
6805 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-filenamecat-lgpl.Tpo $(DEPDIR)/libgnu_a-filenamecat-lgpl.Po
6806 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='filenamecat-lgpl.c' object='libgnu_a-filenamecat-lgpl.obj' libtool=no @AMDEPBACKSLASH@
6807 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6808 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-filenamecat-lgpl.obj `if test -f 'filenamecat-lgpl.c'; then $(CYGPATH_W) 'filenamecat-lgpl.c'; else $(CYGPATH_W) '$(srcdir)/filenamecat-lgpl.c'; fi`
6809 +
6810 +libgnu_a-float.o: float.c
6811 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-float.o -MD -MP -MF $(DEPDIR)/libgnu_a-float.Tpo -c -o libgnu_a-float.o `test -f 'float.c' || echo '$(srcdir)/'`float.c
6812 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-float.Tpo $(DEPDIR)/libgnu_a-float.Po
6813 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='float.c' object='libgnu_a-float.o' libtool=no @AMDEPBACKSLASH@
6814 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6815 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-float.o `test -f 'float.c' || echo '$(srcdir)/'`float.c
6816 +
6817 +libgnu_a-float.obj: float.c
6818 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-float.obj -MD -MP -MF $(DEPDIR)/libgnu_a-float.Tpo -c -o libgnu_a-float.obj `if test -f 'float.c'; then $(CYGPATH_W) 'float.c'; else $(CYGPATH_W) '$(srcdir)/float.c'; fi`
6819 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-float.Tpo $(DEPDIR)/libgnu_a-float.Po
6820 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='float.c' object='libgnu_a-float.obj' libtool=no @AMDEPBACKSLASH@
6821 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6822 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-float.obj `if test -f 'float.c'; then $(CYGPATH_W) 'float.c'; else $(CYGPATH_W) '$(srcdir)/float.c'; fi`
6823 +
6824 +libgnu_a-itold.o: itold.c
6825 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-itold.o -MD -MP -MF $(DEPDIR)/libgnu_a-itold.Tpo -c -o libgnu_a-itold.o `test -f 'itold.c' || echo '$(srcdir)/'`itold.c
6826 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-itold.Tpo $(DEPDIR)/libgnu_a-itold.Po
6827 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='itold.c' object='libgnu_a-itold.o' libtool=no @AMDEPBACKSLASH@
6828 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6829 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-itold.o `test -f 'itold.c' || echo '$(srcdir)/'`itold.c
6830 +
6831 +libgnu_a-itold.obj: itold.c
6832 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-itold.obj -MD -MP -MF $(DEPDIR)/libgnu_a-itold.Tpo -c -o libgnu_a-itold.obj `if test -f 'itold.c'; then $(CYGPATH_W) 'itold.c'; else $(CYGPATH_W) '$(srcdir)/itold.c'; fi`
6833 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-itold.Tpo $(DEPDIR)/libgnu_a-itold.Po
6834 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='itold.c' object='libgnu_a-itold.obj' libtool=no @AMDEPBACKSLASH@
6835 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6836 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-itold.obj `if test -f 'itold.c'; then $(CYGPATH_W) 'itold.c'; else $(CYGPATH_W) '$(srcdir)/itold.c'; fi`
6837 +
6838 +libgnu_a-free.o: free.c
6839 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-free.o -MD -MP -MF $(DEPDIR)/libgnu_a-free.Tpo -c -o libgnu_a-free.o `test -f 'free.c' || echo '$(srcdir)/'`free.c
6840 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-free.Tpo $(DEPDIR)/libgnu_a-free.Po
6841 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='free.c' object='libgnu_a-free.o' libtool=no @AMDEPBACKSLASH@
6842 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6843 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-free.o `test -f 'free.c' || echo '$(srcdir)/'`free.c
6844 +
6845 +libgnu_a-free.obj: free.c
6846 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-free.obj -MD -MP -MF $(DEPDIR)/libgnu_a-free.Tpo -c -o libgnu_a-free.obj `if test -f 'free.c'; then $(CYGPATH_W) 'free.c'; else $(CYGPATH_W) '$(srcdir)/free.c'; fi`
6847 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-free.Tpo $(DEPDIR)/libgnu_a-free.Po
6848 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='free.c' object='libgnu_a-free.obj' libtool=no @AMDEPBACKSLASH@
6849 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6850 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-free.obj `if test -f 'free.c'; then $(CYGPATH_W) 'free.c'; else $(CYGPATH_W) '$(srcdir)/free.c'; fi`
6851 +
6852 +libgnu_a-fstat.o: fstat.c
6853 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fstat.o -MD -MP -MF $(DEPDIR)/libgnu_a-fstat.Tpo -c -o libgnu_a-fstat.o `test -f 'fstat.c' || echo '$(srcdir)/'`fstat.c
6854 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fstat.Tpo $(DEPDIR)/libgnu_a-fstat.Po
6855 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fstat.c' object='libgnu_a-fstat.o' libtool=no @AMDEPBACKSLASH@
6856 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6857 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fstat.o `test -f 'fstat.c' || echo '$(srcdir)/'`fstat.c
6858 +
6859 +libgnu_a-fstat.obj: fstat.c
6860 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fstat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-fstat.Tpo -c -o libgnu_a-fstat.obj `if test -f 'fstat.c'; then $(CYGPATH_W) 'fstat.c'; else $(CYGPATH_W) '$(srcdir)/fstat.c'; fi`
6861 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fstat.Tpo $(DEPDIR)/libgnu_a-fstat.Po
6862 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fstat.c' object='libgnu_a-fstat.obj' libtool=no @AMDEPBACKSLASH@
6863 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6864 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fstat.obj `if test -f 'fstat.c'; then $(CYGPATH_W) 'fstat.c'; else $(CYGPATH_W) '$(srcdir)/fstat.c'; fi`
6865 +
6866 +libgnu_a-fstatat.o: fstatat.c
6867 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fstatat.o -MD -MP -MF $(DEPDIR)/libgnu_a-fstatat.Tpo -c -o libgnu_a-fstatat.o `test -f 'fstatat.c' || echo '$(srcdir)/'`fstatat.c
6868 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fstatat.Tpo $(DEPDIR)/libgnu_a-fstatat.Po
6869 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fstatat.c' object='libgnu_a-fstatat.o' libtool=no @AMDEPBACKSLASH@
6870 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6871 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fstatat.o `test -f 'fstatat.c' || echo '$(srcdir)/'`fstatat.c
6872 +
6873 +libgnu_a-fstatat.obj: fstatat.c
6874 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fstatat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-fstatat.Tpo -c -o libgnu_a-fstatat.obj `if test -f 'fstatat.c'; then $(CYGPATH_W) 'fstatat.c'; else $(CYGPATH_W) '$(srcdir)/fstatat.c'; fi`
6875 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fstatat.Tpo $(DEPDIR)/libgnu_a-fstatat.Po
6876 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fstatat.c' object='libgnu_a-fstatat.obj' libtool=no @AMDEPBACKSLASH@
6877 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6878 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fstatat.obj `if test -f 'fstatat.c'; then $(CYGPATH_W) 'fstatat.c'; else $(CYGPATH_W) '$(srcdir)/fstatat.c'; fi`
6879 +
6880 +libgnu_a-futimens.o: futimens.c
6881 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-futimens.o -MD -MP -MF $(DEPDIR)/libgnu_a-futimens.Tpo -c -o libgnu_a-futimens.o `test -f 'futimens.c' || echo '$(srcdir)/'`futimens.c
6882 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-futimens.Tpo $(DEPDIR)/libgnu_a-futimens.Po
6883 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='futimens.c' object='libgnu_a-futimens.o' libtool=no @AMDEPBACKSLASH@
6884 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6885 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-futimens.o `test -f 'futimens.c' || echo '$(srcdir)/'`futimens.c
6886 +
6887 +libgnu_a-futimens.obj: futimens.c
6888 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-futimens.obj -MD -MP -MF $(DEPDIR)/libgnu_a-futimens.Tpo -c -o libgnu_a-futimens.obj `if test -f 'futimens.c'; then $(CYGPATH_W) 'futimens.c'; else $(CYGPATH_W) '$(srcdir)/futimens.c'; fi`
6889 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-futimens.Tpo $(DEPDIR)/libgnu_a-futimens.Po
6890 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='futimens.c' object='libgnu_a-futimens.obj' libtool=no @AMDEPBACKSLASH@
6891 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6892 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-futimens.obj `if test -f 'futimens.c'; then $(CYGPATH_W) 'futimens.c'; else $(CYGPATH_W) '$(srcdir)/futimens.c'; fi`
6893 +
6894 +libgnu_a-getcwd-lgpl.o: getcwd-lgpl.c
6895 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getcwd-lgpl.o -MD -MP -MF $(DEPDIR)/libgnu_a-getcwd-lgpl.Tpo -c -o libgnu_a-getcwd-lgpl.o `test -f 'getcwd-lgpl.c' || echo '$(srcdir)/'`getcwd-lgpl.c
6896 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getcwd-lgpl.Tpo $(DEPDIR)/libgnu_a-getcwd-lgpl.Po
6897 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getcwd-lgpl.c' object='libgnu_a-getcwd-lgpl.o' libtool=no @AMDEPBACKSLASH@
6898 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6899 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getcwd-lgpl.o `test -f 'getcwd-lgpl.c' || echo '$(srcdir)/'`getcwd-lgpl.c
6900 +
6901 +libgnu_a-getcwd-lgpl.obj: getcwd-lgpl.c
6902 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getcwd-lgpl.obj -MD -MP -MF $(DEPDIR)/libgnu_a-getcwd-lgpl.Tpo -c -o libgnu_a-getcwd-lgpl.obj `if test -f 'getcwd-lgpl.c'; then $(CYGPATH_W) 'getcwd-lgpl.c'; else $(CYGPATH_W) '$(srcdir)/getcwd-lgpl.c'; fi`
6903 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getcwd-lgpl.Tpo $(DEPDIR)/libgnu_a-getcwd-lgpl.Po
6904 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getcwd-lgpl.c' object='libgnu_a-getcwd-lgpl.obj' libtool=no @AMDEPBACKSLASH@
6905 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6906 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getcwd-lgpl.obj `if test -f 'getcwd-lgpl.c'; then $(CYGPATH_W) 'getcwd-lgpl.c'; else $(CYGPATH_W) '$(srcdir)/getcwd-lgpl.c'; fi`
6907 +
6908 +libgnu_a-getdelim.o: getdelim.c
6909 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getdelim.o -MD -MP -MF $(DEPDIR)/libgnu_a-getdelim.Tpo -c -o libgnu_a-getdelim.o `test -f 'getdelim.c' || echo '$(srcdir)/'`getdelim.c
6910 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getdelim.Tpo $(DEPDIR)/libgnu_a-getdelim.Po
6911 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getdelim.c' object='libgnu_a-getdelim.o' libtool=no @AMDEPBACKSLASH@
6912 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6913 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getdelim.o `test -f 'getdelim.c' || echo '$(srcdir)/'`getdelim.c
6914 +
6915 +libgnu_a-getdelim.obj: getdelim.c
6916 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getdelim.obj -MD -MP -MF $(DEPDIR)/libgnu_a-getdelim.Tpo -c -o libgnu_a-getdelim.obj `if test -f 'getdelim.c'; then $(CYGPATH_W) 'getdelim.c'; else $(CYGPATH_W) '$(srcdir)/getdelim.c'; fi`
6917 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getdelim.Tpo $(DEPDIR)/libgnu_a-getdelim.Po
6918 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getdelim.c' object='libgnu_a-getdelim.obj' libtool=no @AMDEPBACKSLASH@
6919 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6920 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getdelim.obj `if test -f 'getdelim.c'; then $(CYGPATH_W) 'getdelim.c'; else $(CYGPATH_W) '$(srcdir)/getdelim.c'; fi`
6921 +
6922 +libgnu_a-getdtablesize.o: getdtablesize.c
6923 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getdtablesize.o -MD -MP -MF $(DEPDIR)/libgnu_a-getdtablesize.Tpo -c -o libgnu_a-getdtablesize.o `test -f 'getdtablesize.c' || echo '$(srcdir)/'`getdtablesize.c
6924 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getdtablesize.Tpo $(DEPDIR)/libgnu_a-getdtablesize.Po
6925 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getdtablesize.c' object='libgnu_a-getdtablesize.o' libtool=no @AMDEPBACKSLASH@
6926 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6927 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getdtablesize.o `test -f 'getdtablesize.c' || echo '$(srcdir)/'`getdtablesize.c
6928 +
6929 +libgnu_a-getdtablesize.obj: getdtablesize.c
6930 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getdtablesize.obj -MD -MP -MF $(DEPDIR)/libgnu_a-getdtablesize.Tpo -c -o libgnu_a-getdtablesize.obj `if test -f 'getdtablesize.c'; then $(CYGPATH_W) 'getdtablesize.c'; else $(CYGPATH_W) '$(srcdir)/getdtablesize.c'; fi`
6931 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getdtablesize.Tpo $(DEPDIR)/libgnu_a-getdtablesize.Po
6932 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getdtablesize.c' object='libgnu_a-getdtablesize.obj' libtool=no @AMDEPBACKSLASH@
6933 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6934 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getdtablesize.obj `if test -f 'getdtablesize.c'; then $(CYGPATH_W) 'getdtablesize.c'; else $(CYGPATH_W) '$(srcdir)/getdtablesize.c'; fi`
6935 +
6936 +libgnu_a-getgroups.o: getgroups.c
6937 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getgroups.o -MD -MP -MF $(DEPDIR)/libgnu_a-getgroups.Tpo -c -o libgnu_a-getgroups.o `test -f 'getgroups.c' || echo '$(srcdir)/'`getgroups.c
6938 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getgroups.Tpo $(DEPDIR)/libgnu_a-getgroups.Po
6939 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getgroups.c' object='libgnu_a-getgroups.o' libtool=no @AMDEPBACKSLASH@
6940 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6941 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getgroups.o `test -f 'getgroups.c' || echo '$(srcdir)/'`getgroups.c
6942 +
6943 +libgnu_a-getgroups.obj: getgroups.c
6944 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getgroups.obj -MD -MP -MF $(DEPDIR)/libgnu_a-getgroups.Tpo -c -o libgnu_a-getgroups.obj `if test -f 'getgroups.c'; then $(CYGPATH_W) 'getgroups.c'; else $(CYGPATH_W) '$(srcdir)/getgroups.c'; fi`
6945 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getgroups.Tpo $(DEPDIR)/libgnu_a-getgroups.Po
6946 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getgroups.c' object='libgnu_a-getgroups.obj' libtool=no @AMDEPBACKSLASH@
6947 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6948 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getgroups.obj `if test -f 'getgroups.c'; then $(CYGPATH_W) 'getgroups.c'; else $(CYGPATH_W) '$(srcdir)/getgroups.c'; fi`
6949 +
6950 +libgnu_a-getline.o: getline.c
6951 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getline.o -MD -MP -MF $(DEPDIR)/libgnu_a-getline.Tpo -c -o libgnu_a-getline.o `test -f 'getline.c' || echo '$(srcdir)/'`getline.c
6952 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getline.Tpo $(DEPDIR)/libgnu_a-getline.Po
6953 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getline.c' object='libgnu_a-getline.o' libtool=no @AMDEPBACKSLASH@
6954 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6955 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getline.o `test -f 'getline.c' || echo '$(srcdir)/'`getline.c
6956 +
6957 +libgnu_a-getline.obj: getline.c
6958 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getline.obj -MD -MP -MF $(DEPDIR)/libgnu_a-getline.Tpo -c -o libgnu_a-getline.obj `if test -f 'getline.c'; then $(CYGPATH_W) 'getline.c'; else $(CYGPATH_W) '$(srcdir)/getline.c'; fi`
6959 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getline.Tpo $(DEPDIR)/libgnu_a-getline.Po
6960 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getline.c' object='libgnu_a-getline.obj' libtool=no @AMDEPBACKSLASH@
6961 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6962 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getline.obj `if test -f 'getline.c'; then $(CYGPATH_W) 'getline.c'; else $(CYGPATH_W) '$(srcdir)/getline.c'; fi`
6963 +
6964 +libgnu_a-getopt.o: getopt.c
6965 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getopt.o -MD -MP -MF $(DEPDIR)/libgnu_a-getopt.Tpo -c -o libgnu_a-getopt.o `test -f 'getopt.c' || echo '$(srcdir)/'`getopt.c
6966 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getopt.Tpo $(DEPDIR)/libgnu_a-getopt.Po
6967 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getopt.c' object='libgnu_a-getopt.o' libtool=no @AMDEPBACKSLASH@
6968 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6969 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getopt.o `test -f 'getopt.c' || echo '$(srcdir)/'`getopt.c
6970 +
6971 +libgnu_a-getopt.obj: getopt.c
6972 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getopt.obj -MD -MP -MF $(DEPDIR)/libgnu_a-getopt.Tpo -c -o libgnu_a-getopt.obj `if test -f 'getopt.c'; then $(CYGPATH_W) 'getopt.c'; else $(CYGPATH_W) '$(srcdir)/getopt.c'; fi`
6973 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getopt.Tpo $(DEPDIR)/libgnu_a-getopt.Po
6974 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getopt.c' object='libgnu_a-getopt.obj' libtool=no @AMDEPBACKSLASH@
6975 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6976 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getopt.obj `if test -f 'getopt.c'; then $(CYGPATH_W) 'getopt.c'; else $(CYGPATH_W) '$(srcdir)/getopt.c'; fi`
6977 +
6978 +libgnu_a-getopt1.o: getopt1.c
6979 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getopt1.o -MD -MP -MF $(DEPDIR)/libgnu_a-getopt1.Tpo -c -o libgnu_a-getopt1.o `test -f 'getopt1.c' || echo '$(srcdir)/'`getopt1.c
6980 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getopt1.Tpo $(DEPDIR)/libgnu_a-getopt1.Po
6981 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getopt1.c' object='libgnu_a-getopt1.o' libtool=no @AMDEPBACKSLASH@
6982 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6983 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getopt1.o `test -f 'getopt1.c' || echo '$(srcdir)/'`getopt1.c
6984 +
6985 +libgnu_a-getopt1.obj: getopt1.c
6986 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getopt1.obj -MD -MP -MF $(DEPDIR)/libgnu_a-getopt1.Tpo -c -o libgnu_a-getopt1.obj `if test -f 'getopt1.c'; then $(CYGPATH_W) 'getopt1.c'; else $(CYGPATH_W) '$(srcdir)/getopt1.c'; fi`
6987 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getopt1.Tpo $(DEPDIR)/libgnu_a-getopt1.Po
6988 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getopt1.c' object='libgnu_a-getopt1.obj' libtool=no @AMDEPBACKSLASH@
6989 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6990 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getopt1.obj `if test -f 'getopt1.c'; then $(CYGPATH_W) 'getopt1.c'; else $(CYGPATH_W) '$(srcdir)/getopt1.c'; fi`
6991 +
6992 +libgnu_a-getprogname.o: getprogname.c
6993 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getprogname.o -MD -MP -MF $(DEPDIR)/libgnu_a-getprogname.Tpo -c -o libgnu_a-getprogname.o `test -f 'getprogname.c' || echo '$(srcdir)/'`getprogname.c
6994 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getprogname.Tpo $(DEPDIR)/libgnu_a-getprogname.Po
6995 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getprogname.c' object='libgnu_a-getprogname.o' libtool=no @AMDEPBACKSLASH@
6996 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
6997 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getprogname.o `test -f 'getprogname.c' || echo '$(srcdir)/'`getprogname.c
6998 +
6999 +libgnu_a-getprogname.obj: getprogname.c
7000 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-getprogname.obj -MD -MP -MF $(DEPDIR)/libgnu_a-getprogname.Tpo -c -o libgnu_a-getprogname.obj `if test -f 'getprogname.c'; then $(CYGPATH_W) 'getprogname.c'; else $(CYGPATH_W) '$(srcdir)/getprogname.c'; fi`
7001 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-getprogname.Tpo $(DEPDIR)/libgnu_a-getprogname.Po
7002 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='getprogname.c' object='libgnu_a-getprogname.obj' libtool=no @AMDEPBACKSLASH@
7003 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7004 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-getprogname.obj `if test -f 'getprogname.c'; then $(CYGPATH_W) 'getprogname.c'; else $(CYGPATH_W) '$(srcdir)/getprogname.c'; fi`
7005 +
7006 +libgnu_a-gettime.o: gettime.c
7007 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-gettime.o -MD -MP -MF $(DEPDIR)/libgnu_a-gettime.Tpo -c -o libgnu_a-gettime.o `test -f 'gettime.c' || echo '$(srcdir)/'`gettime.c
7008 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-gettime.Tpo $(DEPDIR)/libgnu_a-gettime.Po
7009 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gettime.c' object='libgnu_a-gettime.o' libtool=no @AMDEPBACKSLASH@
7010 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7011 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-gettime.o `test -f 'gettime.c' || echo '$(srcdir)/'`gettime.c
7012 +
7013 +libgnu_a-gettime.obj: gettime.c
7014 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-gettime.obj -MD -MP -MF $(DEPDIR)/libgnu_a-gettime.Tpo -c -o libgnu_a-gettime.obj `if test -f 'gettime.c'; then $(CYGPATH_W) 'gettime.c'; else $(CYGPATH_W) '$(srcdir)/gettime.c'; fi`
7015 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-gettime.Tpo $(DEPDIR)/libgnu_a-gettime.Po
7016 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gettime.c' object='libgnu_a-gettime.obj' libtool=no @AMDEPBACKSLASH@
7017 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7018 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-gettime.obj `if test -f 'gettime.c'; then $(CYGPATH_W) 'gettime.c'; else $(CYGPATH_W) '$(srcdir)/gettime.c'; fi`
7019 +
7020 +libgnu_a-gettimeofday.o: gettimeofday.c
7021 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-gettimeofday.o -MD -MP -MF $(DEPDIR)/libgnu_a-gettimeofday.Tpo -c -o libgnu_a-gettimeofday.o `test -f 'gettimeofday.c' || echo '$(srcdir)/'`gettimeofday.c
7022 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-gettimeofday.Tpo $(DEPDIR)/libgnu_a-gettimeofday.Po
7023 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gettimeofday.c' object='libgnu_a-gettimeofday.o' libtool=no @AMDEPBACKSLASH@
7024 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7025 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-gettimeofday.o `test -f 'gettimeofday.c' || echo '$(srcdir)/'`gettimeofday.c
7026 +
7027 +libgnu_a-gettimeofday.obj: gettimeofday.c
7028 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-gettimeofday.obj -MD -MP -MF $(DEPDIR)/libgnu_a-gettimeofday.Tpo -c -o libgnu_a-gettimeofday.obj `if test -f 'gettimeofday.c'; then $(CYGPATH_W) 'gettimeofday.c'; else $(CYGPATH_W) '$(srcdir)/gettimeofday.c'; fi`
7029 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-gettimeofday.Tpo $(DEPDIR)/libgnu_a-gettimeofday.Po
7030 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='gettimeofday.c' object='libgnu_a-gettimeofday.obj' libtool=no @AMDEPBACKSLASH@
7031 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7032 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-gettimeofday.obj `if test -f 'gettimeofday.c'; then $(CYGPATH_W) 'gettimeofday.c'; else $(CYGPATH_W) '$(srcdir)/gettimeofday.c'; fi`
7033 +
7034 +libgnu_a-group-member.o: group-member.c
7035 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-group-member.o -MD -MP -MF $(DEPDIR)/libgnu_a-group-member.Tpo -c -o libgnu_a-group-member.o `test -f 'group-member.c' || echo '$(srcdir)/'`group-member.c
7036 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-group-member.Tpo $(DEPDIR)/libgnu_a-group-member.Po
7037 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='group-member.c' object='libgnu_a-group-member.o' libtool=no @AMDEPBACKSLASH@
7038 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7039 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-group-member.o `test -f 'group-member.c' || echo '$(srcdir)/'`group-member.c
7040 +
7041 +libgnu_a-group-member.obj: group-member.c
7042 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-group-member.obj -MD -MP -MF $(DEPDIR)/libgnu_a-group-member.Tpo -c -o libgnu_a-group-member.obj `if test -f 'group-member.c'; then $(CYGPATH_W) 'group-member.c'; else $(CYGPATH_W) '$(srcdir)/group-member.c'; fi`
7043 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-group-member.Tpo $(DEPDIR)/libgnu_a-group-member.Po
7044 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='group-member.c' object='libgnu_a-group-member.obj' libtool=no @AMDEPBACKSLASH@
7045 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7046 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-group-member.obj `if test -f 'group-member.c'; then $(CYGPATH_W) 'group-member.c'; else $(CYGPATH_W) '$(srcdir)/group-member.c'; fi`
7047 +
7048 +libgnu_a-ialloc.o: ialloc.c
7049 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-ialloc.o -MD -MP -MF $(DEPDIR)/libgnu_a-ialloc.Tpo -c -o libgnu_a-ialloc.o `test -f 'ialloc.c' || echo '$(srcdir)/'`ialloc.c
7050 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-ialloc.Tpo $(DEPDIR)/libgnu_a-ialloc.Po
7051 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ialloc.c' object='libgnu_a-ialloc.o' libtool=no @AMDEPBACKSLASH@
7052 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7053 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-ialloc.o `test -f 'ialloc.c' || echo '$(srcdir)/'`ialloc.c
7054 +
7055 +libgnu_a-ialloc.obj: ialloc.c
7056 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-ialloc.obj -MD -MP -MF $(DEPDIR)/libgnu_a-ialloc.Tpo -c -o libgnu_a-ialloc.obj `if test -f 'ialloc.c'; then $(CYGPATH_W) 'ialloc.c'; else $(CYGPATH_W) '$(srcdir)/ialloc.c'; fi`
7057 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-ialloc.Tpo $(DEPDIR)/libgnu_a-ialloc.Po
7058 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='ialloc.c' object='libgnu_a-ialloc.obj' libtool=no @AMDEPBACKSLASH@
7059 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7060 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-ialloc.obj `if test -f 'ialloc.c'; then $(CYGPATH_W) 'ialloc.c'; else $(CYGPATH_W) '$(srcdir)/ialloc.c'; fi`
7061 +
7062 +libgnu_a-lstat.o: lstat.c
7063 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-lstat.o -MD -MP -MF $(DEPDIR)/libgnu_a-lstat.Tpo -c -o libgnu_a-lstat.o `test -f 'lstat.c' || echo '$(srcdir)/'`lstat.c
7064 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-lstat.Tpo $(DEPDIR)/libgnu_a-lstat.Po
7065 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lstat.c' object='libgnu_a-lstat.o' libtool=no @AMDEPBACKSLASH@
7066 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7067 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-lstat.o `test -f 'lstat.c' || echo '$(srcdir)/'`lstat.c
7068 +
7069 +libgnu_a-lstat.obj: lstat.c
7070 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-lstat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-lstat.Tpo -c -o libgnu_a-lstat.obj `if test -f 'lstat.c'; then $(CYGPATH_W) 'lstat.c'; else $(CYGPATH_W) '$(srcdir)/lstat.c'; fi`
7071 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-lstat.Tpo $(DEPDIR)/libgnu_a-lstat.Po
7072 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='lstat.c' object='libgnu_a-lstat.obj' libtool=no @AMDEPBACKSLASH@
7073 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7074 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-lstat.obj `if test -f 'lstat.c'; then $(CYGPATH_W) 'lstat.c'; else $(CYGPATH_W) '$(srcdir)/lstat.c'; fi`
7075 +
7076 +libgnu_a-malloca.o: malloca.c
7077 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-malloca.o -MD -MP -MF $(DEPDIR)/libgnu_a-malloca.Tpo -c -o libgnu_a-malloca.o `test -f 'malloca.c' || echo '$(srcdir)/'`malloca.c
7078 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-malloca.Tpo $(DEPDIR)/libgnu_a-malloca.Po
7079 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloca.c' object='libgnu_a-malloca.o' libtool=no @AMDEPBACKSLASH@
7080 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7081 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-malloca.o `test -f 'malloca.c' || echo '$(srcdir)/'`malloca.c
7082 +
7083 +libgnu_a-malloca.obj: malloca.c
7084 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-malloca.obj -MD -MP -MF $(DEPDIR)/libgnu_a-malloca.Tpo -c -o libgnu_a-malloca.obj `if test -f 'malloca.c'; then $(CYGPATH_W) 'malloca.c'; else $(CYGPATH_W) '$(srcdir)/malloca.c'; fi`
7085 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-malloca.Tpo $(DEPDIR)/libgnu_a-malloca.Po
7086 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloca.c' object='libgnu_a-malloca.obj' libtool=no @AMDEPBACKSLASH@
7087 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7088 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-malloca.obj `if test -f 'malloca.c'; then $(CYGPATH_W) 'malloca.c'; else $(CYGPATH_W) '$(srcdir)/malloca.c'; fi`
7089 +
7090 +libgnu_a-math.o: math.c
7091 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-math.o -MD -MP -MF $(DEPDIR)/libgnu_a-math.Tpo -c -o libgnu_a-math.o `test -f 'math.c' || echo '$(srcdir)/'`math.c
7092 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-math.Tpo $(DEPDIR)/libgnu_a-math.Po
7093 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='math.c' object='libgnu_a-math.o' libtool=no @AMDEPBACKSLASH@
7094 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7095 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-math.o `test -f 'math.c' || echo '$(srcdir)/'`math.c
7096 +
7097 +libgnu_a-math.obj: math.c
7098 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-math.obj -MD -MP -MF $(DEPDIR)/libgnu_a-math.Tpo -c -o libgnu_a-math.obj `if test -f 'math.c'; then $(CYGPATH_W) 'math.c'; else $(CYGPATH_W) '$(srcdir)/math.c'; fi`
7099 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-math.Tpo $(DEPDIR)/libgnu_a-math.Po
7100 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='math.c' object='libgnu_a-math.obj' libtool=no @AMDEPBACKSLASH@
7101 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7102 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-math.obj `if test -f 'math.c'; then $(CYGPATH_W) 'math.c'; else $(CYGPATH_W) '$(srcdir)/math.c'; fi`
7103 +
7104 +libgnu_a-memchr.o: memchr.c
7105 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-memchr.o -MD -MP -MF $(DEPDIR)/libgnu_a-memchr.Tpo -c -o libgnu_a-memchr.o `test -f 'memchr.c' || echo '$(srcdir)/'`memchr.c
7106 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-memchr.Tpo $(DEPDIR)/libgnu_a-memchr.Po
7107 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='memchr.c' object='libgnu_a-memchr.o' libtool=no @AMDEPBACKSLASH@
7108 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7109 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-memchr.o `test -f 'memchr.c' || echo '$(srcdir)/'`memchr.c
7110 +
7111 +libgnu_a-memchr.obj: memchr.c
7112 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-memchr.obj -MD -MP -MF $(DEPDIR)/libgnu_a-memchr.Tpo -c -o libgnu_a-memchr.obj `if test -f 'memchr.c'; then $(CYGPATH_W) 'memchr.c'; else $(CYGPATH_W) '$(srcdir)/memchr.c'; fi`
7113 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-memchr.Tpo $(DEPDIR)/libgnu_a-memchr.Po
7114 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='memchr.c' object='libgnu_a-memchr.obj' libtool=no @AMDEPBACKSLASH@
7115 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7116 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-memchr.obj `if test -f 'memchr.c'; then $(CYGPATH_W) 'memchr.c'; else $(CYGPATH_W) '$(srcdir)/memchr.c'; fi`
7117 +
7118 +libgnu_a-mempcpy.o: mempcpy.c
7119 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-mempcpy.o -MD -MP -MF $(DEPDIR)/libgnu_a-mempcpy.Tpo -c -o libgnu_a-mempcpy.o `test -f 'mempcpy.c' || echo '$(srcdir)/'`mempcpy.c
7120 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-mempcpy.Tpo $(DEPDIR)/libgnu_a-mempcpy.Po
7121 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mempcpy.c' object='libgnu_a-mempcpy.o' libtool=no @AMDEPBACKSLASH@
7122 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7123 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-mempcpy.o `test -f 'mempcpy.c' || echo '$(srcdir)/'`mempcpy.c
7124 +
7125 +libgnu_a-mempcpy.obj: mempcpy.c
7126 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-mempcpy.obj -MD -MP -MF $(DEPDIR)/libgnu_a-mempcpy.Tpo -c -o libgnu_a-mempcpy.obj `if test -f 'mempcpy.c'; then $(CYGPATH_W) 'mempcpy.c'; else $(CYGPATH_W) '$(srcdir)/mempcpy.c'; fi`
7127 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-mempcpy.Tpo $(DEPDIR)/libgnu_a-mempcpy.Po
7128 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mempcpy.c' object='libgnu_a-mempcpy.obj' libtool=no @AMDEPBACKSLASH@
7129 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7130 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-mempcpy.obj `if test -f 'mempcpy.c'; then $(CYGPATH_W) 'mempcpy.c'; else $(CYGPATH_W) '$(srcdir)/mempcpy.c'; fi`
7131 +
7132 +libgnu_a-memrchr.o: memrchr.c
7133 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-memrchr.o -MD -MP -MF $(DEPDIR)/libgnu_a-memrchr.Tpo -c -o libgnu_a-memrchr.o `test -f 'memrchr.c' || echo '$(srcdir)/'`memrchr.c
7134 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-memrchr.Tpo $(DEPDIR)/libgnu_a-memrchr.Po
7135 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='memrchr.c' object='libgnu_a-memrchr.o' libtool=no @AMDEPBACKSLASH@
7136 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7137 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-memrchr.o `test -f 'memrchr.c' || echo '$(srcdir)/'`memrchr.c
7138 +
7139 +libgnu_a-memrchr.obj: memrchr.c
7140 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-memrchr.obj -MD -MP -MF $(DEPDIR)/libgnu_a-memrchr.Tpo -c -o libgnu_a-memrchr.obj `if test -f 'memrchr.c'; then $(CYGPATH_W) 'memrchr.c'; else $(CYGPATH_W) '$(srcdir)/memrchr.c'; fi`
7141 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-memrchr.Tpo $(DEPDIR)/libgnu_a-memrchr.Po
7142 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='memrchr.c' object='libgnu_a-memrchr.obj' libtool=no @AMDEPBACKSLASH@
7143 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7144 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-memrchr.obj `if test -f 'memrchr.c'; then $(CYGPATH_W) 'memrchr.c'; else $(CYGPATH_W) '$(srcdir)/memrchr.c'; fi`
7145 +
7146 +libgnu_a-mkdir.o: mkdir.c
7147 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-mkdir.o -MD -MP -MF $(DEPDIR)/libgnu_a-mkdir.Tpo -c -o libgnu_a-mkdir.o `test -f 'mkdir.c' || echo '$(srcdir)/'`mkdir.c
7148 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-mkdir.Tpo $(DEPDIR)/libgnu_a-mkdir.Po
7149 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mkdir.c' object='libgnu_a-mkdir.o' libtool=no @AMDEPBACKSLASH@
7150 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7151 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-mkdir.o `test -f 'mkdir.c' || echo '$(srcdir)/'`mkdir.c
7152 +
7153 +libgnu_a-mkdir.obj: mkdir.c
7154 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-mkdir.obj -MD -MP -MF $(DEPDIR)/libgnu_a-mkdir.Tpo -c -o libgnu_a-mkdir.obj `if test -f 'mkdir.c'; then $(CYGPATH_W) 'mkdir.c'; else $(CYGPATH_W) '$(srcdir)/mkdir.c'; fi`
7155 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-mkdir.Tpo $(DEPDIR)/libgnu_a-mkdir.Po
7156 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mkdir.c' object='libgnu_a-mkdir.obj' libtool=no @AMDEPBACKSLASH@
7157 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7158 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-mkdir.obj `if test -f 'mkdir.c'; then $(CYGPATH_W) 'mkdir.c'; else $(CYGPATH_W) '$(srcdir)/mkdir.c'; fi`
7159 +
7160 +libgnu_a-mkdirat.o: mkdirat.c
7161 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-mkdirat.o -MD -MP -MF $(DEPDIR)/libgnu_a-mkdirat.Tpo -c -o libgnu_a-mkdirat.o `test -f 'mkdirat.c' || echo '$(srcdir)/'`mkdirat.c
7162 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-mkdirat.Tpo $(DEPDIR)/libgnu_a-mkdirat.Po
7163 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mkdirat.c' object='libgnu_a-mkdirat.o' libtool=no @AMDEPBACKSLASH@
7164 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7165 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-mkdirat.o `test -f 'mkdirat.c' || echo '$(srcdir)/'`mkdirat.c
7166 +
7167 +libgnu_a-mkdirat.obj: mkdirat.c
7168 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-mkdirat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-mkdirat.Tpo -c -o libgnu_a-mkdirat.obj `if test -f 'mkdirat.c'; then $(CYGPATH_W) 'mkdirat.c'; else $(CYGPATH_W) '$(srcdir)/mkdirat.c'; fi`
7169 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-mkdirat.Tpo $(DEPDIR)/libgnu_a-mkdirat.Po
7170 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='mkdirat.c' object='libgnu_a-mkdirat.obj' libtool=no @AMDEPBACKSLASH@
7171 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7172 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-mkdirat.obj `if test -f 'mkdirat.c'; then $(CYGPATH_W) 'mkdirat.c'; else $(CYGPATH_W) '$(srcdir)/mkdirat.c'; fi`
7173 +
7174 +libgnu_a-msvc-inval.o: msvc-inval.c
7175 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-msvc-inval.o -MD -MP -MF $(DEPDIR)/libgnu_a-msvc-inval.Tpo -c -o libgnu_a-msvc-inval.o `test -f 'msvc-inval.c' || echo '$(srcdir)/'`msvc-inval.c
7176 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-msvc-inval.Tpo $(DEPDIR)/libgnu_a-msvc-inval.Po
7177 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='msvc-inval.c' object='libgnu_a-msvc-inval.o' libtool=no @AMDEPBACKSLASH@
7178 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7179 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-msvc-inval.o `test -f 'msvc-inval.c' || echo '$(srcdir)/'`msvc-inval.c
7180 +
7181 +libgnu_a-msvc-inval.obj: msvc-inval.c
7182 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-msvc-inval.obj -MD -MP -MF $(DEPDIR)/libgnu_a-msvc-inval.Tpo -c -o libgnu_a-msvc-inval.obj `if test -f 'msvc-inval.c'; then $(CYGPATH_W) 'msvc-inval.c'; else $(CYGPATH_W) '$(srcdir)/msvc-inval.c'; fi`
7183 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-msvc-inval.Tpo $(DEPDIR)/libgnu_a-msvc-inval.Po
7184 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='msvc-inval.c' object='libgnu_a-msvc-inval.obj' libtool=no @AMDEPBACKSLASH@
7185 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7186 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-msvc-inval.obj `if test -f 'msvc-inval.c'; then $(CYGPATH_W) 'msvc-inval.c'; else $(CYGPATH_W) '$(srcdir)/msvc-inval.c'; fi`
7187 +
7188 +libgnu_a-msvc-nothrow.o: msvc-nothrow.c
7189 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-msvc-nothrow.o -MD -MP -MF $(DEPDIR)/libgnu_a-msvc-nothrow.Tpo -c -o libgnu_a-msvc-nothrow.o `test -f 'msvc-nothrow.c' || echo '$(srcdir)/'`msvc-nothrow.c
7190 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-msvc-nothrow.Tpo $(DEPDIR)/libgnu_a-msvc-nothrow.Po
7191 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='msvc-nothrow.c' object='libgnu_a-msvc-nothrow.o' libtool=no @AMDEPBACKSLASH@
7192 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7193 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-msvc-nothrow.o `test -f 'msvc-nothrow.c' || echo '$(srcdir)/'`msvc-nothrow.c
7194 +
7195 +libgnu_a-msvc-nothrow.obj: msvc-nothrow.c
7196 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-msvc-nothrow.obj -MD -MP -MF $(DEPDIR)/libgnu_a-msvc-nothrow.Tpo -c -o libgnu_a-msvc-nothrow.obj `if test -f 'msvc-nothrow.c'; then $(CYGPATH_W) 'msvc-nothrow.c'; else $(CYGPATH_W) '$(srcdir)/msvc-nothrow.c'; fi`
7197 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-msvc-nothrow.Tpo $(DEPDIR)/libgnu_a-msvc-nothrow.Po
7198 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='msvc-nothrow.c' object='libgnu_a-msvc-nothrow.obj' libtool=no @AMDEPBACKSLASH@
7199 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7200 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-msvc-nothrow.obj `if test -f 'msvc-nothrow.c'; then $(CYGPATH_W) 'msvc-nothrow.c'; else $(CYGPATH_W) '$(srcdir)/msvc-nothrow.c'; fi`
7201 +
7202 +libgnu_a-open.o: open.c
7203 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-open.o -MD -MP -MF $(DEPDIR)/libgnu_a-open.Tpo -c -o libgnu_a-open.o `test -f 'open.c' || echo '$(srcdir)/'`open.c
7204 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-open.Tpo $(DEPDIR)/libgnu_a-open.Po
7205 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='open.c' object='libgnu_a-open.o' libtool=no @AMDEPBACKSLASH@
7206 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7207 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-open.o `test -f 'open.c' || echo '$(srcdir)/'`open.c
7208 +
7209 +libgnu_a-open.obj: open.c
7210 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-open.obj -MD -MP -MF $(DEPDIR)/libgnu_a-open.Tpo -c -o libgnu_a-open.obj `if test -f 'open.c'; then $(CYGPATH_W) 'open.c'; else $(CYGPATH_W) '$(srcdir)/open.c'; fi`
7211 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-open.Tpo $(DEPDIR)/libgnu_a-open.Po
7212 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='open.c' object='libgnu_a-open.obj' libtool=no @AMDEPBACKSLASH@
7213 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7214 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-open.obj `if test -f 'open.c'; then $(CYGPATH_W) 'open.c'; else $(CYGPATH_W) '$(srcdir)/open.c'; fi`
7215 +
7216 +libgnu_a-openat.o: openat.c
7217 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-openat.o -MD -MP -MF $(DEPDIR)/libgnu_a-openat.Tpo -c -o libgnu_a-openat.o `test -f 'openat.c' || echo '$(srcdir)/'`openat.c
7218 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-openat.Tpo $(DEPDIR)/libgnu_a-openat.Po
7219 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openat.c' object='libgnu_a-openat.o' libtool=no @AMDEPBACKSLASH@
7220 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7221 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-openat.o `test -f 'openat.c' || echo '$(srcdir)/'`openat.c
7222 +
7223 +libgnu_a-openat.obj: openat.c
7224 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-openat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-openat.Tpo -c -o libgnu_a-openat.obj `if test -f 'openat.c'; then $(CYGPATH_W) 'openat.c'; else $(CYGPATH_W) '$(srcdir)/openat.c'; fi`
7225 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-openat.Tpo $(DEPDIR)/libgnu_a-openat.Po
7226 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openat.c' object='libgnu_a-openat.obj' libtool=no @AMDEPBACKSLASH@
7227 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7228 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-openat.obj `if test -f 'openat.c'; then $(CYGPATH_W) 'openat.c'; else $(CYGPATH_W) '$(srcdir)/openat.c'; fi`
7229 +
7230 +libgnu_a-openat-die.o: openat-die.c
7231 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-openat-die.o -MD -MP -MF $(DEPDIR)/libgnu_a-openat-die.Tpo -c -o libgnu_a-openat-die.o `test -f 'openat-die.c' || echo '$(srcdir)/'`openat-die.c
7232 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-openat-die.Tpo $(DEPDIR)/libgnu_a-openat-die.Po
7233 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openat-die.c' object='libgnu_a-openat-die.o' libtool=no @AMDEPBACKSLASH@
7234 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7235 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-openat-die.o `test -f 'openat-die.c' || echo '$(srcdir)/'`openat-die.c
7236 +
7237 +libgnu_a-openat-die.obj: openat-die.c
7238 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-openat-die.obj -MD -MP -MF $(DEPDIR)/libgnu_a-openat-die.Tpo -c -o libgnu_a-openat-die.obj `if test -f 'openat-die.c'; then $(CYGPATH_W) 'openat-die.c'; else $(CYGPATH_W) '$(srcdir)/openat-die.c'; fi`
7239 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-openat-die.Tpo $(DEPDIR)/libgnu_a-openat-die.Po
7240 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='openat-die.c' object='libgnu_a-openat-die.obj' libtool=no @AMDEPBACKSLASH@
7241 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7242 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-openat-die.obj `if test -f 'openat-die.c'; then $(CYGPATH_W) 'openat-die.c'; else $(CYGPATH_W) '$(srcdir)/openat-die.c'; fi`
7243 +
7244 +libgnu_a-opendir.o: opendir.c
7245 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-opendir.o -MD -MP -MF $(DEPDIR)/libgnu_a-opendir.Tpo -c -o libgnu_a-opendir.o `test -f 'opendir.c' || echo '$(srcdir)/'`opendir.c
7246 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-opendir.Tpo $(DEPDIR)/libgnu_a-opendir.Po
7247 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='opendir.c' object='libgnu_a-opendir.o' libtool=no @AMDEPBACKSLASH@
7248 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7249 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-opendir.o `test -f 'opendir.c' || echo '$(srcdir)/'`opendir.c
7250 +
7251 +libgnu_a-opendir.obj: opendir.c
7252 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-opendir.obj -MD -MP -MF $(DEPDIR)/libgnu_a-opendir.Tpo -c -o libgnu_a-opendir.obj `if test -f 'opendir.c'; then $(CYGPATH_W) 'opendir.c'; else $(CYGPATH_W) '$(srcdir)/opendir.c'; fi`
7253 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-opendir.Tpo $(DEPDIR)/libgnu_a-opendir.Po
7254 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='opendir.c' object='libgnu_a-opendir.obj' libtool=no @AMDEPBACKSLASH@
7255 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7256 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-opendir.obj `if test -f 'opendir.c'; then $(CYGPATH_W) 'opendir.c'; else $(CYGPATH_W) '$(srcdir)/opendir.c'; fi`
7257 +
7258 +libgnu_a-pipe.o: pipe.c
7259 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-pipe.o -MD -MP -MF $(DEPDIR)/libgnu_a-pipe.Tpo -c -o libgnu_a-pipe.o `test -f 'pipe.c' || echo '$(srcdir)/'`pipe.c
7260 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-pipe.Tpo $(DEPDIR)/libgnu_a-pipe.Po
7261 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pipe.c' object='libgnu_a-pipe.o' libtool=no @AMDEPBACKSLASH@
7262 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7263 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-pipe.o `test -f 'pipe.c' || echo '$(srcdir)/'`pipe.c
7264 +
7265 +libgnu_a-pipe.obj: pipe.c
7266 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-pipe.obj -MD -MP -MF $(DEPDIR)/libgnu_a-pipe.Tpo -c -o libgnu_a-pipe.obj `if test -f 'pipe.c'; then $(CYGPATH_W) 'pipe.c'; else $(CYGPATH_W) '$(srcdir)/pipe.c'; fi`
7267 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-pipe.Tpo $(DEPDIR)/libgnu_a-pipe.Po
7268 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pipe.c' object='libgnu_a-pipe.obj' libtool=no @AMDEPBACKSLASH@
7269 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7270 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-pipe.obj `if test -f 'pipe.c'; then $(CYGPATH_W) 'pipe.c'; else $(CYGPATH_W) '$(srcdir)/pipe.c'; fi`
7271 +
7272 +libgnu_a-printf-frexp.o: printf-frexp.c
7273 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-printf-frexp.o -MD -MP -MF $(DEPDIR)/libgnu_a-printf-frexp.Tpo -c -o libgnu_a-printf-frexp.o `test -f 'printf-frexp.c' || echo '$(srcdir)/'`printf-frexp.c
7274 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-printf-frexp.Tpo $(DEPDIR)/libgnu_a-printf-frexp.Po
7275 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='printf-frexp.c' object='libgnu_a-printf-frexp.o' libtool=no @AMDEPBACKSLASH@
7276 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7277 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-printf-frexp.o `test -f 'printf-frexp.c' || echo '$(srcdir)/'`printf-frexp.c
7278 +
7279 +libgnu_a-printf-frexp.obj: printf-frexp.c
7280 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-printf-frexp.obj -MD -MP -MF $(DEPDIR)/libgnu_a-printf-frexp.Tpo -c -o libgnu_a-printf-frexp.obj `if test -f 'printf-frexp.c'; then $(CYGPATH_W) 'printf-frexp.c'; else $(CYGPATH_W) '$(srcdir)/printf-frexp.c'; fi`
7281 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-printf-frexp.Tpo $(DEPDIR)/libgnu_a-printf-frexp.Po
7282 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='printf-frexp.c' object='libgnu_a-printf-frexp.obj' libtool=no @AMDEPBACKSLASH@
7283 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7284 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-printf-frexp.obj `if test -f 'printf-frexp.c'; then $(CYGPATH_W) 'printf-frexp.c'; else $(CYGPATH_W) '$(srcdir)/printf-frexp.c'; fi`
7285 +
7286 +libgnu_a-printf-frexpl.o: printf-frexpl.c
7287 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-printf-frexpl.o -MD -MP -MF $(DEPDIR)/libgnu_a-printf-frexpl.Tpo -c -o libgnu_a-printf-frexpl.o `test -f 'printf-frexpl.c' || echo '$(srcdir)/'`printf-frexpl.c
7288 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-printf-frexpl.Tpo $(DEPDIR)/libgnu_a-printf-frexpl.Po
7289 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='printf-frexpl.c' object='libgnu_a-printf-frexpl.o' libtool=no @AMDEPBACKSLASH@
7290 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7291 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-printf-frexpl.o `test -f 'printf-frexpl.c' || echo '$(srcdir)/'`printf-frexpl.c
7292 +
7293 +libgnu_a-printf-frexpl.obj: printf-frexpl.c
7294 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-printf-frexpl.obj -MD -MP -MF $(DEPDIR)/libgnu_a-printf-frexpl.Tpo -c -o libgnu_a-printf-frexpl.obj `if test -f 'printf-frexpl.c'; then $(CYGPATH_W) 'printf-frexpl.c'; else $(CYGPATH_W) '$(srcdir)/printf-frexpl.c'; fi`
7295 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-printf-frexpl.Tpo $(DEPDIR)/libgnu_a-printf-frexpl.Po
7296 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='printf-frexpl.c' object='libgnu_a-printf-frexpl.obj' libtool=no @AMDEPBACKSLASH@
7297 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7298 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-printf-frexpl.obj `if test -f 'printf-frexpl.c'; then $(CYGPATH_W) 'printf-frexpl.c'; else $(CYGPATH_W) '$(srcdir)/printf-frexpl.c'; fi`
7299 +
7300 +libgnu_a-rawmemchr.o: rawmemchr.c
7301 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-rawmemchr.o -MD -MP -MF $(DEPDIR)/libgnu_a-rawmemchr.Tpo -c -o libgnu_a-rawmemchr.o `test -f 'rawmemchr.c' || echo '$(srcdir)/'`rawmemchr.c
7302 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-rawmemchr.Tpo $(DEPDIR)/libgnu_a-rawmemchr.Po
7303 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rawmemchr.c' object='libgnu_a-rawmemchr.o' libtool=no @AMDEPBACKSLASH@
7304 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7305 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-rawmemchr.o `test -f 'rawmemchr.c' || echo '$(srcdir)/'`rawmemchr.c
7306 +
7307 +libgnu_a-rawmemchr.obj: rawmemchr.c
7308 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-rawmemchr.obj -MD -MP -MF $(DEPDIR)/libgnu_a-rawmemchr.Tpo -c -o libgnu_a-rawmemchr.obj `if test -f 'rawmemchr.c'; then $(CYGPATH_W) 'rawmemchr.c'; else $(CYGPATH_W) '$(srcdir)/rawmemchr.c'; fi`
7309 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-rawmemchr.Tpo $(DEPDIR)/libgnu_a-rawmemchr.Po
7310 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rawmemchr.c' object='libgnu_a-rawmemchr.obj' libtool=no @AMDEPBACKSLASH@
7311 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7312 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-rawmemchr.obj `if test -f 'rawmemchr.c'; then $(CYGPATH_W) 'rawmemchr.c'; else $(CYGPATH_W) '$(srcdir)/rawmemchr.c'; fi`
7313 +
7314 +libgnu_a-readlink.o: readlink.c
7315 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-readlink.o -MD -MP -MF $(DEPDIR)/libgnu_a-readlink.Tpo -c -o libgnu_a-readlink.o `test -f 'readlink.c' || echo '$(srcdir)/'`readlink.c
7316 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-readlink.Tpo $(DEPDIR)/libgnu_a-readlink.Po
7317 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='readlink.c' object='libgnu_a-readlink.o' libtool=no @AMDEPBACKSLASH@
7318 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7319 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-readlink.o `test -f 'readlink.c' || echo '$(srcdir)/'`readlink.c
7320 +
7321 +libgnu_a-readlink.obj: readlink.c
7322 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-readlink.obj -MD -MP -MF $(DEPDIR)/libgnu_a-readlink.Tpo -c -o libgnu_a-readlink.obj `if test -f 'readlink.c'; then $(CYGPATH_W) 'readlink.c'; else $(CYGPATH_W) '$(srcdir)/readlink.c'; fi`
7323 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-readlink.Tpo $(DEPDIR)/libgnu_a-readlink.Po
7324 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='readlink.c' object='libgnu_a-readlink.obj' libtool=no @AMDEPBACKSLASH@
7325 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7326 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-readlink.obj `if test -f 'readlink.c'; then $(CYGPATH_W) 'readlink.c'; else $(CYGPATH_W) '$(srcdir)/readlink.c'; fi`
7327 +
7328 +libgnu_a-readlinkat.o: readlinkat.c
7329 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-readlinkat.o -MD -MP -MF $(DEPDIR)/libgnu_a-readlinkat.Tpo -c -o libgnu_a-readlinkat.o `test -f 'readlinkat.c' || echo '$(srcdir)/'`readlinkat.c
7330 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-readlinkat.Tpo $(DEPDIR)/libgnu_a-readlinkat.Po
7331 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='readlinkat.c' object='libgnu_a-readlinkat.o' libtool=no @AMDEPBACKSLASH@
7332 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7333 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-readlinkat.o `test -f 'readlinkat.c' || echo '$(srcdir)/'`readlinkat.c
7334 +
7335 +libgnu_a-readlinkat.obj: readlinkat.c
7336 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-readlinkat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-readlinkat.Tpo -c -o libgnu_a-readlinkat.obj `if test -f 'readlinkat.c'; then $(CYGPATH_W) 'readlinkat.c'; else $(CYGPATH_W) '$(srcdir)/readlinkat.c'; fi`
7337 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-readlinkat.Tpo $(DEPDIR)/libgnu_a-readlinkat.Po
7338 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='readlinkat.c' object='libgnu_a-readlinkat.obj' libtool=no @AMDEPBACKSLASH@
7339 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7340 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-readlinkat.obj `if test -f 'readlinkat.c'; then $(CYGPATH_W) 'readlinkat.c'; else $(CYGPATH_W) '$(srcdir)/readlinkat.c'; fi`
7341 +
7342 +libgnu_a-reallocarray.o: reallocarray.c
7343 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-reallocarray.o -MD -MP -MF $(DEPDIR)/libgnu_a-reallocarray.Tpo -c -o libgnu_a-reallocarray.o `test -f 'reallocarray.c' || echo '$(srcdir)/'`reallocarray.c
7344 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-reallocarray.Tpo $(DEPDIR)/libgnu_a-reallocarray.Po
7345 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='reallocarray.c' object='libgnu_a-reallocarray.o' libtool=no @AMDEPBACKSLASH@
7346 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7347 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-reallocarray.o `test -f 'reallocarray.c' || echo '$(srcdir)/'`reallocarray.c
7348 +
7349 +libgnu_a-reallocarray.obj: reallocarray.c
7350 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-reallocarray.obj -MD -MP -MF $(DEPDIR)/libgnu_a-reallocarray.Tpo -c -o libgnu_a-reallocarray.obj `if test -f 'reallocarray.c'; then $(CYGPATH_W) 'reallocarray.c'; else $(CYGPATH_W) '$(srcdir)/reallocarray.c'; fi`
7351 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-reallocarray.Tpo $(DEPDIR)/libgnu_a-reallocarray.Po
7352 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='reallocarray.c' object='libgnu_a-reallocarray.obj' libtool=no @AMDEPBACKSLASH@
7353 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7354 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-reallocarray.obj `if test -f 'reallocarray.c'; then $(CYGPATH_W) 'reallocarray.c'; else $(CYGPATH_W) '$(srcdir)/reallocarray.c'; fi`
7355 +
7356 +libgnu_a-rename.o: rename.c
7357 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-rename.o -MD -MP -MF $(DEPDIR)/libgnu_a-rename.Tpo -c -o libgnu_a-rename.o `test -f 'rename.c' || echo '$(srcdir)/'`rename.c
7358 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-rename.Tpo $(DEPDIR)/libgnu_a-rename.Po
7359 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rename.c' object='libgnu_a-rename.o' libtool=no @AMDEPBACKSLASH@
7360 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7361 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-rename.o `test -f 'rename.c' || echo '$(srcdir)/'`rename.c
7362 +
7363 +libgnu_a-rename.obj: rename.c
7364 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-rename.obj -MD -MP -MF $(DEPDIR)/libgnu_a-rename.Tpo -c -o libgnu_a-rename.obj `if test -f 'rename.c'; then $(CYGPATH_W) 'rename.c'; else $(CYGPATH_W) '$(srcdir)/rename.c'; fi`
7365 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-rename.Tpo $(DEPDIR)/libgnu_a-rename.Po
7366 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rename.c' object='libgnu_a-rename.obj' libtool=no @AMDEPBACKSLASH@
7367 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7368 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-rename.obj `if test -f 'rename.c'; then $(CYGPATH_W) 'rename.c'; else $(CYGPATH_W) '$(srcdir)/rename.c'; fi`
7369 +
7370 +libgnu_a-renameat.o: renameat.c
7371 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-renameat.o -MD -MP -MF $(DEPDIR)/libgnu_a-renameat.Tpo -c -o libgnu_a-renameat.o `test -f 'renameat.c' || echo '$(srcdir)/'`renameat.c
7372 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-renameat.Tpo $(DEPDIR)/libgnu_a-renameat.Po
7373 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='renameat.c' object='libgnu_a-renameat.o' libtool=no @AMDEPBACKSLASH@
7374 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7375 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-renameat.o `test -f 'renameat.c' || echo '$(srcdir)/'`renameat.c
7376 +
7377 +libgnu_a-renameat.obj: renameat.c
7378 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-renameat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-renameat.Tpo -c -o libgnu_a-renameat.obj `if test -f 'renameat.c'; then $(CYGPATH_W) 'renameat.c'; else $(CYGPATH_W) '$(srcdir)/renameat.c'; fi`
7379 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-renameat.Tpo $(DEPDIR)/libgnu_a-renameat.Po
7380 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='renameat.c' object='libgnu_a-renameat.obj' libtool=no @AMDEPBACKSLASH@
7381 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7382 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-renameat.obj `if test -f 'renameat.c'; then $(CYGPATH_W) 'renameat.c'; else $(CYGPATH_W) '$(srcdir)/renameat.c'; fi`
7383 +
7384 +libgnu_a-renameatu.o: renameatu.c
7385 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-renameatu.o -MD -MP -MF $(DEPDIR)/libgnu_a-renameatu.Tpo -c -o libgnu_a-renameatu.o `test -f 'renameatu.c' || echo '$(srcdir)/'`renameatu.c
7386 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-renameatu.Tpo $(DEPDIR)/libgnu_a-renameatu.Po
7387 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='renameatu.c' object='libgnu_a-renameatu.o' libtool=no @AMDEPBACKSLASH@
7388 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7389 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-renameatu.o `test -f 'renameatu.c' || echo '$(srcdir)/'`renameatu.c
7390 +
7391 +libgnu_a-renameatu.obj: renameatu.c
7392 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-renameatu.obj -MD -MP -MF $(DEPDIR)/libgnu_a-renameatu.Tpo -c -o libgnu_a-renameatu.obj `if test -f 'renameatu.c'; then $(CYGPATH_W) 'renameatu.c'; else $(CYGPATH_W) '$(srcdir)/renameatu.c'; fi`
7393 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-renameatu.Tpo $(DEPDIR)/libgnu_a-renameatu.Po
7394 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='renameatu.c' object='libgnu_a-renameatu.obj' libtool=no @AMDEPBACKSLASH@
7395 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7396 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-renameatu.obj `if test -f 'renameatu.c'; then $(CYGPATH_W) 'renameatu.c'; else $(CYGPATH_W) '$(srcdir)/renameatu.c'; fi`
7397 +
7398 +libgnu_a-rmdir.o: rmdir.c
7399 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-rmdir.o -MD -MP -MF $(DEPDIR)/libgnu_a-rmdir.Tpo -c -o libgnu_a-rmdir.o `test -f 'rmdir.c' || echo '$(srcdir)/'`rmdir.c
7400 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-rmdir.Tpo $(DEPDIR)/libgnu_a-rmdir.Po
7401 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rmdir.c' object='libgnu_a-rmdir.o' libtool=no @AMDEPBACKSLASH@
7402 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7403 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-rmdir.o `test -f 'rmdir.c' || echo '$(srcdir)/'`rmdir.c
7404 +
7405 +libgnu_a-rmdir.obj: rmdir.c
7406 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-rmdir.obj -MD -MP -MF $(DEPDIR)/libgnu_a-rmdir.Tpo -c -o libgnu_a-rmdir.obj `if test -f 'rmdir.c'; then $(CYGPATH_W) 'rmdir.c'; else $(CYGPATH_W) '$(srcdir)/rmdir.c'; fi`
7407 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-rmdir.Tpo $(DEPDIR)/libgnu_a-rmdir.Po
7408 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='rmdir.c' object='libgnu_a-rmdir.obj' libtool=no @AMDEPBACKSLASH@
7409 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7410 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-rmdir.obj `if test -f 'rmdir.c'; then $(CYGPATH_W) 'rmdir.c'; else $(CYGPATH_W) '$(srcdir)/rmdir.c'; fi`
7411 +
7412 +libgnu_a-save-cwd.o: save-cwd.c
7413 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-save-cwd.o -MD -MP -MF $(DEPDIR)/libgnu_a-save-cwd.Tpo -c -o libgnu_a-save-cwd.o `test -f 'save-cwd.c' || echo '$(srcdir)/'`save-cwd.c
7414 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-save-cwd.Tpo $(DEPDIR)/libgnu_a-save-cwd.Po
7415 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='save-cwd.c' object='libgnu_a-save-cwd.o' libtool=no @AMDEPBACKSLASH@
7416 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7417 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-save-cwd.o `test -f 'save-cwd.c' || echo '$(srcdir)/'`save-cwd.c
7418 +
7419 +libgnu_a-save-cwd.obj: save-cwd.c
7420 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-save-cwd.obj -MD -MP -MF $(DEPDIR)/libgnu_a-save-cwd.Tpo -c -o libgnu_a-save-cwd.obj `if test -f 'save-cwd.c'; then $(CYGPATH_W) 'save-cwd.c'; else $(CYGPATH_W) '$(srcdir)/save-cwd.c'; fi`
7421 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-save-cwd.Tpo $(DEPDIR)/libgnu_a-save-cwd.Po
7422 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='save-cwd.c' object='libgnu_a-save-cwd.obj' libtool=no @AMDEPBACKSLASH@
7423 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7424 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-save-cwd.obj `if test -f 'save-cwd.c'; then $(CYGPATH_W) 'save-cwd.c'; else $(CYGPATH_W) '$(srcdir)/save-cwd.c'; fi`
7425 +
7426 +malloc/libgnu_a-scratch_buffer_dupfree.o: malloc/scratch_buffer_dupfree.c
7427 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT malloc/libgnu_a-scratch_buffer_dupfree.o -MD -MP -MF malloc/$(DEPDIR)/libgnu_a-scratch_buffer_dupfree.Tpo -c -o malloc/libgnu_a-scratch_buffer_dupfree.o `test -f 'malloc/scratch_buffer_dupfree.c' || echo '$(srcdir)/'`malloc/scratch_buffer_dupfree.c
7428 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) malloc/$(DEPDIR)/libgnu_a-scratch_buffer_dupfree.Tpo malloc/$(DEPDIR)/libgnu_a-scratch_buffer_dupfree.Po
7429 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc/scratch_buffer_dupfree.c' object='malloc/libgnu_a-scratch_buffer_dupfree.o' libtool=no @AMDEPBACKSLASH@
7430 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7431 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o malloc/libgnu_a-scratch_buffer_dupfree.o `test -f 'malloc/scratch_buffer_dupfree.c' || echo '$(srcdir)/'`malloc/scratch_buffer_dupfree.c
7432 +
7433 +malloc/libgnu_a-scratch_buffer_dupfree.obj: malloc/scratch_buffer_dupfree.c
7434 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT malloc/libgnu_a-scratch_buffer_dupfree.obj -MD -MP -MF malloc/$(DEPDIR)/libgnu_a-scratch_buffer_dupfree.Tpo -c -o malloc/libgnu_a-scratch_buffer_dupfree.obj `if test -f 'malloc/scratch_buffer_dupfree.c'; then $(CYGPATH_W) 'malloc/scratch_buffer_dupfree.c'; else $(CYGPATH_W) '$(srcdir)/malloc/scratch_buffer_dupfree.c'; fi`
7435 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) malloc/$(DEPDIR)/libgnu_a-scratch_buffer_dupfree.Tpo malloc/$(DEPDIR)/libgnu_a-scratch_buffer_dupfree.Po
7436 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc/scratch_buffer_dupfree.c' object='malloc/libgnu_a-scratch_buffer_dupfree.obj' libtool=no @AMDEPBACKSLASH@
7437 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7438 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o malloc/libgnu_a-scratch_buffer_dupfree.obj `if test -f 'malloc/scratch_buffer_dupfree.c'; then $(CYGPATH_W) 'malloc/scratch_buffer_dupfree.c'; else $(CYGPATH_W) '$(srcdir)/malloc/scratch_buffer_dupfree.c'; fi`
7439 +
7440 +malloc/libgnu_a-scratch_buffer_grow.o: malloc/scratch_buffer_grow.c
7441 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT malloc/libgnu_a-scratch_buffer_grow.o -MD -MP -MF malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow.Tpo -c -o malloc/libgnu_a-scratch_buffer_grow.o `test -f 'malloc/scratch_buffer_grow.c' || echo '$(srcdir)/'`malloc/scratch_buffer_grow.c
7442 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow.Tpo malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow.Po
7443 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc/scratch_buffer_grow.c' object='malloc/libgnu_a-scratch_buffer_grow.o' libtool=no @AMDEPBACKSLASH@
7444 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7445 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o malloc/libgnu_a-scratch_buffer_grow.o `test -f 'malloc/scratch_buffer_grow.c' || echo '$(srcdir)/'`malloc/scratch_buffer_grow.c
7446 +
7447 +malloc/libgnu_a-scratch_buffer_grow.obj: malloc/scratch_buffer_grow.c
7448 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT malloc/libgnu_a-scratch_buffer_grow.obj -MD -MP -MF malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow.Tpo -c -o malloc/libgnu_a-scratch_buffer_grow.obj `if test -f 'malloc/scratch_buffer_grow.c'; then $(CYGPATH_W) 'malloc/scratch_buffer_grow.c'; else $(CYGPATH_W) '$(srcdir)/malloc/scratch_buffer_grow.c'; fi`
7449 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow.Tpo malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow.Po
7450 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc/scratch_buffer_grow.c' object='malloc/libgnu_a-scratch_buffer_grow.obj' libtool=no @AMDEPBACKSLASH@
7451 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7452 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o malloc/libgnu_a-scratch_buffer_grow.obj `if test -f 'malloc/scratch_buffer_grow.c'; then $(CYGPATH_W) 'malloc/scratch_buffer_grow.c'; else $(CYGPATH_W) '$(srcdir)/malloc/scratch_buffer_grow.c'; fi`
7453 +
7454 +malloc/libgnu_a-scratch_buffer_grow_preserve.o: malloc/scratch_buffer_grow_preserve.c
7455 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT malloc/libgnu_a-scratch_buffer_grow_preserve.o -MD -MP -MF malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow_preserve.Tpo -c -o malloc/libgnu_a-scratch_buffer_grow_preserve.o `test -f 'malloc/scratch_buffer_grow_preserve.c' || echo '$(srcdir)/'`malloc/scratch_buffer_grow_preserve.c
7456 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow_preserve.Tpo malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow_preserve.Po
7457 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc/scratch_buffer_grow_preserve.c' object='malloc/libgnu_a-scratch_buffer_grow_preserve.o' libtool=no @AMDEPBACKSLASH@
7458 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7459 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o malloc/libgnu_a-scratch_buffer_grow_preserve.o `test -f 'malloc/scratch_buffer_grow_preserve.c' || echo '$(srcdir)/'`malloc/scratch_buffer_grow_preserve.c
7460 +
7461 +malloc/libgnu_a-scratch_buffer_grow_preserve.obj: malloc/scratch_buffer_grow_preserve.c
7462 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT malloc/libgnu_a-scratch_buffer_grow_preserve.obj -MD -MP -MF malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow_preserve.Tpo -c -o malloc/libgnu_a-scratch_buffer_grow_preserve.obj `if test -f 'malloc/scratch_buffer_grow_preserve.c'; then $(CYGPATH_W) 'malloc/scratch_buffer_grow_preserve.c'; else $(CYGPATH_W) '$(srcdir)/malloc/scratch_buffer_grow_preserve.c'; fi`
7463 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow_preserve.Tpo malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow_preserve.Po
7464 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc/scratch_buffer_grow_preserve.c' object='malloc/libgnu_a-scratch_buffer_grow_preserve.obj' libtool=no @AMDEPBACKSLASH@
7465 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7466 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o malloc/libgnu_a-scratch_buffer_grow_preserve.obj `if test -f 'malloc/scratch_buffer_grow_preserve.c'; then $(CYGPATH_W) 'malloc/scratch_buffer_grow_preserve.c'; else $(CYGPATH_W) '$(srcdir)/malloc/scratch_buffer_grow_preserve.c'; fi`
7467 +
7468 +malloc/libgnu_a-scratch_buffer_set_array_size.o: malloc/scratch_buffer_set_array_size.c
7469 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT malloc/libgnu_a-scratch_buffer_set_array_size.o -MD -MP -MF malloc/$(DEPDIR)/libgnu_a-scratch_buffer_set_array_size.Tpo -c -o malloc/libgnu_a-scratch_buffer_set_array_size.o `test -f 'malloc/scratch_buffer_set_array_size.c' || echo '$(srcdir)/'`malloc/scratch_buffer_set_array_size.c
7470 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) malloc/$(DEPDIR)/libgnu_a-scratch_buffer_set_array_size.Tpo malloc/$(DEPDIR)/libgnu_a-scratch_buffer_set_array_size.Po
7471 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc/scratch_buffer_set_array_size.c' object='malloc/libgnu_a-scratch_buffer_set_array_size.o' libtool=no @AMDEPBACKSLASH@
7472 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7473 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o malloc/libgnu_a-scratch_buffer_set_array_size.o `test -f 'malloc/scratch_buffer_set_array_size.c' || echo '$(srcdir)/'`malloc/scratch_buffer_set_array_size.c
7474 +
7475 +malloc/libgnu_a-scratch_buffer_set_array_size.obj: malloc/scratch_buffer_set_array_size.c
7476 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT malloc/libgnu_a-scratch_buffer_set_array_size.obj -MD -MP -MF malloc/$(DEPDIR)/libgnu_a-scratch_buffer_set_array_size.Tpo -c -o malloc/libgnu_a-scratch_buffer_set_array_size.obj `if test -f 'malloc/scratch_buffer_set_array_size.c'; then $(CYGPATH_W) 'malloc/scratch_buffer_set_array_size.c'; else $(CYGPATH_W) '$(srcdir)/malloc/scratch_buffer_set_array_size.c'; fi`
7477 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) malloc/$(DEPDIR)/libgnu_a-scratch_buffer_set_array_size.Tpo malloc/$(DEPDIR)/libgnu_a-scratch_buffer_set_array_size.Po
7478 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc/scratch_buffer_set_array_size.c' object='malloc/libgnu_a-scratch_buffer_set_array_size.obj' libtool=no @AMDEPBACKSLASH@
7479 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7480 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o malloc/libgnu_a-scratch_buffer_set_array_size.obj `if test -f 'malloc/scratch_buffer_set_array_size.c'; then $(CYGPATH_W) 'malloc/scratch_buffer_set_array_size.c'; else $(CYGPATH_W) '$(srcdir)/malloc/scratch_buffer_set_array_size.c'; fi`
7481 +
7482 +libgnu_a-signbitf.o: signbitf.c
7483 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-signbitf.o -MD -MP -MF $(DEPDIR)/libgnu_a-signbitf.Tpo -c -o libgnu_a-signbitf.o `test -f 'signbitf.c' || echo '$(srcdir)/'`signbitf.c
7484 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-signbitf.Tpo $(DEPDIR)/libgnu_a-signbitf.Po
7485 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='signbitf.c' object='libgnu_a-signbitf.o' libtool=no @AMDEPBACKSLASH@
7486 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7487 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-signbitf.o `test -f 'signbitf.c' || echo '$(srcdir)/'`signbitf.c
7488 +
7489 +libgnu_a-signbitf.obj: signbitf.c
7490 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-signbitf.obj -MD -MP -MF $(DEPDIR)/libgnu_a-signbitf.Tpo -c -o libgnu_a-signbitf.obj `if test -f 'signbitf.c'; then $(CYGPATH_W) 'signbitf.c'; else $(CYGPATH_W) '$(srcdir)/signbitf.c'; fi`
7491 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-signbitf.Tpo $(DEPDIR)/libgnu_a-signbitf.Po
7492 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='signbitf.c' object='libgnu_a-signbitf.obj' libtool=no @AMDEPBACKSLASH@
7493 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7494 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-signbitf.obj `if test -f 'signbitf.c'; then $(CYGPATH_W) 'signbitf.c'; else $(CYGPATH_W) '$(srcdir)/signbitf.c'; fi`
7495 +
7496 +libgnu_a-signbitd.o: signbitd.c
7497 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-signbitd.o -MD -MP -MF $(DEPDIR)/libgnu_a-signbitd.Tpo -c -o libgnu_a-signbitd.o `test -f 'signbitd.c' || echo '$(srcdir)/'`signbitd.c
7498 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-signbitd.Tpo $(DEPDIR)/libgnu_a-signbitd.Po
7499 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='signbitd.c' object='libgnu_a-signbitd.o' libtool=no @AMDEPBACKSLASH@
7500 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7501 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-signbitd.o `test -f 'signbitd.c' || echo '$(srcdir)/'`signbitd.c
7502 +
7503 +libgnu_a-signbitd.obj: signbitd.c
7504 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-signbitd.obj -MD -MP -MF $(DEPDIR)/libgnu_a-signbitd.Tpo -c -o libgnu_a-signbitd.obj `if test -f 'signbitd.c'; then $(CYGPATH_W) 'signbitd.c'; else $(CYGPATH_W) '$(srcdir)/signbitd.c'; fi`
7505 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-signbitd.Tpo $(DEPDIR)/libgnu_a-signbitd.Po
7506 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='signbitd.c' object='libgnu_a-signbitd.obj' libtool=no @AMDEPBACKSLASH@
7507 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7508 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-signbitd.obj `if test -f 'signbitd.c'; then $(CYGPATH_W) 'signbitd.c'; else $(CYGPATH_W) '$(srcdir)/signbitd.c'; fi`
7509 +
7510 +libgnu_a-signbitl.o: signbitl.c
7511 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-signbitl.o -MD -MP -MF $(DEPDIR)/libgnu_a-signbitl.Tpo -c -o libgnu_a-signbitl.o `test -f 'signbitl.c' || echo '$(srcdir)/'`signbitl.c
7512 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-signbitl.Tpo $(DEPDIR)/libgnu_a-signbitl.Po
7513 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='signbitl.c' object='libgnu_a-signbitl.o' libtool=no @AMDEPBACKSLASH@
7514 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7515 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-signbitl.o `test -f 'signbitl.c' || echo '$(srcdir)/'`signbitl.c
7516 +
7517 +libgnu_a-signbitl.obj: signbitl.c
7518 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-signbitl.obj -MD -MP -MF $(DEPDIR)/libgnu_a-signbitl.Tpo -c -o libgnu_a-signbitl.obj `if test -f 'signbitl.c'; then $(CYGPATH_W) 'signbitl.c'; else $(CYGPATH_W) '$(srcdir)/signbitl.c'; fi`
7519 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-signbitl.Tpo $(DEPDIR)/libgnu_a-signbitl.Po
7520 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='signbitl.c' object='libgnu_a-signbitl.obj' libtool=no @AMDEPBACKSLASH@
7521 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7522 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-signbitl.obj `if test -f 'signbitl.c'; then $(CYGPATH_W) 'signbitl.c'; else $(CYGPATH_W) '$(srcdir)/signbitl.c'; fi`
7523 +
7524 +libgnu_a-stat.o: stat.c
7525 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stat.o -MD -MP -MF $(DEPDIR)/libgnu_a-stat.Tpo -c -o libgnu_a-stat.o `test -f 'stat.c' || echo '$(srcdir)/'`stat.c
7526 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stat.Tpo $(DEPDIR)/libgnu_a-stat.Po
7527 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat.c' object='libgnu_a-stat.o' libtool=no @AMDEPBACKSLASH@
7528 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7529 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stat.o `test -f 'stat.c' || echo '$(srcdir)/'`stat.c
7530 +
7531 +libgnu_a-stat.obj: stat.c
7532 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-stat.Tpo -c -o libgnu_a-stat.obj `if test -f 'stat.c'; then $(CYGPATH_W) 'stat.c'; else $(CYGPATH_W) '$(srcdir)/stat.c'; fi`
7533 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stat.Tpo $(DEPDIR)/libgnu_a-stat.Po
7534 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat.c' object='libgnu_a-stat.obj' libtool=no @AMDEPBACKSLASH@
7535 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7536 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stat.obj `if test -f 'stat.c'; then $(CYGPATH_W) 'stat.c'; else $(CYGPATH_W) '$(srcdir)/stat.c'; fi`
7537 +
7538 +libgnu_a-stat-time.o: stat-time.c
7539 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stat-time.o -MD -MP -MF $(DEPDIR)/libgnu_a-stat-time.Tpo -c -o libgnu_a-stat-time.o `test -f 'stat-time.c' || echo '$(srcdir)/'`stat-time.c
7540 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stat-time.Tpo $(DEPDIR)/libgnu_a-stat-time.Po
7541 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat-time.c' object='libgnu_a-stat-time.o' libtool=no @AMDEPBACKSLASH@
7542 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7543 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stat-time.o `test -f 'stat-time.c' || echo '$(srcdir)/'`stat-time.c
7544 +
7545 +libgnu_a-stat-time.obj: stat-time.c
7546 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stat-time.obj -MD -MP -MF $(DEPDIR)/libgnu_a-stat-time.Tpo -c -o libgnu_a-stat-time.obj `if test -f 'stat-time.c'; then $(CYGPATH_W) 'stat-time.c'; else $(CYGPATH_W) '$(srcdir)/stat-time.c'; fi`
7547 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stat-time.Tpo $(DEPDIR)/libgnu_a-stat-time.Po
7548 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat-time.c' object='libgnu_a-stat-time.obj' libtool=no @AMDEPBACKSLASH@
7549 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7550 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stat-time.obj `if test -f 'stat-time.c'; then $(CYGPATH_W) 'stat-time.c'; else $(CYGPATH_W) '$(srcdir)/stat-time.c'; fi`
7551 +
7552 +libgnu_a-statat.o: statat.c
7553 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-statat.o -MD -MP -MF $(DEPDIR)/libgnu_a-statat.Tpo -c -o libgnu_a-statat.o `test -f 'statat.c' || echo '$(srcdir)/'`statat.c
7554 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-statat.Tpo $(DEPDIR)/libgnu_a-statat.Po
7555 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='statat.c' object='libgnu_a-statat.o' libtool=no @AMDEPBACKSLASH@
7556 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7557 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-statat.o `test -f 'statat.c' || echo '$(srcdir)/'`statat.c
7558 +
7559 +libgnu_a-statat.obj: statat.c
7560 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-statat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-statat.Tpo -c -o libgnu_a-statat.obj `if test -f 'statat.c'; then $(CYGPATH_W) 'statat.c'; else $(CYGPATH_W) '$(srcdir)/statat.c'; fi`
7561 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-statat.Tpo $(DEPDIR)/libgnu_a-statat.Po
7562 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='statat.c' object='libgnu_a-statat.obj' libtool=no @AMDEPBACKSLASH@
7563 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7564 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-statat.obj `if test -f 'statat.c'; then $(CYGPATH_W) 'statat.c'; else $(CYGPATH_W) '$(srcdir)/statat.c'; fi`
7565 +
7566 +libgnu_a-stdio-read.o: stdio-read.c
7567 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stdio-read.o -MD -MP -MF $(DEPDIR)/libgnu_a-stdio-read.Tpo -c -o libgnu_a-stdio-read.o `test -f 'stdio-read.c' || echo '$(srcdir)/'`stdio-read.c
7568 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stdio-read.Tpo $(DEPDIR)/libgnu_a-stdio-read.Po
7569 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stdio-read.c' object='libgnu_a-stdio-read.o' libtool=no @AMDEPBACKSLASH@
7570 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7571 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stdio-read.o `test -f 'stdio-read.c' || echo '$(srcdir)/'`stdio-read.c
7572 +
7573 +libgnu_a-stdio-read.obj: stdio-read.c
7574 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stdio-read.obj -MD -MP -MF $(DEPDIR)/libgnu_a-stdio-read.Tpo -c -o libgnu_a-stdio-read.obj `if test -f 'stdio-read.c'; then $(CYGPATH_W) 'stdio-read.c'; else $(CYGPATH_W) '$(srcdir)/stdio-read.c'; fi`
7575 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stdio-read.Tpo $(DEPDIR)/libgnu_a-stdio-read.Po
7576 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stdio-read.c' object='libgnu_a-stdio-read.obj' libtool=no @AMDEPBACKSLASH@
7577 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7578 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stdio-read.obj `if test -f 'stdio-read.c'; then $(CYGPATH_W) 'stdio-read.c'; else $(CYGPATH_W) '$(srcdir)/stdio-read.c'; fi`
7579 +
7580 +libgnu_a-stdio-write.o: stdio-write.c
7581 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stdio-write.o -MD -MP -MF $(DEPDIR)/libgnu_a-stdio-write.Tpo -c -o libgnu_a-stdio-write.o `test -f 'stdio-write.c' || echo '$(srcdir)/'`stdio-write.c
7582 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stdio-write.Tpo $(DEPDIR)/libgnu_a-stdio-write.Po
7583 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stdio-write.c' object='libgnu_a-stdio-write.o' libtool=no @AMDEPBACKSLASH@
7584 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7585 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stdio-write.o `test -f 'stdio-write.c' || echo '$(srcdir)/'`stdio-write.c
7586 +
7587 +libgnu_a-stdio-write.obj: stdio-write.c
7588 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stdio-write.obj -MD -MP -MF $(DEPDIR)/libgnu_a-stdio-write.Tpo -c -o libgnu_a-stdio-write.obj `if test -f 'stdio-write.c'; then $(CYGPATH_W) 'stdio-write.c'; else $(CYGPATH_W) '$(srcdir)/stdio-write.c'; fi`
7589 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stdio-write.Tpo $(DEPDIR)/libgnu_a-stdio-write.Po
7590 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stdio-write.c' object='libgnu_a-stdio-write.obj' libtool=no @AMDEPBACKSLASH@
7591 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7592 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stdio-write.obj `if test -f 'stdio-write.c'; then $(CYGPATH_W) 'stdio-write.c'; else $(CYGPATH_W) '$(srcdir)/stdio-write.c'; fi`
7593 +
7594 +libgnu_a-strcasecmp.o: strcasecmp.c
7595 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strcasecmp.o -MD -MP -MF $(DEPDIR)/libgnu_a-strcasecmp.Tpo -c -o libgnu_a-strcasecmp.o `test -f 'strcasecmp.c' || echo '$(srcdir)/'`strcasecmp.c
7596 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strcasecmp.Tpo $(DEPDIR)/libgnu_a-strcasecmp.Po
7597 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strcasecmp.c' object='libgnu_a-strcasecmp.o' libtool=no @AMDEPBACKSLASH@
7598 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7599 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strcasecmp.o `test -f 'strcasecmp.c' || echo '$(srcdir)/'`strcasecmp.c
7600 +
7601 +libgnu_a-strcasecmp.obj: strcasecmp.c
7602 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strcasecmp.obj -MD -MP -MF $(DEPDIR)/libgnu_a-strcasecmp.Tpo -c -o libgnu_a-strcasecmp.obj `if test -f 'strcasecmp.c'; then $(CYGPATH_W) 'strcasecmp.c'; else $(CYGPATH_W) '$(srcdir)/strcasecmp.c'; fi`
7603 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strcasecmp.Tpo $(DEPDIR)/libgnu_a-strcasecmp.Po
7604 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strcasecmp.c' object='libgnu_a-strcasecmp.obj' libtool=no @AMDEPBACKSLASH@
7605 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7606 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strcasecmp.obj `if test -f 'strcasecmp.c'; then $(CYGPATH_W) 'strcasecmp.c'; else $(CYGPATH_W) '$(srcdir)/strcasecmp.c'; fi`
7607 +
7608 +libgnu_a-strncasecmp.o: strncasecmp.c
7609 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strncasecmp.o -MD -MP -MF $(DEPDIR)/libgnu_a-strncasecmp.Tpo -c -o libgnu_a-strncasecmp.o `test -f 'strncasecmp.c' || echo '$(srcdir)/'`strncasecmp.c
7610 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strncasecmp.Tpo $(DEPDIR)/libgnu_a-strncasecmp.Po
7611 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strncasecmp.c' object='libgnu_a-strncasecmp.o' libtool=no @AMDEPBACKSLASH@
7612 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7613 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strncasecmp.o `test -f 'strncasecmp.c' || echo '$(srcdir)/'`strncasecmp.c
7614 +
7615 +libgnu_a-strncasecmp.obj: strncasecmp.c
7616 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strncasecmp.obj -MD -MP -MF $(DEPDIR)/libgnu_a-strncasecmp.Tpo -c -o libgnu_a-strncasecmp.obj `if test -f 'strncasecmp.c'; then $(CYGPATH_W) 'strncasecmp.c'; else $(CYGPATH_W) '$(srcdir)/strncasecmp.c'; fi`
7617 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strncasecmp.Tpo $(DEPDIR)/libgnu_a-strncasecmp.Po
7618 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strncasecmp.c' object='libgnu_a-strncasecmp.obj' libtool=no @AMDEPBACKSLASH@
7619 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7620 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strncasecmp.obj `if test -f 'strncasecmp.c'; then $(CYGPATH_W) 'strncasecmp.c'; else $(CYGPATH_W) '$(srcdir)/strncasecmp.c'; fi`
7621 +
7622 +libgnu_a-strdup.o: strdup.c
7623 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strdup.o -MD -MP -MF $(DEPDIR)/libgnu_a-strdup.Tpo -c -o libgnu_a-strdup.o `test -f 'strdup.c' || echo '$(srcdir)/'`strdup.c
7624 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strdup.Tpo $(DEPDIR)/libgnu_a-strdup.Po
7625 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strdup.c' object='libgnu_a-strdup.o' libtool=no @AMDEPBACKSLASH@
7626 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7627 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strdup.o `test -f 'strdup.c' || echo '$(srcdir)/'`strdup.c
7628 +
7629 +libgnu_a-strdup.obj: strdup.c
7630 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strdup.obj -MD -MP -MF $(DEPDIR)/libgnu_a-strdup.Tpo -c -o libgnu_a-strdup.obj `if test -f 'strdup.c'; then $(CYGPATH_W) 'strdup.c'; else $(CYGPATH_W) '$(srcdir)/strdup.c'; fi`
7631 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strdup.Tpo $(DEPDIR)/libgnu_a-strdup.Po
7632 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strdup.c' object='libgnu_a-strdup.obj' libtool=no @AMDEPBACKSLASH@
7633 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7634 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strdup.obj `if test -f 'strdup.c'; then $(CYGPATH_W) 'strdup.c'; else $(CYGPATH_W) '$(srcdir)/strdup.c'; fi`
7635 +
7636 +libgnu_a-strerror.o: strerror.c
7637 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strerror.o -MD -MP -MF $(DEPDIR)/libgnu_a-strerror.Tpo -c -o libgnu_a-strerror.o `test -f 'strerror.c' || echo '$(srcdir)/'`strerror.c
7638 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strerror.Tpo $(DEPDIR)/libgnu_a-strerror.Po
7639 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strerror.c' object='libgnu_a-strerror.o' libtool=no @AMDEPBACKSLASH@
7640 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7641 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strerror.o `test -f 'strerror.c' || echo '$(srcdir)/'`strerror.c
7642 +
7643 +libgnu_a-strerror.obj: strerror.c
7644 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strerror.obj -MD -MP -MF $(DEPDIR)/libgnu_a-strerror.Tpo -c -o libgnu_a-strerror.obj `if test -f 'strerror.c'; then $(CYGPATH_W) 'strerror.c'; else $(CYGPATH_W) '$(srcdir)/strerror.c'; fi`
7645 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strerror.Tpo $(DEPDIR)/libgnu_a-strerror.Po
7646 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strerror.c' object='libgnu_a-strerror.obj' libtool=no @AMDEPBACKSLASH@
7647 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7648 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strerror.obj `if test -f 'strerror.c'; then $(CYGPATH_W) 'strerror.c'; else $(CYGPATH_W) '$(srcdir)/strerror.c'; fi`
7649 +
7650 +libgnu_a-strerror-override.o: strerror-override.c
7651 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strerror-override.o -MD -MP -MF $(DEPDIR)/libgnu_a-strerror-override.Tpo -c -o libgnu_a-strerror-override.o `test -f 'strerror-override.c' || echo '$(srcdir)/'`strerror-override.c
7652 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strerror-override.Tpo $(DEPDIR)/libgnu_a-strerror-override.Po
7653 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strerror-override.c' object='libgnu_a-strerror-override.o' libtool=no @AMDEPBACKSLASH@
7654 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7655 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strerror-override.o `test -f 'strerror-override.c' || echo '$(srcdir)/'`strerror-override.c
7656 +
7657 +libgnu_a-strerror-override.obj: strerror-override.c
7658 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strerror-override.obj -MD -MP -MF $(DEPDIR)/libgnu_a-strerror-override.Tpo -c -o libgnu_a-strerror-override.obj `if test -f 'strerror-override.c'; then $(CYGPATH_W) 'strerror-override.c'; else $(CYGPATH_W) '$(srcdir)/strerror-override.c'; fi`
7659 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strerror-override.Tpo $(DEPDIR)/libgnu_a-strerror-override.Po
7660 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strerror-override.c' object='libgnu_a-strerror-override.obj' libtool=no @AMDEPBACKSLASH@
7661 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7662 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strerror-override.obj `if test -f 'strerror-override.c'; then $(CYGPATH_W) 'strerror-override.c'; else $(CYGPATH_W) '$(srcdir)/strerror-override.c'; fi`
7663 +
7664 +libgnu_a-strncat.o: strncat.c
7665 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strncat.o -MD -MP -MF $(DEPDIR)/libgnu_a-strncat.Tpo -c -o libgnu_a-strncat.o `test -f 'strncat.c' || echo '$(srcdir)/'`strncat.c
7666 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strncat.Tpo $(DEPDIR)/libgnu_a-strncat.Po
7667 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strncat.c' object='libgnu_a-strncat.o' libtool=no @AMDEPBACKSLASH@
7668 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7669 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strncat.o `test -f 'strncat.c' || echo '$(srcdir)/'`strncat.c
7670 +
7671 +libgnu_a-strncat.obj: strncat.c
7672 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strncat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-strncat.Tpo -c -o libgnu_a-strncat.obj `if test -f 'strncat.c'; then $(CYGPATH_W) 'strncat.c'; else $(CYGPATH_W) '$(srcdir)/strncat.c'; fi`
7673 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strncat.Tpo $(DEPDIR)/libgnu_a-strncat.Po
7674 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strncat.c' object='libgnu_a-strncat.obj' libtool=no @AMDEPBACKSLASH@
7675 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7676 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strncat.obj `if test -f 'strncat.c'; then $(CYGPATH_W) 'strncat.c'; else $(CYGPATH_W) '$(srcdir)/strncat.c'; fi`
7677 +
7678 +libgnu_a-symlink.o: symlink.c
7679 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-symlink.o -MD -MP -MF $(DEPDIR)/libgnu_a-symlink.Tpo -c -o libgnu_a-symlink.o `test -f 'symlink.c' || echo '$(srcdir)/'`symlink.c
7680 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-symlink.Tpo $(DEPDIR)/libgnu_a-symlink.Po
7681 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='symlink.c' object='libgnu_a-symlink.o' libtool=no @AMDEPBACKSLASH@
7682 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7683 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-symlink.o `test -f 'symlink.c' || echo '$(srcdir)/'`symlink.c
7684 +
7685 +libgnu_a-symlink.obj: symlink.c
7686 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-symlink.obj -MD -MP -MF $(DEPDIR)/libgnu_a-symlink.Tpo -c -o libgnu_a-symlink.obj `if test -f 'symlink.c'; then $(CYGPATH_W) 'symlink.c'; else $(CYGPATH_W) '$(srcdir)/symlink.c'; fi`
7687 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-symlink.Tpo $(DEPDIR)/libgnu_a-symlink.Po
7688 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='symlink.c' object='libgnu_a-symlink.obj' libtool=no @AMDEPBACKSLASH@
7689 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7690 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-symlink.obj `if test -f 'symlink.c'; then $(CYGPATH_W) 'symlink.c'; else $(CYGPATH_W) '$(srcdir)/symlink.c'; fi`
7691 +
7692 +libgnu_a-symlinkat.o: symlinkat.c
7693 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-symlinkat.o -MD -MP -MF $(DEPDIR)/libgnu_a-symlinkat.Tpo -c -o libgnu_a-symlinkat.o `test -f 'symlinkat.c' || echo '$(srcdir)/'`symlinkat.c
7694 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-symlinkat.Tpo $(DEPDIR)/libgnu_a-symlinkat.Po
7695 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='symlinkat.c' object='libgnu_a-symlinkat.o' libtool=no @AMDEPBACKSLASH@
7696 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7697 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-symlinkat.o `test -f 'symlinkat.c' || echo '$(srcdir)/'`symlinkat.c
7698 +
7699 +libgnu_a-symlinkat.obj: symlinkat.c
7700 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-symlinkat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-symlinkat.Tpo -c -o libgnu_a-symlinkat.obj `if test -f 'symlinkat.c'; then $(CYGPATH_W) 'symlinkat.c'; else $(CYGPATH_W) '$(srcdir)/symlinkat.c'; fi`
7701 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-symlinkat.Tpo $(DEPDIR)/libgnu_a-symlinkat.Po
7702 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='symlinkat.c' object='libgnu_a-symlinkat.obj' libtool=no @AMDEPBACKSLASH@
7703 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7704 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-symlinkat.obj `if test -f 'symlinkat.c'; then $(CYGPATH_W) 'symlinkat.c'; else $(CYGPATH_W) '$(srcdir)/symlinkat.c'; fi`
7705 +
7706 +libgnu_a-timespec.o: timespec.c
7707 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-timespec.o -MD -MP -MF $(DEPDIR)/libgnu_a-timespec.Tpo -c -o libgnu_a-timespec.o `test -f 'timespec.c' || echo '$(srcdir)/'`timespec.c
7708 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-timespec.Tpo $(DEPDIR)/libgnu_a-timespec.Po
7709 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timespec.c' object='libgnu_a-timespec.o' libtool=no @AMDEPBACKSLASH@
7710 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7711 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-timespec.o `test -f 'timespec.c' || echo '$(srcdir)/'`timespec.c
7712 +
7713 +libgnu_a-timespec.obj: timespec.c
7714 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-timespec.obj -MD -MP -MF $(DEPDIR)/libgnu_a-timespec.Tpo -c -o libgnu_a-timespec.obj `if test -f 'timespec.c'; then $(CYGPATH_W) 'timespec.c'; else $(CYGPATH_W) '$(srcdir)/timespec.c'; fi`
7715 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-timespec.Tpo $(DEPDIR)/libgnu_a-timespec.Po
7716 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='timespec.c' object='libgnu_a-timespec.obj' libtool=no @AMDEPBACKSLASH@
7717 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7718 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-timespec.obj `if test -f 'timespec.c'; then $(CYGPATH_W) 'timespec.c'; else $(CYGPATH_W) '$(srcdir)/timespec.c'; fi`
7719 +
7720 +libgnu_a-unistd.o: unistd.c
7721 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-unistd.o -MD -MP -MF $(DEPDIR)/libgnu_a-unistd.Tpo -c -o libgnu_a-unistd.o `test -f 'unistd.c' || echo '$(srcdir)/'`unistd.c
7722 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-unistd.Tpo $(DEPDIR)/libgnu_a-unistd.Po
7723 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unistd.c' object='libgnu_a-unistd.o' libtool=no @AMDEPBACKSLASH@
7724 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7725 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-unistd.o `test -f 'unistd.c' || echo '$(srcdir)/'`unistd.c
7726 +
7727 +libgnu_a-unistd.obj: unistd.c
7728 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-unistd.obj -MD -MP -MF $(DEPDIR)/libgnu_a-unistd.Tpo -c -o libgnu_a-unistd.obj `if test -f 'unistd.c'; then $(CYGPATH_W) 'unistd.c'; else $(CYGPATH_W) '$(srcdir)/unistd.c'; fi`
7729 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-unistd.Tpo $(DEPDIR)/libgnu_a-unistd.Po
7730 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unistd.c' object='libgnu_a-unistd.obj' libtool=no @AMDEPBACKSLASH@
7731 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7732 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-unistd.obj `if test -f 'unistd.c'; then $(CYGPATH_W) 'unistd.c'; else $(CYGPATH_W) '$(srcdir)/unistd.c'; fi`
7733 +
7734 +libgnu_a-dup-safer.o: dup-safer.c
7735 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dup-safer.o -MD -MP -MF $(DEPDIR)/libgnu_a-dup-safer.Tpo -c -o libgnu_a-dup-safer.o `test -f 'dup-safer.c' || echo '$(srcdir)/'`dup-safer.c
7736 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dup-safer.Tpo $(DEPDIR)/libgnu_a-dup-safer.Po
7737 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dup-safer.c' object='libgnu_a-dup-safer.o' libtool=no @AMDEPBACKSLASH@
7738 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7739 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dup-safer.o `test -f 'dup-safer.c' || echo '$(srcdir)/'`dup-safer.c
7740 +
7741 +libgnu_a-dup-safer.obj: dup-safer.c
7742 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-dup-safer.obj -MD -MP -MF $(DEPDIR)/libgnu_a-dup-safer.Tpo -c -o libgnu_a-dup-safer.obj `if test -f 'dup-safer.c'; then $(CYGPATH_W) 'dup-safer.c'; else $(CYGPATH_W) '$(srcdir)/dup-safer.c'; fi`
7743 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-dup-safer.Tpo $(DEPDIR)/libgnu_a-dup-safer.Po
7744 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='dup-safer.c' object='libgnu_a-dup-safer.obj' libtool=no @AMDEPBACKSLASH@
7745 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7746 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-dup-safer.obj `if test -f 'dup-safer.c'; then $(CYGPATH_W) 'dup-safer.c'; else $(CYGPATH_W) '$(srcdir)/dup-safer.c'; fi`
7747 +
7748 +libgnu_a-fd-safer.o: fd-safer.c
7749 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fd-safer.o -MD -MP -MF $(DEPDIR)/libgnu_a-fd-safer.Tpo -c -o libgnu_a-fd-safer.o `test -f 'fd-safer.c' || echo '$(srcdir)/'`fd-safer.c
7750 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fd-safer.Tpo $(DEPDIR)/libgnu_a-fd-safer.Po
7751 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fd-safer.c' object='libgnu_a-fd-safer.o' libtool=no @AMDEPBACKSLASH@
7752 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7753 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fd-safer.o `test -f 'fd-safer.c' || echo '$(srcdir)/'`fd-safer.c
7754 +
7755 +libgnu_a-fd-safer.obj: fd-safer.c
7756 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-fd-safer.obj -MD -MP -MF $(DEPDIR)/libgnu_a-fd-safer.Tpo -c -o libgnu_a-fd-safer.obj `if test -f 'fd-safer.c'; then $(CYGPATH_W) 'fd-safer.c'; else $(CYGPATH_W) '$(srcdir)/fd-safer.c'; fi`
7757 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-fd-safer.Tpo $(DEPDIR)/libgnu_a-fd-safer.Po
7758 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='fd-safer.c' object='libgnu_a-fd-safer.obj' libtool=no @AMDEPBACKSLASH@
7759 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7760 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-fd-safer.obj `if test -f 'fd-safer.c'; then $(CYGPATH_W) 'fd-safer.c'; else $(CYGPATH_W) '$(srcdir)/fd-safer.c'; fi`
7761 +
7762 +libgnu_a-pipe-safer.o: pipe-safer.c
7763 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-pipe-safer.o -MD -MP -MF $(DEPDIR)/libgnu_a-pipe-safer.Tpo -c -o libgnu_a-pipe-safer.o `test -f 'pipe-safer.c' || echo '$(srcdir)/'`pipe-safer.c
7764 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-pipe-safer.Tpo $(DEPDIR)/libgnu_a-pipe-safer.Po
7765 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pipe-safer.c' object='libgnu_a-pipe-safer.o' libtool=no @AMDEPBACKSLASH@
7766 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7767 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-pipe-safer.o `test -f 'pipe-safer.c' || echo '$(srcdir)/'`pipe-safer.c
7768 +
7769 +libgnu_a-pipe-safer.obj: pipe-safer.c
7770 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-pipe-safer.obj -MD -MP -MF $(DEPDIR)/libgnu_a-pipe-safer.Tpo -c -o libgnu_a-pipe-safer.obj `if test -f 'pipe-safer.c'; then $(CYGPATH_W) 'pipe-safer.c'; else $(CYGPATH_W) '$(srcdir)/pipe-safer.c'; fi`
7771 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-pipe-safer.Tpo $(DEPDIR)/libgnu_a-pipe-safer.Po
7772 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='pipe-safer.c' object='libgnu_a-pipe-safer.obj' libtool=no @AMDEPBACKSLASH@
7773 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7774 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-pipe-safer.obj `if test -f 'pipe-safer.c'; then $(CYGPATH_W) 'pipe-safer.c'; else $(CYGPATH_W) '$(srcdir)/pipe-safer.c'; fi`
7775 +
7776 +libgnu_a-unlink.o: unlink.c
7777 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-unlink.o -MD -MP -MF $(DEPDIR)/libgnu_a-unlink.Tpo -c -o libgnu_a-unlink.o `test -f 'unlink.c' || echo '$(srcdir)/'`unlink.c
7778 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-unlink.Tpo $(DEPDIR)/libgnu_a-unlink.Po
7779 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unlink.c' object='libgnu_a-unlink.o' libtool=no @AMDEPBACKSLASH@
7780 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7781 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-unlink.o `test -f 'unlink.c' || echo '$(srcdir)/'`unlink.c
7782 +
7783 +libgnu_a-unlink.obj: unlink.c
7784 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-unlink.obj -MD -MP -MF $(DEPDIR)/libgnu_a-unlink.Tpo -c -o libgnu_a-unlink.obj `if test -f 'unlink.c'; then $(CYGPATH_W) 'unlink.c'; else $(CYGPATH_W) '$(srcdir)/unlink.c'; fi`
7785 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-unlink.Tpo $(DEPDIR)/libgnu_a-unlink.Po
7786 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unlink.c' object='libgnu_a-unlink.obj' libtool=no @AMDEPBACKSLASH@
7787 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7788 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-unlink.obj `if test -f 'unlink.c'; then $(CYGPATH_W) 'unlink.c'; else $(CYGPATH_W) '$(srcdir)/unlink.c'; fi`
7789 +
7790 +libgnu_a-unlinkat.o: unlinkat.c
7791 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-unlinkat.o -MD -MP -MF $(DEPDIR)/libgnu_a-unlinkat.Tpo -c -o libgnu_a-unlinkat.o `test -f 'unlinkat.c' || echo '$(srcdir)/'`unlinkat.c
7792 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-unlinkat.Tpo $(DEPDIR)/libgnu_a-unlinkat.Po
7793 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unlinkat.c' object='libgnu_a-unlinkat.o' libtool=no @AMDEPBACKSLASH@
7794 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7795 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-unlinkat.o `test -f 'unlinkat.c' || echo '$(srcdir)/'`unlinkat.c
7796 +
7797 +libgnu_a-unlinkat.obj: unlinkat.c
7798 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-unlinkat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-unlinkat.Tpo -c -o libgnu_a-unlinkat.obj `if test -f 'unlinkat.c'; then $(CYGPATH_W) 'unlinkat.c'; else $(CYGPATH_W) '$(srcdir)/unlinkat.c'; fi`
7799 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-unlinkat.Tpo $(DEPDIR)/libgnu_a-unlinkat.Po
7800 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='unlinkat.c' object='libgnu_a-unlinkat.obj' libtool=no @AMDEPBACKSLASH@
7801 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7802 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-unlinkat.obj `if test -f 'unlinkat.c'; then $(CYGPATH_W) 'unlinkat.c'; else $(CYGPATH_W) '$(srcdir)/unlinkat.c'; fi`
7803 +
7804 +libgnu_a-utime.o: utime.c
7805 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-utime.o -MD -MP -MF $(DEPDIR)/libgnu_a-utime.Tpo -c -o libgnu_a-utime.o `test -f 'utime.c' || echo '$(srcdir)/'`utime.c
7806 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-utime.Tpo $(DEPDIR)/libgnu_a-utime.Po
7807 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utime.c' object='libgnu_a-utime.o' libtool=no @AMDEPBACKSLASH@
7808 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7809 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-utime.o `test -f 'utime.c' || echo '$(srcdir)/'`utime.c
7810 +
7811 +libgnu_a-utime.obj: utime.c
7812 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-utime.obj -MD -MP -MF $(DEPDIR)/libgnu_a-utime.Tpo -c -o libgnu_a-utime.obj `if test -f 'utime.c'; then $(CYGPATH_W) 'utime.c'; else $(CYGPATH_W) '$(srcdir)/utime.c'; fi`
7813 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-utime.Tpo $(DEPDIR)/libgnu_a-utime.Po
7814 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utime.c' object='libgnu_a-utime.obj' libtool=no @AMDEPBACKSLASH@
7815 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7816 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-utime.obj `if test -f 'utime.c'; then $(CYGPATH_W) 'utime.c'; else $(CYGPATH_W) '$(srcdir)/utime.c'; fi`
7817 +
7818 +libgnu_a-utimens.o: utimens.c
7819 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-utimens.o -MD -MP -MF $(DEPDIR)/libgnu_a-utimens.Tpo -c -o libgnu_a-utimens.o `test -f 'utimens.c' || echo '$(srcdir)/'`utimens.c
7820 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-utimens.Tpo $(DEPDIR)/libgnu_a-utimens.Po
7821 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utimens.c' object='libgnu_a-utimens.o' libtool=no @AMDEPBACKSLASH@
7822 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7823 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-utimens.o `test -f 'utimens.c' || echo '$(srcdir)/'`utimens.c
7824 +
7825 +libgnu_a-utimens.obj: utimens.c
7826 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-utimens.obj -MD -MP -MF $(DEPDIR)/libgnu_a-utimens.Tpo -c -o libgnu_a-utimens.obj `if test -f 'utimens.c'; then $(CYGPATH_W) 'utimens.c'; else $(CYGPATH_W) '$(srcdir)/utimens.c'; fi`
7827 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-utimens.Tpo $(DEPDIR)/libgnu_a-utimens.Po
7828 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utimens.c' object='libgnu_a-utimens.obj' libtool=no @AMDEPBACKSLASH@
7829 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7830 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-utimens.obj `if test -f 'utimens.c'; then $(CYGPATH_W) 'utimens.c'; else $(CYGPATH_W) '$(srcdir)/utimens.c'; fi`
7831 +
7832 +libgnu_a-utimensat.o: utimensat.c
7833 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-utimensat.o -MD -MP -MF $(DEPDIR)/libgnu_a-utimensat.Tpo -c -o libgnu_a-utimensat.o `test -f 'utimensat.c' || echo '$(srcdir)/'`utimensat.c
7834 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-utimensat.Tpo $(DEPDIR)/libgnu_a-utimensat.Po
7835 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utimensat.c' object='libgnu_a-utimensat.o' libtool=no @AMDEPBACKSLASH@
7836 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7837 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-utimensat.o `test -f 'utimensat.c' || echo '$(srcdir)/'`utimensat.c
7838 +
7839 +libgnu_a-utimensat.obj: utimensat.c
7840 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-utimensat.obj -MD -MP -MF $(DEPDIR)/libgnu_a-utimensat.Tpo -c -o libgnu_a-utimensat.obj `if test -f 'utimensat.c'; then $(CYGPATH_W) 'utimensat.c'; else $(CYGPATH_W) '$(srcdir)/utimensat.c'; fi`
7841 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-utimensat.Tpo $(DEPDIR)/libgnu_a-utimensat.Po
7842 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='utimensat.c' object='libgnu_a-utimensat.obj' libtool=no @AMDEPBACKSLASH@
7843 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7844 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-utimensat.obj `if test -f 'utimensat.c'; then $(CYGPATH_W) 'utimensat.c'; else $(CYGPATH_W) '$(srcdir)/utimensat.c'; fi`
7845 +
7846 +libgnu_a-xmalloc.o: xmalloc.c
7847 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-xmalloc.o -MD -MP -MF $(DEPDIR)/libgnu_a-xmalloc.Tpo -c -o libgnu_a-xmalloc.o `test -f 'xmalloc.c' || echo '$(srcdir)/'`xmalloc.c
7848 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-xmalloc.Tpo $(DEPDIR)/libgnu_a-xmalloc.Po
7849 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xmalloc.c' object='libgnu_a-xmalloc.o' libtool=no @AMDEPBACKSLASH@
7850 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7851 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-xmalloc.o `test -f 'xmalloc.c' || echo '$(srcdir)/'`xmalloc.c
7852 +
7853 +libgnu_a-xmalloc.obj: xmalloc.c
7854 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-xmalloc.obj -MD -MP -MF $(DEPDIR)/libgnu_a-xmalloc.Tpo -c -o libgnu_a-xmalloc.obj `if test -f 'xmalloc.c'; then $(CYGPATH_W) 'xmalloc.c'; else $(CYGPATH_W) '$(srcdir)/xmalloc.c'; fi`
7855 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-xmalloc.Tpo $(DEPDIR)/libgnu_a-xmalloc.Po
7856 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xmalloc.c' object='libgnu_a-xmalloc.obj' libtool=no @AMDEPBACKSLASH@
7857 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7858 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-xmalloc.obj `if test -f 'xmalloc.c'; then $(CYGPATH_W) 'xmalloc.c'; else $(CYGPATH_W) '$(srcdir)/xmalloc.c'; fi`
7859 +
7860 +libgnu_a-xalloc-die.o: xalloc-die.c
7861 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-xalloc-die.o -MD -MP -MF $(DEPDIR)/libgnu_a-xalloc-die.Tpo -c -o libgnu_a-xalloc-die.o `test -f 'xalloc-die.c' || echo '$(srcdir)/'`xalloc-die.c
7862 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-xalloc-die.Tpo $(DEPDIR)/libgnu_a-xalloc-die.Po
7863 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xalloc-die.c' object='libgnu_a-xalloc-die.o' libtool=no @AMDEPBACKSLASH@
7864 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7865 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-xalloc-die.o `test -f 'xalloc-die.c' || echo '$(srcdir)/'`xalloc-die.c
7866 +
7867 +libgnu_a-xalloc-die.obj: xalloc-die.c
7868 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-xalloc-die.obj -MD -MP -MF $(DEPDIR)/libgnu_a-xalloc-die.Tpo -c -o libgnu_a-xalloc-die.obj `if test -f 'xalloc-die.c'; then $(CYGPATH_W) 'xalloc-die.c'; else $(CYGPATH_W) '$(srcdir)/xalloc-die.c'; fi`
7869 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-xalloc-die.Tpo $(DEPDIR)/libgnu_a-xalloc-die.Po
7870 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xalloc-die.c' object='libgnu_a-xalloc-die.obj' libtool=no @AMDEPBACKSLASH@
7871 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7872 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-xalloc-die.obj `if test -f 'xalloc-die.c'; then $(CYGPATH_W) 'xalloc-die.c'; else $(CYGPATH_W) '$(srcdir)/xalloc-die.c'; fi`
7873 +
7874 +libgnu_a-xsize.o: xsize.c
7875 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-xsize.o -MD -MP -MF $(DEPDIR)/libgnu_a-xsize.Tpo -c -o libgnu_a-xsize.o `test -f 'xsize.c' || echo '$(srcdir)/'`xsize.c
7876 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-xsize.Tpo $(DEPDIR)/libgnu_a-xsize.Po
7877 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xsize.c' object='libgnu_a-xsize.o' libtool=no @AMDEPBACKSLASH@
7878 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7879 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-xsize.o `test -f 'xsize.c' || echo '$(srcdir)/'`xsize.c
7880 +
7881 +libgnu_a-xsize.obj: xsize.c
7882 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-xsize.obj -MD -MP -MF $(DEPDIR)/libgnu_a-xsize.Tpo -c -o libgnu_a-xsize.obj `if test -f 'xsize.c'; then $(CYGPATH_W) 'xsize.c'; else $(CYGPATH_W) '$(srcdir)/xsize.c'; fi`
7883 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-xsize.Tpo $(DEPDIR)/libgnu_a-xsize.Po
7884 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='xsize.c' object='libgnu_a-xsize.obj' libtool=no @AMDEPBACKSLASH@
7885 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7886 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-xsize.obj `if test -f 'xsize.c'; then $(CYGPATH_W) 'xsize.c'; else $(CYGPATH_W) '$(srcdir)/xsize.c'; fi`
7887 +
7888 +libgnu_a-calloc.o: calloc.c
7889 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-calloc.o -MD -MP -MF $(DEPDIR)/libgnu_a-calloc.Tpo -c -o libgnu_a-calloc.o `test -f 'calloc.c' || echo '$(srcdir)/'`calloc.c
7890 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-calloc.Tpo $(DEPDIR)/libgnu_a-calloc.Po
7891 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='calloc.c' object='libgnu_a-calloc.o' libtool=no @AMDEPBACKSLASH@
7892 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7893 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-calloc.o `test -f 'calloc.c' || echo '$(srcdir)/'`calloc.c
7894 +
7895 +libgnu_a-calloc.obj: calloc.c
7896 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-calloc.obj -MD -MP -MF $(DEPDIR)/libgnu_a-calloc.Tpo -c -o libgnu_a-calloc.obj `if test -f 'calloc.c'; then $(CYGPATH_W) 'calloc.c'; else $(CYGPATH_W) '$(srcdir)/calloc.c'; fi`
7897 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-calloc.Tpo $(DEPDIR)/libgnu_a-calloc.Po
7898 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='calloc.c' object='libgnu_a-calloc.obj' libtool=no @AMDEPBACKSLASH@
7899 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7900 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-calloc.obj `if test -f 'calloc.c'; then $(CYGPATH_W) 'calloc.c'; else $(CYGPATH_W) '$(srcdir)/calloc.c'; fi`
7901 +
7902 +libgnu_a-at-func.o: at-func.c
7903 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-at-func.o -MD -MP -MF $(DEPDIR)/libgnu_a-at-func.Tpo -c -o libgnu_a-at-func.o `test -f 'at-func.c' || echo '$(srcdir)/'`at-func.c
7904 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-at-func.Tpo $(DEPDIR)/libgnu_a-at-func.Po
7905 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='at-func.c' object='libgnu_a-at-func.o' libtool=no @AMDEPBACKSLASH@
7906 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7907 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-at-func.o `test -f 'at-func.c' || echo '$(srcdir)/'`at-func.c
7908 +
7909 +libgnu_a-at-func.obj: at-func.c
7910 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-at-func.obj -MD -MP -MF $(DEPDIR)/libgnu_a-at-func.Tpo -c -o libgnu_a-at-func.obj `if test -f 'at-func.c'; then $(CYGPATH_W) 'at-func.c'; else $(CYGPATH_W) '$(srcdir)/at-func.c'; fi`
7911 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-at-func.Tpo $(DEPDIR)/libgnu_a-at-func.Po
7912 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='at-func.c' object='libgnu_a-at-func.obj' libtool=no @AMDEPBACKSLASH@
7913 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7914 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-at-func.obj `if test -f 'at-func.c'; then $(CYGPATH_W) 'at-func.c'; else $(CYGPATH_W) '$(srcdir)/at-func.c'; fi`
7915 +
7916 +libgnu_a-frexp.o: frexp.c
7917 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-frexp.o -MD -MP -MF $(DEPDIR)/libgnu_a-frexp.Tpo -c -o libgnu_a-frexp.o `test -f 'frexp.c' || echo '$(srcdir)/'`frexp.c
7918 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-frexp.Tpo $(DEPDIR)/libgnu_a-frexp.Po
7919 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='frexp.c' object='libgnu_a-frexp.o' libtool=no @AMDEPBACKSLASH@
7920 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7921 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-frexp.o `test -f 'frexp.c' || echo '$(srcdir)/'`frexp.c
7922 +
7923 +libgnu_a-frexp.obj: frexp.c
7924 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-frexp.obj -MD -MP -MF $(DEPDIR)/libgnu_a-frexp.Tpo -c -o libgnu_a-frexp.obj `if test -f 'frexp.c'; then $(CYGPATH_W) 'frexp.c'; else $(CYGPATH_W) '$(srcdir)/frexp.c'; fi`
7925 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-frexp.Tpo $(DEPDIR)/libgnu_a-frexp.Po
7926 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='frexp.c' object='libgnu_a-frexp.obj' libtool=no @AMDEPBACKSLASH@
7927 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7928 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-frexp.obj `if test -f 'frexp.c'; then $(CYGPATH_W) 'frexp.c'; else $(CYGPATH_W) '$(srcdir)/frexp.c'; fi`
7929 +
7930 +libgnu_a-frexpl.o: frexpl.c
7931 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-frexpl.o -MD -MP -MF $(DEPDIR)/libgnu_a-frexpl.Tpo -c -o libgnu_a-frexpl.o `test -f 'frexpl.c' || echo '$(srcdir)/'`frexpl.c
7932 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-frexpl.Tpo $(DEPDIR)/libgnu_a-frexpl.Po
7933 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='frexpl.c' object='libgnu_a-frexpl.o' libtool=no @AMDEPBACKSLASH@
7934 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7935 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-frexpl.o `test -f 'frexpl.c' || echo '$(srcdir)/'`frexpl.c
7936 +
7937 +libgnu_a-frexpl.obj: frexpl.c
7938 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-frexpl.obj -MD -MP -MF $(DEPDIR)/libgnu_a-frexpl.Tpo -c -o libgnu_a-frexpl.obj `if test -f 'frexpl.c'; then $(CYGPATH_W) 'frexpl.c'; else $(CYGPATH_W) '$(srcdir)/frexpl.c'; fi`
7939 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-frexpl.Tpo $(DEPDIR)/libgnu_a-frexpl.Po
7940 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='frexpl.c' object='libgnu_a-frexpl.obj' libtool=no @AMDEPBACKSLASH@
7941 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7942 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-frexpl.obj `if test -f 'frexpl.c'; then $(CYGPATH_W) 'frexpl.c'; else $(CYGPATH_W) '$(srcdir)/frexpl.c'; fi`
7943 +
7944 +libgnu_a-stat-w32.o: stat-w32.c
7945 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stat-w32.o -MD -MP -MF $(DEPDIR)/libgnu_a-stat-w32.Tpo -c -o libgnu_a-stat-w32.o `test -f 'stat-w32.c' || echo '$(srcdir)/'`stat-w32.c
7946 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stat-w32.Tpo $(DEPDIR)/libgnu_a-stat-w32.Po
7947 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat-w32.c' object='libgnu_a-stat-w32.o' libtool=no @AMDEPBACKSLASH@
7948 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7949 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stat-w32.o `test -f 'stat-w32.c' || echo '$(srcdir)/'`stat-w32.c
7950 +
7951 +libgnu_a-stat-w32.obj: stat-w32.c
7952 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-stat-w32.obj -MD -MP -MF $(DEPDIR)/libgnu_a-stat-w32.Tpo -c -o libgnu_a-stat-w32.obj `if test -f 'stat-w32.c'; then $(CYGPATH_W) 'stat-w32.c'; else $(CYGPATH_W) '$(srcdir)/stat-w32.c'; fi`
7953 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-stat-w32.Tpo $(DEPDIR)/libgnu_a-stat-w32.Po
7954 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='stat-w32.c' object='libgnu_a-stat-w32.obj' libtool=no @AMDEPBACKSLASH@
7955 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7956 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-stat-w32.obj `if test -f 'stat-w32.c'; then $(CYGPATH_W) 'stat-w32.c'; else $(CYGPATH_W) '$(srcdir)/stat-w32.c'; fi`
7957 +
7958 +libgnu_a-isnan.o: isnan.c
7959 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-isnan.o -MD -MP -MF $(DEPDIR)/libgnu_a-isnan.Tpo -c -o libgnu_a-isnan.o `test -f 'isnan.c' || echo '$(srcdir)/'`isnan.c
7960 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-isnan.Tpo $(DEPDIR)/libgnu_a-isnan.Po
7961 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='isnan.c' object='libgnu_a-isnan.o' libtool=no @AMDEPBACKSLASH@
7962 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7963 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-isnan.o `test -f 'isnan.c' || echo '$(srcdir)/'`isnan.c
7964 +
7965 +libgnu_a-isnan.obj: isnan.c
7966 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-isnan.obj -MD -MP -MF $(DEPDIR)/libgnu_a-isnan.Tpo -c -o libgnu_a-isnan.obj `if test -f 'isnan.c'; then $(CYGPATH_W) 'isnan.c'; else $(CYGPATH_W) '$(srcdir)/isnan.c'; fi`
7967 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-isnan.Tpo $(DEPDIR)/libgnu_a-isnan.Po
7968 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='isnan.c' object='libgnu_a-isnan.obj' libtool=no @AMDEPBACKSLASH@
7969 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7970 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-isnan.obj `if test -f 'isnan.c'; then $(CYGPATH_W) 'isnan.c'; else $(CYGPATH_W) '$(srcdir)/isnan.c'; fi`
7971 +
7972 +libgnu_a-isnand.o: isnand.c
7973 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-isnand.o -MD -MP -MF $(DEPDIR)/libgnu_a-isnand.Tpo -c -o libgnu_a-isnand.o `test -f 'isnand.c' || echo '$(srcdir)/'`isnand.c
7974 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-isnand.Tpo $(DEPDIR)/libgnu_a-isnand.Po
7975 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='isnand.c' object='libgnu_a-isnand.o' libtool=no @AMDEPBACKSLASH@
7976 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7977 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-isnand.o `test -f 'isnand.c' || echo '$(srcdir)/'`isnand.c
7978 +
7979 +libgnu_a-isnand.obj: isnand.c
7980 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-isnand.obj -MD -MP -MF $(DEPDIR)/libgnu_a-isnand.Tpo -c -o libgnu_a-isnand.obj `if test -f 'isnand.c'; then $(CYGPATH_W) 'isnand.c'; else $(CYGPATH_W) '$(srcdir)/isnand.c'; fi`
7981 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-isnand.Tpo $(DEPDIR)/libgnu_a-isnand.Po
7982 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='isnand.c' object='libgnu_a-isnand.obj' libtool=no @AMDEPBACKSLASH@
7983 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7984 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-isnand.obj `if test -f 'isnand.c'; then $(CYGPATH_W) 'isnand.c'; else $(CYGPATH_W) '$(srcdir)/isnand.c'; fi`
7985 +
7986 +libgnu_a-isnanf.o: isnanf.c
7987 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-isnanf.o -MD -MP -MF $(DEPDIR)/libgnu_a-isnanf.Tpo -c -o libgnu_a-isnanf.o `test -f 'isnanf.c' || echo '$(srcdir)/'`isnanf.c
7988 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-isnanf.Tpo $(DEPDIR)/libgnu_a-isnanf.Po
7989 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='isnanf.c' object='libgnu_a-isnanf.o' libtool=no @AMDEPBACKSLASH@
7990 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7991 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-isnanf.o `test -f 'isnanf.c' || echo '$(srcdir)/'`isnanf.c
7992 +
7993 +libgnu_a-isnanf.obj: isnanf.c
7994 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-isnanf.obj -MD -MP -MF $(DEPDIR)/libgnu_a-isnanf.Tpo -c -o libgnu_a-isnanf.obj `if test -f 'isnanf.c'; then $(CYGPATH_W) 'isnanf.c'; else $(CYGPATH_W) '$(srcdir)/isnanf.c'; fi`
7995 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-isnanf.Tpo $(DEPDIR)/libgnu_a-isnanf.Po
7996 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='isnanf.c' object='libgnu_a-isnanf.obj' libtool=no @AMDEPBACKSLASH@
7997 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
7998 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-isnanf.obj `if test -f 'isnanf.c'; then $(CYGPATH_W) 'isnanf.c'; else $(CYGPATH_W) '$(srcdir)/isnanf.c'; fi`
7999 +
8000 +libgnu_a-isnanl.o: isnanl.c
8001 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-isnanl.o -MD -MP -MF $(DEPDIR)/libgnu_a-isnanl.Tpo -c -o libgnu_a-isnanl.o `test -f 'isnanl.c' || echo '$(srcdir)/'`isnanl.c
8002 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-isnanl.Tpo $(DEPDIR)/libgnu_a-isnanl.Po
8003 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='isnanl.c' object='libgnu_a-isnanl.o' libtool=no @AMDEPBACKSLASH@
8004 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8005 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-isnanl.o `test -f 'isnanl.c' || echo '$(srcdir)/'`isnanl.c
8006 +
8007 +libgnu_a-isnanl.obj: isnanl.c
8008 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-isnanl.obj -MD -MP -MF $(DEPDIR)/libgnu_a-isnanl.Tpo -c -o libgnu_a-isnanl.obj `if test -f 'isnanl.c'; then $(CYGPATH_W) 'isnanl.c'; else $(CYGPATH_W) '$(srcdir)/isnanl.c'; fi`
8009 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-isnanl.Tpo $(DEPDIR)/libgnu_a-isnanl.Po
8010 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='isnanl.c' object='libgnu_a-isnanl.obj' libtool=no @AMDEPBACKSLASH@
8011 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8012 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-isnanl.obj `if test -f 'isnanl.c'; then $(CYGPATH_W) 'isnanl.c'; else $(CYGPATH_W) '$(srcdir)/isnanl.c'; fi`
8013 +
8014 +libgnu_a-malloc.o: malloc.c
8015 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-malloc.o -MD -MP -MF $(DEPDIR)/libgnu_a-malloc.Tpo -c -o libgnu_a-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c
8016 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-malloc.Tpo $(DEPDIR)/libgnu_a-malloc.Po
8017 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='libgnu_a-malloc.o' libtool=no @AMDEPBACKSLASH@
8018 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8019 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-malloc.o `test -f 'malloc.c' || echo '$(srcdir)/'`malloc.c
8020 +
8021 +libgnu_a-malloc.obj: malloc.c
8022 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-malloc.obj -MD -MP -MF $(DEPDIR)/libgnu_a-malloc.Tpo -c -o libgnu_a-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi`
8023 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-malloc.Tpo $(DEPDIR)/libgnu_a-malloc.Po
8024 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='malloc.c' object='libgnu_a-malloc.obj' libtool=no @AMDEPBACKSLASH@
8025 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8026 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-malloc.obj `if test -f 'malloc.c'; then $(CYGPATH_W) 'malloc.c'; else $(CYGPATH_W) '$(srcdir)/malloc.c'; fi`
8027 +
8028 +libgnu_a-realloc.o: realloc.c
8029 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-realloc.o -MD -MP -MF $(DEPDIR)/libgnu_a-realloc.Tpo -c -o libgnu_a-realloc.o `test -f 'realloc.c' || echo '$(srcdir)/'`realloc.c
8030 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-realloc.Tpo $(DEPDIR)/libgnu_a-realloc.Po
8031 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='realloc.c' object='libgnu_a-realloc.o' libtool=no @AMDEPBACKSLASH@
8032 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8033 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-realloc.o `test -f 'realloc.c' || echo '$(srcdir)/'`realloc.c
8034 +
8035 +libgnu_a-realloc.obj: realloc.c
8036 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-realloc.obj -MD -MP -MF $(DEPDIR)/libgnu_a-realloc.Tpo -c -o libgnu_a-realloc.obj `if test -f 'realloc.c'; then $(CYGPATH_W) 'realloc.c'; else $(CYGPATH_W) '$(srcdir)/realloc.c'; fi`
8037 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-realloc.Tpo $(DEPDIR)/libgnu_a-realloc.Po
8038 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='realloc.c' object='libgnu_a-realloc.obj' libtool=no @AMDEPBACKSLASH@
8039 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8040 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-realloc.obj `if test -f 'realloc.c'; then $(CYGPATH_W) 'realloc.c'; else $(CYGPATH_W) '$(srcdir)/realloc.c'; fi`
8041 +
8042 +libgnu_a-at-func2.o: at-func2.c
8043 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-at-func2.o -MD -MP -MF $(DEPDIR)/libgnu_a-at-func2.Tpo -c -o libgnu_a-at-func2.o `test -f 'at-func2.c' || echo '$(srcdir)/'`at-func2.c
8044 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-at-func2.Tpo $(DEPDIR)/libgnu_a-at-func2.Po
8045 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='at-func2.c' object='libgnu_a-at-func2.o' libtool=no @AMDEPBACKSLASH@
8046 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8047 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-at-func2.o `test -f 'at-func2.c' || echo '$(srcdir)/'`at-func2.c
8048 +
8049 +libgnu_a-at-func2.obj: at-func2.c
8050 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-at-func2.obj -MD -MP -MF $(DEPDIR)/libgnu_a-at-func2.Tpo -c -o libgnu_a-at-func2.obj `if test -f 'at-func2.c'; then $(CYGPATH_W) 'at-func2.c'; else $(CYGPATH_W) '$(srcdir)/at-func2.c'; fi`
8051 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-at-func2.Tpo $(DEPDIR)/libgnu_a-at-func2.Po
8052 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='at-func2.c' object='libgnu_a-at-func2.obj' libtool=no @AMDEPBACKSLASH@
8053 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8054 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-at-func2.obj `if test -f 'at-func2.c'; then $(CYGPATH_W) 'at-func2.c'; else $(CYGPATH_W) '$(srcdir)/at-func2.c'; fi`
8055 +
8056 +libgnu_a-strcasestr.o: strcasestr.c
8057 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strcasestr.o -MD -MP -MF $(DEPDIR)/libgnu_a-strcasestr.Tpo -c -o libgnu_a-strcasestr.o `test -f 'strcasestr.c' || echo '$(srcdir)/'`strcasestr.c
8058 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strcasestr.Tpo $(DEPDIR)/libgnu_a-strcasestr.Po
8059 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strcasestr.c' object='libgnu_a-strcasestr.o' libtool=no @AMDEPBACKSLASH@
8060 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8061 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strcasestr.o `test -f 'strcasestr.c' || echo '$(srcdir)/'`strcasestr.c
8062 +
8063 +libgnu_a-strcasestr.obj: strcasestr.c
8064 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-strcasestr.obj -MD -MP -MF $(DEPDIR)/libgnu_a-strcasestr.Tpo -c -o libgnu_a-strcasestr.obj `if test -f 'strcasestr.c'; then $(CYGPATH_W) 'strcasestr.c'; else $(CYGPATH_W) '$(srcdir)/strcasestr.c'; fi`
8065 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-strcasestr.Tpo $(DEPDIR)/libgnu_a-strcasestr.Po
8066 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='strcasestr.c' object='libgnu_a-strcasestr.obj' libtool=no @AMDEPBACKSLASH@
8067 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8068 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-strcasestr.obj `if test -f 'strcasestr.c'; then $(CYGPATH_W) 'strcasestr.c'; else $(CYGPATH_W) '$(srcdir)/strcasestr.c'; fi`
8069 +
8070 +libgnu_a-asnprintf.o: asnprintf.c
8071 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-asnprintf.o -MD -MP -MF $(DEPDIR)/libgnu_a-asnprintf.Tpo -c -o libgnu_a-asnprintf.o `test -f 'asnprintf.c' || echo '$(srcdir)/'`asnprintf.c
8072 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-asnprintf.Tpo $(DEPDIR)/libgnu_a-asnprintf.Po
8073 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='asnprintf.c' object='libgnu_a-asnprintf.o' libtool=no @AMDEPBACKSLASH@
8074 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8075 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-asnprintf.o `test -f 'asnprintf.c' || echo '$(srcdir)/'`asnprintf.c
8076 +
8077 +libgnu_a-asnprintf.obj: asnprintf.c
8078 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-asnprintf.obj -MD -MP -MF $(DEPDIR)/libgnu_a-asnprintf.Tpo -c -o libgnu_a-asnprintf.obj `if test -f 'asnprintf.c'; then $(CYGPATH_W) 'asnprintf.c'; else $(CYGPATH_W) '$(srcdir)/asnprintf.c'; fi`
8079 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-asnprintf.Tpo $(DEPDIR)/libgnu_a-asnprintf.Po
8080 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='asnprintf.c' object='libgnu_a-asnprintf.obj' libtool=no @AMDEPBACKSLASH@
8081 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8082 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-asnprintf.obj `if test -f 'asnprintf.c'; then $(CYGPATH_W) 'asnprintf.c'; else $(CYGPATH_W) '$(srcdir)/asnprintf.c'; fi`
8083 +
8084 +libgnu_a-printf-args.o: printf-args.c
8085 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-printf-args.o -MD -MP -MF $(DEPDIR)/libgnu_a-printf-args.Tpo -c -o libgnu_a-printf-args.o `test -f 'printf-args.c' || echo '$(srcdir)/'`printf-args.c
8086 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-printf-args.Tpo $(DEPDIR)/libgnu_a-printf-args.Po
8087 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='printf-args.c' object='libgnu_a-printf-args.o' libtool=no @AMDEPBACKSLASH@
8088 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8089 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-printf-args.o `test -f 'printf-args.c' || echo '$(srcdir)/'`printf-args.c
8090 +
8091 +libgnu_a-printf-args.obj: printf-args.c
8092 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-printf-args.obj -MD -MP -MF $(DEPDIR)/libgnu_a-printf-args.Tpo -c -o libgnu_a-printf-args.obj `if test -f 'printf-args.c'; then $(CYGPATH_W) 'printf-args.c'; else $(CYGPATH_W) '$(srcdir)/printf-args.c'; fi`
8093 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-printf-args.Tpo $(DEPDIR)/libgnu_a-printf-args.Po
8094 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='printf-args.c' object='libgnu_a-printf-args.obj' libtool=no @AMDEPBACKSLASH@
8095 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8096 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-printf-args.obj `if test -f 'printf-args.c'; then $(CYGPATH_W) 'printf-args.c'; else $(CYGPATH_W) '$(srcdir)/printf-args.c'; fi`
8097 +
8098 +libgnu_a-printf-parse.o: printf-parse.c
8099 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-printf-parse.o -MD -MP -MF $(DEPDIR)/libgnu_a-printf-parse.Tpo -c -o libgnu_a-printf-parse.o `test -f 'printf-parse.c' || echo '$(srcdir)/'`printf-parse.c
8100 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-printf-parse.Tpo $(DEPDIR)/libgnu_a-printf-parse.Po
8101 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='printf-parse.c' object='libgnu_a-printf-parse.o' libtool=no @AMDEPBACKSLASH@
8102 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8103 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-printf-parse.o `test -f 'printf-parse.c' || echo '$(srcdir)/'`printf-parse.c
8104 +
8105 +libgnu_a-printf-parse.obj: printf-parse.c
8106 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-printf-parse.obj -MD -MP -MF $(DEPDIR)/libgnu_a-printf-parse.Tpo -c -o libgnu_a-printf-parse.obj `if test -f 'printf-parse.c'; then $(CYGPATH_W) 'printf-parse.c'; else $(CYGPATH_W) '$(srcdir)/printf-parse.c'; fi`
8107 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-printf-parse.Tpo $(DEPDIR)/libgnu_a-printf-parse.Po
8108 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='printf-parse.c' object='libgnu_a-printf-parse.obj' libtool=no @AMDEPBACKSLASH@
8109 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8110 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-printf-parse.obj `if test -f 'printf-parse.c'; then $(CYGPATH_W) 'printf-parse.c'; else $(CYGPATH_W) '$(srcdir)/printf-parse.c'; fi`
8111 +
8112 +libgnu_a-vasnprintf.o: vasnprintf.c
8113 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-vasnprintf.o -MD -MP -MF $(DEPDIR)/libgnu_a-vasnprintf.Tpo -c -o libgnu_a-vasnprintf.o `test -f 'vasnprintf.c' || echo '$(srcdir)/'`vasnprintf.c
8114 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-vasnprintf.Tpo $(DEPDIR)/libgnu_a-vasnprintf.Po
8115 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vasnprintf.c' object='libgnu_a-vasnprintf.o' libtool=no @AMDEPBACKSLASH@
8116 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8117 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-vasnprintf.o `test -f 'vasnprintf.c' || echo '$(srcdir)/'`vasnprintf.c
8118 +
8119 +libgnu_a-vasnprintf.obj: vasnprintf.c
8120 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-vasnprintf.obj -MD -MP -MF $(DEPDIR)/libgnu_a-vasnprintf.Tpo -c -o libgnu_a-vasnprintf.obj `if test -f 'vasnprintf.c'; then $(CYGPATH_W) 'vasnprintf.c'; else $(CYGPATH_W) '$(srcdir)/vasnprintf.c'; fi`
8121 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-vasnprintf.Tpo $(DEPDIR)/libgnu_a-vasnprintf.Po
8122 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vasnprintf.c' object='libgnu_a-vasnprintf.obj' libtool=no @AMDEPBACKSLASH@
8123 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8124 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-vasnprintf.obj `if test -f 'vasnprintf.c'; then $(CYGPATH_W) 'vasnprintf.c'; else $(CYGPATH_W) '$(srcdir)/vasnprintf.c'; fi`
8125 +
8126 +libgnu_a-asprintf.o: asprintf.c
8127 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-asprintf.o -MD -MP -MF $(DEPDIR)/libgnu_a-asprintf.Tpo -c -o libgnu_a-asprintf.o `test -f 'asprintf.c' || echo '$(srcdir)/'`asprintf.c
8128 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-asprintf.Tpo $(DEPDIR)/libgnu_a-asprintf.Po
8129 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='asprintf.c' object='libgnu_a-asprintf.o' libtool=no @AMDEPBACKSLASH@
8130 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8131 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-asprintf.o `test -f 'asprintf.c' || echo '$(srcdir)/'`asprintf.c
8132 +
8133 +libgnu_a-asprintf.obj: asprintf.c
8134 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-asprintf.obj -MD -MP -MF $(DEPDIR)/libgnu_a-asprintf.Tpo -c -o libgnu_a-asprintf.obj `if test -f 'asprintf.c'; then $(CYGPATH_W) 'asprintf.c'; else $(CYGPATH_W) '$(srcdir)/asprintf.c'; fi`
8135 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-asprintf.Tpo $(DEPDIR)/libgnu_a-asprintf.Po
8136 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='asprintf.c' object='libgnu_a-asprintf.obj' libtool=no @AMDEPBACKSLASH@
8137 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8138 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-asprintf.obj `if test -f 'asprintf.c'; then $(CYGPATH_W) 'asprintf.c'; else $(CYGPATH_W) '$(srcdir)/asprintf.c'; fi`
8139 +
8140 +libgnu_a-vasprintf.o: vasprintf.c
8141 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-vasprintf.o -MD -MP -MF $(DEPDIR)/libgnu_a-vasprintf.Tpo -c -o libgnu_a-vasprintf.o `test -f 'vasprintf.c' || echo '$(srcdir)/'`vasprintf.c
8142 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-vasprintf.Tpo $(DEPDIR)/libgnu_a-vasprintf.Po
8143 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vasprintf.c' object='libgnu_a-vasprintf.o' libtool=no @AMDEPBACKSLASH@
8144 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8145 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-vasprintf.o `test -f 'vasprintf.c' || echo '$(srcdir)/'`vasprintf.c
8146 +
8147 +libgnu_a-vasprintf.obj: vasprintf.c
8148 +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -MT libgnu_a-vasprintf.obj -MD -MP -MF $(DEPDIR)/libgnu_a-vasprintf.Tpo -c -o libgnu_a-vasprintf.obj `if test -f 'vasprintf.c'; then $(CYGPATH_W) 'vasprintf.c'; else $(CYGPATH_W) '$(srcdir)/vasprintf.c'; fi`
8149 +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libgnu_a-vasprintf.Tpo $(DEPDIR)/libgnu_a-vasprintf.Po
8150 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='vasprintf.c' object='libgnu_a-vasprintf.obj' libtool=no @AMDEPBACKSLASH@
8151 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
8152 +@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libgnu_a_CFLAGS) $(CFLAGS) -c -o libgnu_a-vasprintf.obj `if test -f 'vasprintf.c'; then $(CYGPATH_W) 'vasprintf.c'; else $(CYGPATH_W) '$(srcdir)/vasprintf.c'; fi`
8153 +
8154 mostlyclean-libtool:
8155 -rm -f *.lo
8156
8157 @@ -2127,6 +4234,8 @@ clean-generic:
8158 distclean-generic:
8159 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
8160 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
8161 + -rm -f malloc/$(DEPDIR)/$(am__dirstamp)
8162 + -rm -f malloc/$(am__dirstamp)
8163 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
8164
8165 maintainer-clean-generic:
8166 @@ -2140,117 +4249,128 @@ clean-am: clean-generic clean-libtool clean-noinstLIBRARIES \
8167 clean-noinstLTLIBRARIES mostlyclean-am
8168
8169 distclean: distclean-recursive
8170 - -rm -f ./$(DEPDIR)/asnprintf.Po
8171 - -rm -f ./$(DEPDIR)/asprintf.Po
8172 - -rm -f ./$(DEPDIR)/at-func.Po
8173 - -rm -f ./$(DEPDIR)/at-func2.Po
8174 - -rm -f ./$(DEPDIR)/basename-lgpl.Po
8175 - -rm -f ./$(DEPDIR)/canonicalize-lgpl.Po
8176 - -rm -f ./$(DEPDIR)/chdir-long.Po
8177 - -rm -f ./$(DEPDIR)/cloexec.Po
8178 - -rm -f ./$(DEPDIR)/close.Po
8179 - -rm -f ./$(DEPDIR)/closedir.Po
8180 - -rm -f ./$(DEPDIR)/dirfd.Po
8181 - -rm -f ./$(DEPDIR)/dirname-lgpl.Po
8182 - -rm -f ./$(DEPDIR)/dup-safer-flag.Po
8183 - -rm -f ./$(DEPDIR)/dup-safer.Po
8184 - -rm -f ./$(DEPDIR)/dup.Po
8185 - -rm -f ./$(DEPDIR)/dup2.Po
8186 - -rm -f ./$(DEPDIR)/error.Po
8187 - -rm -f ./$(DEPDIR)/euidaccess.Po
8188 - -rm -f ./$(DEPDIR)/exitfail.Po
8189 - -rm -f ./$(DEPDIR)/faccessat.Po
8190 - -rm -f ./$(DEPDIR)/fchdir.Po
8191 - -rm -f ./$(DEPDIR)/fcntl.Po
8192 - -rm -f ./$(DEPDIR)/fd-hook.Po
8193 - -rm -f ./$(DEPDIR)/fd-safer-flag.Po
8194 - -rm -f ./$(DEPDIR)/fd-safer.Po
8195 - -rm -f ./$(DEPDIR)/fdopendir.Po
8196 - -rm -f ./$(DEPDIR)/filenamecat-lgpl.Po
8197 - -rm -f ./$(DEPDIR)/float.Po
8198 - -rm -f ./$(DEPDIR)/frexp.Po
8199 - -rm -f ./$(DEPDIR)/frexpl.Po
8200 - -rm -f ./$(DEPDIR)/fstat.Po
8201 - -rm -f ./$(DEPDIR)/fstatat.Po
8202 - -rm -f ./$(DEPDIR)/futimens.Po
8203 - -rm -f ./$(DEPDIR)/getcwd-lgpl.Po
8204 - -rm -f ./$(DEPDIR)/getdelim.Po
8205 - -rm -f ./$(DEPDIR)/getdtablesize.Po
8206 - -rm -f ./$(DEPDIR)/getgroups.Po
8207 - -rm -f ./$(DEPDIR)/getline.Po
8208 - -rm -f ./$(DEPDIR)/getopt.Po
8209 - -rm -f ./$(DEPDIR)/getopt1.Po
8210 - -rm -f ./$(DEPDIR)/getprogname.Po
8211 - -rm -f ./$(DEPDIR)/gettime.Po
8212 - -rm -f ./$(DEPDIR)/gettimeofday.Po
8213 - -rm -f ./$(DEPDIR)/group-member.Po
8214 - -rm -f ./$(DEPDIR)/isnan.Po
8215 - -rm -f ./$(DEPDIR)/isnand.Po
8216 - -rm -f ./$(DEPDIR)/isnanf.Po
8217 - -rm -f ./$(DEPDIR)/isnanl.Po
8218 - -rm -f ./$(DEPDIR)/itold.Po
8219 - -rm -f ./$(DEPDIR)/localtime-buffer.Po
8220 - -rm -f ./$(DEPDIR)/lstat.Po
8221 - -rm -f ./$(DEPDIR)/malloc.Po
8222 - -rm -f ./$(DEPDIR)/malloca.Po
8223 - -rm -f ./$(DEPDIR)/math.Po
8224 - -rm -f ./$(DEPDIR)/memchr.Po
8225 - -rm -f ./$(DEPDIR)/mempcpy.Po
8226 - -rm -f ./$(DEPDIR)/memrchr.Po
8227 - -rm -f ./$(DEPDIR)/mkdir.Po
8228 - -rm -f ./$(DEPDIR)/mkdirat.Po
8229 - -rm -f ./$(DEPDIR)/msvc-inval.Po
8230 - -rm -f ./$(DEPDIR)/msvc-nothrow.Po
8231 - -rm -f ./$(DEPDIR)/open.Po
8232 - -rm -f ./$(DEPDIR)/openat-die.Po
8233 - -rm -f ./$(DEPDIR)/openat-proc.Po
8234 - -rm -f ./$(DEPDIR)/openat.Po
8235 - -rm -f ./$(DEPDIR)/opendir.Po
8236 - -rm -f ./$(DEPDIR)/pipe-safer.Po
8237 - -rm -f ./$(DEPDIR)/printf-args.Po
8238 - -rm -f ./$(DEPDIR)/printf-frexp.Po
8239 - -rm -f ./$(DEPDIR)/printf-frexpl.Po
8240 - -rm -f ./$(DEPDIR)/printf-parse.Po
8241 - -rm -f ./$(DEPDIR)/readlink.Po
8242 - -rm -f ./$(DEPDIR)/readlinkat.Po
8243 - -rm -f ./$(DEPDIR)/realloc.Po
8244 - -rm -f ./$(DEPDIR)/rename.Po
8245 - -rm -f ./$(DEPDIR)/renameat.Po
8246 - -rm -f ./$(DEPDIR)/renameatu.Po
8247 - -rm -f ./$(DEPDIR)/rmdir.Po
8248 - -rm -f ./$(DEPDIR)/save-cwd.Po
8249 - -rm -f ./$(DEPDIR)/signbitd.Po
8250 - -rm -f ./$(DEPDIR)/signbitf.Po
8251 - -rm -f ./$(DEPDIR)/signbitl.Po
8252 - -rm -f ./$(DEPDIR)/stat-time.Po
8253 - -rm -f ./$(DEPDIR)/stat-w32.Po
8254 - -rm -f ./$(DEPDIR)/stat.Po
8255 - -rm -f ./$(DEPDIR)/statat.Po
8256 - -rm -f ./$(DEPDIR)/strcasecmp.Po
8257 - -rm -f ./$(DEPDIR)/strcasestr.Po
8258 - -rm -f ./$(DEPDIR)/strdup.Po
8259 - -rm -f ./$(DEPDIR)/strerror-override.Po
8260 - -rm -f ./$(DEPDIR)/strerror.Po
8261 - -rm -f ./$(DEPDIR)/stripslash.Po
8262 - -rm -f ./$(DEPDIR)/strncasecmp.Po
8263 - -rm -f ./$(DEPDIR)/strncat.Po
8264 - -rm -f ./$(DEPDIR)/symlink.Po
8265 - -rm -f ./$(DEPDIR)/symlinkat.Po
8266 - -rm -f ./$(DEPDIR)/timespec.Po
8267 - -rm -f ./$(DEPDIR)/unistd.Po
8268 - -rm -f ./$(DEPDIR)/unlink.Po
8269 - -rm -f ./$(DEPDIR)/unlinkat.Po
8270 - -rm -f ./$(DEPDIR)/utime.Po
8271 - -rm -f ./$(DEPDIR)/utimens.Po
8272 - -rm -f ./$(DEPDIR)/utimensat.Po
8273 - -rm -f ./$(DEPDIR)/vasnprintf.Po
8274 - -rm -f ./$(DEPDIR)/vasprintf.Po
8275 - -rm -f ./$(DEPDIR)/xalloc-die.Po
8276 - -rm -f ./$(DEPDIR)/xmalloc.Po
8277 - -rm -f ./$(DEPDIR)/xsize.Po
8278 + -rm -f ./$(DEPDIR)/libgnu_a-asnprintf.Po
8279 + -rm -f ./$(DEPDIR)/libgnu_a-asprintf.Po
8280 + -rm -f ./$(DEPDIR)/libgnu_a-at-func.Po
8281 + -rm -f ./$(DEPDIR)/libgnu_a-at-func2.Po
8282 + -rm -f ./$(DEPDIR)/libgnu_a-basename-lgpl.Po
8283 + -rm -f ./$(DEPDIR)/libgnu_a-calloc.Po
8284 + -rm -f ./$(DEPDIR)/libgnu_a-canonicalize-lgpl.Po
8285 + -rm -f ./$(DEPDIR)/libgnu_a-chdir-long.Po
8286 + -rm -f ./$(DEPDIR)/libgnu_a-cloexec.Po
8287 + -rm -f ./$(DEPDIR)/libgnu_a-close.Po
8288 + -rm -f ./$(DEPDIR)/libgnu_a-closedir.Po
8289 + -rm -f ./$(DEPDIR)/libgnu_a-dirfd.Po
8290 + -rm -f ./$(DEPDIR)/libgnu_a-dirname-lgpl.Po
8291 + -rm -f ./$(DEPDIR)/libgnu_a-dup-safer-flag.Po
8292 + -rm -f ./$(DEPDIR)/libgnu_a-dup-safer.Po
8293 + -rm -f ./$(DEPDIR)/libgnu_a-dup.Po
8294 + -rm -f ./$(DEPDIR)/libgnu_a-dup2.Po
8295 + -rm -f ./$(DEPDIR)/libgnu_a-error.Po
8296 + -rm -f ./$(DEPDIR)/libgnu_a-euidaccess.Po
8297 + -rm -f ./$(DEPDIR)/libgnu_a-exitfail.Po
8298 + -rm -f ./$(DEPDIR)/libgnu_a-faccessat.Po
8299 + -rm -f ./$(DEPDIR)/libgnu_a-fchdir.Po
8300 + -rm -f ./$(DEPDIR)/libgnu_a-fcntl.Po
8301 + -rm -f ./$(DEPDIR)/libgnu_a-fd-hook.Po
8302 + -rm -f ./$(DEPDIR)/libgnu_a-fd-safer-flag.Po
8303 + -rm -f ./$(DEPDIR)/libgnu_a-fd-safer.Po
8304 + -rm -f ./$(DEPDIR)/libgnu_a-fdopendir.Po
8305 + -rm -f ./$(DEPDIR)/libgnu_a-filenamecat-lgpl.Po
8306 + -rm -f ./$(DEPDIR)/libgnu_a-float.Po
8307 + -rm -f ./$(DEPDIR)/libgnu_a-free.Po
8308 + -rm -f ./$(DEPDIR)/libgnu_a-frexp.Po
8309 + -rm -f ./$(DEPDIR)/libgnu_a-frexpl.Po
8310 + -rm -f ./$(DEPDIR)/libgnu_a-fstat.Po
8311 + -rm -f ./$(DEPDIR)/libgnu_a-fstatat.Po
8312 + -rm -f ./$(DEPDIR)/libgnu_a-futimens.Po
8313 + -rm -f ./$(DEPDIR)/libgnu_a-getcwd-lgpl.Po
8314 + -rm -f ./$(DEPDIR)/libgnu_a-getdelim.Po
8315 + -rm -f ./$(DEPDIR)/libgnu_a-getdtablesize.Po
8316 + -rm -f ./$(DEPDIR)/libgnu_a-getgroups.Po
8317 + -rm -f ./$(DEPDIR)/libgnu_a-getline.Po
8318 + -rm -f ./$(DEPDIR)/libgnu_a-getopt.Po
8319 + -rm -f ./$(DEPDIR)/libgnu_a-getopt1.Po
8320 + -rm -f ./$(DEPDIR)/libgnu_a-getprogname.Po
8321 + -rm -f ./$(DEPDIR)/libgnu_a-gettime.Po
8322 + -rm -f ./$(DEPDIR)/libgnu_a-gettimeofday.Po
8323 + -rm -f ./$(DEPDIR)/libgnu_a-group-member.Po
8324 + -rm -f ./$(DEPDIR)/libgnu_a-ialloc.Po
8325 + -rm -f ./$(DEPDIR)/libgnu_a-isnan.Po
8326 + -rm -f ./$(DEPDIR)/libgnu_a-isnand.Po
8327 + -rm -f ./$(DEPDIR)/libgnu_a-isnanf.Po
8328 + -rm -f ./$(DEPDIR)/libgnu_a-isnanl.Po
8329 + -rm -f ./$(DEPDIR)/libgnu_a-itold.Po
8330 + -rm -f ./$(DEPDIR)/libgnu_a-lstat.Po
8331 + -rm -f ./$(DEPDIR)/libgnu_a-malloc.Po
8332 + -rm -f ./$(DEPDIR)/libgnu_a-malloca.Po
8333 + -rm -f ./$(DEPDIR)/libgnu_a-math.Po
8334 + -rm -f ./$(DEPDIR)/libgnu_a-memchr.Po
8335 + -rm -f ./$(DEPDIR)/libgnu_a-mempcpy.Po
8336 + -rm -f ./$(DEPDIR)/libgnu_a-memrchr.Po
8337 + -rm -f ./$(DEPDIR)/libgnu_a-mkdir.Po
8338 + -rm -f ./$(DEPDIR)/libgnu_a-mkdirat.Po
8339 + -rm -f ./$(DEPDIR)/libgnu_a-msvc-inval.Po
8340 + -rm -f ./$(DEPDIR)/libgnu_a-msvc-nothrow.Po
8341 + -rm -f ./$(DEPDIR)/libgnu_a-open.Po
8342 + -rm -f ./$(DEPDIR)/libgnu_a-openat-die.Po
8343 + -rm -f ./$(DEPDIR)/libgnu_a-openat-proc.Po
8344 + -rm -f ./$(DEPDIR)/libgnu_a-openat.Po
8345 + -rm -f ./$(DEPDIR)/libgnu_a-opendir.Po
8346 + -rm -f ./$(DEPDIR)/libgnu_a-pipe-safer.Po
8347 + -rm -f ./$(DEPDIR)/libgnu_a-pipe.Po
8348 + -rm -f ./$(DEPDIR)/libgnu_a-printf-args.Po
8349 + -rm -f ./$(DEPDIR)/libgnu_a-printf-frexp.Po
8350 + -rm -f ./$(DEPDIR)/libgnu_a-printf-frexpl.Po
8351 + -rm -f ./$(DEPDIR)/libgnu_a-printf-parse.Po
8352 + -rm -f ./$(DEPDIR)/libgnu_a-rawmemchr.Po
8353 + -rm -f ./$(DEPDIR)/libgnu_a-readlink.Po
8354 + -rm -f ./$(DEPDIR)/libgnu_a-readlinkat.Po
8355 + -rm -f ./$(DEPDIR)/libgnu_a-realloc.Po
8356 + -rm -f ./$(DEPDIR)/libgnu_a-reallocarray.Po
8357 + -rm -f ./$(DEPDIR)/libgnu_a-rename.Po
8358 + -rm -f ./$(DEPDIR)/libgnu_a-renameat.Po
8359 + -rm -f ./$(DEPDIR)/libgnu_a-renameatu.Po
8360 + -rm -f ./$(DEPDIR)/libgnu_a-rmdir.Po
8361 + -rm -f ./$(DEPDIR)/libgnu_a-save-cwd.Po
8362 + -rm -f ./$(DEPDIR)/libgnu_a-signbitd.Po
8363 + -rm -f ./$(DEPDIR)/libgnu_a-signbitf.Po
8364 + -rm -f ./$(DEPDIR)/libgnu_a-signbitl.Po
8365 + -rm -f ./$(DEPDIR)/libgnu_a-stat-time.Po
8366 + -rm -f ./$(DEPDIR)/libgnu_a-stat-w32.Po
8367 + -rm -f ./$(DEPDIR)/libgnu_a-stat.Po
8368 + -rm -f ./$(DEPDIR)/libgnu_a-statat.Po
8369 + -rm -f ./$(DEPDIR)/libgnu_a-stdio-read.Po
8370 + -rm -f ./$(DEPDIR)/libgnu_a-stdio-write.Po
8371 + -rm -f ./$(DEPDIR)/libgnu_a-strcasecmp.Po
8372 + -rm -f ./$(DEPDIR)/libgnu_a-strcasestr.Po
8373 + -rm -f ./$(DEPDIR)/libgnu_a-strdup.Po
8374 + -rm -f ./$(DEPDIR)/libgnu_a-strerror-override.Po
8375 + -rm -f ./$(DEPDIR)/libgnu_a-strerror.Po
8376 + -rm -f ./$(DEPDIR)/libgnu_a-stripslash.Po
8377 + -rm -f ./$(DEPDIR)/libgnu_a-strncasecmp.Po
8378 + -rm -f ./$(DEPDIR)/libgnu_a-strncat.Po
8379 + -rm -f ./$(DEPDIR)/libgnu_a-symlink.Po
8380 + -rm -f ./$(DEPDIR)/libgnu_a-symlinkat.Po
8381 + -rm -f ./$(DEPDIR)/libgnu_a-timespec.Po
8382 + -rm -f ./$(DEPDIR)/libgnu_a-unistd.Po
8383 + -rm -f ./$(DEPDIR)/libgnu_a-unlink.Po
8384 + -rm -f ./$(DEPDIR)/libgnu_a-unlinkat.Po
8385 + -rm -f ./$(DEPDIR)/libgnu_a-utime.Po
8386 + -rm -f ./$(DEPDIR)/libgnu_a-utimens.Po
8387 + -rm -f ./$(DEPDIR)/libgnu_a-utimensat.Po
8388 + -rm -f ./$(DEPDIR)/libgnu_a-vasnprintf.Po
8389 + -rm -f ./$(DEPDIR)/libgnu_a-vasprintf.Po
8390 + -rm -f ./$(DEPDIR)/libgnu_a-xalloc-die.Po
8391 + -rm -f ./$(DEPDIR)/libgnu_a-xmalloc.Po
8392 + -rm -f ./$(DEPDIR)/libgnu_a-xsize.Po
8393 + -rm -f malloc/$(DEPDIR)/libgnu_a-scratch_buffer_dupfree.Po
8394 + -rm -f malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow.Po
8395 + -rm -f malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow_preserve.Po
8396 + -rm -f malloc/$(DEPDIR)/libgnu_a-scratch_buffer_set_array_size.Po
8397 -rm -f Makefile
8398 distclean-am: clean-am distclean-compile distclean-generic \
8399 - distclean-tags
8400 + distclean-local distclean-tags
8401
8402 dvi: dvi-recursive
8403
8404 @@ -2293,116 +4413,128 @@ install-ps-am:
8405 installcheck-am:
8406
8407 maintainer-clean: maintainer-clean-recursive
8408 - -rm -f ./$(DEPDIR)/asnprintf.Po
8409 - -rm -f ./$(DEPDIR)/asprintf.Po
8410 - -rm -f ./$(DEPDIR)/at-func.Po
8411 - -rm -f ./$(DEPDIR)/at-func2.Po
8412 - -rm -f ./$(DEPDIR)/basename-lgpl.Po
8413 - -rm -f ./$(DEPDIR)/canonicalize-lgpl.Po
8414 - -rm -f ./$(DEPDIR)/chdir-long.Po
8415 - -rm -f ./$(DEPDIR)/cloexec.Po
8416 - -rm -f ./$(DEPDIR)/close.Po
8417 - -rm -f ./$(DEPDIR)/closedir.Po
8418 - -rm -f ./$(DEPDIR)/dirfd.Po
8419 - -rm -f ./$(DEPDIR)/dirname-lgpl.Po
8420 - -rm -f ./$(DEPDIR)/dup-safer-flag.Po
8421 - -rm -f ./$(DEPDIR)/dup-safer.Po
8422 - -rm -f ./$(DEPDIR)/dup.Po
8423 - -rm -f ./$(DEPDIR)/dup2.Po
8424 - -rm -f ./$(DEPDIR)/error.Po
8425 - -rm -f ./$(DEPDIR)/euidaccess.Po
8426 - -rm -f ./$(DEPDIR)/exitfail.Po
8427 - -rm -f ./$(DEPDIR)/faccessat.Po
8428 - -rm -f ./$(DEPDIR)/fchdir.Po
8429 - -rm -f ./$(DEPDIR)/fcntl.Po
8430 - -rm -f ./$(DEPDIR)/fd-hook.Po
8431 - -rm -f ./$(DEPDIR)/fd-safer-flag.Po
8432 - -rm -f ./$(DEPDIR)/fd-safer.Po
8433 - -rm -f ./$(DEPDIR)/fdopendir.Po
8434 - -rm -f ./$(DEPDIR)/filenamecat-lgpl.Po
8435 - -rm -f ./$(DEPDIR)/float.Po
8436 - -rm -f ./$(DEPDIR)/frexp.Po
8437 - -rm -f ./$(DEPDIR)/frexpl.Po
8438 - -rm -f ./$(DEPDIR)/fstat.Po
8439 - -rm -f ./$(DEPDIR)/fstatat.Po
8440 - -rm -f ./$(DEPDIR)/futimens.Po
8441 - -rm -f ./$(DEPDIR)/getcwd-lgpl.Po
8442 - -rm -f ./$(DEPDIR)/getdelim.Po
8443 - -rm -f ./$(DEPDIR)/getdtablesize.Po
8444 - -rm -f ./$(DEPDIR)/getgroups.Po
8445 - -rm -f ./$(DEPDIR)/getline.Po
8446 - -rm -f ./$(DEPDIR)/getopt.Po
8447 - -rm -f ./$(DEPDIR)/getopt1.Po
8448 - -rm -f ./$(DEPDIR)/getprogname.Po
8449 - -rm -f ./$(DEPDIR)/gettime.Po
8450 - -rm -f ./$(DEPDIR)/gettimeofday.Po
8451 - -rm -f ./$(DEPDIR)/group-member.Po
8452 - -rm -f ./$(DEPDIR)/isnan.Po
8453 - -rm -f ./$(DEPDIR)/isnand.Po
8454 - -rm -f ./$(DEPDIR)/isnanf.Po
8455 - -rm -f ./$(DEPDIR)/isnanl.Po
8456 - -rm -f ./$(DEPDIR)/itold.Po
8457 - -rm -f ./$(DEPDIR)/localtime-buffer.Po
8458 - -rm -f ./$(DEPDIR)/lstat.Po
8459 - -rm -f ./$(DEPDIR)/malloc.Po
8460 - -rm -f ./$(DEPDIR)/malloca.Po
8461 - -rm -f ./$(DEPDIR)/math.Po
8462 - -rm -f ./$(DEPDIR)/memchr.Po
8463 - -rm -f ./$(DEPDIR)/mempcpy.Po
8464 - -rm -f ./$(DEPDIR)/memrchr.Po
8465 - -rm -f ./$(DEPDIR)/mkdir.Po
8466 - -rm -f ./$(DEPDIR)/mkdirat.Po
8467 - -rm -f ./$(DEPDIR)/msvc-inval.Po
8468 - -rm -f ./$(DEPDIR)/msvc-nothrow.Po
8469 - -rm -f ./$(DEPDIR)/open.Po
8470 - -rm -f ./$(DEPDIR)/openat-die.Po
8471 - -rm -f ./$(DEPDIR)/openat-proc.Po
8472 - -rm -f ./$(DEPDIR)/openat.Po
8473 - -rm -f ./$(DEPDIR)/opendir.Po
8474 - -rm -f ./$(DEPDIR)/pipe-safer.Po
8475 - -rm -f ./$(DEPDIR)/printf-args.Po
8476 - -rm -f ./$(DEPDIR)/printf-frexp.Po
8477 - -rm -f ./$(DEPDIR)/printf-frexpl.Po
8478 - -rm -f ./$(DEPDIR)/printf-parse.Po
8479 - -rm -f ./$(DEPDIR)/readlink.Po
8480 - -rm -f ./$(DEPDIR)/readlinkat.Po
8481 - -rm -f ./$(DEPDIR)/realloc.Po
8482 - -rm -f ./$(DEPDIR)/rename.Po
8483 - -rm -f ./$(DEPDIR)/renameat.Po
8484 - -rm -f ./$(DEPDIR)/renameatu.Po
8485 - -rm -f ./$(DEPDIR)/rmdir.Po
8486 - -rm -f ./$(DEPDIR)/save-cwd.Po
8487 - -rm -f ./$(DEPDIR)/signbitd.Po
8488 - -rm -f ./$(DEPDIR)/signbitf.Po
8489 - -rm -f ./$(DEPDIR)/signbitl.Po
8490 - -rm -f ./$(DEPDIR)/stat-time.Po
8491 - -rm -f ./$(DEPDIR)/stat-w32.Po
8492 - -rm -f ./$(DEPDIR)/stat.Po
8493 - -rm -f ./$(DEPDIR)/statat.Po
8494 - -rm -f ./$(DEPDIR)/strcasecmp.Po
8495 - -rm -f ./$(DEPDIR)/strcasestr.Po
8496 - -rm -f ./$(DEPDIR)/strdup.Po
8497 - -rm -f ./$(DEPDIR)/strerror-override.Po
8498 - -rm -f ./$(DEPDIR)/strerror.Po
8499 - -rm -f ./$(DEPDIR)/stripslash.Po
8500 - -rm -f ./$(DEPDIR)/strncasecmp.Po
8501 - -rm -f ./$(DEPDIR)/strncat.Po
8502 - -rm -f ./$(DEPDIR)/symlink.Po
8503 - -rm -f ./$(DEPDIR)/symlinkat.Po
8504 - -rm -f ./$(DEPDIR)/timespec.Po
8505 - -rm -f ./$(DEPDIR)/unistd.Po
8506 - -rm -f ./$(DEPDIR)/unlink.Po
8507 - -rm -f ./$(DEPDIR)/unlinkat.Po
8508 - -rm -f ./$(DEPDIR)/utime.Po
8509 - -rm -f ./$(DEPDIR)/utimens.Po
8510 - -rm -f ./$(DEPDIR)/utimensat.Po
8511 - -rm -f ./$(DEPDIR)/vasnprintf.Po
8512 - -rm -f ./$(DEPDIR)/vasprintf.Po
8513 - -rm -f ./$(DEPDIR)/xalloc-die.Po
8514 - -rm -f ./$(DEPDIR)/xmalloc.Po
8515 - -rm -f ./$(DEPDIR)/xsize.Po
8516 + -rm -f ./$(DEPDIR)/libgnu_a-asnprintf.Po
8517 + -rm -f ./$(DEPDIR)/libgnu_a-asprintf.Po
8518 + -rm -f ./$(DEPDIR)/libgnu_a-at-func.Po
8519 + -rm -f ./$(DEPDIR)/libgnu_a-at-func2.Po
8520 + -rm -f ./$(DEPDIR)/libgnu_a-basename-lgpl.Po
8521 + -rm -f ./$(DEPDIR)/libgnu_a-calloc.Po
8522 + -rm -f ./$(DEPDIR)/libgnu_a-canonicalize-lgpl.Po
8523 + -rm -f ./$(DEPDIR)/libgnu_a-chdir-long.Po
8524 + -rm -f ./$(DEPDIR)/libgnu_a-cloexec.Po
8525 + -rm -f ./$(DEPDIR)/libgnu_a-close.Po
8526 + -rm -f ./$(DEPDIR)/libgnu_a-closedir.Po
8527 + -rm -f ./$(DEPDIR)/libgnu_a-dirfd.Po
8528 + -rm -f ./$(DEPDIR)/libgnu_a-dirname-lgpl.Po
8529 + -rm -f ./$(DEPDIR)/libgnu_a-dup-safer-flag.Po
8530 + -rm -f ./$(DEPDIR)/libgnu_a-dup-safer.Po
8531 + -rm -f ./$(DEPDIR)/libgnu_a-dup.Po
8532 + -rm -f ./$(DEPDIR)/libgnu_a-dup2.Po
8533 + -rm -f ./$(DEPDIR)/libgnu_a-error.Po
8534 + -rm -f ./$(DEPDIR)/libgnu_a-euidaccess.Po
8535 + -rm -f ./$(DEPDIR)/libgnu_a-exitfail.Po
8536 + -rm -f ./$(DEPDIR)/libgnu_a-faccessat.Po
8537 + -rm -f ./$(DEPDIR)/libgnu_a-fchdir.Po
8538 + -rm -f ./$(DEPDIR)/libgnu_a-fcntl.Po
8539 + -rm -f ./$(DEPDIR)/libgnu_a-fd-hook.Po
8540 + -rm -f ./$(DEPDIR)/libgnu_a-fd-safer-flag.Po
8541 + -rm -f ./$(DEPDIR)/libgnu_a-fd-safer.Po
8542 + -rm -f ./$(DEPDIR)/libgnu_a-fdopendir.Po
8543 + -rm -f ./$(DEPDIR)/libgnu_a-filenamecat-lgpl.Po
8544 + -rm -f ./$(DEPDIR)/libgnu_a-float.Po
8545 + -rm -f ./$(DEPDIR)/libgnu_a-free.Po
8546 + -rm -f ./$(DEPDIR)/libgnu_a-frexp.Po
8547 + -rm -f ./$(DEPDIR)/libgnu_a-frexpl.Po
8548 + -rm -f ./$(DEPDIR)/libgnu_a-fstat.Po
8549 + -rm -f ./$(DEPDIR)/libgnu_a-fstatat.Po
8550 + -rm -f ./$(DEPDIR)/libgnu_a-futimens.Po
8551 + -rm -f ./$(DEPDIR)/libgnu_a-getcwd-lgpl.Po
8552 + -rm -f ./$(DEPDIR)/libgnu_a-getdelim.Po
8553 + -rm -f ./$(DEPDIR)/libgnu_a-getdtablesize.Po
8554 + -rm -f ./$(DEPDIR)/libgnu_a-getgroups.Po
8555 + -rm -f ./$(DEPDIR)/libgnu_a-getline.Po
8556 + -rm -f ./$(DEPDIR)/libgnu_a-getopt.Po
8557 + -rm -f ./$(DEPDIR)/libgnu_a-getopt1.Po
8558 + -rm -f ./$(DEPDIR)/libgnu_a-getprogname.Po
8559 + -rm -f ./$(DEPDIR)/libgnu_a-gettime.Po
8560 + -rm -f ./$(DEPDIR)/libgnu_a-gettimeofday.Po
8561 + -rm -f ./$(DEPDIR)/libgnu_a-group-member.Po
8562 + -rm -f ./$(DEPDIR)/libgnu_a-ialloc.Po
8563 + -rm -f ./$(DEPDIR)/libgnu_a-isnan.Po
8564 + -rm -f ./$(DEPDIR)/libgnu_a-isnand.Po
8565 + -rm -f ./$(DEPDIR)/libgnu_a-isnanf.Po
8566 + -rm -f ./$(DEPDIR)/libgnu_a-isnanl.Po
8567 + -rm -f ./$(DEPDIR)/libgnu_a-itold.Po
8568 + -rm -f ./$(DEPDIR)/libgnu_a-lstat.Po
8569 + -rm -f ./$(DEPDIR)/libgnu_a-malloc.Po
8570 + -rm -f ./$(DEPDIR)/libgnu_a-malloca.Po
8571 + -rm -f ./$(DEPDIR)/libgnu_a-math.Po
8572 + -rm -f ./$(DEPDIR)/libgnu_a-memchr.Po
8573 + -rm -f ./$(DEPDIR)/libgnu_a-mempcpy.Po
8574 + -rm -f ./$(DEPDIR)/libgnu_a-memrchr.Po
8575 + -rm -f ./$(DEPDIR)/libgnu_a-mkdir.Po
8576 + -rm -f ./$(DEPDIR)/libgnu_a-mkdirat.Po
8577 + -rm -f ./$(DEPDIR)/libgnu_a-msvc-inval.Po
8578 + -rm -f ./$(DEPDIR)/libgnu_a-msvc-nothrow.Po
8579 + -rm -f ./$(DEPDIR)/libgnu_a-open.Po
8580 + -rm -f ./$(DEPDIR)/libgnu_a-openat-die.Po
8581 + -rm -f ./$(DEPDIR)/libgnu_a-openat-proc.Po
8582 + -rm -f ./$(DEPDIR)/libgnu_a-openat.Po
8583 + -rm -f ./$(DEPDIR)/libgnu_a-opendir.Po
8584 + -rm -f ./$(DEPDIR)/libgnu_a-pipe-safer.Po
8585 + -rm -f ./$(DEPDIR)/libgnu_a-pipe.Po
8586 + -rm -f ./$(DEPDIR)/libgnu_a-printf-args.Po
8587 + -rm -f ./$(DEPDIR)/libgnu_a-printf-frexp.Po
8588 + -rm -f ./$(DEPDIR)/libgnu_a-printf-frexpl.Po
8589 + -rm -f ./$(DEPDIR)/libgnu_a-printf-parse.Po
8590 + -rm -f ./$(DEPDIR)/libgnu_a-rawmemchr.Po
8591 + -rm -f ./$(DEPDIR)/libgnu_a-readlink.Po
8592 + -rm -f ./$(DEPDIR)/libgnu_a-readlinkat.Po
8593 + -rm -f ./$(DEPDIR)/libgnu_a-realloc.Po
8594 + -rm -f ./$(DEPDIR)/libgnu_a-reallocarray.Po
8595 + -rm -f ./$(DEPDIR)/libgnu_a-rename.Po
8596 + -rm -f ./$(DEPDIR)/libgnu_a-renameat.Po
8597 + -rm -f ./$(DEPDIR)/libgnu_a-renameatu.Po
8598 + -rm -f ./$(DEPDIR)/libgnu_a-rmdir.Po
8599 + -rm -f ./$(DEPDIR)/libgnu_a-save-cwd.Po
8600 + -rm -f ./$(DEPDIR)/libgnu_a-signbitd.Po
8601 + -rm -f ./$(DEPDIR)/libgnu_a-signbitf.Po
8602 + -rm -f ./$(DEPDIR)/libgnu_a-signbitl.Po
8603 + -rm -f ./$(DEPDIR)/libgnu_a-stat-time.Po
8604 + -rm -f ./$(DEPDIR)/libgnu_a-stat-w32.Po
8605 + -rm -f ./$(DEPDIR)/libgnu_a-stat.Po
8606 + -rm -f ./$(DEPDIR)/libgnu_a-statat.Po
8607 + -rm -f ./$(DEPDIR)/libgnu_a-stdio-read.Po
8608 + -rm -f ./$(DEPDIR)/libgnu_a-stdio-write.Po
8609 + -rm -f ./$(DEPDIR)/libgnu_a-strcasecmp.Po
8610 + -rm -f ./$(DEPDIR)/libgnu_a-strcasestr.Po
8611 + -rm -f ./$(DEPDIR)/libgnu_a-strdup.Po
8612 + -rm -f ./$(DEPDIR)/libgnu_a-strerror-override.Po
8613 + -rm -f ./$(DEPDIR)/libgnu_a-strerror.Po
8614 + -rm -f ./$(DEPDIR)/libgnu_a-stripslash.Po
8615 + -rm -f ./$(DEPDIR)/libgnu_a-strncasecmp.Po
8616 + -rm -f ./$(DEPDIR)/libgnu_a-strncat.Po
8617 + -rm -f ./$(DEPDIR)/libgnu_a-symlink.Po
8618 + -rm -f ./$(DEPDIR)/libgnu_a-symlinkat.Po
8619 + -rm -f ./$(DEPDIR)/libgnu_a-timespec.Po
8620 + -rm -f ./$(DEPDIR)/libgnu_a-unistd.Po
8621 + -rm -f ./$(DEPDIR)/libgnu_a-unlink.Po
8622 + -rm -f ./$(DEPDIR)/libgnu_a-unlinkat.Po
8623 + -rm -f ./$(DEPDIR)/libgnu_a-utime.Po
8624 + -rm -f ./$(DEPDIR)/libgnu_a-utimens.Po
8625 + -rm -f ./$(DEPDIR)/libgnu_a-utimensat.Po
8626 + -rm -f ./$(DEPDIR)/libgnu_a-vasnprintf.Po
8627 + -rm -f ./$(DEPDIR)/libgnu_a-vasprintf.Po
8628 + -rm -f ./$(DEPDIR)/libgnu_a-xalloc-die.Po
8629 + -rm -f ./$(DEPDIR)/libgnu_a-xmalloc.Po
8630 + -rm -f ./$(DEPDIR)/libgnu_a-xsize.Po
8631 + -rm -f malloc/$(DEPDIR)/libgnu_a-scratch_buffer_dupfree.Po
8632 + -rm -f malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow.Po
8633 + -rm -f malloc/$(DEPDIR)/libgnu_a-scratch_buffer_grow_preserve.Po
8634 + -rm -f malloc/$(DEPDIR)/libgnu_a-scratch_buffer_set_array_size.Po
8635 -rm -f Makefile
8636 -maintainer-clean-am: distclean-am maintainer-clean-generic
8637 +maintainer-clean-am: distclean-am maintainer-clean-generic \
8638 + maintainer-clean-local
8639
8640 mostlyclean: mostlyclean-recursive
8641
8642 @@ -2426,14 +4558,15 @@ uninstall-am:
8643 am--depfiles check check-am clean clean-generic clean-libtool \
8644 clean-noinstLIBRARIES clean-noinstLTLIBRARIES cscopelist-am \
8645 ctags ctags-am distclean distclean-compile distclean-generic \
8646 - distclean-libtool distclean-tags distdir dvi dvi-am html \
8647 - html-am info info-am install install-am install-data \
8648 - install-data-am install-dvi install-dvi-am install-exec \
8649 - install-exec-am install-html install-html-am install-info \
8650 - install-info-am install-man install-pdf install-pdf-am \
8651 - install-ps install-ps-am install-strip installcheck \
8652 - installcheck-am installdirs installdirs-am maintainer-clean \
8653 - maintainer-clean-generic mostlyclean mostlyclean-compile \
8654 + distclean-libtool distclean-local distclean-tags distdir dvi \
8655 + dvi-am html html-am info info-am install install-am \
8656 + install-data install-data-am install-dvi install-dvi-am \
8657 + install-exec install-exec-am install-html install-html-am \
8658 + install-info install-info-am install-man install-pdf \
8659 + install-pdf-am install-ps install-ps-am install-strip \
8660 + installcheck installcheck-am installdirs installdirs-am \
8661 + maintainer-clean maintainer-clean-generic \
8662 + maintainer-clean-local mostlyclean mostlyclean-compile \
8663 mostlyclean-generic mostlyclean-libtool mostlyclean-local pdf \
8664 pdf-am ps ps-am tags tags-am uninstall uninstall-am
8665
8666 @@ -2443,33 +4576,31 @@ uninstall-am:
8667 # We need the following in order to create <alloca.h> when the system
8668 # doesn't have one that works with the given compiler.
8669 @GL_GENERATE_ALLOCA_H_TRUE@alloca.h: alloca.in.h $(top_builddir)/config.status
8670 -@GL_GENERATE_ALLOCA_H_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \
8671 -@GL_GENERATE_ALLOCA_H_TRUE@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
8672 -@GL_GENERATE_ALLOCA_H_TRUE@ sed -e 's|@''HAVE_ALLOCA_H''@|$(HAVE_ALLOCA_H)|g' < $(srcdir)/alloca.in.h; \
8673 -@GL_GENERATE_ALLOCA_H_TRUE@ } > $@-t && \
8674 -@GL_GENERATE_ALLOCA_H_TRUE@ mv -f $@-t $@
8675 +@GL_GENERATE_ALLOCA_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \
8676 +@GL_GENERATE_ALLOCA_H_TRUE@ -e 's|@''HAVE_ALLOCA_H''@|$(HAVE_ALLOCA_H)|g' \
8677 +@GL_GENERATE_ALLOCA_H_TRUE@ $(srcdir)/alloca.in.h > $@-t
8678 +@GL_GENERATE_ALLOCA_H_TRUE@ $(AM_V_at)mv $@-t $@
8679 @GL_GENERATE_ALLOCA_H_FALSE@alloca.h: $(top_builddir)/config.status
8680 @GL_GENERATE_ALLOCA_H_FALSE@ rm -f $@
8681
8682 # We need the following in order to create <dirent.h> when the system
8683 # doesn't have one that works with the given compiler.
8684 dirent.h: dirent.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8685 - $(AM_V_GEN)rm -f $@-t $@ && \
8686 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
8687 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
8688 + $(gl_V_at)$(SED_HEADER_STDOUT) \
8689 + -e 's|@''GUARD_PREFIX''@|GL|g' \
8690 -e 's|@''HAVE_DIRENT_H''@|$(HAVE_DIRENT_H)|g' \
8691 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
8692 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
8693 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
8694 -e 's|@''NEXT_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
8695 - -e 's/@''GNULIB_OPENDIR''@/$(GNULIB_OPENDIR)/g' \
8696 - -e 's/@''GNULIB_READDIR''@/$(GNULIB_READDIR)/g' \
8697 - -e 's/@''GNULIB_REWINDDIR''@/$(GNULIB_REWINDDIR)/g' \
8698 - -e 's/@''GNULIB_CLOSEDIR''@/$(GNULIB_CLOSEDIR)/g' \
8699 - -e 's/@''GNULIB_DIRFD''@/$(GNULIB_DIRFD)/g' \
8700 - -e 's/@''GNULIB_FDOPENDIR''@/$(GNULIB_FDOPENDIR)/g' \
8701 - -e 's/@''GNULIB_SCANDIR''@/$(GNULIB_SCANDIR)/g' \
8702 - -e 's/@''GNULIB_ALPHASORT''@/$(GNULIB_ALPHASORT)/g' \
8703 + -e 's/@''GNULIB_OPENDIR''@/$(GL_GNULIB_OPENDIR)/g' \
8704 + -e 's/@''GNULIB_READDIR''@/$(GL_GNULIB_READDIR)/g' \
8705 + -e 's/@''GNULIB_REWINDDIR''@/$(GL_GNULIB_REWINDDIR)/g' \
8706 + -e 's/@''GNULIB_CLOSEDIR''@/$(GL_GNULIB_CLOSEDIR)/g' \
8707 + -e 's/@''GNULIB_DIRFD''@/$(GL_GNULIB_DIRFD)/g' \
8708 + -e 's/@''GNULIB_FDOPENDIR''@/$(GL_GNULIB_FDOPENDIR)/g' \
8709 + -e 's/@''GNULIB_SCANDIR''@/$(GL_GNULIB_SCANDIR)/g' \
8710 + -e 's/@''GNULIB_ALPHASORT''@/$(GL_GNULIB_ALPHASORT)/g' \
8711 -e 's/@''HAVE_OPENDIR''@/$(HAVE_OPENDIR)/g' \
8712 -e 's/@''HAVE_READDIR''@/$(HAVE_READDIR)/g' \
8713 -e 's/@''HAVE_REWINDDIR''@/$(HAVE_REWINDDIR)/g' \
8714 @@ -2486,16 +4617,14 @@ dirent.h: dirent.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
8715 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
8716 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
8717 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
8718 - < $(srcdir)/dirent.in.h; \
8719 - } > $@-t && \
8720 - mv $@-t $@
8721 + $(srcdir)/dirent.in.h > $@-t
8722 + $(AM_V_at)mv $@-t $@
8723
8724 # We need the following in order to create <errno.h> when the system
8725 # doesn't have one that is POSIX compliant.
8726 @GL_GENERATE_ERRNO_H_TRUE@errno.h: errno.in.h $(top_builddir)/config.status
8727 -@GL_GENERATE_ERRNO_H_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \
8728 -@GL_GENERATE_ERRNO_H_TRUE@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
8729 -@GL_GENERATE_ERRNO_H_TRUE@ sed -e 's|@''GUARD_PREFIX''@|GL|g' \
8730 +@GL_GENERATE_ERRNO_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \
8731 +@GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \
8732 @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
8733 @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
8734 @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
8735 @@ -2506,98 +4635,93 @@ dirent.h: dirent.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
8736 @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
8737 @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
8738 @GL_GENERATE_ERRNO_H_TRUE@ -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
8739 -@GL_GENERATE_ERRNO_H_TRUE@ < $(srcdir)/errno.in.h; \
8740 -@GL_GENERATE_ERRNO_H_TRUE@ } > $@-t && \
8741 -@GL_GENERATE_ERRNO_H_TRUE@ mv $@-t $@
8742 +@GL_GENERATE_ERRNO_H_TRUE@ $(srcdir)/errno.in.h > $@-t
8743 +@GL_GENERATE_ERRNO_H_TRUE@ $(AM_V_at)mv $@-t $@
8744 @GL_GENERATE_ERRNO_H_FALSE@errno.h: $(top_builddir)/config.status
8745 @GL_GENERATE_ERRNO_H_FALSE@ rm -f $@
8746
8747 # We need the following in order to create <fcntl.h> when the system
8748 # doesn't have one that works with the given compiler.
8749 fcntl.h: fcntl.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8750 - $(AM_V_GEN)rm -f $@-t $@ && \
8751 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
8752 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
8753 + $(gl_V_at)$(SED_HEADER_STDOUT) \
8754 + -e 's|@''GUARD_PREFIX''@|GL|g' \
8755 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
8756 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
8757 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
8758 -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \
8759 - -e 's/@''GNULIB_FCNTL''@/$(GNULIB_FCNTL)/g' \
8760 - -e 's/@''GNULIB_NONBLOCKING''@/$(GNULIB_NONBLOCKING)/g' \
8761 - -e 's/@''GNULIB_OPEN''@/$(GNULIB_OPEN)/g' \
8762 - -e 's/@''GNULIB_OPENAT''@/$(GNULIB_OPENAT)/g' \
8763 + -e 's/@''GNULIB_CREAT''@/$(GL_GNULIB_CREAT)/g' \
8764 + -e 's/@''GNULIB_FCNTL''@/$(GL_GNULIB_FCNTL)/g' \
8765 + -e 's/@''GNULIB_NONBLOCKING''@/$(GL_GNULIB_NONBLOCKING)/g' \
8766 + -e 's/@''GNULIB_OPEN''@/$(GL_GNULIB_OPEN)/g' \
8767 + -e 's/@''GNULIB_OPENAT''@/$(GL_GNULIB_OPENAT)/g' \
8768 + -e 's/@''GNULIB_MDA_CREAT''@/$(GL_GNULIB_MDA_CREAT)/g' \
8769 + -e 's/@''GNULIB_MDA_OPEN''@/$(GL_GNULIB_MDA_OPEN)/g' \
8770 -e 's|@''HAVE_FCNTL''@|$(HAVE_FCNTL)|g' \
8771 -e 's|@''HAVE_OPENAT''@|$(HAVE_OPENAT)|g' \
8772 + -e 's|@''REPLACE_CREAT''@|$(REPLACE_CREAT)|g' \
8773 -e 's|@''REPLACE_FCNTL''@|$(REPLACE_FCNTL)|g' \
8774 -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
8775 -e 's|@''REPLACE_OPENAT''@|$(REPLACE_OPENAT)|g' \
8776 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
8777 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
8778 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
8779 - < $(srcdir)/fcntl.in.h; \
8780 - } > $@-t && \
8781 - mv $@-t $@
8782 + $(srcdir)/fcntl.in.h > $@-t
8783 + $(AM_V_at)mv $@-t $@
8784
8785 # We need the following in order to create <float.h> when the system
8786 # doesn't have one that works with the given compiler.
8787 @GL_GENERATE_FLOAT_H_TRUE@float.h: float.in.h $(top_builddir)/config.status
8788 -@GL_GENERATE_FLOAT_H_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \
8789 -@GL_GENERATE_FLOAT_H_TRUE@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
8790 -@GL_GENERATE_FLOAT_H_TRUE@ sed -e 's|@''GUARD_PREFIX''@|GL|g' \
8791 +@GL_GENERATE_FLOAT_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \
8792 +@GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \
8793 @GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
8794 @GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
8795 @GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
8796 @GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
8797 @GL_GENERATE_FLOAT_H_TRUE@ -e 's|@''REPLACE_ITOLD''@|$(REPLACE_ITOLD)|g' \
8798 -@GL_GENERATE_FLOAT_H_TRUE@ < $(srcdir)/float.in.h; \
8799 -@GL_GENERATE_FLOAT_H_TRUE@ } > $@-t && \
8800 -@GL_GENERATE_FLOAT_H_TRUE@ mv $@-t $@
8801 +@GL_GENERATE_FLOAT_H_TRUE@ $(srcdir)/float.in.h > $@-t
8802 +@GL_GENERATE_FLOAT_H_TRUE@ $(AM_V_at)mv $@-t $@
8803 @GL_GENERATE_FLOAT_H_FALSE@float.h: $(top_builddir)/config.status
8804 @GL_GENERATE_FLOAT_H_FALSE@ rm -f $@
8805
8806 # We need the following in order to create <getopt.h> when the system
8807 # doesn't have one that works with the given compiler.
8808 -getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
8809 - $(AM_V_GEN)rm -f $@-t $@ && \
8810 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
8811 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
8812 - -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
8813 - -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
8814 - -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
8815 - -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
8816 - -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
8817 - -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
8818 - < $(srcdir)/getopt.in.h; \
8819 - } > $@-t && \
8820 - mv -f $@-t $@
8821 -
8822 -getopt-cdefs.h: getopt-cdefs.in.h $(top_builddir)/config.status
8823 - $(AM_V_GEN)rm -f $@-t $@ && \
8824 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
8825 - sed -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \
8826 - < $(srcdir)/getopt-cdefs.in.h; \
8827 - } > $@-t && \
8828 - mv -f $@-t $@
8829 +@GL_GENERATE_GETOPT_H_TRUE@getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
8830 +@GL_GENERATE_GETOPT_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \
8831 +@GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \
8832 +@GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
8833 +@GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
8834 +@GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
8835 +@GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
8836 +@GL_GENERATE_GETOPT_H_TRUE@ -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
8837 +@GL_GENERATE_GETOPT_H_TRUE@ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
8838 +@GL_GENERATE_GETOPT_H_TRUE@ $(srcdir)/getopt.in.h > $@-t
8839 +@GL_GENERATE_GETOPT_H_TRUE@ $(AM_V_at)mv $@-t $@
8840 +@GL_GENERATE_GETOPT_H_FALSE@getopt.h: $(top_builddir)/config.status
8841 +@GL_GENERATE_GETOPT_H_FALSE@ rm -f $@
8842 +
8843 +@GL_GENERATE_GETOPT_CDEFS_H_TRUE@getopt-cdefs.h: getopt-cdefs.in.h $(top_builddir)/config.status
8844 +@GL_GENERATE_GETOPT_CDEFS_H_TRUE@ $(AM_V_GEN)$(SED_HEADER_STDOUT) \
8845 +@GL_GENERATE_GETOPT_CDEFS_H_TRUE@ -e 's|@''HAVE_SYS_CDEFS_H''@|$(HAVE_SYS_CDEFS_H)|g' \
8846 +@GL_GENERATE_GETOPT_CDEFS_H_TRUE@ $(srcdir)/getopt-cdefs.in.h > $@-t
8847 +@GL_GENERATE_GETOPT_CDEFS_H_TRUE@ $(AM_V_at)mv $@-t $@
8848 +@GL_GENERATE_GETOPT_CDEFS_H_FALSE@getopt-cdefs.h: $(top_builddir)/config.status
8849 +@GL_GENERATE_GETOPT_CDEFS_H_FALSE@ rm -f $@
8850
8851 # We need the following in order to create <inttypes.h> when the system
8852 # doesn't have one that works with the given compiler.
8853 inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
8854 - $(AM_V_GEN)rm -f $@-t $@ && \
8855 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
8856 - sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
8857 + $(gl_V_at)$(SED_HEADER_STDOUT) \
8858 + -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
8859 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
8860 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
8861 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
8862 -e 's|@''NEXT_INTTYPES_H''@|$(NEXT_INTTYPES_H)|g' \
8863 - -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \
8864 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
8865 - -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
8866 - -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
8867 -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \
8868 - -e 's/@''GNULIB_IMAXABS''@/$(GNULIB_IMAXABS)/g' \
8869 - -e 's/@''GNULIB_IMAXDIV''@/$(GNULIB_IMAXDIV)/g' \
8870 - -e 's/@''GNULIB_STRTOIMAX''@/$(GNULIB_STRTOIMAX)/g' \
8871 - -e 's/@''GNULIB_STRTOUMAX''@/$(GNULIB_STRTOUMAX)/g' \
8872 + -e 's/@''GNULIB_IMAXABS''@/$(GL_GNULIB_IMAXABS)/g' \
8873 + -e 's/@''GNULIB_IMAXDIV''@/$(GL_GNULIB_IMAXDIV)/g' \
8874 + -e 's/@''GNULIB_STRTOIMAX''@/$(GL_GNULIB_STRTOIMAX)/g' \
8875 + -e 's/@''GNULIB_STRTOUMAX''@/$(GL_GNULIB_STRTOUMAX)/g' \
8876 -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \
8877 -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \
8878 -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
8879 @@ -2612,132 +4736,134 @@ inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_U
8880 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
8881 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
8882 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
8883 - < $(srcdir)/inttypes.in.h; \
8884 - } > $@-t && \
8885 - mv $@-t $@
8886 + $(srcdir)/inttypes.in.h > $@-t
8887 + $(AM_V_at)mv $@-t $@
8888
8889 # We need the following in order to create <limits.h> when the system
8890 # doesn't have one that is compatible with GNU.
8891 @GL_GENERATE_LIMITS_H_TRUE@limits.h: limits.in.h $(top_builddir)/config.status
8892 -@GL_GENERATE_LIMITS_H_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \
8893 -@GL_GENERATE_LIMITS_H_TRUE@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
8894 -@GL_GENERATE_LIMITS_H_TRUE@ sed -e 's|@''GUARD_PREFIX''@|GL|g' \
8895 +@GL_GENERATE_LIMITS_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \
8896 +@GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \
8897 @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
8898 @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
8899 @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
8900 @GL_GENERATE_LIMITS_H_TRUE@ -e 's|@''NEXT_LIMITS_H''@|$(NEXT_LIMITS_H)|g' \
8901 -@GL_GENERATE_LIMITS_H_TRUE@ < $(srcdir)/limits.in.h; \
8902 -@GL_GENERATE_LIMITS_H_TRUE@ } > $@-t && \
8903 -@GL_GENERATE_LIMITS_H_TRUE@ mv $@-t $@
8904 +@GL_GENERATE_LIMITS_H_TRUE@ $(srcdir)/limits.in.h > $@-t
8905 +@GL_GENERATE_LIMITS_H_TRUE@ $(AM_V_at)mv $@-t $@
8906 @GL_GENERATE_LIMITS_H_FALSE@limits.h: $(top_builddir)/config.status
8907 @GL_GENERATE_LIMITS_H_FALSE@ rm -f $@
8908
8909 # We need the following in order to create <math.h> when the system
8910 # doesn't have one that works with the given compiler.
8911 math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912 - $(AM_V_GEN)rm -f $@-t $@ && \
8913 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
8914 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
8915 + $(gl_V_at)$(SED_HEADER_STDOUT) \
8916 + -e 's|@''GUARD_PREFIX''@|GL|g' \
8917 -e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
8918 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
8919 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
8920 -e 's|@''NEXT_AS_FIRST_DIRECTIVE_MATH_H''@|$(NEXT_AS_FIRST_DIRECTIVE_MATH_H)|g' \
8921 - -e 's/@''GNULIB_ACOSF''@/$(GNULIB_ACOSF)/g' \
8922 - -e 's/@''GNULIB_ACOSL''@/$(GNULIB_ACOSL)/g' \
8923 - -e 's/@''GNULIB_ASINF''@/$(GNULIB_ASINF)/g' \
8924 - -e 's/@''GNULIB_ASINL''@/$(GNULIB_ASINL)/g' \
8925 - -e 's/@''GNULIB_ATANF''@/$(GNULIB_ATANF)/g' \
8926 - -e 's/@''GNULIB_ATANL''@/$(GNULIB_ATANL)/g' \
8927 - -e 's/@''GNULIB_ATAN2F''@/$(GNULIB_ATAN2F)/g' \
8928 - -e 's/@''GNULIB_CBRT''@/$(GNULIB_CBRT)/g' \
8929 - -e 's/@''GNULIB_CBRTF''@/$(GNULIB_CBRTF)/g' \
8930 - -e 's/@''GNULIB_CBRTL''@/$(GNULIB_CBRTL)/g' \
8931 - -e 's/@''GNULIB_CEIL''@/$(GNULIB_CEIL)/g' \
8932 - -e 's/@''GNULIB_CEILF''@/$(GNULIB_CEILF)/g' \
8933 - -e 's/@''GNULIB_CEILL''@/$(GNULIB_CEILL)/g' \
8934 - -e 's/@''GNULIB_COPYSIGN''@/$(GNULIB_COPYSIGN)/g' \
8935 - -e 's/@''GNULIB_COPYSIGNF''@/$(GNULIB_COPYSIGNF)/g' \
8936 - -e 's/@''GNULIB_COPYSIGNL''@/$(GNULIB_COPYSIGNL)/g' \
8937 - -e 's/@''GNULIB_COSF''@/$(GNULIB_COSF)/g' \
8938 - -e 's/@''GNULIB_COSL''@/$(GNULIB_COSL)/g' \
8939 - -e 's/@''GNULIB_COSHF''@/$(GNULIB_COSHF)/g' \
8940 - -e 's/@''GNULIB_EXPF''@/$(GNULIB_EXPF)/g' \
8941 - -e 's/@''GNULIB_EXPL''@/$(GNULIB_EXPL)/g' \
8942 - -e 's/@''GNULIB_EXP2''@/$(GNULIB_EXP2)/g' \
8943 - -e 's/@''GNULIB_EXP2F''@/$(GNULIB_EXP2F)/g' \
8944 - -e 's/@''GNULIB_EXP2L''@/$(GNULIB_EXP2L)/g' \
8945 - -e 's/@''GNULIB_EXPM1''@/$(GNULIB_EXPM1)/g' \
8946 - -e 's/@''GNULIB_EXPM1F''@/$(GNULIB_EXPM1F)/g' \
8947 - -e 's/@''GNULIB_EXPM1L''@/$(GNULIB_EXPM1L)/g' \
8948 - -e 's/@''GNULIB_FABSF''@/$(GNULIB_FABSF)/g' \
8949 - -e 's/@''GNULIB_FABSL''@/$(GNULIB_FABSL)/g' \
8950 - -e 's/@''GNULIB_FLOOR''@/$(GNULIB_FLOOR)/g' \
8951 - -e 's/@''GNULIB_FLOORF''@/$(GNULIB_FLOORF)/g' \
8952 - -e 's/@''GNULIB_FLOORL''@/$(GNULIB_FLOORL)/g' \
8953 - -e 's/@''GNULIB_FMA''@/$(GNULIB_FMA)/g' \
8954 - -e 's/@''GNULIB_FMAF''@/$(GNULIB_FMAF)/g' \
8955 - -e 's/@''GNULIB_FMAL''@/$(GNULIB_FMAL)/g' \
8956 - -e 's/@''GNULIB_FMOD''@/$(GNULIB_FMOD)/g' \
8957 - -e 's/@''GNULIB_FMODF''@/$(GNULIB_FMODF)/g' \
8958 - -e 's/@''GNULIB_FMODL''@/$(GNULIB_FMODL)/g' \
8959 - -e 's/@''GNULIB_FREXPF''@/$(GNULIB_FREXPF)/g' \
8960 - -e 's/@''GNULIB_FREXP''@/$(GNULIB_FREXP)/g' \
8961 - -e 's/@''GNULIB_FREXPL''@/$(GNULIB_FREXPL)/g' \
8962 - -e 's/@''GNULIB_HYPOT''@/$(GNULIB_HYPOT)/g' \
8963 - -e 's/@''GNULIB_HYPOTF''@/$(GNULIB_HYPOTF)/g' \
8964 - -e 's/@''GNULIB_HYPOTL''@/$(GNULIB_HYPOTL)/g' \
8965 + -e 's/@''GNULIB_ACOSF''@/$(GL_GNULIB_ACOSF)/g' \
8966 + -e 's/@''GNULIB_ACOSL''@/$(GL_GNULIB_ACOSL)/g' \
8967 + -e 's/@''GNULIB_ASINF''@/$(GL_GNULIB_ASINF)/g' \
8968 + -e 's/@''GNULIB_ASINL''@/$(GL_GNULIB_ASINL)/g' \
8969 + -e 's/@''GNULIB_ATANF''@/$(GL_GNULIB_ATANF)/g' \
8970 + -e 's/@''GNULIB_ATANL''@/$(GL_GNULIB_ATANL)/g' \
8971 + -e 's/@''GNULIB_ATAN2F''@/$(GL_GNULIB_ATAN2F)/g' \
8972 + -e 's/@''GNULIB_CBRT''@/$(GL_GNULIB_CBRT)/g' \
8973 + -e 's/@''GNULIB_CBRTF''@/$(GL_GNULIB_CBRTF)/g' \
8974 + -e 's/@''GNULIB_CBRTL''@/$(GL_GNULIB_CBRTL)/g' \
8975 + -e 's/@''GNULIB_CEIL''@/$(GL_GNULIB_CEIL)/g' \
8976 + -e 's/@''GNULIB_CEILF''@/$(GL_GNULIB_CEILF)/g' \
8977 + -e 's/@''GNULIB_CEILL''@/$(GL_GNULIB_CEILL)/g' \
8978 + -e 's/@''GNULIB_COPYSIGN''@/$(GL_GNULIB_COPYSIGN)/g' \
8979 + -e 's/@''GNULIB_COPYSIGNF''@/$(GL_GNULIB_COPYSIGNF)/g' \
8980 + -e 's/@''GNULIB_COPYSIGNL''@/$(GL_GNULIB_COPYSIGNL)/g' \
8981 + -e 's/@''GNULIB_COSF''@/$(GL_GNULIB_COSF)/g' \
8982 + -e 's/@''GNULIB_COSL''@/$(GL_GNULIB_COSL)/g' \
8983 + -e 's/@''GNULIB_COSHF''@/$(GL_GNULIB_COSHF)/g' \
8984 + -e 's/@''GNULIB_EXPF''@/$(GL_GNULIB_EXPF)/g' \
8985 + -e 's/@''GNULIB_EXPL''@/$(GL_GNULIB_EXPL)/g' \
8986 + -e 's/@''GNULIB_EXP2''@/$(GL_GNULIB_EXP2)/g' \
8987 + -e 's/@''GNULIB_EXP2F''@/$(GL_GNULIB_EXP2F)/g' \
8988 + -e 's/@''GNULIB_EXP2L''@/$(GL_GNULIB_EXP2L)/g' \
8989 + -e 's/@''GNULIB_EXPM1''@/$(GL_GNULIB_EXPM1)/g' \
8990 + -e 's/@''GNULIB_EXPM1F''@/$(GL_GNULIB_EXPM1F)/g' \
8991 + -e 's/@''GNULIB_EXPM1L''@/$(GL_GNULIB_EXPM1L)/g' \
8992 + -e 's/@''GNULIB_FABSF''@/$(GL_GNULIB_FABSF)/g' \
8993 + -e 's/@''GNULIB_FABSL''@/$(GL_GNULIB_FABSL)/g' \
8994 + -e 's/@''GNULIB_FLOOR''@/$(GL_GNULIB_FLOOR)/g' \
8995 + -e 's/@''GNULIB_FLOORF''@/$(GL_GNULIB_FLOORF)/g' \
8996 + -e 's/@''GNULIB_FLOORL''@/$(GL_GNULIB_FLOORL)/g' \
8997 + -e 's/@''GNULIB_FMA''@/$(GL_GNULIB_FMA)/g' \
8998 + -e 's/@''GNULIB_FMAF''@/$(GL_GNULIB_FMAF)/g' \
8999 + -e 's/@''GNULIB_FMAL''@/$(GL_GNULIB_FMAL)/g' \
9000 + -e 's/@''GNULIB_FMOD''@/$(GL_GNULIB_FMOD)/g' \
9001 + -e 's/@''GNULIB_FMODF''@/$(GL_GNULIB_FMODF)/g' \
9002 + -e 's/@''GNULIB_FMODL''@/$(GL_GNULIB_FMODL)/g' \
9003 + -e 's/@''GNULIB_FREXPF''@/$(GL_GNULIB_FREXPF)/g' \
9004 + -e 's/@''GNULIB_FREXP''@/$(GL_GNULIB_FREXP)/g' \
9005 + -e 's/@''GNULIB_FREXPL''@/$(GL_GNULIB_FREXPL)/g' \
9006 + -e 's/@''GNULIB_HYPOT''@/$(GL_GNULIB_HYPOT)/g' \
9007 + -e 's/@''GNULIB_HYPOTF''@/$(GL_GNULIB_HYPOTF)/g' \
9008 + -e 's/@''GNULIB_HYPOTL''@/$(GL_GNULIB_HYPOTL)/g' \
9009 < $(srcdir)/math.in.h | \
9010 - sed -e 's/@''GNULIB_ILOGB''@/$(GNULIB_ILOGB)/g' \
9011 - -e 's/@''GNULIB_ILOGBF''@/$(GNULIB_ILOGBF)/g' \
9012 - -e 's/@''GNULIB_ILOGBL''@/$(GNULIB_ILOGBL)/g' \
9013 - -e 's/@''GNULIB_ISFINITE''@/$(GNULIB_ISFINITE)/g' \
9014 - -e 's/@''GNULIB_ISINF''@/$(GNULIB_ISINF)/g' \
9015 - -e 's/@''GNULIB_ISNAN''@/$(GNULIB_ISNAN)/g' \
9016 - -e 's/@''GNULIB_ISNANF''@/$(GNULIB_ISNANF)/g' \
9017 - -e 's/@''GNULIB_ISNAND''@/$(GNULIB_ISNAND)/g' \
9018 - -e 's/@''GNULIB_ISNANL''@/$(GNULIB_ISNANL)/g' \
9019 - -e 's/@''GNULIB_LDEXPF''@/$(GNULIB_LDEXPF)/g' \
9020 - -e 's/@''GNULIB_LDEXPL''@/$(GNULIB_LDEXPL)/g' \
9021 - -e 's/@''GNULIB_LOG''@/$(GNULIB_LOG)/g' \
9022 - -e 's/@''GNULIB_LOGF''@/$(GNULIB_LOGF)/g' \
9023 - -e 's/@''GNULIB_LOGL''@/$(GNULIB_LOGL)/g' \
9024 - -e 's/@''GNULIB_LOG10''@/$(GNULIB_LOG10)/g' \
9025 - -e 's/@''GNULIB_LOG10F''@/$(GNULIB_LOG10F)/g' \
9026 - -e 's/@''GNULIB_LOG10L''@/$(GNULIB_LOG10L)/g' \
9027 - -e 's/@''GNULIB_LOG1P''@/$(GNULIB_LOG1P)/g' \
9028 - -e 's/@''GNULIB_LOG1PF''@/$(GNULIB_LOG1PF)/g' \
9029 - -e 's/@''GNULIB_LOG1PL''@/$(GNULIB_LOG1PL)/g' \
9030 - -e 's/@''GNULIB_LOG2''@/$(GNULIB_LOG2)/g' \
9031 - -e 's/@''GNULIB_LOG2F''@/$(GNULIB_LOG2F)/g' \
9032 - -e 's/@''GNULIB_LOG2L''@/$(GNULIB_LOG2L)/g' \
9033 - -e 's/@''GNULIB_LOGB''@/$(GNULIB_LOGB)/g' \
9034 - -e 's/@''GNULIB_LOGBF''@/$(GNULIB_LOGBF)/g' \
9035 - -e 's/@''GNULIB_LOGBL''@/$(GNULIB_LOGBL)/g' \
9036 - -e 's/@''GNULIB_MODF''@/$(GNULIB_MODF)/g' \
9037 - -e 's/@''GNULIB_MODFF''@/$(GNULIB_MODFF)/g' \
9038 - -e 's/@''GNULIB_MODFL''@/$(GNULIB_MODFL)/g' \
9039 - -e 's/@''GNULIB_POWF''@/$(GNULIB_POWF)/g' \
9040 - -e 's/@''GNULIB_REMAINDER''@/$(GNULIB_REMAINDER)/g' \
9041 - -e 's/@''GNULIB_REMAINDERF''@/$(GNULIB_REMAINDERF)/g' \
9042 - -e 's/@''GNULIB_REMAINDERL''@/$(GNULIB_REMAINDERL)/g' \
9043 - -e 's/@''GNULIB_RINT''@/$(GNULIB_RINT)/g' \
9044 - -e 's/@''GNULIB_RINTF''@/$(GNULIB_RINTF)/g' \
9045 - -e 's/@''GNULIB_RINTL''@/$(GNULIB_RINTL)/g' \
9046 - -e 's/@''GNULIB_ROUND''@/$(GNULIB_ROUND)/g' \
9047 - -e 's/@''GNULIB_ROUNDF''@/$(GNULIB_ROUNDF)/g' \
9048 - -e 's/@''GNULIB_ROUNDL''@/$(GNULIB_ROUNDL)/g' \
9049 - -e 's/@''GNULIB_SIGNBIT''@/$(GNULIB_SIGNBIT)/g' \
9050 - -e 's/@''GNULIB_SINF''@/$(GNULIB_SINF)/g' \
9051 - -e 's/@''GNULIB_SINL''@/$(GNULIB_SINL)/g' \
9052 - -e 's/@''GNULIB_SINHF''@/$(GNULIB_SINHF)/g' \
9053 - -e 's/@''GNULIB_SQRTF''@/$(GNULIB_SQRTF)/g' \
9054 - -e 's/@''GNULIB_SQRTL''@/$(GNULIB_SQRTL)/g' \
9055 - -e 's/@''GNULIB_TANF''@/$(GNULIB_TANF)/g' \
9056 - -e 's/@''GNULIB_TANL''@/$(GNULIB_TANL)/g' \
9057 - -e 's/@''GNULIB_TANHF''@/$(GNULIB_TANHF)/g' \
9058 - -e 's/@''GNULIB_TRUNC''@/$(GNULIB_TRUNC)/g' \
9059 - -e 's/@''GNULIB_TRUNCF''@/$(GNULIB_TRUNCF)/g' \
9060 - -e 's/@''GNULIB_TRUNCL''@/$(GNULIB_TRUNCL)/g' \
9061 + sed -e 's/@''GNULIB_ILOGB''@/$(GL_GNULIB_ILOGB)/g' \
9062 + -e 's/@''GNULIB_ILOGBF''@/$(GL_GNULIB_ILOGBF)/g' \
9063 + -e 's/@''GNULIB_ILOGBL''@/$(GL_GNULIB_ILOGBL)/g' \
9064 + -e 's/@''GNULIB_ISFINITE''@/$(GL_GNULIB_ISFINITE)/g' \
9065 + -e 's/@''GNULIB_ISINF''@/$(GL_GNULIB_ISINF)/g' \
9066 + -e 's/@''GNULIB_ISNAN''@/$(GL_GNULIB_ISNAN)/g' \
9067 + -e 's/@''GNULIB_ISNANF''@/$(GL_GNULIB_ISNANF)/g' \
9068 + -e 's/@''GNULIB_ISNAND''@/$(GL_GNULIB_ISNAND)/g' \
9069 + -e 's/@''GNULIB_ISNANL''@/$(GL_GNULIB_ISNANL)/g' \
9070 + -e 's/@''GNULIB_LDEXPF''@/$(GL_GNULIB_LDEXPF)/g' \
9071 + -e 's/@''GNULIB_LDEXPL''@/$(GL_GNULIB_LDEXPL)/g' \
9072 + -e 's/@''GNULIB_LOG''@/$(GL_GNULIB_LOG)/g' \
9073 + -e 's/@''GNULIB_LOGF''@/$(GL_GNULIB_LOGF)/g' \
9074 + -e 's/@''GNULIB_LOGL''@/$(GL_GNULIB_LOGL)/g' \
9075 + -e 's/@''GNULIB_LOG10''@/$(GL_GNULIB_LOG10)/g' \
9076 + -e 's/@''GNULIB_LOG10F''@/$(GL_GNULIB_LOG10F)/g' \
9077 + -e 's/@''GNULIB_LOG10L''@/$(GL_GNULIB_LOG10L)/g' \
9078 + -e 's/@''GNULIB_LOG1P''@/$(GL_GNULIB_LOG1P)/g' \
9079 + -e 's/@''GNULIB_LOG1PF''@/$(GL_GNULIB_LOG1PF)/g' \
9080 + -e 's/@''GNULIB_LOG1PL''@/$(GL_GNULIB_LOG1PL)/g' \
9081 + -e 's/@''GNULIB_LOG2''@/$(GL_GNULIB_LOG2)/g' \
9082 + -e 's/@''GNULIB_LOG2F''@/$(GL_GNULIB_LOG2F)/g' \
9083 + -e 's/@''GNULIB_LOG2L''@/$(GL_GNULIB_LOG2L)/g' \
9084 + -e 's/@''GNULIB_LOGB''@/$(GL_GNULIB_LOGB)/g' \
9085 + -e 's/@''GNULIB_LOGBF''@/$(GL_GNULIB_LOGBF)/g' \
9086 + -e 's/@''GNULIB_LOGBL''@/$(GL_GNULIB_LOGBL)/g' \
9087 + -e 's/@''GNULIB_MODF''@/$(GL_GNULIB_MODF)/g' \
9088 + -e 's/@''GNULIB_MODFF''@/$(GL_GNULIB_MODFF)/g' \
9089 + -e 's/@''GNULIB_MODFL''@/$(GL_GNULIB_MODFL)/g' \
9090 + -e 's/@''GNULIB_POWF''@/$(GL_GNULIB_POWF)/g' \
9091 + -e 's/@''GNULIB_REMAINDER''@/$(GL_GNULIB_REMAINDER)/g' \
9092 + -e 's/@''GNULIB_REMAINDERF''@/$(GL_GNULIB_REMAINDERF)/g' \
9093 + -e 's/@''GNULIB_REMAINDERL''@/$(GL_GNULIB_REMAINDERL)/g' \
9094 + -e 's/@''GNULIB_RINT''@/$(GL_GNULIB_RINT)/g' \
9095 + -e 's/@''GNULIB_RINTF''@/$(GL_GNULIB_RINTF)/g' \
9096 + -e 's/@''GNULIB_RINTL''@/$(GL_GNULIB_RINTL)/g' \
9097 + -e 's/@''GNULIB_ROUND''@/$(GL_GNULIB_ROUND)/g' \
9098 + -e 's/@''GNULIB_ROUNDF''@/$(GL_GNULIB_ROUNDF)/g' \
9099 + -e 's/@''GNULIB_ROUNDL''@/$(GL_GNULIB_ROUNDL)/g' \
9100 + -e 's/@''GNULIB_SIGNBIT''@/$(GL_GNULIB_SIGNBIT)/g' \
9101 + -e 's/@''GNULIB_SINF''@/$(GL_GNULIB_SINF)/g' \
9102 + -e 's/@''GNULIB_SINL''@/$(GL_GNULIB_SINL)/g' \
9103 + -e 's/@''GNULIB_SINHF''@/$(GL_GNULIB_SINHF)/g' \
9104 + -e 's/@''GNULIB_SQRTF''@/$(GL_GNULIB_SQRTF)/g' \
9105 + -e 's/@''GNULIB_SQRTL''@/$(GL_GNULIB_SQRTL)/g' \
9106 + -e 's/@''GNULIB_TANF''@/$(GL_GNULIB_TANF)/g' \
9107 + -e 's/@''GNULIB_TANL''@/$(GL_GNULIB_TANL)/g' \
9108 + -e 's/@''GNULIB_TANHF''@/$(GL_GNULIB_TANHF)/g' \
9109 + -e 's/@''GNULIB_TRUNC''@/$(GL_GNULIB_TRUNC)/g' \
9110 + -e 's/@''GNULIB_TRUNCF''@/$(GL_GNULIB_TRUNCF)/g' \
9111 + -e 's/@''GNULIB_TRUNCL''@/$(GL_GNULIB_TRUNCL)/g' \
9112 + -e 's/@''GNULIB_MDA_J0''@/$(GL_GNULIB_MDA_J0)/g' \
9113 + -e 's/@''GNULIB_MDA_J1''@/$(GL_GNULIB_MDA_J1)/g' \
9114 + -e 's/@''GNULIB_MDA_JN''@/$(GL_GNULIB_MDA_JN)/g' \
9115 + -e 's/@''GNULIB_MDA_Y0''@/$(GL_GNULIB_MDA_Y0)/g' \
9116 + -e 's/@''GNULIB_MDA_Y1''@/$(GL_GNULIB_MDA_Y1)/g' \
9117 + -e 's/@''GNULIB_MDA_YN''@/$(GL_GNULIB_MDA_YN)/g' \
9118 | \
9119 sed -e 's|@''HAVE_ACOSF''@|$(HAVE_ACOSF)|g' \
9120 -e 's|@''HAVE_ACOSL''@|$(HAVE_ACOSL)|g' \
9121 @@ -2906,7 +5032,7 @@ math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
9122 -e 's|@''REPLACE_ROUNDF''@|$(REPLACE_ROUNDF)|g' \
9123 -e 's|@''REPLACE_ROUNDL''@|$(REPLACE_ROUNDL)|g' \
9124 -e 's|@''REPLACE_SIGNBIT''@|$(REPLACE_SIGNBIT)|g' \
9125 - -e 's|@''REPLACE_SIGNBIT_USING_GCC''@|$(REPLACE_SIGNBIT_USING_GCC)|g' \
9126 + -e 's|@''REPLACE_SIGNBIT_USING_BUILTINS''@|$(REPLACE_SIGNBIT_USING_BUILTINS)|g' \
9127 -e 's|@''REPLACE_SINF''@|$(REPLACE_SINF)|g' \
9128 -e 's|@''REPLACE_SINHF''@|$(REPLACE_SINHF)|g' \
9129 -e 's|@''REPLACE_SQRTF''@|$(REPLACE_SQRTF)|g' \
9130 @@ -2918,27 +5044,43 @@ math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
9131 -e 's|@''REPLACE_TRUNCL''@|$(REPLACE_TRUNCL)|g' \
9132 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
9133 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
9134 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
9135 - } > $@-t && \
9136 - mv $@-t $@
9137 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
9138 + > $@-t
9139 + $(AM_V_at)mv $@-t $@
9140 +
9141 +malloc/scratch_buffer.gl.h: malloc/scratch_buffer.h
9142 + $(AM_V_GEN)$(MKDIR_P) 'malloc'
9143 + $(AM_V_at)$(SED_HEADER_STDOUT) \
9144 + -e 's|__always_inline|inline _GL_ATTRIBUTE_ALWAYS_INLINE|g' \
9145 + -e 's|__glibc_likely|_GL_LIKELY|g' \
9146 + -e 's|__glibc_unlikely|_GL_UNLIKELY|g' \
9147 + -e '/libc_hidden_proto/d' \
9148 + $(srcdir)/malloc/scratch_buffer.h > $@-t
9149 + $(AM_V_at)mv $@-t $@
9150 +
9151 +# We need the following in order to create <stdalign.h> when the system
9152 +# doesn't have one that works.
9153 +@GL_GENERATE_STDALIGN_H_TRUE@stdalign.h: stdalign.in.h $(top_builddir)/config.status
9154 +@GL_GENERATE_STDALIGN_H_TRUE@ $(gl_V_at)$(SED_HEADER_TO_AT_t) $(srcdir)/stdalign.in.h
9155 +@GL_GENERATE_STDALIGN_H_TRUE@ $(AM_V_at)mv $@-t $@
9156 +@GL_GENERATE_STDALIGN_H_FALSE@stdalign.h: $(top_builddir)/config.status
9157 +@GL_GENERATE_STDALIGN_H_FALSE@ rm -f $@
9158
9159 # We need the following in order to create <stdbool.h> when the system
9160 # doesn't have one that works.
9161 @GL_GENERATE_STDBOOL_H_TRUE@stdbool.h: stdbool.in.h $(top_builddir)/config.status
9162 -@GL_GENERATE_STDBOOL_H_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \
9163 -@GL_GENERATE_STDBOOL_H_TRUE@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
9164 -@GL_GENERATE_STDBOOL_H_TRUE@ sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
9165 -@GL_GENERATE_STDBOOL_H_TRUE@ } > $@-t && \
9166 -@GL_GENERATE_STDBOOL_H_TRUE@ mv $@-t $@
9167 +@GL_GENERATE_STDBOOL_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \
9168 +@GL_GENERATE_STDBOOL_H_TRUE@ -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' \
9169 +@GL_GENERATE_STDBOOL_H_TRUE@ $(srcdir)/stdbool.in.h > $@-t
9170 +@GL_GENERATE_STDBOOL_H_TRUE@ $(AM_V_at)mv $@-t $@
9171 @GL_GENERATE_STDBOOL_H_FALSE@stdbool.h: $(top_builddir)/config.status
9172 @GL_GENERATE_STDBOOL_H_FALSE@ rm -f $@
9173
9174 # We need the following in order to create <stddef.h> when the system
9175 # doesn't have one that works with the given compiler.
9176 @GL_GENERATE_STDDEF_H_TRUE@stddef.h: stddef.in.h $(top_builddir)/config.status
9177 -@GL_GENERATE_STDDEF_H_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \
9178 -@GL_GENERATE_STDDEF_H_TRUE@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
9179 -@GL_GENERATE_STDDEF_H_TRUE@ sed -e 's|@''GUARD_PREFIX''@|GL|g' \
9180 +@GL_GENERATE_STDDEF_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \
9181 +@GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \
9182 @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
9183 @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
9184 @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
9185 @@ -2946,18 +5088,16 @@ math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
9186 @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''HAVE_MAX_ALIGN_T''@|$(HAVE_MAX_ALIGN_T)|g' \
9187 @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
9188 @GL_GENERATE_STDDEF_H_TRUE@ -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
9189 -@GL_GENERATE_STDDEF_H_TRUE@ < $(srcdir)/stddef.in.h; \
9190 -@GL_GENERATE_STDDEF_H_TRUE@ } > $@-t && \
9191 -@GL_GENERATE_STDDEF_H_TRUE@ mv $@-t $@
9192 +@GL_GENERATE_STDDEF_H_TRUE@ $(srcdir)/stddef.in.h > $@-t
9193 +@GL_GENERATE_STDDEF_H_TRUE@ $(AM_V_at)mv $@-t $@
9194 @GL_GENERATE_STDDEF_H_FALSE@stddef.h: $(top_builddir)/config.status
9195 @GL_GENERATE_STDDEF_H_FALSE@ rm -f $@
9196
9197 # We need the following in order to create <stdint.h> when the system
9198 # doesn't have one that works with the given compiler.
9199 @GL_GENERATE_STDINT_H_TRUE@stdint.h: stdint.in.h $(top_builddir)/config.status
9200 -@GL_GENERATE_STDINT_H_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \
9201 -@GL_GENERATE_STDINT_H_TRUE@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
9202 -@GL_GENERATE_STDINT_H_TRUE@ sed -e 's|@''GUARD_PREFIX''@|GL|g' \
9203 +@GL_GENERATE_STDINT_H_TRUE@ $(gl_V_at)$(SED_HEADER_STDOUT) \
9204 +@GL_GENERATE_STDINT_H_TRUE@ -e 's|@''GUARD_PREFIX''@|GL|g' \
9205 @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
9206 @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
9207 @GL_GENERATE_STDINT_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
9208 @@ -2969,8 +5109,6 @@ math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
9209 @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
9210 @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
9211 @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \
9212 -@GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
9213 -@GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
9214 @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
9215 @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
9216 @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
9217 @@ -2985,78 +5123,84 @@ math.h: math.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
9218 @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
9219 @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
9220 @GL_GENERATE_STDINT_H_TRUE@ -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
9221 -@GL_GENERATE_STDINT_H_TRUE@ -e 's/@''GNULIB_OVERRIDES_WINT_T''@/$(GNULIB_OVERRIDES_WINT_T)/g' \
9222 -@GL_GENERATE_STDINT_H_TRUE@ < $(srcdir)/stdint.in.h; \
9223 -@GL_GENERATE_STDINT_H_TRUE@ } > $@-t && \
9224 -@GL_GENERATE_STDINT_H_TRUE@ mv $@-t $@
9225 +@GL_GENERATE_STDINT_H_TRUE@ -e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \
9226 +@GL_GENERATE_STDINT_H_TRUE@ $(srcdir)/stdint.in.h > $@-t
9227 +@GL_GENERATE_STDINT_H_TRUE@ $(AM_V_at)mv $@-t $@
9228 @GL_GENERATE_STDINT_H_FALSE@stdint.h: $(top_builddir)/config.status
9229 @GL_GENERATE_STDINT_H_FALSE@ rm -f $@
9230
9231 # We need the following in order to create <stdio.h> when the system
9232 # doesn't have one that works with the given compiler.
9233 stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
9234 - $(AM_V_GEN)rm -f $@-t $@ && \
9235 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
9236 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
9237 + $(gl_V_at)$(SED_HEADER_STDOUT) \
9238 + -e 's|@''GUARD_PREFIX''@|GL|g' \
9239 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
9240 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
9241 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
9242 -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \
9243 - -e 's/@''GNULIB_DPRINTF''@/$(GNULIB_DPRINTF)/g' \
9244 - -e 's/@''GNULIB_FCLOSE''@/$(GNULIB_FCLOSE)/g' \
9245 - -e 's/@''GNULIB_FDOPEN''@/$(GNULIB_FDOPEN)/g' \
9246 - -e 's/@''GNULIB_FFLUSH''@/$(GNULIB_FFLUSH)/g' \
9247 - -e 's/@''GNULIB_FGETC''@/$(GNULIB_FGETC)/g' \
9248 - -e 's/@''GNULIB_FGETS''@/$(GNULIB_FGETS)/g' \
9249 - -e 's/@''GNULIB_FOPEN''@/$(GNULIB_FOPEN)/g' \
9250 - -e 's/@''GNULIB_FPRINTF''@/$(GNULIB_FPRINTF)/g' \
9251 - -e 's/@''GNULIB_FPRINTF_POSIX''@/$(GNULIB_FPRINTF_POSIX)/g' \
9252 - -e 's/@''GNULIB_FPURGE''@/$(GNULIB_FPURGE)/g' \
9253 - -e 's/@''GNULIB_FPUTC''@/$(GNULIB_FPUTC)/g' \
9254 - -e 's/@''GNULIB_FPUTS''@/$(GNULIB_FPUTS)/g' \
9255 - -e 's/@''GNULIB_FREAD''@/$(GNULIB_FREAD)/g' \
9256 - -e 's/@''GNULIB_FREOPEN''@/$(GNULIB_FREOPEN)/g' \
9257 - -e 's/@''GNULIB_FSCANF''@/$(GNULIB_FSCANF)/g' \
9258 - -e 's/@''GNULIB_FSEEK''@/$(GNULIB_FSEEK)/g' \
9259 - -e 's/@''GNULIB_FSEEKO''@/$(GNULIB_FSEEKO)/g' \
9260 - -e 's/@''GNULIB_FTELL''@/$(GNULIB_FTELL)/g' \
9261 - -e 's/@''GNULIB_FTELLO''@/$(GNULIB_FTELLO)/g' \
9262 - -e 's/@''GNULIB_FWRITE''@/$(GNULIB_FWRITE)/g' \
9263 - -e 's/@''GNULIB_GETC''@/$(GNULIB_GETC)/g' \
9264 - -e 's/@''GNULIB_GETCHAR''@/$(GNULIB_GETCHAR)/g' \
9265 - -e 's/@''GNULIB_GETDELIM''@/$(GNULIB_GETDELIM)/g' \
9266 - -e 's/@''GNULIB_GETLINE''@/$(GNULIB_GETLINE)/g' \
9267 - -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GNULIB_OBSTACK_PRINTF)/g' \
9268 - -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GNULIB_OBSTACK_PRINTF_POSIX)/g' \
9269 - -e 's/@''GNULIB_PCLOSE''@/$(GNULIB_PCLOSE)/g' \
9270 - -e 's/@''GNULIB_PERROR''@/$(GNULIB_PERROR)/g' \
9271 - -e 's/@''GNULIB_POPEN''@/$(GNULIB_POPEN)/g' \
9272 - -e 's/@''GNULIB_PRINTF''@/$(GNULIB_PRINTF)/g' \
9273 - -e 's/@''GNULIB_PRINTF_POSIX''@/$(GNULIB_PRINTF_POSIX)/g' \
9274 - -e 's/@''GNULIB_PUTC''@/$(GNULIB_PUTC)/g' \
9275 - -e 's/@''GNULIB_PUTCHAR''@/$(GNULIB_PUTCHAR)/g' \
9276 - -e 's/@''GNULIB_PUTS''@/$(GNULIB_PUTS)/g' \
9277 - -e 's/@''GNULIB_REMOVE''@/$(GNULIB_REMOVE)/g' \
9278 - -e 's/@''GNULIB_RENAME''@/$(GNULIB_RENAME)/g' \
9279 - -e 's/@''GNULIB_RENAMEAT''@/$(GNULIB_RENAMEAT)/g' \
9280 - -e 's/@''GNULIB_SCANF''@/$(GNULIB_SCANF)/g' \
9281 - -e 's/@''GNULIB_SNPRINTF''@/$(GNULIB_SNPRINTF)/g' \
9282 - -e 's/@''GNULIB_SPRINTF_POSIX''@/$(GNULIB_SPRINTF_POSIX)/g' \
9283 - -e 's/@''GNULIB_STDIO_H_NONBLOCKING''@/$(GNULIB_STDIO_H_NONBLOCKING)/g' \
9284 - -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/$(GNULIB_STDIO_H_SIGPIPE)/g' \
9285 - -e 's/@''GNULIB_TMPFILE''@/$(GNULIB_TMPFILE)/g' \
9286 - -e 's/@''GNULIB_VASPRINTF''@/$(GNULIB_VASPRINTF)/g' \
9287 - -e 's/@''GNULIB_VDPRINTF''@/$(GNULIB_VDPRINTF)/g' \
9288 - -e 's/@''GNULIB_VFPRINTF''@/$(GNULIB_VFPRINTF)/g' \
9289 - -e 's/@''GNULIB_VFPRINTF_POSIX''@/$(GNULIB_VFPRINTF_POSIX)/g' \
9290 - -e 's/@''GNULIB_VFSCANF''@/$(GNULIB_VFSCANF)/g' \
9291 - -e 's/@''GNULIB_VSCANF''@/$(GNULIB_VSCANF)/g' \
9292 - -e 's/@''GNULIB_VPRINTF''@/$(GNULIB_VPRINTF)/g' \
9293 - -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GNULIB_VPRINTF_POSIX)/g' \
9294 - -e 's/@''GNULIB_VSNPRINTF''@/$(GNULIB_VSNPRINTF)/g' \
9295 - -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GNULIB_VSPRINTF_POSIX)/g' \
9296 + -e 's/@''GNULIB_DPRINTF''@/$(GL_GNULIB_DPRINTF)/g' \
9297 + -e 's/@''GNULIB_FCLOSE''@/$(GL_GNULIB_FCLOSE)/g' \
9298 + -e 's/@''GNULIB_FDOPEN''@/$(GL_GNULIB_FDOPEN)/g' \
9299 + -e 's/@''GNULIB_FFLUSH''@/$(GL_GNULIB_FFLUSH)/g' \
9300 + -e 's/@''GNULIB_FGETC''@/$(GL_GNULIB_FGETC)/g' \
9301 + -e 's/@''GNULIB_FGETS''@/$(GL_GNULIB_FGETS)/g' \
9302 + -e 's/@''GNULIB_FOPEN''@/$(GL_GNULIB_FOPEN)/g' \
9303 + -e 's/@''GNULIB_FOPEN_GNU''@/$(GL_GNULIB_FOPEN_GNU)/g' \
9304 + -e 's/@''GNULIB_FPRINTF''@/$(GL_GNULIB_FPRINTF)/g' \
9305 + -e 's/@''GNULIB_FPRINTF_POSIX''@/$(GL_GNULIB_FPRINTF_POSIX)/g' \
9306 + -e 's/@''GNULIB_FPURGE''@/$(GL_GNULIB_FPURGE)/g' \
9307 + -e 's/@''GNULIB_FPUTC''@/$(GL_GNULIB_FPUTC)/g' \
9308 + -e 's/@''GNULIB_FPUTS''@/$(GL_GNULIB_FPUTS)/g' \
9309 + -e 's/@''GNULIB_FREAD''@/$(GL_GNULIB_FREAD)/g' \
9310 + -e 's/@''GNULIB_FREOPEN''@/$(GL_GNULIB_FREOPEN)/g' \
9311 + -e 's/@''GNULIB_FSCANF''@/$(GL_GNULIB_FSCANF)/g' \
9312 + -e 's/@''GNULIB_FSEEK''@/$(GL_GNULIB_FSEEK)/g' \
9313 + -e 's/@''GNULIB_FSEEKO''@/$(GL_GNULIB_FSEEKO)/g' \
9314 + -e 's/@''GNULIB_FTELL''@/$(GL_GNULIB_FTELL)/g' \
9315 + -e 's/@''GNULIB_FTELLO''@/$(GL_GNULIB_FTELLO)/g' \
9316 + -e 's/@''GNULIB_FWRITE''@/$(GL_GNULIB_FWRITE)/g' \
9317 + -e 's/@''GNULIB_GETC''@/$(GL_GNULIB_GETC)/g' \
9318 + -e 's/@''GNULIB_GETCHAR''@/$(GL_GNULIB_GETCHAR)/g' \
9319 + -e 's/@''GNULIB_GETDELIM''@/$(GL_GNULIB_GETDELIM)/g' \
9320 + -e 's/@''GNULIB_GETLINE''@/$(GL_GNULIB_GETLINE)/g' \
9321 + -e 's/@''GNULIB_OBSTACK_PRINTF''@/$(GL_GNULIB_OBSTACK_PRINTF)/g' \
9322 + -e 's/@''GNULIB_OBSTACK_PRINTF_POSIX''@/$(GL_GNULIB_OBSTACK_PRINTF_POSIX)/g' \
9323 + -e 's/@''GNULIB_PCLOSE''@/$(GL_GNULIB_PCLOSE)/g' \
9324 + -e 's/@''GNULIB_PERROR''@/$(GL_GNULIB_PERROR)/g' \
9325 + -e 's/@''GNULIB_POPEN''@/$(GL_GNULIB_POPEN)/g' \
9326 + -e 's/@''GNULIB_PRINTF''@/$(GL_GNULIB_PRINTF)/g' \
9327 + -e 's/@''GNULIB_PRINTF_POSIX''@/$(GL_GNULIB_PRINTF_POSIX)/g' \
9328 + -e 's/@''GNULIB_PUTC''@/$(GL_GNULIB_PUTC)/g' \
9329 + -e 's/@''GNULIB_PUTCHAR''@/$(GL_GNULIB_PUTCHAR)/g' \
9330 + -e 's/@''GNULIB_PUTS''@/$(GL_GNULIB_PUTS)/g' \
9331 + -e 's/@''GNULIB_REMOVE''@/$(GL_GNULIB_REMOVE)/g' \
9332 + -e 's/@''GNULIB_RENAME''@/$(GL_GNULIB_RENAME)/g' \
9333 + -e 's/@''GNULIB_RENAMEAT''@/$(GL_GNULIB_RENAMEAT)/g' \
9334 + -e 's/@''GNULIB_SCANF''@/$(GL_GNULIB_SCANF)/g' \
9335 + -e 's/@''GNULIB_SNPRINTF''@/$(GL_GNULIB_SNPRINTF)/g' \
9336 + -e 's/@''GNULIB_SPRINTF_POSIX''@/$(GL_GNULIB_SPRINTF_POSIX)/g' \
9337 + -e 's/@''GNULIB_STDIO_H_NONBLOCKING''@/$(GL_GNULIB_STDIO_H_NONBLOCKING)/g' \
9338 + -e 's/@''GNULIB_STDIO_H_SIGPIPE''@/$(GL_GNULIB_STDIO_H_SIGPIPE)/g' \
9339 + -e 's/@''GNULIB_TMPFILE''@/$(GL_GNULIB_TMPFILE)/g' \
9340 + -e 's/@''GNULIB_VASPRINTF''@/$(GL_GNULIB_VASPRINTF)/g' \
9341 + -e 's/@''GNULIB_VDPRINTF''@/$(GL_GNULIB_VDPRINTF)/g' \
9342 + -e 's/@''GNULIB_VFPRINTF''@/$(GL_GNULIB_VFPRINTF)/g' \
9343 + -e 's/@''GNULIB_VFPRINTF_POSIX''@/$(GL_GNULIB_VFPRINTF_POSIX)/g' \
9344 + -e 's/@''GNULIB_VFSCANF''@/$(GL_GNULIB_VFSCANF)/g' \
9345 + -e 's/@''GNULIB_VSCANF''@/$(GL_GNULIB_VSCANF)/g' \
9346 + -e 's/@''GNULIB_VPRINTF''@/$(GL_GNULIB_VPRINTF)/g' \
9347 + -e 's/@''GNULIB_VPRINTF_POSIX''@/$(GL_GNULIB_VPRINTF_POSIX)/g' \
9348 + -e 's/@''GNULIB_VSNPRINTF''@/$(GL_GNULIB_VSNPRINTF)/g' \
9349 + -e 's/@''GNULIB_VSPRINTF_POSIX''@/$(GL_GNULIB_VSPRINTF_POSIX)/g' \
9350 + -e 's/@''GNULIB_MDA_FCLOSEALL''@/$(GL_GNULIB_MDA_FCLOSEALL)/g' \
9351 + -e 's/@''GNULIB_MDA_FDOPEN''@/$(GL_GNULIB_MDA_FDOPEN)/g' \
9352 + -e 's/@''GNULIB_MDA_FILENO''@/$(GL_GNULIB_MDA_FILENO)/g' \
9353 + -e 's/@''GNULIB_MDA_GETW''@/$(GL_GNULIB_MDA_GETW)/g' \
9354 + -e 's/@''GNULIB_MDA_PUTW''@/$(GL_GNULIB_MDA_PUTW)/g' \
9355 + -e 's/@''GNULIB_MDA_TEMPNAM''@/$(GL_GNULIB_MDA_TEMPNAM)/g' \
9356 < $(srcdir)/stdio.in.h | \
9357 - sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
9358 + sed -e 's|@''HAVE_DECL_FCLOSEALL''@|$(HAVE_DECL_FCLOSEALL)|g' \
9359 + -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
9360 -e 's|@''HAVE_DECL_FSEEKO''@|$(HAVE_DECL_FSEEKO)|g' \
9361 -e 's|@''HAVE_DECL_FTELLO''@|$(HAVE_DECL_FTELLO)|g' \
9362 -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
9363 @@ -3077,6 +5221,7 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
9364 -e 's|@''REPLACE_FDOPEN''@|$(REPLACE_FDOPEN)|g' \
9365 -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \
9366 -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \
9367 + -e 's|@''REPLACE_FOPEN_FOR_FOPEN_GNU''@|$(REPLACE_FOPEN_FOR_FOPEN_GNU)|g' \
9368 -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \
9369 -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \
9370 -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \
9371 @@ -3107,60 +5252,76 @@ stdio.h: stdio.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
9372 -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \
9373 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
9374 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
9375 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
9376 - } > $@-t && \
9377 - mv $@-t $@
9378 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
9379 + > $@-t
9380 + $(AM_V_at)mv $@-t $@
9381
9382 # We need the following in order to create <stdlib.h> when the system
9383 # doesn't have one that works with the given compiler.
9384 stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
9385 $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
9386 - $(AM_V_GEN)rm -f $@-t $@ && \
9387 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
9388 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
9389 + $(gl_V_at)$(SED_HEADER_STDOUT) \
9390 + -e 's|@''GUARD_PREFIX''@|GL|g' \
9391 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
9392 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
9393 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
9394 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
9395 - -e 's/@''GNULIB__EXIT''@/$(GNULIB__EXIT)/g' \
9396 - -e 's/@''GNULIB_ATOLL''@/$(GNULIB_ATOLL)/g' \
9397 - -e 's/@''GNULIB_CALLOC_POSIX''@/$(GNULIB_CALLOC_POSIX)/g' \
9398 - -e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GNULIB_CANONICALIZE_FILE_NAME)/g' \
9399 - -e 's/@''GNULIB_GETLOADAVG''@/$(GNULIB_GETLOADAVG)/g' \
9400 - -e 's/@''GNULIB_GETSUBOPT''@/$(GNULIB_GETSUBOPT)/g' \
9401 - -e 's/@''GNULIB_GRANTPT''@/$(GNULIB_GRANTPT)/g' \
9402 - -e 's/@''GNULIB_MALLOC_POSIX''@/$(GNULIB_MALLOC_POSIX)/g' \
9403 - -e 's/@''GNULIB_MBTOWC''@/$(GNULIB_MBTOWC)/g' \
9404 - -e 's/@''GNULIB_MKDTEMP''@/$(GNULIB_MKDTEMP)/g' \
9405 - -e 's/@''GNULIB_MKOSTEMP''@/$(GNULIB_MKOSTEMP)/g' \
9406 - -e 's/@''GNULIB_MKOSTEMPS''@/$(GNULIB_MKOSTEMPS)/g' \
9407 - -e 's/@''GNULIB_MKSTEMP''@/$(GNULIB_MKSTEMP)/g' \
9408 - -e 's/@''GNULIB_MKSTEMPS''@/$(GNULIB_MKSTEMPS)/g' \
9409 - -e 's/@''GNULIB_POSIX_OPENPT''@/$(GNULIB_POSIX_OPENPT)/g' \
9410 - -e 's/@''GNULIB_PTSNAME''@/$(GNULIB_PTSNAME)/g' \
9411 - -e 's/@''GNULIB_PTSNAME_R''@/$(GNULIB_PTSNAME_R)/g' \
9412 - -e 's/@''GNULIB_PUTENV''@/$(GNULIB_PUTENV)/g' \
9413 - -e 's/@''GNULIB_QSORT_R''@/$(GNULIB_QSORT_R)/g' \
9414 - -e 's/@''GNULIB_RANDOM''@/$(GNULIB_RANDOM)/g' \
9415 - -e 's/@''GNULIB_RANDOM_R''@/$(GNULIB_RANDOM_R)/g' \
9416 - -e 's/@''GNULIB_REALLOC_POSIX''@/$(GNULIB_REALLOC_POSIX)/g' \
9417 - -e 's/@''GNULIB_REALLOCARRAY''@/$(GNULIB_REALLOCARRAY)/g' \
9418 - -e 's/@''GNULIB_REALPATH''@/$(GNULIB_REALPATH)/g' \
9419 - -e 's/@''GNULIB_RPMATCH''@/$(GNULIB_RPMATCH)/g' \
9420 - -e 's/@''GNULIB_SECURE_GETENV''@/$(GNULIB_SECURE_GETENV)/g' \
9421 - -e 's/@''GNULIB_SETENV''@/$(GNULIB_SETENV)/g' \
9422 - -e 's/@''GNULIB_STRTOD''@/$(GNULIB_STRTOD)/g' \
9423 - -e 's/@''GNULIB_STRTOLD''@/$(GNULIB_STRTOLD)/g' \
9424 - -e 's/@''GNULIB_STRTOLL''@/$(GNULIB_STRTOLL)/g' \
9425 - -e 's/@''GNULIB_STRTOULL''@/$(GNULIB_STRTOULL)/g' \
9426 - -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GNULIB_SYSTEM_POSIX)/g' \
9427 - -e 's/@''GNULIB_UNLOCKPT''@/$(GNULIB_UNLOCKPT)/g' \
9428 - -e 's/@''GNULIB_UNSETENV''@/$(GNULIB_UNSETENV)/g' \
9429 - -e 's/@''GNULIB_WCTOMB''@/$(GNULIB_WCTOMB)/g' \
9430 + -e 's/@''GNULIB__EXIT''@/$(GL_GNULIB__EXIT)/g' \
9431 + -e 's/@''GNULIB_ALIGNED_ALLOC''@/$(GL_GNULIB_ALIGNED_ALLOC)/g' \
9432 + -e 's/@''GNULIB_ATOLL''@/$(GL_GNULIB_ATOLL)/g' \
9433 + -e 's/@''GNULIB_CALLOC_GNU''@/$(GL_GNULIB_CALLOC_GNU)/g' \
9434 + -e 's/@''GNULIB_CALLOC_POSIX''@/$(GL_GNULIB_CALLOC_POSIX)/g' \
9435 + -e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GL_GNULIB_CANONICALIZE_FILE_NAME)/g' \
9436 + -e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
9437 + -e 's/@''GNULIB_GETLOADAVG''@/$(GL_GNULIB_GETLOADAVG)/g' \
9438 + -e 's/@''GNULIB_GETSUBOPT''@/$(GL_GNULIB_GETSUBOPT)/g' \
9439 + -e 's/@''GNULIB_GRANTPT''@/$(GL_GNULIB_GRANTPT)/g' \
9440 + -e 's/@''GNULIB_MALLOC_GNU''@/$(GL_GNULIB_MALLOC_GNU)/g' \
9441 + -e 's/@''GNULIB_MALLOC_POSIX''@/$(GL_GNULIB_MALLOC_POSIX)/g' \
9442 + -e 's/@''GNULIB_MBTOWC''@/$(GL_GNULIB_MBTOWC)/g' \
9443 + -e 's/@''GNULIB_MKDTEMP''@/$(GL_GNULIB_MKDTEMP)/g' \
9444 + -e 's/@''GNULIB_MKOSTEMP''@/$(GL_GNULIB_MKOSTEMP)/g' \
9445 + -e 's/@''GNULIB_MKOSTEMPS''@/$(GL_GNULIB_MKOSTEMPS)/g' \
9446 + -e 's/@''GNULIB_MKSTEMP''@/$(GL_GNULIB_MKSTEMP)/g' \
9447 + -e 's/@''GNULIB_MKSTEMPS''@/$(GL_GNULIB_MKSTEMPS)/g' \
9448 + -e 's/@''GNULIB_POSIX_MEMALIGN''@/$(GL_GNULIB_POSIX_MEMALIGN)/g' \
9449 + -e 's/@''GNULIB_POSIX_OPENPT''@/$(GL_GNULIB_POSIX_OPENPT)/g' \
9450 + -e 's/@''GNULIB_PTSNAME''@/$(GL_GNULIB_PTSNAME)/g' \
9451 + -e 's/@''GNULIB_PTSNAME_R''@/$(GL_GNULIB_PTSNAME_R)/g' \
9452 + -e 's/@''GNULIB_PUTENV''@/$(GL_GNULIB_PUTENV)/g' \
9453 + -e 's/@''GNULIB_QSORT_R''@/$(GL_GNULIB_QSORT_R)/g' \
9454 + -e 's/@''GNULIB_RANDOM''@/$(GL_GNULIB_RANDOM)/g' \
9455 + -e 's/@''GNULIB_RANDOM_R''@/$(GL_GNULIB_RANDOM_R)/g' \
9456 + -e 's/@''GNULIB_REALLOC_GNU''@/$(GL_GNULIB_REALLOC_GNU)/g' \
9457 + -e 's/@''GNULIB_REALLOC_POSIX''@/$(GL_GNULIB_REALLOC_POSIX)/g' \
9458 + -e 's/@''GNULIB_REALLOCARRAY''@/$(GL_GNULIB_REALLOCARRAY)/g' \
9459 + -e 's/@''GNULIB_REALPATH''@/$(GL_GNULIB_REALPATH)/g' \
9460 + -e 's/@''GNULIB_RPMATCH''@/$(GL_GNULIB_RPMATCH)/g' \
9461 + -e 's/@''GNULIB_SECURE_GETENV''@/$(GL_GNULIB_SECURE_GETENV)/g' \
9462 + -e 's/@''GNULIB_SETENV''@/$(GL_GNULIB_SETENV)/g' \
9463 + -e 's/@''GNULIB_STRTOD''@/$(GL_GNULIB_STRTOD)/g' \
9464 + -e 's/@''GNULIB_STRTOL''@/$(GL_GNULIB_STRTOL)/g' \
9465 + -e 's/@''GNULIB_STRTOLD''@/$(GL_GNULIB_STRTOLD)/g' \
9466 + -e 's/@''GNULIB_STRTOLL''@/$(GL_GNULIB_STRTOLL)/g' \
9467 + -e 's/@''GNULIB_STRTOUL''@/$(GL_GNULIB_STRTOUL)/g' \
9468 + -e 's/@''GNULIB_STRTOULL''@/$(GL_GNULIB_STRTOULL)/g' \
9469 + -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GL_GNULIB_SYSTEM_POSIX)/g' \
9470 + -e 's/@''GNULIB_UNLOCKPT''@/$(GL_GNULIB_UNLOCKPT)/g' \
9471 + -e 's/@''GNULIB_UNSETENV''@/$(GL_GNULIB_UNSETENV)/g' \
9472 + -e 's/@''GNULIB_WCTOMB''@/$(GL_GNULIB_WCTOMB)/g' \
9473 + -e 's/@''GNULIB_MDA_ECVT''@/$(GL_GNULIB_MDA_ECVT)/g' \
9474 + -e 's/@''GNULIB_MDA_FCVT''@/$(GL_GNULIB_MDA_FCVT)/g' \
9475 + -e 's/@''GNULIB_MDA_GCVT''@/$(GL_GNULIB_MDA_GCVT)/g' \
9476 + -e 's/@''GNULIB_MDA_MKTEMP''@/$(GL_GNULIB_MDA_MKTEMP)/g' \
9477 + -e 's/@''GNULIB_MDA_PUTENV''@/$(GL_GNULIB_MDA_PUTENV)/g' \
9478 < $(srcdir)/stdlib.in.h | \
9479 sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
9480 + -e 's|@''HAVE_ALIGNED_ALLOC''@|$(HAVE_ALIGNED_ALLOC)|g' \
9481 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
9482 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
9483 + -e 's|@''HAVE_DECL_ECVT''@|$(HAVE_DECL_ECVT)|g' \
9484 + -e 's|@''HAVE_DECL_FCVT''@|$(HAVE_DECL_FCVT)|g' \
9485 + -e 's|@''HAVE_DECL_GCVT''@|$(HAVE_DECL_GCVT)|g' \
9486 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
9487 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
9488 -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
9489 @@ -3172,6 +5333,7 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
9490 -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
9491 -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
9492 -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
9493 + -e 's|@''HAVE_POSIX_MEMALIGN''@|$(HAVE_POSIX_MEMALIGN)|g' \
9494 -e 's|@''HAVE_POSIX_OPENPT''@|$(HAVE_POSIX_OPENPT)|g' \
9495 -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
9496 -e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \
9497 @@ -3187,94 +5349,111 @@ stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
9498 -e 's|@''HAVE_SETSTATE''@|$(HAVE_SETSTATE)|g' \
9499 -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \
9500 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
9501 + -e 's|@''HAVE_STRTOL''@|$(HAVE_STRTOL)|g' \
9502 -e 's|@''HAVE_STRTOLD''@|$(HAVE_STRTOLD)|g' \
9503 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
9504 + -e 's|@''HAVE_STRTOUL''@|$(HAVE_STRTOUL)|g' \
9505 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
9506 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
9507 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
9508 -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
9509 -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \
9510 - -e 's|@''REPLACE_CALLOC''@|$(REPLACE_CALLOC)|g' \
9511 + -e 's|@''REPLACE_ALIGNED_ALLOC''@|$(REPLACE_ALIGNED_ALLOC)|g' \
9512 + -e 's|@''REPLACE_CALLOC_FOR_CALLOC_GNU''@|$(REPLACE_CALLOC_FOR_CALLOC_GNU)|g' \
9513 + -e 's|@''REPLACE_CALLOC_FOR_CALLOC_POSIX''@|$(REPLACE_CALLOC_FOR_CALLOC_POSIX)|g' \
9514 -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
9515 + -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
9516 -e 's|@''REPLACE_INITSTATE''@|$(REPLACE_INITSTATE)|g' \
9517 - -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \
9518 + -e 's|@''REPLACE_MALLOC_FOR_MALLOC_GNU''@|$(REPLACE_MALLOC_FOR_MALLOC_GNU)|g' \
9519 + -e 's|@''REPLACE_MALLOC_FOR_MALLOC_POSIX''@|$(REPLACE_MALLOC_FOR_MALLOC_POSIX)|g' \
9520 -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \
9521 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
9522 + -e 's|@''REPLACE_POSIX_MEMALIGN''@|$(REPLACE_POSIX_MEMALIGN)|g' \
9523 -e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \
9524 -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \
9525 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
9526 -e 's|@''REPLACE_QSORT_R''@|$(REPLACE_QSORT_R)|g' \
9527 -e 's|@''REPLACE_RANDOM''@|$(REPLACE_RANDOM)|g' \
9528 -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \
9529 - -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \
9530 + -e 's|@''REPLACE_REALLOC_FOR_REALLOC_GNU''@|$(REPLACE_REALLOC_FOR_REALLOC_GNU)|g' \
9531 + -e 's|@''REPLACE_REALLOC_FOR_REALLOC_POSIX''@|$(REPLACE_REALLOC_FOR_REALLOC_POSIX)|g' \
9532 + -e 's|@''REPLACE_REALLOCARRAY''@|$(REPLACE_REALLOCARRAY)|g' \
9533 -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
9534 -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
9535 -e 's|@''REPLACE_SETSTATE''@|$(REPLACE_SETSTATE)|g' \
9536 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
9537 + -e 's|@''REPLACE_STRTOL''@|$(REPLACE_STRTOL)|g' \
9538 -e 's|@''REPLACE_STRTOLD''@|$(REPLACE_STRTOLD)|g' \
9539 + -e 's|@''REPLACE_STRTOLL''@|$(REPLACE_STRTOLL)|g' \
9540 + -e 's|@''REPLACE_STRTOUL''@|$(REPLACE_STRTOUL)|g' \
9541 + -e 's|@''REPLACE_STRTOULL''@|$(REPLACE_STRTOULL)|g' \
9542 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
9543 -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \
9544 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
9545 -e '/definition of _Noreturn/r $(_NORETURN_H)' \
9546 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
9547 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
9548 - } > $@-t && \
9549 - mv $@-t $@
9550 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
9551 + > $@-t
9552 + $(AM_V_at)mv $@-t $@
9553
9554 # We need the following in order to create <string.h> when the system
9555 # doesn't have one that works with the given compiler.
9556 string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
9557 - $(AM_V_GEN)rm -f $@-t $@ && \
9558 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
9559 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
9560 + $(gl_V_at)$(SED_HEADER_STDOUT) \
9561 + -e 's|@''GUARD_PREFIX''@|GL|g' \
9562 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
9563 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
9564 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
9565 -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
9566 - -e 's/@''GNULIB_EXPLICIT_BZERO''@/$(GNULIB_EXPLICIT_BZERO)/g' \
9567 - -e 's/@''GNULIB_FFSL''@/$(GNULIB_FFSL)/g' \
9568 - -e 's/@''GNULIB_FFSLL''@/$(GNULIB_FFSLL)/g' \
9569 - -e 's/@''GNULIB_MBSLEN''@/$(GNULIB_MBSLEN)/g' \
9570 - -e 's/@''GNULIB_MBSNLEN''@/$(GNULIB_MBSNLEN)/g' \
9571 - -e 's/@''GNULIB_MBSCHR''@/$(GNULIB_MBSCHR)/g' \
9572 - -e 's/@''GNULIB_MBSRCHR''@/$(GNULIB_MBSRCHR)/g' \
9573 - -e 's/@''GNULIB_MBSSTR''@/$(GNULIB_MBSSTR)/g' \
9574 - -e 's/@''GNULIB_MBSCASECMP''@/$(GNULIB_MBSCASECMP)/g' \
9575 - -e 's/@''GNULIB_MBSNCASECMP''@/$(GNULIB_MBSNCASECMP)/g' \
9576 - -e 's/@''GNULIB_MBSPCASECMP''@/$(GNULIB_MBSPCASECMP)/g' \
9577 - -e 's/@''GNULIB_MBSCASESTR''@/$(GNULIB_MBSCASESTR)/g' \
9578 - -e 's/@''GNULIB_MBSCSPN''@/$(GNULIB_MBSCSPN)/g' \
9579 - -e 's/@''GNULIB_MBSPBRK''@/$(GNULIB_MBSPBRK)/g' \
9580 - -e 's/@''GNULIB_MBSSPN''@/$(GNULIB_MBSSPN)/g' \
9581 - -e 's/@''GNULIB_MBSSEP''@/$(GNULIB_MBSSEP)/g' \
9582 - -e 's/@''GNULIB_MBSTOK_R''@/$(GNULIB_MBSTOK_R)/g' \
9583 - -e 's/@''GNULIB_MEMCHR''@/$(GNULIB_MEMCHR)/g' \
9584 - -e 's/@''GNULIB_MEMMEM''@/$(GNULIB_MEMMEM)/g' \
9585 - -e 's/@''GNULIB_MEMPCPY''@/$(GNULIB_MEMPCPY)/g' \
9586 - -e 's/@''GNULIB_MEMRCHR''@/$(GNULIB_MEMRCHR)/g' \
9587 - -e 's/@''GNULIB_RAWMEMCHR''@/$(GNULIB_RAWMEMCHR)/g' \
9588 - -e 's/@''GNULIB_STPCPY''@/$(GNULIB_STPCPY)/g' \
9589 - -e 's/@''GNULIB_STPNCPY''@/$(GNULIB_STPNCPY)/g' \
9590 - -e 's/@''GNULIB_STRCHRNUL''@/$(GNULIB_STRCHRNUL)/g' \
9591 - -e 's/@''GNULIB_STRDUP''@/$(GNULIB_STRDUP)/g' \
9592 - -e 's/@''GNULIB_STRNCAT''@/$(GNULIB_STRNCAT)/g' \
9593 - -e 's/@''GNULIB_STRNDUP''@/$(GNULIB_STRNDUP)/g' \
9594 - -e 's/@''GNULIB_STRNLEN''@/$(GNULIB_STRNLEN)/g' \
9595 - -e 's/@''GNULIB_STRPBRK''@/$(GNULIB_STRPBRK)/g' \
9596 - -e 's/@''GNULIB_STRSEP''@/$(GNULIB_STRSEP)/g' \
9597 - -e 's/@''GNULIB_STRSTR''@/$(GNULIB_STRSTR)/g' \
9598 - -e 's/@''GNULIB_STRCASESTR''@/$(GNULIB_STRCASESTR)/g' \
9599 - -e 's/@''GNULIB_STRTOK_R''@/$(GNULIB_STRTOK_R)/g' \
9600 - -e 's/@''GNULIB_STRERROR''@/$(GNULIB_STRERROR)/g' \
9601 - -e 's/@''GNULIB_STRERROR_R''@/$(GNULIB_STRERROR_R)/g' \
9602 - -e 's/@''GNULIB_STRSIGNAL''@/$(GNULIB_STRSIGNAL)/g' \
9603 - -e 's/@''GNULIB_STRVERSCMP''@/$(GNULIB_STRVERSCMP)/g' \
9604 + -e 's/@''GNULIB_EXPLICIT_BZERO''@/$(GL_GNULIB_EXPLICIT_BZERO)/g' \
9605 + -e 's/@''GNULIB_FFSL''@/$(GL_GNULIB_FFSL)/g' \
9606 + -e 's/@''GNULIB_FFSLL''@/$(GL_GNULIB_FFSLL)/g' \
9607 + -e 's/@''GNULIB_MBSLEN''@/$(GL_GNULIB_MBSLEN)/g' \
9608 + -e 's/@''GNULIB_MBSNLEN''@/$(GL_GNULIB_MBSNLEN)/g' \
9609 + -e 's/@''GNULIB_MBSCHR''@/$(GL_GNULIB_MBSCHR)/g' \
9610 + -e 's/@''GNULIB_MBSRCHR''@/$(GL_GNULIB_MBSRCHR)/g' \
9611 + -e 's/@''GNULIB_MBSSTR''@/$(GL_GNULIB_MBSSTR)/g' \
9612 + -e 's/@''GNULIB_MBSCASECMP''@/$(GL_GNULIB_MBSCASECMP)/g' \
9613 + -e 's/@''GNULIB_MBSNCASECMP''@/$(GL_GNULIB_MBSNCASECMP)/g' \
9614 + -e 's/@''GNULIB_MBSPCASECMP''@/$(GL_GNULIB_MBSPCASECMP)/g' \
9615 + -e 's/@''GNULIB_MBSCASESTR''@/$(GL_GNULIB_MBSCASESTR)/g' \
9616 + -e 's/@''GNULIB_MBSCSPN''@/$(GL_GNULIB_MBSCSPN)/g' \
9617 + -e 's/@''GNULIB_MBSPBRK''@/$(GL_GNULIB_MBSPBRK)/g' \
9618 + -e 's/@''GNULIB_MBSSPN''@/$(GL_GNULIB_MBSSPN)/g' \
9619 + -e 's/@''GNULIB_MBSSEP''@/$(GL_GNULIB_MBSSEP)/g' \
9620 + -e 's/@''GNULIB_MBSTOK_R''@/$(GL_GNULIB_MBSTOK_R)/g' \
9621 + -e 's/@''GNULIB_MEMCHR''@/$(GL_GNULIB_MEMCHR)/g' \
9622 + -e 's/@''GNULIB_MEMMEM''@/$(GL_GNULIB_MEMMEM)/g' \
9623 + -e 's/@''GNULIB_MEMPCPY''@/$(GL_GNULIB_MEMPCPY)/g' \
9624 + -e 's/@''GNULIB_MEMRCHR''@/$(GL_GNULIB_MEMRCHR)/g' \
9625 + -e 's/@''GNULIB_RAWMEMCHR''@/$(GL_GNULIB_RAWMEMCHR)/g' \
9626 + -e 's/@''GNULIB_STPCPY''@/$(GL_GNULIB_STPCPY)/g' \
9627 + -e 's/@''GNULIB_STPNCPY''@/$(GL_GNULIB_STPNCPY)/g' \
9628 + -e 's/@''GNULIB_STRCHRNUL''@/$(GL_GNULIB_STRCHRNUL)/g' \
9629 + -e 's/@''GNULIB_STRDUP''@/$(GL_GNULIB_STRDUP)/g' \
9630 + -e 's/@''GNULIB_STRNCAT''@/$(GL_GNULIB_STRNCAT)/g' \
9631 + -e 's/@''GNULIB_STRNDUP''@/$(GL_GNULIB_STRNDUP)/g' \
9632 + -e 's/@''GNULIB_STRNLEN''@/$(GL_GNULIB_STRNLEN)/g' \
9633 + -e 's/@''GNULIB_STRPBRK''@/$(GL_GNULIB_STRPBRK)/g' \
9634 + -e 's/@''GNULIB_STRSEP''@/$(GL_GNULIB_STRSEP)/g' \
9635 + -e 's/@''GNULIB_STRSTR''@/$(GL_GNULIB_STRSTR)/g' \
9636 + -e 's/@''GNULIB_STRCASESTR''@/$(GL_GNULIB_STRCASESTR)/g' \
9637 + -e 's/@''GNULIB_STRTOK_R''@/$(GL_GNULIB_STRTOK_R)/g' \
9638 + -e 's/@''GNULIB_STRERROR''@/$(GL_GNULIB_STRERROR)/g' \
9639 + -e 's/@''GNULIB_STRERROR_R''@/$(GL_GNULIB_STRERROR_R)/g' \
9640 + -e 's/@''GNULIB_STRERRORNAME_NP''@/$(GL_GNULIB_STRERRORNAME_NP)/g' \
9641 + -e 's/@''GNULIB_SIGABBREV_NP''@/$(GL_GNULIB_SIGABBREV_NP)/g' \
9642 + -e 's/@''GNULIB_SIGDESCR_NP''@/$(GL_GNULIB_SIGDESCR_NP)/g' \
9643 + -e 's/@''GNULIB_STRSIGNAL''@/$(GL_GNULIB_STRSIGNAL)/g' \
9644 + -e 's/@''GNULIB_STRVERSCMP''@/$(GL_GNULIB_STRVERSCMP)/g' \
9645 + -e 's/@''GNULIB_MDA_MEMCCPY''@/$(GL_GNULIB_MDA_MEMCCPY)/g' \
9646 + -e 's/@''GNULIB_MDA_STRDUP''@/$(GL_GNULIB_MDA_STRDUP)/g' \
9647 + -e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
9648 < $(srcdir)/string.in.h | \
9649 sed -e 's|@''HAVE_EXPLICIT_BZERO''@|$(HAVE_EXPLICIT_BZERO)|g' \
9650 -e 's|@''HAVE_FFSL''@|$(HAVE_FFSL)|g' \
9651 -e 's|@''HAVE_FFSLL''@|$(HAVE_FFSLL)|g' \
9652 -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
9653 - -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \
9654 -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
9655 -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
9656 -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
9657 @@ -3290,10 +5469,15 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
9658 -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
9659 -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
9660 -e 's|@''HAVE_DECL_STRERROR_R''@|$(HAVE_DECL_STRERROR_R)|g' \
9661 + -e 's|@''HAVE_STRERRORNAME_NP''@|$(HAVE_STRERRORNAME_NP)|g' \
9662 + -e 's|@''HAVE_SIGABBREV_NP''@|$(HAVE_SIGABBREV_NP)|g' \
9663 + -e 's|@''HAVE_SIGDESCR_NP''@|$(HAVE_SIGDESCR_NP)|g' \
9664 -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
9665 -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
9666 + -e 's|@''REPLACE_FFSLL''@|$(REPLACE_FFSLL)|g' \
9667 -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
9668 -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
9669 + -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
9670 -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
9671 -e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \
9672 -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
9673 @@ -3305,67 +5489,70 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
9674 -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
9675 -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
9676 -e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \
9677 + -e 's|@''REPLACE_STRERRORNAME_NP''@|$(REPLACE_STRERRORNAME_NP)|g' \
9678 -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
9679 -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
9680 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
9681 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
9682 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
9683 - < $(srcdir)/string.in.h; \
9684 - } > $@-t && \
9685 - mv $@-t $@
9686 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
9687 + > $@-t
9688 + $(AM_V_at)mv $@-t $@
9689
9690 # We need the following in order to create <strings.h> when the system
9691 # doesn't have one that works with the given compiler.
9692 strings.h: strings.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
9693 - $(AM_V_GEN)rm -f $@-t $@ && \
9694 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
9695 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
9696 + $(gl_V_at)$(SED_HEADER_STDOUT) \
9697 + -e 's|@''GUARD_PREFIX''@|GL|g' \
9698 -e 's|@''HAVE_STRINGS_H''@|$(HAVE_STRINGS_H)|g' \
9699 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
9700 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
9701 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
9702 -e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
9703 - -e 's/@''GNULIB_FFS''@/$(GNULIB_FFS)/g' \
9704 + -e 's/@''GNULIB_FFS''@/$(GL_GNULIB_FFS)/g' \
9705 -e 's|@''HAVE_FFS''@|$(HAVE_FFS)|g' \
9706 -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
9707 -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
9708 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
9709 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
9710 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
9711 - < $(srcdir)/strings.in.h; \
9712 - } > $@-t && \
9713 - mv $@-t $@
9714 + $(srcdir)/strings.in.h > $@-t
9715 + $(AM_V_at)mv $@-t $@
9716
9717 # We need the following in order to create <sys/stat.h> when the system
9718 # has one that is incomplete.
9719 sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
9720 - $(AM_V_at)$(MKDIR_P) sys
9721 - $(AM_V_GEN)rm -f $@-t $@ && \
9722 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
9723 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
9724 + $(AM_V_GEN)$(MKDIR_P) 'sys'
9725 + $(AM_V_at)$(SED_HEADER_STDOUT) \
9726 + -e 's|@''GUARD_PREFIX''@|GL|g' \
9727 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
9728 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
9729 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
9730 -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
9731 -e 's|@''WINDOWS_64_BIT_ST_SIZE''@|$(WINDOWS_64_BIT_ST_SIZE)|g' \
9732 -e 's|@''WINDOWS_STAT_TIMESPEC''@|$(WINDOWS_STAT_TIMESPEC)|g' \
9733 - -e 's/@''GNULIB_FCHMODAT''@/$(GNULIB_FCHMODAT)/g' \
9734 - -e 's/@''GNULIB_FSTAT''@/$(GNULIB_FSTAT)/g' \
9735 - -e 's/@''GNULIB_FSTATAT''@/$(GNULIB_FSTATAT)/g' \
9736 - -e 's/@''GNULIB_FUTIMENS''@/$(GNULIB_FUTIMENS)/g' \
9737 - -e 's/@''GNULIB_LCHMOD''@/$(GNULIB_LCHMOD)/g' \
9738 - -e 's/@''GNULIB_LSTAT''@/$(GNULIB_LSTAT)/g' \
9739 - -e 's/@''GNULIB_MKDIRAT''@/$(GNULIB_MKDIRAT)/g' \
9740 - -e 's/@''GNULIB_MKFIFO''@/$(GNULIB_MKFIFO)/g' \
9741 - -e 's/@''GNULIB_MKFIFOAT''@/$(GNULIB_MKFIFOAT)/g' \
9742 - -e 's/@''GNULIB_MKNOD''@/$(GNULIB_MKNOD)/g' \
9743 - -e 's/@''GNULIB_MKNODAT''@/$(GNULIB_MKNODAT)/g' \
9744 - -e 's/@''GNULIB_STAT''@/$(GNULIB_STAT)/g' \
9745 - -e 's/@''GNULIB_UTIMENSAT''@/$(GNULIB_UTIMENSAT)/g' \
9746 - -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GNULIB_OVERRIDES_STRUCT_STAT)/g' \
9747 + -e 's/@''GNULIB_FCHMODAT''@/$(GL_GNULIB_FCHMODAT)/g' \
9748 + -e 's/@''GNULIB_FSTAT''@/$(GL_GNULIB_FSTAT)/g' \
9749 + -e 's/@''GNULIB_FSTATAT''@/$(GL_GNULIB_FSTATAT)/g' \
9750 + -e 's/@''GNULIB_FUTIMENS''@/$(GL_GNULIB_FUTIMENS)/g' \
9751 + -e 's/@''GNULIB_GETUMASK''@/$(GL_GNULIB_GETUMASK)/g' \
9752 + -e 's/@''GNULIB_LCHMOD''@/$(GL_GNULIB_LCHMOD)/g' \
9753 + -e 's/@''GNULIB_LSTAT''@/$(GL_GNULIB_LSTAT)/g' \
9754 + -e 's/@''GNULIB_MKDIR''@/$(GL_GNULIB_MKDIR)/g' \
9755 + -e 's/@''GNULIB_MKDIRAT''@/$(GL_GNULIB_MKDIRAT)/g' \
9756 + -e 's/@''GNULIB_MKFIFO''@/$(GL_GNULIB_MKFIFO)/g' \
9757 + -e 's/@''GNULIB_MKFIFOAT''@/$(GL_GNULIB_MKFIFOAT)/g' \
9758 + -e 's/@''GNULIB_MKNOD''@/$(GL_GNULIB_MKNOD)/g' \
9759 + -e 's/@''GNULIB_MKNODAT''@/$(GL_GNULIB_MKNODAT)/g' \
9760 + -e 's/@''GNULIB_STAT''@/$(GL_GNULIB_STAT)/g' \
9761 + -e 's/@''GNULIB_UTIMENSAT''@/$(GL_GNULIB_UTIMENSAT)/g' \
9762 + -e 's/@''GNULIB_OVERRIDES_STRUCT_STAT''@/$(GL_GNULIB_OVERRIDES_STRUCT_STAT)/g' \
9763 + -e 's/@''GNULIB_MDA_CHMOD''@/$(GL_GNULIB_MDA_CHMOD)/g' \
9764 + -e 's/@''GNULIB_MDA_MKDIR''@/$(GL_GNULIB_MDA_MKDIR)/g' \
9765 + -e 's/@''GNULIB_MDA_UMASK''@/$(GL_GNULIB_MDA_UMASK)/g' \
9766 -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
9767 -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
9768 -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
9769 + -e 's|@''HAVE_GETUMASK''@|$(HAVE_GETUMASK)|g' \
9770 -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
9771 -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
9772 -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
9773 @@ -3374,35 +5561,36 @@ sys/stat.h: sys_stat.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU
9774 -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
9775 -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
9776 -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
9777 + -e 's|@''REPLACE_FCHMODAT''@|$(REPLACE_FCHMODAT)|g' \
9778 -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
9779 -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
9780 -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
9781 -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
9782 -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
9783 -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
9784 + -e 's|@''REPLACE_MKFIFOAT''@|$(REPLACE_MKFIFOAT)|g' \
9785 -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
9786 + -e 's|@''REPLACE_MKNODAT''@|$(REPLACE_MKNODAT)|g' \
9787 -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
9788 -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
9789 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
9790 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
9791 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
9792 - < $(srcdir)/sys_stat.in.h; \
9793 - } > $@-t && \
9794 - mv $@-t $@
9795 + $(srcdir)/sys_stat.in.h > $@-t
9796 + $(AM_V_at)mv $@-t $@
9797
9798 # We need the following in order to create <sys/time.h> when the system
9799 # doesn't have one that works with the given compiler.
9800 sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
9801 - $(AM_V_at)$(MKDIR_P) sys
9802 - $(AM_V_GEN)rm -f $@-t $@ && \
9803 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
9804 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
9805 + $(AM_V_GEN)$(MKDIR_P) 'sys'
9806 + $(AM_V_at)$(SED_HEADER_STDOUT) \
9807 + -e 's|@''GUARD_PREFIX''@|GL|g' \
9808 -e 's/@''HAVE_SYS_TIME_H''@/$(HAVE_SYS_TIME_H)/g' \
9809 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
9810 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
9811 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
9812 -e 's|@''NEXT_SYS_TIME_H''@|$(NEXT_SYS_TIME_H)|g' \
9813 - -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GNULIB_GETTIMEOFDAY)/g' \
9814 + -e 's/@''GNULIB_GETTIMEOFDAY''@/$(GL_GNULIB_GETTIMEOFDAY)/g' \
9815 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
9816 -e 's/@''HAVE_GETTIMEOFDAY''@/$(HAVE_GETTIMEOFDAY)/g' \
9817 -e 's/@''HAVE_STRUCT_TIMEVAL''@/$(HAVE_STRUCT_TIMEVAL)/g' \
9818 @@ -3411,53 +5599,53 @@ sys/time.h: sys_time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNU
9819 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
9820 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
9821 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
9822 - < $(srcdir)/sys_time.in.h; \
9823 - } > $@-t && \
9824 - mv $@-t $@
9825 + $(srcdir)/sys_time.in.h > $@-t
9826 + $(AM_V_at)mv $@-t $@
9827
9828 # We need the following in order to create <sys/types.h> when the system
9829 # doesn't have one that works with the given compiler.
9830 sys/types.h: sys_types.in.h $(top_builddir)/config.status
9831 - $(AM_V_at)$(MKDIR_P) sys
9832 - $(AM_V_GEN)rm -f $@-t $@ && \
9833 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
9834 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
9835 + $(AM_V_GEN)$(MKDIR_P) 'sys'
9836 + $(AM_V_at)$(SED_HEADER_STDOUT) \
9837 + -e 's|@''GUARD_PREFIX''@|GL|g' \
9838 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
9839 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
9840 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
9841 -e 's|@''NEXT_SYS_TYPES_H''@|$(NEXT_SYS_TYPES_H)|g' \
9842 -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
9843 -e 's|@''WINDOWS_STAT_INODES''@|$(WINDOWS_STAT_INODES)|g' \
9844 - < $(srcdir)/sys_types.in.h; \
9845 - } > $@-t && \
9846 - mv $@-t $@
9847 + $(srcdir)/sys_types.in.h > $@-t
9848 + $(AM_V_at)mv $@-t $@
9849
9850 # We need the following in order to create <time.h> when the system
9851 # doesn't have one that works with the given compiler.
9852 time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
9853 - $(AM_V_GEN)rm -f $@-t $@ && \
9854 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
9855 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
9856 + $(gl_V_at)$(SED_HEADER_STDOUT) \
9857 + -e 's|@''GUARD_PREFIX''@|GL|g' \
9858 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
9859 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
9860 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
9861 -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
9862 - -e 's/@''GNULIB_CTIME''@/$(GNULIB_CTIME)/g' \
9863 - -e 's/@''GNULIB_LOCALTIME''@/$(GNULIB_LOCALTIME)/g' \
9864 - -e 's/@''GNULIB_MKTIME''@/$(GNULIB_MKTIME)/g' \
9865 - -e 's/@''GNULIB_NANOSLEEP''@/$(GNULIB_NANOSLEEP)/g' \
9866 - -e 's/@''GNULIB_STRFTIME''@/$(GNULIB_STRFTIME)/g' \
9867 - -e 's/@''GNULIB_STRPTIME''@/$(GNULIB_STRPTIME)/g' \
9868 - -e 's/@''GNULIB_TIMEGM''@/$(GNULIB_TIMEGM)/g' \
9869 - -e 's/@''GNULIB_TIME_R''@/$(GNULIB_TIME_R)/g' \
9870 - -e 's/@''GNULIB_TIME_RZ''@/$(GNULIB_TIME_RZ)/g' \
9871 - -e 's/@''GNULIB_TZSET''@/$(GNULIB_TZSET)/g' \
9872 + -e 's/@''GNULIB_CTIME''@/$(GL_GNULIB_CTIME)/g' \
9873 + -e 's/@''GNULIB_LOCALTIME''@/$(GL_GNULIB_LOCALTIME)/g' \
9874 + -e 's/@''GNULIB_MKTIME''@/$(GL_GNULIB_MKTIME)/g' \
9875 + -e 's/@''GNULIB_NANOSLEEP''@/$(GL_GNULIB_NANOSLEEP)/g' \
9876 + -e 's/@''GNULIB_STRFTIME''@/$(GL_GNULIB_STRFTIME)/g' \
9877 + -e 's/@''GNULIB_STRPTIME''@/$(GL_GNULIB_STRPTIME)/g' \
9878 + -e 's/@''GNULIB_TIMEGM''@/$(GL_GNULIB_TIMEGM)/g' \
9879 + -e 's/@''GNULIB_TIMESPEC_GET''@/$(GL_GNULIB_TIMESPEC_GET)/g' \
9880 + -e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GL_GNULIB_TIMESPEC_GETRES)/g' \
9881 + -e 's/@''GNULIB_TIME_R''@/$(GL_GNULIB_TIME_R)/g' \
9882 + -e 's/@''GNULIB_TIME_RZ''@/$(GL_GNULIB_TIME_RZ)/g' \
9883 + -e 's/@''GNULIB_TZSET''@/$(GL_GNULIB_TZSET)/g' \
9884 + -e 's/@''GNULIB_MDA_TZSET''@/$(GL_GNULIB_MDA_TZSET)/g' \
9885 -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
9886 -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
9887 -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
9888 -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
9889 + -e 's|@''HAVE_TIMESPEC_GET''@|$(HAVE_TIMESPEC_GET)|g' \
9890 + -e 's|@''HAVE_TIMESPEC_GETRES''@|$(HAVE_TIMESPEC_GETRES)|g' \
9891 -e 's|@''HAVE_TIMEZONE_T''@|$(HAVE_TIMEZONE_T)|g' \
9892 - -e 's|@''HAVE_TZSET''@|$(HAVE_TZSET)|g' \
9893 -e 's|@''REPLACE_CTIME''@|$(REPLACE_CTIME)|g' \
9894 -e 's|@''REPLACE_GMTIME''@|$(REPLACE_GMTIME)|g' \
9895 -e 's|@''REPLACE_LOCALTIME''@|$(REPLACE_LOCALTIME)|g' \
9896 @@ -3471,81 +5659,114 @@ time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
9897 -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
9898 -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
9899 -e 's|@''UNISTD_H_DEFINES_STRUCT_TIMESPEC''@|$(UNISTD_H_DEFINES_STRUCT_TIMESPEC)|g' \
9900 + -e 's|@''TIME_H_DEFINES_TIME_UTC''@|$(TIME_H_DEFINES_TIME_UTC)|g' \
9901 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
9902 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
9903 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
9904 - < $(srcdir)/time.in.h; \
9905 - } > $@-t && \
9906 - mv $@-t $@
9907 + $(srcdir)/time.in.h > $@-t
9908 + $(AM_V_at)mv $@-t $@
9909
9910 # We need the following in order to create an empty placeholder for
9911 # <unistd.h> when the system doesn't have one.
9912 unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
9913 - $(AM_V_GEN)rm -f $@-t $@ && \
9914 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
9915 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
9916 + $(gl_V_at)$(SED_HEADER_STDOUT) \
9917 + -e 's|@''GUARD_PREFIX''@|GL|g' \
9918 -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
9919 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
9920 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
9921 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
9922 -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
9923 -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
9924 - -e 's/@''GNULIB_CHDIR''@/$(GNULIB_CHDIR)/g' \
9925 - -e 's/@''GNULIB_CHOWN''@/$(GNULIB_CHOWN)/g' \
9926 - -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \
9927 - -e 's/@''GNULIB_DUP''@/$(GNULIB_DUP)/g' \
9928 - -e 's/@''GNULIB_DUP2''@/$(GNULIB_DUP2)/g' \
9929 - -e 's/@''GNULIB_DUP3''@/$(GNULIB_DUP3)/g' \
9930 - -e 's/@''GNULIB_ENVIRON''@/$(GNULIB_ENVIRON)/g' \
9931 - -e 's/@''GNULIB_EUIDACCESS''@/$(GNULIB_EUIDACCESS)/g' \
9932 - -e 's/@''GNULIB_FACCESSAT''@/$(GNULIB_FACCESSAT)/g' \
9933 - -e 's/@''GNULIB_FCHDIR''@/$(GNULIB_FCHDIR)/g' \
9934 - -e 's/@''GNULIB_FCHOWNAT''@/$(GNULIB_FCHOWNAT)/g' \
9935 - -e 's/@''GNULIB_FDATASYNC''@/$(GNULIB_FDATASYNC)/g' \
9936 - -e 's/@''GNULIB_FSYNC''@/$(GNULIB_FSYNC)/g' \
9937 - -e 's/@''GNULIB_FTRUNCATE''@/$(GNULIB_FTRUNCATE)/g' \
9938 - -e 's/@''GNULIB_GETCWD''@/$(GNULIB_GETCWD)/g' \
9939 - -e 's/@''GNULIB_GETDOMAINNAME''@/$(GNULIB_GETDOMAINNAME)/g' \
9940 - -e 's/@''GNULIB_GETDTABLESIZE''@/$(GNULIB_GETDTABLESIZE)/g' \
9941 - -e 's/@''GNULIB_GETGROUPS''@/$(GNULIB_GETGROUPS)/g' \
9942 - -e 's/@''GNULIB_GETHOSTNAME''@/$(GNULIB_GETHOSTNAME)/g' \
9943 - -e 's/@''GNULIB_GETLOGIN''@/$(GNULIB_GETLOGIN)/g' \
9944 - -e 's/@''GNULIB_GETLOGIN_R''@/$(GNULIB_GETLOGIN_R)/g' \
9945 - -e 's/@''GNULIB_GETPAGESIZE''@/$(GNULIB_GETPAGESIZE)/g' \
9946 - -e 's/@''GNULIB_GETPASS''@/$(GNULIB_GETPASS)/g' \
9947 - -e 's/@''GNULIB_GETUSERSHELL''@/$(GNULIB_GETUSERSHELL)/g' \
9948 - -e 's/@''GNULIB_GROUP_MEMBER''@/$(GNULIB_GROUP_MEMBER)/g' \
9949 - -e 's/@''GNULIB_ISATTY''@/$(GNULIB_ISATTY)/g' \
9950 - -e 's/@''GNULIB_LCHOWN''@/$(GNULIB_LCHOWN)/g' \
9951 - -e 's/@''GNULIB_LINK''@/$(GNULIB_LINK)/g' \
9952 - -e 's/@''GNULIB_LINKAT''@/$(GNULIB_LINKAT)/g' \
9953 - -e 's/@''GNULIB_LSEEK''@/$(GNULIB_LSEEK)/g' \
9954 - -e 's/@''GNULIB_PIPE''@/$(GNULIB_PIPE)/g' \
9955 - -e 's/@''GNULIB_PIPE2''@/$(GNULIB_PIPE2)/g' \
9956 - -e 's/@''GNULIB_PREAD''@/$(GNULIB_PREAD)/g' \
9957 - -e 's/@''GNULIB_PWRITE''@/$(GNULIB_PWRITE)/g' \
9958 - -e 's/@''GNULIB_READ''@/$(GNULIB_READ)/g' \
9959 - -e 's/@''GNULIB_READLINK''@/$(GNULIB_READLINK)/g' \
9960 - -e 's/@''GNULIB_READLINKAT''@/$(GNULIB_READLINKAT)/g' \
9961 - -e 's/@''GNULIB_RMDIR''@/$(GNULIB_RMDIR)/g' \
9962 - -e 's/@''GNULIB_SETHOSTNAME''@/$(GNULIB_SETHOSTNAME)/g' \
9963 - -e 's/@''GNULIB_SLEEP''@/$(GNULIB_SLEEP)/g' \
9964 - -e 's/@''GNULIB_SYMLINK''@/$(GNULIB_SYMLINK)/g' \
9965 - -e 's/@''GNULIB_SYMLINKAT''@/$(GNULIB_SYMLINKAT)/g' \
9966 - -e 's/@''GNULIB_TRUNCATE''@/$(GNULIB_TRUNCATE)/g' \
9967 - -e 's/@''GNULIB_TTYNAME_R''@/$(GNULIB_TTYNAME_R)/g' \
9968 - -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GNULIB_GL_UNISTD_H_GETOPT)/g' \
9969 - -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GNULIB_UNISTD_H_NONBLOCKING)/g' \
9970 - -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GNULIB_UNISTD_H_SIGPIPE)/g' \
9971 - -e 's/@''GNULIB_UNLINK''@/$(GNULIB_UNLINK)/g' \
9972 - -e 's/@''GNULIB_UNLINKAT''@/$(GNULIB_UNLINKAT)/g' \
9973 - -e 's/@''GNULIB_USLEEP''@/$(GNULIB_USLEEP)/g' \
9974 - -e 's/@''GNULIB_WRITE''@/$(GNULIB_WRITE)/g' \
9975 + -e 's/@''GNULIB_ACCESS''@/$(GL_GNULIB_ACCESS)/g' \
9976 + -e 's/@''GNULIB_CHDIR''@/$(GL_GNULIB_CHDIR)/g' \
9977 + -e 's/@''GNULIB_CHOWN''@/$(GL_GNULIB_CHOWN)/g' \
9978 + -e 's/@''GNULIB_CLOSE''@/$(GL_GNULIB_CLOSE)/g' \
9979 + -e 's/@''GNULIB_COPY_FILE_RANGE''@/$(GL_GNULIB_COPY_FILE_RANGE)/g' \
9980 + -e 's/@''GNULIB_DUP''@/$(GL_GNULIB_DUP)/g' \
9981 + -e 's/@''GNULIB_DUP2''@/$(GL_GNULIB_DUP2)/g' \
9982 + -e 's/@''GNULIB_DUP3''@/$(GL_GNULIB_DUP3)/g' \
9983 + -e 's/@''GNULIB_ENVIRON''@/$(GL_GNULIB_ENVIRON)/g' \
9984 + -e 's/@''GNULIB_EUIDACCESS''@/$(GL_GNULIB_EUIDACCESS)/g' \
9985 + -e 's/@''GNULIB_EXECL''@/$(GL_GNULIB_EXECL)/g' \
9986 + -e 's/@''GNULIB_EXECLE''@/$(GL_GNULIB_EXECLE)/g' \
9987 + -e 's/@''GNULIB_EXECLP''@/$(GL_GNULIB_EXECLP)/g' \
9988 + -e 's/@''GNULIB_EXECV''@/$(GL_GNULIB_EXECV)/g' \
9989 + -e 's/@''GNULIB_EXECVE''@/$(GL_GNULIB_EXECVE)/g' \
9990 + -e 's/@''GNULIB_EXECVP''@/$(GL_GNULIB_EXECVP)/g' \
9991 + -e 's/@''GNULIB_EXECVPE''@/$(GL_GNULIB_EXECVPE)/g' \
9992 + -e 's/@''GNULIB_FACCESSAT''@/$(GL_GNULIB_FACCESSAT)/g' \
9993 + -e 's/@''GNULIB_FCHDIR''@/$(GL_GNULIB_FCHDIR)/g' \
9994 + -e 's/@''GNULIB_FCHOWNAT''@/$(GL_GNULIB_FCHOWNAT)/g' \
9995 + -e 's/@''GNULIB_FDATASYNC''@/$(GL_GNULIB_FDATASYNC)/g' \
9996 + -e 's/@''GNULIB_FSYNC''@/$(GL_GNULIB_FSYNC)/g' \
9997 + -e 's/@''GNULIB_FTRUNCATE''@/$(GL_GNULIB_FTRUNCATE)/g' \
9998 + -e 's/@''GNULIB_GETCWD''@/$(GL_GNULIB_GETCWD)/g' \
9999 + -e 's/@''GNULIB_GETDOMAINNAME''@/$(GL_GNULIB_GETDOMAINNAME)/g' \
10000 + -e 's/@''GNULIB_GETDTABLESIZE''@/$(GL_GNULIB_GETDTABLESIZE)/g' \
10001 + -e 's/@''GNULIB_GETENTROPY''@/$(GL_GNULIB_GETENTROPY)/g' \
10002 + -e 's/@''GNULIB_GETGROUPS''@/$(GL_GNULIB_GETGROUPS)/g' \
10003 + -e 's/@''GNULIB_GETHOSTNAME''@/$(GL_GNULIB_GETHOSTNAME)/g' \
10004 + -e 's/@''GNULIB_GETLOGIN''@/$(GL_GNULIB_GETLOGIN)/g' \
10005 + -e 's/@''GNULIB_GETLOGIN_R''@/$(GL_GNULIB_GETLOGIN_R)/g' \
10006 + -e 's/@''GNULIB_GETOPT_POSIX''@/$(GL_GNULIB_GETOPT_POSIX)/g' \
10007 + -e 's/@''GNULIB_GETPAGESIZE''@/$(GL_GNULIB_GETPAGESIZE)/g' \
10008 + -e 's/@''GNULIB_GETPASS''@/$(GL_GNULIB_GETPASS)/g' \
10009 + -e 's/@''GNULIB_GETPASS_GNU''@/$(GL_GNULIB_GETPASS_GNU)/g' \
10010 + -e 's/@''GNULIB_GETUSERSHELL''@/$(GL_GNULIB_GETUSERSHELL)/g' \
10011 + -e 's/@''GNULIB_GROUP_MEMBER''@/$(GL_GNULIB_GROUP_MEMBER)/g' \
10012 + -e 's/@''GNULIB_ISATTY''@/$(GL_GNULIB_ISATTY)/g' \
10013 + -e 's/@''GNULIB_LCHOWN''@/$(GL_GNULIB_LCHOWN)/g' \
10014 + -e 's/@''GNULIB_LINK''@/$(GL_GNULIB_LINK)/g' \
10015 + -e 's/@''GNULIB_LINKAT''@/$(GL_GNULIB_LINKAT)/g' \
10016 + -e 's/@''GNULIB_LSEEK''@/$(GL_GNULIB_LSEEK)/g' \
10017 + -e 's/@''GNULIB_PIPE''@/$(GL_GNULIB_PIPE)/g' \
10018 + -e 's/@''GNULIB_PIPE2''@/$(GL_GNULIB_PIPE2)/g' \
10019 + -e 's/@''GNULIB_PREAD''@/$(GL_GNULIB_PREAD)/g' \
10020 + -e 's/@''GNULIB_PWRITE''@/$(GL_GNULIB_PWRITE)/g' \
10021 + -e 's/@''GNULIB_READ''@/$(GL_GNULIB_READ)/g' \
10022 + -e 's/@''GNULIB_READLINK''@/$(GL_GNULIB_READLINK)/g' \
10023 + -e 's/@''GNULIB_READLINKAT''@/$(GL_GNULIB_READLINKAT)/g' \
10024 + -e 's/@''GNULIB_RMDIR''@/$(GL_GNULIB_RMDIR)/g' \
10025 + -e 's/@''GNULIB_SETHOSTNAME''@/$(GL_GNULIB_SETHOSTNAME)/g' \
10026 + -e 's/@''GNULIB_SLEEP''@/$(GL_GNULIB_SLEEP)/g' \
10027 + -e 's/@''GNULIB_SYMLINK''@/$(GL_GNULIB_SYMLINK)/g' \
10028 + -e 's/@''GNULIB_SYMLINKAT''@/$(GL_GNULIB_SYMLINKAT)/g' \
10029 + -e 's/@''GNULIB_TRUNCATE''@/$(GL_GNULIB_TRUNCATE)/g' \
10030 + -e 's/@''GNULIB_TTYNAME_R''@/$(GL_GNULIB_TTYNAME_R)/g' \
10031 + -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GL_GNULIB_UNISTD_H_GETOPT)/g' \
10032 + -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GL_GNULIB_UNISTD_H_NONBLOCKING)/g' \
10033 + -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GL_GNULIB_UNISTD_H_SIGPIPE)/g' \
10034 + -e 's/@''GNULIB_UNLINK''@/$(GL_GNULIB_UNLINK)/g' \
10035 + -e 's/@''GNULIB_UNLINKAT''@/$(GL_GNULIB_UNLINKAT)/g' \
10036 + -e 's/@''GNULIB_USLEEP''@/$(GL_GNULIB_USLEEP)/g' \
10037 + -e 's/@''GNULIB_WRITE''@/$(GL_GNULIB_WRITE)/g' \
10038 + -e 's/@''GNULIB_MDA_ACCESS''@/$(GL_GNULIB_MDA_ACCESS)/g' \
10039 + -e 's/@''GNULIB_MDA_CHDIR''@/$(GL_GNULIB_MDA_CHDIR)/g' \
10040 + -e 's/@''GNULIB_MDA_CLOSE''@/$(GL_GNULIB_MDA_CLOSE)/g' \
10041 + -e 's/@''GNULIB_MDA_DUP''@/$(GL_GNULIB_MDA_DUP)/g' \
10042 + -e 's/@''GNULIB_MDA_DUP2''@/$(GL_GNULIB_MDA_DUP2)/g' \
10043 + -e 's/@''GNULIB_MDA_EXECL''@/$(GL_GNULIB_MDA_EXECL)/g' \
10044 + -e 's/@''GNULIB_MDA_EXECLE''@/$(GL_GNULIB_MDA_EXECLE)/g' \
10045 + -e 's/@''GNULIB_MDA_EXECLP''@/$(GL_GNULIB_MDA_EXECLP)/g' \
10046 + -e 's/@''GNULIB_MDA_EXECV''@/$(GL_GNULIB_MDA_EXECV)/g' \
10047 + -e 's/@''GNULIB_MDA_EXECVE''@/$(GL_GNULIB_MDA_EXECVE)/g' \
10048 + -e 's/@''GNULIB_MDA_EXECVP''@/$(GL_GNULIB_MDA_EXECVP)/g' \
10049 + -e 's/@''GNULIB_MDA_EXECVPE''@/$(GL_GNULIB_MDA_EXECVPE)/g' \
10050 + -e 's/@''GNULIB_MDA_GETCWD''@/$(GL_GNULIB_MDA_GETCWD)/g' \
10051 + -e 's/@''GNULIB_MDA_GETPID''@/$(GL_GNULIB_MDA_GETPID)/g' \
10052 + -e 's/@''GNULIB_MDA_ISATTY''@/$(GL_GNULIB_MDA_ISATTY)/g' \
10053 + -e 's/@''GNULIB_MDA_LSEEK''@/$(GL_GNULIB_MDA_LSEEK)/g' \
10054 + -e 's/@''GNULIB_MDA_READ''@/$(GL_GNULIB_MDA_READ)/g' \
10055 + -e 's/@''GNULIB_MDA_RMDIR''@/$(GL_GNULIB_MDA_RMDIR)/g' \
10056 + -e 's/@''GNULIB_MDA_SWAB''@/$(GL_GNULIB_MDA_SWAB)/g' \
10057 + -e 's/@''GNULIB_MDA_UNLINK''@/$(GL_GNULIB_MDA_UNLINK)/g' \
10058 + -e 's/@''GNULIB_MDA_WRITE''@/$(GL_GNULIB_MDA_WRITE)/g' \
10059 < $(srcdir)/unistd.in.h | \
10060 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
10061 - -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
10062 + -e 's|@''HAVE_COPY_FILE_RANGE''@|$(HAVE_COPY_FILE_RANGE)|g' \
10063 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
10064 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
10065 + -e 's|@''HAVE_EXECVPE''@|$(HAVE_EXECVPE)|g' \
10066 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
10067 -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
10068 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
10069 @@ -3553,6 +5774,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
10070 -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
10071 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
10072 -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
10073 + -e 's|@''HAVE_GETENTROPY''@|$(HAVE_GETENTROPY)|g' \
10074 -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
10075 -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
10076 -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
10077 @@ -3574,6 +5796,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
10078 -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
10079 -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
10080 -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
10081 + -e 's|@''HAVE_DECL_EXECVPE''@|$(HAVE_DECL_EXECVPE)|g' \
10082 -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \
10083 -e 's|@''HAVE_DECL_FDATASYNC''@|$(HAVE_DECL_FDATASYNC)|g' \
10084 -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \
10085 @@ -3587,10 +5810,19 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
10086 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
10087 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
10088 | \
10089 - sed -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
10090 + sed -e 's|@''REPLACE_ACCESS''@|$(REPLACE_ACCESS)|g' \
10091 + -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
10092 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
10093 + -e 's|@''REPLACE_COPY_FILE_RANGE''@|$(REPLACE_COPY_FILE_RANGE)|g' \
10094 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
10095 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
10096 + -e 's|@''REPLACE_EXECL''@|$(REPLACE_EXECL)|g' \
10097 + -e 's|@''REPLACE_EXECLE''@|$(REPLACE_EXECLE)|g' \
10098 + -e 's|@''REPLACE_EXECLP''@|$(REPLACE_EXECLP)|g' \
10099 + -e 's|@''REPLACE_EXECV''@|$(REPLACE_EXECV)|g' \
10100 + -e 's|@''REPLACE_EXECVE''@|$(REPLACE_EXECVE)|g' \
10101 + -e 's|@''REPLACE_EXECVP''@|$(REPLACE_EXECVP)|g' \
10102 + -e 's|@''REPLACE_EXECVPE''@|$(REPLACE_EXECVPE)|g' \
10103 -e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \
10104 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
10105 -e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \
10106 @@ -3601,6 +5833,7 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
10107 -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
10108 -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
10109 -e 's|@''REPLACE_GETPASS''@|$(REPLACE_GETPASS)|g' \
10110 + -e 's|@''REPLACE_GETPASS_FOR_GETPASS_GNU''@|$(REPLACE_GETPASS_FOR_GETPASS_GNU)|g' \
10111 -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \
10112 -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
10113 -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
10114 @@ -3621,43 +5854,40 @@ unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
10115 -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
10116 -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
10117 -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
10118 + -e 's|@''UNISTD_H_HAVE_SYS_RANDOM_H''@|$(UNISTD_H_HAVE_SYS_RANDOM_H)|g' \
10119 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
10120 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
10121 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
10122 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
10123 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
10124 - } > $@-t && \
10125 - mv $@-t $@
10126 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
10127 + > $@-t
10128 + $(AM_V_at)mv $@-t $@
10129
10130 # We need the following in order to create <utime.h> when the system
10131 # doesn't have one that works with the given compiler.
10132 -@GL_GENERATE_UTIME_H_TRUE@utime.h: utime.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
10133 -@GL_GENERATE_UTIME_H_TRUE@ $(AM_V_GEN)rm -f $@-t $@ && \
10134 -@GL_GENERATE_UTIME_H_TRUE@ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
10135 -@GL_GENERATE_UTIME_H_TRUE@ sed -e 's|@''GUARD_PREFIX''@|GL|g' \
10136 -@GL_GENERATE_UTIME_H_TRUE@ -e 's/@''HAVE_UTIME_H''@/$(HAVE_UTIME_H)/g' \
10137 -@GL_GENERATE_UTIME_H_TRUE@ -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
10138 -@GL_GENERATE_UTIME_H_TRUE@ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
10139 -@GL_GENERATE_UTIME_H_TRUE@ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
10140 -@GL_GENERATE_UTIME_H_TRUE@ -e 's|@''NEXT_UTIME_H''@|$(NEXT_UTIME_H)|g' \
10141 -@GL_GENERATE_UTIME_H_TRUE@ -e 's/@''GNULIB_UTIME''@/$(GNULIB_UTIME)/g' \
10142 -@GL_GENERATE_UTIME_H_TRUE@ -e 's|@''HAVE_UTIME''@|$(HAVE_UTIME)|g' \
10143 -@GL_GENERATE_UTIME_H_TRUE@ -e 's|@''REPLACE_UTIME''@|$(REPLACE_UTIME)|g' \
10144 -@GL_GENERATE_UTIME_H_TRUE@ -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
10145 -@GL_GENERATE_UTIME_H_TRUE@ -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
10146 -@GL_GENERATE_UTIME_H_TRUE@ -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
10147 -@GL_GENERATE_UTIME_H_TRUE@ < $(srcdir)/utime.in.h; \
10148 -@GL_GENERATE_UTIME_H_TRUE@ } > $@-t && \
10149 -@GL_GENERATE_UTIME_H_TRUE@ mv $@-t $@
10150 -@GL_GENERATE_UTIME_H_FALSE@utime.h: $(top_builddir)/config.status
10151 -@GL_GENERATE_UTIME_H_FALSE@ rm -f $@
10152 +utime.h: utime.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
10153 + $(gl_V_at)$(SED_HEADER_STDOUT) \
10154 + -e 's|@''GUARD_PREFIX''@|GL|g' \
10155 + -e 's/@''HAVE_UTIME_H''@/$(HAVE_UTIME_H)/g' \
10156 + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
10157 + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
10158 + -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
10159 + -e 's|@''NEXT_UTIME_H''@|$(NEXT_UTIME_H)|g' \
10160 + -e 's/@''GNULIB_UTIME''@/$(GL_GNULIB_UTIME)/g' \
10161 + -e 's/@''GNULIB_MDA_UTIME''@/$(GL_GNULIB_MDA_UTIME)/g' \
10162 + -e 's|@''HAVE_UTIME''@|$(HAVE_UTIME)|g' \
10163 + -e 's|@''REPLACE_UTIME''@|$(REPLACE_UTIME)|g' \
10164 + -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
10165 + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
10166 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
10167 + $(srcdir)/utime.in.h > $@-t
10168 + $(AM_V_at)mv $@-t $@
10169
10170 # We need the following in order to create <wchar.h> when the system
10171 # version does not work standalone.
10172 wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
10173 - $(AM_V_GEN)rm -f $@-t $@ && \
10174 - { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
10175 - sed -e 's|@''GUARD_PREFIX''@|GL|g' \
10176 + $(gl_V_at)$(SED_HEADER_STDOUT) \
10177 + -e 's|@''GUARD_PREFIX''@|GL|g' \
10178 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
10179 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
10180 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
10181 @@ -3665,47 +5895,50 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
10182 -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
10183 -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
10184 -e 's/@''HAVE_CRTDEFS_H''@/$(HAVE_CRTDEFS_H)/g' \
10185 - -e 's/@''GNULIB_OVERRIDES_WINT_T''@/$(GNULIB_OVERRIDES_WINT_T)/g' \
10186 - -e 's/@''GNULIB_BTOWC''@/$(GNULIB_BTOWC)/g' \
10187 - -e 's/@''GNULIB_WCTOB''@/$(GNULIB_WCTOB)/g' \
10188 - -e 's/@''GNULIB_MBSINIT''@/$(GNULIB_MBSINIT)/g' \
10189 - -e 's/@''GNULIB_MBRTOWC''@/$(GNULIB_MBRTOWC)/g' \
10190 - -e 's/@''GNULIB_MBRLEN''@/$(GNULIB_MBRLEN)/g' \
10191 - -e 's/@''GNULIB_MBSRTOWCS''@/$(GNULIB_MBSRTOWCS)/g' \
10192 - -e 's/@''GNULIB_MBSNRTOWCS''@/$(GNULIB_MBSNRTOWCS)/g' \
10193 - -e 's/@''GNULIB_WCRTOMB''@/$(GNULIB_WCRTOMB)/g' \
10194 - -e 's/@''GNULIB_WCSRTOMBS''@/$(GNULIB_WCSRTOMBS)/g' \
10195 - -e 's/@''GNULIB_WCSNRTOMBS''@/$(GNULIB_WCSNRTOMBS)/g' \
10196 - -e 's/@''GNULIB_WCWIDTH''@/$(GNULIB_WCWIDTH)/g' \
10197 - -e 's/@''GNULIB_WMEMCHR''@/$(GNULIB_WMEMCHR)/g' \
10198 - -e 's/@''GNULIB_WMEMCMP''@/$(GNULIB_WMEMCMP)/g' \
10199 - -e 's/@''GNULIB_WMEMCPY''@/$(GNULIB_WMEMCPY)/g' \
10200 - -e 's/@''GNULIB_WMEMMOVE''@/$(GNULIB_WMEMMOVE)/g' \
10201 - -e 's/@''GNULIB_WMEMSET''@/$(GNULIB_WMEMSET)/g' \
10202 - -e 's/@''GNULIB_WCSLEN''@/$(GNULIB_WCSLEN)/g' \
10203 - -e 's/@''GNULIB_WCSNLEN''@/$(GNULIB_WCSNLEN)/g' \
10204 - -e 's/@''GNULIB_WCSCPY''@/$(GNULIB_WCSCPY)/g' \
10205 - -e 's/@''GNULIB_WCPCPY''@/$(GNULIB_WCPCPY)/g' \
10206 - -e 's/@''GNULIB_WCSNCPY''@/$(GNULIB_WCSNCPY)/g' \
10207 - -e 's/@''GNULIB_WCPNCPY''@/$(GNULIB_WCPNCPY)/g' \
10208 - -e 's/@''GNULIB_WCSCAT''@/$(GNULIB_WCSCAT)/g' \
10209 - -e 's/@''GNULIB_WCSNCAT''@/$(GNULIB_WCSNCAT)/g' \
10210 - -e 's/@''GNULIB_WCSCMP''@/$(GNULIB_WCSCMP)/g' \
10211 - -e 's/@''GNULIB_WCSNCMP''@/$(GNULIB_WCSNCMP)/g' \
10212 - -e 's/@''GNULIB_WCSCASECMP''@/$(GNULIB_WCSCASECMP)/g' \
10213 - -e 's/@''GNULIB_WCSNCASECMP''@/$(GNULIB_WCSNCASECMP)/g' \
10214 - -e 's/@''GNULIB_WCSCOLL''@/$(GNULIB_WCSCOLL)/g' \
10215 - -e 's/@''GNULIB_WCSXFRM''@/$(GNULIB_WCSXFRM)/g' \
10216 - -e 's/@''GNULIB_WCSDUP''@/$(GNULIB_WCSDUP)/g' \
10217 - -e 's/@''GNULIB_WCSCHR''@/$(GNULIB_WCSCHR)/g' \
10218 - -e 's/@''GNULIB_WCSRCHR''@/$(GNULIB_WCSRCHR)/g' \
10219 - -e 's/@''GNULIB_WCSCSPN''@/$(GNULIB_WCSCSPN)/g' \
10220 - -e 's/@''GNULIB_WCSSPN''@/$(GNULIB_WCSSPN)/g' \
10221 - -e 's/@''GNULIB_WCSPBRK''@/$(GNULIB_WCSPBRK)/g' \
10222 - -e 's/@''GNULIB_WCSSTR''@/$(GNULIB_WCSSTR)/g' \
10223 - -e 's/@''GNULIB_WCSTOK''@/$(GNULIB_WCSTOK)/g' \
10224 - -e 's/@''GNULIB_WCSWIDTH''@/$(GNULIB_WCSWIDTH)/g' \
10225 - -e 's/@''GNULIB_WCSFTIME''@/$(GNULIB_WCSFTIME)/g' \
10226 + -e 's/@''GNULIBHEADERS_OVERRIDE_WINT_T''@/$(GNULIBHEADERS_OVERRIDE_WINT_T)/g' \
10227 + -e 's/@''GNULIB_BTOWC''@/$(GL_GNULIB_BTOWC)/g' \
10228 + -e 's/@''GNULIB_WCTOB''@/$(GL_GNULIB_WCTOB)/g' \
10229 + -e 's/@''GNULIB_MBSINIT''@/$(GL_GNULIB_MBSINIT)/g' \
10230 + -e 's/@''GNULIB_MBRTOWC''@/$(GL_GNULIB_MBRTOWC)/g' \
10231 + -e 's/@''GNULIB_MBRLEN''@/$(GL_GNULIB_MBRLEN)/g' \
10232 + -e 's/@''GNULIB_MBSRTOWCS''@/$(GL_GNULIB_MBSRTOWCS)/g' \
10233 + -e 's/@''GNULIB_MBSNRTOWCS''@/$(GL_GNULIB_MBSNRTOWCS)/g' \
10234 + -e 's/@''GNULIB_WCRTOMB''@/$(GL_GNULIB_WCRTOMB)/g' \
10235 + -e 's/@''GNULIB_WCSRTOMBS''@/$(GL_GNULIB_WCSRTOMBS)/g' \
10236 + -e 's/@''GNULIB_WCSNRTOMBS''@/$(GL_GNULIB_WCSNRTOMBS)/g' \
10237 + -e 's/@''GNULIB_WCWIDTH''@/$(GL_GNULIB_WCWIDTH)/g' \
10238 + -e 's/@''GNULIB_WMEMCHR''@/$(GL_GNULIB_WMEMCHR)/g' \
10239 + -e 's/@''GNULIB_WMEMCMP''@/$(GL_GNULIB_WMEMCMP)/g' \
10240 + -e 's/@''GNULIB_WMEMCPY''@/$(GL_GNULIB_WMEMCPY)/g' \
10241 + -e 's/@''GNULIB_WMEMMOVE''@/$(GL_GNULIB_WMEMMOVE)/g' \
10242 + -e 's/@''GNULIB_WMEMPCPY''@/$(GL_GNULIB_WMEMPCPY)/g' \
10243 + -e 's/@''GNULIB_WMEMSET''@/$(GL_GNULIB_WMEMSET)/g' \
10244 + -e 's/@''GNULIB_WCSLEN''@/$(GL_GNULIB_WCSLEN)/g' \
10245 + -e 's/@''GNULIB_WCSNLEN''@/$(GL_GNULIB_WCSNLEN)/g' \
10246 + -e 's/@''GNULIB_WCSCPY''@/$(GL_GNULIB_WCSCPY)/g' \
10247 + -e 's/@''GNULIB_WCPCPY''@/$(GL_GNULIB_WCPCPY)/g' \
10248 + -e 's/@''GNULIB_WCSNCPY''@/$(GL_GNULIB_WCSNCPY)/g' \
10249 + -e 's/@''GNULIB_WCPNCPY''@/$(GL_GNULIB_WCPNCPY)/g' \
10250 + -e 's/@''GNULIB_WCSCAT''@/$(GL_GNULIB_WCSCAT)/g' \
10251 + -e 's/@''GNULIB_WCSNCAT''@/$(GL_GNULIB_WCSNCAT)/g' \
10252 + -e 's/@''GNULIB_WCSCMP''@/$(GL_GNULIB_WCSCMP)/g' \
10253 + -e 's/@''GNULIB_WCSNCMP''@/$(GL_GNULIB_WCSNCMP)/g' \
10254 + -e 's/@''GNULIB_WCSCASECMP''@/$(GL_GNULIB_WCSCASECMP)/g' \
10255 + -e 's/@''GNULIB_WCSNCASECMP''@/$(GL_GNULIB_WCSNCASECMP)/g' \
10256 + -e 's/@''GNULIB_WCSCOLL''@/$(GL_GNULIB_WCSCOLL)/g' \
10257 + -e 's/@''GNULIB_WCSXFRM''@/$(GL_GNULIB_WCSXFRM)/g' \
10258 + -e 's/@''GNULIB_WCSDUP''@/$(GL_GNULIB_WCSDUP)/g' \
10259 + -e 's/@''GNULIB_WCSCHR''@/$(GL_GNULIB_WCSCHR)/g' \
10260 + -e 's/@''GNULIB_WCSRCHR''@/$(GL_GNULIB_WCSRCHR)/g' \
10261 + -e 's/@''GNULIB_WCSCSPN''@/$(GL_GNULIB_WCSCSPN)/g' \
10262 + -e 's/@''GNULIB_WCSSPN''@/$(GL_GNULIB_WCSSPN)/g' \
10263 + -e 's/@''GNULIB_WCSPBRK''@/$(GL_GNULIB_WCSPBRK)/g' \
10264 + -e 's/@''GNULIB_WCSSTR''@/$(GL_GNULIB_WCSSTR)/g' \
10265 + -e 's/@''GNULIB_WCSTOK''@/$(GL_GNULIB_WCSTOK)/g' \
10266 + -e 's/@''GNULIB_WCSWIDTH''@/$(GL_GNULIB_WCSWIDTH)/g' \
10267 + -e 's/@''GNULIB_WCSFTIME''@/$(GL_GNULIB_WCSFTIME)/g' \
10268 + -e 's/@''GNULIB_MDA_WCSDUP''@/$(GL_GNULIB_MDA_WCSDUP)/g' \
10269 + -e 's/@''GNULIB_FREE_POSIX''@/$(GL_GNULIB_FREE_POSIX)/g' \
10270 < $(srcdir)/wchar.in.h | \
10271 sed -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
10272 -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
10273 @@ -3721,6 +5954,7 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
10274 -e 's|@''HAVE_WMEMCMP''@|$(HAVE_WMEMCMP)|g' \
10275 -e 's|@''HAVE_WMEMCPY''@|$(HAVE_WMEMCPY)|g' \
10276 -e 's|@''HAVE_WMEMMOVE''@|$(HAVE_WMEMMOVE)|g' \
10277 + -e 's|@''HAVE_WMEMPCPY''@|$(HAVE_WMEMPCPY)|g' \
10278 -e 's|@''HAVE_WMEMSET''@|$(HAVE_WMEMSET)|g' \
10279 -e 's|@''HAVE_WCSLEN''@|$(HAVE_WCSLEN)|g' \
10280 -e 's|@''HAVE_WCSNLEN''@|$(HAVE_WCSNLEN)|g' \
10281 @@ -3747,11 +5981,13 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
10282 -e 's|@''HAVE_WCSWIDTH''@|$(HAVE_WCSWIDTH)|g' \
10283 -e 's|@''HAVE_WCSFTIME''@|$(HAVE_WCSFTIME)|g' \
10284 -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
10285 + -e 's|@''HAVE_DECL_WCSDUP''@|$(HAVE_DECL_WCSDUP)|g' \
10286 -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
10287 | \
10288 sed -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
10289 -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
10290 -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
10291 + -e 's|@''REPLACE_FREE''@|$(REPLACE_FREE)|g' \
10292 -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
10293 -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
10294 -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
10295 @@ -3763,11 +5999,12 @@ wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H)
10296 -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
10297 -e 's|@''REPLACE_WCSWIDTH''@|$(REPLACE_WCSWIDTH)|g' \
10298 -e 's|@''REPLACE_WCSFTIME''@|$(REPLACE_WCSFTIME)|g' \
10299 + -e 's|@''REPLACE_WCSTOK''@|$(REPLACE_WCSTOK)|g' \
10300 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
10301 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
10302 - -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
10303 - } > $@-t && \
10304 - mv $@-t $@
10305 + -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
10306 + > $@-t
10307 + $(AM_V_at)mv $@-t $@
10308
10309 mostlyclean-local: mostlyclean-generic
10310 @for dir in '' $(MOSTLYCLEANDIRS); do \
10311 @@ -3776,6 +6013,10 @@ mostlyclean-local: mostlyclean-generic
10312 fi; \
10313 done; \
10314 :
10315 +distclean-local: distclean-gnulib-libobjs
10316 +distclean-gnulib-libobjs:
10317 + -rm -f @gl_LIBOBJDEPS@
10318 +maintainer-clean-local: distclean-gnulib-libobjs
10319
10320 # Tell versions [3.59,3.63) of GNU make to not export all variables.
10321 # Otherwise a system limit (for SysV at least) may be exceeded.
10322
10323 diff --git a/autotools/gnulib/_Noreturn.h b/autotools/gnulib/_Noreturn.h
10324 index 94fdfaf..e914627 100644
10325 --- a/autotools/gnulib/_Noreturn.h
10326 +++ b/autotools/gnulib/_Noreturn.h
10327 @@ -1,10 +1,41 @@
10328 +/* A C macro for declaring that a function does not return.
10329 + Copyright (C) 2011-2022 Free Software Foundation, Inc.
10330 +
10331 + This program is free software: you can redistribute it and/or modify it
10332 + under the terms of the GNU Lesser General Public License as published
10333 + by the Free Software Foundation; either version 2 of the License, or
10334 + (at your option) any later version.
10335 +
10336 + This program is distributed in the hope that it will be useful,
10337 + but WITHOUT ANY WARRANTY; without even the implied warranty of
10338 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10339 + Lesser General Public License for more details.
10340 +
10341 + You should have received a copy of the GNU Lesser General Public License
10342 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
10343 +
10344 #ifndef _Noreturn
10345 -# if 201103 <= (defined __cplusplus ? __cplusplus : 0)
10346 +# if (defined __cplusplus \
10347 + && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \
10348 + || (defined _MSC_VER && 1900 <= _MSC_VER)) \
10349 + && 0)
10350 + /* [[noreturn]] is not practically usable, because with it the syntax
10351 + extern _Noreturn void func (...);
10352 + would not be valid; such a declaration would only be valid with 'extern'
10353 + and '_Noreturn' swapped, or without the 'extern' keyword. However, some
10354 + AIX system header files and several gnulib header files use precisely
10355 + this syntax with 'extern'. */
10356 # define _Noreturn [[noreturn]]
10357 -# elif (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
10358 - || 4 < __GNUC__ + (7 <= __GNUC_MINOR__))
10359 +# elif ((!defined __cplusplus || defined __clang__) \
10360 + && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
10361 + || (!defined __STRICT_ANSI__ \
10362 + && (4 < __GNUC__ + (7 <= __GNUC_MINOR__) \
10363 + || (defined __apple_build_version__ \
10364 + ? 6000000 <= __apple_build_version__ \
10365 + : 3 < __clang_major__ + (5 <= __clang_minor__))))))
10366 /* _Noreturn works as-is. */
10367 -# elif 2 < __GNUC__ + (8 <= __GNUC_MINOR__) || 0x5110 <= __SUNPRO_C
10368 +# elif (2 < __GNUC__ + (8 <= __GNUC_MINOR__) || defined __clang__ \
10369 + || 0x5110 <= __SUNPRO_C)
10370 # define _Noreturn __attribute__ ((__noreturn__))
10371 # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0)
10372 # define _Noreturn __declspec (noreturn)
10373
10374 diff --git a/autotools/gnulib/alloca.in.h b/autotools/gnulib/alloca.in.h
10375 index a581d58..e2b1461 100644
10376 --- a/autotools/gnulib/alloca.in.h
10377 +++ b/autotools/gnulib/alloca.in.h
10378 @@ -1,22 +1,20 @@
10379 /* Memory allocation on the stack.
10380
10381 - Copyright (C) 1995, 1999, 2001-2004, 2006-2019 Free Software Foundation,
10382 + Copyright (C) 1995, 1999, 2001-2004, 2006-2022 Free Software Foundation,
10383 Inc.
10384
10385 - This program is free software; you can redistribute it and/or modify it
10386 - under the terms of the GNU General Public License as published
10387 - by the Free Software Foundation; either version 3, or (at your option)
10388 - any later version.
10389 + This file is free software: you can redistribute it and/or modify
10390 + it under the terms of the GNU Lesser General Public License as
10391 + published by the Free Software Foundation; either version 2.1 of the
10392 + License, or (at your option) any later version.
10393
10394 - This program is distributed in the hope that it will be useful,
10395 + This file is distributed in the hope that it will be useful,
10396 but WITHOUT ANY WARRANTY; without even the implied warranty of
10397 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10398 - General Public License for more details.
10399 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10400 + GNU Lesser General Public License for more details.
10401
10402 - You should have received a copy of the GNU General Public
10403 - License along with this program; if not, see
10404 - <https://www.gnu.org/licenses/>.
10405 - */
10406 + You should have received a copy of the GNU Lesser General Public License
10407 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
10408
10409 /* Avoid using the symbol _ALLOCA_H here, as Bison assumes _ALLOCA_H
10410 means there is a real alloca function. */
10411 @@ -35,13 +33,16 @@
10412 */
10413
10414 #ifndef alloca
10415 -# ifdef __GNUC__
10416 - /* Some version of mingw have an <alloca.h> that causes trouble when
10417 - included after 'alloca' gets defined as a macro. As a workaround, include
10418 - this <alloca.h> first and define 'alloca' as a macro afterwards. */
10419 -# if (defined _WIN32 && ! defined __CYGWIN__) && @HAVE_ALLOCA_H@
10420 -# include_next <alloca.h>
10421 -# endif
10422 + /* Some version of mingw have an <alloca.h> that causes trouble when
10423 + included after 'alloca' gets defined as a macro. As a workaround,
10424 + include this <alloca.h> first and define 'alloca' as a macro afterwards
10425 + if needed. */
10426 +# if defined __GNUC__ && (defined _WIN32 && ! defined __CYGWIN__) && @HAVE_ALLOCA_H@
10427 +# include_next <alloca.h>
10428 +# endif
10429 +#endif
10430 +#ifndef alloca
10431 +# if defined __GNUC__ || (__clang_major__ >= 4)
10432 # define alloca __builtin_alloca
10433 # elif defined _AIX
10434 # define alloca __alloca
10435
10436 diff --git a/autotools/gnulib/arg-nonnull.h b/autotools/gnulib/arg-nonnull.h
10437 index ad8c26c..e4513ef 100644
10438 --- a/autotools/gnulib/arg-nonnull.h
10439 +++ b/autotools/gnulib/arg-nonnull.h
10440 @@ -1,24 +1,24 @@
10441 /* A C macro for declaring that specific arguments must not be NULL.
10442 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
10443 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
10444
10445 This program is free software: you can redistribute it and/or modify it
10446 - under the terms of the GNU General Public License as published
10447 - by the Free Software Foundation; either version 3 of the License, or
10448 + under the terms of the GNU Lesser General Public License as published
10449 + by the Free Software Foundation; either version 2 of the License, or
10450 (at your option) any later version.
10451
10452 This program is distributed in the hope that it will be useful,
10453 but WITHOUT ANY WARRANTY; without even the implied warranty of
10454 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10455 - General Public License for more details.
10456 + Lesser General Public License for more details.
10457
10458 - You should have received a copy of the GNU General Public License
10459 + You should have received a copy of the GNU Lesser General Public License
10460 along with this program. If not, see <https://www.gnu.org/licenses/>. */
10461
10462 /* _GL_ARG_NONNULL((n,...,m)) tells the compiler and static analyzer tools
10463 that the values passed as arguments n, ..., m must be non-NULL pointers.
10464 n = 1 stands for the first argument, n = 2 for the second argument etc. */
10465 #ifndef _GL_ARG_NONNULL
10466 -# if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || __GNUC__ > 3
10467 +# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || defined __clang__
10468 # define _GL_ARG_NONNULL(params) __attribute__ ((__nonnull__ params))
10469 # else
10470 # define _GL_ARG_NONNULL(params)
10471
10472 diff --git a/autotools/gnulib/asnprintf.c b/autotools/gnulib/asnprintf.c
10473 index d2a8c09..0c5c76e 100644
10474 --- a/autotools/gnulib/asnprintf.c
10475 +++ b/autotools/gnulib/asnprintf.c
10476 @@ -1,18 +1,18 @@
10477 /* Formatted output to strings.
10478 - Copyright (C) 1999, 2002, 2006, 2009-2019 Free Software Foundation, Inc.
10479 + Copyright (C) 1999, 2002, 2006, 2009-2022 Free Software Foundation, Inc.
10480
10481 - This program is free software; you can redistribute it and/or modify
10482 - it under the terms of the GNU General Public License as published by
10483 - the Free Software Foundation; either version 3, or (at your option)
10484 - any later version.
10485 + This file is free software: you can redistribute it and/or modify
10486 + it under the terms of the GNU Lesser General Public License as
10487 + published by the Free Software Foundation; either version 2.1 of the
10488 + License, or (at your option) any later version.
10489
10490 - This program is distributed in the hope that it will be useful,
10491 + This file is distributed in the hope that it will be useful,
10492 but WITHOUT ANY WARRANTY; without even the implied warranty of
10493 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10494 - GNU General Public License for more details.
10495 + GNU Lesser General Public License for more details.
10496
10497 - You should have received a copy of the GNU General Public License along
10498 - with this program; if not, see <https://www.gnu.org/licenses/>. */
10499 + You should have received a copy of the GNU Lesser General Public License
10500 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
10501
10502 #include <config.h>
10503
10504
10505 diff --git a/autotools/gnulib/asprintf.c b/autotools/gnulib/asprintf.c
10506 index 6cbd062..9c163f3 100644
10507 --- a/autotools/gnulib/asprintf.c
10508 +++ b/autotools/gnulib/asprintf.c
10509 @@ -1,19 +1,19 @@
10510 /* Formatted output to strings.
10511 - Copyright (C) 1999, 2002, 2006-2007, 2009-2019 Free Software Foundation,
10512 + Copyright (C) 1999, 2002, 2006-2007, 2009-2022 Free Software Foundation,
10513 Inc.
10514
10515 - This program is free software; you can redistribute it and/or modify
10516 - it under the terms of the GNU General Public License as published by
10517 - the Free Software Foundation; either version 3, or (at your option)
10518 - any later version.
10519 + This file is free software: you can redistribute it and/or modify
10520 + it under the terms of the GNU Lesser General Public License as
10521 + published by the Free Software Foundation; either version 2.1 of the
10522 + License, or (at your option) any later version.
10523
10524 - This program is distributed in the hope that it will be useful,
10525 + This file is distributed in the hope that it will be useful,
10526 but WITHOUT ANY WARRANTY; without even the implied warranty of
10527 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10528 - GNU General Public License for more details.
10529 + GNU Lesser General Public License for more details.
10530
10531 - You should have received a copy of the GNU General Public License along
10532 - with this program; if not, see <https://www.gnu.org/licenses/>. */
10533 + You should have received a copy of the GNU Lesser General Public License
10534 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
10535
10536 #include <config.h>
10537
10538
10539 diff --git a/autotools/gnulib/assure.h b/autotools/gnulib/assure.h
10540 index c21b6a6..20e806a 100644
10541 --- a/autotools/gnulib/assure.h
10542 +++ b/autotools/gnulib/assure.h
10543 @@ -1,18 +1,18 @@
10544 /* Run-time assert-like macros.
10545
10546 - Copyright (C) 2014-2019 Free Software Foundation, Inc.
10547 + Copyright (C) 2014-2022 Free Software Foundation, Inc.
10548
10549 - This program is free software: you can redistribute it and/or modify
10550 - it under the terms of the GNU General Public License as published by
10551 - the Free Software Foundation; either version 3 of the License, or
10552 - (at your option) any later version.
10553 + This file is free software: you can redistribute it and/or modify
10554 + it under the terms of the GNU Lesser General Public License as
10555 + published by the Free Software Foundation; either version 2.1 of the
10556 + License, or (at your option) any later version.
10557
10558 - This program is distributed in the hope that it will be useful,
10559 + This file is distributed in the hope that it will be useful,
10560 but WITHOUT ANY WARRANTY; without even the implied warranty of
10561 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10562 - GNU General Public License for more details.
10563 + GNU Lesser General Public License for more details.
10564
10565 - You should have received a copy of the GNU General Public License
10566 + You should have received a copy of the GNU Lesser General Public License
10567 along with this program. If not, see <https://www.gnu.org/licenses/>. */
10568
10569 /* Written by Paul Eggert. */
10570 @@ -21,12 +21,32 @@
10571 #define _GL_ASSURE_H
10572
10573 #include <assert.h>
10574 +#include "verify.h"
10575 +
10576 +/* Evaluate an assertion E that is guaranteed to be true.
10577 + If NDEBUG is not defined, abort the program if E is false.
10578 + If NDEBUG is defined, the compiler can assume E and behavior is
10579 + undefined if E is false, fails to evaluate, or has side effects.
10580 +
10581 + Unlike standard 'assert', this macro evaluates E even when NDEBUG
10582 + is defined, so as to catch typos, avoid some GCC warnings, and
10583 + improve performance when E is simple enough.
10584 +
10585 + Also see the documentation for 'assume' in verify.h. */
10586 +
10587 +#ifdef NDEBUG
10588 +# define affirm(E) assume (E)
10589 +#else
10590 +# define affirm(E) assert (E)
10591 +#endif
10592
10593 /* Check E's value at runtime, and report an error and abort if not.
10594 However, do nothing if NDEBUG is defined.
10595
10596 - Unlike standard 'assert', this macro always compiles E even when NDEBUG
10597 - is defined, so as to catch typos and avoid some GCC warnings. */
10598 + Unlike standard 'assert', this macro compiles E even when NDEBUG
10599 + is defined, so as to catch typos and avoid some GCC warnings.
10600 + Unlike 'affirm', it is OK for E to use hard-to-optimize features,
10601 + since E is not executed if NDEBUG is defined. */
10602
10603 #ifdef NDEBUG
10604 # define assure(E) ((void) (0 && (E)))
10605
10606 diff --git a/autotools/gnulib/at-func.c b/autotools/gnulib/at-func.c
10607 index d2e6319..afcc819 100644
10608 --- a/autotools/gnulib/at-func.c
10609 +++ b/autotools/gnulib/at-func.c
10610 @@ -1,9 +1,9 @@
10611 /* Define at-style functions like fstatat, unlinkat, fchownat, etc.
10612 - Copyright (C) 2006, 2009-2019 Free Software Foundation, Inc.
10613 + Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc.
10614
10615 This program is free software: you can redistribute it and/or modify
10616 it under the terms of the GNU General Public License as published by
10617 - the Free Software Foundation; either version 3 of the License, or
10618 + the Free Software Foundation, either version 3 of the License, or
10619 (at your option) any later version.
10620
10621 This program is distributed in the hope that it will be useful,
10622 @@ -16,7 +16,7 @@
10623
10624 /* written by Jim Meyering */
10625
10626 -#include "dosname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
10627 +#include "filename.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
10628
10629 #ifdef GNULIB_SUPPORT_ONLY_AT_FDCWD
10630 # include <errno.h>
10631
10632 diff --git a/autotools/gnulib/at-func2.c b/autotools/gnulib/at-func2.c
10633 index eaa256c..8a0882e 100644
10634 --- a/autotools/gnulib/at-func2.c
10635 +++ b/autotools/gnulib/at-func2.c
10636 @@ -1,9 +1,9 @@
10637 /* Define 2-FD at-style functions like linkat or renameat.
10638 - Copyright (C) 2006, 2009-2019 Free Software Foundation, Inc.
10639 + Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc.
10640
10641 This program is free software: you can redistribute it and/or modify
10642 it under the terms of the GNU General Public License as published by
10643 - the Free Software Foundation; either version 3 of the License, or
10644 + the Free Software Foundation, either version 3 of the License, or
10645 (at your option) any later version.
10646
10647 This program is distributed in the hope that it will be useful,
10648 @@ -25,7 +25,7 @@
10649 #include <string.h>
10650 #include <unistd.h>
10651
10652 -#include "dosname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
10653 +#include "filename.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
10654 #include "filenamecat.h"
10655 #include "openat.h"
10656 #include "same-inode.h"
10657 @@ -176,6 +176,13 @@ at_func2 (int fd1, char const *file1,
10658 return func (file1, file2); /* Reduced to case 5. */
10659 }
10660
10661 + /* Catch invalid arguments before changing directories. */
10662 + if (file1[0] == '\0' || file2[0] == '\0')
10663 + {
10664 + errno = ENOENT;
10665 + return -1;
10666 + }
10667 +
10668 /* Cases 3, 7, 12, 13, 15a, 15b remain. With all reductions in
10669 place, it is time to start changing directories. */
10670
10671
10672 diff --git a/autotools/gnulib/basename-lgpl.c b/autotools/gnulib/basename-lgpl.c
10673 index 0ae04ee..eb07e25 100644
10674 --- a/autotools/gnulib/basename-lgpl.c
10675 +++ b/autotools/gnulib/basename-lgpl.c
10676 @@ -1,37 +1,37 @@
10677 /* basename.c -- return the last element in a file name
10678
10679 - Copyright (C) 1990, 1998-2001, 2003-2006, 2009-2019 Free Software
10680 + Copyright (C) 1990, 1998-2001, 2003-2006, 2009-2022 Free Software
10681 Foundation, Inc.
10682
10683 - This program is free software: you can redistribute it and/or modify
10684 - it under the terms of the GNU General Public License as published by
10685 - the Free Software Foundation; either version 3 of the License, or
10686 - (at your option) any later version.
10687 + This file is free software: you can redistribute it and/or modify
10688 + it under the terms of the GNU Lesser General Public License as
10689 + published by the Free Software Foundation; either version 2.1 of the
10690 + License, or (at your option) any later version.
10691
10692 - This program is distributed in the hope that it will be useful,
10693 + This file is distributed in the hope that it will be useful,
10694 but WITHOUT ANY WARRANTY; without even the implied warranty of
10695 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10696 - GNU General Public License for more details.
10697 + GNU Lesser General Public License for more details.
10698
10699 - You should have received a copy of the GNU General Public License
10700 + You should have received a copy of the GNU Lesser General Public License
10701 along with this program. If not, see <https://www.gnu.org/licenses/>. */
10702
10703 #include <config.h>
10704
10705 -#include "dirname.h"
10706 +/* Specification. */
10707 +#include "basename-lgpl.h"
10708
10709 +#include <stdbool.h>
10710 #include <string.h>
10711
10712 -/* Return the address of the last file name component of NAME. If
10713 - NAME has no relative file name components because it is a file
10714 - system root, return the empty string. */
10715 +#include "filename.h"
10716
10717 char *
10718 last_component (char const *name)
10719 {
10720 char const *base = name + FILE_SYSTEM_PREFIX_LEN (name);
10721 char const *p;
10722 - bool saw_slash = false;
10723 + bool last_was_slash = false;
10724
10725 while (ISSLASH (*base))
10726 base++;
10727 @@ -39,21 +39,17 @@ last_component (char const *name)
10728 for (p = base; *p; p++)
10729 {
10730 if (ISSLASH (*p))
10731 - saw_slash = true;
10732 - else if (saw_slash)
10733 + last_was_slash = true;
10734 + else if (last_was_slash)
10735 {
10736 base = p;
10737 - saw_slash = false;
10738 + last_was_slash = false;
10739 }
10740 }
10741
10742 return (char *) base;
10743 }
10744
10745 -/* Return the length of the basename NAME. Typically NAME is the
10746 - value returned by base_name or last_component. Act like strlen
10747 - (NAME), except omit all trailing slashes. */
10748 -
10749 size_t
10750 base_len (char const *name)
10751 {
10752
10753 diff --git a/autotools/gnulib/c++defs.h b/autotools/gnulib/c++defs.h
10754 index 87d0716..ad18155 100644
10755 --- a/autotools/gnulib/c++defs.h
10756 +++ b/autotools/gnulib/c++defs.h
10757 @@ -1,17 +1,17 @@
10758 /* C++ compatible function declaration macros.
10759 - Copyright (C) 2010-2019 Free Software Foundation, Inc.
10760 + Copyright (C) 2010-2022 Free Software Foundation, Inc.
10761
10762 This program is free software: you can redistribute it and/or modify it
10763 - under the terms of the GNU General Public License as published
10764 - by the Free Software Foundation; either version 3 of the License, or
10765 + under the terms of the GNU Lesser General Public License as published
10766 + by the Free Software Foundation; either version 2 of the License, or
10767 (at your option) any later version.
10768
10769 This program is distributed in the hope that it will be useful,
10770 but WITHOUT ANY WARRANTY; without even the implied warranty of
10771 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10772 - General Public License for more details.
10773 + Lesser General Public License for more details.
10774
10775 - You should have received a copy of the GNU General Public License
10776 + You should have received a copy of the GNU Lesser General Public License
10777 along with this program. If not, see <https://www.gnu.org/licenses/>. */
10778
10779 #ifndef _GL_CXXDEFS_H
10780 @@ -146,6 +146,16 @@
10781 _GL_EXTERN_C int _gl_cxxalias_dummy
10782 #endif
10783
10784 +/* _GL_CXXALIAS_MDA (func, rettype, parameters);
10785 + is to be used when func is a Microsoft deprecated alias, on native Windows.
10786 + It declares a C++ alias called GNULIB_NAMESPACE::func
10787 + that redirects to _func, if GNULIB_NAMESPACE is defined.
10788 + Example:
10789 + _GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...));
10790 + */
10791 +#define _GL_CXXALIAS_MDA(func,rettype,parameters) \
10792 + _GL_CXXALIAS_RPL_1 (func, _##func, rettype, parameters)
10793 +
10794 /* _GL_CXXALIAS_RPL_CAST_1 (func, rpl_func, rettype, parameters);
10795 is like _GL_CXXALIAS_RPL_1 (func, rpl_func, rettype, parameters);
10796 except that the C function rpl_func may have a slightly different
10797 @@ -171,6 +181,14 @@
10798 _GL_EXTERN_C int _gl_cxxalias_dummy
10799 #endif
10800
10801 +/* _GL_CXXALIAS_MDA_CAST (func, rettype, parameters);
10802 + is like _GL_CXXALIAS_MDA (func, rettype, parameters);
10803 + except that the C function func may have a slightly different declaration.
10804 + A cast is used to silence the "invalid conversion" error that would
10805 + otherwise occur. */
10806 +#define _GL_CXXALIAS_MDA_CAST(func,rettype,parameters) \
10807 + _GL_CXXALIAS_RPL_CAST_1 (func, _##func, rettype, parameters)
10808 +
10809 /* _GL_CXXALIAS_SYS (func, rettype, parameters);
10810 declares a C++ alias called GNULIB_NAMESPACE::func
10811 that redirects to the system provided function func, if GNULIB_NAMESPACE
10812 @@ -268,7 +286,7 @@
10813 _GL_CXXALIASWARN_2 (func, namespace)
10814 /* To work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>,
10815 we enable the warning only when not optimizing. */
10816 -# if !__OPTIMIZE__
10817 +# if !(defined __GNUC__ && !defined __clang__ && __OPTIMIZE__)
10818 # define _GL_CXXALIASWARN_2(func,namespace) \
10819 _GL_WARN_ON_USE (func, \
10820 "The symbol ::" #func " refers to the system function. " \
10821 @@ -296,14 +314,11 @@
10822 _GL_CXXALIASWARN1_2 (func, rettype, parameters_and_attributes, namespace)
10823 /* To work around GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43881>,
10824 we enable the warning only when not optimizing. */
10825 -# if !__OPTIMIZE__
10826 +# if !(defined __GNUC__ && !defined __clang__ && __OPTIMIZE__)
10827 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
10828 - _GL_WARN_ON_USE_CXX (func, rettype, parameters_and_attributes, \
10829 + _GL_WARN_ON_USE_CXX (func, rettype, rettype, parameters_and_attributes, \
10830 "The symbol ::" #func " refers to the system function. " \
10831 "Use " #namespace "::" #func " instead.")
10832 -# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
10833 -# define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
10834 - extern __typeof__ (func) func
10835 # else
10836 # define _GL_CXXALIASWARN1_2(func,rettype,parameters_and_attributes,namespace) \
10837 _GL_EXTERN_C int _gl_cxxalias_dummy
10838
10839 diff --git a/autotools/gnulib/calloc.c b/autotools/gnulib/calloc.c
10840 new file mode 100644
10841 index 0000000..0a934b3
10842 --- /dev/null
10843 +++ b/autotools/gnulib/calloc.c
10844 @@ -0,0 +1,55 @@
10845 +/* calloc() function that is glibc compatible.
10846 + This wrapper function is required at least on Tru64 UNIX 5.1 and mingw.
10847 + Copyright (C) 2004-2007, 2009-2022 Free Software Foundation, Inc.
10848 +
10849 + This file is free software: you can redistribute it and/or modify
10850 + it under the terms of the GNU Lesser General Public License as
10851 + published by the Free Software Foundation; either version 2.1 of the
10852 + License, or (at your option) any later version.
10853 +
10854 + This file is distributed in the hope that it will be useful,
10855 + but WITHOUT ANY WARRANTY; without even the implied warranty of
10856 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10857 + GNU Lesser General Public License for more details.
10858 +
10859 + You should have received a copy of the GNU Lesser General Public License
10860 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
10861 +
10862 +/* written by Jim Meyering and Bruno Haible */
10863 +
10864 +#include <config.h>
10865 +
10866 +/* Specification. */
10867 +#include <stdlib.h>
10868 +
10869 +#include <errno.h>
10870 +
10871 +#include "xalloc-oversized.h"
10872 +
10873 +/* Call the system's calloc below. */
10874 +#undef calloc
10875 +
10876 +/* Allocate and zero-fill an NxS-byte block of memory from the heap,
10877 + even if N or S is zero. */
10878 +
10879 +void *
10880 +rpl_calloc (size_t n, size_t s)
10881 +{
10882 + if (n == 0 || s == 0)
10883 + n = s = 1;
10884 +
10885 + if (xalloc_oversized (n, s))
10886 + {
10887 + errno = ENOMEM;
10888 + return NULL;
10889 + }
10890 +
10891 + void *result = calloc (n, s);
10892 +
10893 +#if !HAVE_MALLOC_POSIX
10894 + if (result == NULL)
10895 + errno = ENOMEM;
10896 +#endif
10897 +
10898 + return result;
10899 +}
10900
10901 diff --git a/autotools/gnulib/canonicalize-lgpl.c b/autotools/gnulib/canonicalize-lgpl.c
10902 index 4d1be6d..a7fa7fe 100644
10903 --- a/autotools/gnulib/canonicalize-lgpl.c
10904 +++ b/autotools/gnulib/canonicalize-lgpl.c
10905 @@ -1,58 +1,58 @@
10906 /* Return the canonical absolute name of a given file.
10907 - Copyright (C) 1996-2019 Free Software Foundation, Inc.
10908 + Copyright (C) 1996-2022 Free Software Foundation, Inc.
10909 This file is part of the GNU C Library.
10910
10911 - This program is free software: you can redistribute it and/or modify
10912 - it under the terms of the GNU General Public License as published by
10913 - the Free Software Foundation; either version 3 of the License, or
10914 - (at your option) any later version.
10915 + The GNU C Library is free software; you can redistribute it and/or
10916 + modify it under the terms of the GNU Lesser General Public
10917 + License as published by the Free Software Foundation; either
10918 + version 2.1 of the License, or (at your option) any later version.
10919
10920 - This program is distributed in the hope that it will be useful,
10921 + The GNU C Library is distributed in the hope that it will be useful,
10922 but WITHOUT ANY WARRANTY; without even the implied warranty of
10923 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10924 - GNU General Public License for more details.
10925 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10926 + Lesser General Public License for more details.
10927
10928 - You should have received a copy of the GNU General Public License
10929 - along with this program. If not, see <https://www.gnu.org/licenses/>. */
10930 + You should have received a copy of the GNU Lesser General Public
10931 + License along with the GNU C Library; if not, see
10932 + <https://www.gnu.org/licenses/>. */
10933
10934 #ifndef _LIBC
10935 /* Don't use __attribute__ __nonnull__ in this compilation unit. Otherwise gcc
10936 optimizes away the name == NULL test below. */
10937 # define _GL_ARG_NONNULL(params)
10938
10939 -# define _GL_USE_STDLIB_ALLOC 1
10940 -# include <config.h>
10941 +# include <libc-config.h>
10942 #endif
10943
10944 -#if !HAVE_CANONICALIZE_FILE_NAME || !FUNC_REALPATH_WORKS || defined _LIBC
10945 -
10946 /* Specification. */
10947 #include <stdlib.h>
10948
10949 -#include <alloca.h>
10950 -#include <string.h>
10951 -#include <unistd.h>
10952 +#include <errno.h>
10953 +#include <fcntl.h>
10954 #include <limits.h>
10955 -#if HAVE_SYS_PARAM_H || defined _LIBC
10956 -# include <sys/param.h>
10957 -#endif
10958 +#include <stdbool.h>
10959 +#include <string.h>
10960 #include <sys/stat.h>
10961 -#include <errno.h>
10962 -#include <stddef.h>
10963 +#include <unistd.h>
10964 +
10965 +#include <eloop-threshold.h>
10966 +#include <filename.h>
10967 +#include <idx.h>
10968 +#include <intprops.h>
10969 +#include <scratch_buffer.h>
10970
10971 #ifdef _LIBC
10972 # include <shlib-compat.h>
10973 +# define GCC_LINT 1
10974 +# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
10975 #else
10976 -# define SHLIB_COMPAT(lib, introduced, obsoleted) 0
10977 -# define versioned_symbol(lib, local, symbol, version) extern int dummy
10978 -# define compat_symbol(lib, local, symbol, version)
10979 -# define weak_alias(local, symbol)
10980 # define __canonicalize_file_name canonicalize_file_name
10981 # define __realpath realpath
10982 # include "pathmax.h"
10983 -# include "malloca.h"
10984 -# include "dosname.h"
10985 -# if HAVE_GETCWD
10986 +# define __faccessat faccessat
10987 +# if defined _WIN32 && !defined __CYGWIN__
10988 +# define __getcwd _getcwd
10989 +# elif HAVE_GETCWD
10990 # if IN_RELOCWRAPPER
10991 /* When building the relocatable program wrapper, use the system's getcwd
10992 function, not the gnulib override, otherwise we would get a link error.
10993 @@ -70,57 +70,142 @@
10994 # else
10995 # define __getcwd(buf, max) getwd (buf)
10996 # endif
10997 +# define __mempcpy mempcpy
10998 +# define __pathconf pathconf
10999 +# define __rawmemchr rawmemchr
11000 # define __readlink readlink
11001 -# define __set_errno(e) errno = (e)
11002 -# ifndef MAXSYMLINKS
11003 -# ifdef SYMLOOP_MAX
11004 -# define MAXSYMLINKS SYMLOOP_MAX
11005 -# else
11006 -# define MAXSYMLINKS 20
11007 -# endif
11008 +# if IN_RELOCWRAPPER
11009 + /* When building the relocatable program wrapper, use the system's memmove
11010 + function, not the gnulib override, otherwise we would get a link error.
11011 + */
11012 +# undef memmove
11013 # endif
11014 #endif
11015
11016 -#ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT
11017 -# define DOUBLE_SLASH_IS_DISTINCT_ROOT 0
11018 +/* Suppress bogus GCC -Wmaybe-uninitialized warnings. */
11019 +#if defined GCC_LINT || defined lint
11020 +# define IF_LINT(Code) Code
11021 +#else
11022 +# define IF_LINT(Code) /* empty */
11023 #endif
11024
11025 -/* Define this independently so that stdint.h is not a prerequisite. */
11026 -#ifndef SIZE_MAX
11027 -# define SIZE_MAX ((size_t) -1)
11028 +#ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT
11029 +# define DOUBLE_SLASH_IS_DISTINCT_ROOT false
11030 #endif
11031
11032 -#if !FUNC_REALPATH_WORKS || defined _LIBC
11033 +#if defined _LIBC || !FUNC_REALPATH_WORKS
11034
11035 -static void
11036 -alloc_failed (void)
11037 +/* Return true if FILE's existence can be shown, false (setting errno)
11038 + otherwise. Follow symbolic links. */
11039 +static bool
11040 +file_accessible (char const *file)
11041 {
11042 -#if defined _WIN32 && ! defined __CYGWIN__
11043 - /* Avoid errno problem without using the malloc or realloc modules; see:
11044 - https://lists.gnu.org/r/bug-gnulib/2016-08/msg00025.html */
11045 - errno = ENOMEM;
11046 -#endif
11047 +# if defined _LIBC || HAVE_FACCESSAT
11048 + return __faccessat (AT_FDCWD, file, F_OK, AT_EACCESS) == 0;
11049 +# else
11050 + struct stat st;
11051 + return stat (file, &st) == 0 || errno == EOVERFLOW;
11052 +# endif
11053 }
11054
11055 -/* Return the canonical absolute name of file NAME. A canonical name
11056 - does not contain any ".", ".." components nor any repeated path
11057 - separators ('/') or symlinks. All path components must exist. If
11058 - RESOLVED is null, the result is malloc'd; otherwise, if the
11059 - canonical name is PATH_MAX chars or more, returns null with 'errno'
11060 - set to ENAMETOOLONG; if the name fits in fewer than PATH_MAX chars,
11061 - returns the name in RESOLVED. If the name cannot be resolved and
11062 - RESOLVED is non-NULL, it contains the path of the first component
11063 - that cannot be resolved. If the path can be resolved, RESOLVED
11064 - holds the same value as the value returned. */
11065 +/* True if concatenating END as a suffix to a file name means that the
11066 + code needs to check that the file name is that of a searchable
11067 + directory, since the canonicalize_filename_mode_stk code won't
11068 + check this later anyway when it checks an ordinary file name
11069 + component within END. END must either be empty, or start with a
11070 + slash. */
11071
11072 -char *
11073 -__realpath (const char *name, char *resolved)
11074 +static bool _GL_ATTRIBUTE_PURE
11075 +suffix_requires_dir_check (char const *end)
11076 +{
11077 + /* If END does not start with a slash, the suffix is OK. */
11078 + while (ISSLASH (*end))
11079 + {
11080 + /* Two or more slashes act like a single slash. */
11081 + do
11082 + end++;
11083 + while (ISSLASH (*end));
11084 +
11085 + switch (*end++)
11086 + {
11087 + default: return false; /* An ordinary file name component is OK. */
11088 + case '\0': return true; /* Trailing "/" is trouble. */
11089 + case '.': break; /* Possibly "." or "..". */
11090 + }
11091 + /* Trailing "/.", or "/.." even if not trailing, is trouble. */
11092 + if (!*end || (*end == '.' && (!end[1] || ISSLASH (end[1]))))
11093 + return true;
11094 + }
11095 +
11096 + return false;
11097 +}
11098 +
11099 +/* Append this to a file name to test whether it is a searchable directory.
11100 + On POSIX platforms "/" suffices, but "/./" is sometimes needed on
11101 + macOS 10.13 <https://bugs.gnu.org/30350>, and should also work on
11102 + platforms like AIX 7.2 that need at least "/.". */
11103 +
11104 +# if defined _LIBC || defined LSTAT_FOLLOWS_SLASHED_SYMLINK
11105 +static char const dir_suffix[] = "/";
11106 +# else
11107 +static char const dir_suffix[] = "/./";
11108 +# endif
11109 +
11110 +/* Return true if DIR is a searchable dir, false (setting errno) otherwise.
11111 + DIREND points to the NUL byte at the end of the DIR string.
11112 + Store garbage into DIREND[0 .. strlen (dir_suffix)]. */
11113 +
11114 +static bool
11115 +dir_check (char *dir, char *dirend)
11116 {
11117 - char *rpath, *dest, *extra_buf = NULL;
11118 - const char *start, *end, *rpath_limit;
11119 - long int path_max;
11120 + strcpy (dirend, dir_suffix);
11121 + return file_accessible (dir);
11122 +}
11123 +
11124 +static idx_t
11125 +get_path_max (void)
11126 +{
11127 +# ifdef PATH_MAX
11128 + long int path_max = PATH_MAX;
11129 +# else
11130 + /* The caller invoked realpath with a null RESOLVED, even though
11131 + PATH_MAX is not defined as a constant. The glibc manual says
11132 + programs should not do this, and POSIX says the behavior is undefined.
11133 + Historically, glibc here used the result of pathconf, or 1024 if that
11134 + failed; stay consistent with this (dubious) historical practice. */
11135 + int err = errno;
11136 + long int path_max = __pathconf ("/", _PC_PATH_MAX);
11137 + __set_errno (err);
11138 +# endif
11139 + return path_max < 0 ? 1024 : path_max <= IDX_MAX ? path_max : IDX_MAX;
11140 +}
11141 +
11142 +/* Act like __realpath (see below), with an additional argument
11143 + rname_buf that can be used as temporary storage.
11144 +
11145 + If GCC_LINT is defined, do not inline this function with GCC 10.1
11146 + and later, to avoid creating a pointer to the stack that GCC
11147 + -Wreturn-local-addr incorrectly complains about. See:
11148 + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644
11149 + Although the noinline attribute can hurt performance a bit, no better way
11150 + to pacify GCC is known; even an explicit #pragma does not pacify GCC.
11151 + When the GCC bug is fixed this workaround should be limited to the
11152 + broken GCC versions. */
11153 +# if __GNUC_PREREQ (10, 1)
11154 +# if defined GCC_LINT || defined lint
11155 +__attribute__ ((__noinline__))
11156 +# elif __OPTIMIZE__ && !__NO_INLINE__
11157 +# define GCC_BOGUS_WRETURN_LOCAL_ADDR
11158 +# endif
11159 +# endif
11160 +static char *
11161 +realpath_stk (const char *name, char *resolved,
11162 + struct scratch_buffer *rname_buf)
11163 +{
11164 + char *dest;
11165 + char const *start;
11166 + char const *end;
11167 int num_links = 0;
11168 - size_t prefix_len;
11169
11170 if (name == NULL)
11171 {
11172 @@ -140,205 +225,148 @@ __realpath (const char *name, char *resolved)
11173 return NULL;
11174 }
11175
11176 -#ifdef PATH_MAX
11177 - path_max = PATH_MAX;
11178 -#else
11179 - path_max = pathconf (name, _PC_PATH_MAX);
11180 - if (path_max <= 0)
11181 - path_max = 8192;
11182 -#endif
11183 -
11184 - if (resolved == NULL)
11185 - {
11186 - rpath = malloc (path_max);
11187 - if (rpath == NULL)
11188 - {
11189 - alloc_failed ();
11190 - return NULL;
11191 - }
11192 - }
11193 - else
11194 - rpath = resolved;
11195 - rpath_limit = rpath + path_max;
11196 + struct scratch_buffer extra_buffer, link_buffer;
11197 + scratch_buffer_init (&extra_buffer);
11198 + scratch_buffer_init (&link_buffer);
11199 + scratch_buffer_init (rname_buf);
11200 + char *rname_on_stack = rname_buf->data;
11201 + char *rname = rname_on_stack;
11202 + bool end_in_extra_buffer = false;
11203 + bool failed = true;
11204
11205 /* This is always zero for Posix hosts, but can be 2 for MS-Windows
11206 and MS-DOS X:/foo/bar file names. */
11207 - prefix_len = FILE_SYSTEM_PREFIX_LEN (name);
11208 + idx_t prefix_len = FILE_SYSTEM_PREFIX_LEN (name);
11209
11210 if (!IS_ABSOLUTE_FILE_NAME (name))
11211 {
11212 - if (!__getcwd (rpath, path_max))
11213 + while (!__getcwd (rname, rname_buf->length))
11214 {
11215 - rpath[0] = '\0';
11216 - goto error;
11217 + if (errno != ERANGE)
11218 + {
11219 + dest = rname;
11220 + goto error;
11221 + }
11222 + if (!scratch_buffer_grow (rname_buf))
11223 + goto error_nomem;
11224 + rname = rname_buf->data;
11225 }
11226 - dest = strchr (rpath, '\0');
11227 + dest = __rawmemchr (rname, '\0');
11228 start = name;
11229 - prefix_len = FILE_SYSTEM_PREFIX_LEN (rpath);
11230 + prefix_len = FILE_SYSTEM_PREFIX_LEN (rname);
11231 }
11232 else
11233 {
11234 - dest = rpath;
11235 - if (prefix_len)
11236 - {
11237 - memcpy (rpath, name, prefix_len);
11238 - dest += prefix_len;
11239 - }
11240 + dest = __mempcpy (rname, name, prefix_len);
11241 *dest++ = '/';
11242 if (DOUBLE_SLASH_IS_DISTINCT_ROOT)
11243 {
11244 - if (ISSLASH (name[1]) && !ISSLASH (name[2]) && !prefix_len)
11245 + if (prefix_len == 0 /* implies ISSLASH (name[0]) */
11246 + && ISSLASH (name[1]) && !ISSLASH (name[2]))
11247 *dest++ = '/';
11248 *dest = '\0';
11249 }
11250 start = name + prefix_len;
11251 }
11252
11253 - for (end = start; *start; start = end)
11254 + for ( ; *start; start = end)
11255 {
11256 -#ifdef _LIBC
11257 - struct stat64 st;
11258 -#else
11259 - struct stat st;
11260 -#endif
11261 -
11262 - /* Skip sequence of multiple path-separators. */
11263 + /* Skip sequence of multiple file name separators. */
11264 while (ISSLASH (*start))
11265 ++start;
11266
11267 - /* Find end of path component. */
11268 + /* Find end of component. */
11269 for (end = start; *end && !ISSLASH (*end); ++end)
11270 /* Nothing. */;
11271
11272 - if (end - start == 0)
11273 + /* Length of this file name component; it can be zero if a file
11274 + name ends in '/'. */
11275 + idx_t startlen = end - start;
11276 +
11277 + if (startlen == 0)
11278 break;
11279 - else if (end - start == 1 && start[0] == '.')
11280 + else if (startlen == 1 && start[0] == '.')
11281 /* nothing */;
11282 - else if (end - start == 2 && start[0] == '.' && start[1] == '.')
11283 + else if (startlen == 2 && start[0] == '.' && start[1] == '.')
11284 {
11285 /* Back up to previous component, ignore if at root already. */
11286 - if (dest > rpath + prefix_len + 1)
11287 - for (--dest; dest > rpath && !ISSLASH (dest[-1]); --dest)
11288 + if (dest > rname + prefix_len + 1)
11289 + for (--dest; dest > rname && !ISSLASH (dest[-1]); --dest)
11290 continue;
11291 if (DOUBLE_SLASH_IS_DISTINCT_ROOT
11292 - && dest == rpath + 1 && !prefix_len
11293 + && dest == rname + 1 && !prefix_len
11294 && ISSLASH (*dest) && !ISSLASH (dest[1]))
11295 dest++;
11296 }
11297 else
11298 {
11299 - size_t new_size;
11300 -
11301 if (!ISSLASH (dest[-1]))
11302 *dest++ = '/';
11303
11304 - if (dest + (end - start) >= rpath_limit)
11305 + while (rname + rname_buf->length - dest
11306 + < startlen + sizeof dir_suffix)
11307 {
11308 - ptrdiff_t dest_offset = dest - rpath;
11309 - char *new_rpath;
11310 -
11311 - if (resolved)
11312 - {
11313 - __set_errno (ENAMETOOLONG);
11314 - if (dest > rpath + prefix_len + 1)
11315 - dest--;
11316 - *dest = '\0';
11317 - goto error;
11318 - }
11319 - new_size = rpath_limit - rpath;
11320 - if (end - start + 1 > path_max)
11321 - new_size += end - start + 1;
11322 - else
11323 - new_size += path_max;
11324 - new_rpath = (char *) realloc (rpath, new_size);
11325 - if (new_rpath == NULL)
11326 - {
11327 - alloc_failed ();
11328 - goto error;
11329 - }
11330 - rpath = new_rpath;
11331 - rpath_limit = rpath + new_size;
11332 -
11333 - dest = rpath + dest_offset;
11334 + idx_t dest_offset = dest - rname;
11335 + if (!scratch_buffer_grow_preserve (rname_buf))
11336 + goto error_nomem;
11337 + rname = rname_buf->data;
11338 + dest = rname + dest_offset;
11339 }
11340
11341 -#ifdef _LIBC
11342 - dest = __mempcpy (dest, start, end - start);
11343 -#else
11344 - memcpy (dest, start, end - start);
11345 - dest += end - start;
11346 -#endif
11347 + dest = __mempcpy (dest, start, startlen);
11348 *dest = '\0';
11349
11350 - /* FIXME: if lstat fails with errno == EOVERFLOW,
11351 - the entry exists. */
11352 -#ifdef _LIBC
11353 - if (__lxstat64 (_STAT_VER, rpath, &st) < 0)
11354 -#else
11355 - if (lstat (rpath, &st) < 0)
11356 -#endif
11357 - goto error;
11358 -
11359 - if (S_ISLNK (st.st_mode))
11360 + char *buf;
11361 + ssize_t n;
11362 + while (true)
11363 {
11364 - char *buf;
11365 - size_t len;
11366 - ssize_t n;
11367 -
11368 - if (++num_links > MAXSYMLINKS)
11369 + buf = link_buffer.data;
11370 + idx_t bufsize = link_buffer.length;
11371 + n = __readlink (rname, buf, bufsize - 1);
11372 + if (n < bufsize - 1)
11373 + break;
11374 + if (!scratch_buffer_grow (&link_buffer))
11375 + goto error_nomem;
11376 + }
11377 + if (0 <= n)
11378 + {
11379 + if (++num_links > __eloop_threshold ())
11380 {
11381 __set_errno (ELOOP);
11382 goto error;
11383 }
11384
11385 - buf = malloca (path_max);
11386 - if (!buf)
11387 - {
11388 - __set_errno (ENOMEM);
11389 - goto error;
11390 - }
11391 -
11392 - n = __readlink (rpath, buf, path_max - 1);
11393 - if (n < 0)
11394 - {
11395 - int saved_errno = errno;
11396 - freea (buf);
11397 - __set_errno (saved_errno);
11398 - goto error;
11399 - }
11400 buf[n] = '\0';
11401
11402 - if (!extra_buf)
11403 + char *extra_buf = extra_buffer.data;
11404 + idx_t end_idx IF_LINT (= 0);
11405 + if (end_in_extra_buffer)
11406 + end_idx = end - extra_buf;
11407 + size_t len = strlen (end);
11408 + if (INT_ADD_OVERFLOW (len, n))
11409 {
11410 - extra_buf = malloca (path_max);
11411 - if (!extra_buf)
11412 - {
11413 - freea (buf);
11414 - __set_errno (ENOMEM);
11415 - goto error;
11416 - }
11417 + __set_errno (ENOMEM);
11418 + goto error_nomem;
11419 }
11420 -
11421 - len = strlen (end);
11422 - /* Check that n + len + 1 doesn't overflow and is <= path_max. */
11423 - if (n >= SIZE_MAX - len || n + len >= path_max)
11424 + while (extra_buffer.length <= len + n)
11425 {
11426 - freea (buf);
11427 - __set_errno (ENAMETOOLONG);
11428 - goto error;
11429 + if (!scratch_buffer_grow_preserve (&extra_buffer))
11430 + goto error_nomem;
11431 + extra_buf = extra_buffer.data;
11432 }
11433 + if (end_in_extra_buffer)
11434 + end = extra_buf + end_idx;
11435
11436 /* Careful here, end may be a pointer into extra_buf... */
11437 memmove (&extra_buf[n], end, len + 1);
11438 name = end = memcpy (extra_buf, buf, n);
11439 + end_in_extra_buffer = true;
11440
11441 if (IS_ABSOLUTE_FILE_NAME (buf))
11442 {
11443 - size_t pfxlen = FILE_SYSTEM_PREFIX_LEN (buf);
11444 + idx_t pfxlen = FILE_SYSTEM_PREFIX_LEN (buf);
11445
11446 - if (pfxlen)
11447 - memcpy (rpath, buf, pfxlen);
11448 - dest = rpath + pfxlen;
11449 + dest = __mempcpy (rname, buf, pfxlen);
11450 *dest++ = '/'; /* It's an absolute symlink */
11451 if (DOUBLE_SLASH_IS_DISTINCT_ROOT)
11452 {
11453 @@ -353,46 +381,70 @@ __realpath (const char *name, char *resolved)
11454 {
11455 /* Back up to previous component, ignore if at root
11456 already: */
11457 - if (dest > rpath + prefix_len + 1)
11458 - for (--dest; dest > rpath && !ISSLASH (dest[-1]); --dest)
11459 + if (dest > rname + prefix_len + 1)
11460 + for (--dest; dest > rname && !ISSLASH (dest[-1]); --dest)
11461 continue;
11462 - if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1
11463 + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rname + 1
11464 && ISSLASH (*dest) && !ISSLASH (dest[1]) && !prefix_len)
11465 dest++;
11466 }
11467 }
11468 - else if (!S_ISDIR (st.st_mode) && *end != '\0')
11469 - {
11470 - __set_errno (ENOTDIR);
11471 - goto error;
11472 - }
11473 + else if (! (suffix_requires_dir_check (end)
11474 + ? dir_check (rname, dest)
11475 + : errno == EINVAL))
11476 + goto error;
11477 }
11478 }
11479 - if (dest > rpath + prefix_len + 1 && ISSLASH (dest[-1]))
11480 + if (dest > rname + prefix_len + 1 && ISSLASH (dest[-1]))
11481 --dest;
11482 - if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rpath + 1 && !prefix_len
11483 + if (DOUBLE_SLASH_IS_DISTINCT_ROOT && dest == rname + 1 && !prefix_len
11484 && ISSLASH (*dest) && !ISSLASH (dest[1]))
11485 dest++;
11486 - *dest = '\0';
11487 + failed = false;
11488
11489 - if (extra_buf)
11490 - freea (extra_buf);
11491 +error:
11492 + *dest++ = '\0';
11493 + if (resolved != NULL && dest - rname <= get_path_max ())
11494 + rname = strcpy (resolved, rname);
11495
11496 - return rpath;
11497 +error_nomem:
11498 + scratch_buffer_free (&extra_buffer);
11499 + scratch_buffer_free (&link_buffer);
11500
11501 -error:
11502 - {
11503 - int saved_errno = errno;
11504 - if (extra_buf)
11505 - freea (extra_buf);
11506 - if (resolved == NULL)
11507 - free (rpath);
11508 - __set_errno (saved_errno);
11509 - }
11510 - return NULL;
11511 + if (failed || rname == resolved)
11512 + {
11513 + scratch_buffer_free (rname_buf);
11514 + return failed ? NULL : resolved;
11515 + }
11516 +
11517 + return scratch_buffer_dupfree (rname_buf, dest - rname);
11518 +}
11519 +
11520 +/* Return the canonical absolute name of file NAME. A canonical name
11521 + does not contain any ".", ".." components nor any repeated file name
11522 + separators ('/') or symlinks. All file name components must exist. If
11523 + RESOLVED is null, the result is malloc'd; otherwise, if the
11524 + canonical name is PATH_MAX chars or more, returns null with 'errno'
11525 + set to ENAMETOOLONG; if the name fits in fewer than PATH_MAX chars,
11526 + returns the name in RESOLVED. If the name cannot be resolved and
11527 + RESOLVED is non-NULL, it contains the name of the first component
11528 + that cannot be resolved. If the name can be resolved, RESOLVED
11529 + holds the same value as the value returned. */
11530 +
11531 +char *
11532 +__realpath (const char *name, char *resolved)
11533 +{
11534 + #ifdef GCC_BOGUS_WRETURN_LOCAL_ADDR
11535 + #warning "GCC might issue a bogus -Wreturn-local-addr warning here."
11536 + #warning "See <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93644>."
11537 + #endif
11538 + struct scratch_buffer rname_buffer;
11539 + return realpath_stk (name, resolved, &rname_buffer);
11540 }
11541 +libc_hidden_def (__realpath)
11542 versioned_symbol (libc, __realpath, realpath, GLIBC_2_3);
11543 -#endif /* !FUNC_REALPATH_WORKS || defined _LIBC */
11544 +
11545 +#endif /* defined _LIBC || !FUNC_REALPATH_WORKS */
11546
11547
11548 #if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_3)
11549 @@ -418,11 +470,3 @@ __canonicalize_file_name (const char *name)
11550 return __realpath (name, NULL);
11551 }
11552 weak_alias (__canonicalize_file_name, canonicalize_file_name)
11553 -
11554 -#else
11555 -
11556 -/* This declaration is solely to ensure that after preprocessing
11557 - this file is never empty. */
11558 -typedef int dummy;
11559 -
11560 -#endif
11561
11562 diff --git a/autotools/gnulib/chdir-long.c b/autotools/gnulib/chdir-long.c
11563 index febdf59..f4efb20 100644
11564 --- a/autotools/gnulib/chdir-long.c
11565 +++ b/autotools/gnulib/chdir-long.c
11566 @@ -1,9 +1,9 @@
11567 /* provide a chdir function that tries not to fail due to ENAMETOOLONG
11568 - Copyright (C) 2004-2019 Free Software Foundation, Inc.
11569 + Copyright (C) 2004-2022 Free Software Foundation, Inc.
11570
11571 This program is free software: you can redistribute it and/or modify
11572 it under the terms of the GNU General Public License as published by
11573 - the Free Software Foundation; either version 3 of the License, or
11574 + the Free Software Foundation, either version 3 of the License, or
11575 (at your option) any later version.
11576
11577 This program is distributed in the hope that it will be useful,
11578
11579 diff --git a/autotools/gnulib/chdir-long.h b/autotools/gnulib/chdir-long.h
11580 index 43259d1..84a7298 100644
11581 --- a/autotools/gnulib/chdir-long.h
11582 +++ b/autotools/gnulib/chdir-long.h
11583 @@ -1,9 +1,9 @@
11584 /* provide a chdir function that tries not to fail due to ENAMETOOLONG
11585 - Copyright (C) 2004-2005, 2009-2019 Free Software Foundation, Inc.
11586 + Copyright (C) 2004-2005, 2009-2022 Free Software Foundation, Inc.
11587
11588 This program is free software: you can redistribute it and/or modify
11589 it under the terms of the GNU General Public License as published by
11590 - the Free Software Foundation; either version 3 of the License, or
11591 + the Free Software Foundation, either version 3 of the License, or
11592 (at your option) any later version.
11593
11594 This program is distributed in the hope that it will be useful,
11595
11596 diff --git a/autotools/gnulib/cloexec.c b/autotools/gnulib/cloexec.c
11597 index db42576..812be01 100644
11598 --- a/autotools/gnulib/cloexec.c
11599 +++ b/autotools/gnulib/cloexec.c
11600 @@ -1,21 +1,21 @@
11601 /* cloexec.c - set or clear the close-on-exec descriptor flag
11602
11603 - Copyright (C) 1991, 2004-2006, 2009-2019 Free Software Foundation, Inc.
11604 + Copyright (C) 1991, 2004-2006, 2009-2022 Free Software Foundation, Inc.
11605
11606 - This program is free software: you can redistribute it and/or modify
11607 - it under the terms of the GNU General Public License as published by
11608 - the Free Software Foundation; either version 3 of the License, or
11609 - (at your option) any later version.
11610 + This file is free software: you can redistribute it and/or modify
11611 + it under the terms of the GNU Lesser General Public License as
11612 + published by the Free Software Foundation; either version 2.1 of the
11613 + License, or (at your option) any later version.
11614
11615 - This program is distributed in the hope that it will be useful,
11616 + This file is distributed in the hope that it will be useful,
11617 but WITHOUT ANY WARRANTY; without even the implied warranty of
11618 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11619 - GNU General Public License for more details.
11620 + GNU Lesser General Public License for more details.
11621
11622 - You should have received a copy of the GNU General Public License
11623 - along with this program. If not, see <https://www.gnu.org/licenses/>.
11624 + You should have received a copy of the GNU Lesser General Public License
11625 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
11626
11627 - The code is taken from glibc/manual/llio.texi */
11628 +/* The code is taken from glibc/manual/llio.texi */
11629
11630 #include <config.h>
11631
11632
11633 diff --git a/autotools/gnulib/cloexec.h b/autotools/gnulib/cloexec.h
11634 index 06ad945..7a22d77 100644
11635 --- a/autotools/gnulib/cloexec.h
11636 +++ b/autotools/gnulib/cloexec.h
11637 @@ -1,21 +1,19 @@
11638 /* cloexec.c - set or clear the close-on-exec descriptor flag
11639
11640 - Copyright (C) 2004, 2009-2019 Free Software Foundation, Inc.
11641 + Copyright (C) 2004, 2009-2022 Free Software Foundation, Inc.
11642
11643 - This program is free software: you can redistribute it and/or modify
11644 - it under the terms of the GNU General Public License as published by
11645 - the Free Software Foundation; either version 3 of the License, or
11646 - (at your option) any later version.
11647 + This file is free software: you can redistribute it and/or modify
11648 + it under the terms of the GNU Lesser General Public License as
11649 + published by the Free Software Foundation; either version 2.1 of the
11650 + License, or (at your option) any later version.
11651
11652 - This program is distributed in the hope that it will be useful,
11653 + This file is distributed in the hope that it will be useful,
11654 but WITHOUT ANY WARRANTY; without even the implied warranty of
11655 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11656 - GNU General Public License for more details.
11657 + GNU Lesser General Public License for more details.
11658
11659 - You should have received a copy of the GNU General Public License
11660 - along with this program. If not, see <https://www.gnu.org/licenses/>.
11661 -
11662 -*/
11663 + You should have received a copy of the GNU Lesser General Public License
11664 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
11665
11666 #include <stdbool.h>
11667
11668
11669 diff --git a/autotools/gnulib/close.c b/autotools/gnulib/close.c
11670 index 40ce845..44990ba 100644
11671 --- a/autotools/gnulib/close.c
11672 +++ b/autotools/gnulib/close.c
11673 @@ -1,17 +1,17 @@
11674 /* close replacement.
11675 - Copyright (C) 2008-2019 Free Software Foundation, Inc.
11676 + Copyright (C) 2008-2022 Free Software Foundation, Inc.
11677
11678 - This program is free software: you can redistribute it and/or modify
11679 - it under the terms of the GNU General Public License as published by
11680 - the Free Software Foundation; either version 3 of the License, or
11681 - (at your option) any later version.
11682 + This file is free software: you can redistribute it and/or modify
11683 + it under the terms of the GNU Lesser General Public License as
11684 + published by the Free Software Foundation; either version 2.1 of the
11685 + License, or (at your option) any later version.
11686
11687 - This program is distributed in the hope that it will be useful,
11688 + This file is distributed in the hope that it will be useful,
11689 but WITHOUT ANY WARRANTY; without even the implied warranty of
11690 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11691 - GNU General Public License for more details.
11692 + GNU Lesser General Public License for more details.
11693
11694 - You should have received a copy of the GNU General Public License
11695 + You should have received a copy of the GNU Lesser General Public License
11696 along with this program. If not, see <https://www.gnu.org/licenses/>. */
11697
11698 #include <config.h>
11699 @@ -28,7 +28,8 @@
11700
11701 #undef close
11702
11703 -#if HAVE_MSVC_INVALID_PARAMETER_HANDLER
11704 +#if defined _WIN32 && !defined __CYGWIN__
11705 +# if HAVE_MSVC_INVALID_PARAMETER_HANDLER
11706 static int
11707 close_nothrow (int fd)
11708 {
11709 @@ -36,7 +37,7 @@ close_nothrow (int fd)
11710
11711 TRY_MSVC_INVAL
11712 {
11713 - result = close (fd);
11714 + result = _close (fd);
11715 }
11716 CATCH_MSVC_INVAL
11717 {
11718 @@ -47,6 +48,9 @@ close_nothrow (int fd)
11719
11720 return result;
11721 }
11722 +# else
11723 +# define close_nothrow _close
11724 +# endif
11725 #else
11726 # define close_nothrow close
11727 #endif
11728
11729 diff --git a/autotools/gnulib/closedir.c b/autotools/gnulib/closedir.c
11730 index 017fb68..a273122 100644
11731 --- a/autotools/gnulib/closedir.c
11732 +++ b/autotools/gnulib/closedir.c
11733 @@ -1,17 +1,17 @@
11734 /* Stop reading the entries of a directory.
11735 - Copyright (C) 2006-2019 Free Software Foundation, Inc.
11736 + Copyright (C) 2006-2022 Free Software Foundation, Inc.
11737
11738 - This program is free software: you can redistribute it and/or modify
11739 - it under the terms of the GNU General Public License as published by
11740 - the Free Software Foundation; either version 3 of the License, or
11741 - (at your option) any later version.
11742 + This file is free software: you can redistribute it and/or modify
11743 + it under the terms of the GNU Lesser General Public License as
11744 + published by the Free Software Foundation; either version 2.1 of the
11745 + License, or (at your option) any later version.
11746
11747 - This program is distributed in the hope that it will be useful,
11748 + This file is distributed in the hope that it will be useful,
11749 but WITHOUT ANY WARRANTY; without even the implied warranty of
11750 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11751 - GNU General Public License for more details.
11752 + GNU Lesser General Public License for more details.
11753
11754 - You should have received a copy of the GNU General Public License
11755 + You should have received a copy of the GNU Lesser General Public License
11756 along with this program. If not, see <https://www.gnu.org/licenses/>. */
11757
11758 #include <config.h>
11759
11760 diff --git a/autotools/gnulib/dirent-private.h b/autotools/gnulib/dirent-private.h
11761 index 1eb1b35..30cf5d9 100644
11762 --- a/autotools/gnulib/dirent-private.h
11763 +++ b/autotools/gnulib/dirent-private.h
11764 @@ -1,17 +1,17 @@
11765 /* Private details of the DIR type.
11766 - Copyright (C) 2011-2019 Free Software Foundation, Inc.
11767 + Copyright (C) 2011-2022 Free Software Foundation, Inc.
11768
11769 - This program is free software: you can redistribute it and/or modify
11770 - it under the terms of the GNU General Public License as published by
11771 - the Free Software Foundation; either version 3 of the License, or
11772 - (at your option) any later version.
11773 + This file is free software: you can redistribute it and/or modify
11774 + it under the terms of the GNU Lesser General Public License as
11775 + published by the Free Software Foundation; either version 2.1 of the
11776 + License, or (at your option) any later version.
11777
11778 - This program is distributed in the hope that it will be useful,
11779 + This file is distributed in the hope that it will be useful,
11780 but WITHOUT ANY WARRANTY; without even the implied warranty of
11781 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11782 - GNU General Public License for more details.
11783 + GNU Lesser General Public License for more details.
11784
11785 - You should have received a copy of the GNU General Public License
11786 + You should have received a copy of the GNU Lesser General Public License
11787 along with this program. If not, see <https://www.gnu.org/licenses/>. */
11788
11789 #ifndef _DIRENT_PRIVATE_H
11790 @@ -20,6 +20,10 @@
11791 #define WIN32_LEAN_AND_MEAN
11792 #include <windows.h>
11793
11794 +/* Don't assume that UNICODE is not defined. */
11795 +#undef WIN32_FIND_DATA
11796 +#define WIN32_FIND_DATA WIN32_FIND_DATAA
11797 +
11798 struct gl_directory
11799 {
11800 /* Status, or error code to produce in next readdir() call.
11801
11802 diff --git a/autotools/gnulib/dirent.in.h b/autotools/gnulib/dirent.in.h
11803 index a3c8eb3..f28288d 100644
11804 --- a/autotools/gnulib/dirent.in.h
11805 +++ b/autotools/gnulib/dirent.in.h
11806 @@ -1,17 +1,17 @@
11807 /* A GNU-like <dirent.h>.
11808 - Copyright (C) 2006-2019 Free Software Foundation, Inc.
11809 + Copyright (C) 2006-2022 Free Software Foundation, Inc.
11810
11811 - This program is free software: you can redistribute it and/or modify
11812 - it under the terms of the GNU General Public License as published by
11813 - the Free Software Foundation; either version 3 of the License, or
11814 - (at your option) any later version.
11815 + This file is free software: you can redistribute it and/or modify
11816 + it under the terms of the GNU Lesser General Public License as
11817 + published by the Free Software Foundation; either version 2.1 of the
11818 + License, or (at your option) any later version.
11819
11820 - This program is distributed in the hope that it will be useful,
11821 + This file is distributed in the hope that it will be useful,
11822 but WITHOUT ANY WARRANTY; without even the implied warranty of
11823 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11824 - GNU General Public License for more details.
11825 + GNU Lesser General Public License for more details.
11826
11827 - You should have received a copy of the GNU General Public License
11828 + You should have received a copy of the GNU Lesser General Public License
11829 along with this program. If not, see <https://www.gnu.org/licenses/>. */
11830
11831 #ifndef _@GUARD_PREFIX@_DIRENT_H
11832 @@ -55,12 +55,36 @@ typedef struct gl_directory DIR;
11833 # endif
11834 #endif
11835
11836 +/* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers
11837 + that can be freed by passing them as the Ith argument to the
11838 + function F. */
11839 +#ifndef _GL_ATTRIBUTE_DEALLOC
11840 +# if __GNUC__ >= 11
11841 +# define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
11842 +# else
11843 +# define _GL_ATTRIBUTE_DEALLOC(f, i)
11844 +# endif
11845 +#endif
11846 +
11847 +/* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly
11848 + allocated memory. */
11849 +/* Applies to: functions. */
11850 +#ifndef _GL_ATTRIBUTE_MALLOC
11851 +# if __GNUC__ >= 3 || defined __clang__
11852 +# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
11853 +# else
11854 +# define _GL_ATTRIBUTE_MALLOC
11855 +# endif
11856 +#endif
11857 +
11858 /* The __attribute__ feature is available in gcc versions 2.5 and later.
11859 The attribute __pure__ was added in gcc 2.96. */
11860 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
11861 -# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
11862 -#else
11863 -# define _GL_ATTRIBUTE_PURE /* empty */
11864 +#ifndef _GL_ATTRIBUTE_PURE
11865 +# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__
11866 +# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
11867 +# else
11868 +# define _GL_ATTRIBUTE_PURE /* empty */
11869 +# endif
11870 #endif
11871
11872 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
11873 @@ -72,6 +96,30 @@ typedef struct gl_directory DIR;
11874
11875 /* Declare overridden functions. */
11876
11877 +#if @GNULIB_CLOSEDIR@
11878 +# if @REPLACE_CLOSEDIR@
11879 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
11880 +# undef closedir
11881 +# define closedir rpl_closedir
11882 +# define GNULIB_defined_closedir 1
11883 +# endif
11884 +_GL_FUNCDECL_RPL (closedir, int, (DIR *dirp) _GL_ARG_NONNULL ((1)));
11885 +_GL_CXXALIAS_RPL (closedir, int, (DIR *dirp));
11886 +# else
11887 +# if !@HAVE_CLOSEDIR@
11888 +_GL_FUNCDECL_SYS (closedir, int, (DIR *dirp) _GL_ARG_NONNULL ((1)));
11889 +# endif
11890 +_GL_CXXALIAS_SYS (closedir, int, (DIR *dirp));
11891 +# endif
11892 +_GL_CXXALIASWARN (closedir);
11893 +#elif defined GNULIB_POSIXCHECK
11894 +# undef closedir
11895 +# if HAVE_RAW_DECL_CLOSEDIR
11896 +_GL_WARN_ON_USE (closedir, "closedir is not portable - "
11897 + "use gnulib module closedir for portability");
11898 +# endif
11899 +#endif
11900 +
11901 #if @GNULIB_OPENDIR@
11902 # if @REPLACE_OPENDIR@
11903 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
11904 @@ -79,20 +127,36 @@ typedef struct gl_directory DIR;
11905 # define opendir rpl_opendir
11906 # define GNULIB_defined_opendir 1
11907 # endif
11908 -_GL_FUNCDECL_RPL (opendir, DIR *, (const char *dir_name) _GL_ARG_NONNULL ((1)));
11909 +_GL_FUNCDECL_RPL (opendir, DIR *,
11910 + (const char *dir_name)
11911 + _GL_ARG_NONNULL ((1))
11912 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (closedir, 1));
11913 _GL_CXXALIAS_RPL (opendir, DIR *, (const char *dir_name));
11914 # else
11915 -# if !@HAVE_OPENDIR@
11916 -_GL_FUNCDECL_SYS (opendir, DIR *, (const char *dir_name) _GL_ARG_NONNULL ((1)));
11917 +# if !@HAVE_OPENDIR@ || __GNUC__ >= 11
11918 +_GL_FUNCDECL_SYS (opendir, DIR *,
11919 + (const char *dir_name)
11920 + _GL_ARG_NONNULL ((1))
11921 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (closedir, 1));
11922 # endif
11923 _GL_CXXALIAS_SYS (opendir, DIR *, (const char *dir_name));
11924 # endif
11925 _GL_CXXALIASWARN (opendir);
11926 -#elif defined GNULIB_POSIXCHECK
11927 -# undef opendir
11928 -# if HAVE_RAW_DECL_OPENDIR
11929 +#else
11930 +# if @GNULIB_CLOSEDIR@ && __GNUC__ >= 11 && !defined opendir
11931 +/* For -Wmismatched-dealloc: Associate opendir with closedir or
11932 + rpl_closedir. */
11933 +_GL_FUNCDECL_SYS (opendir, DIR *,
11934 + (const char *dir_name)
11935 + _GL_ARG_NONNULL ((1))
11936 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (closedir, 1));
11937 +# endif
11938 +# if defined GNULIB_POSIXCHECK
11939 +# undef opendir
11940 +# if HAVE_RAW_DECL_OPENDIR
11941 _GL_WARN_ON_USE (opendir, "opendir is not portable - "
11942 "use gnulib module opendir for portability");
11943 +# endif
11944 # endif
11945 #endif
11946
11947 @@ -124,35 +188,12 @@ _GL_WARN_ON_USE (rewinddir, "rewinddir is not portable - "
11948 # endif
11949 #endif
11950
11951 -#if @GNULIB_CLOSEDIR@
11952 -# if @REPLACE_CLOSEDIR@
11953 -# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
11954 -# undef closedir
11955 -# define closedir rpl_closedir
11956 -# define GNULIB_defined_closedir 1
11957 -# endif
11958 -_GL_FUNCDECL_RPL (closedir, int, (DIR *dirp) _GL_ARG_NONNULL ((1)));
11959 -_GL_CXXALIAS_RPL (closedir, int, (DIR *dirp));
11960 -# else
11961 -# if !@HAVE_CLOSEDIR@
11962 -_GL_FUNCDECL_SYS (closedir, int, (DIR *dirp) _GL_ARG_NONNULL ((1)));
11963 -# endif
11964 -_GL_CXXALIAS_SYS (closedir, int, (DIR *dirp));
11965 -# endif
11966 -_GL_CXXALIASWARN (closedir);
11967 -#elif defined GNULIB_POSIXCHECK
11968 -# undef closedir
11969 -# if HAVE_RAW_DECL_CLOSEDIR
11970 -_GL_WARN_ON_USE (closedir, "closedir is not portable - "
11971 - "use gnulib module closedir for portability");
11972 -# endif
11973 -#endif
11974 -
11975 #if @GNULIB_DIRFD@
11976 /* Return the file descriptor associated with the given directory stream,
11977 or -1 if none exists. */
11978 # if @REPLACE_DIRFD@
11979 -# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
11980 +/* On kLIBC, dirfd() is a macro that does not work. Undefine it. */
11981 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE) || defined dirfd
11982 # undef dirfd
11983 # define dirfd rpl_dirfd
11984 # endif
11985 @@ -197,20 +238,33 @@ _GL_WARN_ON_USE (dirfd, "dirfd is unportable - "
11986 # undef fdopendir
11987 # define fdopendir rpl_fdopendir
11988 # endif
11989 -_GL_FUNCDECL_RPL (fdopendir, DIR *, (int fd));
11990 +_GL_FUNCDECL_RPL (fdopendir, DIR *,
11991 + (int fd)
11992 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (closedir, 1));
11993 _GL_CXXALIAS_RPL (fdopendir, DIR *, (int fd));
11994 # else
11995 -# if !@HAVE_FDOPENDIR@ || !@HAVE_DECL_FDOPENDIR@
11996 -_GL_FUNCDECL_SYS (fdopendir, DIR *, (int fd));
11997 +# if !@HAVE_FDOPENDIR@ || !@HAVE_DECL_FDOPENDIR@ || __GNUC__ >= 11
11998 +_GL_FUNCDECL_SYS (fdopendir, DIR *,
11999 + (int fd)
12000 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (closedir, 1));
12001 # endif
12002 _GL_CXXALIAS_SYS (fdopendir, DIR *, (int fd));
12003 # endif
12004 _GL_CXXALIASWARN (fdopendir);
12005 -#elif defined GNULIB_POSIXCHECK
12006 -# undef fdopendir
12007 -# if HAVE_RAW_DECL_FDOPENDIR
12008 +#else
12009 +# if @GNULIB_CLOSEDIR@ && __GNUC__ >= 11 && !defined fdopendir
12010 +/* For -Wmismatched-dealloc: Associate fdopendir with closedir or
12011 + rpl_closedir. */
12012 +_GL_FUNCDECL_SYS (fdopendir, DIR *,
12013 + (int fd)
12014 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (closedir, 1));
12015 +# endif
12016 +# if defined GNULIB_POSIXCHECK
12017 +# undef fdopendir
12018 +# if HAVE_RAW_DECL_FDOPENDIR
12019 _GL_WARN_ON_USE (fdopendir, "fdopendir is unportable - "
12020 "use gnulib module fdopendir for portability");
12021 +# endif
12022 # endif
12023 #endif
12024
12025
12026 diff --git a/autotools/gnulib/dirfd.c b/autotools/gnulib/dirfd.c
12027 index bc858fd..4104683 100644
12028 --- a/autotools/gnulib/dirfd.c
12029 +++ b/autotools/gnulib/dirfd.c
12030 @@ -1,18 +1,18 @@
12031 /* dirfd.c -- return the file descriptor associated with an open DIR*
12032
12033 - Copyright (C) 2001, 2006, 2008-2019 Free Software Foundation, Inc.
12034 + Copyright (C) 2001, 2006, 2008-2022 Free Software Foundation, Inc.
12035
12036 - This program is free software: you can redistribute it and/or modify
12037 - it under the terms of the GNU General Public License as published by
12038 - the Free Software Foundation; either version 3 of the License, or
12039 - (at your option) any later version.
12040 + This file is free software: you can redistribute it and/or modify
12041 + it under the terms of the GNU Lesser General Public License as
12042 + published by the Free Software Foundation; either version 2.1 of the
12043 + License, or (at your option) any later version.
12044
12045 - This program is distributed in the hope that it will be useful,
12046 + This file is distributed in the hope that it will be useful,
12047 but WITHOUT ANY WARRANTY; without even the implied warranty of
12048 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12049 - GNU General Public License for more details.
12050 + GNU Lesser General Public License for more details.
12051
12052 - You should have received a copy of the GNU General Public License
12053 + You should have received a copy of the GNU Lesser General Public License
12054 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12055
12056 /* Written by Jim Meyering. */
12057
12058 diff --git a/autotools/gnulib/dirname-lgpl.c b/autotools/gnulib/dirname-lgpl.c
12059 index 7cf89d8..d54f6a9 100644
12060 --- a/autotools/gnulib/dirname-lgpl.c
12061 +++ b/autotools/gnulib/dirname-lgpl.c
12062 @@ -1,19 +1,19 @@
12063 /* dirname.c -- return all but the last element in a file name
12064
12065 - Copyright (C) 1990, 1998, 2000-2001, 2003-2006, 2009-2019 Free Software
12066 + Copyright (C) 1990, 1998, 2000-2001, 2003-2006, 2009-2022 Free Software
12067 Foundation, Inc.
12068
12069 - This program is free software: you can redistribute it and/or modify
12070 - it under the terms of the GNU General Public License as published by
12071 - the Free Software Foundation; either version 3 of the License, or
12072 - (at your option) any later version.
12073 + This file is free software: you can redistribute it and/or modify
12074 + it under the terms of the GNU Lesser General Public License as
12075 + published by the Free Software Foundation; either version 2.1 of the
12076 + License, or (at your option) any later version.
12077
12078 - This program is distributed in the hope that it will be useful,
12079 + This file is distributed in the hope that it will be useful,
12080 but WITHOUT ANY WARRANTY; without even the implied warranty of
12081 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12082 - GNU General Public License for more details.
12083 + GNU Lesser General Public License for more details.
12084
12085 - You should have received a copy of the GNU General Public License
12086 + You should have received a copy of the GNU Lesser General Public License
12087 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12088
12089 #include <config.h>
12090
12091 diff --git a/autotools/gnulib/dirname.h b/autotools/gnulib/dirname.h
12092 index 5791659..e18a97e 100644
12093 --- a/autotools/gnulib/dirname.h
12094 +++ b/autotools/gnulib/dirname.h
12095 @@ -1,49 +1,49 @@
12096 -/* Take file names apart into directory and base names.
12097 +/* Take file names apart into directory and base names.
12098
12099 - Copyright (C) 1998, 2001, 2003-2006, 2009-2019 Free Software Foundation,
12100 - Inc.
12101 + Copyright (C) 1998, 2001, 2003-2006, 2009-2022 Free Software Foundation,
12102 + Inc.
12103
12104 - This program is free software: you can redistribute it and/or modify
12105 - it under the terms of the GNU General Public License as published by
12106 - the Free Software Foundation; either version 3 of the License, or
12107 - (at your option) any later version.
12108 + This file is free software: you can redistribute it and/or modify
12109 + it under the terms of the GNU Lesser General Public License as
12110 + published by the Free Software Foundation; either version 2.1 of the
12111 + License, or (at your option) any later version.
12112
12113 - This program is distributed in the hope that it will be useful,
12114 - but WITHOUT ANY WARRANTY; without even the implied warranty of
12115 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12116 - GNU General Public License for more details.
12117 + This file is distributed in the hope that it will be useful,
12118 + but WITHOUT ANY WARRANTY; without even the implied warranty of
12119 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12120 + GNU Lesser General Public License for more details.
12121
12122 - You should have received a copy of the GNU General Public License
12123 - along with this program. If not, see <https://www.gnu.org/licenses/>. */
12124 + You should have received a copy of the GNU Lesser General Public License
12125 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
12126
12127 #ifndef DIRNAME_H_
12128 # define DIRNAME_H_ 1
12129
12130 # include <stdbool.h>
12131 -# include <stddef.h>
12132 -# include "dosname.h"
12133 +# include <stdlib.h>
12134 +# include "filename.h"
12135 +# include "basename-lgpl.h"
12136
12137 # ifndef DIRECTORY_SEPARATOR
12138 # define DIRECTORY_SEPARATOR '/'
12139 # endif
12140
12141 -# ifndef DOUBLE_SLASH_IS_DISTINCT_ROOT
12142 -# define DOUBLE_SLASH_IS_DISTINCT_ROOT 0
12143 -# endif
12144 -
12145 #ifdef __cplusplus
12146 extern "C" {
12147 #endif
12148
12149 # if GNULIB_DIRNAME
12150 -char *base_name (char const *file) _GL_ATTRIBUTE_MALLOC;
12151 -char *dir_name (char const *file);
12152 +char *base_name (char const *file)
12153 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
12154 + _GL_ATTRIBUTE_RETURNS_NONNULL;
12155 +char *dir_name (char const *file)
12156 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
12157 + _GL_ATTRIBUTE_RETURNS_NONNULL;
12158 # endif
12159
12160 -char *mdir_name (char const *file);
12161 -size_t base_len (char const *file) _GL_ATTRIBUTE_PURE;
12162 +char *mdir_name (char const *file)
12163 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;
12164 size_t dir_len (char const *file) _GL_ATTRIBUTE_PURE;
12165 -char *last_component (char const *file) _GL_ATTRIBUTE_PURE;
12166
12167 bool strip_trailing_slashes (char *file);
12168
12169
12170 diff --git a/autotools/gnulib/dosname.h b/autotools/gnulib/dosname.h
12171 deleted file mode 100644
12172 index c0ab684..0000000
12173 --- a/autotools/gnulib/dosname.h
12174 +++ /dev/null
12175 @@ -1,52 +0,0 @@
12176 -/* File names on MS-DOS/Windows systems.
12177 -
12178 - Copyright (C) 2000-2001, 2004-2006, 2009-2019 Free Software Foundation, Inc.
12179 -
12180 - This program is free software: you can redistribute it and/or modify
12181 - it under the terms of the GNU General Public License as published by
12182 - the Free Software Foundation; either version 3 of the License, or
12183 - (at your option) any later version.
12184 -
12185 - This program is distributed in the hope that it will be useful,
12186 - but WITHOUT ANY WARRANTY; without even the implied warranty of
12187 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12188 - GNU General Public License for more details.
12189 -
12190 - You should have received a copy of the GNU General Public License
12191 - along with this program. If not, see <https://www.gnu.org/licenses/>.
12192 -
12193 - From Paul Eggert and Jim Meyering. */
12194 -
12195 -#ifndef _DOSNAME_H
12196 -#define _DOSNAME_H
12197 -
12198 -#if (defined _WIN32 || defined __CYGWIN__ \
12199 - || defined __EMX__ || defined __MSDOS__ || defined __DJGPP__)
12200 - /* This internal macro assumes ASCII, but all hosts that support drive
12201 - letters use ASCII. */
12202 -# define _IS_DRIVE_LETTER(C) (((unsigned int) (C) | ('a' - 'A')) - 'a' \
12203 - <= 'z' - 'a')
12204 -# define FILE_SYSTEM_PREFIX_LEN(Filename) \
12205 - (_IS_DRIVE_LETTER ((Filename)[0]) && (Filename)[1] == ':' ? 2 : 0)
12206 -# ifndef __CYGWIN__
12207 -# define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 1
12208 -# endif
12209 -# define ISSLASH(C) ((C) == '/' || (C) == '\\')
12210 -#else
12211 -# define FILE_SYSTEM_PREFIX_LEN(Filename) 0
12212 -# define ISSLASH(C) ((C) == '/')
12213 -#endif
12214 -
12215 -#ifndef FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE
12216 -# define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 0
12217 -#endif
12218 -
12219 -#if FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE
12220 -# define IS_ABSOLUTE_FILE_NAME(F) ISSLASH ((F)[FILE_SYSTEM_PREFIX_LEN (F)])
12221 -# else
12222 -# define IS_ABSOLUTE_FILE_NAME(F) \
12223 - (ISSLASH ((F)[0]) || FILE_SYSTEM_PREFIX_LEN (F) != 0)
12224 -#endif
12225 -#define IS_RELATIVE_FILE_NAME(F) (! IS_ABSOLUTE_FILE_NAME (F))
12226 -
12227 -#endif /* DOSNAME_H_ */
12228
12229 diff --git a/autotools/gnulib/dup-safer-flag.c b/autotools/gnulib/dup-safer-flag.c
12230 index 485f741..f87792a 100644
12231 --- a/autotools/gnulib/dup-safer-flag.c
12232 +++ b/autotools/gnulib/dup-safer-flag.c
12233 @@ -1,11 +1,11 @@
12234 /* Duplicate a file descriptor result, avoiding clobbering
12235 STD{IN,OUT,ERR}_FILENO, with specific flags.
12236
12237 - Copyright (C) 2001, 2004-2006, 2009-2019 Free Software Foundation, Inc.
12238 + Copyright (C) 2001, 2004-2006, 2009-2022 Free Software Foundation, Inc.
12239
12240 This program is free software: you can redistribute it and/or modify
12241 it under the terms of the GNU General Public License as published by
12242 - the Free Software Foundation; either version 3 of the License, or
12243 + the Free Software Foundation, either version 3 of the License, or
12244 (at your option) any later version.
12245
12246 This program is distributed in the hope that it will be useful,
12247
12248 diff --git a/autotools/gnulib/dup-safer.c b/autotools/gnulib/dup-safer.c
12249 index c0c5f2a..38ff74c 100644
12250 --- a/autotools/gnulib/dup-safer.c
12251 +++ b/autotools/gnulib/dup-safer.c
12252 @@ -1,10 +1,10 @@
12253 /* Invoke dup, but avoid some glitches.
12254
12255 - Copyright (C) 2001, 2004-2006, 2009-2019 Free Software Foundation, Inc.
12256 + Copyright (C) 2001, 2004-2006, 2009-2022 Free Software Foundation, Inc.
12257
12258 This program is free software: you can redistribute it and/or modify
12259 it under the terms of the GNU General Public License as published by
12260 - the Free Software Foundation; either version 3 of the License, or
12261 + the Free Software Foundation, either version 3 of the License, or
12262 (at your option) any later version.
12263
12264 This program is distributed in the hope that it will be useful,
12265
12266 diff --git a/autotools/gnulib/dup.c b/autotools/gnulib/dup.c
12267 index d37f920..17a9c58 100644
12268 --- a/autotools/gnulib/dup.c
12269 +++ b/autotools/gnulib/dup.c
12270 @@ -1,18 +1,18 @@
12271 /* Duplicate an open file descriptor.
12272
12273 - Copyright (C) 2011-2019 Free Software Foundation, Inc.
12274 + Copyright (C) 2011-2022 Free Software Foundation, Inc.
12275
12276 - This program is free software: you can redistribute it and/or modify
12277 - it under the terms of the GNU General Public License as published by
12278 - the Free Software Foundation; either version 3 of the License, or
12279 - (at your option) any later version.
12280 + This file is free software: you can redistribute it and/or modify
12281 + it under the terms of the GNU Lesser General Public License as
12282 + published by the Free Software Foundation; either version 2.1 of the
12283 + License, or (at your option) any later version.
12284
12285 - This program is distributed in the hope that it will be useful,
12286 + This file is distributed in the hope that it will be useful,
12287 but WITHOUT ANY WARRANTY; without even the implied warranty of
12288 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12289 - GNU General Public License for more details.
12290 + GNU Lesser General Public License for more details.
12291
12292 - You should have received a copy of the GNU General Public License
12293 + You should have received a copy of the GNU Lesser General Public License
12294 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12295
12296 #include <config.h>
12297 @@ -28,7 +28,8 @@
12298
12299 #undef dup
12300
12301 -#if HAVE_MSVC_INVALID_PARAMETER_HANDLER
12302 +#if defined _WIN32 && !defined __CYGWIN__
12303 +# if HAVE_MSVC_INVALID_PARAMETER_HANDLER
12304 static int
12305 dup_nothrow (int fd)
12306 {
12307 @@ -36,7 +37,7 @@ dup_nothrow (int fd)
12308
12309 TRY_MSVC_INVAL
12310 {
12311 - result = dup (fd);
12312 + result = _dup (fd);
12313 }
12314 CATCH_MSVC_INVAL
12315 {
12316 @@ -47,6 +48,9 @@ dup_nothrow (int fd)
12317
12318 return result;
12319 }
12320 +# else
12321 +# define dup_nothrow _dup
12322 +# endif
12323 #elif defined __KLIBC__
12324 # include <fcntl.h>
12325 # include <sys/stat.h>
12326
12327 diff --git a/autotools/gnulib/dup2.c b/autotools/gnulib/dup2.c
12328 index d3aafa4..1c766ab 100644
12329 --- a/autotools/gnulib/dup2.c
12330 +++ b/autotools/gnulib/dup2.c
12331 @@ -1,18 +1,18 @@
12332 /* Duplicate an open file descriptor to a specified file descriptor.
12333
12334 - Copyright (C) 1999, 2004-2007, 2009-2019 Free Software Foundation, Inc.
12335 + Copyright (C) 1999, 2004-2007, 2009-2022 Free Software Foundation, Inc.
12336
12337 - This program is free software: you can redistribute it and/or modify
12338 - it under the terms of the GNU General Public License as published by
12339 - the Free Software Foundation; either version 3 of the License, or
12340 - (at your option) any later version.
12341 + This file is free software: you can redistribute it and/or modify
12342 + it under the terms of the GNU Lesser General Public License as
12343 + published by the Free Software Foundation; either version 2.1 of the
12344 + License, or (at your option) any later version.
12345
12346 - This program is distributed in the hope that it will be useful,
12347 + This file is distributed in the hope that it will be useful,
12348 but WITHOUT ANY WARRANTY; without even the implied warranty of
12349 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12350 - GNU General Public License for more details.
12351 + GNU Lesser General Public License for more details.
12352
12353 - You should have received a copy of the GNU General Public License
12354 + You should have received a copy of the GNU Lesser General Public License
12355 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12356
12357 /* written by Paul Eggert */
12358 @@ -25,28 +25,26 @@
12359 #include <errno.h>
12360 #include <fcntl.h>
12361
12362 -#if HAVE_DUP2
12363 +#undef dup2
12364
12365 -# undef dup2
12366 -
12367 -# if defined _WIN32 && ! defined __CYGWIN__
12368 +#if defined _WIN32 && ! defined __CYGWIN__
12369
12370 /* Get declarations of the native Windows API functions. */
12371 -# define WIN32_LEAN_AND_MEAN
12372 -# include <windows.h>
12373 +# define WIN32_LEAN_AND_MEAN
12374 +# include <windows.h>
12375
12376 -# if HAVE_MSVC_INVALID_PARAMETER_HANDLER
12377 -# include "msvc-inval.h"
12378 -# endif
12379 +# if HAVE_MSVC_INVALID_PARAMETER_HANDLER
12380 +# include "msvc-inval.h"
12381 +# endif
12382
12383 /* Get _get_osfhandle. */
12384 -# if GNULIB_MSVC_NOTHROW
12385 -# include "msvc-nothrow.h"
12386 -# else
12387 -# include <io.h>
12388 -# endif
12389 +# if GNULIB_MSVC_NOTHROW
12390 +# include "msvc-nothrow.h"
12391 +# else
12392 +# include <io.h>
12393 +# endif
12394
12395 -# if HAVE_MSVC_INVALID_PARAMETER_HANDLER
12396 +# if HAVE_MSVC_INVALID_PARAMETER_HANDLER
12397 static int
12398 dup2_nothrow (int fd, int desired_fd)
12399 {
12400 @@ -54,7 +52,7 @@ dup2_nothrow (int fd, int desired_fd)
12401
12402 TRY_MSVC_INVAL
12403 {
12404 - result = dup2 (fd, desired_fd);
12405 + result = _dup2 (fd, desired_fd);
12406 }
12407 CATCH_MSVC_INVAL
12408 {
12409 @@ -65,9 +63,9 @@ dup2_nothrow (int fd, int desired_fd)
12410
12411 return result;
12412 }
12413 -# else
12414 -# define dup2_nothrow dup2
12415 -# endif
12416 +# else
12417 +# define dup2_nothrow _dup2
12418 +# endif
12419
12420 static int
12421 ms_windows_dup2 (int fd, int desired_fd)
12422 @@ -103,11 +101,11 @@ ms_windows_dup2 (int fd, int desired_fd)
12423 return result;
12424 }
12425
12426 -# define dup2 ms_windows_dup2
12427 +# define dup2 ms_windows_dup2
12428
12429 -# elif defined __KLIBC__
12430 +#elif defined __KLIBC__
12431
12432 -# include <InnoTekLIBC/backend.h>
12433 +# include <InnoTekLIBC/backend.h>
12434
12435 static int
12436 klibc_dup2dirfd (int fd, int desired_fd)
12437 @@ -155,81 +153,37 @@ klibc_dup2 (int fd, int desired_fd)
12438 return dupfd;
12439 }
12440
12441 -# define dup2 klibc_dup2
12442 -# endif
12443 +# define dup2 klibc_dup2
12444 +#endif
12445
12446 int
12447 rpl_dup2 (int fd, int desired_fd)
12448 {
12449 int result;
12450
12451 -# ifdef F_GETFL
12452 +#ifdef F_GETFL
12453 /* On Linux kernels 2.6.26-2.6.29, dup2 (fd, fd) returns -EBADF.
12454 On Cygwin 1.5.x, dup2 (1, 1) returns 0.
12455 On Cygwin 1.7.17, dup2 (1, -1) dumps core.
12456 On Cygwin 1.7.25, dup2 (1, 256) can dump core.
12457 On Haiku, dup2 (fd, fd) mistakenly clears FD_CLOEXEC. */
12458 -# if HAVE_SETDTABLESIZE
12459 +# if HAVE_SETDTABLESIZE
12460 setdtablesize (desired_fd + 1);
12461 -# endif
12462 +# endif
12463 if (desired_fd < 0)
12464 fd = desired_fd;
12465 if (fd == desired_fd)
12466 return fcntl (fd, F_GETFL) == -1 ? -1 : fd;
12467 -# endif
12468 +#endif
12469
12470 result = dup2 (fd, desired_fd);
12471
12472 /* Correct an errno value on FreeBSD 6.1 and Cygwin 1.5.x. */
12473 if (result == -1 && errno == EMFILE)
12474 errno = EBADF;
12475 -# if REPLACE_FCHDIR
12476 +#if REPLACE_FCHDIR
12477 if (fd != desired_fd && result != -1)
12478 result = _gl_register_dup (fd, result);
12479 -# endif
12480 - return result;
12481 -}
12482 -
12483 -#else /* !HAVE_DUP2 */
12484 -
12485 -/* On older platforms, dup2 did not exist. */
12486 -
12487 -# ifndef F_DUPFD
12488 -static int
12489 -dupfd (int fd, int desired_fd)
12490 -{
12491 - int duplicated_fd = dup (fd);
12492 - if (duplicated_fd < 0 || duplicated_fd == desired_fd)
12493 - return duplicated_fd;
12494 - else
12495 - {
12496 - int r = dupfd (fd, desired_fd);
12497 - int e = errno;
12498 - close (duplicated_fd);
12499 - errno = e;
12500 - return r;
12501 - }
12502 -}
12503 -# endif
12504 -
12505 -int
12506 -dup2 (int fd, int desired_fd)
12507 -{
12508 - int result = fcntl (fd, F_GETFL) < 0 ? -1 : fd;
12509 - if (result == -1 || fd == desired_fd)
12510 - return result;
12511 - close (desired_fd);
12512 -# ifdef F_DUPFD
12513 - result = fcntl (fd, F_DUPFD, desired_fd);
12514 -# if REPLACE_FCHDIR
12515 - if (0 <= result)
12516 - result = _gl_register_dup (fd, result);
12517 -# endif
12518 -# else
12519 - result = dupfd (fd, desired_fd);
12520 -# endif
12521 - if (result == -1 && (errno == EMFILE || errno == EINVAL))
12522 - errno = EBADF;
12523 +#endif
12524 return result;
12525 }
12526 -#endif /* !HAVE_DUP2 */
12527
12528 diff --git a/autotools/gnulib/errno.in.h b/autotools/gnulib/errno.in.h
12529 index 3bd27f1..3ec1845 100644
12530 --- a/autotools/gnulib/errno.in.h
12531 +++ b/autotools/gnulib/errno.in.h
12532 @@ -1,19 +1,19 @@
12533 /* A POSIX-like <errno.h>.
12534
12535 - Copyright (C) 2008-2019 Free Software Foundation, Inc.
12536 + Copyright (C) 2008-2022 Free Software Foundation, Inc.
12537
12538 - This program is free software; you can redistribute it and/or modify
12539 - it under the terms of the GNU General Public License as published by
12540 - the Free Software Foundation; either version 3, or (at your option)
12541 - any later version.
12542 + This file is free software: you can redistribute it and/or modify
12543 + it under the terms of the GNU Lesser General Public License as
12544 + published by the Free Software Foundation; either version 2.1 of the
12545 + License, or (at your option) any later version.
12546
12547 - This program is distributed in the hope that it will be useful,
12548 + This file is distributed in the hope that it will be useful,
12549 but WITHOUT ANY WARRANTY; without even the implied warranty of
12550 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12551 - GNU General Public License for more details.
12552 + GNU Lesser General Public License for more details.
12553
12554 - You should have received a copy of the GNU General Public License
12555 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
12556 + You should have received a copy of the GNU Lesser General Public License
12557 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
12558
12559 #ifndef _@GUARD_PREFIX@_ERRNO_H
12560
12561
12562 diff --git a/autotools/gnulib/error.c b/autotools/gnulib/error.c
12563 index 7e532f0..272d45e 100644
12564 --- a/autotools/gnulib/error.c
12565 +++ b/autotools/gnulib/error.c
12566 @@ -1,18 +1,18 @@
12567 /* Error handler for noninteractive utilities
12568 - Copyright (C) 1990-1998, 2000-2007, 2009-2019 Free Software Foundation, Inc.
12569 + Copyright (C) 1990-1998, 2000-2007, 2009-2022 Free Software Foundation, Inc.
12570 This file is part of the GNU C Library.
12571
12572 - This program is free software: you can redistribute it and/or modify
12573 - it under the terms of the GNU General Public License as published by
12574 - the Free Software Foundation; either version 3 of the License, or
12575 - (at your option) any later version.
12576 + This file is free software: you can redistribute it and/or modify
12577 + it under the terms of the GNU Lesser General Public License as
12578 + published by the Free Software Foundation; either version 2.1 of the
12579 + License, or (at your option) any later version.
12580
12581 - This program is distributed in the hope that it will be useful,
12582 + This file is distributed in the hope that it will be useful,
12583 but WITHOUT ANY WARRANTY; without even the implied warranty of
12584 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12585 - GNU General Public License for more details.
12586 + GNU Lesser General Public License for more details.
12587
12588 - You should have received a copy of the GNU General Public License
12589 + You should have received a copy of the GNU Lesser General Public License
12590 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12591
12592 /* Written by David MacKenzie <djm@××××××××××.edu>. */
12593 @@ -40,7 +40,7 @@
12594 # include <wchar.h>
12595 # define mbsrtowcs __mbsrtowcs
12596 # define USE_UNLOCKED_IO 0
12597 -# define _GL_ATTRIBUTE_FORMAT_PRINTF(a, b)
12598 +# define _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD(a, b)
12599 # define _GL_ARG_NONNULL(a)
12600 #else
12601 # include "getprogname.h"
12602 @@ -119,7 +119,7 @@ int strerror_r (int errnum, char *buf, size_t buflen);
12603 # endif
12604 # endif
12605
12606 -#define program_name getprogname ()
12607 +# define program_name getprogname ()
12608
12609 # if GNULIB_STRERROR_R_POSIX || HAVE_STRERROR_R || defined strerror_r
12610 # define __strerror_r strerror_r
12611 @@ -202,7 +202,7 @@ print_errno_message (int errnum)
12612 #endif
12613 }
12614
12615 -static void _GL_ATTRIBUTE_FORMAT_PRINTF (3, 0) _GL_ARG_NONNULL ((3))
12616 +static void _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 0) _GL_ARG_NONNULL ((3))
12617 error_tail (int status, int errnum, const char *message, va_list args)
12618 {
12619 #if _LIBC
12620
12621 diff --git a/autotools/gnulib/error.h b/autotools/gnulib/error.h
12622 index 3759f8a..45ec2a5 100644
12623 --- a/autotools/gnulib/error.h
12624 +++ b/autotools/gnulib/error.h
12625 @@ -1,45 +1,26 @@
12626 /* Declaration for error-reporting function
12627 - Copyright (C) 1995-1997, 2003, 2006, 2008-2019 Free Software Foundation,
12628 + Copyright (C) 1995-1997, 2003, 2006, 2008-2022 Free Software Foundation,
12629 Inc.
12630 This file is part of the GNU C Library.
12631
12632 - This program is free software: you can redistribute it and/or modify
12633 - it under the terms of the GNU General Public License as published by
12634 - the Free Software Foundation; either version 3 of the License, or
12635 - (at your option) any later version.
12636 + This file is free software: you can redistribute it and/or modify
12637 + it under the terms of the GNU Lesser General Public License as
12638 + published by the Free Software Foundation; either version 2.1 of the
12639 + License, or (at your option) any later version.
12640
12641 - This program is distributed in the hope that it will be useful,
12642 + This file is distributed in the hope that it will be useful,
12643 but WITHOUT ANY WARRANTY; without even the implied warranty of
12644 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12645 - GNU General Public License for more details.
12646 + GNU Lesser General Public License for more details.
12647
12648 - You should have received a copy of the GNU General Public License
12649 + You should have received a copy of the GNU Lesser General Public License
12650 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12651
12652 #ifndef _ERROR_H
12653 #define _ERROR_H 1
12654
12655 -/* The __attribute__ feature is available in gcc versions 2.5 and later.
12656 - The __-protected variants of the attributes 'format' and 'printf' are
12657 - accepted by gcc versions 2.6.4 (effectively 2.7) and later.
12658 - We enable _GL_ATTRIBUTE_FORMAT only if these are supported too, because
12659 - gnulib and libintl do '#define printf __printf__' when they override
12660 - the 'printf' function. */
12661 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
12662 -# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
12663 -#else
12664 -# define _GL_ATTRIBUTE_FORMAT(spec) /* empty */
12665 -#endif
12666 -
12667 -/* On mingw, the flavor of printf depends on whether the extensions module
12668 - * is in use; the check for <stdio.h> determines the witness macro. */
12669 -#ifndef _GL_ATTRIBUTE_SPEC_PRINTF
12670 -# if GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU
12671 -# define _GL_ATTRIBUTE_SPEC_PRINTF __gnu_printf__
12672 -# else
12673 -# define _GL_ATTRIBUTE_SPEC_PRINTF __printf__
12674 -# endif
12675 -#endif
12676 +/* Get _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM. */
12677 +#include <stdio.h>
12678
12679 #ifdef __cplusplus
12680 extern "C" {
12681 @@ -50,11 +31,21 @@ extern "C" {
12682 If STATUS is nonzero, terminate the program with 'exit (STATUS)'. */
12683
12684 extern void error (int __status, int __errnum, const char *__format, ...)
12685 - _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF, 3, 4));
12686 +#if GNULIB_VFPRINTF_POSIX
12687 + _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 3, 4))
12688 +#else
12689 + _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM, 3, 4))
12690 +#endif
12691 + ;
12692
12693 extern void error_at_line (int __status, int __errnum, const char *__fname,
12694 unsigned int __lineno, const char *__format, ...)
12695 - _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF, 5, 6));
12696 +#if GNULIB_VFPRINTF_POSIX
12697 + _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 5, 6))
12698 +#else
12699 + _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM, 5, 6))
12700 +#endif
12701 + ;
12702
12703 /* If NULL, error will flush stdout, then print on stderr the program
12704 name, a colon and a space. Otherwise, error will call this
12705
12706 diff --git a/autotools/gnulib/euidaccess.c b/autotools/gnulib/euidaccess.c
12707 index fece4cf..97388c7 100644
12708 --- a/autotools/gnulib/euidaccess.c
12709 +++ b/autotools/gnulib/euidaccess.c
12710 @@ -1,21 +1,21 @@
12711 /* euidaccess -- check if effective user id can access file
12712
12713 - Copyright (C) 1990-1991, 1995, 1998, 2000, 2003-2006, 2008-2019 Free
12714 + Copyright (C) 1990-1991, 1995, 1998, 2000, 2003-2006, 2008-2022 Free
12715 Software Foundation, Inc.
12716
12717 This file is part of the GNU C Library.
12718
12719 - This program is free software: you can redistribute it and/or modify
12720 - it under the terms of the GNU General Public License as published by
12721 - the Free Software Foundation; either version 3 of the License, or
12722 - (at your option) any later version.
12723 + This file is free software: you can redistribute it and/or modify
12724 + it under the terms of the GNU Lesser General Public License as
12725 + published by the Free Software Foundation; either version 2.1 of the
12726 + License, or (at your option) any later version.
12727
12728 - This program is distributed in the hope that it will be useful,
12729 + This file is distributed in the hope that it will be useful,
12730 but WITHOUT ANY WARRANTY; without even the implied warranty of
12731 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12732 - GNU General Public License for more details.
12733 + GNU Lesser General Public License for more details.
12734
12735 - You should have received a copy of the GNU General Public License
12736 + You should have received a copy of the GNU Lesser General Public License
12737 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12738
12739 /* Written by David MacKenzie and Torbjorn Granlund.
12740 @@ -107,7 +107,10 @@ euidaccess (const char *file, int mode)
12741 safe. */
12742
12743 if (mode == F_OK)
12744 - return stat (file, &stats);
12745 + {
12746 + int result = stat (file, &stats);
12747 + return result != 0 && errno == EOVERFLOW ? 0 : result;
12748 + }
12749 else
12750 {
12751 int result;
12752 @@ -142,8 +145,8 @@ euidaccess (const char *file, int mode)
12753 /* If we are not set-uid or set-gid, access does the same. */
12754 return access (file, mode);
12755
12756 - if (stat (file, &stats) != 0)
12757 - return -1;
12758 + if (stat (file, &stats) == -1)
12759 + return mode == F_OK && errno == EOVERFLOW ? 0 : -1;
12760
12761 /* The super-user can read and write any file, and execute any file
12762 that anyone can execute. */
12763
12764 diff --git a/autotools/gnulib/exitfail.c b/autotools/gnulib/exitfail.c
12765 index 69b3513..84fb0ef 100644
12766 --- a/autotools/gnulib/exitfail.c
12767 +++ b/autotools/gnulib/exitfail.c
12768 @@ -1,18 +1,18 @@
12769 /* Failure exit status
12770
12771 - Copyright (C) 2002-2003, 2005-2007, 2009-2019 Free Software Foundation, Inc.
12772 + Copyright (C) 2002-2003, 2005-2007, 2009-2022 Free Software Foundation, Inc.
12773
12774 - This program is free software: you can redistribute it and/or modify
12775 - it under the terms of the GNU General Public License as published by
12776 - the Free Software Foundation; either version 3 of the License, or
12777 - (at your option) any later version.
12778 + This file is free software: you can redistribute it and/or modify
12779 + it under the terms of the GNU Lesser General Public License as
12780 + published by the Free Software Foundation; either version 2.1 of the
12781 + License, or (at your option) any later version.
12782
12783 - This program is distributed in the hope that it will be useful,
12784 + This file is distributed in the hope that it will be useful,
12785 but WITHOUT ANY WARRANTY; without even the implied warranty of
12786 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12787 - GNU General Public License for more details.
12788 + GNU Lesser General Public License for more details.
12789
12790 - You should have received a copy of the GNU General Public License
12791 + You should have received a copy of the GNU Lesser General Public License
12792 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12793
12794 #include <config.h>
12795
12796 diff --git a/autotools/gnulib/exitfail.h b/autotools/gnulib/exitfail.h
12797 index 480ad1a..865f096 100644
12798 --- a/autotools/gnulib/exitfail.h
12799 +++ b/autotools/gnulib/exitfail.h
12800 @@ -1,18 +1,18 @@
12801 /* Failure exit status
12802
12803 - Copyright (C) 2002, 2009-2019 Free Software Foundation, Inc.
12804 + Copyright (C) 2002, 2009-2022 Free Software Foundation, Inc.
12805
12806 - This program is free software: you can redistribute it and/or modify
12807 - it under the terms of the GNU General Public License as published by
12808 - the Free Software Foundation; either version 3 of the License, or
12809 - (at your option) any later version.
12810 + This file is free software: you can redistribute it and/or modify
12811 + it under the terms of the GNU Lesser General Public License as
12812 + published by the Free Software Foundation; either version 2.1 of the
12813 + License, or (at your option) any later version.
12814
12815 - This program is distributed in the hope that it will be useful,
12816 + This file is distributed in the hope that it will be useful,
12817 but WITHOUT ANY WARRANTY; without even the implied warranty of
12818 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12819 - GNU General Public License for more details.
12820 + GNU Lesser General Public License for more details.
12821
12822 - You should have received a copy of the GNU General Public License
12823 + You should have received a copy of the GNU Lesser General Public License
12824 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12825
12826 extern int volatile exit_failure;
12827
12828 diff --git a/autotools/gnulib/faccessat.c b/autotools/gnulib/faccessat.c
12829 index 6c63e61..c1737d0 100644
12830 --- a/autotools/gnulib/faccessat.c
12831 +++ b/autotools/gnulib/faccessat.c
12832 @@ -1,9 +1,9 @@
12833 /* Check the access rights of a file relative to an open directory.
12834 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
12835 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
12836
12837 This program is free software: you can redistribute it and/or modify
12838 it under the terms of the GNU General Public License as published by
12839 - the Free Software Foundation; either version 3 of the License, or
12840 + the Free Software Foundation, either version 3 of the License, or
12841 (at your option) any later version.
12842
12843 This program is distributed in the hope that it will be useful,
12844 @@ -22,9 +22,12 @@
12845 #define _GL_INCLUDING_UNISTD_H
12846 #include <config.h>
12847
12848 +/* Specification. */
12849 #include <unistd.h>
12850 +
12851 #include <errno.h>
12852 #include <fcntl.h>
12853 +#include <stdlib.h>
12854 #include <string.h>
12855 #include <sys/stat.h>
12856 #undef _GL_INCLUDING_UNISTD_H
12857
12858 diff --git a/autotools/gnulib/fchdir.c b/autotools/gnulib/fchdir.c
12859 index 38ab802..99e4aa8 100644
12860 --- a/autotools/gnulib/fchdir.c
12861 +++ b/autotools/gnulib/fchdir.c
12862 @@ -1,17 +1,17 @@
12863 /* fchdir replacement.
12864 - Copyright (C) 2006-2019 Free Software Foundation, Inc.
12865 + Copyright (C) 2006-2022 Free Software Foundation, Inc.
12866
12867 - This program is free software: you can redistribute it and/or modify
12868 - it under the terms of the GNU General Public License as published by
12869 - the Free Software Foundation; either version 3 of the License, or
12870 - (at your option) any later version.
12871 + This file is free software: you can redistribute it and/or modify
12872 + it under the terms of the GNU Lesser General Public License as
12873 + published by the Free Software Foundation, either version 3 of the
12874 + License, or (at your option) any later version.
12875
12876 - This program is distributed in the hope that it will be useful,
12877 + This file is distributed in the hope that it will be useful,
12878 but WITHOUT ANY WARRANTY; without even the implied warranty of
12879 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12880 - GNU General Public License for more details.
12881 + GNU Lesser General Public License for more details.
12882
12883 - You should have received a copy of the GNU General Public License
12884 + You should have received a copy of the GNU Lesser General Public License
12885 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12886
12887 #include <config.h>
12888 @@ -29,7 +29,7 @@
12889 #include <sys/stat.h>
12890
12891 #include "assure.h"
12892 -#include "dosname.h"
12893 +#include "filename.h"
12894 #include "filenamecat.h"
12895
12896 #ifndef REPLACE_OPEN_DIRECTORY
12897 @@ -84,13 +84,13 @@ ensure_dirs_slot (size_t fd)
12898 return true;
12899 }
12900
12901 -/* Return an absolute name of DIR in malloc'd storage. */
12902 +/* Return an absolute name of DIR in malloc'd storage.
12903 + Upon failure, return NULL with errno set. */
12904 static char *
12905 get_name (char const *dir)
12906 {
12907 char *cwd;
12908 char *result;
12909 - int saved_errno;
12910
12911 if (IS_ABSOLUTE_FILE_NAME (dir))
12912 return strdup (dir);
12913 @@ -101,9 +101,7 @@ get_name (char const *dir)
12914 return cwd;
12915
12916 result = mfile_name_concat (cwd, dir, NULL);
12917 - saved_errno = errno;
12918 free (cwd);
12919 - errno = saved_errno;
12920 return result;
12921 }
12922
12923 @@ -125,8 +123,8 @@ _gl_unregister_fd (int fd)
12924 /* Mark FD as visiting FILENAME. FD must be non-negative, and refer
12925 to an open file descriptor. If REPLACE_OPEN_DIRECTORY is non-zero,
12926 this should only be called if FD is visiting a directory. Close FD
12927 - and return -1 if there is insufficient memory to track the
12928 - directory name; otherwise return FD. */
12929 + and return -1 with errno set if there is insufficient memory to track
12930 + the directory name; otherwise return FD. */
12931 int
12932 _gl_register_fd (int fd, const char *filename)
12933 {
12934
12935 diff --git a/autotools/gnulib/fcntl.c b/autotools/gnulib/fcntl.c
12936 index 51f62ef..f9753c4 100644
12937 --- a/autotools/gnulib/fcntl.c
12938 +++ b/autotools/gnulib/fcntl.c
12939 @@ -1,18 +1,18 @@
12940 /* Provide file descriptor control.
12941
12942 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
12943 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
12944
12945 - This program is free software: you can redistribute it and/or modify
12946 - it under the terms of the GNU General Public License as published by
12947 - the Free Software Foundation; either version 3 of the License, or
12948 - (at your option) any later version.
12949 + This file is free software: you can redistribute it and/or modify
12950 + it under the terms of the GNU Lesser General Public License as
12951 + published by the Free Software Foundation; either version 2.1 of the
12952 + License, or (at your option) any later version.
12953
12954 - This program is distributed in the hope that it will be useful,
12955 + This file is distributed in the hope that it will be useful,
12956 but WITHOUT ANY WARRANTY; without even the implied warranty of
12957 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12958 - GNU General Public License for more details.
12959 + GNU Lesser General Public License for more details.
12960
12961 - You should have received a copy of the GNU General Public License
12962 + You should have received a copy of the GNU Lesser General Public License
12963 along with this program. If not, see <https://www.gnu.org/licenses/>. */
12964
12965 /* Written by Eric Blake <ebb9@×××.net>. */
12966 @@ -25,6 +25,7 @@
12967 #include <errno.h>
12968 #include <limits.h>
12969 #include <stdarg.h>
12970 +#include <stdlib.h>
12971 #include <unistd.h>
12972
12973 #ifdef __KLIBC__
12974 @@ -69,14 +70,14 @@ dupfd (int oldfd, int newfd, int flags)
12975 return -1;
12976 }
12977 if (old_handle == INVALID_HANDLE_VALUE
12978 - || (mode = setmode (oldfd, O_BINARY)) == -1)
12979 + || (mode = _setmode (oldfd, O_BINARY)) == -1)
12980 {
12981 /* oldfd is not open, or is an unassigned standard file
12982 descriptor. */
12983 errno = EBADF;
12984 return -1;
12985 }
12986 - setmode (oldfd, mode);
12987 + _setmode (oldfd, mode);
12988 flags |= mode;
12989
12990 for (;;)
12991 @@ -490,7 +491,9 @@ rpl_fcntl_DUPFD_CLOEXEC (int fd, int target)
12992 #if !HAVE_FCNTL
12993 result = dupfd (fd, target, O_CLOEXEC);
12994 #else /* HAVE_FCNTL */
12995 -# if defined __HAIKU__
12996 +# if defined __NetBSD__ || defined __HAIKU__
12997 + /* On NetBSD 9.0, the system fcntl (fd, F_DUPFD_CLOEXEC, target)
12998 + has only the same effect as fcntl (fd, F_DUPFD, target). */
12999 /* On Haiku, the system fcntl (fd, F_DUPFD_CLOEXEC, target) sets
13000 the FD_CLOEXEC flag on fd, not on target. Therefore avoid the
13001 system fcntl in this case. */
13002
13003 diff --git a/autotools/gnulib/fcntl.in.h b/autotools/gnulib/fcntl.in.h
13004 index eb70dc6..3e0c302 100644
13005 --- a/autotools/gnulib/fcntl.in.h
13006 +++ b/autotools/gnulib/fcntl.in.h
13007 @@ -1,18 +1,18 @@
13008 /* Like <fcntl.h>, but with non-working flags defined to 0.
13009
13010 - Copyright (C) 2006-2019 Free Software Foundation, Inc.
13011 + Copyright (C) 2006-2022 Free Software Foundation, Inc.
13012
13013 - This program is free software: you can redistribute it and/or modify
13014 - it under the terms of the GNU General Public License as published by
13015 - the Free Software Foundation; either version 3 of the License, or
13016 - (at your option) any later version.
13017 + This file is free software: you can redistribute it and/or modify
13018 + it under the terms of the GNU Lesser General Public License as
13019 + published by the Free Software Foundation; either version 2.1 of the
13020 + License, or (at your option) any later version.
13021
13022 - This program is distributed in the hope that it will be useful,
13023 + This file is distributed in the hope that it will be useful,
13024 but WITHOUT ANY WARRANTY; without even the implied warranty of
13025 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13026 - GNU General Public License for more details.
13027 + GNU Lesser General Public License for more details.
13028
13029 - You should have received a copy of the GNU General Public License
13030 + You should have received a copy of the GNU Lesser General Public License
13031 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13032
13033 /* written by Paul Eggert */
13034 @@ -39,6 +39,12 @@
13035 #endif
13036 #@INCLUDE_NEXT@ @NEXT_FCNTL_H@
13037
13038 +/* Native Windows platforms declare open(), creat() in <io.h>. */
13039 +#if (@GNULIB_CREAT@ || @GNULIB_OPEN@ || defined GNULIB_POSIXCHECK) \
13040 + && (defined _WIN32 && ! defined __CYGWIN__)
13041 +# include <io.h>
13042 +#endif
13043 +
13044 #else
13045 /* Normal invocation convention. */
13046
13047 @@ -59,6 +65,12 @@
13048 /* The include_next requires a split double-inclusion guard. */
13049 #@INCLUDE_NEXT@ @NEXT_FCNTL_H@
13050
13051 +/* Native Windows platforms declare open(), creat() in <io.h>. */
13052 +#if (@GNULIB_CREAT@ || @GNULIB_OPEN@ || defined GNULIB_POSIXCHECK) \
13053 + && (defined _WIN32 && ! defined __CYGWIN__)
13054 +# include <io.h>
13055 +#endif
13056 +
13057 #ifndef _@GUARD_PREFIX@_FCNTL_H
13058 #define _@GUARD_PREFIX@_FCNTL_H
13059
13060 @@ -66,12 +78,6 @@
13061 # include <unistd.h>
13062 #endif
13063
13064 -/* Native Windows platforms declare open(), creat() in <io.h>. */
13065 -#if (@GNULIB_OPEN@ || defined GNULIB_POSIXCHECK) \
13066 - && (defined _WIN32 && ! defined __CYGWIN__)
13067 -# include <io.h>
13068 -#endif
13069 -
13070
13071 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
13072
13073 @@ -82,6 +88,47 @@
13074
13075 /* Declare overridden functions. */
13076
13077 +#if @GNULIB_CREAT@
13078 +# if @REPLACE_CREAT@
13079 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
13080 +# undef creat
13081 +# define creat rpl_creat
13082 +# endif
13083 +_GL_FUNCDECL_RPL (creat, int, (const char *filename, mode_t mode)
13084 + _GL_ARG_NONNULL ((1)));
13085 +_GL_CXXALIAS_RPL (creat, int, (const char *filename, mode_t mode));
13086 +# elif defined _WIN32 && !defined __CYGWIN__
13087 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
13088 +# undef creat
13089 +# define creat _creat
13090 +# endif
13091 +_GL_CXXALIAS_MDA (creat, int, (const char *filename, mode_t mode));
13092 +# else
13093 +_GL_CXXALIAS_SYS (creat, int, (const char *filename, mode_t mode));
13094 +# endif
13095 +_GL_CXXALIASWARN (creat);
13096 +#elif defined GNULIB_POSIXCHECK
13097 +# undef creat
13098 +/* Assume creat is always declared. */
13099 +_GL_WARN_ON_USE (creat, "creat is not always POSIX compliant - "
13100 + "use gnulib module creat for portability");
13101 +#elif @GNULIB_MDA_CREAT@
13102 +/* On native Windows, map 'creat' to '_creat', so that -loldnames is not
13103 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
13104 + platforms by defining GNULIB_NAMESPACE::creat always. */
13105 +# if defined _WIN32 && !defined __CYGWIN__
13106 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
13107 +# undef creat
13108 +# define creat _creat
13109 +# endif
13110 +/* Need to cast, because in mingw the last argument is 'int mode'. */
13111 +_GL_CXXALIAS_MDA_CAST (creat, int, (const char *filename, mode_t mode));
13112 +# else
13113 +_GL_CXXALIAS_SYS (creat, int, (const char *filename, mode_t mode));
13114 +# endif
13115 +_GL_CXXALIASWARN (creat);
13116 +#endif
13117 +
13118 #if @GNULIB_FCNTL@
13119 # if @REPLACE_FCNTL@
13120 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
13121 @@ -90,9 +137,15 @@
13122 # endif
13123 _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...));
13124 _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...));
13125 +# if !GNULIB_defined_rpl_fcntl
13126 +# define GNULIB_defined_rpl_fcntl 1
13127 +# endif
13128 # else
13129 # if !@HAVE_FCNTL@
13130 _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...));
13131 +# if !GNULIB_defined_fcntl
13132 +# define GNULIB_defined_fcntl 1
13133 +# endif
13134 # endif
13135 _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...));
13136 # endif
13137 @@ -114,6 +167,12 @@ _GL_WARN_ON_USE (fcntl, "fcntl is not always POSIX compliant - "
13138 _GL_FUNCDECL_RPL (open, int, (const char *filename, int flags, ...)
13139 _GL_ARG_NONNULL ((1)));
13140 _GL_CXXALIAS_RPL (open, int, (const char *filename, int flags, ...));
13141 +# elif defined _WIN32 && !defined __CYGWIN__
13142 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
13143 +# undef open
13144 +# define open _open
13145 +# endif
13146 +_GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...));
13147 # else
13148 _GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...));
13149 # endif
13150 @@ -127,6 +186,22 @@ _GL_CXXALIASWARN (open);
13151 /* Assume open is always declared. */
13152 _GL_WARN_ON_USE (open, "open is not always POSIX compliant - "
13153 "use gnulib module open for portability");
13154 +#elif @GNULIB_MDA_OPEN@
13155 +/* On native Windows, map 'open' to '_open', so that -loldnames is not
13156 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
13157 + platforms by defining GNULIB_NAMESPACE::open always. */
13158 +# if defined _WIN32 && !defined __CYGWIN__
13159 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
13160 +# undef open
13161 +# define open _open
13162 +# endif
13163 +_GL_CXXALIAS_MDA (open, int, (const char *filename, int flags, ...));
13164 +# else
13165 +_GL_CXXALIAS_SYS (open, int, (const char *filename, int flags, ...));
13166 +# endif
13167 +# if !defined __hpux
13168 +_GL_CXXALIASWARN (open);
13169 +# endif
13170 #endif
13171
13172 #if @GNULIB_OPENAT@
13173
13174 diff --git a/autotools/gnulib/fd-hook.c b/autotools/gnulib/fd-hook.c
13175 index 7879119..64a7a80 100644
13176 --- a/autotools/gnulib/fd-hook.c
13177 +++ b/autotools/gnulib/fd-hook.c
13178 @@ -1,18 +1,18 @@
13179 /* Hook for making file descriptor functions close(), ioctl() extensible.
13180 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
13181 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
13182 Written by Bruno Haible <bruno@×××××.org>, 2009.
13183
13184 - This program is free software: you can redistribute it and/or modify it
13185 - under the terms of the GNU General Public License as published
13186 - by the Free Software Foundation; either version 3 of the License, or
13187 - (at your option) any later version.
13188 + This file is free software: you can redistribute it and/or modify
13189 + it under the terms of the GNU Lesser General Public License as
13190 + published by the Free Software Foundation; either version 2.1 of the
13191 + License, or (at your option) any later version.
13192
13193 - This program is distributed in the hope that it will be useful,
13194 + This file is distributed in the hope that it will be useful,
13195 but WITHOUT ANY WARRANTY; without even the implied warranty of
13196 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13197 - General Public License for more details.
13198 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13199 + GNU Lesser General Public License for more details.
13200
13201 - You should have received a copy of the GNU General Public License
13202 + You should have received a copy of the GNU Lesser General Public License
13203 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13204
13205 #include <config.h>
13206
13207 diff --git a/autotools/gnulib/fd-hook.h b/autotools/gnulib/fd-hook.h
13208 index bf07f00..d6c4964 100644
13209 --- a/autotools/gnulib/fd-hook.h
13210 +++ b/autotools/gnulib/fd-hook.h
13211 @@ -1,17 +1,17 @@
13212 /* Hook for making file descriptor functions close(), ioctl() extensible.
13213 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
13214 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
13215
13216 - This program is free software: you can redistribute it and/or modify it
13217 - under the terms of the GNU General Public License as published
13218 - by the Free Software Foundation; either version 3 of the License, or
13219 - (at your option) any later version.
13220 + This file is free software: you can redistribute it and/or modify
13221 + it under the terms of the GNU Lesser General Public License as
13222 + published by the Free Software Foundation; either version 2.1 of the
13223 + License, or (at your option) any later version.
13224
13225 - This program is distributed in the hope that it will be useful,
13226 + This file is distributed in the hope that it will be useful,
13227 but WITHOUT ANY WARRANTY; without even the implied warranty of
13228 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13229 - General Public License for more details.
13230 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13231 + GNU Lesser General Public License for more details.
13232
13233 - You should have received a copy of the GNU General Public License
13234 + You should have received a copy of the GNU Lesser General Public License
13235 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13236
13237
13238
13239 diff --git a/autotools/gnulib/fd-safer-flag.c b/autotools/gnulib/fd-safer-flag.c
13240 index 7c026ef..2e07cb9 100644
13241 --- a/autotools/gnulib/fd-safer-flag.c
13242 +++ b/autotools/gnulib/fd-safer-flag.c
13243 @@ -1,11 +1,11 @@
13244 /* Adjust a file descriptor result so that it avoids clobbering
13245 STD{IN,OUT,ERR}_FILENO, with specific flags.
13246
13247 - Copyright (C) 2005-2006, 2009-2019 Free Software Foundation, Inc.
13248 + Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc.
13249
13250 This program is free software: you can redistribute it and/or modify
13251 it under the terms of the GNU General Public License as published by
13252 - the Free Software Foundation; either version 3 of the License, or
13253 + the Free Software Foundation, either version 3 of the License, or
13254 (at your option) any later version.
13255
13256 This program is distributed in the hope that it will be useful,
13257
13258 diff --git a/autotools/gnulib/fd-safer.c b/autotools/gnulib/fd-safer.c
13259 index b5113e1..e37b7b3 100644
13260 --- a/autotools/gnulib/fd-safer.c
13261 +++ b/autotools/gnulib/fd-safer.c
13262 @@ -1,10 +1,10 @@
13263 /* Return a safer copy of a file descriptor.
13264
13265 - Copyright (C) 2005-2006, 2009-2019 Free Software Foundation, Inc.
13266 + Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc.
13267
13268 This program is free software: you can redistribute it and/or modify
13269 it under the terms of the GNU General Public License as published by
13270 - the Free Software Foundation; either version 3 of the License, or
13271 + the Free Software Foundation, either version 3 of the License, or
13272 (at your option) any later version.
13273
13274 This program is distributed in the hope that it will be useful,
13275
13276 diff --git a/autotools/gnulib/fdopendir.c b/autotools/gnulib/fdopendir.c
13277 index b65588a..c2b0e1e 100644
13278 --- a/autotools/gnulib/fdopendir.c
13279 +++ b/autotools/gnulib/fdopendir.c
13280 @@ -1,9 +1,9 @@
13281 /* provide a replacement fdopendir function
13282 - Copyright (C) 2004-2019 Free Software Foundation, Inc.
13283 + Copyright (C) 2004-2022 Free Software Foundation, Inc.
13284
13285 This program is free software: you can redistribute it and/or modify
13286 it under the terms of the GNU General Public License as published by
13287 - the Free Software Foundation; either version 3 of the License, or
13288 + the Free Software Foundation, either version 3 of the License, or
13289 (at your option) any later version.
13290
13291 This program is distributed in the hope that it will be useful,
13292
13293 diff --git a/autotools/gnulib/filename.h b/autotools/gnulib/filename.h
13294 index 3ba3105..ab77ca2 100644
13295 --- a/autotools/gnulib/filename.h
13296 +++ b/autotools/gnulib/filename.h
13297 @@ -1,51 +1,109 @@
13298 /* Basic filename support macros.
13299 - Copyright (C) 2001-2004, 2007-2019 Free Software Foundation, Inc.
13300 + Copyright (C) 2001-2022 Free Software Foundation, Inc.
13301 + This file is part of the GNU C Library.
13302
13303 - This program is free software: you can redistribute it and/or modify
13304 - it under the terms of the GNU General Public License as published by
13305 - the Free Software Foundation; either version 3 of the License, or
13306 - (at your option) any later version.
13307 + The GNU C Library is free software; you can redistribute it and/or
13308 + modify it under the terms of the GNU Lesser General Public
13309 + License as published by the Free Software Foundation; either
13310 + version 2.1 of the License, or (at your option) any later version.
13311
13312 - This program is distributed in the hope that it will be useful,
13313 + The GNU C Library is distributed in the hope that it will be useful,
13314 but WITHOUT ANY WARRANTY; without even the implied warranty of
13315 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13316 - GNU General Public License for more details.
13317 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13318 + Lesser General Public License for more details.
13319
13320 - You should have received a copy of the GNU General Public License
13321 - along with this program. If not, see <https://www.gnu.org/licenses/>. */
13322 + You should have received a copy of the GNU Lesser General Public
13323 + License along with the GNU C Library; if not, see
13324 + <https://www.gnu.org/licenses/>. */
13325 +
13326 +/* From Paul Eggert and Jim Meyering. */
13327
13328 #ifndef _FILENAME_H
13329 #define _FILENAME_H
13330
13331 +#include <string.h>
13332 +
13333 #ifdef __cplusplus
13334 extern "C" {
13335 #endif
13336
13337
13338 -/* Pathname support.
13339 - ISSLASH(C) tests whether C is a directory separator character.
13340 - IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not,
13341 - it may be concatenated to a directory pathname.
13342 - IS_PATH_WITH_DIR(P) tests whether P contains a directory specification.
13343 +/* Filename support.
13344 + ISSLASH(C) tests whether C is a directory separator
13345 + character.
13346 + HAS_DEVICE(Filename) tests whether Filename contains a device
13347 + specification.
13348 + FILE_SYSTEM_PREFIX_LEN(Filename) length of the device specification
13349 + at the beginning of Filename,
13350 + index of the part consisting of
13351 + alternating components and slashes.
13352 + FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE
13353 + 1 when a non-empty device specification
13354 + can be followed by an empty or relative
13355 + part,
13356 + 0 when a non-empty device specification
13357 + must be followed by a slash,
13358 + 0 when device specification don't exist.
13359 + IS_ABSOLUTE_FILE_NAME(Filename)
13360 + tests whether Filename is independent of
13361 + any notion of "current directory".
13362 + IS_RELATIVE_FILE_NAME(Filename)
13363 + tests whether Filename may be concatenated
13364 + to a directory filename.
13365 + Note: On native Windows, OS/2, DOS, "c:" is neither an absolute nor a
13366 + relative file name!
13367 + IS_FILE_NAME_WITH_DIR(Filename) tests whether Filename contains a device
13368 + or directory specification.
13369 */
13370 -#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
13371 +#if defined _WIN32 || defined __CYGWIN__ \
13372 + || defined __EMX__ || defined __MSDOS__ || defined __DJGPP__
13373 /* Native Windows, Cygwin, OS/2, DOS */
13374 # define ISSLASH(C) ((C) == '/' || (C) == '\\')
13375 -# define HAS_DEVICE(P) \
13376 - ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \
13377 - && (P)[1] == ':')
13378 -# define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P))
13379 -# define IS_PATH_WITH_DIR(P) \
13380 - (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P))
13381 -# define FILE_SYSTEM_PREFIX_LEN(P) (HAS_DEVICE (P) ? 2 : 0)
13382 + /* Internal macro: Tests whether a character is a drive letter. */
13383 +# define _IS_DRIVE_LETTER(C) \
13384 + (((C) >= 'A' && (C) <= 'Z') || ((C) >= 'a' && (C) <= 'z'))
13385 + /* Help the compiler optimizing it. This assumes ASCII. */
13386 +# undef _IS_DRIVE_LETTER
13387 +# define _IS_DRIVE_LETTER(C) \
13388 + (((unsigned int) (C) | ('a' - 'A')) - 'a' <= 'z' - 'a')
13389 +# define HAS_DEVICE(Filename) \
13390 + (_IS_DRIVE_LETTER ((Filename)[0]) && (Filename)[1] == ':')
13391 +# define FILE_SYSTEM_PREFIX_LEN(Filename) (HAS_DEVICE (Filename) ? 2 : 0)
13392 +# ifdef __CYGWIN__
13393 +# define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 0
13394 +# else
13395 + /* On native Windows, OS/2, DOS, the system has the notion of a
13396 + "current directory" on each drive. */
13397 +# define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 1
13398 +# endif
13399 +# if FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE
13400 +# define IS_ABSOLUTE_FILE_NAME(Filename) \
13401 + ISSLASH ((Filename)[FILE_SYSTEM_PREFIX_LEN (Filename)])
13402 +# else
13403 +# define IS_ABSOLUTE_FILE_NAME(Filename) \
13404 + (ISSLASH ((Filename)[0]) || HAS_DEVICE (Filename))
13405 +# endif
13406 +# define IS_RELATIVE_FILE_NAME(Filename) \
13407 + (! (ISSLASH ((Filename)[0]) || HAS_DEVICE (Filename)))
13408 +# define IS_FILE_NAME_WITH_DIR(Filename) \
13409 + (strchr ((Filename), '/') != NULL || strchr ((Filename), '\\') != NULL \
13410 + || HAS_DEVICE (Filename))
13411 #else
13412 /* Unix */
13413 # define ISSLASH(C) ((C) == '/')
13414 -# define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0])
13415 -# define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL)
13416 -# define FILE_SYSTEM_PREFIX_LEN(P) 0
13417 +# define HAS_DEVICE(Filename) ((void) (Filename), 0)
13418 +# define FILE_SYSTEM_PREFIX_LEN(Filename) ((void) (Filename), 0)
13419 +# define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE 0
13420 +# define IS_ABSOLUTE_FILE_NAME(Filename) ISSLASH ((Filename)[0])
13421 +# define IS_RELATIVE_FILE_NAME(Filename) (! ISSLASH ((Filename)[0]))
13422 +# define IS_FILE_NAME_WITH_DIR(Filename) (strchr ((Filename), '/') != NULL)
13423 #endif
13424
13425 +/* Deprecated macros. For backward compatibility with old users of the
13426 + 'filename' module. */
13427 +#define IS_ABSOLUTE_PATH IS_ABSOLUTE_FILE_NAME
13428 +#define IS_PATH_WITH_DIR IS_FILE_NAME_WITH_DIR
13429 +
13430
13431 #ifdef __cplusplus
13432 }
13433
13434 diff --git a/autotools/gnulib/filenamecat-lgpl.c b/autotools/gnulib/filenamecat-lgpl.c
13435 index 98b105a..56981aa 100644
13436 --- a/autotools/gnulib/filenamecat-lgpl.c
13437 +++ b/autotools/gnulib/filenamecat-lgpl.c
13438 @@ -1,18 +1,18 @@
13439 /* Concatenate two arbitrary file names.
13440
13441 - Copyright (C) 1996-2007, 2009-2019 Free Software Foundation, Inc.
13442 + Copyright (C) 1996-2007, 2009-2022 Free Software Foundation, Inc.
13443
13444 - This program is free software: you can redistribute it and/or modify
13445 - it under the terms of the GNU General Public License as published by
13446 - the Free Software Foundation; either version 3 of the License, or
13447 - (at your option) any later version.
13448 + This file is free software: you can redistribute it and/or modify
13449 + it under the terms of the GNU Lesser General Public License as
13450 + published by the Free Software Foundation; either version 2.1 of the
13451 + License, or (at your option) any later version.
13452
13453 - This program is distributed in the hope that it will be useful,
13454 + This file is distributed in the hope that it will be useful,
13455 but WITHOUT ANY WARRANTY; without even the implied warranty of
13456 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13457 - GNU General Public License for more details.
13458 + GNU Lesser General Public License for more details.
13459
13460 - You should have received a copy of the GNU General Public License
13461 + You should have received a copy of the GNU Lesser General Public License
13462 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13463
13464 /* Written by Jim Meyering. */
13465 @@ -25,7 +25,8 @@
13466 #include <stdlib.h>
13467 #include <string.h>
13468
13469 -#include "dirname.h"
13470 +#include "basename-lgpl.h"
13471 +#include "filename.h"
13472
13473 #if ! HAVE_MEMPCPY && ! defined mempcpy
13474 # define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))
13475 @@ -41,7 +42,7 @@
13476 *BASE_IN_RESULT to point to the copy of BASE at the end of the
13477 returned concatenation.
13478
13479 - Return NULL if malloc fails. */
13480 + If malloc fails, return NULL with errno set. */
13481
13482 char *
13483 mfile_name_concat (char const *dir, char const *base, char **base_in_result)
13484 @@ -68,20 +69,22 @@ mfile_name_concat (char const *dir, char const *base, char **base_in_result)
13485 }
13486
13487 char *p_concat = malloc (dirlen + (sep != '\0') + baselen + 1);
13488 - char *p;
13489 -
13490 if (p_concat == NULL)
13491 return NULL;
13492
13493 - p = mempcpy (p_concat, dir, dirlen);
13494 - *p = sep;
13495 - p += sep != '\0';
13496 + {
13497 + char *p;
13498 +
13499 + p = mempcpy (p_concat, dir, dirlen);
13500 + *p = sep;
13501 + p += sep != '\0';
13502
13503 - if (base_in_result)
13504 - *base_in_result = p;
13505 + if (base_in_result)
13506 + *base_in_result = p;
13507
13508 - p = mempcpy (p, base, baselen);
13509 - *p = '\0';
13510 + p = mempcpy (p, base, baselen);
13511 + *p = '\0';
13512 + }
13513
13514 return p_concat;
13515 }
13516
13517 diff --git a/autotools/gnulib/filenamecat.h b/autotools/gnulib/filenamecat.h
13518 index 67b46b0..f11bd28 100644
13519 --- a/autotools/gnulib/filenamecat.h
13520 +++ b/autotools/gnulib/filenamecat.h
13521 @@ -1,27 +1,32 @@
13522 /* Concatenate two arbitrary file names.
13523
13524 - Copyright (C) 1996-1997, 2003, 2005, 2007, 2009-2019 Free Software
13525 + Copyright (C) 1996-1997, 2003, 2005, 2007, 2009-2022 Free Software
13526 Foundation, Inc.
13527
13528 - This program is free software: you can redistribute it and/or modify
13529 - it under the terms of the GNU General Public License as published by
13530 - the Free Software Foundation; either version 3 of the License, or
13531 - (at your option) any later version.
13532 + This file is free software: you can redistribute it and/or modify
13533 + it under the terms of the GNU Lesser General Public License as
13534 + published by the Free Software Foundation; either version 2.1 of the
13535 + License, or (at your option) any later version.
13536
13537 - This program is distributed in the hope that it will be useful,
13538 + This file is distributed in the hope that it will be useful,
13539 but WITHOUT ANY WARRANTY; without even the implied warranty of
13540 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13541 - GNU General Public License for more details.
13542 + GNU Lesser General Public License for more details.
13543
13544 - You should have received a copy of the GNU General Public License
13545 + You should have received a copy of the GNU Lesser General Public License
13546 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13547
13548 /* Written by Jim Meyering. */
13549
13550 +#include <stdlib.h>
13551 +
13552 #if GNULIB_FILENAMECAT
13553 char *file_name_concat (char const *dir, char const *base,
13554 - char **base_in_result);
13555 + char **base_in_result)
13556 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
13557 + _GL_ATTRIBUTE_RETURNS_NONNULL;
13558 #endif
13559
13560 char *mfile_name_concat (char const *dir, char const *base,
13561 - char **base_in_result);
13562 + char **base_in_result)
13563 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE;
13564
13565 diff --git a/autotools/gnulib/float+.h b/autotools/gnulib/float+.h
13566 index 5af861f..9ab4520 100644
13567 --- a/autotools/gnulib/float+.h
13568 +++ b/autotools/gnulib/float+.h
13569 @@ -1,19 +1,19 @@
13570 /* Supplemental information about the floating-point formats.
13571 - Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
13572 + Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
13573 Written by Bruno Haible <bruno@×××××.org>, 2007.
13574
13575 - This program is free software; you can redistribute it and/or modify
13576 - it under the terms of the GNU General Public License as published by
13577 - the Free Software Foundation; either version 3, or (at your option)
13578 - any later version.
13579 + This file is free software: you can redistribute it and/or modify
13580 + it under the terms of the GNU Lesser General Public License as
13581 + published by the Free Software Foundation; either version 2.1 of the
13582 + License, or (at your option) any later version.
13583
13584 - This program is distributed in the hope that it will be useful,
13585 + This file is distributed in the hope that it will be useful,
13586 but WITHOUT ANY WARRANTY; without even the implied warranty of
13587 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13588 - GNU General Public License for more details.
13589 + GNU Lesser General Public License for more details.
13590
13591 - You should have received a copy of the GNU General Public License
13592 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
13593 + You should have received a copy of the GNU Lesser General Public License
13594 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
13595
13596 #ifndef _FLOATPLUS_H
13597 #define _FLOATPLUS_H
13598
13599 diff --git a/autotools/gnulib/float.c b/autotools/gnulib/float.c
13600 index 8872deb..de85064 100644
13601 --- a/autotools/gnulib/float.c
13602 +++ b/autotools/gnulib/float.c
13603 @@ -1,18 +1,18 @@
13604 /* Auxiliary definitions for <float.h>.
13605 - Copyright (C) 2011-2019 Free Software Foundation, Inc.
13606 + Copyright (C) 2011-2022 Free Software Foundation, Inc.
13607 Written by Bruno Haible <bruno@×××××.org>, 2011.
13608
13609 - This program is free software: you can redistribute it and/or modify
13610 - it under the terms of the GNU General Public License as published by
13611 - the Free Software Foundation; either version 3 of the License, or
13612 - (at your option) any later version.
13613 + This file is free software: you can redistribute it and/or modify
13614 + it under the terms of the GNU Lesser General Public License as
13615 + published by the Free Software Foundation; either version 2.1 of the
13616 + License, or (at your option) any later version.
13617
13618 - This program is distributed in the hope that it will be useful,
13619 + This file is distributed in the hope that it will be useful,
13620 but WITHOUT ANY WARRANTY; without even the implied warranty of
13621 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13622 - GNU General Public License for more details.
13623 + GNU Lesser General Public License for more details.
13624
13625 - You should have received a copy of the GNU General Public License
13626 + You should have received a copy of the GNU Lesser General Public License
13627 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13628
13629 #include <config.h>
13630
13631 diff --git a/autotools/gnulib/float.in.h b/autotools/gnulib/float.in.h
13632 index ba094a8..a418376 100644
13633 --- a/autotools/gnulib/float.in.h
13634 +++ b/autotools/gnulib/float.in.h
13635 @@ -1,18 +1,18 @@
13636 /* A correct <float.h>.
13637
13638 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
13639 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
13640
13641 - This program is free software: you can redistribute it and/or modify
13642 - it under the terms of the GNU General Public License as published by
13643 - the Free Software Foundation; either version 3 of the License, or
13644 - (at your option) any later version.
13645 + This file is free software: you can redistribute it and/or modify
13646 + it under the terms of the GNU Lesser General Public License as
13647 + published by the Free Software Foundation; either version 2.1 of the
13648 + License, or (at your option) any later version.
13649
13650 - This program is distributed in the hope that it will be useful,
13651 + This file is distributed in the hope that it will be useful,
13652 but WITHOUT ANY WARRANTY; without even the implied warranty of
13653 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13654 - GNU General Public License for more details.
13655 + GNU Lesser General Public License for more details.
13656
13657 - You should have received a copy of the GNU General Public License
13658 + You should have received a copy of the GNU Lesser General Public License
13659 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13660
13661 #ifndef _@GUARD_PREFIX@_FLOAT_H
13662 @@ -93,11 +93,14 @@
13663 extern const long double LDBL_MAX;
13664
13665 Unfortunately, this is not a constant expression. */
13666 +# if !GNULIB_defined_long_double_union
13667 union gl_long_double_union
13668 {
13669 struct { unsigned int lo; unsigned int hi; unsigned int exponent; } xd;
13670 long double ld;
13671 };
13672 +# define GNULIB_defined_long_double_union 1
13673 +# endif
13674 extern const union gl_long_double_union gl_LDBL_MAX;
13675 # define LDBL_MAX (gl_LDBL_MAX.ld)
13676 /* Minimum e such that 10^e is in the range of normalized numbers. */
13677 @@ -146,11 +149,14 @@ extern const union gl_long_double_union gl_LDBL_MAX;
13678
13679 Unfortunately, this is not a constant expression, and the latter expression
13680 does not work well when GCC is optimizing.. */
13681 +# if !GNULIB_defined_long_double_union
13682 union gl_long_double_union
13683 {
13684 struct { double hi; double lo; } dd;
13685 long double ld;
13686 };
13687 +# define GNULIB_defined_long_double_union 1
13688 +# endif
13689 extern const union gl_long_double_union gl_LDBL_MAX;
13690 # define LDBL_MAX (gl_LDBL_MAX.ld)
13691 #endif
13692
13693 diff --git a/autotools/gnulib/fpucw.h b/autotools/gnulib/fpucw.h
13694 index caa51fe..1921836 100644
13695 --- a/autotools/gnulib/fpucw.h
13696 +++ b/autotools/gnulib/fpucw.h
13697 @@ -1,18 +1,18 @@
13698 /* Manipulating the FPU control word. -*- coding: utf-8 -*-
13699 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
13700 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
13701 Written by Bruno Haible <bruno@×××××.org>, 2007.
13702
13703 - This program is free software: you can redistribute it and/or modify
13704 - it under the terms of the GNU General Public License as published by
13705 - the Free Software Foundation; either version 3 of the License, or
13706 - (at your option) any later version.
13707 + This file is free software: you can redistribute it and/or modify
13708 + it under the terms of the GNU Lesser General Public License as
13709 + published by the Free Software Foundation; either version 2.1 of the
13710 + License, or (at your option) any later version.
13711
13712 - This program is distributed in the hope that it will be useful,
13713 + This file is distributed in the hope that it will be useful,
13714 but WITHOUT ANY WARRANTY; without even the implied warranty of
13715 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13716 - GNU General Public License for more details.
13717 + GNU Lesser General Public License for more details.
13718
13719 - You should have received a copy of the GNU General Public License
13720 + You should have received a copy of the GNU Lesser General Public License
13721 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13722
13723 #ifndef _FPUCW_H
13724 @@ -43,7 +43,7 @@
13725
13726 See Vincent Lefèvre's page https://www.vinc17.net/research/extended.en.html
13727 for a good explanation.
13728 - See http://www.uwsg.iu.edu/hypermail/linux/kernel/0103.0/0453.html for
13729 + See https://web.archive.org/web/20060905133417/http://www.uwsg.iu.edu/hypermail/linux/kernel/0103.0/0453.html
13730 some argumentation which setting should be the default. */
13731
13732 /* This header file provides the following facilities:
13733 @@ -61,8 +61,8 @@
13734 'long double' safe operation precision
13735 */
13736
13737 -/* Inline assembler like this works only with GNU C. */
13738 -#if (defined __i386__ || defined __x86_64__) && defined __GNUC__
13739 +/* Inline assembler like this works only with GNU C and clang. */
13740 +#if (defined __i386__ || defined __x86_64__) && (defined __GNUC__ || defined __clang__)
13741
13742 typedef unsigned short fpucw_t; /* glibc calls this fpu_control_t */
13743
13744 @@ -70,12 +70,12 @@ typedef unsigned short fpucw_t; /* glibc calls this fpu_control_t */
13745 # define FPU_PC_DOUBLE 0x200 /* glibc calls this _FPU_DOUBLE */
13746 # define FPU_PC_EXTENDED 0x300 /* glibc calls this _FPU_EXTENDED */
13747
13748 -# define GET_FPUCW() \
13749 +# define GET_FPUCW() __extension__ \
13750 ({ fpucw_t _cw; \
13751 __asm__ __volatile__ ("fnstcw %0" : "=m" (*&_cw)); \
13752 _cw; \
13753 })
13754 -# define SET_FPUCW(word) \
13755 +# define SET_FPUCW(word) __extension__ \
13756 (void)({ fpucw_t _ncw = (word); \
13757 __asm__ __volatile__ ("fldcw %0" : : "m" (*&_ncw)); \
13758 })
13759
13760 diff --git a/autotools/gnulib/free.c b/autotools/gnulib/free.c
13761 new file mode 100644
13762 index 0000000..86ebe6c
13763 --- /dev/null
13764 +++ b/autotools/gnulib/free.c
13765 @@ -0,0 +1,53 @@
13766 +/* Make free() preserve errno.
13767 +
13768 + Copyright (C) 2003, 2006, 2009-2022 Free Software Foundation, Inc.
13769 +
13770 + This file is free software: you can redistribute it and/or modify
13771 + it under the terms of the GNU Lesser General Public License as
13772 + published by the Free Software Foundation; either version 2.1 of the
13773 + License, or (at your option) any later version.
13774 +
13775 + This file is distributed in the hope that it will be useful,
13776 + but WITHOUT ANY WARRANTY; without even the implied warranty of
13777 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13778 + GNU Lesser General Public License for more details.
13779 +
13780 + You should have received a copy of the GNU Lesser General Public License
13781 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
13782 +
13783 +/* written by Paul Eggert */
13784 +
13785 +#include <config.h>
13786 +
13787 +/* Specification. */
13788 +#include <stdlib.h>
13789 +
13790 +/* A function definition is only needed if HAVE_FREE_POSIX is not defined. */
13791 +#if !HAVE_FREE_POSIX
13792 +
13793 +# include <errno.h>
13794 +
13795 +void
13796 +rpl_free (void *p)
13797 +# undef free
13798 +{
13799 +# if defined __GNUC__ && !defined __clang__
13800 + /* An invalid GCC optimization
13801 + <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98396>
13802 + would optimize away the assignments in the code below, when link-time
13803 + optimization (LTO) is enabled. Make the code more complicated, so that
13804 + GCC does not grok how to optimize it. */
13805 + int err[2];
13806 + err[0] = errno;
13807 + err[1] = errno;
13808 + errno = 0;
13809 + free (p);
13810 + errno = err[errno == 0];
13811 +# else
13812 + int err = errno;
13813 + free (p);
13814 + errno = err;
13815 +# endif
13816 +}
13817 +
13818 +#endif
13819
13820 diff --git a/autotools/gnulib/frexp.c b/autotools/gnulib/frexp.c
13821 index d3f1199..2c15733 100644
13822 --- a/autotools/gnulib/frexp.c
13823 +++ b/autotools/gnulib/frexp.c
13824 @@ -1,17 +1,17 @@
13825 /* Split a double into fraction and mantissa.
13826 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
13827 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
13828
13829 - This program is free software: you can redistribute it and/or modify
13830 - it under the terms of the GNU General Public License as published by
13831 - the Free Software Foundation; either version 3 of the License, or
13832 - (at your option) any later version.
13833 + This file is free software: you can redistribute it and/or modify
13834 + it under the terms of the GNU Lesser General Public License as
13835 + published by the Free Software Foundation; either version 2.1 of the
13836 + License, or (at your option) any later version.
13837
13838 - This program is distributed in the hope that it will be useful,
13839 + This file is distributed in the hope that it will be useful,
13840 but WITHOUT ANY WARRANTY; without even the implied warranty of
13841 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13842 - GNU General Public License for more details.
13843 + GNU Lesser General Public License for more details.
13844
13845 - You should have received a copy of the GNU General Public License
13846 + You should have received a copy of the GNU Lesser General Public License
13847 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13848
13849 /* Written by Paolo Bonzini <bonzini@×××.org>, 2003, and
13850
13851 diff --git a/autotools/gnulib/frexpl.c b/autotools/gnulib/frexpl.c
13852 index 820cb2d..55ca010 100644
13853 --- a/autotools/gnulib/frexpl.c
13854 +++ b/autotools/gnulib/frexpl.c
13855 @@ -1,17 +1,17 @@
13856 /* Split a 'long double' into fraction and mantissa.
13857 - Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
13858 + Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
13859
13860 - This program is free software: you can redistribute it and/or modify
13861 - it under the terms of the GNU General Public License as published by
13862 - the Free Software Foundation; either version 3 of the License, or
13863 - (at your option) any later version.
13864 + This file is free software: you can redistribute it and/or modify
13865 + it under the terms of the GNU Lesser General Public License as
13866 + published by the Free Software Foundation; either version 2.1 of the
13867 + License, or (at your option) any later version.
13868
13869 - This program is distributed in the hope that it will be useful,
13870 + This file is distributed in the hope that it will be useful,
13871 but WITHOUT ANY WARRANTY; without even the implied warranty of
13872 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13873 - GNU General Public License for more details.
13874 + GNU Lesser General Public License for more details.
13875
13876 - You should have received a copy of the GNU General Public License
13877 + You should have received a copy of the GNU Lesser General Public License
13878 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13879
13880 #include <config.h>
13881
13882 diff --git a/autotools/gnulib/fstat.c b/autotools/gnulib/fstat.c
13883 index a892b8f..3928c86 100644
13884 --- a/autotools/gnulib/fstat.c
13885 +++ b/autotools/gnulib/fstat.c
13886 @@ -1,17 +1,17 @@
13887 /* fstat() replacement.
13888 - Copyright (C) 2011-2019 Free Software Foundation, Inc.
13889 + Copyright (C) 2011-2022 Free Software Foundation, Inc.
13890
13891 - This program is free software: you can redistribute it and/or modify
13892 - it under the terms of the GNU General Public License as published by
13893 - the Free Software Foundation; either version 3 of the License, or
13894 - (at your option) any later version.
13895 + This file is free software: you can redistribute it and/or modify
13896 + it under the terms of the GNU Lesser General Public License as
13897 + published by the Free Software Foundation; either version 2.1 of the
13898 + License, or (at your option) any later version.
13899
13900 - This program is distributed in the hope that it will be useful,
13901 + This file is distributed in the hope that it will be useful,
13902 but WITHOUT ANY WARRANTY; without even the implied warranty of
13903 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13904 - GNU General Public License for more details.
13905 + GNU Lesser General Public License for more details.
13906
13907 - You should have received a copy of the GNU General Public License
13908 + You should have received a copy of the GNU Lesser General Public License
13909 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13910
13911 /* If the user's config.h happens to include <sys/stat.h>, let it include only
13912
13913 diff --git a/autotools/gnulib/fstatat.c b/autotools/gnulib/fstatat.c
13914 index 019d3c6..6e83449 100644
13915 --- a/autotools/gnulib/fstatat.c
13916 +++ b/autotools/gnulib/fstatat.c
13917 @@ -1,10 +1,10 @@
13918 /* Work around an fstatat bug on Solaris 9.
13919
13920 - Copyright (C) 2006, 2009-2019 Free Software Foundation, Inc.
13921 + Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc.
13922
13923 This program is free software: you can redistribute it and/or modify
13924 it under the terms of the GNU General Public License as published by
13925 - the Free Software Foundation; either version 3 of the License, or
13926 + the Free Software Foundation, either version 3 of the License, or
13927 (at your option) any later version.
13928
13929 This program is distributed in the hope that it will be useful,
13930 @@ -49,6 +49,7 @@ orig_fstatat (int fd, char const *filename, struct stat *buf, int flags)
13931
13932 #include <errno.h>
13933 #include <fcntl.h>
13934 +#include <stdlib.h>
13935 #include <string.h>
13936
13937 #if HAVE_FSTATAT && HAVE_WORKING_FSTATAT_ZERO_FLAG
13938
13939 diff --git a/autotools/gnulib/futimens.c b/autotools/gnulib/futimens.c
13940 index cc03796..bc3e41a 100644
13941 --- a/autotools/gnulib/futimens.c
13942 +++ b/autotools/gnulib/futimens.c
13943 @@ -1,17 +1,17 @@
13944 /* Set the access and modification time of an open fd.
13945 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
13946 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
13947
13948 - This program is free software: you can redistribute it and/or modify
13949 - it under the terms of the GNU General Public License as published by
13950 - the Free Software Foundation; either version 3 of the License, or
13951 - (at your option) any later version.
13952 + This file is free software: you can redistribute it and/or modify
13953 + it under the terms of the GNU Lesser General Public License as
13954 + published by the Free Software Foundation, either version 3 of the
13955 + License, or (at your option) any later version.
13956
13957 - This program is distributed in the hope that it will be useful,
13958 + This file is distributed in the hope that it will be useful,
13959 but WITHOUT ANY WARRANTY; without even the implied warranty of
13960 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13961 - GNU General Public License for more details.
13962 + GNU Lesser General Public License for more details.
13963
13964 - You should have received a copy of the GNU General Public License
13965 + You should have received a copy of the GNU Lesser General Public License
13966 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13967
13968 /* written by Eric Blake */
13969
13970 diff --git a/autotools/gnulib/getcwd-lgpl.c b/autotools/gnulib/getcwd-lgpl.c
13971 index b224cfc..f449ac8 100644
13972 --- a/autotools/gnulib/getcwd-lgpl.c
13973 +++ b/autotools/gnulib/getcwd-lgpl.c
13974 @@ -1,17 +1,17 @@
13975 -/* Copyright (C) 2011-2019 Free Software Foundation, Inc.
13976 +/* Copyright (C) 2011-2022 Free Software Foundation, Inc.
13977 This file is part of gnulib.
13978
13979 - This program is free software: you can redistribute it and/or modify
13980 - it under the terms of the GNU General Public License as published by
13981 - the Free Software Foundation; either version 3 of the License, or
13982 - (at your option) any later version.
13983 + This file is free software: you can redistribute it and/or modify
13984 + it under the terms of the GNU Lesser General Public License as
13985 + published by the Free Software Foundation; either version 2.1 of the
13986 + License, or (at your option) any later version.
13987
13988 - This program is distributed in the hope that it will be useful,
13989 + This file is distributed in the hope that it will be useful,
13990 but WITHOUT ANY WARRANTY; without even the implied warranty of
13991 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13992 - GNU General Public License for more details.
13993 + GNU Lesser General Public License for more details.
13994
13995 - You should have received a copy of the GNU General Public License
13996 + You should have received a copy of the GNU Lesser General Public License
13997 along with this program. If not, see <https://www.gnu.org/licenses/>. */
13998
13999 #include <config.h>
14000 @@ -38,6 +38,10 @@ typedef int dummy;
14001 necessary. */
14002
14003 # undef getcwd
14004 +# if defined _WIN32 && !defined __CYGWIN__
14005 +# define getcwd _getcwd
14006 +# endif
14007 +
14008 char *
14009 rpl_getcwd (char *buf, size_t size)
14010 {
14011 @@ -65,11 +69,7 @@ rpl_getcwd (char *buf, size_t size)
14012 }
14013 result = getcwd (buf, size);
14014 if (!result)
14015 - {
14016 - int saved_errno = errno;
14017 - free (buf);
14018 - errno = saved_errno;
14019 - }
14020 + free (buf);
14021 return result;
14022 }
14023
14024 @@ -108,17 +108,18 @@ rpl_getcwd (char *buf, size_t size)
14025 while (!result && errno == ERANGE);
14026
14027 if (!result)
14028 - {
14029 - int saved_errno = errno;
14030 - free (buf);
14031 - errno = saved_errno;
14032 - }
14033 + free (buf);
14034 else
14035 {
14036 - /* Trim to fit, if possible. */
14037 - result = realloc (buf, strlen (buf) + 1);
14038 - if (!result)
14039 - result = buf;
14040 + /* Here result == buf. */
14041 + /* Shrink result before returning it. */
14042 + size_t actual_size = strlen (result) + 1;
14043 + if (actual_size < size)
14044 + {
14045 + char *shrinked_result = realloc (result, actual_size);
14046 + if (shrinked_result != NULL)
14047 + result = shrinked_result;
14048 + }
14049 }
14050 return result;
14051 }
14052
14053 diff --git a/autotools/gnulib/getdelim.c b/autotools/gnulib/getdelim.c
14054 index 528678c..9eb0483 100644
14055 --- a/autotools/gnulib/getdelim.c
14056 +++ b/autotools/gnulib/getdelim.c
14057 @@ -1,19 +1,19 @@
14058 /* getdelim.c --- Implementation of replacement getdelim function.
14059 - Copyright (C) 1994, 1996-1998, 2001, 2003, 2005-2019 Free Software
14060 + Copyright (C) 1994, 1996-1998, 2001, 2003, 2005-2022 Free Software
14061 Foundation, Inc.
14062
14063 - This program is free software; you can redistribute it and/or
14064 - modify it under the terms of the GNU General Public License as
14065 - published by the Free Software Foundation; either version 3, or (at
14066 - your option) any later version.
14067 + This file is free software: you can redistribute it and/or modify
14068 + it under the terms of the GNU Lesser General Public License as
14069 + published by the Free Software Foundation; either version 2.1 of the
14070 + License, or (at your option) any later version.
14071
14072 - This program is distributed in the hope that it will be useful, but
14073 - WITHOUT ANY WARRANTY; without even the implied warranty of
14074 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14075 - General Public License for more details.
14076 + This file is distributed in the hope that it will be useful,
14077 + but WITHOUT ANY WARRANTY; without even the implied warranty of
14078 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14079 + GNU Lesser General Public License for more details.
14080
14081 - You should have received a copy of the GNU General Public License
14082 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
14083 + You should have received a copy of the GNU Lesser General Public License
14084 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
14085
14086 /* Ported from glibc by Simon Josefsson. */
14087
14088
14089 diff --git a/autotools/gnulib/getdtablesize.c b/autotools/gnulib/getdtablesize.c
14090 index 03a9243..793e0f8 100644
14091 --- a/autotools/gnulib/getdtablesize.c
14092 +++ b/autotools/gnulib/getdtablesize.c
14093 @@ -1,18 +1,18 @@
14094 /* getdtablesize() function: Return maximum possible file descriptor value + 1.
14095 - Copyright (C) 2008-2019 Free Software Foundation, Inc.
14096 + Copyright (C) 2008-2022 Free Software Foundation, Inc.
14097 Written by Bruno Haible <bruno@×××××.org>, 2008.
14098
14099 - This program is free software: you can redistribute it and/or modify
14100 - it under the terms of the GNU General Public License as published by
14101 - the Free Software Foundation; either version 3 of the License, or
14102 - (at your option) any later version.
14103 + This file is free software: you can redistribute it and/or modify
14104 + it under the terms of the GNU Lesser General Public License as
14105 + published by the Free Software Foundation; either version 2.1 of the
14106 + License, or (at your option) any later version.
14107
14108 - This program is distributed in the hope that it will be useful,
14109 + This file is distributed in the hope that it will be useful,
14110 but WITHOUT ANY WARRANTY; without even the implied warranty of
14111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14112 - GNU General Public License for more details.
14113 + GNU Lesser General Public License for more details.
14114
14115 - You should have received a copy of the GNU General Public License
14116 + You should have received a copy of the GNU Lesser General Public License
14117 along with this program. If not, see <https://www.gnu.org/licenses/>. */
14118
14119 #include <config.h>
14120
14121 diff --git a/autotools/gnulib/getgroups.c b/autotools/gnulib/getgroups.c
14122 index d8c77e9..f7abd72 100644
14123 --- a/autotools/gnulib/getgroups.c
14124 +++ b/autotools/gnulib/getgroups.c
14125 @@ -1,18 +1,18 @@
14126 /* provide consistent interface to getgroups for systems that don't allow N==0
14127
14128 - Copyright (C) 1996, 1999, 2003, 2006-2019 Free Software Foundation, Inc.
14129 + Copyright (C) 1996, 1999, 2003, 2006-2022 Free Software Foundation, Inc.
14130
14131 - This program is free software: you can redistribute it and/or modify
14132 - it under the terms of the GNU General Public License as published by
14133 - the Free Software Foundation; either version 3 of the License, or
14134 - (at your option) any later version.
14135 + This file is free software: you can redistribute it and/or modify
14136 + it under the terms of the GNU Lesser General Public License as
14137 + published by the Free Software Foundation; either version 2.1 of the
14138 + License, or (at your option) any later version.
14139
14140 - This program is distributed in the hope that it will be useful,
14141 + This file is distributed in the hope that it will be useful,
14142 but WITHOUT ANY WARRANTY; without even the implied warranty of
14143 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14144 - GNU General Public License for more details.
14145 + GNU Lesser General Public License for more details.
14146
14147 - You should have received a copy of the GNU General Public License
14148 + You should have received a copy of the GNU Lesser General Public License
14149 along with this program. If not, see <https://www.gnu.org/licenses/>. */
14150
14151 /* written by Jim Meyering */
14152 @@ -30,7 +30,7 @@
14153 /* Provide a stub that fails with ENOSYS, since there is no group
14154 information available on mingw. */
14155 int
14156 -getgroups (int n _GL_UNUSED, GETGROUPS_T *groups _GL_UNUSED)
14157 +getgroups (_GL_UNUSED int n, _GL_UNUSED GETGROUPS_T *groups)
14158 {
14159 errno = ENOSYS;
14160 return -1;
14161 @@ -70,7 +70,6 @@ rpl_getgroups (int n, gid_t *group)
14162 {
14163 int n_groups;
14164 GETGROUPS_T *gbuf;
14165 - int saved_errno;
14166
14167 if (n < 0)
14168 {
14169 @@ -99,9 +98,7 @@ rpl_getgroups (int n, gid_t *group)
14170 while (n--)
14171 group[n] = gbuf[n];
14172 }
14173 - saved_errno = errno;
14174 free (gbuf);
14175 - errno = saved_errno;
14176 return result;
14177 }
14178
14179 @@ -121,10 +118,7 @@ rpl_getgroups (int n, gid_t *group)
14180 n *= 2;
14181 }
14182
14183 - saved_errno = errno;
14184 free (gbuf);
14185 - errno = saved_errno;
14186 -
14187 return n_groups;
14188 }
14189
14190
14191 diff --git a/autotools/gnulib/getline.c b/autotools/gnulib/getline.c
14192 index 40882fb..34b9117 100644
14193 --- a/autotools/gnulib/getline.c
14194 +++ b/autotools/gnulib/getline.c
14195 @@ -1,18 +1,18 @@
14196 /* getline.c --- Implementation of replacement getline function.
14197 - Copyright (C) 2005-2007, 2009-2019 Free Software Foundation, Inc.
14198 + Copyright (C) 2005-2007, 2009-2022 Free Software Foundation, Inc.
14199
14200 - This program is free software; you can redistribute it and/or
14201 - modify it under the terms of the GNU General Public License as
14202 - published by the Free Software Foundation; either version 3, or (at
14203 - your option) any later version.
14204 + This file is free software: you can redistribute it and/or modify
14205 + it under the terms of the GNU Lesser General Public License as
14206 + published by the Free Software Foundation; either version 2.1 of the
14207 + License, or (at your option) any later version.
14208
14209 - This program is distributed in the hope that it will be useful, but
14210 - WITHOUT ANY WARRANTY; without even the implied warranty of
14211 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14212 - General Public License for more details.
14213 + This file is distributed in the hope that it will be useful,
14214 + but WITHOUT ANY WARRANTY; without even the implied warranty of
14215 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14216 + GNU Lesser General Public License for more details.
14217
14218 - You should have received a copy of the GNU General Public License
14219 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
14220 + You should have received a copy of the GNU Lesser General Public License
14221 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
14222
14223 /* Written by Simon Josefsson. */
14224
14225
14226 diff --git a/autotools/gnulib/getopt-cdefs.in.h b/autotools/gnulib/getopt-cdefs.in.h
14227 index 049145b..b6dd913 100644
14228 --- a/autotools/gnulib/getopt-cdefs.in.h
14229 +++ b/autotools/gnulib/getopt-cdefs.in.h
14230 @@ -1,22 +1,21 @@
14231 /* getopt-on-non-glibc compatibility macros.
14232 - Copyright (C) 1989-2019 Free Software Foundation, Inc.
14233 + Copyright (C) 1989-2022 Free Software Foundation, Inc.
14234 This file is part of gnulib.
14235 Unlike most of the getopt implementation, it is NOT shared
14236 with the GNU C Library.
14237
14238 - This file is free software; you can redistribute it and/or modify it
14239 - under the terms of the GNU General Public License as
14240 - published by the Free Software Foundation; either version 3 of
14241 - the License, or (at your option) any later version.
14242 + This file is free software: you can redistribute it and/or modify
14243 + it under the terms of the GNU Lesser General Public License as
14244 + published by the Free Software Foundation; either version 2.1 of the
14245 + License, or (at your option) any later version.
14246
14247 - This file is distributed in the hope that it will be useful, but
14248 - WITHOUT ANY WARRANTY; without even the implied warranty of
14249 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14250 - General Public License for more details.
14251 + This file is distributed in the hope that it will be useful,
14252 + but WITHOUT ANY WARRANTY; without even the implied warranty of
14253 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14254 + GNU Lesser General Public License for more details.
14255
14256 - You should have received a copy of the GNU General Public
14257 - License along with gnulib; if not, see
14258 - <https://www.gnu.org/licenses/>. */
14259 + You should have received a copy of the GNU Lesser General Public License
14260 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
14261
14262 #ifndef _GETOPT_CDEFS_H
14263 #define _GETOPT_CDEFS_H 1
14264 @@ -57,7 +56,7 @@
14265 #endif
14266
14267 #ifndef __THROW
14268 -# if defined __cplusplus && __GNUC_PREREQ (2,8)
14269 +# if defined __cplusplus && (__GNUC_PREREQ (2,8) || __clang_major__ >= 4)
14270 # define __THROW throw ()
14271 # else
14272 # define __THROW
14273
14274 diff --git a/autotools/gnulib/getopt-core.h b/autotools/gnulib/getopt-core.h
14275 index 6360ad6..1c40ecc 100644
14276 --- a/autotools/gnulib/getopt-core.h
14277 +++ b/autotools/gnulib/getopt-core.h
14278 @@ -1,19 +1,19 @@
14279 /* Declarations for getopt (basic, portable features only).
14280 - Copyright (C) 1989-2019 Free Software Foundation, Inc.
14281 + Copyright (C) 1989-2022 Free Software Foundation, Inc.
14282 This file is part of the GNU C Library and is also part of gnulib.
14283 Patches to this file should be submitted to both projects.
14284
14285 The GNU C Library is free software; you can redistribute it and/or
14286 - modify it under the terms of the GNU General Public
14287 + modify it under the terms of the GNU Lesser General Public
14288 License as published by the Free Software Foundation; either
14289 - version 3 of the License, or (at your option) any later version.
14290 + version 2.1 of the License, or (at your option) any later version.
14291
14292 The GNU C Library is distributed in the hope that it will be useful,
14293 but WITHOUT ANY WARRANTY; without even the implied warranty of
14294 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14295 - General Public License for more details.
14296 + Lesser General Public License for more details.
14297
14298 - You should have received a copy of the GNU General Public
14299 + You should have received a copy of the GNU Lesser General Public
14300 License along with the GNU C Library; if not, see
14301 <https://www.gnu.org/licenses/>. */
14302
14303
14304 diff --git a/autotools/gnulib/getopt-ext.h b/autotools/gnulib/getopt-ext.h
14305 index 13cb007..d661fcc 100644
14306 --- a/autotools/gnulib/getopt-ext.h
14307 +++ b/autotools/gnulib/getopt-ext.h
14308 @@ -1,19 +1,19 @@
14309 /* Declarations for getopt (GNU extensions).
14310 - Copyright (C) 1989-2019 Free Software Foundation, Inc.
14311 + Copyright (C) 1989-2022 Free Software Foundation, Inc.
14312 This file is part of the GNU C Library and is also part of gnulib.
14313 Patches to this file should be submitted to both projects.
14314
14315 The GNU C Library is free software; you can redistribute it and/or
14316 - modify it under the terms of the GNU General Public
14317 + modify it under the terms of the GNU Lesser General Public
14318 License as published by the Free Software Foundation; either
14319 - version 3 of the License, or (at your option) any later version.
14320 + version 2.1 of the License, or (at your option) any later version.
14321
14322 The GNU C Library is distributed in the hope that it will be useful,
14323 but WITHOUT ANY WARRANTY; without even the implied warranty of
14324 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14325 - General Public License for more details.
14326 + Lesser General Public License for more details.
14327
14328 - You should have received a copy of the GNU General Public
14329 + You should have received a copy of the GNU Lesser General Public
14330 License along with the GNU C Library; if not, see
14331 <https://www.gnu.org/licenses/>. */
14332
14333
14334 diff --git a/autotools/gnulib/getopt-pfx-core.h b/autotools/gnulib/getopt-pfx-core.h
14335 index 8fac269..3eead0e 100644
14336 --- a/autotools/gnulib/getopt-pfx-core.h
14337 +++ b/autotools/gnulib/getopt-pfx-core.h
14338 @@ -1,22 +1,21 @@
14339 /* getopt (basic, portable features) gnulib wrapper header.
14340 - Copyright (C) 1989-2019 Free Software Foundation, Inc.
14341 + Copyright (C) 1989-2022 Free Software Foundation, Inc.
14342 This file is part of gnulib.
14343 Unlike most of the getopt implementation, it is NOT shared
14344 with the GNU C Library.
14345
14346 - This file is free software; you can redistribute it and/or modify it
14347 - under the terms of the GNU General Public License as
14348 - published by the Free Software Foundation; either version 3 of
14349 - the License, or (at your option) any later version.
14350 + This file is free software: you can redistribute it and/or modify
14351 + it under the terms of the GNU Lesser General Public License as
14352 + published by the Free Software Foundation; either version 2.1 of the
14353 + License, or (at your option) any later version.
14354
14355 - This file is distributed in the hope that it will be useful, but
14356 - WITHOUT ANY WARRANTY; without even the implied warranty of
14357 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14358 - General Public License for more details.
14359 + This file is distributed in the hope that it will be useful,
14360 + but WITHOUT ANY WARRANTY; without even the implied warranty of
14361 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14362 + GNU Lesser General Public License for more details.
14363
14364 - You should have received a copy of the GNU General Public
14365 - License along with gnulib; if not, see
14366 - <https://www.gnu.org/licenses/>. */
14367 + You should have received a copy of the GNU Lesser General Public License
14368 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
14369
14370 #ifndef _GETOPT_PFX_CORE_H
14371 #define _GETOPT_PFX_CORE_H 1
14372 @@ -48,6 +47,14 @@
14373 # define optind __GETOPT_ID (optind)
14374 # define optopt __GETOPT_ID (optopt)
14375
14376 +/* Work around a a problem on macOS, which declares getopt with a
14377 + trailing __DARWIN_ALIAS(getopt) that would expand to something like
14378 + __asm("_" "rpl_getopt" "$UNIX2003") were it not for the following
14379 + hack to suppress the macOS declaration <https://bugs.gnu.org/40205>. */
14380 +# ifdef __APPLE__
14381 +# define _GETOPT
14382 +# endif
14383 +
14384 /* The system's getopt.h may have already included getopt-core.h to
14385 declare the unprefixed identifiers. Undef _GETOPT_CORE_H so that
14386 getopt-core.h declares them with prefixes. */
14387
14388 diff --git a/autotools/gnulib/getopt-pfx-ext.h b/autotools/gnulib/getopt-pfx-ext.h
14389 index 0e21aef..85a6cb5 100644
14390 --- a/autotools/gnulib/getopt-pfx-ext.h
14391 +++ b/autotools/gnulib/getopt-pfx-ext.h
14392 @@ -1,22 +1,21 @@
14393 /* getopt (GNU extensions) gnulib wrapper header.
14394 - Copyright (C) 1989-2019 Free Software Foundation, Inc.
14395 + Copyright (C) 1989-2022 Free Software Foundation, Inc.
14396 This file is part of gnulib.
14397 Unlike most of the getopt implementation, it is NOT shared
14398 with the GNU C Library.
14399
14400 - This file is free software; you can redistribute it and/or modify it
14401 - under the terms of the GNU General Public License as
14402 - published by the Free Software Foundation; either version 3 of
14403 - the License, or (at your option) any later version.
14404 + This file is free software: you can redistribute it and/or modify
14405 + it under the terms of the GNU Lesser General Public License as
14406 + published by the Free Software Foundation; either version 2.1 of the
14407 + License, or (at your option) any later version.
14408
14409 - This file is distributed in the hope that it will be useful, but
14410 - WITHOUT ANY WARRANTY; without even the implied warranty of
14411 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14412 - General Public License for more details.
14413 + This file is distributed in the hope that it will be useful,
14414 + but WITHOUT ANY WARRANTY; without even the implied warranty of
14415 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14416 + GNU Lesser General Public License for more details.
14417
14418 - You should have received a copy of the GNU General Public
14419 - License along with gnulib; if not, see
14420 - <https://www.gnu.org/licenses/>. */
14421 + You should have received a copy of the GNU Lesser General Public License
14422 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
14423
14424 #ifndef _GETOPT_PFX_EXT_H
14425 #define _GETOPT_PFX_EXT_H 1
14426
14427 diff --git a/autotools/gnulib/getopt.c b/autotools/gnulib/getopt.c
14428 index 8ee075a..128dc7f 100644
14429 --- a/autotools/gnulib/getopt.c
14430 +++ b/autotools/gnulib/getopt.c
14431 @@ -1,19 +1,19 @@
14432 /* Getopt for GNU.
14433 - Copyright (C) 1987-2019 Free Software Foundation, Inc.
14434 + Copyright (C) 1987-2022 Free Software Foundation, Inc.
14435 This file is part of the GNU C Library and is also part of gnulib.
14436 Patches to this file should be submitted to both projects.
14437
14438 The GNU C Library is free software; you can redistribute it and/or
14439 - modify it under the terms of the GNU General Public
14440 + modify it under the terms of the GNU Lesser General Public
14441 License as published by the Free Software Foundation; either
14442 - version 3 of the License, or (at your option) any later version.
14443 + version 2.1 of the License, or (at your option) any later version.
14444
14445 The GNU C Library is distributed in the hope that it will be useful,
14446 but WITHOUT ANY WARRANTY; without even the implied warranty of
14447 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14448 - General Public License for more details.
14449 + Lesser General Public License for more details.
14450
14451 - You should have received a copy of the GNU General Public
14452 + You should have received a copy of the GNU Lesser General Public
14453 License along with the GNU C Library; if not, see
14454 <https://www.gnu.org/licenses/>. */
14455
14456 @@ -378,8 +378,8 @@ process_long_option (int argc, char **argv, const char *optstring,
14457 /* Initialize internal data upon the first call to getopt. */
14458
14459 static const char *
14460 -_getopt_initialize (int argc _GL_UNUSED,
14461 - char **argv _GL_UNUSED, const char *optstring,
14462 +_getopt_initialize (_GL_UNUSED int argc,
14463 + _GL_UNUSED char **argv, const char *optstring,
14464 struct _getopt_data *d, int posixly_correct)
14465 {
14466 /* Start processing options with ARGV-element 1 (since ARGV-element 0
14467
14468 diff --git a/autotools/gnulib/getopt.in.h b/autotools/gnulib/getopt.in.h
14469 index c77f34c..9bc50ee 100644
14470 --- a/autotools/gnulib/getopt.in.h
14471 +++ b/autotools/gnulib/getopt.in.h
14472 @@ -1,22 +1,22 @@
14473 /* Declarations for getopt.
14474 - Copyright (C) 1989-2019 Free Software Foundation, Inc.
14475 + Copyright (C) 1989-2022 Free Software Foundation, Inc.
14476 This file is part of gnulib.
14477 Unlike most of the getopt implementation, it is NOT shared
14478 with the GNU C Library, which supplies a different version of
14479 this file.
14480
14481 - This file is free software; you can redistribute it and/or modify it
14482 - under the terms of the GNU General Public License as
14483 - published by the Free Software Foundation; either version 3 of
14484 - the License, or (at your option) any later version.
14485 + This file is free software: you can redistribute it and/or modify
14486 + it under the terms of the GNU Lesser General Public License as
14487 + published by the Free Software Foundation; either version 2.1 of the
14488 + License, or (at your option) any later version.
14489
14490 - This file is distributed in the hope that it will be useful, but
14491 - WITHOUT ANY WARRANTY; without even the implied warranty of
14492 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14493 - General Public License for more details.
14494 + This file is distributed in the hope that it will be useful,
14495 + but WITHOUT ANY WARRANTY; without even the implied warranty of
14496 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14497 + GNU Lesser General Public License for more details.
14498
14499 - You should have received a copy of the GNU General Public
14500 - License along with gnulib; if not, see <https://www.gnu.org/licenses/>. */
14501 + You should have received a copy of the GNU Lesser General Public License
14502 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
14503
14504 #ifndef _@GUARD_PREFIX@_GETOPT_H
14505
14506
14507 diff --git a/autotools/gnulib/getopt1.c b/autotools/gnulib/getopt1.c
14508 index 883aa6b..990eee1 100644
14509 --- a/autotools/gnulib/getopt1.c
14510 +++ b/autotools/gnulib/getopt1.c
14511 @@ -1,19 +1,19 @@
14512 /* getopt_long and getopt_long_only entry points for GNU getopt.
14513 - Copyright (C) 1987-2019 Free Software Foundation, Inc.
14514 + Copyright (C) 1987-2022 Free Software Foundation, Inc.
14515 This file is part of the GNU C Library and is also part of gnulib.
14516 Patches to this file should be submitted to both projects.
14517
14518 The GNU C Library is free software; you can redistribute it and/or
14519 - modify it under the terms of the GNU General Public
14520 + modify it under the terms of the GNU Lesser General Public
14521 License as published by the Free Software Foundation; either
14522 - version 3 of the License, or (at your option) any later version.
14523 + version 2.1 of the License, or (at your option) any later version.
14524
14525 The GNU C Library is distributed in the hope that it will be useful,
14526 but WITHOUT ANY WARRANTY; without even the implied warranty of
14527 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14528 - General Public License for more details.
14529 + Lesser General Public License for more details.
14530
14531 - You should have received a copy of the GNU General Public
14532 + You should have received a copy of the GNU Lesser General Public
14533 License along with the GNU C Library; if not, see
14534 <https://www.gnu.org/licenses/>. */
14535
14536
14537 diff --git a/autotools/gnulib/getopt_int.h b/autotools/gnulib/getopt_int.h
14538 index e63706f..ccdbb97 100644
14539 --- a/autotools/gnulib/getopt_int.h
14540 +++ b/autotools/gnulib/getopt_int.h
14541 @@ -1,19 +1,19 @@
14542 /* Internal declarations for getopt.
14543 - Copyright (C) 1989-2019 Free Software Foundation, Inc.
14544 + Copyright (C) 1989-2022 Free Software Foundation, Inc.
14545 This file is part of the GNU C Library and is also part of gnulib.
14546 Patches to this file should be submitted to both projects.
14547
14548 The GNU C Library is free software; you can redistribute it and/or
14549 - modify it under the terms of the GNU General Public
14550 + modify it under the terms of the GNU Lesser General Public
14551 License as published by the Free Software Foundation; either
14552 - version 3 of the License, or (at your option) any later version.
14553 + version 2.1 of the License, or (at your option) any later version.
14554
14555 The GNU C Library is distributed in the hope that it will be useful,
14556 but WITHOUT ANY WARRANTY; without even the implied warranty of
14557 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14558 - General Public License for more details.
14559 + Lesser General Public License for more details.
14560
14561 - You should have received a copy of the GNU General Public
14562 + You should have received a copy of the GNU Lesser General Public
14563 License along with the GNU C Library; if not, see
14564 <https://www.gnu.org/licenses/>. */
14565
14566
14567 diff --git a/autotools/gnulib/getprogname.c b/autotools/gnulib/getprogname.c
14568 index 22d71eb..62a4800 100644
14569 --- a/autotools/gnulib/getprogname.c
14570 +++ b/autotools/gnulib/getprogname.c
14571 @@ -1,17 +1,17 @@
14572 /* Program name management.
14573 - Copyright (C) 2016-2019 Free Software Foundation, Inc.
14574 + Copyright (C) 2016-2022 Free Software Foundation, Inc.
14575
14576 This program is free software: you can redistribute it and/or modify
14577 - it under the terms of the GNU General Public License as published by
14578 - the Free Software Foundation; either version 3 of the License, or
14579 + it under the terms of the GNU Lesser General Public License as published by
14580 + the Free Software Foundation; either version 2.1 of the License, or
14581 (at your option) any later version.
14582
14583 This program is distributed in the hope that it will be useful,
14584 but WITHOUT ANY WARRANTY; without even the implied warranty of
14585 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14586 - GNU General Public License for more details.
14587 + GNU Lesser General Public License for more details.
14588
14589 - You should have received a copy of the GNU General Public License
14590 + You should have received a copy of the GNU Lesser General Public License
14591 along with this program. If not, see <https://www.gnu.org/licenses/>. */
14592
14593 #include <config.h>
14594 @@ -43,7 +43,7 @@
14595 # include <string.h>
14596 #endif
14597
14598 -#ifdef __sgi
14599 +#if defined __sgi || defined __osf__
14600 # include <string.h>
14601 # include <unistd.h>
14602 # include <stdio.h>
14603 @@ -51,7 +51,13 @@
14604 # include <sys/procfs.h>
14605 #endif
14606
14607 -#include "dirname.h"
14608 +#if defined __SCO_VERSION__ || defined __sysv5__
14609 +# include <fcntl.h>
14610 +# include <stdlib.h>
14611 +# include <string.h>
14612 +#endif
14613 +
14614 +#include "basename-lgpl.h"
14615
14616 #ifndef HAVE_GETPROGNAME /* not Mac OS X, FreeBSD, NetBSD, OpenBSD >= 5.4, Cygwin */
14617 char const *
14618 @@ -218,12 +224,16 @@ getprogname (void)
14619 free (buf.ps_pathptr);
14620 }
14621 return p;
14622 -# elif defined __sgi /* IRIX */
14623 +# elif defined __sgi || defined __osf__ /* IRIX or Tru64 */
14624 char filename[50];
14625 int fd;
14626
14627 - sprintf (filename, "/proc/pinfo/%d", (int) getpid ());
14628 - fd = open (filename, O_RDONLY);
14629 + # if defined __sgi
14630 + sprintf (filename, "/proc/pinfo/%d", (int) getpid ());
14631 + # else
14632 + sprintf (filename, "/proc/%d", (int) getpid ());
14633 + # endif
14634 + fd = open (filename, O_RDONLY | O_CLOEXEC);
14635 if (0 <= fd)
14636 {
14637 prpsinfo_t buf;
14638 @@ -233,17 +243,50 @@ getprogname (void)
14639 {
14640 char *name = buf.pr_fname;
14641 size_t namesize = sizeof buf.pr_fname;
14642 + /* It may not be NUL-terminated. */
14643 char *namenul = memchr (name, '\0', namesize);
14644 size_t namelen = namenul ? namenul - name : namesize;
14645 char *namecopy = malloc (namelen + 1);
14646 if (namecopy)
14647 {
14648 - namecopy[namelen] = 0;
14649 + namecopy[namelen] = '\0';
14650 return memcpy (namecopy, name, namelen);
14651 }
14652 }
14653 }
14654 return NULL;
14655 +# elif defined __SCO_VERSION__ || defined __sysv5__ /* SCO OpenServer6/UnixWare */
14656 + char buf[80];
14657 + int fd;
14658 + sprintf (buf, "/proc/%d/cmdline", getpid());
14659 + fd = open (buf, O_RDONLY);
14660 + if (0 <= fd)
14661 + {
14662 + size_t n = read (fd, buf, 79);
14663 + if (n > 0)
14664 + {
14665 + buf[n] = '\0'; /* Guarantee null-termination */
14666 + char *progname;
14667 + progname = strrchr (buf, '/');
14668 + if (progname)
14669 + {
14670 + progname = progname + 1; /* Skip the '/' */
14671 + }
14672 + else
14673 + {
14674 + progname = buf;
14675 + }
14676 + char *ret;
14677 + ret = malloc (strlen (progname) + 1);
14678 + if (ret)
14679 + {
14680 + strcpy (ret, progname);
14681 + return ret;
14682 + }
14683 + }
14684 + close (fd);
14685 + }
14686 + return "?";
14687 # else
14688 # error "getprogname module not ported to this OS"
14689 # endif
14690
14691 diff --git a/autotools/gnulib/getprogname.h b/autotools/gnulib/getprogname.h
14692 index 1590b38..9a35e58 100644
14693 --- a/autotools/gnulib/getprogname.h
14694 +++ b/autotools/gnulib/getprogname.h
14695 @@ -1,17 +1,17 @@
14696 /* Program name management.
14697 - Copyright (C) 2016-2019 Free Software Foundation, Inc.
14698 + Copyright (C) 2016-2022 Free Software Foundation, Inc.
14699
14700 This program is free software: you can redistribute it and/or modify
14701 - it under the terms of the GNU General Public License as published by
14702 - the Free Software Foundation; either version 3 of the License, or
14703 + it under the terms of the GNU Lesser General Public License as published by
14704 + the Free Software Foundation; either version 2.1 of the License, or
14705 (at your option) any later version.
14706
14707 This program is distributed in the hope that it will be useful,
14708 but WITHOUT ANY WARRANTY; without even the implied warranty of
14709 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14710 - GNU General Public License for more details.
14711 + GNU Lesser General Public License for more details.
14712
14713 - You should have received a copy of the GNU General Public License
14714 + You should have received a copy of the GNU Lesser General Public License
14715 along with this program. If not, see <https://www.gnu.org/licenses/>. */
14716
14717 #ifndef _GL_GETPROGNAME_H
14718
14719 diff --git a/autotools/gnulib/gettext.h b/autotools/gnulib/gettext.h
14720 index c7c0fdb..b3577a0 100644
14721 --- a/autotools/gnulib/gettext.h
14722 +++ b/autotools/gnulib/gettext.h
14723 @@ -1,19 +1,19 @@
14724 /* Convenience header for conditional use of GNU <libintl.h>.
14725 - Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2019 Free Software
14726 + Copyright (C) 1995-1998, 2000-2002, 2004-2006, 2009-2022 Free Software
14727 Foundation, Inc.
14728
14729 - This program is free software; you can redistribute it and/or modify
14730 - it under the terms of the GNU General Public License as published by
14731 - the Free Software Foundation; either version 3, or (at your option)
14732 - any later version.
14733 + This file is free software: you can redistribute it and/or modify
14734 + it under the terms of the GNU Lesser General Public License as
14735 + published by the Free Software Foundation; either version 2.1 of the
14736 + License, or (at your option) any later version.
14737
14738 - This program is distributed in the hope that it will be useful,
14739 + This file is distributed in the hope that it will be useful,
14740 but WITHOUT ANY WARRANTY; without even the implied warranty of
14741 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14742 - GNU General Public License for more details.
14743 + GNU Lesser General Public License for more details.
14744
14745 - You should have received a copy of the GNU General Public License along
14746 - with this program; if not, see <https://www.gnu.org/licenses/>. */
14747 + You should have received a copy of the GNU Lesser General Public License
14748 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
14749
14750 #ifndef _LIBGETTEXT_H
14751 #define _LIBGETTEXT_H 1
14752 @@ -138,7 +138,7 @@
14753 #define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category) \
14754 npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
14755
14756 -#ifdef __GNUC__
14757 +#if defined __GNUC__ || defined __clang__
14758 __inline
14759 #else
14760 #ifdef __cplusplus
14761 @@ -157,7 +157,7 @@ pgettext_aux (const char *domain,
14762 return translation;
14763 }
14764
14765 -#ifdef __GNUC__
14766 +#if defined __GNUC__ || defined __clang__
14767 __inline
14768 #else
14769 #ifdef __cplusplus
14770 @@ -191,9 +191,8 @@ npgettext_aux (const char *domain,
14771 or may have security implications due to non-deterministic stack usage. */
14772
14773 #if (!defined GNULIB_NO_VLA \
14774 - && (((__GNUC__ >= 3 || __GNUG__ >= 2) && !defined __STRICT_ANSI__) \
14775 - /* || (__STDC_VERSION__ == 199901L && !defined __HP_cc)
14776 - || (__STDC_VERSION__ >= 201112L && !defined __STDC_NO_VLA__) */ ))
14777 + && defined __STDC_VERSION__ && 199901L <= __STDC_VERSION__ \
14778 + && !defined __STDC_NO_VLA__)
14779 # define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 1
14780 #else
14781 # define _LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS 0
14782 @@ -208,7 +207,7 @@ npgettext_aux (const char *domain,
14783 #define dpgettext_expr(Domainname, Msgctxt, Msgid) \
14784 dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
14785
14786 -#ifdef __GNUC__
14787 +#if defined __GNUC__ || defined __clang__
14788 __inline
14789 #else
14790 #ifdef __cplusplus
14791 @@ -255,7 +254,7 @@ dcpgettext_expr (const char *domain,
14792 #define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N) \
14793 dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
14794
14795 -#ifdef __GNUC__
14796 +#if defined __GNUC__ || defined __clang__
14797 __inline
14798 #else
14799 #ifdef __cplusplus
14800
14801 diff --git a/autotools/gnulib/gettime.c b/autotools/gnulib/gettime.c
14802 index 1fd153f..541af18 100644
14803 --- a/autotools/gnulib/gettime.c
14804 +++ b/autotools/gnulib/gettime.c
14805 @@ -1,18 +1,18 @@
14806 /* gettime -- get the system clock
14807
14808 - Copyright (C) 2002, 2004-2007, 2009-2019 Free Software Foundation, Inc.
14809 + Copyright (C) 2002, 2004-2007, 2009-2022 Free Software Foundation, Inc.
14810
14811 - This program is free software: you can redistribute it and/or modify
14812 - it under the terms of the GNU General Public License as published by
14813 - the Free Software Foundation; either version 3 of the License, or
14814 - (at your option) any later version.
14815 + This file is free software: you can redistribute it and/or modify
14816 + it under the terms of the GNU Lesser General Public License as
14817 + published by the Free Software Foundation, either version 3 of the
14818 + License, or (at your option) any later version.
14819
14820 - This program is distributed in the hope that it will be useful,
14821 + This file is distributed in the hope that it will be useful,
14822 but WITHOUT ANY WARRANTY; without even the implied warranty of
14823 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14824 - GNU General Public License for more details.
14825 + GNU Lesser General Public License for more details.
14826
14827 - You should have received a copy of the GNU General Public License
14828 + You should have received a copy of the GNU Lesser General Public License
14829 along with this program. If not, see <https://www.gnu.org/licenses/>. */
14830
14831 /* Written by Paul Eggert. */
14832 @@ -30,6 +30,8 @@ gettime (struct timespec *ts)
14833 {
14834 #if defined CLOCK_REALTIME && HAVE_CLOCK_GETTIME
14835 clock_gettime (CLOCK_REALTIME, ts);
14836 +#elif defined HAVE_TIMESPEC_GET
14837 + timespec_get (ts, TIME_UTC);
14838 #else
14839 struct timeval tv;
14840 gettimeofday (&tv, NULL);
14841
14842 diff --git a/autotools/gnulib/gettimeofday.c b/autotools/gnulib/gettimeofday.c
14843 index e728bf4..36c7920 100644
14844 --- a/autotools/gnulib/gettimeofday.c
14845 +++ b/autotools/gnulib/gettimeofday.c
14846 @@ -1,19 +1,19 @@
14847 /* Provide gettimeofday for systems that don't have it or for which it's broken.
14848
14849 - Copyright (C) 2001-2003, 2005-2007, 2009-2019 Free Software Foundation, Inc.
14850 + Copyright (C) 2001-2003, 2005-2007, 2009-2022 Free Software Foundation, Inc.
14851
14852 - This program is free software; you can redistribute it and/or modify
14853 - it under the terms of the GNU General Public License as published by
14854 - the Free Software Foundation; either version 3, or (at your option)
14855 - any later version.
14856 + This file is free software: you can redistribute it and/or modify
14857 + it under the terms of the GNU Lesser General Public License as
14858 + published by the Free Software Foundation; either version 2.1 of the
14859 + License, or (at your option) any later version.
14860
14861 - This program is distributed in the hope that it will be useful,
14862 + This file is distributed in the hope that it will be useful,
14863 but WITHOUT ANY WARRANTY; without even the implied warranty of
14864 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14865 - GNU General Public License for more details.
14866 + GNU Lesser General Public License for more details.
14867
14868 - You should have received a copy of the GNU General Public License
14869 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
14870 + You should have received a copy of the GNU Lesser General Public License
14871 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
14872
14873 /* written by Jim Meyering */
14874
14875 @@ -29,13 +29,17 @@
14876 # include <windows.h>
14877 #endif
14878
14879 -#include "localtime-buffer.h"
14880 -
14881 #ifdef WINDOWS_NATIVE
14882
14883 +/* Don't assume that UNICODE is not defined. */
14884 +# undef LoadLibrary
14885 +# define LoadLibrary LoadLibraryA
14886 +
14887 +# if !(_WIN32_WINNT >= _WIN32_WINNT_WIN8)
14888 +
14889 /* Avoid warnings from gcc -Wcast-function-type. */
14890 -# define GetProcAddress \
14891 - (void *) GetProcAddress
14892 +# define GetProcAddress \
14893 + (void *) GetProcAddress
14894
14895 /* GetSystemTimePreciseAsFileTime was introduced only in Windows 8. */
14896 typedef void (WINAPI * GetSystemTimePreciseAsFileTimeFuncType) (FILETIME *lpTime);
14897 @@ -54,6 +58,12 @@ initialize (void)
14898 initialized = TRUE;
14899 }
14900
14901 +# else
14902 +
14903 +# define GetSystemTimePreciseAsFileTimeFunc GetSystemTimePreciseAsFileTime
14904 +
14905 +# endif
14906 +
14907 #endif
14908
14909 /* This is a wrapper for gettimeofday. It is used only on systems
14910 @@ -84,8 +94,10 @@ gettimeofday (struct timeval *restrict tv, void *restrict tz)
14911 <http://www.windowstimestamp.com/description>. */
14912 FILETIME current_time;
14913
14914 +# if !(_WIN32_WINNT >= _WIN32_WINNT_WIN8)
14915 if (!initialized)
14916 initialize ();
14917 +# endif
14918 if (GetSystemTimePreciseAsFileTimeFunc != NULL)
14919 GetSystemTimePreciseAsFileTimeFunc (&current_time);
14920 else
14921 @@ -109,11 +121,6 @@ gettimeofday (struct timeval *restrict tv, void *restrict tz)
14922 #else
14923
14924 # if HAVE_GETTIMEOFDAY
14925 -# if GETTIMEOFDAY_CLOBBERS_LOCALTIME
14926 - /* Save and restore the contents of the buffer used for localtime's
14927 - result around the call to gettimeofday. */
14928 - struct tm save = *localtime_buffer_addr;
14929 -# endif
14930
14931 # if defined timeval /* 'struct timeval' overridden by gnulib? */
14932 # undef timeval
14933 @@ -128,10 +135,6 @@ gettimeofday (struct timeval *restrict tv, void *restrict tz)
14934 int result = gettimeofday (tv, (struct timezone *) tz);
14935 # endif
14936
14937 -# if GETTIMEOFDAY_CLOBBERS_LOCALTIME
14938 - *localtime_buffer_addr = save;
14939 -# endif
14940 -
14941 return result;
14942
14943 # else
14944
14945 diff --git a/autotools/gnulib/group-member.c b/autotools/gnulib/group-member.c
14946 index ad61cf0..480a126 100644
14947 --- a/autotools/gnulib/group-member.c
14948 +++ b/autotools/gnulib/group-member.c
14949 @@ -1,19 +1,19 @@
14950 /* group-member.c -- determine whether group id is in calling user's group list
14951
14952 - Copyright (C) 1994, 1997-1998, 2003, 2005-2006, 2009-2019 Free Software
14953 + Copyright (C) 1994, 1997-1998, 2003, 2005-2006, 2009-2022 Free Software
14954 Foundation, Inc.
14955
14956 - This program is free software: you can redistribute it and/or modify
14957 - it under the terms of the GNU General Public License as published by
14958 - the Free Software Foundation; either version 3 of the License, or
14959 - (at your option) any later version.
14960 + This file is free software: you can redistribute it and/or modify
14961 + it under the terms of the GNU Lesser General Public License as
14962 + published by the Free Software Foundation; either version 2.1 of the
14963 + License, or (at your option) any later version.
14964
14965 - This program is distributed in the hope that it will be useful,
14966 + This file is distributed in the hope that it will be useful,
14967 but WITHOUT ANY WARRANTY; without even the implied warranty of
14968 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14969 - GNU General Public License for more details.
14970 + GNU Lesser General Public License for more details.
14971
14972 - You should have received a copy of the GNU General Public License
14973 + You should have received a copy of the GNU Lesser General Public License
14974 along with this program. If not, see <https://www.gnu.org/licenses/>. */
14975
14976 #include <config.h>
14977 @@ -25,7 +25,7 @@
14978 #include <sys/types.h>
14979 #include <stdlib.h>
14980
14981 -#include "xalloc-oversized.h"
14982 +#include "intprops.h"
14983
14984 /* Most processes have no more than this many groups, and for these
14985 processes we can avoid using malloc. */
14986 @@ -53,10 +53,10 @@ get_group_info (struct group_info *gi)
14987 if (n_groups < 0)
14988 {
14989 int n_group_slots = getgroups (0, NULL);
14990 - if (0 <= n_group_slots
14991 - && ! xalloc_oversized (n_group_slots, sizeof *gi->group))
14992 + size_t nbytes;
14993 + if (! INT_MULTIPLY_WRAPV (n_group_slots, sizeof *gi->group, &nbytes))
14994 {
14995 - gi->group = malloc (n_group_slots * sizeof *gi->group);
14996 + gi->group = malloc (nbytes);
14997 if (gi->group)
14998 n_groups = getgroups (n_group_slots, gi->group);
14999 }
15000
15001 diff --git a/autotools/gnulib/ialloc.c b/autotools/gnulib/ialloc.c
15002 new file mode 100644
15003 index 0000000..43c1043
15004 --- /dev/null
15005 +++ b/autotools/gnulib/ialloc.c
15006 @@ -0,0 +1,21 @@
15007 +/* malloc with idx_t rather than size_t
15008 +
15009 + Copyright 2021-2022 Free Software Foundation, Inc.
15010 +
15011 + This file is free software: you can redistribute it and/or modify
15012 + it under the terms of the GNU Lesser General Public License as
15013 + published by the Free Software Foundation; either version 2.1 of the
15014 + License, or (at your option) any later version.
15015 +
15016 + This file is distributed in the hope that it will be useful,
15017 + but WITHOUT ANY WARRANTY; without even the implied warranty of
15018 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15019 + GNU Lesser General Public License for more details.
15020 +
15021 + You should have received a copy of the GNU Lesser General Public License
15022 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
15023 +
15024 +#include <config.h>
15025 +
15026 +#define IALLOC_INLINE _GL_EXTERN_INLINE
15027 +#include "ialloc.h"
15028
15029 diff --git a/autotools/gnulib/intprops.h b/autotools/gnulib/intprops.h
15030 index 1a44ae5..d4a917f 100644
15031 --- a/autotools/gnulib/intprops.h
15032 +++ b/autotools/gnulib/intprops.h
15033 @@ -1,21 +1,20 @@
15034 /* intprops.h -- properties of integer types
15035
15036 - Copyright (C) 2001-2019 Free Software Foundation, Inc.
15037 + Copyright (C) 2001-2022 Free Software Foundation, Inc.
15038
15039 This program is free software: you can redistribute it and/or modify it
15040 - under the terms of the GNU General Public License as published
15041 - by the Free Software Foundation; either version 3 of the License, or
15042 + under the terms of the GNU Lesser General Public License as published
15043 + by the Free Software Foundation; either version 2.1 of the License, or
15044 (at your option) any later version.
15045
15046 This program is distributed in the hope that it will be useful,
15047 but WITHOUT ANY WARRANTY; without even the implied warranty of
15048 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15049 - GNU General Public License for more details.
15050 + GNU Lesser General Public License for more details.
15051
15052 - You should have received a copy of the GNU General Public License
15053 + You should have received a copy of the GNU Lesser General Public License
15054 along with this program. If not, see <https://www.gnu.org/licenses/>. */
15055
15056 -/* Written by Paul Eggert. */
15057
15058 #ifndef _GL_INTPROPS_H
15059 #define _GL_INTPROPS_H
15060 @@ -48,7 +47,7 @@
15061 /* Minimum and maximum values for integer types and expressions. */
15062
15063 /* The width in bits of the integer type or expression T.
15064 - Do not evaluate T.
15065 + Do not evaluate T. T must not be a bit-field expression.
15066 Padding bits are not supported; this is checked at compile-time below. */
15067 #define TYPE_WIDTH(t) (sizeof (t) * CHAR_BIT)
15068
15069 @@ -70,7 +69,7 @@
15070 ? _GL_SIGNED_INT_MAXIMUM (e) \
15071 : _GL_INT_NEGATE_CONVERT (e, 1))
15072 #define _GL_SIGNED_INT_MAXIMUM(e) \
15073 - (((_GL_INT_CONVERT (e, 1) << (TYPE_WIDTH ((e) + 0) - 2)) - 1) * 2 + 1)
15074 + (((_GL_INT_CONVERT (e, 1) << (TYPE_WIDTH (+ (e)) - 2)) - 1) * 2 + 1)
15075
15076 /* Work around OpenVMS incompatibility with C99. */
15077 #if !defined LLONG_MAX && defined __INT64_MAX
15078 @@ -86,6 +85,7 @@
15079 /* Does the __typeof__ keyword work? This could be done by
15080 'configure', but for now it's easier to do it by hand. */
15081 #if (2 <= __GNUC__ \
15082 + || (4 <= __clang_major__) \
15083 || (1210 <= __IBMC__ && defined __IBM__TYPEOF__) \
15084 || (0x5110 <= __SUNPRO_C && !__STDC__))
15085 # define _GL_HAVE___TYPEOF__ 1
15086 @@ -94,8 +94,9 @@
15087 #endif
15088
15089 /* Return 1 if the integer type or expression T might be signed. Return 0
15090 - if it is definitely unsigned. This macro does not evaluate its argument,
15091 - and expands to an integer constant expression. */
15092 + if it is definitely unsigned. T must not be a bit-field expression.
15093 + This macro does not evaluate its argument, and expands to an
15094 + integer constant expression. */
15095 #if _GL_HAVE___TYPEOF__
15096 # define _GL_SIGNED_TYPE_OR_EXPR(t) TYPE_SIGNED (__typeof__ (t))
15097 #else
15098 @@ -108,18 +109,20 @@
15099 #define INT_BITS_STRLEN_BOUND(b) (((b) * 146 + 484) / 485)
15100
15101 /* Bound on length of the string representing an integer type or expression T.
15102 + T must not be a bit-field expression.
15103 +
15104 Subtract 1 for the sign bit if T is signed, and then add 1 more for
15105 a minus sign if needed.
15106
15107 - Because _GL_SIGNED_TYPE_OR_EXPR sometimes returns 0 when its argument is
15108 - signed, this macro may overestimate the true bound by one byte when
15109 + Because _GL_SIGNED_TYPE_OR_EXPR sometimes returns 1 when its argument is
15110 + unsigned, this macro may overestimate the true bound by one byte when
15111 applied to unsigned types of size 2, 4, 16, ... bytes. */
15112 #define INT_STRLEN_BOUND(t) \
15113 (INT_BITS_STRLEN_BOUND (TYPE_WIDTH (t) - _GL_SIGNED_TYPE_OR_EXPR (t)) \
15114 + _GL_SIGNED_TYPE_OR_EXPR (t))
15115
15116 /* Bound on buffer size needed to represent an integer type or expression T,
15117 - including the terminating null. */
15118 + including the terminating null. T must not be a bit-field expression. */
15119 #define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1)
15120
15121
15122 @@ -129,7 +132,8 @@
15123 operators might not yield numerically correct answers due to
15124 arithmetic overflow. They do not rely on undefined or
15125 implementation-defined behavior. Their implementations are simple
15126 - and straightforward, but they are a bit harder to use than the
15127 + and straightforward, but they are harder to use and may be less
15128 + efficient than the INT_<op>_WRAPV, INT_<op>_OK, and
15129 INT_<op>_OVERFLOW macros described below.
15130
15131 Example usage:
15132 @@ -154,6 +158,9 @@
15133 must have minimum value MIN and maximum MAX. Unsigned types should
15134 use a zero MIN of the proper type.
15135
15136 + Because all arguments are subject to integer promotions, these
15137 + macros typically do not work on types narrower than 'int'.
15138 +
15139 These macros are tuned for constant MIN and MAX. For commutative
15140 operations such as A + B, they are also tuned for constant B. */
15141
15142 @@ -220,15 +227,42 @@
15143 ? (a) < (min) >> (b) \
15144 : (max) >> (b) < (a))
15145
15146 -/* True if __builtin_add_overflow (A, B, P) works when P is non-null. */
15147 -#if 5 <= __GNUC__ && !defined __ICC
15148 -# define _GL_HAS_BUILTIN_OVERFLOW 1
15149 +/* True if __builtin_add_overflow (A, B, P) and __builtin_sub_overflow
15150 + (A, B, P) work when P is non-null. */
15151 +#ifdef __EDG__
15152 +/* EDG-based compilers like nvc 22.1 cannot add 64-bit signed to unsigned
15153 + <https://bugs.gnu.org/53256>. */
15154 +# define _GL_HAS_BUILTIN_ADD_OVERFLOW 0
15155 +#elif defined __has_builtin
15156 +# define _GL_HAS_BUILTIN_ADD_OVERFLOW __has_builtin (__builtin_add_overflow)
15157 +/* __builtin_{add,sub}_overflow exists but is not reliable in GCC 5.x and 6.x,
15158 + see <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98269>. */
15159 +#elif 7 <= __GNUC__
15160 +# define _GL_HAS_BUILTIN_ADD_OVERFLOW 1
15161 #else
15162 -# define _GL_HAS_BUILTIN_OVERFLOW 0
15163 +# define _GL_HAS_BUILTIN_ADD_OVERFLOW 0
15164 #endif
15165
15166 -/* True if __builtin_add_overflow_p (A, B, C) works. */
15167 -#define _GL_HAS_BUILTIN_OVERFLOW_P (7 <= __GNUC__)
15168 +/* True if __builtin_mul_overflow (A, B, P) works when P is non-null. */
15169 +#if defined __clang_major__ && __clang_major__ < 14
15170 +/* Work around Clang bug <https://bugs.llvm.org/show_bug.cgi?id=16404>. */
15171 +# define _GL_HAS_BUILTIN_MUL_OVERFLOW 0
15172 +#else
15173 +# define _GL_HAS_BUILTIN_MUL_OVERFLOW _GL_HAS_BUILTIN_ADD_OVERFLOW
15174 +#endif
15175 +
15176 +/* True if __builtin_add_overflow_p (A, B, C) works, and similarly for
15177 + __builtin_sub_overflow_p and __builtin_mul_overflow_p. */
15178 +#ifdef __EDG__
15179 +/* In EDG-based compilers like ICC 2021.3 and earlier,
15180 + __builtin_add_overflow_p etc. are not treated as integral constant
15181 + expressions even when all arguments are. */
15182 +# define _GL_HAS_BUILTIN_OVERFLOW_P 0
15183 +#elif defined __has_builtin
15184 +# define _GL_HAS_BUILTIN_OVERFLOW_P __has_builtin (__builtin_mul_overflow_p)
15185 +#else
15186 +# define _GL_HAS_BUILTIN_OVERFLOW_P (7 <= __GNUC__)
15187 +#endif
15188
15189 /* The _GL*_OVERFLOW macros have the same restrictions as the
15190 *_RANGE_OVERFLOW macros, except that they do not assume that operands
15191 @@ -281,7 +315,9 @@
15192
15193 The INT_<op>_OVERFLOW macros return 1 if the corresponding C operators
15194 might not yield numerically correct answers due to arithmetic overflow.
15195 - The INT_<op>_WRAPV macros also store the low-order bits of the answer.
15196 + The INT_<op>_WRAPV macros compute the low-order bits of the sum,
15197 + difference, and product of two C integers, and return 1 if these
15198 + low-order bits are not numerically correct.
15199 These macros work correctly on all known practical hosts, and do not rely
15200 on undefined behavior due to signed arithmetic overflow.
15201
15202 @@ -309,9 +345,17 @@
15203 arguments should not have side effects.
15204
15205 The WRAPV macros are not constant expressions. They support only
15206 - +, binary -, and *. The result type must be signed.
15207 + +, binary -, and *.
15208 +
15209 + Because the WRAPV macros convert the result, they report overflow
15210 + in different circumstances than the OVERFLOW macros do. For
15211 + example, in the typical case with 16-bit 'short' and 32-bit 'int',
15212 + if A, B and R are all of type 'short' then INT_ADD_OVERFLOW (A, B)
15213 + returns false because the addition cannot overflow after A and B
15214 + are converted to 'int', whereas INT_ADD_WRAPV (A, B, &R) returns
15215 + true or false depending on whether the sum fits into 'short'.
15216
15217 - These macros are tuned for their last argument being a constant.
15218 + These macros are tuned for their last input argument being a constant.
15219
15220 Return 1 if the integer expressions A * B, A - B, -A, A * B, A / B,
15221 A % B, and A << B would overflow, respectively. */
15222 @@ -347,73 +391,140 @@
15223
15224 /* Store the low-order bits of A + B, A - B, A * B, respectively, into *R.
15225 Return 1 if the result overflows. See above for restrictions. */
15226 -#define INT_ADD_WRAPV(a, b, r) \
15227 - _GL_INT_OP_WRAPV (a, b, r, +, __builtin_add_overflow, INT_ADD_OVERFLOW)
15228 -#define INT_SUBTRACT_WRAPV(a, b, r) \
15229 - _GL_INT_OP_WRAPV (a, b, r, -, __builtin_sub_overflow, INT_SUBTRACT_OVERFLOW)
15230 -#define INT_MULTIPLY_WRAPV(a, b, r) \
15231 - _GL_INT_OP_WRAPV (a, b, r, *, __builtin_mul_overflow, INT_MULTIPLY_OVERFLOW)
15232 +#if _GL_HAS_BUILTIN_ADD_OVERFLOW
15233 +# define INT_ADD_WRAPV(a, b, r) __builtin_add_overflow (a, b, r)
15234 +# define INT_SUBTRACT_WRAPV(a, b, r) __builtin_sub_overflow (a, b, r)
15235 +#else
15236 +# define INT_ADD_WRAPV(a, b, r) \
15237 + _GL_INT_OP_WRAPV (a, b, r, +, _GL_INT_ADD_RANGE_OVERFLOW)
15238 +# define INT_SUBTRACT_WRAPV(a, b, r) \
15239 + _GL_INT_OP_WRAPV (a, b, r, -, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
15240 +#endif
15241 +#if _GL_HAS_BUILTIN_MUL_OVERFLOW
15242 +# if ((9 < __GNUC__ + (3 <= __GNUC_MINOR__) \
15243 + || (__GNUC__ == 8 && 4 <= __GNUC_MINOR__)) \
15244 + && !defined __EDG__)
15245 +# define INT_MULTIPLY_WRAPV(a, b, r) __builtin_mul_overflow (a, b, r)
15246 +# else
15247 + /* Work around GCC bug 91450. */
15248 +# define INT_MULTIPLY_WRAPV(a, b, r) \
15249 + ((!_GL_SIGNED_TYPE_OR_EXPR (*(r)) && EXPR_SIGNED (a) && EXPR_SIGNED (b) \
15250 + && _GL_INT_MULTIPLY_RANGE_OVERFLOW (a, b, 0, (__typeof__ (*(r))) -1)) \
15251 + ? ((void) __builtin_mul_overflow (a, b, r), 1) \
15252 + : __builtin_mul_overflow (a, b, r))
15253 +# endif
15254 +#else
15255 +# define INT_MULTIPLY_WRAPV(a, b, r) \
15256 + _GL_INT_OP_WRAPV (a, b, r, *, _GL_INT_MULTIPLY_RANGE_OVERFLOW)
15257 +#endif
15258
15259 /* Nonzero if this compiler has GCC bug 68193 or Clang bug 25390. See:
15260 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193
15261 https://llvm.org/bugs/show_bug.cgi?id=25390
15262 For now, assume all versions of GCC-like compilers generate bogus
15263 - warnings for _Generic. This matters only for older compilers that
15264 - lack __builtin_add_overflow. */
15265 -#if __GNUC__
15266 + warnings for _Generic. This matters only for compilers that
15267 + lack relevant builtins. */
15268 +#if __GNUC__ || defined __clang__
15269 # define _GL__GENERIC_BOGUS 1
15270 #else
15271 # define _GL__GENERIC_BOGUS 0
15272 #endif
15273
15274 /* Store the low-order bits of A <op> B into *R, where OP specifies
15275 - the operation. BUILTIN is the builtin operation, and OVERFLOW the
15276 - overflow predicate. Return 1 if the result overflows. See above
15277 - for restrictions. */
15278 -#if _GL_HAS_BUILTIN_OVERFLOW
15279 -# define _GL_INT_OP_WRAPV(a, b, r, op, builtin, overflow) builtin (a, b, r)
15280 -#elif 201112 <= __STDC_VERSION__ && !_GL__GENERIC_BOGUS
15281 -# define _GL_INT_OP_WRAPV(a, b, r, op, builtin, overflow) \
15282 + the operation and OVERFLOW the overflow predicate. Return 1 if the
15283 + result overflows. See above for restrictions. */
15284 +#if 201112 <= __STDC_VERSION__ && !_GL__GENERIC_BOGUS
15285 +# define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \
15286 (_Generic \
15287 (*(r), \
15288 signed char: \
15289 _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
15290 signed char, SCHAR_MIN, SCHAR_MAX), \
15291 + unsigned char: \
15292 + _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
15293 + unsigned char, 0, UCHAR_MAX), \
15294 short int: \
15295 _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
15296 short int, SHRT_MIN, SHRT_MAX), \
15297 + unsigned short int: \
15298 + _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
15299 + unsigned short int, 0, USHRT_MAX), \
15300 int: \
15301 _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
15302 int, INT_MIN, INT_MAX), \
15303 + unsigned int: \
15304 + _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
15305 + unsigned int, 0, UINT_MAX), \
15306 long int: \
15307 _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
15308 long int, LONG_MIN, LONG_MAX), \
15309 + unsigned long int: \
15310 + _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
15311 + unsigned long int, 0, ULONG_MAX), \
15312 long long int: \
15313 _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \
15314 - long long int, LLONG_MIN, LLONG_MAX)))
15315 + long long int, LLONG_MIN, LLONG_MAX), \
15316 + unsigned long long int: \
15317 + _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \
15318 + unsigned long long int, 0, ULLONG_MAX)))
15319 #else
15320 -# define _GL_INT_OP_WRAPV(a, b, r, op, builtin, overflow) \
15321 +/* Store the low-order bits of A <op> B into *R, where OP specifies
15322 + the operation and OVERFLOW the overflow predicate. If *R is
15323 + signed, its type is ST with bounds SMIN..SMAX; otherwise its type
15324 + is UT with bounds U..UMAX. ST and UT are narrower than int.
15325 + Return 1 if the result overflows. See above for restrictions. */
15326 +# if _GL_HAVE___TYPEOF__
15327 +# define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \
15328 + (TYPE_SIGNED (__typeof__ (*(r))) \
15329 + ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, st, smin, smax) \
15330 + : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, ut, 0, umax))
15331 +# else
15332 +# define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \
15333 + (overflow (a, b, smin, smax) \
15334 + ? (overflow (a, b, 0, umax) \
15335 + ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 1) \
15336 + : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) < 0) \
15337 + : (overflow (a, b, 0, umax) \
15338 + ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) >= 0 \
15339 + : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 0)))
15340 +# endif
15341 +
15342 +# define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \
15343 (sizeof *(r) == sizeof (signed char) \
15344 - ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
15345 - signed char, SCHAR_MIN, SCHAR_MAX) \
15346 + ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \
15347 + signed char, SCHAR_MIN, SCHAR_MAX, \
15348 + unsigned char, UCHAR_MAX) \
15349 : sizeof *(r) == sizeof (short int) \
15350 - ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
15351 - short int, SHRT_MIN, SHRT_MAX) \
15352 + ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \
15353 + short int, SHRT_MIN, SHRT_MAX, \
15354 + unsigned short int, USHRT_MAX) \
15355 : sizeof *(r) == sizeof (int) \
15356 - ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
15357 - int, INT_MIN, INT_MAX) \
15358 + ? (EXPR_SIGNED (*(r)) \
15359 + ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
15360 + int, INT_MIN, INT_MAX) \
15361 + : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \
15362 + unsigned int, 0, UINT_MAX)) \
15363 : _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow))
15364 # ifdef LLONG_MAX
15365 # define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \
15366 (sizeof *(r) == sizeof (long int) \
15367 - ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
15368 - long int, LONG_MIN, LONG_MAX) \
15369 - : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \
15370 - long long int, LLONG_MIN, LLONG_MAX))
15371 + ? (EXPR_SIGNED (*(r)) \
15372 + ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
15373 + long int, LONG_MIN, LONG_MAX) \
15374 + : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
15375 + unsigned long int, 0, ULONG_MAX)) \
15376 + : (EXPR_SIGNED (*(r)) \
15377 + ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \
15378 + long long int, LLONG_MIN, LLONG_MAX) \
15379 + : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \
15380 + unsigned long long int, 0, ULLONG_MAX)))
15381 # else
15382 # define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \
15383 - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
15384 - long int, LONG_MIN, LONG_MAX)
15385 + (EXPR_SIGNED (*(r)) \
15386 + ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
15387 + long int, LONG_MIN, LONG_MAX) \
15388 + : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \
15389 + unsigned long int, 0, ULONG_MAX))
15390 # endif
15391 #endif
15392
15393 @@ -422,13 +533,7 @@
15394 overflow problems. *R's type is T, with extrema TMIN and TMAX.
15395 T must be a signed integer type. Return 1 if the result overflows. */
15396 #define _GL_INT_OP_CALC(a, b, r, op, overflow, ut, t, tmin, tmax) \
15397 - (sizeof ((a) op (b)) < sizeof (t) \
15398 - ? _GL_INT_OP_CALC1 ((t) (a), (t) (b), r, op, overflow, ut, t, tmin, tmax) \
15399 - : _GL_INT_OP_CALC1 (a, b, r, op, overflow, ut, t, tmin, tmax))
15400 -#define _GL_INT_OP_CALC1(a, b, r, op, overflow, ut, t, tmin, tmax) \
15401 - ((overflow (a, b) \
15402 - || (EXPR_SIGNED ((a) op (b)) && ((a) op (b)) < (tmin)) \
15403 - || (tmax) < ((a) op (b))) \
15404 + (overflow (a, b, tmin, tmax) \
15405 ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 1) \
15406 : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 0))
15407
15408 @@ -452,4 +557,86 @@
15409 #define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, ut, t) \
15410 ((t) ((ut) (a) op (ut) (b)))
15411
15412 +/* Return true if the numeric values A + B, A - B, A * B fall outside
15413 + the range TMIN..TMAX. Arguments should be integer expressions
15414 + without side effects. TMIN should be signed and nonpositive.
15415 + TMAX should be positive, and should be signed unless TMIN is zero. */
15416 +#define _GL_INT_ADD_RANGE_OVERFLOW(a, b, tmin, tmax) \
15417 + ((b) < 0 \
15418 + ? (((tmin) \
15419 + ? ((EXPR_SIGNED (_GL_INT_CONVERT (a, (tmin) - (b))) || (b) < (tmin)) \
15420 + && (a) < (tmin) - (b)) \
15421 + : (a) <= -1 - (b)) \
15422 + || ((EXPR_SIGNED (a) ? 0 <= (a) : (tmax) < (a)) && (tmax) < (a) + (b))) \
15423 + : (a) < 0 \
15424 + ? (((tmin) \
15425 + ? ((EXPR_SIGNED (_GL_INT_CONVERT (b, (tmin) - (a))) || (a) < (tmin)) \
15426 + && (b) < (tmin) - (a)) \
15427 + : (b) <= -1 - (a)) \
15428 + || ((EXPR_SIGNED (_GL_INT_CONVERT (a, b)) || (tmax) < (b)) \
15429 + && (tmax) < (a) + (b))) \
15430 + : (tmax) < (b) || (tmax) - (b) < (a))
15431 +#define _GL_INT_SUBTRACT_RANGE_OVERFLOW(a, b, tmin, tmax) \
15432 + (((a) < 0) == ((b) < 0) \
15433 + ? ((a) < (b) \
15434 + ? !(tmin) || -1 - (tmin) < (b) - (a) - 1 \
15435 + : (tmax) < (a) - (b)) \
15436 + : (a) < 0 \
15437 + ? ((!EXPR_SIGNED (_GL_INT_CONVERT ((a) - (tmin), b)) && (a) - (tmin) < 0) \
15438 + || (a) - (tmin) < (b)) \
15439 + : ((! (EXPR_SIGNED (_GL_INT_CONVERT (tmax, b)) \
15440 + && EXPR_SIGNED (_GL_INT_CONVERT ((tmax) + (b), a))) \
15441 + && (tmax) <= -1 - (b)) \
15442 + || (tmax) + (b) < (a)))
15443 +#define _GL_INT_MULTIPLY_RANGE_OVERFLOW(a, b, tmin, tmax) \
15444 + ((b) < 0 \
15445 + ? ((a) < 0 \
15446 + ? (EXPR_SIGNED (_GL_INT_CONVERT (tmax, b)) \
15447 + ? (a) < (tmax) / (b) \
15448 + : ((INT_NEGATE_OVERFLOW (b) \
15449 + ? _GL_INT_CONVERT (b, tmax) >> (TYPE_WIDTH (+ (b)) - 1) \
15450 + : (tmax) / -(b)) \
15451 + <= -1 - (a))) \
15452 + : INT_NEGATE_OVERFLOW (_GL_INT_CONVERT (b, tmin)) && (b) == -1 \
15453 + ? (EXPR_SIGNED (a) \
15454 + ? 0 < (a) + (tmin) \
15455 + : 0 < (a) && -1 - (tmin) < (a) - 1) \
15456 + : (tmin) / (b) < (a)) \
15457 + : (b) == 0 \
15458 + ? 0 \
15459 + : ((a) < 0 \
15460 + ? (INT_NEGATE_OVERFLOW (_GL_INT_CONVERT (a, tmin)) && (a) == -1 \
15461 + ? (EXPR_SIGNED (b) ? 0 < (b) + (tmin) : -1 - (tmin) < (b) - 1) \
15462 + : (tmin) / (a) < (b)) \
15463 + : (tmax) / (b) < (a)))
15464 +
15465 +/* The following macros compute A + B, A - B, and A * B, respectively.
15466 + If no overflow occurs, they set *R to the result and return 1;
15467 + otherwise, they return 0 and may modify *R.
15468 +
15469 + Example usage:
15470 +
15471 + long int result;
15472 + if (INT_ADD_OK (a, b, &result))
15473 + printf ("result is %ld\n", result);
15474 + else
15475 + printf ("overflow\n");
15476 +
15477 + A, B, and *R should be integers; they need not be the same type,
15478 + and they need not be all signed or all unsigned.
15479 +
15480 + These macros work correctly on all known practical hosts, and do not rely
15481 + on undefined behavior due to signed arithmetic overflow.
15482 +
15483 + These macros are not constant expressions.
15484 +
15485 + These macros may evaluate their arguments zero or multiple times, so the
15486 + arguments should not have side effects.
15487 +
15488 + These macros are tuned for B being a constant. */
15489 +
15490 +#define INT_ADD_OK(a, b, r) ! INT_ADD_WRAPV (a, b, r)
15491 +#define INT_SUBTRACT_OK(a, b, r) ! INT_SUBTRACT_WRAPV (a, b, r)
15492 +#define INT_MULTIPLY_OK(a, b, r) ! INT_MULTIPLY_WRAPV (a, b, r)
15493 +
15494 #endif /* _GL_INTPROPS_H */
15495
15496 diff --git a/autotools/gnulib/inttypes.in.h b/autotools/gnulib/inttypes.in.h
15497 index d3c735c..853eca0 100644
15498 --- a/autotools/gnulib/inttypes.in.h
15499 +++ b/autotools/gnulib/inttypes.in.h
15500 @@ -1,23 +1,23 @@
15501 -/* Copyright (C) 2006-2019 Free Software Foundation, Inc.
15502 +/* Copyright (C) 2006-2022 Free Software Foundation, Inc.
15503 Written by Paul Eggert, Bruno Haible, Derek Price.
15504 This file is part of gnulib.
15505
15506 - This program is free software: you can redistribute it and/or modify
15507 - it under the terms of the GNU General Public License as published by
15508 - the Free Software Foundation; either version 3 of the License, or
15509 - (at your option) any later version.
15510 + This file is free software: you can redistribute it and/or modify
15511 + it under the terms of the GNU Lesser General Public License as
15512 + published by the Free Software Foundation; either version 2.1 of the
15513 + License, or (at your option) any later version.
15514
15515 - This program is distributed in the hope that it will be useful,
15516 + This file is distributed in the hope that it will be useful,
15517 but WITHOUT ANY WARRANTY; without even the implied warranty of
15518 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15519 - GNU General Public License for more details.
15520 + GNU Lesser General Public License for more details.
15521
15522 - You should have received a copy of the GNU General Public License
15523 + You should have received a copy of the GNU Lesser General Public License
15524 along with this program. If not, see <https://www.gnu.org/licenses/>. */
15525
15526 /*
15527 * ISO C 99 <inttypes.h> for platforms that lack it.
15528 - * <http://www.opengroup.org/susv3xbd/inttypes.h.html>
15529 + * <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/inttypes.h.html>
15530 */
15531
15532 #if __GNUC__ >= 3
15533 @@ -38,6 +38,8 @@
15534 # endif
15535
15536 # @INCLUDE_NEXT@ @NEXT_INTTYPES_H@
15537 +
15538 +# define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H
15539 # endif
15540 #endif
15541
15542 @@ -49,15 +51,15 @@
15543 #ifndef __GLIBC__
15544 # include <stdint.h>
15545 #endif
15546 -/* Get CHAR_BIT. */
15547 +/* Get CHAR_BIT, INT_MAX, LONG_MAX, etc. */
15548 #include <limits.h>
15549 /* On mingw, __USE_MINGW_ANSI_STDIO only works if <stdio.h> is also included */
15550 #if defined _WIN32 && ! defined __CYGWIN__
15551 # include <stdio.h>
15552 #endif
15553
15554 -#if !(INT_MIN == INT32_MIN && INT_MAX == INT32_MAX)
15555 -# error "This file assumes that 'int' has exactly 32 bits. Please report your platform and compiler to <bug-gnulib@×××.org>."
15556 +#if !(INT_MAX == 0x7fffffff && INT_MIN + INT_MAX == -1)
15557 +# error "This file assumes that 'int' is 32-bit two's complement. Please report your platform and compiler to <bug-gnulib@×××.org>."
15558 #endif
15559
15560 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
15561 @@ -76,110 +78,92 @@
15562 # define _LONG_LONG_FORMAT_PREFIX "ll"
15563 #endif
15564
15565 -#if !defined PRId8 || @PRI_MACROS_BROKEN@
15566 -# undef PRId8
15567 +#if !defined PRId8
15568 # ifdef INT8_MAX
15569 # define PRId8 "d"
15570 # endif
15571 #endif
15572 -#if !defined PRIi8 || @PRI_MACROS_BROKEN@
15573 -# undef PRIi8
15574 +#if !defined PRIi8
15575 # ifdef INT8_MAX
15576 # define PRIi8 "i"
15577 # endif
15578 #endif
15579 -#if !defined PRIo8 || @PRI_MACROS_BROKEN@
15580 -# undef PRIo8
15581 +#if !defined PRIo8
15582 # ifdef UINT8_MAX
15583 # define PRIo8 "o"
15584 # endif
15585 #endif
15586 -#if !defined PRIu8 || @PRI_MACROS_BROKEN@
15587 -# undef PRIu8
15588 +#if !defined PRIu8
15589 # ifdef UINT8_MAX
15590 # define PRIu8 "u"
15591 # endif
15592 #endif
15593 -#if !defined PRIx8 || @PRI_MACROS_BROKEN@
15594 -# undef PRIx8
15595 +#if !defined PRIx8
15596 # ifdef UINT8_MAX
15597 # define PRIx8 "x"
15598 # endif
15599 #endif
15600 -#if !defined PRIX8 || @PRI_MACROS_BROKEN@
15601 -# undef PRIX8
15602 +#if !defined PRIX8
15603 # ifdef UINT8_MAX
15604 # define PRIX8 "X"
15605 # endif
15606 #endif
15607 -#if !defined PRId16 || @PRI_MACROS_BROKEN@
15608 -# undef PRId16
15609 +#if !defined PRId16
15610 # ifdef INT16_MAX
15611 # define PRId16 "d"
15612 # endif
15613 #endif
15614 -#if !defined PRIi16 || @PRI_MACROS_BROKEN@
15615 -# undef PRIi16
15616 +#if !defined PRIi16
15617 # ifdef INT16_MAX
15618 # define PRIi16 "i"
15619 # endif
15620 #endif
15621 -#if !defined PRIo16 || @PRI_MACROS_BROKEN@
15622 -# undef PRIo16
15623 +#if !defined PRIo16
15624 # ifdef UINT16_MAX
15625 # define PRIo16 "o"
15626 # endif
15627 #endif
15628 -#if !defined PRIu16 || @PRI_MACROS_BROKEN@
15629 -# undef PRIu16
15630 +#if !defined PRIu16
15631 # ifdef UINT16_MAX
15632 # define PRIu16 "u"
15633 # endif
15634 #endif
15635 -#if !defined PRIx16 || @PRI_MACROS_BROKEN@
15636 -# undef PRIx16
15637 +#if !defined PRIx16
15638 # ifdef UINT16_MAX
15639 # define PRIx16 "x"
15640 # endif
15641 #endif
15642 -#if !defined PRIX16 || @PRI_MACROS_BROKEN@
15643 -# undef PRIX16
15644 +#if !defined PRIX16
15645 # ifdef UINT16_MAX
15646 # define PRIX16 "X"
15647 # endif
15648 #endif
15649 -#if !defined PRId32 || @PRI_MACROS_BROKEN@
15650 -# undef PRId32
15651 +#if !defined PRId32
15652 # ifdef INT32_MAX
15653 # define PRId32 "d"
15654 # endif
15655 #endif
15656 -#if !defined PRIi32 || @PRI_MACROS_BROKEN@
15657 -# undef PRIi32
15658 +#if !defined PRIi32
15659 # ifdef INT32_MAX
15660 # define PRIi32 "i"
15661 # endif
15662 #endif
15663 -#if !defined PRIo32 || @PRI_MACROS_BROKEN@
15664 -# undef PRIo32
15665 +#if !defined PRIo32
15666 # ifdef UINT32_MAX
15667 # define PRIo32 "o"
15668 # endif
15669 #endif
15670 -#if !defined PRIu32 || @PRI_MACROS_BROKEN@
15671 -# undef PRIu32
15672 +#if !defined PRIu32
15673 # ifdef UINT32_MAX
15674 # define PRIu32 "u"
15675 # endif
15676 #endif
15677 -#if !defined PRIx32 || @PRI_MACROS_BROKEN@
15678 -# undef PRIx32
15679 +#if !defined PRIx32
15680 # ifdef UINT32_MAX
15681 # define PRIx32 "x"
15682 # endif
15683 #endif
15684 -#if !defined PRIX32 || @PRI_MACROS_BROKEN@
15685 -# undef PRIX32
15686 +#if !defined PRIX32
15687 # ifdef UINT32_MAX
15688 # define PRIX32 "X"
15689 # endif
15690 @@ -189,15 +173,13 @@
15691 # define _PRI64_PREFIX "l"
15692 # elif defined _MSC_VER || defined __MINGW32__
15693 # define _PRI64_PREFIX "I64"
15694 -# elif @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1
15695 +# elif LONG_MAX >> 30 == 1
15696 # define _PRI64_PREFIX _LONG_LONG_FORMAT_PREFIX
15697 # endif
15698 -# if !defined PRId64 || @PRI_MACROS_BROKEN@
15699 -# undef PRId64
15700 +# if !defined PRId64
15701 # define PRId64 _PRI64_PREFIX "d"
15702 # endif
15703 -# if !defined PRIi64 || @PRI_MACROS_BROKEN@
15704 -# undef PRIi64
15705 +# if !defined PRIi64
15706 # define PRIi64 _PRI64_PREFIX "i"
15707 # endif
15708 #endif
15709 @@ -206,266 +188,220 @@
15710 # define _PRIu64_PREFIX "l"
15711 # elif defined _MSC_VER || defined __MINGW32__
15712 # define _PRIu64_PREFIX "I64"
15713 -# elif @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1
15714 +# elif ULONG_MAX >> 31 == 1
15715 # define _PRIu64_PREFIX _LONG_LONG_FORMAT_PREFIX
15716 # endif
15717 -# if !defined PRIo64 || @PRI_MACROS_BROKEN@
15718 -# undef PRIo64
15719 +# if !defined PRIo64
15720 # define PRIo64 _PRIu64_PREFIX "o"
15721 # endif
15722 -# if !defined PRIu64 || @PRI_MACROS_BROKEN@
15723 -# undef PRIu64
15724 +# if !defined PRIu64
15725 # define PRIu64 _PRIu64_PREFIX "u"
15726 # endif
15727 -# if !defined PRIx64 || @PRI_MACROS_BROKEN@
15728 -# undef PRIx64
15729 +# if !defined PRIx64
15730 # define PRIx64 _PRIu64_PREFIX "x"
15731 # endif
15732 -# if !defined PRIX64 || @PRI_MACROS_BROKEN@
15733 -# undef PRIX64
15734 +# if !defined PRIX64
15735 # define PRIX64 _PRIu64_PREFIX "X"
15736 # endif
15737 #endif
15738
15739 -#if !defined PRIdLEAST8 || @PRI_MACROS_BROKEN@
15740 -# undef PRIdLEAST8
15741 +#if !defined PRIdLEAST8
15742 # define PRIdLEAST8 "d"
15743 #endif
15744 -#if !defined PRIiLEAST8 || @PRI_MACROS_BROKEN@
15745 -# undef PRIiLEAST8
15746 +#if !defined PRIiLEAST8
15747 # define PRIiLEAST8 "i"
15748 #endif
15749 -#if !defined PRIoLEAST8 || @PRI_MACROS_BROKEN@
15750 -# undef PRIoLEAST8
15751 +#if !defined PRIoLEAST8
15752 # define PRIoLEAST8 "o"
15753 #endif
15754 -#if !defined PRIuLEAST8 || @PRI_MACROS_BROKEN@
15755 -# undef PRIuLEAST8
15756 +#if !defined PRIuLEAST8
15757 # define PRIuLEAST8 "u"
15758 #endif
15759 -#if !defined PRIxLEAST8 || @PRI_MACROS_BROKEN@
15760 -# undef PRIxLEAST8
15761 +#if !defined PRIxLEAST8
15762 # define PRIxLEAST8 "x"
15763 #endif
15764 -#if !defined PRIXLEAST8 || @PRI_MACROS_BROKEN@
15765 -# undef PRIXLEAST8
15766 +#if !defined PRIXLEAST8
15767 # define PRIXLEAST8 "X"
15768 #endif
15769 -#if !defined PRIdLEAST16 || @PRI_MACROS_BROKEN@
15770 -# undef PRIdLEAST16
15771 +#if !defined PRIdLEAST16
15772 # define PRIdLEAST16 "d"
15773 #endif
15774 -#if !defined PRIiLEAST16 || @PRI_MACROS_BROKEN@
15775 -# undef PRIiLEAST16
15776 +#if !defined PRIiLEAST16
15777 # define PRIiLEAST16 "i"
15778 #endif
15779 -#if !defined PRIoLEAST16 || @PRI_MACROS_BROKEN@
15780 -# undef PRIoLEAST16
15781 +#if !defined PRIoLEAST16
15782 # define PRIoLEAST16 "o"
15783 #endif
15784 -#if !defined PRIuLEAST16 || @PRI_MACROS_BROKEN@
15785 -# undef PRIuLEAST16
15786 +#if !defined PRIuLEAST16
15787 # define PRIuLEAST16 "u"
15788 #endif
15789 -#if !defined PRIxLEAST16 || @PRI_MACROS_BROKEN@
15790 -# undef PRIxLEAST16
15791 +#if !defined PRIxLEAST16
15792 # define PRIxLEAST16 "x"
15793 #endif
15794 -#if !defined PRIXLEAST16 || @PRI_MACROS_BROKEN@
15795 -# undef PRIXLEAST16
15796 +#if !defined PRIXLEAST16
15797 # define PRIXLEAST16 "X"
15798 #endif
15799 -#if !defined PRIdLEAST32 || @PRI_MACROS_BROKEN@
15800 -# undef PRIdLEAST32
15801 +#if !defined PRIdLEAST32
15802 # define PRIdLEAST32 "d"
15803 #endif
15804 -#if !defined PRIiLEAST32 || @PRI_MACROS_BROKEN@
15805 -# undef PRIiLEAST32
15806 +#if !defined PRIiLEAST32
15807 # define PRIiLEAST32 "i"
15808 #endif
15809 -#if !defined PRIoLEAST32 || @PRI_MACROS_BROKEN@
15810 -# undef PRIoLEAST32
15811 +#if !defined PRIoLEAST32
15812 # define PRIoLEAST32 "o"
15813 #endif
15814 -#if !defined PRIuLEAST32 || @PRI_MACROS_BROKEN@
15815 -# undef PRIuLEAST32
15816 +#if !defined PRIuLEAST32
15817 # define PRIuLEAST32 "u"
15818 #endif
15819 -#if !defined PRIxLEAST32 || @PRI_MACROS_BROKEN@
15820 -# undef PRIxLEAST32
15821 +#if !defined PRIxLEAST32
15822 # define PRIxLEAST32 "x"
15823 #endif
15824 -#if !defined PRIXLEAST32 || @PRI_MACROS_BROKEN@
15825 -# undef PRIXLEAST32
15826 +#if !defined PRIXLEAST32
15827 # define PRIXLEAST32 "X"
15828 #endif
15829 #ifdef INT64_MAX
15830 -# if !defined PRIdLEAST64 || @PRI_MACROS_BROKEN@
15831 -# undef PRIdLEAST64
15832 +# if !defined PRIdLEAST64
15833 # define PRIdLEAST64 PRId64
15834 # endif
15835 -# if !defined PRIiLEAST64 || @PRI_MACROS_BROKEN@
15836 -# undef PRIiLEAST64
15837 +# if !defined PRIiLEAST64
15838 # define PRIiLEAST64 PRIi64
15839 # endif
15840 #endif
15841 #ifdef UINT64_MAX
15842 -# if !defined PRIoLEAST64 || @PRI_MACROS_BROKEN@
15843 -# undef PRIoLEAST64
15844 +# if !defined PRIoLEAST64
15845 # define PRIoLEAST64 PRIo64
15846 # endif
15847 -# if !defined PRIuLEAST64 || @PRI_MACROS_BROKEN@
15848 -# undef PRIuLEAST64
15849 +# if !defined PRIuLEAST64
15850 # define PRIuLEAST64 PRIu64
15851 # endif
15852 -# if !defined PRIxLEAST64 || @PRI_MACROS_BROKEN@
15853 -# undef PRIxLEAST64
15854 +# if !defined PRIxLEAST64
15855 # define PRIxLEAST64 PRIx64
15856 # endif
15857 -# if !defined PRIXLEAST64 || @PRI_MACROS_BROKEN@
15858 -# undef PRIXLEAST64
15859 +# if !defined PRIXLEAST64
15860 # define PRIXLEAST64 PRIX64
15861 # endif
15862 #endif
15863
15864 -#if !defined PRIdFAST8 || @PRI_MACROS_BROKEN@
15865 -# undef PRIdFAST8
15866 +#if !defined PRIdFAST8
15867 # if INT_FAST8_MAX > INT32_MAX
15868 # define PRIdFAST8 PRId64
15869 # else
15870 # define PRIdFAST8 "d"
15871 # endif
15872 #endif
15873 -#if !defined PRIiFAST8 || @PRI_MACROS_BROKEN@
15874 -# undef PRIiFAST8
15875 +#if !defined PRIiFAST8
15876 # if INT_FAST8_MAX > INT32_MAX
15877 # define PRIiFAST8 PRIi64
15878 # else
15879 # define PRIiFAST8 "i"
15880 # endif
15881 #endif
15882 -#if !defined PRIoFAST8 || @PRI_MACROS_BROKEN@
15883 -# undef PRIoFAST8
15884 +#if !defined PRIoFAST8
15885 # if UINT_FAST8_MAX > UINT32_MAX
15886 # define PRIoFAST8 PRIo64
15887 # else
15888 # define PRIoFAST8 "o"
15889 # endif
15890 #endif
15891 -#if !defined PRIuFAST8 || @PRI_MACROS_BROKEN@
15892 -# undef PRIuFAST8
15893 +#if !defined PRIuFAST8
15894 # if UINT_FAST8_MAX > UINT32_MAX
15895 # define PRIuFAST8 PRIu64
15896 # else
15897 # define PRIuFAST8 "u"
15898 # endif
15899 #endif
15900 -#if !defined PRIxFAST8 || @PRI_MACROS_BROKEN@
15901 -# undef PRIxFAST8
15902 +#if !defined PRIxFAST8
15903 # if UINT_FAST8_MAX > UINT32_MAX
15904 # define PRIxFAST8 PRIx64
15905 # else
15906 # define PRIxFAST8 "x"
15907 # endif
15908 #endif
15909 -#if !defined PRIXFAST8 || @PRI_MACROS_BROKEN@
15910 -# undef PRIXFAST8
15911 +#if !defined PRIXFAST8
15912 # if UINT_FAST8_MAX > UINT32_MAX
15913 # define PRIXFAST8 PRIX64
15914 # else
15915 # define PRIXFAST8 "X"
15916 # endif
15917 #endif
15918 -#if !defined PRIdFAST16 || @PRI_MACROS_BROKEN@
15919 -# undef PRIdFAST16
15920 +#if !defined PRIdFAST16
15921 # if INT_FAST16_MAX > INT32_MAX
15922 # define PRIdFAST16 PRId64
15923 # else
15924 # define PRIdFAST16 "d"
15925 # endif
15926 #endif
15927 -#if !defined PRIiFAST16 || @PRI_MACROS_BROKEN@
15928 -# undef PRIiFAST16
15929 +#if !defined PRIiFAST16
15930 # if INT_FAST16_MAX > INT32_MAX
15931 # define PRIiFAST16 PRIi64
15932 # else
15933 # define PRIiFAST16 "i"
15934 # endif
15935 #endif
15936 -#if !defined PRIoFAST16 || @PRI_MACROS_BROKEN@
15937 -# undef PRIoFAST16
15938 +#if !defined PRIoFAST16
15939 # if UINT_FAST16_MAX > UINT32_MAX
15940 # define PRIoFAST16 PRIo64
15941 # else
15942 # define PRIoFAST16 "o"
15943 # endif
15944 #endif
15945 -#if !defined PRIuFAST16 || @PRI_MACROS_BROKEN@
15946 -# undef PRIuFAST16
15947 +#if !defined PRIuFAST16
15948 # if UINT_FAST16_MAX > UINT32_MAX
15949 # define PRIuFAST16 PRIu64
15950 # else
15951 # define PRIuFAST16 "u"
15952 # endif
15953 #endif
15954 -#if !defined PRIxFAST16 || @PRI_MACROS_BROKEN@
15955 -# undef PRIxFAST16
15956 +#if !defined PRIxFAST16
15957 # if UINT_FAST16_MAX > UINT32_MAX
15958 # define PRIxFAST16 PRIx64
15959 # else
15960 # define PRIxFAST16 "x"
15961 # endif
15962 #endif
15963 -#if !defined PRIXFAST16 || @PRI_MACROS_BROKEN@
15964 -# undef PRIXFAST16
15965 +#if !defined PRIXFAST16
15966 # if UINT_FAST16_MAX > UINT32_MAX
15967 # define PRIXFAST16 PRIX64
15968 # else
15969 # define PRIXFAST16 "X"
15970 # endif
15971 #endif
15972 -#if !defined PRIdFAST32 || @PRI_MACROS_BROKEN@
15973 -# undef PRIdFAST32
15974 +#if !defined PRIdFAST32
15975 # if INT_FAST32_MAX > INT32_MAX
15976 # define PRIdFAST32 PRId64
15977 # else
15978 # define PRIdFAST32 "d"
15979 # endif
15980 #endif
15981 -#if !defined PRIiFAST32 || @PRI_MACROS_BROKEN@
15982 -# undef PRIiFAST32
15983 +#if !defined PRIiFAST32
15984 # if INT_FAST32_MAX > INT32_MAX
15985 # define PRIiFAST32 PRIi64
15986 # else
15987 # define PRIiFAST32 "i"
15988 # endif
15989 #endif
15990 -#if !defined PRIoFAST32 || @PRI_MACROS_BROKEN@
15991 -# undef PRIoFAST32
15992 +#if !defined PRIoFAST32
15993 # if UINT_FAST32_MAX > UINT32_MAX
15994 # define PRIoFAST32 PRIo64
15995 # else
15996 # define PRIoFAST32 "o"
15997 # endif
15998 #endif
15999 -#if !defined PRIuFAST32 || @PRI_MACROS_BROKEN@
16000 -# undef PRIuFAST32
16001 +#if !defined PRIuFAST32
16002 # if UINT_FAST32_MAX > UINT32_MAX
16003 # define PRIuFAST32 PRIu64
16004 # else
16005 # define PRIuFAST32 "u"
16006 # endif
16007 #endif
16008 -#if !defined PRIxFAST32 || @PRI_MACROS_BROKEN@
16009 -# undef PRIxFAST32
16010 +#if !defined PRIxFAST32
16011 # if UINT_FAST32_MAX > UINT32_MAX
16012 # define PRIxFAST32 PRIx64
16013 # else
16014 # define PRIxFAST32 "x"
16015 # endif
16016 #endif
16017 -#if !defined PRIXFAST32 || @PRI_MACROS_BROKEN@
16018 -# undef PRIXFAST32
16019 +#if !defined PRIXFAST32
16020 # if UINT_FAST32_MAX > UINT32_MAX
16021 # define PRIXFAST32 PRIX64
16022 # else
16023 @@ -473,76 +409,64 @@
16024 # endif
16025 #endif
16026 #ifdef INT64_MAX
16027 -# if !defined PRIdFAST64 || @PRI_MACROS_BROKEN@
16028 -# undef PRIdFAST64
16029 +# if !defined PRIdFAST64
16030 # define PRIdFAST64 PRId64
16031 # endif
16032 -# if !defined PRIiFAST64 || @PRI_MACROS_BROKEN@
16033 -# undef PRIiFAST64
16034 +# if !defined PRIiFAST64
16035 # define PRIiFAST64 PRIi64
16036 # endif
16037 #endif
16038 #ifdef UINT64_MAX
16039 -# if !defined PRIoFAST64 || @PRI_MACROS_BROKEN@
16040 -# undef PRIoFAST64
16041 +# if !defined PRIoFAST64
16042 # define PRIoFAST64 PRIo64
16043 # endif
16044 -# if !defined PRIuFAST64 || @PRI_MACROS_BROKEN@
16045 -# undef PRIuFAST64
16046 +# if !defined PRIuFAST64
16047 # define PRIuFAST64 PRIu64
16048 # endif
16049 -# if !defined PRIxFAST64 || @PRI_MACROS_BROKEN@
16050 -# undef PRIxFAST64
16051 +# if !defined PRIxFAST64
16052 # define PRIxFAST64 PRIx64
16053 # endif
16054 -# if !defined PRIXFAST64 || @PRI_MACROS_BROKEN@
16055 -# undef PRIXFAST64
16056 +# if !defined PRIXFAST64
16057 # define PRIXFAST64 PRIX64
16058 # endif
16059 #endif
16060
16061 -#if !defined PRIdMAX || @PRI_MACROS_BROKEN@
16062 -# undef PRIdMAX
16063 +#if !defined PRIdMAX
16064 # if @INT32_MAX_LT_INTMAX_MAX@
16065 # define PRIdMAX PRId64
16066 # else
16067 # define PRIdMAX "ld"
16068 # endif
16069 #endif
16070 -#if !defined PRIiMAX || @PRI_MACROS_BROKEN@
16071 -# undef PRIiMAX
16072 +#if !defined PRIiMAX
16073 # if @INT32_MAX_LT_INTMAX_MAX@
16074 # define PRIiMAX PRIi64
16075 # else
16076 # define PRIiMAX "li"
16077 # endif
16078 #endif
16079 -#if !defined PRIoMAX || @PRI_MACROS_BROKEN@
16080 -# undef PRIoMAX
16081 +#if !defined PRIoMAX
16082 # if @UINT32_MAX_LT_UINTMAX_MAX@
16083 # define PRIoMAX PRIo64
16084 # else
16085 # define PRIoMAX "lo"
16086 # endif
16087 #endif
16088 -#if !defined PRIuMAX || @PRI_MACROS_BROKEN@
16089 -# undef PRIuMAX
16090 +#if !defined PRIuMAX
16091 # if @UINT32_MAX_LT_UINTMAX_MAX@
16092 # define PRIuMAX PRIu64
16093 # else
16094 # define PRIuMAX "lu"
16095 # endif
16096 #endif
16097 -#if !defined PRIxMAX || @PRI_MACROS_BROKEN@
16098 -# undef PRIxMAX
16099 +#if !defined PRIxMAX
16100 # if @UINT32_MAX_LT_UINTMAX_MAX@
16101 # define PRIxMAX PRIx64
16102 # else
16103 # define PRIxMAX "lx"
16104 # endif
16105 #endif
16106 -#if !defined PRIXMAX || @PRI_MACROS_BROKEN@
16107 -# undef PRIXMAX
16108 +#if !defined PRIXMAX
16109 # if @UINT32_MAX_LT_UINTMAX_MAX@
16110 # define PRIXMAX PRIX64
16111 # else
16112 @@ -550,129 +474,108 @@
16113 # endif
16114 #endif
16115
16116 -#if !defined PRIdPTR || @PRI_MACROS_BROKEN@
16117 -# undef PRIdPTR
16118 +#if !defined PRIdPTR
16119 # ifdef INTPTR_MAX
16120 # define PRIdPTR @PRIPTR_PREFIX@ "d"
16121 # endif
16122 #endif
16123 -#if !defined PRIiPTR || @PRI_MACROS_BROKEN@
16124 -# undef PRIiPTR
16125 +#if !defined PRIiPTR
16126 # ifdef INTPTR_MAX
16127 # define PRIiPTR @PRIPTR_PREFIX@ "i"
16128 # endif
16129 #endif
16130 -#if !defined PRIoPTR || @PRI_MACROS_BROKEN@
16131 -# undef PRIoPTR
16132 +#if !defined PRIoPTR
16133 # ifdef UINTPTR_MAX
16134 # define PRIoPTR @PRIPTR_PREFIX@ "o"
16135 # endif
16136 #endif
16137 -#if !defined PRIuPTR || @PRI_MACROS_BROKEN@
16138 -# undef PRIuPTR
16139 +#if !defined PRIuPTR
16140 # ifdef UINTPTR_MAX
16141 # define PRIuPTR @PRIPTR_PREFIX@ "u"
16142 # endif
16143 #endif
16144 -#if !defined PRIxPTR || @PRI_MACROS_BROKEN@
16145 -# undef PRIxPTR
16146 +#if !defined PRIxPTR
16147 # ifdef UINTPTR_MAX
16148 # define PRIxPTR @PRIPTR_PREFIX@ "x"
16149 # endif
16150 #endif
16151 -#if !defined PRIXPTR || @PRI_MACROS_BROKEN@
16152 -# undef PRIXPTR
16153 +#if !defined PRIXPTR
16154 # ifdef UINTPTR_MAX
16155 # define PRIXPTR @PRIPTR_PREFIX@ "X"
16156 # endif
16157 #endif
16158
16159 -#if !defined SCNd8 || @PRI_MACROS_BROKEN@
16160 -# undef SCNd8
16161 +#if !defined SCNd8
16162 # ifdef INT8_MAX
16163 # define SCNd8 "hhd"
16164 # endif
16165 #endif
16166 -#if !defined SCNi8 || @PRI_MACROS_BROKEN@
16167 -# undef SCNi8
16168 +#if !defined SCNi8
16169 # ifdef INT8_MAX
16170 # define SCNi8 "hhi"
16171 # endif
16172 #endif
16173 -#if !defined SCNo8 || @PRI_MACROS_BROKEN@
16174 -# undef SCNo8
16175 +#if !defined SCNo8
16176 # ifdef UINT8_MAX
16177 # define SCNo8 "hho"
16178 # endif
16179 #endif
16180 -#if !defined SCNu8 || @PRI_MACROS_BROKEN@
16181 -# undef SCNu8
16182 +#if !defined SCNu8
16183 # ifdef UINT8_MAX
16184 # define SCNu8 "hhu"
16185 # endif
16186 #endif
16187 -#if !defined SCNx8 || @PRI_MACROS_BROKEN@
16188 -# undef SCNx8
16189 +#if !defined SCNx8
16190 # ifdef UINT8_MAX
16191 # define SCNx8 "hhx"
16192 # endif
16193 #endif
16194 -#if !defined SCNd16 || @PRI_MACROS_BROKEN@
16195 -# undef SCNd16
16196 +#if !defined SCNd16
16197 # ifdef INT16_MAX
16198 # define SCNd16 "hd"
16199 # endif
16200 #endif
16201 -#if !defined SCNi16 || @PRI_MACROS_BROKEN@
16202 -# undef SCNi16
16203 +#if !defined SCNi16
16204 # ifdef INT16_MAX
16205 # define SCNi16 "hi"
16206 # endif
16207 #endif
16208 -#if !defined SCNo16 || @PRI_MACROS_BROKEN@
16209 -# undef SCNo16
16210 +#if !defined SCNo16
16211 # ifdef UINT16_MAX
16212 # define SCNo16 "ho"
16213 # endif
16214 #endif
16215 -#if !defined SCNu16 || @PRI_MACROS_BROKEN@
16216 -# undef SCNu16
16217 +#if !defined SCNu16
16218 # ifdef UINT16_MAX
16219 # define SCNu16 "hu"
16220 # endif
16221 #endif
16222 -#if !defined SCNx16 || @PRI_MACROS_BROKEN@
16223 -# undef SCNx16
16224 +#if !defined SCNx16
16225 # ifdef UINT16_MAX
16226 # define SCNx16 "hx"
16227 # endif
16228 #endif
16229 -#if !defined SCNd32 || @PRI_MACROS_BROKEN@
16230 -# undef SCNd32
16231 +#if !defined SCNd32
16232 # ifdef INT32_MAX
16233 # define SCNd32 "d"
16234 # endif
16235 #endif
16236 -#if !defined SCNi32 || @PRI_MACROS_BROKEN@
16237 -# undef SCNi32
16238 +#if !defined SCNi32
16239 # ifdef INT32_MAX
16240 # define SCNi32 "i"
16241 # endif
16242 #endif
16243 -#if !defined SCNo32 || @PRI_MACROS_BROKEN@
16244 -# undef SCNo32
16245 +#if !defined SCNo32
16246 # ifdef UINT32_MAX
16247 # define SCNo32 "o"
16248 # endif
16249 #endif
16250 -#if !defined SCNu32 || @PRI_MACROS_BROKEN@
16251 -# undef SCNu32
16252 +#if !defined SCNu32
16253 # ifdef UINT32_MAX
16254 # define SCNu32 "u"
16255 # endif
16256 #endif
16257 -#if !defined SCNx32 || @PRI_MACROS_BROKEN@
16258 -# undef SCNx32
16259 +#if !defined SCNx32
16260 # ifdef UINT32_MAX
16261 # define SCNx32 "x"
16262 # endif
16263 @@ -682,15 +585,13 @@
16264 # define _SCN64_PREFIX "l"
16265 # elif defined _MSC_VER || defined __MINGW32__
16266 # define _SCN64_PREFIX "I64"
16267 -# elif @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1
16268 +# elif LONG_MAX >> 30 == 1
16269 # define _SCN64_PREFIX _LONG_LONG_FORMAT_PREFIX
16270 # endif
16271 -# if !defined SCNd64 || @PRI_MACROS_BROKEN@
16272 -# undef SCNd64
16273 +# if !defined SCNd64
16274 # define SCNd64 _SCN64_PREFIX "d"
16275 # endif
16276 -# if !defined SCNi64 || @PRI_MACROS_BROKEN@
16277 -# undef SCNi64
16278 +# if !defined SCNi64
16279 # define SCNi64 _SCN64_PREFIX "i"
16280 # endif
16281 #endif
16282 @@ -699,110 +600,86 @@
16283 # define _SCNu64_PREFIX "l"
16284 # elif defined _MSC_VER || defined __MINGW32__
16285 # define _SCNu64_PREFIX "I64"
16286 -# elif @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1
16287 +# elif ULONG_MAX >> 31 == 1
16288 # define _SCNu64_PREFIX _LONG_LONG_FORMAT_PREFIX
16289 # endif
16290 -# if !defined SCNo64 || @PRI_MACROS_BROKEN@
16291 -# undef SCNo64
16292 +# if !defined SCNo64
16293 # define SCNo64 _SCNu64_PREFIX "o"
16294 # endif
16295 -# if !defined SCNu64 || @PRI_MACROS_BROKEN@
16296 -# undef SCNu64
16297 +# if !defined SCNu64
16298 # define SCNu64 _SCNu64_PREFIX "u"
16299 # endif
16300 -# if !defined SCNx64 || @PRI_MACROS_BROKEN@
16301 -# undef SCNx64
16302 +# if !defined SCNx64
16303 # define SCNx64 _SCNu64_PREFIX "x"
16304 # endif
16305 #endif
16306
16307 -#if !defined SCNdLEAST8 || @PRI_MACROS_BROKEN@
16308 -# undef SCNdLEAST8
16309 +#if !defined SCNdLEAST8
16310 # define SCNdLEAST8 "hhd"
16311 #endif
16312 -#if !defined SCNiLEAST8 || @PRI_MACROS_BROKEN@
16313 -# undef SCNiLEAST8
16314 +#if !defined SCNiLEAST8
16315 # define SCNiLEAST8 "hhi"
16316 #endif
16317 -#if !defined SCNoLEAST8 || @PRI_MACROS_BROKEN@
16318 -# undef SCNoLEAST8
16319 +#if !defined SCNoLEAST8
16320 # define SCNoLEAST8 "hho"
16321 #endif
16322 -#if !defined SCNuLEAST8 || @PRI_MACROS_BROKEN@
16323 -# undef SCNuLEAST8
16324 +#if !defined SCNuLEAST8
16325 # define SCNuLEAST8 "hhu"
16326 #endif
16327 -#if !defined SCNxLEAST8 || @PRI_MACROS_BROKEN@
16328 -# undef SCNxLEAST8
16329 +#if !defined SCNxLEAST8
16330 # define SCNxLEAST8 "hhx"
16331 #endif
16332 -#if !defined SCNdLEAST16 || @PRI_MACROS_BROKEN@
16333 -# undef SCNdLEAST16
16334 +#if !defined SCNdLEAST16
16335 # define SCNdLEAST16 "hd"
16336 #endif
16337 -#if !defined SCNiLEAST16 || @PRI_MACROS_BROKEN@
16338 -# undef SCNiLEAST16
16339 +#if !defined SCNiLEAST16
16340 # define SCNiLEAST16 "hi"
16341 #endif
16342 -#if !defined SCNoLEAST16 || @PRI_MACROS_BROKEN@
16343 -# undef SCNoLEAST16
16344 +#if !defined SCNoLEAST16
16345 # define SCNoLEAST16 "ho"
16346 #endif
16347 -#if !defined SCNuLEAST16 || @PRI_MACROS_BROKEN@
16348 -# undef SCNuLEAST16
16349 +#if !defined SCNuLEAST16
16350 # define SCNuLEAST16 "hu"
16351 #endif
16352 -#if !defined SCNxLEAST16 || @PRI_MACROS_BROKEN@
16353 -# undef SCNxLEAST16
16354 +#if !defined SCNxLEAST16
16355 # define SCNxLEAST16 "hx"
16356 #endif
16357 -#if !defined SCNdLEAST32 || @PRI_MACROS_BROKEN@
16358 -# undef SCNdLEAST32
16359 +#if !defined SCNdLEAST32
16360 # define SCNdLEAST32 "d"
16361 #endif
16362 -#if !defined SCNiLEAST32 || @PRI_MACROS_BROKEN@
16363 -# undef SCNiLEAST32
16364 +#if !defined SCNiLEAST32
16365 # define SCNiLEAST32 "i"
16366 #endif
16367 -#if !defined SCNoLEAST32 || @PRI_MACROS_BROKEN@
16368 -# undef SCNoLEAST32
16369 +#if !defined SCNoLEAST32
16370 # define SCNoLEAST32 "o"
16371 #endif
16372 -#if !defined SCNuLEAST32 || @PRI_MACROS_BROKEN@
16373 -# undef SCNuLEAST32
16374 +#if !defined SCNuLEAST32
16375 # define SCNuLEAST32 "u"
16376 #endif
16377 -#if !defined SCNxLEAST32 || @PRI_MACROS_BROKEN@
16378 -# undef SCNxLEAST32
16379 +#if !defined SCNxLEAST32
16380 # define SCNxLEAST32 "x"
16381 #endif
16382 #ifdef INT64_MAX
16383 -# if !defined SCNdLEAST64 || @PRI_MACROS_BROKEN@
16384 -# undef SCNdLEAST64
16385 +# if !defined SCNdLEAST64
16386 # define SCNdLEAST64 SCNd64
16387 # endif
16388 -# if !defined SCNiLEAST64 || @PRI_MACROS_BROKEN@
16389 -# undef SCNiLEAST64
16390 +# if !defined SCNiLEAST64
16391 # define SCNiLEAST64 SCNi64
16392 # endif
16393 #endif
16394 #ifdef UINT64_MAX
16395 -# if !defined SCNoLEAST64 || @PRI_MACROS_BROKEN@
16396 -# undef SCNoLEAST64
16397 +# if !defined SCNoLEAST64
16398 # define SCNoLEAST64 SCNo64
16399 # endif
16400 -# if !defined SCNuLEAST64 || @PRI_MACROS_BROKEN@
16401 -# undef SCNuLEAST64
16402 +# if !defined SCNuLEAST64
16403 # define SCNuLEAST64 SCNu64
16404 # endif
16405 -# if !defined SCNxLEAST64 || @PRI_MACROS_BROKEN@
16406 -# undef SCNxLEAST64
16407 +# if !defined SCNxLEAST64
16408 # define SCNxLEAST64 SCNx64
16409 # endif
16410 #endif
16411
16412 -#if !defined SCNdFAST8 || @PRI_MACROS_BROKEN@
16413 -# undef SCNdFAST8
16414 +#if !defined SCNdFAST8
16415 # if INT_FAST8_MAX > INT32_MAX
16416 # define SCNdFAST8 SCNd64
16417 # elif INT_FAST8_MAX == 0x7fff
16418 @@ -813,8 +690,7 @@
16419 # define SCNdFAST8 "d"
16420 # endif
16421 #endif
16422 -#if !defined SCNiFAST8 || @PRI_MACROS_BROKEN@
16423 -# undef SCNiFAST8
16424 +#if !defined SCNiFAST8
16425 # if INT_FAST8_MAX > INT32_MAX
16426 # define SCNiFAST8 SCNi64
16427 # elif INT_FAST8_MAX == 0x7fff
16428 @@ -825,8 +701,7 @@
16429 # define SCNiFAST8 "i"
16430 # endif
16431 #endif
16432 -#if !defined SCNoFAST8 || @PRI_MACROS_BROKEN@
16433 -# undef SCNoFAST8
16434 +#if !defined SCNoFAST8
16435 # if UINT_FAST8_MAX > UINT32_MAX
16436 # define SCNoFAST8 SCNo64
16437 # elif UINT_FAST8_MAX == 0xffff
16438 @@ -837,8 +712,7 @@
16439 # define SCNoFAST8 "o"
16440 # endif
16441 #endif
16442 -#if !defined SCNuFAST8 || @PRI_MACROS_BROKEN@
16443 -# undef SCNuFAST8
16444 +#if !defined SCNuFAST8
16445 # if UINT_FAST8_MAX > UINT32_MAX
16446 # define SCNuFAST8 SCNu64
16447 # elif UINT_FAST8_MAX == 0xffff
16448 @@ -849,8 +723,7 @@
16449 # define SCNuFAST8 "u"
16450 # endif
16451 #endif
16452 -#if !defined SCNxFAST8 || @PRI_MACROS_BROKEN@
16453 -# undef SCNxFAST8
16454 +#if !defined SCNxFAST8
16455 # if UINT_FAST8_MAX > UINT32_MAX
16456 # define SCNxFAST8 SCNx64
16457 # elif UINT_FAST8_MAX == 0xffff
16458 @@ -861,8 +734,7 @@
16459 # define SCNxFAST8 "x"
16460 # endif
16461 #endif
16462 -#if !defined SCNdFAST16 || @PRI_MACROS_BROKEN@
16463 -# undef SCNdFAST16
16464 +#if !defined SCNdFAST16
16465 # if INT_FAST16_MAX > INT32_MAX
16466 # define SCNdFAST16 SCNd64
16467 # elif INT_FAST16_MAX == 0x7fff
16468 @@ -871,8 +743,7 @@
16469 # define SCNdFAST16 "d"
16470 # endif
16471 #endif
16472 -#if !defined SCNiFAST16 || @PRI_MACROS_BROKEN@
16473 -# undef SCNiFAST16
16474 +#if !defined SCNiFAST16
16475 # if INT_FAST16_MAX > INT32_MAX
16476 # define SCNiFAST16 SCNi64
16477 # elif INT_FAST16_MAX == 0x7fff
16478 @@ -881,8 +752,7 @@
16479 # define SCNiFAST16 "i"
16480 # endif
16481 #endif
16482 -#if !defined SCNoFAST16 || @PRI_MACROS_BROKEN@
16483 -# undef SCNoFAST16
16484 +#if !defined SCNoFAST16
16485 # if UINT_FAST16_MAX > UINT32_MAX
16486 # define SCNoFAST16 SCNo64
16487 # elif UINT_FAST16_MAX == 0xffff
16488 @@ -891,8 +761,7 @@
16489 # define SCNoFAST16 "o"
16490 # endif
16491 #endif
16492 -#if !defined SCNuFAST16 || @PRI_MACROS_BROKEN@
16493 -# undef SCNuFAST16
16494 +#if !defined SCNuFAST16
16495 # if UINT_FAST16_MAX > UINT32_MAX
16496 # define SCNuFAST16 SCNu64
16497 # elif UINT_FAST16_MAX == 0xffff
16498 @@ -901,8 +770,7 @@
16499 # define SCNuFAST16 "u"
16500 # endif
16501 #endif
16502 -#if !defined SCNxFAST16 || @PRI_MACROS_BROKEN@
16503 -# undef SCNxFAST16
16504 +#if !defined SCNxFAST16
16505 # if UINT_FAST16_MAX > UINT32_MAX
16506 # define SCNxFAST16 SCNx64
16507 # elif UINT_FAST16_MAX == 0xffff
16508 @@ -911,40 +779,35 @@
16509 # define SCNxFAST16 "x"
16510 # endif
16511 #endif
16512 -#if !defined SCNdFAST32 || @PRI_MACROS_BROKEN@
16513 -# undef SCNdFAST32
16514 +#if !defined SCNdFAST32
16515 # if INT_FAST32_MAX > INT32_MAX
16516 # define SCNdFAST32 SCNd64
16517 # else
16518 # define SCNdFAST32 "d"
16519 # endif
16520 #endif
16521 -#if !defined SCNiFAST32 || @PRI_MACROS_BROKEN@
16522 -# undef SCNiFAST32
16523 +#if !defined SCNiFAST32
16524 # if INT_FAST32_MAX > INT32_MAX
16525 # define SCNiFAST32 SCNi64
16526 # else
16527 # define SCNiFAST32 "i"
16528 # endif
16529 #endif
16530 -#if !defined SCNoFAST32 || @PRI_MACROS_BROKEN@
16531 -# undef SCNoFAST32
16532 +#if !defined SCNoFAST32
16533 # if UINT_FAST32_MAX > UINT32_MAX
16534 # define SCNoFAST32 SCNo64
16535 # else
16536 # define SCNoFAST32 "o"
16537 # endif
16538 #endif
16539 -#if !defined SCNuFAST32 || @PRI_MACROS_BROKEN@
16540 -# undef SCNuFAST32
16541 +#if !defined SCNuFAST32
16542 # if UINT_FAST32_MAX > UINT32_MAX
16543 # define SCNuFAST32 SCNu64
16544 # else
16545 # define SCNuFAST32 "u"
16546 # endif
16547 #endif
16548 -#if !defined SCNxFAST32 || @PRI_MACROS_BROKEN@
16549 -# undef SCNxFAST32
16550 +#if !defined SCNxFAST32
16551 # if UINT_FAST32_MAX > UINT32_MAX
16552 # define SCNxFAST32 SCNx64
16553 # else
16554 @@ -952,64 +815,54 @@
16555 # endif
16556 #endif
16557 #ifdef INT64_MAX
16558 -# if !defined SCNdFAST64 || @PRI_MACROS_BROKEN@
16559 -# undef SCNdFAST64
16560 +# if !defined SCNdFAST64
16561 # define SCNdFAST64 SCNd64
16562 # endif
16563 -# if !defined SCNiFAST64 || @PRI_MACROS_BROKEN@
16564 -# undef SCNiFAST64
16565 +# if !defined SCNiFAST64
16566 # define SCNiFAST64 SCNi64
16567 # endif
16568 #endif
16569 #ifdef UINT64_MAX
16570 -# if !defined SCNoFAST64 || @PRI_MACROS_BROKEN@
16571 -# undef SCNoFAST64
16572 +# if !defined SCNoFAST64
16573 # define SCNoFAST64 SCNo64
16574 # endif
16575 -# if !defined SCNuFAST64 || @PRI_MACROS_BROKEN@
16576 -# undef SCNuFAST64
16577 +# if !defined SCNuFAST64
16578 # define SCNuFAST64 SCNu64
16579 # endif
16580 -# if !defined SCNxFAST64 || @PRI_MACROS_BROKEN@
16581 -# undef SCNxFAST64
16582 +# if !defined SCNxFAST64
16583 # define SCNxFAST64 SCNx64
16584 # endif
16585 #endif
16586
16587 -#if !defined SCNdMAX || @PRI_MACROS_BROKEN@
16588 -# undef SCNdMAX
16589 +#if !defined SCNdMAX
16590 # if @INT32_MAX_LT_INTMAX_MAX@
16591 # define SCNdMAX SCNd64
16592 # else
16593 # define SCNdMAX "ld"
16594 # endif
16595 #endif
16596 -#if !defined SCNiMAX || @PRI_MACROS_BROKEN@
16597 -# undef SCNiMAX
16598 +#if !defined SCNiMAX
16599 # if @INT32_MAX_LT_INTMAX_MAX@
16600 # define SCNiMAX SCNi64
16601 # else
16602 # define SCNiMAX "li"
16603 # endif
16604 #endif
16605 -#if !defined SCNoMAX || @PRI_MACROS_BROKEN@
16606 -# undef SCNoMAX
16607 +#if !defined SCNoMAX
16608 # if @UINT32_MAX_LT_UINTMAX_MAX@
16609 # define SCNoMAX SCNo64
16610 # else
16611 # define SCNoMAX "lo"
16612 # endif
16613 #endif
16614 -#if !defined SCNuMAX || @PRI_MACROS_BROKEN@
16615 -# undef SCNuMAX
16616 +#if !defined SCNuMAX
16617 # if @UINT32_MAX_LT_UINTMAX_MAX@
16618 # define SCNuMAX SCNu64
16619 # else
16620 # define SCNuMAX "lu"
16621 # endif
16622 #endif
16623 -#if !defined SCNxMAX || @PRI_MACROS_BROKEN@
16624 -# undef SCNxMAX
16625 +#if !defined SCNxMAX
16626 # if @UINT32_MAX_LT_UINTMAX_MAX@
16627 # define SCNxMAX SCNx64
16628 # else
16629 @@ -1017,32 +870,27 @@
16630 # endif
16631 #endif
16632
16633 -#if !defined SCNdPTR || @PRI_MACROS_BROKEN@
16634 -# undef SCNdPTR
16635 +#if !defined SCNdPTR
16636 # ifdef INTPTR_MAX
16637 # define SCNdPTR @PRIPTR_PREFIX@ "d"
16638 # endif
16639 #endif
16640 -#if !defined SCNiPTR || @PRI_MACROS_BROKEN@
16641 -# undef SCNiPTR
16642 +#if !defined SCNiPTR
16643 # ifdef INTPTR_MAX
16644 # define SCNiPTR @PRIPTR_PREFIX@ "i"
16645 # endif
16646 #endif
16647 -#if !defined SCNoPTR || @PRI_MACROS_BROKEN@
16648 -# undef SCNoPTR
16649 +#if !defined SCNoPTR
16650 # ifdef UINTPTR_MAX
16651 # define SCNoPTR @PRIPTR_PREFIX@ "o"
16652 # endif
16653 #endif
16654 -#if !defined SCNuPTR || @PRI_MACROS_BROKEN@
16655 -# undef SCNuPTR
16656 +#if !defined SCNuPTR
16657 # ifdef UINTPTR_MAX
16658 # define SCNuPTR @PRIPTR_PREFIX@ "u"
16659 # endif
16660 #endif
16661 -#if !defined SCNxPTR || @PRI_MACROS_BROKEN@
16662 -# undef SCNxPTR
16663 +#if !defined SCNxPTR
16664 # ifdef UINTPTR_MAX
16665 # define SCNxPTR @PRIPTR_PREFIX@ "x"
16666 # endif
16667 @@ -1091,15 +939,19 @@ _GL_WARN_ON_USE (imaxdiv, "imaxdiv is unportable - "
16668 # define strtoimax rpl_strtoimax
16669 # endif
16670 _GL_FUNCDECL_RPL (strtoimax, intmax_t,
16671 - (const char *, char **, int) _GL_ARG_NONNULL ((1)));
16672 -_GL_CXXALIAS_RPL (strtoimax, intmax_t, (const char *, char **, int));
16673 + (const char *restrict, char **restrict, int)
16674 + _GL_ARG_NONNULL ((1)));
16675 +_GL_CXXALIAS_RPL (strtoimax, intmax_t,
16676 + (const char *restrict, char **restrict, int));
16677 # else
16678 # if !@HAVE_DECL_STRTOIMAX@
16679 # undef strtoimax
16680 _GL_FUNCDECL_SYS (strtoimax, intmax_t,
16681 - (const char *, char **, int) _GL_ARG_NONNULL ((1)));
16682 + (const char *restrict, char **restrict, int)
16683 + _GL_ARG_NONNULL ((1)));
16684 # endif
16685 -_GL_CXXALIAS_SYS (strtoimax, intmax_t, (const char *, char **, int));
16686 +_GL_CXXALIAS_SYS (strtoimax, intmax_t,
16687 + (const char *restrict, char **restrict, int));
16688 # endif
16689 _GL_CXXALIASWARN (strtoimax);
16690 #elif defined GNULIB_POSIXCHECK
16691 @@ -1117,15 +969,19 @@ _GL_WARN_ON_USE (strtoimax, "strtoimax is unportable - "
16692 # define strtoumax rpl_strtoumax
16693 # endif
16694 _GL_FUNCDECL_RPL (strtoumax, uintmax_t,
16695 - (const char *, char **, int) _GL_ARG_NONNULL ((1)));
16696 -_GL_CXXALIAS_RPL (strtoumax, uintmax_t, (const char *, char **, int));
16697 + (const char *restrict, char **restrict, int)
16698 + _GL_ARG_NONNULL ((1)));
16699 +_GL_CXXALIAS_RPL (strtoumax, uintmax_t,
16700 + (const char *restrict, char **restrict, int));
16701 # else
16702 # if !@HAVE_DECL_STRTOUMAX@
16703 # undef strtoumax
16704 _GL_FUNCDECL_SYS (strtoumax, uintmax_t,
16705 - (const char *, char **, int) _GL_ARG_NONNULL ((1)));
16706 + (const char *restrict, char **restrict, int)
16707 + _GL_ARG_NONNULL ((1)));
16708 # endif
16709 -_GL_CXXALIAS_SYS (strtoumax, uintmax_t, (const char *, char **, int));
16710 +_GL_CXXALIAS_SYS (strtoumax, uintmax_t,
16711 + (const char *restrict, char **restrict, int));
16712 # endif
16713 _GL_CXXALIASWARN (strtoumax);
16714 #elif defined GNULIB_POSIXCHECK
16715
16716 diff --git a/autotools/gnulib/isnan.c b/autotools/gnulib/isnan.c
16717 index c399c18..bd119f6 100644
16718 --- a/autotools/gnulib/isnan.c
16719 +++ b/autotools/gnulib/isnan.c
16720 @@ -1,17 +1,17 @@
16721 /* Test for NaN that does not need libm.
16722 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
16723 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
16724
16725 - This program is free software: you can redistribute it and/or modify
16726 - it under the terms of the GNU General Public License as published by
16727 - the Free Software Foundation; either version 3 of the License, or
16728 - (at your option) any later version.
16729 + This file is free software: you can redistribute it and/or modify
16730 + it under the terms of the GNU Lesser General Public License as
16731 + published by the Free Software Foundation; either version 2.1 of the
16732 + License, or (at your option) any later version.
16733
16734 - This program is distributed in the hope that it will be useful,
16735 + This file is distributed in the hope that it will be useful,
16736 but WITHOUT ANY WARRANTY; without even the implied warranty of
16737 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16738 - GNU General Public License for more details.
16739 + GNU Lesser General Public License for more details.
16740
16741 - You should have received a copy of the GNU General Public License
16742 + You should have received a copy of the GNU Lesser General Public License
16743 along with this program. If not, see <https://www.gnu.org/licenses/>. */
16744
16745 /* Written by Bruno Haible <bruno@×××××.org>, 2007. */
16746
16747 diff --git a/autotools/gnulib/isnand-nolibm.h b/autotools/gnulib/isnand-nolibm.h
16748 index 174c61e..aad1391 100644
16749 --- a/autotools/gnulib/isnand-nolibm.h
16750 +++ b/autotools/gnulib/isnand-nolibm.h
16751 @@ -1,24 +1,24 @@
16752 /* Test for NaN that does not need libm.
16753 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
16754 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
16755
16756 - This program is free software: you can redistribute it and/or modify
16757 - it under the terms of the GNU General Public License as published by
16758 - the Free Software Foundation; either version 3 of the License, or
16759 - (at your option) any later version.
16760 + This file is free software: you can redistribute it and/or modify
16761 + it under the terms of the GNU Lesser General Public License as
16762 + published by the Free Software Foundation; either version 2.1 of the
16763 + License, or (at your option) any later version.
16764
16765 - This program is distributed in the hope that it will be useful,
16766 + This file is distributed in the hope that it will be useful,
16767 but WITHOUT ANY WARRANTY; without even the implied warranty of
16768 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16769 - GNU General Public License for more details.
16770 + GNU Lesser General Public License for more details.
16771
16772 - You should have received a copy of the GNU General Public License
16773 + You should have received a copy of the GNU Lesser General Public License
16774 along with this program. If not, see <https://www.gnu.org/licenses/>. */
16775
16776 #if HAVE_ISNAND_IN_LIBC
16777 /* Get declaration of isnan macro. */
16778 # include <math.h>
16779 -# if __GNUC__ >= 4
16780 - /* GCC 4.0 and newer provides three built-ins for isnan. */
16781 +# if (__GNUC__ >= 4) || (__clang_major__ >= 4)
16782 + /* GCC >= 4.0 and clang provide a type-generic built-in for isnan. */
16783 # undef isnand
16784 # define isnand(x) __builtin_isnan ((double)(x))
16785 # else
16786
16787 diff --git a/autotools/gnulib/isnand.c b/autotools/gnulib/isnand.c
16788 index c3cd315..26501b5 100644
16789 --- a/autotools/gnulib/isnand.c
16790 +++ b/autotools/gnulib/isnand.c
16791 @@ -1,17 +1,17 @@
16792 /* Test for NaN that does not need libm.
16793 - Copyright (C) 2008-2019 Free Software Foundation, Inc.
16794 + Copyright (C) 2008-2022 Free Software Foundation, Inc.
16795
16796 - This program is free software: you can redistribute it and/or modify
16797 - it under the terms of the GNU General Public License as published by
16798 - the Free Software Foundation; either version 3 of the License, or
16799 - (at your option) any later version.
16800 + This file is free software: you can redistribute it and/or modify
16801 + it under the terms of the GNU Lesser General Public License as
16802 + published by the Free Software Foundation; either version 2.1 of the
16803 + License, or (at your option) any later version.
16804
16805 - This program is distributed in the hope that it will be useful,
16806 + This file is distributed in the hope that it will be useful,
16807 but WITHOUT ANY WARRANTY; without even the implied warranty of
16808 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16809 - GNU General Public License for more details.
16810 + GNU Lesser General Public License for more details.
16811
16812 - You should have received a copy of the GNU General Public License
16813 + You should have received a copy of the GNU Lesser General Public License
16814 along with this program. If not, see <https://www.gnu.org/licenses/>. */
16815
16816 /* Written by Bruno Haible <bruno@×××××.org>, 2008. */
16817
16818 diff --git a/autotools/gnulib/isnanf-nolibm.h b/autotools/gnulib/isnanf-nolibm.h
16819 index 73937a2..4ce81d6 100644
16820 --- a/autotools/gnulib/isnanf-nolibm.h
16821 +++ b/autotools/gnulib/isnanf-nolibm.h
16822 @@ -1,26 +1,27 @@
16823 /* Test for NaN that does not need libm.
16824 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
16825 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
16826
16827 - This program is free software: you can redistribute it and/or modify
16828 - it under the terms of the GNU General Public License as published by
16829 - the Free Software Foundation; either version 3 of the License, or
16830 - (at your option) any later version.
16831 + This file is free software: you can redistribute it and/or modify
16832 + it under the terms of the GNU Lesser General Public License as
16833 + published by the Free Software Foundation; either version 2.1 of the
16834 + License, or (at your option) any later version.
16835
16836 - This program is distributed in the hope that it will be useful,
16837 + This file is distributed in the hope that it will be useful,
16838 but WITHOUT ANY WARRANTY; without even the implied warranty of
16839 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16840 - GNU General Public License for more details.
16841 + GNU Lesser General Public License for more details.
16842
16843 - You should have received a copy of the GNU General Public License
16844 + You should have received a copy of the GNU Lesser General Public License
16845 along with this program. If not, see <https://www.gnu.org/licenses/>. */
16846
16847 #if HAVE_ISNANF_IN_LIBC
16848 /* Get declaration of isnan macro or (older) isnanf function. */
16849 # include <math.h>
16850 -# if __GNUC__ >= 4
16851 - /* GCC 4.0 and newer provides three built-ins for isnan. */
16852 +# if (__GNUC__ >= 4) || (__clang_major__ >= 4)
16853 + /* GCC >= 4.0 and clang provide a type-generic built-in for isnan.
16854 + GCC >= 4.0 also provides __builtin_isnanf, but clang doesn't. */
16855 # undef isnanf
16856 -# define isnanf(x) __builtin_isnanf ((float)(x))
16857 +# define isnanf(x) __builtin_isnan ((float)(x))
16858 # elif defined isnan
16859 # undef isnanf
16860 # define isnanf(x) isnan ((float)(x))
16861
16862 diff --git a/autotools/gnulib/isnanf.c b/autotools/gnulib/isnanf.c
16863 index 8bc58eb..e8b721a 100644
16864 --- a/autotools/gnulib/isnanf.c
16865 +++ b/autotools/gnulib/isnanf.c
16866 @@ -1,17 +1,17 @@
16867 /* Test for NaN that does not need libm.
16868 - Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
16869 + Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
16870
16871 - This program is free software: you can redistribute it and/or modify
16872 - it under the terms of the GNU General Public License as published by
16873 - the Free Software Foundation; either version 3 of the License, or
16874 - (at your option) any later version.
16875 + This file is free software: you can redistribute it and/or modify
16876 + it under the terms of the GNU Lesser General Public License as
16877 + published by the Free Software Foundation; either version 2.1 of the
16878 + License, or (at your option) any later version.
16879
16880 - This program is distributed in the hope that it will be useful,
16881 + This file is distributed in the hope that it will be useful,
16882 but WITHOUT ANY WARRANTY; without even the implied warranty of
16883 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16884 - GNU General Public License for more details.
16885 + GNU Lesser General Public License for more details.
16886
16887 - You should have received a copy of the GNU General Public License
16888 + You should have received a copy of the GNU Lesser General Public License
16889 along with this program. If not, see <https://www.gnu.org/licenses/>. */
16890
16891 /* Written by Bruno Haible <bruno@×××××.org>, 2007. */
16892
16893 diff --git a/autotools/gnulib/isnanl-nolibm.h b/autotools/gnulib/isnanl-nolibm.h
16894 index fdedf56..a4374e7 100644
16895 --- a/autotools/gnulib/isnanl-nolibm.h
16896 +++ b/autotools/gnulib/isnanl-nolibm.h
16897 @@ -1,26 +1,27 @@
16898 /* Test for NaN that does not need libm.
16899 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
16900 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
16901
16902 - This program is free software: you can redistribute it and/or modify
16903 - it under the terms of the GNU General Public License as published by
16904 - the Free Software Foundation; either version 3 of the License, or
16905 - (at your option) any later version.
16906 + This file is free software: you can redistribute it and/or modify
16907 + it under the terms of the GNU Lesser General Public License as
16908 + published by the Free Software Foundation; either version 2.1 of the
16909 + License, or (at your option) any later version.
16910
16911 - This program is distributed in the hope that it will be useful,
16912 + This file is distributed in the hope that it will be useful,
16913 but WITHOUT ANY WARRANTY; without even the implied warranty of
16914 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16915 - GNU General Public License for more details.
16916 + GNU Lesser General Public License for more details.
16917
16918 - You should have received a copy of the GNU General Public License
16919 + You should have received a copy of the GNU Lesser General Public License
16920 along with this program. If not, see <https://www.gnu.org/licenses/>. */
16921
16922 #if HAVE_ISNANL_IN_LIBC
16923 /* Get declaration of isnan macro or (older) isnanl function. */
16924 # include <math.h>
16925 -# if __GNUC__ >= 4
16926 - /* GCC 4.0 and newer provides three built-ins for isnan. */
16927 +# if (__GNUC__ >= 4) || (__clang_major__ >= 4)
16928 + /* GCC >= 4.0 and clang provide a type-generic built-in for isnan.
16929 + GCC >= 4.0 also provides __builtin_isnanl, but clang doesn't. */
16930 # undef isnanl
16931 -# define isnanl(x) __builtin_isnanl ((long double)(x))
16932 +# define isnanl(x) __builtin_isnan ((long double)(x))
16933 # elif defined isnan
16934 # undef isnanl
16935 # define isnanl(x) isnan ((long double)(x))
16936
16937 diff --git a/autotools/gnulib/isnanl.c b/autotools/gnulib/isnanl.c
16938 index 99afd29..2f71d6c 100644
16939 --- a/autotools/gnulib/isnanl.c
16940 +++ b/autotools/gnulib/isnanl.c
16941 @@ -1,17 +1,17 @@
16942 /* Test for NaN that does not need libm.
16943 - Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
16944 + Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
16945
16946 - This program is free software: you can redistribute it and/or modify
16947 - it under the terms of the GNU General Public License as published by
16948 - the Free Software Foundation; either version 3 of the License, or
16949 - (at your option) any later version.
16950 + This file is free software: you can redistribute it and/or modify
16951 + it under the terms of the GNU Lesser General Public License as
16952 + published by the Free Software Foundation; either version 2.1 of the
16953 + License, or (at your option) any later version.
16954
16955 - This program is distributed in the hope that it will be useful,
16956 + This file is distributed in the hope that it will be useful,
16957 but WITHOUT ANY WARRANTY; without even the implied warranty of
16958 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16959 - GNU General Public License for more details.
16960 + GNU Lesser General Public License for more details.
16961
16962 - You should have received a copy of the GNU General Public License
16963 + You should have received a copy of the GNU Lesser General Public License
16964 along with this program. If not, see <https://www.gnu.org/licenses/>. */
16965
16966 /* Written by Bruno Haible <bruno@×××××.org>, 2007. */
16967
16968 diff --git a/autotools/gnulib/itold.c b/autotools/gnulib/itold.c
16969 index bca01eb..fe4a384 100644
16970 --- a/autotools/gnulib/itold.c
16971 +++ b/autotools/gnulib/itold.c
16972 @@ -1,18 +1,18 @@
16973 /* Replacement for 'int' to 'long double' conversion routine.
16974 - Copyright (C) 2011-2019 Free Software Foundation, Inc.
16975 + Copyright (C) 2011-2022 Free Software Foundation, Inc.
16976 Written by Bruno Haible <bruno@×××××.org>, 2011.
16977
16978 - This program is free software: you can redistribute it and/or modify
16979 - it under the terms of the GNU General Public License as published by
16980 - the Free Software Foundation; either version 3 of the License, or
16981 - (at your option) any later version.
16982 + This file is free software: you can redistribute it and/or modify
16983 + it under the terms of the GNU Lesser General Public License as
16984 + published by the Free Software Foundation; either version 2.1 of the
16985 + License, or (at your option) any later version.
16986
16987 - This program is distributed in the hope that it will be useful,
16988 + This file is distributed in the hope that it will be useful,
16989 but WITHOUT ANY WARRANTY; without even the implied warranty of
16990 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16991 - GNU General Public License for more details.
16992 + GNU Lesser General Public License for more details.
16993
16994 - You should have received a copy of the GNU General Public License
16995 + You should have received a copy of the GNU Lesser General Public License
16996 along with this program. If not, see <https://www.gnu.org/licenses/>. */
16997
16998 #include <config.h>
16999
17000 diff --git a/autotools/gnulib/limits.in.h b/autotools/gnulib/limits.in.h
17001 index 39750b3..b77bf75 100644
17002 --- a/autotools/gnulib/limits.in.h
17003 +++ b/autotools/gnulib/limits.in.h
17004 @@ -1,30 +1,46 @@
17005 /* A GNU-like <limits.h>.
17006
17007 - Copyright 2016-2019 Free Software Foundation, Inc.
17008 + Copyright 2016-2022 Free Software Foundation, Inc.
17009
17010 - This program is free software; you can redistribute it and/or
17011 - modify it under the terms of the GNU General Public License
17012 - as published by the Free Software Foundation; either version 3, or
17013 - (at your option) any later version.
17014 + This file is free software: you can redistribute it and/or modify
17015 + it under the terms of the GNU Lesser General Public License as
17016 + published by the Free Software Foundation; either version 2.1 of the
17017 + License, or (at your option) any later version.
17018
17019 - This program is distributed in the hope that it will be useful,
17020 + This file is distributed in the hope that it will be useful,
17021 but WITHOUT ANY WARRANTY; without even the implied warranty of
17022 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17023 - GNU General Public License for more details.
17024 + GNU Lesser General Public License for more details.
17025
17026 - You should have received a copy of the GNU General Public License
17027 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
17028 -
17029 -#ifndef _@GUARD_PREFIX@_LIMITS_H
17030 + You should have received a copy of the GNU Lesser General Public License
17031 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
17032
17033 #if __GNUC__ >= 3
17034 @PRAGMA_SYSTEM_HEADER@
17035 #endif
17036 @PRAGMA_COLUMNS@
17037
17038 -/* The include_next requires a split double-inclusion guard. */
17039 +#if defined _GL_ALREADY_INCLUDING_LIMITS_H
17040 +/* Special invocation convention:
17041 + On Haiku/x86_64, we have a sequence of nested includes
17042 + <limits.h> -> <syslimits.h> -> <limits.h>.
17043 + In this situation, LONG_MAX and INT_MAX are not yet defined,
17044 + therefore we should not attempt to define LONG_BIT. */
17045 +
17046 #@INCLUDE_NEXT@ @NEXT_LIMITS_H@
17047
17048 +#else
17049 +/* Normal invocation convention. */
17050 +
17051 +#ifndef _@GUARD_PREFIX@_LIMITS_H
17052 +
17053 +# define _GL_ALREADY_INCLUDING_LIMITS_H
17054 +
17055 +/* The include_next requires a split double-inclusion guard. */
17056 +# @INCLUDE_NEXT@ @NEXT_LIMITS_H@
17057 +
17058 +# undef _GL_ALREADY_INCLUDING_LIMITS_H
17059 +
17060 #ifndef _@GUARD_PREFIX@_LIMITS_H
17061 #define _@GUARD_PREFIX@_LIMITS_H
17062
17063 @@ -83,10 +99,11 @@
17064 # endif
17065 #endif
17066
17067 -/* Macros specified by ISO/IEC TS 18661-1:2014. */
17068 +/* Macros specified by C2x and by ISO/IEC TS 18661-1:2014. */
17069
17070 #if (! defined ULLONG_WIDTH \
17071 - && (defined _GNU_SOURCE || defined __STDC_WANT_IEC_60559_BFP_EXT__))
17072 + && (defined _GNU_SOURCE || defined __STDC_WANT_IEC_60559_BFP_EXT__ \
17073 + || (defined __STDC_VERSION__ && 201710 < __STDC_VERSION__)))
17074 # define CHAR_WIDTH _GL_INTEGER_WIDTH (CHAR_MIN, CHAR_MAX)
17075 # define SCHAR_WIDTH _GL_INTEGER_WIDTH (SCHAR_MIN, SCHAR_MAX)
17076 # define UCHAR_WIDTH _GL_INTEGER_WIDTH (0, UCHAR_MAX)
17077 @@ -98,7 +115,17 @@
17078 # define ULONG_WIDTH _GL_INTEGER_WIDTH (0, ULONG_MAX)
17079 # define LLONG_WIDTH _GL_INTEGER_WIDTH (LLONG_MIN, LLONG_MAX)
17080 # define ULLONG_WIDTH _GL_INTEGER_WIDTH (0, ULLONG_MAX)
17081 -#endif /* !ULLONG_WIDTH && (_GNU_SOURCE || __STDC_WANT_IEC_60559_BFP_EXT__) */
17082 +#endif
17083 +
17084 +/* Macros specified by C2x. */
17085 +
17086 +#if (! defined BOOL_WIDTH \
17087 + && (defined _GNU_SOURCE \
17088 + || (defined __STDC_VERSION__ && 201710 < __STDC_VERSION__)))
17089 +# define BOOL_MAX 1
17090 +# define BOOL_WIDTH 1
17091 +#endif
17092
17093 #endif /* _@GUARD_PREFIX@_LIMITS_H */
17094 #endif /* _@GUARD_PREFIX@_LIMITS_H */
17095 +#endif
17096
17097 diff --git a/autotools/gnulib/localtime-buffer.c b/autotools/gnulib/localtime-buffer.c
17098 deleted file mode 100644
17099 index b65ea45..0000000
17100 --- a/autotools/gnulib/localtime-buffer.c
17101 +++ /dev/null
17102 @@ -1,60 +0,0 @@
17103 -/* Provide access to the last buffer returned by localtime() or gmtime().
17104 -
17105 - Copyright (C) 2001-2003, 2005-2007, 2009-2019 Free Software Foundation, Inc.
17106 -
17107 - This program is free software; you can redistribute it and/or modify
17108 - it under the terms of the GNU General Public License as published by
17109 - the Free Software Foundation; either version 3, or (at your option)
17110 - any later version.
17111 -
17112 - This program is distributed in the hope that it will be useful,
17113 - but WITHOUT ANY WARRANTY; without even the implied warranty of
17114 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17115 - GNU General Public License for more details.
17116 -
17117 - You should have received a copy of the GNU General Public License
17118 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
17119 -
17120 -/* written by Jim Meyering */
17121 -
17122 -#include <config.h>
17123 -
17124 -/* Specification. */
17125 -#include "localtime-buffer.h"
17126 -
17127 -#if GETTIMEOFDAY_CLOBBERS_LOCALTIME || TZSET_CLOBBERS_LOCALTIME
17128 -
17129 -static struct tm tm_zero_buffer;
17130 -struct tm *localtime_buffer_addr = &tm_zero_buffer;
17131 -
17132 -/* This is a wrapper for localtime.
17133 -
17134 - On the first call, record the address of the static buffer that
17135 - localtime uses for its result. */
17136 -
17137 -struct tm *
17138 -rpl_localtime (time_t const *timep)
17139 -#undef localtime
17140 -{
17141 - struct tm *tm = localtime (timep);
17142 -
17143 - if (localtime_buffer_addr == &tm_zero_buffer)
17144 - localtime_buffer_addr = tm;
17145 -
17146 - return tm;
17147 -}
17148 -
17149 -/* Same as above, since gmtime and localtime use the same buffer. */
17150 -struct tm *
17151 -rpl_gmtime (time_t const *timep)
17152 -#undef gmtime
17153 -{
17154 - struct tm *tm = gmtime (timep);
17155 -
17156 - if (localtime_buffer_addr == &tm_zero_buffer)
17157 - localtime_buffer_addr = tm;
17158 -
17159 - return tm;
17160 -}
17161 -
17162 -#endif
17163
17164 diff --git a/autotools/gnulib/localtime-buffer.h b/autotools/gnulib/localtime-buffer.h
17165 deleted file mode 100644
17166 index 031111a..0000000
17167 --- a/autotools/gnulib/localtime-buffer.h
17168 +++ /dev/null
17169 @@ -1,27 +0,0 @@
17170 -/* Provide access to the last buffer returned by localtime() or gmtime().
17171 -
17172 - Copyright (C) 2001-2003, 2005-2007, 2009-2019 Free Software Foundation, Inc.
17173 -
17174 - This program is free software; you can redistribute it and/or modify
17175 - it under the terms of the GNU General Public License as published by
17176 - the Free Software Foundation; either version 3, or (at your option)
17177 - any later version.
17178 -
17179 - This program is distributed in the hope that it will be useful,
17180 - but WITHOUT ANY WARRANTY; without even the implied warranty of
17181 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17182 - GNU General Public License for more details.
17183 -
17184 - You should have received a copy of the GNU General Public License
17185 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
17186 -
17187 -/* written by Jim Meyering */
17188 -
17189 -#include <time.h>
17190 -
17191 -#if GETTIMEOFDAY_CLOBBERS_LOCALTIME || TZSET_CLOBBERS_LOCALTIME
17192 -
17193 -/* The address of the last buffer returned by localtime() or gmtime(). */
17194 -extern struct tm *localtime_buffer_addr;
17195 -
17196 -#endif
17197
17198 diff --git a/autotools/gnulib/lstat.c b/autotools/gnulib/lstat.c
17199 index a3e40d8..472bfbc 100644
17200 --- a/autotools/gnulib/lstat.c
17201 +++ b/autotools/gnulib/lstat.c
17202 @@ -1,18 +1,18 @@
17203 /* Work around a bug of lstat on some systems
17204
17205 - Copyright (C) 1997-2006, 2008-2019 Free Software Foundation, Inc.
17206 + Copyright (C) 1997-2006, 2008-2022 Free Software Foundation, Inc.
17207
17208 - This program is free software: you can redistribute it and/or modify
17209 - it under the terms of the GNU General Public License as published by
17210 - the Free Software Foundation; either version 3 of the License, or
17211 - (at your option) any later version.
17212 + This file is free software: you can redistribute it and/or modify
17213 + it under the terms of the GNU Lesser General Public License as
17214 + published by the Free Software Foundation; either version 2.1 of the
17215 + License, or (at your option) any later version.
17216
17217 - This program is distributed in the hope that it will be useful,
17218 + This file is distributed in the hope that it will be useful,
17219 but WITHOUT ANY WARRANTY; without even the implied warranty of
17220 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17221 - GNU General Public License for more details.
17222 + GNU Lesser General Public License for more details.
17223
17224 - You should have received a copy of the GNU General Public License
17225 + You should have received a copy of the GNU Lesser General Public License
17226 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17227
17228 /* written by Jim Meyering */
17229
17230 diff --git a/autotools/gnulib/malloc.c b/autotools/gnulib/malloc.c
17231 index 76e6ff7..f334dd6 100644
17232 --- a/autotools/gnulib/malloc.c
17233 +++ b/autotools/gnulib/malloc.c
17234 @@ -1,51 +1,46 @@
17235 /* malloc() function that is glibc compatible.
17236
17237 - Copyright (C) 1997-1998, 2006-2007, 2009-2019 Free Software Foundation, Inc.
17238 + Copyright (C) 1997-1998, 2006-2007, 2009-2022 Free Software Foundation, Inc.
17239
17240 - This program is free software; you can redistribute it and/or modify
17241 - it under the terms of the GNU General Public License as published by
17242 - the Free Software Foundation; either version 3, or (at your option)
17243 - any later version.
17244 + This file is free software: you can redistribute it and/or modify
17245 + it under the terms of the GNU Lesser General Public License as
17246 + published by the Free Software Foundation; either version 2.1 of the
17247 + License, or (at your option) any later version.
17248
17249 - This program is distributed in the hope that it will be useful,
17250 + This file is distributed in the hope that it will be useful,
17251 but WITHOUT ANY WARRANTY; without even the implied warranty of
17252 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17253 - GNU General Public License for more details.
17254 + GNU Lesser General Public License for more details.
17255
17256 - You should have received a copy of the GNU General Public License
17257 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
17258 + You should have received a copy of the GNU Lesser General Public License
17259 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
17260
17261 /* written by Jim Meyering and Bruno Haible */
17262
17263 #define _GL_USE_STDLIB_ALLOC 1
17264 #include <config.h>
17265 -/* Only the AC_FUNC_MALLOC macro defines 'malloc' already in config.h. */
17266 -#ifdef malloc
17267 -# define NEED_MALLOC_GNU 1
17268 -# undef malloc
17269 -/* Whereas the gnulib module 'malloc-gnu' defines HAVE_MALLOC_GNU. */
17270 -#elif GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU
17271 -# define NEED_MALLOC_GNU 1
17272 -#endif
17273
17274 #include <stdlib.h>
17275
17276 #include <errno.h>
17277
17278 -/* Allocate an N-byte block of memory from the heap.
17279 - If N is zero, allocate a 1-byte block. */
17280 +#include "xalloc-oversized.h"
17281 +
17282 +/* Allocate an N-byte block of memory from the heap, even if N is 0. */
17283
17284 void *
17285 rpl_malloc (size_t n)
17286 {
17287 - void *result;
17288 -
17289 -#if NEED_MALLOC_GNU
17290 if (n == 0)
17291 n = 1;
17292 -#endif
17293
17294 - result = malloc (n);
17295 + if (xalloc_oversized (n, 1))
17296 + {
17297 + errno = ENOMEM;
17298 + return NULL;
17299 + }
17300 +
17301 + void *result = malloc (n);
17302
17303 #if !HAVE_MALLOC_POSIX
17304 if (result == NULL)
17305
17306 diff --git a/autotools/gnulib/malloc/.dirstamp b/autotools/gnulib/malloc/.dirstamp
17307 new file mode 100644
17308 index 0000000..e69de29
17309
17310 diff --git a/autotools/gnulib/malloc/scratch_buffer.gl.h b/autotools/gnulib/malloc/scratch_buffer.gl.h
17311 new file mode 100644
17312 index 0000000..3de567c
17313 --- /dev/null
17314 +++ b/autotools/gnulib/malloc/scratch_buffer.gl.h
17315 @@ -0,0 +1,148 @@
17316 +/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
17317 +/* Variable-sized buffer with on-stack default allocation.
17318 + Copyright (C) 2015-2022 Free Software Foundation, Inc.
17319 + This file is part of the GNU C Library.
17320 +
17321 + The GNU C Library is free software; you can redistribute it and/or
17322 + modify it under the terms of the GNU Lesser General Public
17323 + License as published by the Free Software Foundation; either
17324 + version 2.1 of the License, or (at your option) any later version.
17325 +
17326 + The GNU C Library is distributed in the hope that it will be useful,
17327 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17328 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17329 + Lesser General Public License for more details.
17330 +
17331 + You should have received a copy of the GNU Lesser General Public
17332 + License along with the GNU C Library; if not, see
17333 + <https://www.gnu.org/licenses/>. */
17334 +
17335 +#ifndef _SCRATCH_BUFFER_H
17336 +#define _SCRATCH_BUFFER_H
17337 +
17338 +/* Scratch buffers with a default stack allocation and fallback to
17339 + heap allocation. It is expected that this function is used in this
17340 + way:
17341 +
17342 + struct scratch_buffer tmpbuf;
17343 + scratch_buffer_init (&tmpbuf);
17344 +
17345 + while (!function_that_uses_buffer (tmpbuf.data, tmpbuf.length))
17346 + if (!scratch_buffer_grow (&tmpbuf))
17347 + return -1;
17348 +
17349 + scratch_buffer_free (&tmpbuf);
17350 + return 0;
17351 +
17352 + The allocation functions (scratch_buffer_grow,
17353 + scratch_buffer_grow_preserve, scratch_buffer_set_array_size) make
17354 + sure that the heap allocation, if any, is freed, so that the code
17355 + above does not have a memory leak. The buffer still remains in a
17356 + state that can be deallocated using scratch_buffer_free, so a loop
17357 + like this is valid as well:
17358 +
17359 + struct scratch_buffer tmpbuf;
17360 + scratch_buffer_init (&tmpbuf);
17361 +
17362 + while (!function_that_uses_buffer (tmpbuf.data, tmpbuf.length))
17363 + if (!scratch_buffer_grow (&tmpbuf))
17364 + break;
17365 +
17366 + scratch_buffer_free (&tmpbuf);
17367 +
17368 + scratch_buffer_grow and scratch_buffer_grow_preserve are guaranteed
17369 + to grow the buffer by at least 512 bytes. This means that when
17370 + using the scratch buffer as a backing store for a non-character
17371 + array whose element size, in bytes, is 512 or smaller, the scratch
17372 + buffer only has to grow once to make room for at least one more
17373 + element.
17374 +*/
17375 +
17376 +#include <stdbool.h>
17377 +#include <stddef.h>
17378 +#include <stdlib.h>
17379 +
17380 +/* Scratch buffer. Must be initialized with scratch_buffer_init
17381 + before its use. */
17382 +struct scratch_buffer {
17383 + void *data; /* Pointer to the beginning of the scratch area. */
17384 + size_t length; /* Allocated space at the data pointer, in bytes. */
17385 + union { max_align_t __align; char __c[1024]; } __space;
17386 +};
17387 +
17388 +/* Initializes *BUFFER so that BUFFER->data points to BUFFER->__space
17389 + and BUFFER->length reflects the available space. */
17390 +static inline void
17391 +scratch_buffer_init (struct scratch_buffer *buffer)
17392 +{
17393 + buffer->data = buffer->__space.__c;
17394 + buffer->length = sizeof (buffer->__space);
17395 +}
17396 +
17397 +/* Deallocates *BUFFER (if it was heap-allocated). */
17398 +static inline void
17399 +scratch_buffer_free (struct scratch_buffer *buffer)
17400 +{
17401 + if (buffer->data != buffer->__space.__c)
17402 + free (buffer->data);
17403 +}
17404 +
17405 +/* Grow *BUFFER by some arbitrary amount. The buffer contents is NOT
17406 + preserved. Return true on success, false on allocation failure (in
17407 + which case the old buffer is freed). On success, the new buffer is
17408 + larger than the previous size. On failure, *BUFFER is deallocated,
17409 + but remains in a free-able state, and errno is set. */
17410 +bool __libc_scratch_buffer_grow (struct scratch_buffer *buffer);
17411 +
17412 +/* Alias for __libc_scratch_buffer_grow. */
17413 +static inline _GL_ATTRIBUTE_ALWAYS_INLINE bool
17414 +scratch_buffer_grow (struct scratch_buffer *buffer)
17415 +{
17416 + return _GL_LIKELY (__libc_scratch_buffer_grow (buffer));
17417 +}
17418 +
17419 +/* Like __libc_scratch_buffer_grow, but preserve the old buffer
17420 + contents on success, as a prefix of the new buffer. */
17421 +bool __libc_scratch_buffer_grow_preserve (struct scratch_buffer *buffer);
17422 +
17423 +/* Alias for __libc_scratch_buffer_grow_preserve. */
17424 +static inline _GL_ATTRIBUTE_ALWAYS_INLINE bool
17425 +scratch_buffer_grow_preserve (struct scratch_buffer *buffer)
17426 +{
17427 + return _GL_LIKELY (__libc_scratch_buffer_grow_preserve (buffer));
17428 +}
17429 +
17430 +/* Grow *BUFFER so that it can store at least NELEM elements of SIZE
17431 + bytes. The buffer contents are NOT preserved. Both NELEM and SIZE
17432 + can be zero. Return true on success, false on allocation failure
17433 + (in which case the old buffer is freed, but *BUFFER remains in a
17434 + free-able state, and errno is set). It is unspecified whether this
17435 + function can reduce the array size. */
17436 +bool __libc_scratch_buffer_set_array_size (struct scratch_buffer *buffer,
17437 + size_t nelem, size_t size);
17438 +
17439 +/* Alias for __libc_scratch_set_array_size. */
17440 +static inline _GL_ATTRIBUTE_ALWAYS_INLINE bool
17441 +scratch_buffer_set_array_size (struct scratch_buffer *buffer,
17442 + size_t nelem, size_t size)
17443 +{
17444 + return _GL_LIKELY (__libc_scratch_buffer_set_array_size
17445 + (buffer, nelem, size));
17446 +}
17447 +
17448 +/* Return a copy of *BUFFER's first SIZE bytes as a heap-allocated block,
17449 + deallocating *BUFFER if it was heap-allocated. SIZE must be at
17450 + most *BUFFER's size. Return NULL (setting errno) on memory
17451 + exhaustion. */
17452 +void *__libc_scratch_buffer_dupfree (struct scratch_buffer *buffer,
17453 + size_t size);
17454 +
17455 +/* Alias for __libc_scratch_dupfree. */
17456 +static inline _GL_ATTRIBUTE_ALWAYS_INLINE void *
17457 +scratch_buffer_dupfree (struct scratch_buffer *buffer, size_t size)
17458 +{
17459 + void *r = __libc_scratch_buffer_dupfree (buffer, size);
17460 + return _GL_LIKELY (r != NULL) ? r : NULL;
17461 +}
17462 +
17463 +#endif /* _SCRATCH_BUFFER_H */
17464
17465 diff --git a/autotools/gnulib/malloc/scratch_buffer.h b/autotools/gnulib/malloc/scratch_buffer.h
17466 new file mode 100644
17467 index 0000000..e4c5c8a
17468 --- /dev/null
17469 +++ b/autotools/gnulib/malloc/scratch_buffer.h
17470 @@ -0,0 +1,151 @@
17471 +/* Variable-sized buffer with on-stack default allocation.
17472 + Copyright (C) 2015-2022 Free Software Foundation, Inc.
17473 + This file is part of the GNU C Library.
17474 +
17475 + The GNU C Library is free software; you can redistribute it and/or
17476 + modify it under the terms of the GNU Lesser General Public
17477 + License as published by the Free Software Foundation; either
17478 + version 2.1 of the License, or (at your option) any later version.
17479 +
17480 + The GNU C Library is distributed in the hope that it will be useful,
17481 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17482 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17483 + Lesser General Public License for more details.
17484 +
17485 + You should have received a copy of the GNU Lesser General Public
17486 + License along with the GNU C Library; if not, see
17487 + <https://www.gnu.org/licenses/>. */
17488 +
17489 +#ifndef _SCRATCH_BUFFER_H
17490 +#define _SCRATCH_BUFFER_H
17491 +
17492 +/* Scratch buffers with a default stack allocation and fallback to
17493 + heap allocation. It is expected that this function is used in this
17494 + way:
17495 +
17496 + struct scratch_buffer tmpbuf;
17497 + scratch_buffer_init (&tmpbuf);
17498 +
17499 + while (!function_that_uses_buffer (tmpbuf.data, tmpbuf.length))
17500 + if (!scratch_buffer_grow (&tmpbuf))
17501 + return -1;
17502 +
17503 + scratch_buffer_free (&tmpbuf);
17504 + return 0;
17505 +
17506 + The allocation functions (scratch_buffer_grow,
17507 + scratch_buffer_grow_preserve, scratch_buffer_set_array_size) make
17508 + sure that the heap allocation, if any, is freed, so that the code
17509 + above does not have a memory leak. The buffer still remains in a
17510 + state that can be deallocated using scratch_buffer_free, so a loop
17511 + like this is valid as well:
17512 +
17513 + struct scratch_buffer tmpbuf;
17514 + scratch_buffer_init (&tmpbuf);
17515 +
17516 + while (!function_that_uses_buffer (tmpbuf.data, tmpbuf.length))
17517 + if (!scratch_buffer_grow (&tmpbuf))
17518 + break;
17519 +
17520 + scratch_buffer_free (&tmpbuf);
17521 +
17522 + scratch_buffer_grow and scratch_buffer_grow_preserve are guaranteed
17523 + to grow the buffer by at least 512 bytes. This means that when
17524 + using the scratch buffer as a backing store for a non-character
17525 + array whose element size, in bytes, is 512 or smaller, the scratch
17526 + buffer only has to grow once to make room for at least one more
17527 + element.
17528 +*/
17529 +
17530 +#include <stdbool.h>
17531 +#include <stddef.h>
17532 +#include <stdlib.h>
17533 +
17534 +/* Scratch buffer. Must be initialized with scratch_buffer_init
17535 + before its use. */
17536 +struct scratch_buffer {
17537 + void *data; /* Pointer to the beginning of the scratch area. */
17538 + size_t length; /* Allocated space at the data pointer, in bytes. */
17539 + union { max_align_t __align; char __c[1024]; } __space;
17540 +};
17541 +
17542 +/* Initializes *BUFFER so that BUFFER->data points to BUFFER->__space
17543 + and BUFFER->length reflects the available space. */
17544 +static inline void
17545 +scratch_buffer_init (struct scratch_buffer *buffer)
17546 +{
17547 + buffer->data = buffer->__space.__c;
17548 + buffer->length = sizeof (buffer->__space);
17549 +}
17550 +
17551 +/* Deallocates *BUFFER (if it was heap-allocated). */
17552 +static inline void
17553 +scratch_buffer_free (struct scratch_buffer *buffer)
17554 +{
17555 + if (buffer->data != buffer->__space.__c)
17556 + free (buffer->data);
17557 +}
17558 +
17559 +/* Grow *BUFFER by some arbitrary amount. The buffer contents is NOT
17560 + preserved. Return true on success, false on allocation failure (in
17561 + which case the old buffer is freed). On success, the new buffer is
17562 + larger than the previous size. On failure, *BUFFER is deallocated,
17563 + but remains in a free-able state, and errno is set. */
17564 +bool __libc_scratch_buffer_grow (struct scratch_buffer *buffer);
17565 +libc_hidden_proto (__libc_scratch_buffer_grow)
17566 +
17567 +/* Alias for __libc_scratch_buffer_grow. */
17568 +static __always_inline bool
17569 +scratch_buffer_grow (struct scratch_buffer *buffer)
17570 +{
17571 + return __glibc_likely (__libc_scratch_buffer_grow (buffer));
17572 +}
17573 +
17574 +/* Like __libc_scratch_buffer_grow, but preserve the old buffer
17575 + contents on success, as a prefix of the new buffer. */
17576 +bool __libc_scratch_buffer_grow_preserve (struct scratch_buffer *buffer);
17577 +libc_hidden_proto (__libc_scratch_buffer_grow_preserve)
17578 +
17579 +/* Alias for __libc_scratch_buffer_grow_preserve. */
17580 +static __always_inline bool
17581 +scratch_buffer_grow_preserve (struct scratch_buffer *buffer)
17582 +{
17583 + return __glibc_likely (__libc_scratch_buffer_grow_preserve (buffer));
17584 +}
17585 +
17586 +/* Grow *BUFFER so that it can store at least NELEM elements of SIZE
17587 + bytes. The buffer contents are NOT preserved. Both NELEM and SIZE
17588 + can be zero. Return true on success, false on allocation failure
17589 + (in which case the old buffer is freed, but *BUFFER remains in a
17590 + free-able state, and errno is set). It is unspecified whether this
17591 + function can reduce the array size. */
17592 +bool __libc_scratch_buffer_set_array_size (struct scratch_buffer *buffer,
17593 + size_t nelem, size_t size);
17594 +libc_hidden_proto (__libc_scratch_buffer_set_array_size)
17595 +
17596 +/* Alias for __libc_scratch_set_array_size. */
17597 +static __always_inline bool
17598 +scratch_buffer_set_array_size (struct scratch_buffer *buffer,
17599 + size_t nelem, size_t size)
17600 +{
17601 + return __glibc_likely (__libc_scratch_buffer_set_array_size
17602 + (buffer, nelem, size));
17603 +}
17604 +
17605 +/* Return a copy of *BUFFER's first SIZE bytes as a heap-allocated block,
17606 + deallocating *BUFFER if it was heap-allocated. SIZE must be at
17607 + most *BUFFER's size. Return NULL (setting errno) on memory
17608 + exhaustion. */
17609 +void *__libc_scratch_buffer_dupfree (struct scratch_buffer *buffer,
17610 + size_t size);
17611 +libc_hidden_proto (__libc_scratch_buffer_dupfree)
17612 +
17613 +/* Alias for __libc_scratch_dupfree. */
17614 +static __always_inline void *
17615 +scratch_buffer_dupfree (struct scratch_buffer *buffer, size_t size)
17616 +{
17617 + void *r = __libc_scratch_buffer_dupfree (buffer, size);
17618 + return __glibc_likely (r != NULL) ? r : NULL;
17619 +}
17620 +
17621 +#endif /* _SCRATCH_BUFFER_H */
17622
17623 diff --git a/autotools/gnulib/malloc/scratch_buffer_dupfree.c b/autotools/gnulib/malloc/scratch_buffer_dupfree.c
17624 new file mode 100644
17625 index 0000000..eb3b95c
17626 --- /dev/null
17627 +++ b/autotools/gnulib/malloc/scratch_buffer_dupfree.c
17628 @@ -0,0 +1,41 @@
17629 +/* Variable-sized buffer with on-stack default allocation.
17630 + Copyright (C) 2020-2022 Free Software Foundation, Inc.
17631 + This file is part of the GNU C Library.
17632 +
17633 + The GNU C Library is free software; you can redistribute it and/or
17634 + modify it under the terms of the GNU Lesser General Public
17635 + License as published by the Free Software Foundation; either
17636 + version 2.1 of the License, or (at your option) any later version.
17637 +
17638 + The GNU C Library is distributed in the hope that it will be useful,
17639 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17640 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17641 + Lesser General Public License for more details.
17642 +
17643 + You should have received a copy of the GNU Lesser General Public
17644 + License along with the GNU C Library; if not, see
17645 + <https://www.gnu.org/licenses/>. */
17646 +
17647 +#ifndef _LIBC
17648 +# include <libc-config.h>
17649 +#endif
17650 +
17651 +#include <scratch_buffer.h>
17652 +#include <string.h>
17653 +
17654 +void *
17655 +__libc_scratch_buffer_dupfree (struct scratch_buffer *buffer, size_t size)
17656 +{
17657 + void *data = buffer->data;
17658 + if (data == buffer->__space.__c)
17659 + {
17660 + void *copy = malloc (size);
17661 + return copy != NULL ? memcpy (copy, data, size) : NULL;
17662 + }
17663 + else
17664 + {
17665 + void *copy = realloc (data, size);
17666 + return copy != NULL ? copy : data;
17667 + }
17668 +}
17669 +libc_hidden_def (__libc_scratch_buffer_dupfree)
17670
17671 diff --git a/autotools/gnulib/malloc/scratch_buffer_grow.c b/autotools/gnulib/malloc/scratch_buffer_grow.c
17672 new file mode 100644
17673 index 0000000..9a5e4db
17674 --- /dev/null
17675 +++ b/autotools/gnulib/malloc/scratch_buffer_grow.c
17676 @@ -0,0 +1,56 @@
17677 +/* Variable-sized buffer with on-stack default allocation.
17678 + Copyright (C) 2015-2022 Free Software Foundation, Inc.
17679 + This file is part of the GNU C Library.
17680 +
17681 + The GNU C Library is free software; you can redistribute it and/or
17682 + modify it under the terms of the GNU Lesser General Public
17683 + License as published by the Free Software Foundation; either
17684 + version 2.1 of the License, or (at your option) any later version.
17685 +
17686 + The GNU C Library is distributed in the hope that it will be useful,
17687 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17688 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17689 + Lesser General Public License for more details.
17690 +
17691 + You should have received a copy of the GNU Lesser General Public
17692 + License along with the GNU C Library; if not, see
17693 + <https://www.gnu.org/licenses/>. */
17694 +
17695 +#ifndef _LIBC
17696 +# include <libc-config.h>
17697 +#endif
17698 +
17699 +#include <scratch_buffer.h>
17700 +#include <errno.h>
17701 +
17702 +bool
17703 +__libc_scratch_buffer_grow (struct scratch_buffer *buffer)
17704 +{
17705 + void *new_ptr;
17706 + size_t new_length = buffer->length * 2;
17707 +
17708 + /* Discard old buffer. */
17709 + scratch_buffer_free (buffer);
17710 +
17711 + /* Check for overflow. */
17712 + if (__glibc_likely (new_length >= buffer->length))
17713 + new_ptr = malloc (new_length);
17714 + else
17715 + {
17716 + __set_errno (ENOMEM);
17717 + new_ptr = NULL;
17718 + }
17719 +
17720 + if (__glibc_unlikely (new_ptr == NULL))
17721 + {
17722 + /* Buffer must remain valid to free. */
17723 + scratch_buffer_init (buffer);
17724 + return false;
17725 + }
17726 +
17727 + /* Install new heap-based buffer. */
17728 + buffer->data = new_ptr;
17729 + buffer->length = new_length;
17730 + return true;
17731 +}
17732 +libc_hidden_def (__libc_scratch_buffer_grow)
17733
17734 diff --git a/autotools/gnulib/malloc/scratch_buffer_grow_preserve.c b/autotools/gnulib/malloc/scratch_buffer_grow_preserve.c
17735 new file mode 100644
17736 index 0000000..3fe5a07
17737 --- /dev/null
17738 +++ b/autotools/gnulib/malloc/scratch_buffer_grow_preserve.c
17739 @@ -0,0 +1,67 @@
17740 +/* Variable-sized buffer with on-stack default allocation.
17741 + Copyright (C) 2015-2022 Free Software Foundation, Inc.
17742 + This file is part of the GNU C Library.
17743 +
17744 + The GNU C Library is free software; you can redistribute it and/or
17745 + modify it under the terms of the GNU Lesser General Public
17746 + License as published by the Free Software Foundation; either
17747 + version 2.1 of the License, or (at your option) any later version.
17748 +
17749 + The GNU C Library is distributed in the hope that it will be useful,
17750 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17751 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17752 + Lesser General Public License for more details.
17753 +
17754 + You should have received a copy of the GNU Lesser General Public
17755 + License along with the GNU C Library; if not, see
17756 + <https://www.gnu.org/licenses/>. */
17757 +
17758 +#ifndef _LIBC
17759 +# include <libc-config.h>
17760 +#endif
17761 +
17762 +#include <scratch_buffer.h>
17763 +#include <errno.h>
17764 +#include <string.h>
17765 +
17766 +bool
17767 +__libc_scratch_buffer_grow_preserve (struct scratch_buffer *buffer)
17768 +{
17769 + size_t new_length = 2 * buffer->length;
17770 + void *new_ptr;
17771 +
17772 + if (buffer->data == buffer->__space.__c)
17773 + {
17774 + /* Move buffer to the heap. No overflow is possible because
17775 + buffer->length describes a small buffer on the stack. */
17776 + new_ptr = malloc (new_length);
17777 + if (new_ptr == NULL)
17778 + return false;
17779 + memcpy (new_ptr, buffer->__space.__c, buffer->length);
17780 + }
17781 + else
17782 + {
17783 + /* Buffer was already on the heap. Check for overflow. */
17784 + if (__glibc_likely (new_length >= buffer->length))
17785 + new_ptr = realloc (buffer->data, new_length);
17786 + else
17787 + {
17788 + __set_errno (ENOMEM);
17789 + new_ptr = NULL;
17790 + }
17791 +
17792 + if (__glibc_unlikely (new_ptr == NULL))
17793 + {
17794 + /* Deallocate, but buffer must remain valid to free. */
17795 + free (buffer->data);
17796 + scratch_buffer_init (buffer);
17797 + return false;
17798 + }
17799 + }
17800 +
17801 + /* Install new heap-based buffer. */
17802 + buffer->data = new_ptr;
17803 + buffer->length = new_length;
17804 + return true;
17805 +}
17806 +libc_hidden_def (__libc_scratch_buffer_grow_preserve)
17807
17808 diff --git a/autotools/gnulib/malloc/scratch_buffer_set_array_size.c b/autotools/gnulib/malloc/scratch_buffer_set_array_size.c
17809 new file mode 100644
17810 index 0000000..89c37a9
17811 --- /dev/null
17812 +++ b/autotools/gnulib/malloc/scratch_buffer_set_array_size.c
17813 @@ -0,0 +1,64 @@
17814 +/* Variable-sized buffer with on-stack default allocation.
17815 + Copyright (C) 2015-2022 Free Software Foundation, Inc.
17816 + This file is part of the GNU C Library.
17817 +
17818 + The GNU C Library is free software; you can redistribute it and/or
17819 + modify it under the terms of the GNU Lesser General Public
17820 + License as published by the Free Software Foundation; either
17821 + version 2.1 of the License, or (at your option) any later version.
17822 +
17823 + The GNU C Library is distributed in the hope that it will be useful,
17824 + but WITHOUT ANY WARRANTY; without even the implied warranty of
17825 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17826 + Lesser General Public License for more details.
17827 +
17828 + You should have received a copy of the GNU Lesser General Public
17829 + License along with the GNU C Library; if not, see
17830 + <https://www.gnu.org/licenses/>. */
17831 +
17832 +#ifndef _LIBC
17833 +# include <libc-config.h>
17834 +#endif
17835 +
17836 +#include <scratch_buffer.h>
17837 +#include <errno.h>
17838 +#include <limits.h>
17839 +
17840 +bool
17841 +__libc_scratch_buffer_set_array_size (struct scratch_buffer *buffer,
17842 + size_t nelem, size_t size)
17843 +{
17844 + size_t new_length = nelem * size;
17845 +
17846 + /* Avoid overflow check if both values are small. */
17847 + if ((nelem | size) >> (sizeof (size_t) * CHAR_BIT / 2) != 0
17848 + && nelem != 0 && size != new_length / nelem)
17849 + {
17850 + /* Overflow. Discard the old buffer, but it must remain valid
17851 + to free. */
17852 + scratch_buffer_free (buffer);
17853 + scratch_buffer_init (buffer);
17854 + __set_errno (ENOMEM);
17855 + return false;
17856 + }
17857 +
17858 + if (new_length <= buffer->length)
17859 + return true;
17860 +
17861 + /* Discard old buffer. */
17862 + scratch_buffer_free (buffer);
17863 +
17864 + char *new_ptr = malloc (new_length);
17865 + if (new_ptr == NULL)
17866 + {
17867 + /* Buffer must remain valid to free. */
17868 + scratch_buffer_init (buffer);
17869 + return false;
17870 + }
17871 +
17872 + /* Install new heap-based buffer. */
17873 + buffer->data = new_ptr;
17874 + buffer->length = new_length;
17875 + return true;
17876 +}
17877 +libc_hidden_def (__libc_scratch_buffer_set_array_size)
17878
17879 diff --git a/autotools/gnulib/malloca.c b/autotools/gnulib/malloca.c
17880 index f60c5fb..e7beaaf 100644
17881 --- a/autotools/gnulib/malloca.c
17882 +++ b/autotools/gnulib/malloca.c
17883 @@ -1,19 +1,19 @@
17884 /* Safe automatic memory allocation.
17885 - Copyright (C) 2003, 2006-2007, 2009-2019 Free Software Foundation, Inc.
17886 + Copyright (C) 2003, 2006-2007, 2009-2022 Free Software Foundation, Inc.
17887 Written by Bruno Haible <bruno@×××××.org>, 2003, 2018.
17888
17889 - This program is free software; you can redistribute it and/or modify
17890 - it under the terms of the GNU General Public License as published by
17891 - the Free Software Foundation; either version 3, or (at your option)
17892 - any later version.
17893 + This file is free software: you can redistribute it and/or modify
17894 + it under the terms of the GNU Lesser General Public License as
17895 + published by the Free Software Foundation; either version 2.1 of the
17896 + License, or (at your option) any later version.
17897
17898 - This program is distributed in the hope that it will be useful,
17899 + This file is distributed in the hope that it will be useful,
17900 but WITHOUT ANY WARRANTY; without even the implied warranty of
17901 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17902 - GNU General Public License for more details.
17903 + GNU Lesser General Public License for more details.
17904
17905 - You should have received a copy of the GNU General Public License
17906 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
17907 + You should have received a copy of the GNU Lesser General Public License
17908 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
17909
17910 #define _GL_USE_STDLIB_ALLOC 1
17911 #include <config.h>
17912 @@ -21,6 +21,8 @@
17913 /* Specification. */
17914 #include "malloca.h"
17915
17916 +#include "idx.h"
17917 +#include "intprops.h"
17918 #include "verify.h"
17919
17920 /* The speed critical point in this file is freea() applied to an alloca()
17921 @@ -45,24 +47,30 @@ mmalloca (size_t n)
17922 #if HAVE_ALLOCA
17923 /* Allocate one more word, used to determine the address to pass to freea(),
17924 and room for the alignment ≡ sa_alignment_max mod 2*sa_alignment_max. */
17925 - size_t nplus = n + sizeof (small_t) + 2 * sa_alignment_max - 1;
17926 -
17927 - if (nplus >= n)
17928 + uintptr_t alignment2_mask = 2 * sa_alignment_max - 1;
17929 + int plus = sizeof (small_t) + alignment2_mask;
17930 + idx_t nplus;
17931 + if (!INT_ADD_WRAPV (n, plus, &nplus) && !xalloc_oversized (nplus, 1))
17932 {
17933 char *mem = (char *) malloc (nplus);
17934
17935 if (mem != NULL)
17936 {
17937 - char *p =
17938 - (char *)((((uintptr_t)mem + sizeof (small_t) + sa_alignment_max - 1)
17939 - & ~(uintptr_t)(2 * sa_alignment_max - 1))
17940 - + sa_alignment_max);
17941 + uintptr_t umem = (uintptr_t)mem, umemplus;
17942 + /* The INT_ADD_WRAPV avoids signed integer overflow on
17943 + theoretical platforms where UINTPTR_MAX <= INT_MAX. */
17944 + INT_ADD_WRAPV (umem, sizeof (small_t) + sa_alignment_max - 1,
17945 + &umemplus);
17946 + idx_t offset = ((umemplus & ~alignment2_mask)
17947 + + sa_alignment_max - umem);
17948 + void *vp = mem + offset;
17949 + small_t *p = vp;
17950 /* Here p >= mem + sizeof (small_t),
17951 and p <= mem + sizeof (small_t) + 2 * sa_alignment_max - 1
17952 hence p + n <= mem + nplus.
17953 So, the memory range [p, p+n) lies in the allocated memory range
17954 [mem, mem + nplus). */
17955 - ((small_t *) p)[-1] = p - mem;
17956 + p[-1] = offset;
17957 /* p ≡ sa_alignment_max mod 2*sa_alignment_max. */
17958 return p;
17959 }
17960
17961 diff --git a/autotools/gnulib/malloca.h b/autotools/gnulib/malloca.h
17962 index d80c316..7ec235f 100644
17963 --- a/autotools/gnulib/malloca.h
17964 +++ b/autotools/gnulib/malloca.h
17965 @@ -1,19 +1,19 @@
17966 /* Safe automatic memory allocation.
17967 - Copyright (C) 2003-2007, 2009-2019 Free Software Foundation, Inc.
17968 + Copyright (C) 2003-2007, 2009-2022 Free Software Foundation, Inc.
17969 Written by Bruno Haible <bruno@×××××.org>, 2003.
17970
17971 - This program is free software; you can redistribute it and/or modify
17972 - it under the terms of the GNU General Public License as published by
17973 - the Free Software Foundation; either version 3, or (at your option)
17974 - any later version.
17975 + This file is free software: you can redistribute it and/or modify
17976 + it under the terms of the GNU Lesser General Public License as
17977 + published by the Free Software Foundation; either version 2.1 of the
17978 + License, or (at your option) any later version.
17979
17980 - This program is distributed in the hope that it will be useful,
17981 + This file is distributed in the hope that it will be useful,
17982 but WITHOUT ANY WARRANTY; without even the implied warranty of
17983 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17984 - GNU General Public License for more details.
17985 + GNU Lesser General Public License for more details.
17986
17987 - You should have received a copy of the GNU General Public License
17988 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
17989 + You should have received a copy of the GNU Lesser General Public License
17990 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
17991
17992 #ifndef _MALLOCA_H
17993 #define _MALLOCA_H
17994 @@ -51,6 +51,13 @@ extern "C" {
17995 # define safe_alloca(N) ((void) (N), NULL)
17996 #endif
17997
17998 +/* Free a block of memory allocated through malloca(). */
17999 +#if HAVE_ALLOCA
18000 +extern void freea (void *p);
18001 +#else
18002 +# define freea free
18003 +#endif
18004 +
18005 /* malloca(N) is a safe variant of alloca(N). It allocates N bytes of
18006 memory allocated on the stack, that must be freed using freea() before
18007 the function returns. Upon failure, it returns NULL. */
18008 @@ -65,20 +72,16 @@ extern "C" {
18009 # define malloca(N) \
18010 mmalloca (N)
18011 #endif
18012 -extern void * mmalloca (size_t n);
18013 -
18014 -/* Free a block of memory allocated through malloca(). */
18015 -#if HAVE_ALLOCA
18016 -extern void freea (void *p);
18017 -#else
18018 -# define freea free
18019 -#endif
18020 +extern void *mmalloca (size_t n)
18021 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC (freea, 1)
18022 + _GL_ATTRIBUTE_ALLOC_SIZE ((1));
18023
18024 /* nmalloca(N,S) is an overflow-safe variant of malloca (N * S).
18025 It allocates an array of N objects, each with S bytes of memory,
18026 - on the stack. S must be positive and N must be nonnegative.
18027 + on the stack. N and S should be nonnegative and free of side effects.
18028 The array must be freed using freea() before the function returns. */
18029 -#define nmalloca(n, s) (xalloc_oversized (n, s) ? NULL : malloca ((n) * (s)))
18030 +#define nmalloca(n, s) \
18031 + (xalloc_oversized (n, s) ? NULL : malloca ((n) * (size_t) (s)))
18032
18033
18034 #ifdef __cplusplus
18035 @@ -89,7 +92,7 @@ extern void freea (void *p);
18036 /* ------------------- Auxiliary, non-public definitions ------------------- */
18037
18038 /* Determine the alignment of a type at compile time. */
18039 -#if defined __GNUC__ || defined __IBM__ALIGNOF__
18040 +#if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
18041 # define sa_alignof __alignof__
18042 #elif defined __cplusplus
18043 template <class type> struct sa_alignof_helper { char __slot1; type __slot2; };
18044 @@ -112,14 +115,10 @@ enum
18045 among all elementary types. */
18046 sa_alignment_long = sa_alignof (long),
18047 sa_alignment_double = sa_alignof (double),
18048 -#if HAVE_LONG_LONG_INT
18049 sa_alignment_longlong = sa_alignof (long long),
18050 -#endif
18051 sa_alignment_longdouble = sa_alignof (long double),
18052 sa_alignment_max = ((sa_alignment_long - 1) | (sa_alignment_double - 1)
18053 -#if HAVE_LONG_LONG_INT
18054 | (sa_alignment_longlong - 1)
18055 -#endif
18056 | (sa_alignment_longdouble - 1)
18057 ) + 1
18058 };
18059
18060 diff --git a/autotools/gnulib/math.c b/autotools/gnulib/math.c
18061 index ba2a6ab..1502a1f 100644
18062 --- a/autotools/gnulib/math.c
18063 +++ b/autotools/gnulib/math.c
18064 @@ -1,4 +1,22 @@
18065 +/* Inline functions for <math.h>.
18066 +
18067 + Copyright (C) 2012-2022 Free Software Foundation, Inc.
18068 +
18069 + This file is free software: you can redistribute it and/or modify
18070 + it under the terms of the GNU Lesser General Public License as
18071 + published by the Free Software Foundation; either version 2.1 of the
18072 + License, or (at your option) any later version.
18073 +
18074 + This file is distributed in the hope that it will be useful,
18075 + but WITHOUT ANY WARRANTY; without even the implied warranty of
18076 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18077 + GNU Lesser General Public License for more details.
18078 +
18079 + You should have received a copy of the GNU Lesser General Public License
18080 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
18081 +
18082 #include <config.h>
18083 +
18084 #define _GL_MATH_INLINE _GL_EXTERN_INLINE
18085 #include "math.h"
18086 typedef int dummy;
18087
18088 diff --git a/autotools/gnulib/math.in.h b/autotools/gnulib/math.in.h
18089 index aa03ea3..ccc3584 100644
18090 --- a/autotools/gnulib/math.in.h
18091 +++ b/autotools/gnulib/math.in.h
18092 @@ -1,18 +1,18 @@
18093 /* A GNU-like <math.h>.
18094
18095 - Copyright (C) 2002-2003, 2007-2019 Free Software Foundation, Inc.
18096 + Copyright (C) 2002-2003, 2007-2022 Free Software Foundation, Inc.
18097
18098 - This program is free software: you can redistribute it and/or modify
18099 - it under the terms of the GNU General Public License as published by
18100 - the Free Software Foundation; either version 3 of the License, or
18101 - (at your option) any later version.
18102 + This file is free software: you can redistribute it and/or modify
18103 + it under the terms of the GNU Lesser General Public License as
18104 + published by the Free Software Foundation; either version 2.1 of the
18105 + License, or (at your option) any later version.
18106
18107 - This program is distributed in the hope that it will be useful,
18108 + This file is distributed in the hope that it will be useful,
18109 but WITHOUT ANY WARRANTY; without even the implied warranty of
18110 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18111 - GNU General Public License for more details.
18112 + GNU Lesser General Public License for more details.
18113
18114 - You should have received a copy of the GNU General Public License
18115 + You should have received a copy of the GNU Lesser General Public License
18116 along with this program. If not, see <https://www.gnu.org/licenses/>. */
18117
18118 #ifndef _@GUARD_PREFIX@_MATH_H
18119 @@ -22,8 +22,23 @@
18120 #endif
18121 @PRAGMA_COLUMNS@
18122
18123 +#if defined _GL_INCLUDING_MATH_H
18124 +/* Special invocation convention:
18125 + - On FreeBSD 12.2 we have a sequence of nested includes
18126 + <math.h> -> <stdlib.h> -> <sys/wait.h> -> <sys/types.h> -> <sys/select.h>
18127 + -> <signal.h> -> <pthread.h> -> <stdlib.h> -> <math.h>
18128 + In this situation, the functions are not yet declared, therefore we cannot
18129 + provide the C++ aliases. */
18130 +
18131 +#@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_MATH_H@
18132 +
18133 +#else
18134 +/* Normal invocation convention. */
18135 +
18136 /* The include_next requires a split double-inclusion guard. */
18137 +#define _GL_INCLUDING_MATH_H
18138 #@INCLUDE_NEXT_AS_FIRST_DIRECTIVE@ @NEXT_AS_FIRST_DIRECTIVE_MATH_H@
18139 +#undef _GL_INCLUDING_MATH_H
18140
18141 #ifndef _@GUARD_PREFIX@_MATH_H
18142 #define _@GUARD_PREFIX@_MATH_H
18143 @@ -41,6 +56,16 @@ _GL_INLINE_HEADER_BEGIN
18144 # define _GL_MATH_INLINE _GL_INLINE
18145 #endif
18146
18147 +/* The __attribute__ feature is available in gcc versions 2.5 and later.
18148 + The attribute __const__ was added in gcc 2.95. */
18149 +#ifndef _GL_ATTRIBUTE_CONST
18150 +# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) || defined __clang__
18151 +# define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
18152 +# else
18153 +# define _GL_ATTRIBUTE_CONST /* empty */
18154 +# endif
18155 +#endif
18156 +
18157 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
18158
18159 /* The definition of _GL_ARG_NONNULL is copied here. */
18160 @@ -67,20 +92,20 @@ _gl_cxx_ ## func ## l (long double l) \
18161 { \
18162 return func (l); \
18163 }
18164 -# define _GL_MATH_CXX_REAL_FLOATING_DECL_2(func) \
18165 +# define _GL_MATH_CXX_REAL_FLOATING_DECL_2(func,rpl_func,rettype) \
18166 _GL_BEGIN_NAMESPACE \
18167 -inline int \
18168 -func (float f) \
18169 +inline rettype \
18170 +rpl_func (float f) \
18171 { \
18172 return _gl_cxx_ ## func ## f (f); \
18173 } \
18174 -inline int \
18175 -func (double d) \
18176 +inline rettype \
18177 +rpl_func (double d) \
18178 { \
18179 return _gl_cxx_ ## func ## d (d); \
18180 } \
18181 -inline int \
18182 -func (long double l) \
18183 +inline rettype \
18184 +rpl_func (long double l) \
18185 { \
18186 return _gl_cxx_ ## func ## l (l); \
18187 } \
18188 @@ -255,7 +280,9 @@ _GL_WARN_ON_USE (acosf, "acosf is unportable - "
18189 _GL_FUNCDECL_SYS (acosl, long double, (long double x));
18190 # endif
18191 _GL_CXXALIAS_SYS (acosl, long double, (long double x));
18192 +# if __GLIBC__ >= 2
18193 _GL_CXXALIASWARN (acosl);
18194 +# endif
18195 #elif defined GNULIB_POSIXCHECK
18196 # undef acosl
18197 # if HAVE_RAW_DECL_ACOSL
18198 @@ -295,7 +322,9 @@ _GL_WARN_ON_USE (asinf, "asinf is unportable - "
18199 _GL_FUNCDECL_SYS (asinl, long double, (long double x));
18200 # endif
18201 _GL_CXXALIAS_SYS (asinl, long double, (long double x));
18202 +# if __GLIBC__ >= 2
18203 _GL_CXXALIASWARN (asinl);
18204 +# endif
18205 #elif defined GNULIB_POSIXCHECK
18206 # undef asinl
18207 # if HAVE_RAW_DECL_ASINL
18208 @@ -335,7 +364,9 @@ _GL_WARN_ON_USE (atanf, "atanf is unportable - "
18209 _GL_FUNCDECL_SYS (atanl, long double, (long double x));
18210 # endif
18211 _GL_CXXALIAS_SYS (atanl, long double, (long double x));
18212 +# if __GLIBC__ >= 2
18213 _GL_CXXALIASWARN (atanl);
18214 +# endif
18215 #elif defined GNULIB_POSIXCHECK
18216 # undef atanl
18217 # if HAVE_RAW_DECL_ATANL
18218 @@ -398,7 +429,9 @@ _GL_WARN_ON_USE (cbrtf, "cbrtf is unportable - "
18219 _GL_FUNCDECL_SYS (cbrt, double, (double x));
18220 # endif
18221 _GL_CXXALIAS_SYS (cbrt, double, (double x));
18222 -_GL_CXXALIASWARN (cbrt);
18223 +# if __GLIBC__ >= 2
18224 +_GL_CXXALIASWARN1 (cbrt, double, (double x));
18225 +# endif
18226 #elif defined GNULIB_POSIXCHECK
18227 # undef cbrt
18228 # if HAVE_RAW_DECL_CBRT
18229 @@ -466,7 +499,9 @@ _GL_CXXALIAS_RPL (ceil, double, (double x));
18230 # else
18231 _GL_CXXALIAS_SYS (ceil, double, (double x));
18232 # endif
18233 -_GL_CXXALIASWARN (ceil);
18234 +# if __GLIBC__ >= 2
18235 +_GL_CXXALIASWARN1 (ceil, double, (double x));
18236 +# endif
18237 #endif
18238
18239 #if @GNULIB_CEILL@
18240 @@ -484,7 +519,9 @@ _GL_FUNCDECL_SYS (ceill, long double, (long double x));
18241 # endif
18242 _GL_CXXALIAS_SYS (ceill, long double, (long double x));
18243 # endif
18244 +# if __GLIBC__ >= 2
18245 _GL_CXXALIASWARN (ceill);
18246 +# endif
18247 #elif defined GNULIB_POSIXCHECK
18248 # undef ceill
18249 # if HAVE_RAW_DECL_CEILL
18250 @@ -496,6 +533,7 @@ _GL_WARN_ON_USE (ceill, "ceill is unportable - "
18251
18252 #if @GNULIB_COPYSIGNF@
18253 # if !@HAVE_DECL_COPYSIGNF@
18254 +# undef copysignf
18255 _GL_FUNCDECL_SYS (copysignf, float, (float x, float y));
18256 # endif
18257 _GL_CXXALIAS_SYS (copysignf, float, (float x, float y));
18258 @@ -513,7 +551,9 @@ _GL_WARN_ON_USE (copysignf, "copysignf is unportable - "
18259 _GL_FUNCDECL_SYS (copysign, double, (double x, double y));
18260 # endif
18261 _GL_CXXALIAS_SYS (copysign, double, (double x, double y));
18262 -_GL_CXXALIASWARN (copysign);
18263 +# if __GLIBC__ >= 2
18264 +_GL_CXXALIASWARN1 (copysign, double, (double x, double y));
18265 +# endif
18266 #elif defined GNULIB_POSIXCHECK
18267 # undef copysign
18268 # if HAVE_RAW_DECL_COPYSIGN
18269 @@ -567,7 +607,9 @@ _GL_WARN_ON_USE (cosf, "cosf is unportable - "
18270 _GL_FUNCDECL_SYS (cosl, long double, (long double x));
18271 # endif
18272 _GL_CXXALIAS_SYS (cosl, long double, (long double x));
18273 +# if __GLIBC__ >= 2
18274 _GL_CXXALIASWARN (cosl);
18275 +# endif
18276 #elif defined GNULIB_POSIXCHECK
18277 # undef cosl
18278 # if HAVE_RAW_DECL_COSL
18279 @@ -641,7 +683,9 @@ _GL_FUNCDECL_SYS (expl, long double, (long double x));
18280 # endif
18281 _GL_CXXALIAS_SYS (expl, long double, (long double x));
18282 # endif
18283 +# if __GLIBC__ >= 2
18284 _GL_CXXALIASWARN (expl);
18285 +# endif
18286 #elif defined GNULIB_POSIXCHECK
18287 # undef expl
18288 # if HAVE_RAW_DECL_EXPL
18289 @@ -679,7 +723,9 @@ _GL_FUNCDECL_SYS (exp2, double, (double x));
18290 # endif
18291 _GL_CXXALIAS_SYS (exp2, double, (double x));
18292 # endif
18293 -_GL_CXXALIASWARN (exp2);
18294 +# if __GLIBC__ >= 2
18295 +_GL_CXXALIASWARN1 (exp2, double, (double x));
18296 +# endif
18297 #elif defined GNULIB_POSIXCHECK
18298 # undef exp2
18299 # if HAVE_RAW_DECL_EXP2
18300 @@ -750,7 +796,9 @@ _GL_FUNCDECL_SYS (expm1, double, (double x));
18301 # endif
18302 _GL_CXXALIAS_SYS (expm1, double, (double x));
18303 # endif
18304 -_GL_CXXALIASWARN (expm1);
18305 +# if __GLIBC__ >= 2
18306 +_GL_CXXALIASWARN1 (expm1, double, (double x));
18307 +# endif
18308 #elif defined GNULIB_POSIXCHECK
18309 # undef expm1
18310 # if HAVE_RAW_DECL_EXPM1
18311 @@ -770,7 +818,9 @@ _GL_CXXALIAS_RPL (expm1l, long double, (long double x));
18312 # else
18313 # if !@HAVE_DECL_EXPM1L@
18314 # undef expm1l
18315 +# if !(defined __cplusplus && defined _AIX)
18316 _GL_FUNCDECL_SYS (expm1l, long double, (long double x));
18317 +# endif
18318 # endif
18319 _GL_CXXALIAS_SYS (expm1l, long double, (long double x));
18320 # endif
18321 @@ -790,7 +840,9 @@ _GL_WARN_ON_USE (expm1l, "expm1l is unportable - "
18322 _GL_FUNCDECL_SYS (fabsf, float, (float x));
18323 # endif
18324 _GL_CXXALIAS_SYS (fabsf, float, (float x));
18325 +# if __GLIBC__ >= 2
18326 _GL_CXXALIASWARN (fabsf);
18327 +# endif
18328 #elif defined GNULIB_POSIXCHECK
18329 # undef fabsf
18330 # if HAVE_RAW_DECL_FABSF
18331 @@ -814,7 +866,9 @@ _GL_FUNCDECL_SYS (fabsl, long double, (long double x));
18332 # endif
18333 _GL_CXXALIAS_SYS (fabsl, long double, (long double x));
18334 # endif
18335 +# if __GLIBC__ >= 2
18336 _GL_CXXALIASWARN (fabsl);
18337 +# endif
18338 #elif defined GNULIB_POSIXCHECK
18339 # undef fabsl
18340 # if HAVE_RAW_DECL_FABSL
18341 @@ -859,7 +913,9 @@ _GL_CXXALIAS_RPL (floor, double, (double x));
18342 # else
18343 _GL_CXXALIAS_SYS (floor, double, (double x));
18344 # endif
18345 -_GL_CXXALIASWARN (floor);
18346 +# if __GLIBC__ >= 2
18347 +_GL_CXXALIASWARN1 (floor, double, (double x));
18348 +# endif
18349 #endif
18350
18351 #if @GNULIB_FLOORL@
18352 @@ -877,7 +933,9 @@ _GL_FUNCDECL_SYS (floorl, long double, (long double x));
18353 # endif
18354 _GL_CXXALIAS_SYS (floorl, long double, (long double x));
18355 # endif
18356 +# if __GLIBC__ >= 2
18357 _GL_CXXALIASWARN (floorl);
18358 +# endif
18359 #elif defined GNULIB_POSIXCHECK
18360 # undef floorl
18361 # if HAVE_RAW_DECL_FLOORL
18362 @@ -897,6 +955,7 @@ _GL_FUNCDECL_RPL (fmaf, float, (float x, float y, float z));
18363 _GL_CXXALIAS_RPL (fmaf, float, (float x, float y, float z));
18364 # else
18365 # if !@HAVE_FMAF@
18366 +# undef fmaf
18367 _GL_FUNCDECL_SYS (fmaf, float, (float x, float y, float z));
18368 # endif
18369 _GL_CXXALIAS_SYS (fmaf, float, (float x, float y, float z));
18370 @@ -920,11 +979,14 @@ _GL_FUNCDECL_RPL (fma, double, (double x, double y, double z));
18371 _GL_CXXALIAS_RPL (fma, double, (double x, double y, double z));
18372 # else
18373 # if !@HAVE_FMA@
18374 +# undef fma
18375 _GL_FUNCDECL_SYS (fma, double, (double x, double y, double z));
18376 # endif
18377 _GL_CXXALIAS_SYS (fma, double, (double x, double y, double z));
18378 # endif
18379 -_GL_CXXALIASWARN (fma);
18380 +# if __GLIBC__ >= 2
18381 +_GL_CXXALIASWARN1 (fma, double, (double x, double y, double z));
18382 +# endif
18383 #elif defined GNULIB_POSIXCHECK
18384 # undef fma
18385 # if HAVE_RAW_DECL_FMA
18386 @@ -946,8 +1008,10 @@ _GL_CXXALIAS_RPL (fmal, long double,
18387 # else
18388 # if !@HAVE_FMAL@
18389 # undef fmal
18390 +# if !(defined __cplusplus && defined _AIX)
18391 _GL_FUNCDECL_SYS (fmal, long double,
18392 (long double x, long double y, long double z));
18393 +# endif
18394 # endif
18395 _GL_CXXALIAS_SYS (fmal, long double,
18396 (long double x, long double y, long double z));
18397 @@ -997,7 +1061,9 @@ _GL_CXXALIAS_RPL (fmod, double, (double x, double y));
18398 # else
18399 _GL_CXXALIAS_SYS (fmod, double, (double x, double y));
18400 # endif
18401 -_GL_CXXALIASWARN (fmod);
18402 +# if __GLIBC__ >= 2
18403 +_GL_CXXALIASWARN1 (fmod, double, (double x, double y));
18404 +# endif
18405 #elif defined GNULIB_POSIXCHECK
18406 # undef fmod
18407 # if HAVE_RAW_DECL_FMOD
18408 @@ -1021,7 +1087,9 @@ _GL_FUNCDECL_SYS (fmodl, long double, (long double x, long double y));
18409 # endif
18410 _GL_CXXALIAS_SYS (fmodl, long double, (long double x, long double y));
18411 # endif
18412 +# if __GLIBC__ >= 2
18413 _GL_CXXALIASWARN (fmodl);
18414 +# endif
18415 #elif defined GNULIB_POSIXCHECK
18416 # undef fmodl
18417 # if HAVE_RAW_DECL_FMODL
18418 @@ -1053,7 +1121,9 @@ _GL_FUNCDECL_SYS (frexpf, float, (float x, int *expptr) _GL_ARG_NONNULL ((2)));
18419 # endif
18420 _GL_CXXALIAS_SYS (frexpf, float, (float x, int *expptr));
18421 # endif
18422 +# if __GLIBC__ >= 2
18423 _GL_CXXALIASWARN (frexpf);
18424 +# endif
18425 #elif defined GNULIB_POSIXCHECK
18426 # undef frexpf
18427 # if HAVE_RAW_DECL_FREXPF
18428 @@ -1080,7 +1150,9 @@ _GL_CXXALIAS_RPL (frexp, double, (double x, int *expptr));
18429 # else
18430 _GL_CXXALIAS_SYS (frexp, double, (double x, int *expptr));
18431 # endif
18432 +# if __GLIBC__ >= 2
18433 _GL_CXXALIASWARN1 (frexp, double, (double x, int *expptr));
18434 +# endif
18435 #elif defined GNULIB_POSIXCHECK
18436 # undef frexp
18437 /* Assume frexp is always declared. */
18438 @@ -1113,7 +1185,9 @@ _GL_CXXALIAS_SYS (frexpl, long double, (long double x, int *expptr));
18439 # endif
18440 #endif
18441 #if @GNULIB_FREXPL@ && !(@REPLACE_FREXPL@ && !@HAVE_DECL_FREXPL@)
18442 +# if __GLIBC__ >= 2
18443 _GL_CXXALIASWARN (frexpl);
18444 +# endif
18445 #endif
18446 #if !@GNULIB_FREXPL@ && defined GNULIB_POSIXCHECK
18447 # undef frexpl
18448 @@ -1139,7 +1213,9 @@ _GL_FUNCDECL_SYS (hypotf, float, (float x, float y));
18449 # endif
18450 _GL_CXXALIAS_SYS (hypotf, float, (float x, float y));
18451 # endif
18452 +# if __GLIBC__ >= 2
18453 _GL_CXXALIASWARN (hypotf);
18454 +# endif
18455 #elif defined GNULIB_POSIXCHECK
18456 # undef hypotf
18457 # if HAVE_RAW_DECL_HYPOTF
18458 @@ -1160,7 +1236,9 @@ _GL_CXXALIAS_RPL (hypot, double, (double x, double y));
18459 # else
18460 _GL_CXXALIAS_SYS (hypot, double, (double x, double y));
18461 # endif
18462 -_GL_CXXALIASWARN (hypot);
18463 +# if __GLIBC__ >= 2
18464 +_GL_CXXALIASWARN1 (hypot, double, (double x, double y));
18465 +# endif
18466 #elif defined GNULIB_POSIXCHECK
18467 # undef hypot
18468 # if HAVE_RAW_DECL_HYPOT
18469 @@ -1184,7 +1262,9 @@ _GL_FUNCDECL_SYS (hypotl, long double, (long double x, long double y));
18470 # endif
18471 _GL_CXXALIAS_SYS (hypotl, long double, (long double x, long double y));
18472 # endif
18473 +# if __GLIBC__ >= 2
18474 _GL_CXXALIASWARN (hypotl);
18475 +# endif
18476 #elif defined GNULIB_POSIXCHECK
18477 # undef hypotl
18478 # if HAVE_RAW_DECL_HYPOTL
18479 @@ -1231,7 +1311,9 @@ _GL_FUNCDECL_SYS (ilogb, int, (double x));
18480 # endif
18481 _GL_CXXALIAS_SYS (ilogb, int, (double x));
18482 # endif
18483 -_GL_CXXALIASWARN (ilogb);
18484 +# if __GLIBC__ >= 2
18485 +_GL_CXXALIASWARN1 (ilogb, int, (double x));
18486 +# endif
18487 #elif defined GNULIB_POSIXCHECK
18488 # undef ilogb
18489 # if HAVE_RAW_DECL_ILOGB
18490 @@ -1250,6 +1332,7 @@ _GL_FUNCDECL_RPL (ilogbl, int, (long double x));
18491 _GL_CXXALIAS_RPL (ilogbl, int, (long double x));
18492 # else
18493 # if !@HAVE_ILOGBL@
18494 +# undef ilogbl
18495 _GL_FUNCDECL_SYS (ilogbl, int, (long double x));
18496 # endif
18497 _GL_CXXALIAS_SYS (ilogbl, int, (long double x));
18498 @@ -1264,6 +1347,55 @@ _GL_WARN_ON_USE (ilogbl, "ilogbl is unportable - "
18499 #endif
18500
18501
18502 +#if @GNULIB_MDA_J0@
18503 +/* On native Windows, map 'j0' to '_j0', so that -loldnames is not
18504 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
18505 + platforms by defining GNULIB_NAMESPACE::j0 always. */
18506 +# if defined _WIN32 && !defined __CYGWIN__
18507 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
18508 +# undef j0
18509 +# define j0 _j0
18510 +# endif
18511 +_GL_CXXALIAS_MDA (j0, double, (double x));
18512 +# else
18513 +_GL_CXXALIAS_SYS (j0, double, (double x));
18514 +# endif
18515 +_GL_CXXALIASWARN (j0);
18516 +#endif
18517 +
18518 +#if @GNULIB_MDA_J1@
18519 +/* On native Windows, map 'j1' to '_j1', so that -loldnames is not
18520 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
18521 + platforms by defining GNULIB_NAMESPACE::j1 always. */
18522 +# if defined _WIN32 && !defined __CYGWIN__
18523 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
18524 +# undef j1
18525 +# define j1 _j1
18526 +# endif
18527 +_GL_CXXALIAS_MDA (j1, double, (double x));
18528 +# else
18529 +_GL_CXXALIAS_SYS (j1, double, (double x));
18530 +# endif
18531 +_GL_CXXALIASWARN (j1);
18532 +#endif
18533 +
18534 +#if @GNULIB_MDA_JN@
18535 +/* On native Windows, map 'jn' to '_jn', so that -loldnames is not
18536 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
18537 + platforms by defining GNULIB_NAMESPACE::jn always. */
18538 +# if defined _WIN32 && !defined __CYGWIN__
18539 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
18540 +# undef jn
18541 +# define jn _jn
18542 +# endif
18543 +_GL_CXXALIAS_MDA (jn, double, (int n, double x));
18544 +# else
18545 +_GL_CXXALIAS_SYS (jn, double, (int n, double x));
18546 +# endif
18547 +_GL_CXXALIASWARN (jn);
18548 +#endif
18549 +
18550 +
18551 /* Return x * 2^exp. */
18552 #if @GNULIB_LDEXPF@
18553 # if !@HAVE_LDEXPF@
18554 @@ -1271,7 +1403,9 @@ _GL_WARN_ON_USE (ilogbl, "ilogbl is unportable - "
18555 _GL_FUNCDECL_SYS (ldexpf, float, (float x, int exp));
18556 # endif
18557 _GL_CXXALIAS_SYS (ldexpf, float, (float x, int exp));
18558 +# if __GLIBC__ >= 2
18559 _GL_CXXALIASWARN (ldexpf);
18560 +# endif
18561 #elif defined GNULIB_POSIXCHECK
18562 # undef ldexpf
18563 # if HAVE_RAW_DECL_LDEXPF
18564 @@ -1297,7 +1431,9 @@ _GL_CXXALIAS_SYS (ldexpl, long double, (long double x, int exp));
18565 # endif
18566 #endif
18567 #if @GNULIB_LDEXPL@
18568 +# if __GLIBC__ >= 2
18569 _GL_CXXALIASWARN (ldexpl);
18570 +# endif
18571 #endif
18572 #if !@GNULIB_LDEXPL@ && defined GNULIB_POSIXCHECK
18573 # undef ldexpl
18574 @@ -1343,7 +1479,9 @@ _GL_CXXALIAS_RPL (log, double, (double x));
18575 # else
18576 _GL_CXXALIAS_SYS (log, double, (double x));
18577 # endif
18578 -_GL_CXXALIASWARN (log);
18579 +# if __GLIBC__ >= 2
18580 +_GL_CXXALIASWARN1 (log, double, (double x));
18581 +# endif
18582 #elif defined GNULIB_POSIXCHECK
18583 # undef log
18584 # if HAVE_RAW_DECL_LOG
18585 @@ -1367,7 +1505,9 @@ _GL_FUNCDECL_SYS (logl, long double, (long double x));
18586 # endif
18587 _GL_CXXALIAS_SYS (logl, long double, (long double x));
18588 # endif
18589 +# if __GLIBC__ >= 2
18590 _GL_CXXALIASWARN (logl);
18591 +# endif
18592 #elif defined GNULIB_POSIXCHECK
18593 # undef logl
18594 # if HAVE_RAW_DECL_LOGL
18595 @@ -1412,7 +1552,9 @@ _GL_CXXALIAS_RPL (log10, double, (double x));
18596 # else
18597 _GL_CXXALIAS_SYS (log10, double, (double x));
18598 # endif
18599 -_GL_CXXALIASWARN (log10);
18600 +# if __GLIBC__ >= 2
18601 +_GL_CXXALIASWARN1 (log10, double, (double x));
18602 +# endif
18603 #elif defined GNULIB_POSIXCHECK
18604 # undef log10
18605 # if HAVE_RAW_DECL_LOG10
18606 @@ -1436,7 +1578,9 @@ _GL_FUNCDECL_SYS (log10l, long double, (long double x));
18607 # endif
18608 _GL_CXXALIAS_SYS (log10l, long double, (long double x));
18609 # endif
18610 +# if __GLIBC__ >= 2
18611 _GL_CXXALIASWARN (log10l);
18612 +# endif
18613 #elif defined GNULIB_POSIXCHECK
18614 # undef log10l
18615 # if HAVE_RAW_DECL_LOG10L
18616 @@ -1483,7 +1627,9 @@ _GL_FUNCDECL_SYS (log1p, double, (double x));
18617 # endif
18618 _GL_CXXALIAS_SYS (log1p, double, (double x));
18619 # endif
18620 -_GL_CXXALIASWARN (log1p);
18621 +# if __GLIBC__ >= 2
18622 +_GL_CXXALIASWARN1 (log1p, double, (double x));
18623 +# endif
18624 #elif defined GNULIB_POSIXCHECK
18625 # undef log1p
18626 # if HAVE_RAW_DECL_LOG1P
18627 @@ -1555,7 +1701,9 @@ _GL_FUNCDECL_SYS (log2, double, (double x));
18628 # endif
18629 _GL_CXXALIAS_SYS (log2, double, (double x));
18630 # endif
18631 -_GL_CXXALIASWARN (log2);
18632 +# if __GLIBC__ >= 2
18633 +_GL_CXXALIASWARN1 (log2, double, (double x));
18634 +# endif
18635 #elif defined GNULIB_POSIXCHECK
18636 # undef log2
18637 # if HAVE_RAW_DECL_LOG2
18638 @@ -1625,7 +1773,9 @@ _GL_FUNCDECL_SYS (logb, double, (double x));
18639 # endif
18640 _GL_CXXALIAS_SYS (logb, double, (double x));
18641 # endif
18642 -_GL_CXXALIASWARN (logb);
18643 +# if __GLIBC__ >= 2
18644 +_GL_CXXALIASWARN1 (logb, double, (double x));
18645 +# endif
18646 #elif defined GNULIB_POSIXCHECK
18647 # undef logb
18648 # if HAVE_RAW_DECL_LOGB
18649 @@ -1693,7 +1843,9 @@ _GL_CXXALIAS_RPL (modf, double, (double x, double *iptr));
18650 # else
18651 _GL_CXXALIAS_SYS (modf, double, (double x, double *iptr));
18652 # endif
18653 -_GL_CXXALIASWARN (modf);
18654 +# if __GLIBC__ >= 2
18655 +_GL_CXXALIASWARN1 (modf, double, (double x, double *iptr));
18656 +# endif
18657 #elif defined GNULIB_POSIXCHECK
18658 # undef modf
18659 # if HAVE_RAW_DECL_MODF
18660 @@ -1719,7 +1871,9 @@ _GL_FUNCDECL_SYS (modfl, long double, (long double x, long double *iptr)
18661 # endif
18662 _GL_CXXALIAS_SYS (modfl, long double, (long double x, long double *iptr));
18663 # endif
18664 +# if __GLIBC__ >= 2
18665 _GL_CXXALIASWARN (modfl);
18666 +# endif
18667 #elif defined GNULIB_POSIXCHECK
18668 # undef modfl
18669 # if HAVE_RAW_DECL_MODFL
18670 @@ -1782,7 +1936,9 @@ _GL_FUNCDECL_SYS (remainder, double, (double x, double y));
18671 # endif
18672 _GL_CXXALIAS_SYS (remainder, double, (double x, double y));
18673 # endif
18674 -_GL_CXXALIASWARN (remainder);
18675 +# if __GLIBC__ >= 2
18676 +_GL_CXXALIASWARN1 (remainder, double, (double x, double y));
18677 +# endif
18678 #elif defined GNULIB_POSIXCHECK
18679 # undef remainder
18680 # if HAVE_RAW_DECL_REMAINDER
18681 @@ -1802,7 +1958,9 @@ _GL_CXXALIAS_RPL (remainderl, long double, (long double x, long double y));
18682 # else
18683 # if !@HAVE_DECL_REMAINDERL@
18684 # undef remainderl
18685 +# if !(defined __cplusplus && defined _AIX)
18686 _GL_FUNCDECL_SYS (remainderl, long double, (long double x, long double y));
18687 +# endif
18688 # endif
18689 _GL_CXXALIAS_SYS (remainderl, long double, (long double x, long double y));
18690 # endif
18691 @@ -1835,7 +1993,9 @@ _GL_WARN_ON_USE (rintf, "rintf is unportable - "
18692 _GL_FUNCDECL_SYS (rint, double, (double x));
18693 # endif
18694 _GL_CXXALIAS_SYS (rint, double, (double x));
18695 -_GL_CXXALIASWARN (rint);
18696 +# if __GLIBC__ >= 2
18697 +_GL_CXXALIASWARN1 (rint, double, (double x));
18698 +# endif
18699 #elif defined GNULIB_POSIXCHECK
18700 # undef rint
18701 # if HAVE_RAW_DECL_RINT
18702 @@ -1905,7 +2065,9 @@ _GL_FUNCDECL_SYS (round, double, (double x));
18703 # endif
18704 _GL_CXXALIAS_SYS (round, double, (double x));
18705 # endif
18706 -_GL_CXXALIASWARN (round);
18707 +# if __GLIBC__ >= 2
18708 +_GL_CXXALIASWARN1 (round, double, (double x));
18709 +# endif
18710 #elif defined GNULIB_POSIXCHECK
18711 # undef round
18712 # if HAVE_RAW_DECL_ROUND
18713 @@ -1925,7 +2087,9 @@ _GL_CXXALIAS_RPL (roundl, long double, (long double x));
18714 # else
18715 # if !@HAVE_DECL_ROUNDL@
18716 # undef roundl
18717 +# if !(defined __cplusplus && defined _AIX)
18718 _GL_FUNCDECL_SYS (roundl, long double, (long double x));
18719 +# endif
18720 # endif
18721 _GL_CXXALIAS_SYS (roundl, long double, (long double x));
18722 # endif
18723 @@ -1949,7 +2113,7 @@ _GL_FUNCDECL_RPL (sinf, float, (float x));
18724 _GL_CXXALIAS_RPL (sinf, float, (float x));
18725 # else
18726 # if !@HAVE_SINF@
18727 - # undef sinf
18728 +# undef sinf
18729 _GL_FUNCDECL_SYS (sinf, float, (float x));
18730 # endif
18731 _GL_CXXALIAS_SYS (sinf, float, (float x));
18732 @@ -1969,7 +2133,9 @@ _GL_WARN_ON_USE (sinf, "sinf is unportable - "
18733 _GL_FUNCDECL_SYS (sinl, long double, (long double x));
18734 # endif
18735 _GL_CXXALIAS_SYS (sinl, long double, (long double x));
18736 +# if __GLIBC__ >= 2
18737 _GL_CXXALIASWARN (sinl);
18738 +# endif
18739 #elif defined GNULIB_POSIXCHECK
18740 # undef sinl
18741 # if HAVE_RAW_DECL_SINL
18742 @@ -2043,7 +2209,9 @@ _GL_FUNCDECL_SYS (sqrtl, long double, (long double x));
18743 # endif
18744 _GL_CXXALIAS_SYS (sqrtl, long double, (long double x));
18745 # endif
18746 +# if __GLIBC__ >= 2
18747 _GL_CXXALIASWARN (sqrtl);
18748 +# endif
18749 #elif defined GNULIB_POSIXCHECK
18750 # undef sqrtl
18751 # if HAVE_RAW_DECL_SQRTL
18752 @@ -2083,7 +2251,9 @@ _GL_WARN_ON_USE (tanf, "tanf is unportable - "
18753 _GL_FUNCDECL_SYS (tanl, long double, (long double x));
18754 # endif
18755 _GL_CXXALIAS_SYS (tanl, long double, (long double x));
18756 +# if __GLIBC__ >= 2
18757 _GL_CXXALIASWARN (tanl);
18758 +# endif
18759 #elif defined GNULIB_POSIXCHECK
18760 # undef tanl
18761 # if HAVE_RAW_DECL_TANL
18762 @@ -2155,7 +2325,9 @@ _GL_FUNCDECL_SYS (trunc, double, (double x));
18763 # endif
18764 _GL_CXXALIAS_SYS (trunc, double, (double x));
18765 # endif
18766 -_GL_CXXALIASWARN (trunc);
18767 +# if __GLIBC__ >= 2
18768 +_GL_CXXALIASWARN1 (trunc, double, (double x));
18769 +# endif
18770 #elif defined GNULIB_POSIXCHECK
18771 # undef trunc
18772 # if HAVE_RAW_DECL_TRUNC
18773 @@ -2188,6 +2360,55 @@ _GL_WARN_ON_USE (truncl, "truncl is unportable - "
18774 #endif
18775
18776
18777 +#if @GNULIB_MDA_Y0@
18778 +/* On native Windows, map 'y0' to '_y0', so that -loldnames is not
18779 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
18780 + platforms by defining GNULIB_NAMESPACE::y0 always. */
18781 +# if defined _WIN32 && !defined __CYGWIN__
18782 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
18783 +# undef y0
18784 +# define y0 _y0
18785 +# endif
18786 +_GL_CXXALIAS_MDA (y0, double, (double x));
18787 +# else
18788 +_GL_CXXALIAS_SYS (y0, double, (double x));
18789 +# endif
18790 +_GL_CXXALIASWARN (y0);
18791 +#endif
18792 +
18793 +#if @GNULIB_MDA_Y1@
18794 +/* On native Windows, map 'y1' to '_y1', so that -loldnames is not
18795 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
18796 + platforms by defining GNULIB_NAMESPACE::y1 always. */
18797 +# if defined _WIN32 && !defined __CYGWIN__
18798 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
18799 +# undef y1
18800 +# define y1 _y1
18801 +# endif
18802 +_GL_CXXALIAS_MDA (y1, double, (double x));
18803 +# else
18804 +_GL_CXXALIAS_SYS (y1, double, (double x));
18805 +# endif
18806 +_GL_CXXALIASWARN (y1);
18807 +#endif
18808 +
18809 +#if @GNULIB_MDA_YN@
18810 +/* On native Windows, map 'yn' to '_yn', so that -loldnames is not
18811 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
18812 + platforms by defining GNULIB_NAMESPACE::yn always. */
18813 +# if defined _WIN32 && !defined __CYGWIN__
18814 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
18815 +# undef yn
18816 +# define yn _yn
18817 +# endif
18818 +_GL_CXXALIAS_MDA (yn, double, (int n, double x));
18819 +# else
18820 +_GL_CXXALIAS_SYS (yn, double, (int n, double x));
18821 +# endif
18822 +_GL_CXXALIASWARN (yn);
18823 +#endif
18824 +
18825 +
18826 /* Definitions of function-like macros come here, after the function
18827 declarations. */
18828
18829 @@ -2207,7 +2428,14 @@ _GL_EXTERN_C int gl_isfinitel (long double x);
18830 # if defined isfinite || defined GNULIB_NAMESPACE
18831 _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isfinite)
18832 # undef isfinite
18833 -_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite)
18834 +# if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined _AIX || (defined _WIN32 && !defined __CYGWIN__)))
18835 + /* This platform's <cmath> possibly defines isfinite through a set of inline
18836 + functions. */
18837 +_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, rpl_isfinite, bool)
18838 +# define isfinite rpl_isfinite
18839 +# else
18840 +_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isfinite, isfinite, bool)
18841 +# endif
18842 # endif
18843 # endif
18844 #elif defined GNULIB_POSIXCHECK
18845 @@ -2234,7 +2462,14 @@ _GL_EXTERN_C int gl_isinfl (long double x);
18846 # if defined isinf || defined GNULIB_NAMESPACE
18847 _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isinf)
18848 # undef isinf
18849 -_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isinf)
18850 +# if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || (defined _WIN32 && !defined __CYGWIN__)))
18851 + /* This platform's <cmath> possibly defines isinf through a set of inline
18852 + functions. */
18853 +_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isinf, rpl_isinf, bool)
18854 +# define isinf rpl_isinf
18855 +# else
18856 +_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isinf, isinf, bool)
18857 +# endif
18858 # endif
18859 # endif
18860 #elif defined GNULIB_POSIXCHECK
18861 @@ -2251,10 +2486,11 @@ _GL_WARN_REAL_FLOATING_DECL (isinf);
18862 # if @HAVE_ISNANF@
18863 /* The original <math.h> included above provides a declaration of isnan macro
18864 or (older) isnanf function. */
18865 -# if __GNUC__ >= 4
18866 - /* GCC 4.0 and newer provides three built-ins for isnan. */
18867 +# if (__GNUC__ >= 4) || (__clang_major__ >= 4)
18868 + /* GCC >= 4.0 and clang provide a type-generic built-in for isnan.
18869 + GCC >= 4.0 also provides __builtin_isnanf, but clang doesn't. */
18870 # undef isnanf
18871 -# define isnanf(x) __builtin_isnanf ((float)(x))
18872 +# define isnanf(x) __builtin_isnan ((float)(x))
18873 # elif defined isnan
18874 # undef isnanf
18875 # define isnanf(x) isnan ((float)(x))
18876 @@ -2274,8 +2510,8 @@ _GL_EXTERN_C int isnanf (float x);
18877 # if @HAVE_ISNAND@
18878 /* The original <math.h> included above provides a declaration of isnan
18879 macro. */
18880 -# if __GNUC__ >= 4
18881 - /* GCC 4.0 and newer provides three built-ins for isnan. */
18882 +# if (__GNUC__ >= 4) || (__clang_major__ >= 4)
18883 + /* GCC >= 4.0 and clang provide a type-generic built-in for isnan. */
18884 # undef isnand
18885 # define isnand(x) __builtin_isnan ((double)(x))
18886 # else
18887 @@ -2295,10 +2531,11 @@ _GL_EXTERN_C int isnand (double x);
18888 # if @HAVE_ISNANL@
18889 /* The original <math.h> included above provides a declaration of isnan
18890 macro or (older) isnanl function. */
18891 -# if __GNUC__ >= 4
18892 - /* GCC 4.0 and newer provides three built-ins for isnan. */
18893 +# if (__GNUC__ >= 4) || (__clang_major__ >= 4)
18894 + /* GCC >= 4.0 and clang provide a type-generic built-in for isnan.
18895 + GCC >= 4.0 also provides __builtin_isnanl, but clang doesn't. */
18896 # undef isnanl
18897 -# define isnanl(x) __builtin_isnanl ((long double)(x))
18898 +# define isnanl(x) __builtin_isnan ((long double)(x))
18899 # elif defined isnan
18900 # undef isnanl
18901 # define isnanl(x) isnan ((long double)(x))
18902 @@ -2318,20 +2555,20 @@ _GL_EXTERN_C int isnanl (long double x) _GL_ATTRIBUTE_CONST;
18903 isnanf.h (e.g.) here, because those may end up being macros
18904 that recursively expand back to isnan. So use the gnulib
18905 replacements for them directly. */
18906 -# if @HAVE_ISNANF@ && __GNUC__ >= 4
18907 -# define gl_isnan_f(x) __builtin_isnanf ((float)(x))
18908 +# if @HAVE_ISNANF@ && (__GNUC__ >= 4) || (__clang_major__ >= 4)
18909 +# define gl_isnan_f(x) __builtin_isnan ((float)(x))
18910 # else
18911 _GL_EXTERN_C int rpl_isnanf (float x);
18912 # define gl_isnan_f(x) rpl_isnanf (x)
18913 # endif
18914 -# if @HAVE_ISNAND@ && __GNUC__ >= 4
18915 +# if @HAVE_ISNAND@ && (__GNUC__ >= 4) || (__clang_major__ >= 4)
18916 # define gl_isnan_d(x) __builtin_isnan ((double)(x))
18917 # else
18918 _GL_EXTERN_C int rpl_isnand (double x);
18919 # define gl_isnan_d(x) rpl_isnand (x)
18920 # endif
18921 -# if @HAVE_ISNANL@ && __GNUC__ >= 4
18922 -# define gl_isnan_l(x) __builtin_isnanl ((long double)(x))
18923 +# if @HAVE_ISNANL@ && (__GNUC__ >= 4) || (__clang_major__ >= 4)
18924 +# define gl_isnan_l(x) __builtin_isnan ((long double)(x))
18925 # else
18926 _GL_EXTERN_C int rpl_isnanl (long double x) _GL_ATTRIBUTE_CONST;
18927 # define gl_isnan_l(x) rpl_isnanl (x)
18928 @@ -2341,18 +2578,25 @@ _GL_EXTERN_C int rpl_isnanl (long double x) _GL_ATTRIBUTE_CONST;
18929 (sizeof (x) == sizeof (long double) ? gl_isnan_l (x) : \
18930 sizeof (x) == sizeof (double) ? gl_isnan_d (x) : \
18931 gl_isnan_f (x))
18932 -# elif __GNUC__ >= 4
18933 +# elif (__GNUC__ >= 4) || (__clang_major__ >= 4)
18934 # undef isnan
18935 # define isnan(x) \
18936 - (sizeof (x) == sizeof (long double) ? __builtin_isnanl ((long double)(x)) : \
18937 + (sizeof (x) == sizeof (long double) ? __builtin_isnan ((long double)(x)) : \
18938 sizeof (x) == sizeof (double) ? __builtin_isnan ((double)(x)) : \
18939 - __builtin_isnanf ((float)(x)))
18940 + __builtin_isnan ((float)(x)))
18941 # endif
18942 # ifdef __cplusplus
18943 # if defined isnan || defined GNULIB_NAMESPACE
18944 _GL_MATH_CXX_REAL_FLOATING_DECL_1 (isnan)
18945 # undef isnan
18946 -_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan)
18947 +# if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__ && __clang_major__ < 12) || (defined __FreeBSD__ && __clang_major__ < 7) || defined __OpenBSD__ || (defined _WIN32 && !defined __CYGWIN__)))
18948 + /* This platform's <cmath> possibly defines isnan through a set of inline
18949 + functions. */
18950 +_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, rpl_isnan, bool)
18951 +# define isnan rpl_isnan
18952 +# else
18953 +_GL_MATH_CXX_REAL_FLOATING_DECL_2 (isnan, isnan, bool)
18954 +# endif
18955 # endif
18956 # else
18957 /* Ensure isnan is a macro. */
18958 @@ -2370,21 +2614,21 @@ _GL_WARN_REAL_FLOATING_DECL (isnan);
18959
18960
18961 #if @GNULIB_SIGNBIT@
18962 -# if (@REPLACE_SIGNBIT_USING_GCC@ \
18963 +# if (@REPLACE_SIGNBIT_USING_BUILTINS@ \
18964 && (!defined __cplusplus || __cplusplus < 201103))
18965 # undef signbit
18966 - /* GCC 4.0 and newer provides three built-ins for signbit. */
18967 + /* GCC >= 4.0 and clang provide three built-ins for signbit. */
18968 # define signbit(x) \
18969 (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
18970 sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
18971 __builtin_signbitf (x))
18972 # endif
18973 -# if @REPLACE_SIGNBIT@
18974 +# if @REPLACE_SIGNBIT@ && !GNULIB_defined_signbit
18975 # undef signbit
18976 _GL_EXTERN_C int gl_signbitf (float arg);
18977 _GL_EXTERN_C int gl_signbitd (double arg);
18978 _GL_EXTERN_C int gl_signbitl (long double arg);
18979 -# if __GNUC__ >= 2 && !defined __STRICT_ANSI__
18980 +# if (__GNUC__ >= 2 || defined __clang__) && !defined __STRICT_ANSI__
18981 # define _GL_NUM_UINT_WORDS(type) \
18982 ((sizeof (type) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
18983 # if defined FLT_SIGNBIT_WORD && defined FLT_SIGNBIT_BIT && !defined gl_signbitf
18984 @@ -2422,12 +2666,20 @@ _GL_EXTERN_C int gl_signbitl (long double arg);
18985 (sizeof (x) == sizeof (long double) ? gl_signbitl (x) : \
18986 sizeof (x) == sizeof (double) ? gl_signbitd (x) : \
18987 gl_signbitf (x))
18988 +# define GNULIB_defined_signbit 1
18989 # endif
18990 # ifdef __cplusplus
18991 # if defined signbit || defined GNULIB_NAMESPACE
18992 _GL_MATH_CXX_REAL_FLOATING_DECL_1 (signbit)
18993 # undef signbit
18994 -_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit)
18995 +# if __GNUC__ >= 6 || (defined __clang__ && !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined _AIX || (defined _WIN32 && !defined __CYGWIN__)))
18996 + /* This platform's <cmath> possibly defines signbit through a set of inline
18997 + functions. */
18998 +_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, rpl_signbit, bool)
18999 +# define signbit rpl_signbit
19000 +# else
19001 +_GL_MATH_CXX_REAL_FLOATING_DECL_2 (signbit, signbit, bool)
19002 +# endif
19003 # endif
19004 # endif
19005 #elif defined GNULIB_POSIXCHECK
19006 @@ -2441,4 +2693,5 @@ _GL_WARN_REAL_FLOATING_DECL (signbit);
19007 _GL_INLINE_HEADER_END
19008
19009 #endif /* _@GUARD_PREFIX@_MATH_H */
19010 +#endif /* _GL_INCLUDING_MATH_H */
19011 #endif /* _@GUARD_PREFIX@_MATH_H */
19012
19013 diff --git a/autotools/gnulib/memchr.c b/autotools/gnulib/memchr.c
19014 index 4e0c5f9..0ca7b30 100644
19015 --- a/autotools/gnulib/memchr.c
19016 +++ b/autotools/gnulib/memchr.c
19017 @@ -1,4 +1,4 @@
19018 -/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2019
19019 +/* Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2004, 2006, 2008-2022
19020 Free Software Foundation, Inc.
19021
19022 Based on strlen implementation by Torbjorn Granlund (tege@××××.se),
19023 @@ -7,21 +7,21 @@
19024 adaptation to memchr suggested by Dick Karpinski (dick@××××××××.edu),
19025 and implemented by Roland McGrath (roland@××××××.edu).
19026
19027 -NOTE: The canonical source of this file is maintained with the GNU C Library.
19028 -Bugs can be reported to bug-glibc@×××××××××××.edu.
19029 + NOTE: The canonical source of this file is maintained with the GNU C Library.
19030 + Bugs can be reported to bug-glibc@×××××××××××.edu.
19031
19032 -This program is free software: you can redistribute it and/or modify it
19033 -under the terms of the GNU General Public License as published by the
19034 -Free Software Foundation; either version 3 of the License, or any
19035 -later version.
19036 + This file is free software: you can redistribute it and/or modify
19037 + it under the terms of the GNU Lesser General Public License as
19038 + published by the Free Software Foundation; either version 2.1 of the
19039 + License, or (at your option) any later version.
19040
19041 -This program is distributed in the hope that it will be useful,
19042 -but WITHOUT ANY WARRANTY; without even the implied warranty of
19043 -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19044 -GNU General Public License for more details.
19045 + This file is distributed in the hope that it will be useful,
19046 + but WITHOUT ANY WARRANTY; without even the implied warranty of
19047 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19048 + GNU Lesser General Public License for more details.
19049
19050 -You should have received a copy of the GNU General Public License
19051 -along with this program. If not, see <https://www.gnu.org/licenses/>. */
19052 + You should have received a copy of the GNU Lesser General Public License
19053 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
19054
19055 #ifndef _LIBC
19056 # include <config.h>
19057
19058 diff --git a/autotools/gnulib/memchr.valgrind b/autotools/gnulib/memchr.valgrind
19059 index 60f247e..cb0f351 100644
19060 --- a/autotools/gnulib/memchr.valgrind
19061 +++ b/autotools/gnulib/memchr.valgrind
19062 @@ -1,4 +1,20 @@
19063 # Suppress a valgrind message about use of uninitialized memory in memchr().
19064 +
19065 +# Copyright (C) 2009-2022 Free Software Foundation, Inc.
19066 +#
19067 +# This file is free software: you can redistribute it and/or modify
19068 +# it under the terms of the GNU Lesser General Public License as
19069 +# published by the Free Software Foundation; either version 2.1 of the
19070 +# License, or (at your option) any later version.
19071 +#
19072 +# This file is distributed in the hope that it will be useful,
19073 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
19074 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19075 +# GNU Lesser General Public License for more details.
19076 +#
19077 +# You should have received a copy of the GNU Lesser General Public License
19078 +# along with this program. If not, see <https://www.gnu.org/licenses/>.
19079 +
19080 # POSIX states that when the character is found, memchr must not read extra
19081 # bytes in an overestimated length (for example, where memchr is used to
19082 # implement strnlen). However, we use a safe word read to provide a speedup.
19083
19084 diff --git a/autotools/gnulib/mempcpy.c b/autotools/gnulib/mempcpy.c
19085 index d0220e1..9aae418 100644
19086 --- a/autotools/gnulib/mempcpy.c
19087 +++ b/autotools/gnulib/mempcpy.c
19088 @@ -1,24 +1,27 @@
19089 /* Copy memory area and return pointer after last written byte.
19090 - Copyright (C) 2003, 2007, 2009-2019 Free Software Foundation, Inc.
19091 + Copyright (C) 2003, 2007, 2009-2022 Free Software Foundation, Inc.
19092
19093 - This program is free software; you can redistribute it and/or modify
19094 - it under the terms of the GNU General Public License as published by
19095 - the Free Software Foundation; either version 3, or (at your option)
19096 - any later version.
19097 + This file is free software: you can redistribute it and/or modify
19098 + it under the terms of the GNU Lesser General Public License as
19099 + published by the Free Software Foundation; either version 2.1 of the
19100 + License, or (at your option) any later version.
19101
19102 - This program is distributed in the hope that it will be useful,
19103 + This file is distributed in the hope that it will be useful,
19104 but WITHOUT ANY WARRANTY; without even the implied warranty of
19105 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19106 - GNU General Public License for more details.
19107 + GNU Lesser General Public License for more details.
19108
19109 - You should have received a copy of the GNU General Public License
19110 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
19111 + You should have received a copy of the GNU Lesser General Public License
19112 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
19113
19114 #include <config.h>
19115
19116 /* Specification. */
19117 #include <string.h>
19118
19119 +/* A function definition is only needed if HAVE_MEMPCPY is not defined. */
19120 +#if !HAVE_MEMPCPY
19121 +
19122 /* Copy N bytes of SRC to DEST, return pointer to bytes after the
19123 last written byte. */
19124 void *
19125 @@ -26,3 +29,5 @@ mempcpy (void *dest, const void *src, size_t n)
19126 {
19127 return (char *) memcpy (dest, src, n) + n;
19128 }
19129 +
19130 +#endif
19131
19132 diff --git a/autotools/gnulib/memrchr.c b/autotools/gnulib/memrchr.c
19133 index 9602283..90fdb86 100644
19134 --- a/autotools/gnulib/memrchr.c
19135 +++ b/autotools/gnulib/memrchr.c
19136 @@ -1,6 +1,6 @@
19137 /* memrchr -- find the last occurrence of a byte in a memory block
19138
19139 - Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2019 Free Software
19140 + Copyright (C) 1991, 1993, 1996-1997, 1999-2000, 2003-2022 Free Software
19141 Foundation, Inc.
19142
19143 Based on strlen implementation by Torbjorn Granlund (tege@××××.se),
19144 @@ -9,17 +9,17 @@
19145 adaptation to memchr suggested by Dick Karpinski (dick@××××××××.edu),
19146 and implemented by Roland McGrath (roland@××××××.edu).
19147
19148 - This program is free software: you can redistribute it and/or modify
19149 - it under the terms of the GNU General Public License as published by
19150 - the Free Software Foundation; either version 3 of the License, or
19151 - (at your option) any later version.
19152 + This file is free software: you can redistribute it and/or modify
19153 + it under the terms of the GNU Lesser General Public License as
19154 + published by the Free Software Foundation, either version 3 of the
19155 + License, or (at your option) any later version.
19156
19157 - This program is distributed in the hope that it will be useful,
19158 + This file is distributed in the hope that it will be useful,
19159 but WITHOUT ANY WARRANTY; without even the implied warranty of
19160 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19161 - GNU General Public License for more details.
19162 + GNU Lesser General Public License for more details.
19163
19164 - You should have received a copy of the GNU General Public License
19165 + You should have received a copy of the GNU Lesser General Public License
19166 along with this program. If not, see <https://www.gnu.org/licenses/>. */
19167
19168 #if defined _LIBC
19169
19170 diff --git a/autotools/gnulib/mkdir.c b/autotools/gnulib/mkdir.c
19171 index b8320d0..4901701 100644
19172 --- a/autotools/gnulib/mkdir.c
19173 +++ b/autotools/gnulib/mkdir.c
19174 @@ -1,19 +1,19 @@
19175 /* On some systems, mkdir ("foo/", 0700) fails because of the trailing
19176 slash. On those systems, this wrapper removes the trailing slash.
19177
19178 - Copyright (C) 2001, 2003, 2006, 2008-2019 Free Software Foundation, Inc.
19179 + Copyright (C) 2001, 2003, 2006, 2008-2022 Free Software Foundation, Inc.
19180
19181 - This program is free software: you can redistribute it and/or modify
19182 - it under the terms of the GNU General Public License as published by
19183 - the Free Software Foundation; either version 3 of the License, or
19184 - (at your option) any later version.
19185 + This file is free software: you can redistribute it and/or modify
19186 + it under the terms of the GNU Lesser General Public License as
19187 + published by the Free Software Foundation; either version 2.1 of the
19188 + License, or (at your option) any later version.
19189
19190 - This program is distributed in the hope that it will be useful,
19191 + This file is distributed in the hope that it will be useful,
19192 but WITHOUT ANY WARRANTY; without even the implied warranty of
19193 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19194 - GNU General Public License for more details.
19195 + GNU Lesser General Public License for more details.
19196
19197 - You should have received a copy of the GNU General Public License
19198 + You should have received a copy of the GNU Lesser General Public License
19199 along with this program. If not, see <https://www.gnu.org/licenses/>. */
19200
19201 /* written by Jim Meyering */
19202 @@ -48,7 +48,7 @@
19203 /* This function is required at least for NetBSD 1.5.2. */
19204
19205 int
19206 -rpl_mkdir (char const *dir, mode_t mode maybe_unused)
19207 +rpl_mkdir (char const *dir, maybe_unused mode_t mode)
19208 {
19209 int ret_val;
19210 char *tmp_dir;
19211 @@ -77,7 +77,7 @@ rpl_mkdir (char const *dir, mode_t mode maybe_unused)
19212 || (last[1] == '.' && last[2] == '\0')))
19213 {
19214 struct stat st;
19215 - if (stat (tmp_dir, &st) == 0)
19216 + if (stat (tmp_dir, &st) == 0 || errno == EOVERFLOW)
19217 errno = EEXIST;
19218 return -1;
19219 }
19220
19221 diff --git a/autotools/gnulib/mkdirat.c b/autotools/gnulib/mkdirat.c
19222 index 21c09cc..7c5a97c 100644
19223 --- a/autotools/gnulib/mkdirat.c
19224 +++ b/autotools/gnulib/mkdirat.c
19225 @@ -1,9 +1,9 @@
19226 /* fd-relative mkdir
19227 - Copyright (C) 2005-2006, 2009-2019 Free Software Foundation, Inc.
19228 + Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc.
19229
19230 This program is free software: you can redistribute it and/or modify
19231 it under the terms of the GNU General Public License as published by
19232 - the Free Software Foundation; either version 3 of the License, or
19233 + the Free Software Foundation, either version 3 of the License, or
19234 (at your option) any later version.
19235
19236 This program is distributed in the hope that it will be useful,
19237 @@ -18,6 +18,10 @@
19238
19239 #include <config.h>
19240
19241 +/* Specification. */
19242 +#include <sys/stat.h>
19243 +
19244 +#include <stdlib.h>
19245 #include <unistd.h>
19246
19247 /* Solaris 10 has no function like this.
19248
19249 diff --git a/autotools/gnulib/msvc-inval.c b/autotools/gnulib/msvc-inval.c
19250 index 75b5a07..d6651ca 100644
19251 --- a/autotools/gnulib/msvc-inval.c
19252 +++ b/autotools/gnulib/msvc-inval.c
19253 @@ -1,18 +1,18 @@
19254 /* Invalid parameter handler for MSVC runtime libraries.
19255 - Copyright (C) 2011-2019 Free Software Foundation, Inc.
19256 + Copyright (C) 2011-2022 Free Software Foundation, Inc.
19257
19258 - This program is free software; you can redistribute it and/or modify
19259 - it under the terms of the GNU General Public License as published by
19260 - the Free Software Foundation; either version 3, or (at your option)
19261 - any later version.
19262 + This file is free software: you can redistribute it and/or modify
19263 + it under the terms of the GNU Lesser General Public License as
19264 + published by the Free Software Foundation; either version 2.1 of the
19265 + License, or (at your option) any later version.
19266
19267 - This program is distributed in the hope that it will be useful,
19268 + This file is distributed in the hope that it will be useful,
19269 but WITHOUT ANY WARRANTY; without even the implied warranty of
19270 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19271 - GNU General Public License for more details.
19272 + GNU Lesser General Public License for more details.
19273
19274 - You should have received a copy of the GNU General Public License along
19275 - with this program; if not, see <https://www.gnu.org/licenses/>. */
19276 + You should have received a copy of the GNU Lesser General Public License
19277 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
19278
19279 #include <config.h>
19280
19281
19282 diff --git a/autotools/gnulib/msvc-inval.h b/autotools/gnulib/msvc-inval.h
19283 index 9d3aa1f..1230b89 100644
19284 --- a/autotools/gnulib/msvc-inval.h
19285 +++ b/autotools/gnulib/msvc-inval.h
19286 @@ -1,18 +1,18 @@
19287 /* Invalid parameter handler for MSVC runtime libraries.
19288 - Copyright (C) 2011-2019 Free Software Foundation, Inc.
19289 + Copyright (C) 2011-2022 Free Software Foundation, Inc.
19290
19291 - This program is free software; you can redistribute it and/or modify
19292 - it under the terms of the GNU General Public License as published by
19293 - the Free Software Foundation; either version 3, or (at your option)
19294 - any later version.
19295 + This file is free software: you can redistribute it and/or modify
19296 + it under the terms of the GNU Lesser General Public License as
19297 + published by the Free Software Foundation; either version 2.1 of the
19298 + License, or (at your option) any later version.
19299
19300 - This program is distributed in the hope that it will be useful,
19301 + This file is distributed in the hope that it will be useful,
19302 but WITHOUT ANY WARRANTY; without even the implied warranty of
19303 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19304 - GNU General Public License for more details.
19305 + GNU Lesser General Public License for more details.
19306
19307 - You should have received a copy of the GNU General Public License along
19308 - with this program; if not, see <https://www.gnu.org/licenses/>. */
19309 + You should have received a copy of the GNU Lesser General Public License
19310 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
19311
19312 #ifndef _MSVC_INVAL_H
19313 #define _MSVC_INVAL_H
19314
19315 diff --git a/autotools/gnulib/msvc-nothrow.c b/autotools/gnulib/msvc-nothrow.c
19316 index 49b709c..aa06964 100644
19317 --- a/autotools/gnulib/msvc-nothrow.c
19318 +++ b/autotools/gnulib/msvc-nothrow.c
19319 @@ -1,19 +1,19 @@
19320 /* Wrappers that don't throw invalid parameter notifications
19321 with MSVC runtime libraries.
19322 - Copyright (C) 2011-2019 Free Software Foundation, Inc.
19323 + Copyright (C) 2011-2022 Free Software Foundation, Inc.
19324
19325 - This program is free software; you can redistribute it and/or modify
19326 - it under the terms of the GNU General Public License as published by
19327 - the Free Software Foundation; either version 3, or (at your option)
19328 - any later version.
19329 + This file is free software: you can redistribute it and/or modify
19330 + it under the terms of the GNU Lesser General Public License as
19331 + published by the Free Software Foundation; either version 2.1 of the
19332 + License, or (at your option) any later version.
19333
19334 - This program is distributed in the hope that it will be useful,
19335 + This file is distributed in the hope that it will be useful,
19336 but WITHOUT ANY WARRANTY; without even the implied warranty of
19337 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19338 - GNU General Public License for more details.
19339 + GNU Lesser General Public License for more details.
19340
19341 - You should have received a copy of the GNU General Public License along
19342 - with this program; if not, see <https://www.gnu.org/licenses/>. */
19343 + You should have received a copy of the GNU Lesser General Public License
19344 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
19345
19346 #include <config.h>
19347
19348
19349 diff --git a/autotools/gnulib/msvc-nothrow.h b/autotools/gnulib/msvc-nothrow.h
19350 index 8d3ca78..5345155 100644
19351 --- a/autotools/gnulib/msvc-nothrow.h
19352 +++ b/autotools/gnulib/msvc-nothrow.h
19353 @@ -1,19 +1,19 @@
19354 /* Wrappers that don't throw invalid parameter notifications
19355 with MSVC runtime libraries.
19356 - Copyright (C) 2011-2019 Free Software Foundation, Inc.
19357 + Copyright (C) 2011-2022 Free Software Foundation, Inc.
19358
19359 - This program is free software; you can redistribute it and/or modify
19360 - it under the terms of the GNU General Public License as published by
19361 - the Free Software Foundation; either version 3, or (at your option)
19362 - any later version.
19363 + This file is free software: you can redistribute it and/or modify
19364 + it under the terms of the GNU Lesser General Public License as
19365 + published by the Free Software Foundation; either version 2.1 of the
19366 + License, or (at your option) any later version.
19367
19368 - This program is distributed in the hope that it will be useful,
19369 + This file is distributed in the hope that it will be useful,
19370 but WITHOUT ANY WARRANTY; without even the implied warranty of
19371 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19372 - GNU General Public License for more details.
19373 + GNU Lesser General Public License for more details.
19374
19375 - You should have received a copy of the GNU General Public License along
19376 - with this program; if not, see <https://www.gnu.org/licenses/>. */
19377 + You should have received a copy of the GNU Lesser General Public License
19378 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
19379
19380 #ifndef _MSVC_NOTHROW_H
19381 #define _MSVC_NOTHROW_H
19382
19383 diff --git a/autotools/gnulib/open.c b/autotools/gnulib/open.c
19384 index 6552605..170bff1 100644
19385 --- a/autotools/gnulib/open.c
19386 +++ b/autotools/gnulib/open.c
19387 @@ -1,17 +1,17 @@
19388 /* Open a descriptor to a file.
19389 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
19390 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
19391
19392 - This program is free software: you can redistribute it and/or modify
19393 - it under the terms of the GNU General Public License as published by
19394 - the Free Software Foundation; either version 3 of the License, or
19395 - (at your option) any later version.
19396 + This file is free software: you can redistribute it and/or modify
19397 + it under the terms of the GNU Lesser General Public License as
19398 + published by the Free Software Foundation; either version 2.1 of the
19399 + License, or (at your option) any later version.
19400
19401 - This program is distributed in the hope that it will be useful,
19402 + This file is distributed in the hope that it will be useful,
19403 but WITHOUT ANY WARRANTY; without even the implied warranty of
19404 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19405 - GNU General Public License for more details.
19406 + GNU Lesser General Public License for more details.
19407
19408 - You should have received a copy of the GNU General Public License
19409 + You should have received a copy of the GNU Lesser General Public License
19410 along with this program. If not, see <https://www.gnu.org/licenses/>. */
19411
19412 /* Written by Bruno Haible <bruno@×××××.org>, 2007. */
19413 @@ -30,7 +30,11 @@
19414 static int
19415 orig_open (const char *filename, int flags, mode_t mode)
19416 {
19417 +#if defined _WIN32 && !defined __CYGWIN__
19418 + return _open (filename, flags, mode);
19419 +#else
19420 return open (filename, flags, mode);
19421 +#endif
19422 }
19423
19424 /* Specification. */
19425 @@ -92,28 +96,27 @@ open (const char *filename, int flags, ...)
19426 #endif
19427
19428 #if OPEN_TRAILING_SLASH_BUG
19429 - /* If the filename ends in a slash and one of O_CREAT, O_WRONLY, O_RDWR
19430 - is specified, then fail.
19431 - Rationale: POSIX <http://www.opengroup.org/susv3/basedefs/xbd_chap04.html>
19432 - says that
19433 - "A pathname that contains at least one non-slash character and that
19434 - ends with one or more trailing slashes shall be resolved as if a
19435 - single dot character ( '.' ) were appended to the pathname."
19436 - and
19437 - "The special filename dot shall refer to the directory specified by
19438 - its predecessor."
19439 + /* Fail if one of O_CREAT, O_WRONLY, O_RDWR is specified and the filename
19440 + ends in a slash, as POSIX says such a filename must name a directory
19441 + <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>:
19442 + "A pathname that contains at least one non-<slash> character and that
19443 + ends with one or more trailing <slash> characters shall not be resolved
19444 + successfully unless the last pathname component before the trailing
19445 + <slash> characters names an existing directory"
19446 If the named file already exists as a directory, then
19447 - if O_CREAT is specified, open() must fail because of the semantics
19448 of O_CREAT,
19449 - if O_WRONLY or O_RDWR is specified, open() must fail because POSIX
19450 - <http://www.opengroup.org/susv3/functions/open.html> says that it
19451 - fails with errno = EISDIR in this case.
19452 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html>
19453 + says that it fails with errno = EISDIR in this case.
19454 If the named file does not exist or does not name a directory, then
19455 - if O_CREAT is specified, open() must fail since open() cannot create
19456 directories,
19457 - if O_WRONLY or O_RDWR is specified, open() must fail because the
19458 file does not contain a '.' directory. */
19459 - if (flags & (O_CREAT | O_WRONLY | O_RDWR))
19460 + if ((flags & O_CREAT)
19461 + || (flags & O_ACCMODE) == O_RDWR
19462 + || (flags & O_ACCMODE) == O_WRONLY)
19463 {
19464 size_t len = strlen (filename);
19465 if (len > 0 && filename[len - 1] == '/')
19466 @@ -125,7 +128,7 @@ open (const char *filename, int flags, ...)
19467 #endif
19468
19469 fd = orig_open (filename,
19470 - flags & ~(have_cloexec <= 0 ? O_CLOEXEC : 0), mode);
19471 + flags & ~(have_cloexec < 0 ? O_CLOEXEC : 0), mode);
19472
19473 if (flags & O_CLOEXEC)
19474 {
19475 @@ -171,14 +174,12 @@ open (const char *filename, int flags, ...)
19476 #if OPEN_TRAILING_SLASH_BUG
19477 /* If the filename ends in a slash and fd does not refer to a directory,
19478 then fail.
19479 - Rationale: POSIX <http://www.opengroup.org/susv3/basedefs/xbd_chap04.html>
19480 - says that
19481 - "A pathname that contains at least one non-slash character and that
19482 - ends with one or more trailing slashes shall be resolved as if a
19483 - single dot character ( '.' ) were appended to the pathname."
19484 - and
19485 - "The special filename dot shall refer to the directory specified by
19486 - its predecessor."
19487 + Rationale: POSIX says such a filename must name a directory
19488 + <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>:
19489 + "A pathname that contains at least one non-<slash> character and that
19490 + ends with one or more trailing <slash> characters shall not be resolved
19491 + successfully unless the last pathname component before the trailing
19492 + <slash> characters names an existing directory"
19493 If the named file without the slash is not a directory, open() must fail
19494 with ENOTDIR. */
19495 if (fd >= 0)
19496
19497 diff --git a/autotools/gnulib/openat-die.c b/autotools/gnulib/openat-die.c
19498 index 690c447..486d06c 100644
19499 --- a/autotools/gnulib/openat-die.c
19500 +++ b/autotools/gnulib/openat-die.c
19501 @@ -1,10 +1,10 @@
19502 /* Report a save- or restore-cwd failure in our openat replacement and then exit.
19503
19504 - Copyright (C) 2005-2006, 2008-2019 Free Software Foundation, Inc.
19505 + Copyright (C) 2005-2006, 2008-2022 Free Software Foundation, Inc.
19506
19507 This program is free software: you can redistribute it and/or modify
19508 it under the terms of the GNU General Public License as published by
19509 - the Free Software Foundation; either version 3 of the License, or
19510 + the Free Software Foundation, either version 3 of the License, or
19511 (at your option) any later version.
19512
19513 This program is distributed in the hope that it will be useful,
19514
19515 diff --git a/autotools/gnulib/openat-priv.h b/autotools/gnulib/openat-priv.h
19516 index 7b90eef..5d60810 100644
19517 --- a/autotools/gnulib/openat-priv.h
19518 +++ b/autotools/gnulib/openat-priv.h
19519 @@ -1,10 +1,10 @@
19520 /* Internals for openat-like functions.
19521
19522 - Copyright (C) 2005-2006, 2009-2019 Free Software Foundation, Inc.
19523 + Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc.
19524
19525 This program is free software: you can redistribute it and/or modify
19526 it under the terms of the GNU General Public License as published by
19527 - the Free Software Foundation; either version 3 of the License, or
19528 + the Free Software Foundation, either version 3 of the License, or
19529 (at your option) any later version.
19530
19531 This program is distributed in the hope that it will be useful,
19532
19533 diff --git a/autotools/gnulib/openat-proc.c b/autotools/gnulib/openat-proc.c
19534 index da76e2b..3bacf7d 100644
19535 --- a/autotools/gnulib/openat-proc.c
19536 +++ b/autotools/gnulib/openat-proc.c
19537 @@ -1,10 +1,10 @@
19538 /* Create /proc/self/fd-related names for subfiles of open directories.
19539
19540 - Copyright (C) 2006, 2009-2019 Free Software Foundation, Inc.
19541 + Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc.
19542
19543 This program is free software: you can redistribute it and/or modify
19544 it under the terms of the GNU General Public License as published by
19545 - the Free Software Foundation; either version 3 of the License, or
19546 + the Free Software Foundation, either version 3 of the License, or
19547 (at your option) any later version.
19548
19549 This program is distributed in the hope that it will be useful,
19550 @@ -73,8 +73,9 @@ openat_proc_name (char buf[OPENAT_BUFFER_SIZE], int fd, char const *file)
19551 problem is exhibited on code that built on Solaris 8 and
19552 running on Solaris 10. */
19553
19554 - int proc_self_fd = open ("/proc/self/fd",
19555 - O_SEARCH | O_DIRECTORY | O_NOCTTY | O_NONBLOCK);
19556 + int proc_self_fd =
19557 + open ("/proc/self/fd",
19558 + O_SEARCH | O_DIRECTORY | O_NOCTTY | O_NONBLOCK | O_CLOEXEC);
19559 if (proc_self_fd < 0)
19560 proc_status = -1;
19561 else
19562
19563 diff --git a/autotools/gnulib/openat.c b/autotools/gnulib/openat.c
19564 index 4ab4a31..52aab19 100644
19565 --- a/autotools/gnulib/openat.c
19566 +++ b/autotools/gnulib/openat.c
19567 @@ -1,9 +1,9 @@
19568 /* provide a replacement openat function
19569 - Copyright (C) 2004-2019 Free Software Foundation, Inc.
19570 + Copyright (C) 2004-2022 Free Software Foundation, Inc.
19571
19572 This program is free software: you can redistribute it and/or modify
19573 it under the terms of the GNU General Public License as published by
19574 - the Free Software Foundation; either version 3 of the License, or
19575 + the Free Software Foundation, either version 3 of the License, or
19576 (at your option) any later version.
19577
19578 This program is distributed in the hope that it will be useful,
19579 @@ -46,6 +46,7 @@ orig_openat (int fd, char const *filename, int flags, mode_t mode)
19580 #include <stdarg.h>
19581 #include <stdbool.h>
19582 #include <stddef.h>
19583 +#include <stdlib.h>
19584 #include <string.h>
19585 #include <sys/stat.h>
19586 #include <errno.h>
19587 @@ -81,28 +82,27 @@ rpl_openat (int dfd, char const *filename, int flags, ...)
19588 }
19589
19590 # if OPEN_TRAILING_SLASH_BUG
19591 - /* If the filename ends in a slash and one of O_CREAT, O_WRONLY, O_RDWR
19592 - is specified, then fail.
19593 - Rationale: POSIX <http://www.opengroup.org/susv3/basedefs/xbd_chap04.html>
19594 - says that
19595 - "A pathname that contains at least one non-slash character and that
19596 - ends with one or more trailing slashes shall be resolved as if a
19597 - single dot character ( '.' ) were appended to the pathname."
19598 - and
19599 - "The special filename dot shall refer to the directory specified by
19600 - its predecessor."
19601 + /* Fail if one of O_CREAT, O_WRONLY, O_RDWR is specified and the filename
19602 + ends in a slash, as POSIX says such a filename must name a directory
19603 + <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>:
19604 + "A pathname that contains at least one non-<slash> character and that
19605 + ends with one or more trailing <slash> characters shall not be resolved
19606 + successfully unless the last pathname component before the trailing
19607 + <slash> characters names an existing directory"
19608 If the named file already exists as a directory, then
19609 - if O_CREAT is specified, open() must fail because of the semantics
19610 of O_CREAT,
19611 - if O_WRONLY or O_RDWR is specified, open() must fail because POSIX
19612 - <http://www.opengroup.org/susv3/functions/open.html> says that it
19613 - fails with errno = EISDIR in this case.
19614 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/openat.html>
19615 + says that it fails with errno = EISDIR in this case.
19616 If the named file does not exist or does not name a directory, then
19617 - if O_CREAT is specified, open() must fail since open() cannot create
19618 directories,
19619 - if O_WRONLY or O_RDWR is specified, open() must fail because the
19620 file does not contain a '.' directory. */
19621 - if (flags & (O_CREAT | O_WRONLY | O_RDWR))
19622 + if ((flags & O_CREAT)
19623 + || (flags & O_ACCMODE) == O_RDWR
19624 + || (flags & O_ACCMODE) == O_WRONLY)
19625 {
19626 size_t len = strlen (filename);
19627 if (len > 0 && filename[len - 1] == '/')
19628 @@ -114,7 +114,7 @@ rpl_openat (int dfd, char const *filename, int flags, ...)
19629 # endif
19630
19631 fd = orig_openat (dfd, filename,
19632 - flags & ~(have_cloexec <= 0 ? O_CLOEXEC : 0), mode);
19633 + flags & ~(have_cloexec < 0 ? O_CLOEXEC : 0), mode);
19634
19635 if (flags & O_CLOEXEC)
19636 {
19637 @@ -136,14 +136,12 @@ rpl_openat (int dfd, char const *filename, int flags, ...)
19638 # if OPEN_TRAILING_SLASH_BUG
19639 /* If the filename ends in a slash and fd does not refer to a directory,
19640 then fail.
19641 - Rationale: POSIX <http://www.opengroup.org/susv3/basedefs/xbd_chap04.html>
19642 - says that
19643 - "A pathname that contains at least one non-slash character and that
19644 - ends with one or more trailing slashes shall be resolved as if a
19645 - single dot character ( '.' ) were appended to the pathname."
19646 - and
19647 - "The special filename dot shall refer to the directory specified by
19648 - its predecessor."
19649 + Rationale: POSIX says such a filename must name a directory
19650 + <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>:
19651 + "A pathname that contains at least one non-<slash> character and that
19652 + ends with one or more trailing <slash> characters shall not be resolved
19653 + successfully unless the last pathname component before the trailing
19654 + <slash> characters names an existing directory"
19655 If the named file without the slash is not a directory, open() must fail
19656 with ENOTDIR. */
19657 if (fd >= 0)
19658 @@ -169,7 +167,7 @@ rpl_openat (int dfd, char const *filename, int flags, ...)
19659
19660 #else /* !HAVE_OPENAT */
19661
19662 -# include "dosname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
19663 +# include "filename.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */
19664 # include "openat-priv.h"
19665 # include "save-cwd.h"
19666
19667 @@ -293,7 +291,7 @@ bool
19668 openat_needs_fchdir (void)
19669 {
19670 bool needs_fchdir = true;
19671 - int fd = open ("/", O_SEARCH);
19672 + int fd = open ("/", O_SEARCH | O_CLOEXEC);
19673
19674 if (0 <= fd)
19675 {
19676
19677 diff --git a/autotools/gnulib/openat.h b/autotools/gnulib/openat.h
19678 index f23b371..5c8ff90 100644
19679 --- a/autotools/gnulib/openat.h
19680 +++ b/autotools/gnulib/openat.h
19681 @@ -1,9 +1,9 @@
19682 /* provide a replacement openat function
19683 - Copyright (C) 2004-2006, 2008-2019 Free Software Foundation, Inc.
19684 + Copyright (C) 2004-2006, 2008-2022 Free Software Foundation, Inc.
19685
19686 This program is free software: you can redistribute it and/or modify
19687 it under the terms of the GNU General Public License as published by
19688 - the Free Software Foundation; either version 3 of the License, or
19689 + the Free Software Foundation, either version 3 of the License, or
19690 (at your option) any later version.
19691
19692 This program is distributed in the hope that it will be useful,
19693 @@ -52,19 +52,19 @@ _Noreturn void openat_save_fail (int);
19694 slightly more readable than it would be with
19695 fchownat (..., 0) or fchownat (..., AT_SYMLINK_NOFOLLOW). */
19696
19697 -#if GNULIB_FCHOWNAT
19698 +#if GNULIB_CHOWNAT
19699
19700 -# ifndef FCHOWNAT_INLINE
19701 -# define FCHOWNAT_INLINE _GL_INLINE
19702 +# ifndef CHOWNAT_INLINE
19703 +# define CHOWNAT_INLINE _GL_INLINE
19704 # endif
19705
19706 -FCHOWNAT_INLINE int
19707 +CHOWNAT_INLINE int
19708 chownat (int fd, char const *file, uid_t owner, gid_t group)
19709 {
19710 return fchownat (fd, file, owner, group, 0);
19711 }
19712
19713 -FCHOWNAT_INLINE int
19714 +CHOWNAT_INLINE int
19715 lchownat (int fd, char const *file, uid_t owner, gid_t group)
19716 {
19717 return fchownat (fd, file, owner, group, AT_SYMLINK_NOFOLLOW);
19718 @@ -72,19 +72,19 @@ lchownat (int fd, char const *file, uid_t owner, gid_t group)
19719
19720 #endif
19721
19722 -#if GNULIB_FCHMODAT
19723 +#if GNULIB_CHMODAT
19724
19725 -# ifndef FCHMODAT_INLINE
19726 -# define FCHMODAT_INLINE _GL_INLINE
19727 +# ifndef CHMODAT_INLINE
19728 +# define CHMODAT_INLINE _GL_INLINE
19729 # endif
19730
19731 -FCHMODAT_INLINE int
19732 +CHMODAT_INLINE int
19733 chmodat (int fd, char const *file, mode_t mode)
19734 {
19735 return fchmodat (fd, file, mode, 0);
19736 }
19737
19738 -FCHMODAT_INLINE int
19739 +CHMODAT_INLINE int
19740 lchmodat (int fd, char const *file, mode_t mode)
19741 {
19742 return fchmodat (fd, file, mode, AT_SYMLINK_NOFOLLOW);
19743
19744 diff --git a/autotools/gnulib/opendir.c b/autotools/gnulib/opendir.c
19745 index 2eb96c6..fc6b455 100644
19746 --- a/autotools/gnulib/opendir.c
19747 +++ b/autotools/gnulib/opendir.c
19748 @@ -1,17 +1,17 @@
19749 /* Start reading the entries of a directory.
19750 - Copyright (C) 2006-2019 Free Software Foundation, Inc.
19751 + Copyright (C) 2006-2022 Free Software Foundation, Inc.
19752
19753 - This program is free software: you can redistribute it and/or modify
19754 - it under the terms of the GNU General Public License as published by
19755 - the Free Software Foundation; either version 3 of the License, or
19756 - (at your option) any later version.
19757 + This file is free software: you can redistribute it and/or modify
19758 + it under the terms of the GNU Lesser General Public License as
19759 + published by the Free Software Foundation; either version 2.1 of the
19760 + License, or (at your option) any later version.
19761
19762 - This program is distributed in the hope that it will be useful,
19763 + This file is distributed in the hope that it will be useful,
19764 but WITHOUT ANY WARRANTY; without even the implied warranty of
19765 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19766 - GNU General Public License for more details.
19767 + GNU Lesser General Public License for more details.
19768
19769 - You should have received a copy of the GNU General Public License
19770 + You should have received a copy of the GNU Lesser General Public License
19771 along with this program. If not, see <https://www.gnu.org/licenses/>. */
19772
19773 #include <config.h>
19774 @@ -45,6 +45,16 @@
19775 # include <fcntl.h>
19776 #endif
19777
19778 +#if defined _WIN32 && ! defined __CYGWIN__
19779 +/* Don't assume that UNICODE is not defined. */
19780 +# undef WIN32_FIND_DATA
19781 +# define WIN32_FIND_DATA WIN32_FIND_DATAA
19782 +# undef GetFullPathName
19783 +# define GetFullPathName GetFullPathNameA
19784 +# undef FindFirstFile
19785 +# define FindFirstFile FindFirstFileA
19786 +#endif
19787 +
19788 DIR *
19789 opendir (const char *dir_name)
19790 {
19791
19792 diff --git a/autotools/gnulib/pathmax.h b/autotools/gnulib/pathmax.h
19793 index 9463a1f..19b93d7 100644
19794 --- a/autotools/gnulib/pathmax.h
19795 +++ b/autotools/gnulib/pathmax.h
19796 @@ -1,26 +1,26 @@
19797 /* Define PATH_MAX somehow. Requires sys/types.h.
19798 - Copyright (C) 1992, 1999, 2001, 2003, 2005, 2009-2019 Free Software
19799 + Copyright (C) 1992, 1999, 2001, 2003, 2005, 2009-2022 Free Software
19800 Foundation, Inc.
19801
19802 - This program is free software; you can redistribute it and/or modify
19803 - it under the terms of the GNU General Public License as published by
19804 - the Free Software Foundation; either version 3, or (at your option)
19805 - any later version.
19806 + This file is free software: you can redistribute it and/or modify
19807 + it under the terms of the GNU Lesser General Public License as
19808 + published by the Free Software Foundation; either version 2.1 of the
19809 + License, or (at your option) any later version.
19810
19811 - This program is distributed in the hope that it will be useful,
19812 + This file is distributed in the hope that it will be useful,
19813 but WITHOUT ANY WARRANTY; without even the implied warranty of
19814 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19815 - GNU General Public License for more details.
19816 + GNU Lesser General Public License for more details.
19817
19818 - You should have received a copy of the GNU General Public License
19819 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
19820 + You should have received a copy of the GNU Lesser General Public License
19821 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
19822
19823 #ifndef _PATHMAX_H
19824 # define _PATHMAX_H
19825
19826 /* POSIX:2008 defines PATH_MAX to be the maximum number of bytes in a filename,
19827 including the terminating NUL byte.
19828 - <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html>
19829 + <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html>
19830 PATH_MAX is not defined on systems which have no limit on filename length,
19831 such as GNU/Hurd.
19832
19833
19834 diff --git a/autotools/gnulib/pipe-safer.c b/autotools/gnulib/pipe-safer.c
19835 index 6201739..22f8695 100644
19836 --- a/autotools/gnulib/pipe-safer.c
19837 +++ b/autotools/gnulib/pipe-safer.c
19838 @@ -1,9 +1,9 @@
19839 /* Invoke pipe, but avoid some glitches.
19840 - Copyright (C) 2005-2006, 2009-2019 Free Software Foundation, Inc.
19841 + Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc.
19842
19843 This program is free software: you can redistribute it and/or modify
19844 it under the terms of the GNU General Public License as published by
19845 - the Free Software Foundation; either version 3 of the License, or
19846 + the Free Software Foundation, either version 3 of the License, or
19847 (at your option) any later version.
19848
19849 This program is distributed in the hope that it will be useful,
19850 @@ -30,7 +30,6 @@
19851 int
19852 pipe_safer (int fd[2])
19853 {
19854 -#if HAVE_PIPE
19855 if (pipe (fd) == 0)
19856 {
19857 int i;
19858 @@ -39,18 +38,15 @@ pipe_safer (int fd[2])
19859 fd[i] = fd_safer (fd[i]);
19860 if (fd[i] < 0)
19861 {
19862 - int e = errno;
19863 + int saved_errno = errno;
19864 close (fd[1 - i]);
19865 - errno = e;
19866 + errno = saved_errno;
19867 return -1;
19868 }
19869 }
19870
19871 return 0;
19872 }
19873 -#else
19874 - errno = ENOSYS;
19875 -#endif
19876
19877 return -1;
19878 }
19879
19880 diff --git a/autotools/gnulib/pipe.c b/autotools/gnulib/pipe.c
19881 new file mode 100644
19882 index 0000000..ce909b9
19883 --- /dev/null
19884 +++ b/autotools/gnulib/pipe.c
19885 @@ -0,0 +1,50 @@
19886 +/* Create a pipe.
19887 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
19888 +
19889 + This file is free software: you can redistribute it and/or modify
19890 + it under the terms of the GNU Lesser General Public License as
19891 + published by the Free Software Foundation; either version 2.1 of the
19892 + License, or (at your option) any later version.
19893 +
19894 + This file is distributed in the hope that it will be useful,
19895 + but WITHOUT ANY WARRANTY; without even the implied warranty of
19896 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19897 + GNU Lesser General Public License for more details.
19898 +
19899 + You should have received a copy of the GNU Lesser General Public License
19900 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
19901 +
19902 +#include <config.h>
19903 +
19904 +/* Specification. */
19905 +#include <unistd.h>
19906 +
19907 +#if defined _WIN32 && ! defined __CYGWIN__
19908 +/* Native Windows API. */
19909 +
19910 +/* Get _pipe(). */
19911 +# include <io.h>
19912 +
19913 +/* Get _O_BINARY. */
19914 +# include <fcntl.h>
19915 +
19916 +int
19917 +pipe (int fd[2])
19918 +{
19919 + /* Mingw changes fd to {-1,-1} on failure, but this violates
19920 + http://austingroupbugs.net/view.php?id=467 */
19921 + int tmp[2];
19922 + int result = _pipe (tmp, 4096, _O_BINARY);
19923 + if (!result)
19924 + {
19925 + fd[0] = tmp[0];
19926 + fd[1] = tmp[1];
19927 + }
19928 + return result;
19929 +}
19930 +
19931 +#else
19932 +
19933 +# error "This platform lacks a pipe function, and Gnulib doesn't provide a replacement. This is a bug in Gnulib."
19934 +
19935 +#endif
19936
19937 diff --git a/autotools/gnulib/printf-args.c b/autotools/gnulib/printf-args.c
19938 index e45cfbe..669c24a 100644
19939 --- a/autotools/gnulib/printf-args.c
19940 +++ b/autotools/gnulib/printf-args.c
19941 @@ -1,19 +1,19 @@
19942 /* Decomposed printf argument list.
19943 - Copyright (C) 1999, 2002-2003, 2005-2007, 2009-2019 Free Software
19944 + Copyright (C) 1999, 2002-2003, 2005-2007, 2009-2022 Free Software
19945 Foundation, Inc.
19946
19947 - This program is free software; you can redistribute it and/or modify
19948 - it under the terms of the GNU General Public License as published by
19949 - the Free Software Foundation; either version 3, or (at your option)
19950 - any later version.
19951 + This file is free software: you can redistribute it and/or modify
19952 + it under the terms of the GNU Lesser General Public License as
19953 + published by the Free Software Foundation; either version 2.1 of the
19954 + License, or (at your option) any later version.
19955
19956 - This program is distributed in the hope that it will be useful,
19957 + This file is distributed in the hope that it will be useful,
19958 but WITHOUT ANY WARRANTY; without even the implied warranty of
19959 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19960 - GNU General Public License for more details.
19961 + GNU Lesser General Public License for more details.
19962
19963 - You should have received a copy of the GNU General Public License along
19964 - with this program; if not, see <https://www.gnu.org/licenses/>. */
19965 + You should have received a copy of the GNU Lesser General Public License
19966 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
19967
19968 /* This file can be parametrized with the following macros:
19969 ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions.
19970 @@ -65,14 +65,12 @@ PRINTF_FETCHARGS (va_list args, arguments *a)
19971 case TYPE_ULONGINT:
19972 ap->a.a_ulongint = va_arg (args, unsigned long int);
19973 break;
19974 -#if HAVE_LONG_LONG_INT
19975 case TYPE_LONGLONGINT:
19976 ap->a.a_longlongint = va_arg (args, long long int);
19977 break;
19978 case TYPE_ULONGLONGINT:
19979 ap->a.a_ulonglongint = va_arg (args, unsigned long long int);
19980 break;
19981 -#endif
19982 case TYPE_DOUBLE:
19983 ap->a.a_double = va_arg (args, double);
19984 break;
19985 @@ -135,11 +133,9 @@ PRINTF_FETCHARGS (va_list args, arguments *a)
19986 case TYPE_COUNT_LONGINT_POINTER:
19987 ap->a.a_count_longint_pointer = va_arg (args, long int *);
19988 break;
19989 -#if HAVE_LONG_LONG_INT
19990 case TYPE_COUNT_LONGLONGINT_POINTER:
19991 ap->a.a_count_longlongint_pointer = va_arg (args, long long int *);
19992 break;
19993 -#endif
19994 #if ENABLE_UNISTDIO
19995 /* The unistdio extensions. */
19996 case TYPE_U8_STRING:
19997
19998 diff --git a/autotools/gnulib/printf-args.h b/autotools/gnulib/printf-args.h
19999 index 866cba0..553fe96 100644
20000 --- a/autotools/gnulib/printf-args.h
20001 +++ b/autotools/gnulib/printf-args.h
20002 @@ -1,19 +1,19 @@
20003 /* Decomposed printf argument list.
20004 - Copyright (C) 1999, 2002-2003, 2006-2007, 2011-2019 Free Software
20005 + Copyright (C) 1999, 2002-2003, 2006-2007, 2011-2022 Free Software
20006 Foundation, Inc.
20007
20008 - This program is free software; you can redistribute it and/or modify
20009 - it under the terms of the GNU General Public License as published by
20010 - the Free Software Foundation; either version 3, or (at your option)
20011 - any later version.
20012 + This file is free software: you can redistribute it and/or modify
20013 + it under the terms of the GNU Lesser General Public License as
20014 + published by the Free Software Foundation; either version 2.1 of the
20015 + License, or (at your option) any later version.
20016
20017 - This program is distributed in the hope that it will be useful,
20018 + This file is distributed in the hope that it will be useful,
20019 but WITHOUT ANY WARRANTY; without even the implied warranty of
20020 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20021 - GNU General Public License for more details.
20022 + GNU Lesser General Public License for more details.
20023
20024 - You should have received a copy of the GNU General Public License along
20025 - with this program; if not, see <https://www.gnu.org/licenses/>. */
20026 + You should have received a copy of the GNU Lesser General Public License
20027 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
20028
20029 #ifndef _PRINTF_ARGS_H
20030 #define _PRINTF_ARGS_H
20031 @@ -57,10 +57,8 @@ typedef enum
20032 TYPE_UINT,
20033 TYPE_LONGINT,
20034 TYPE_ULONGINT,
20035 -#if HAVE_LONG_LONG_INT
20036 TYPE_LONGLONGINT,
20037 TYPE_ULONGLONGINT,
20038 -#endif
20039 TYPE_DOUBLE,
20040 TYPE_LONGDOUBLE,
20041 TYPE_CHAR,
20042 @@ -75,10 +73,8 @@ typedef enum
20043 TYPE_COUNT_SCHAR_POINTER,
20044 TYPE_COUNT_SHORT_POINTER,
20045 TYPE_COUNT_INT_POINTER,
20046 - TYPE_COUNT_LONGINT_POINTER
20047 -#if HAVE_LONG_LONG_INT
20048 -, TYPE_COUNT_LONGLONGINT_POINTER
20049 -#endif
20050 + TYPE_COUNT_LONGINT_POINTER,
20051 + TYPE_COUNT_LONGLONGINT_POINTER
20052 #if ENABLE_UNISTDIO
20053 /* The unistdio extensions. */
20054 , TYPE_U8_STRING
20055 @@ -101,10 +97,8 @@ typedef struct
20056 unsigned int a_uint;
20057 long int a_longint;
20058 unsigned long int a_ulongint;
20059 -#if HAVE_LONG_LONG_INT
20060 long long int a_longlongint;
20061 unsigned long long int a_ulonglongint;
20062 -#endif
20063 float a_float;
20064 double a_double;
20065 long double a_longdouble;
20066 @@ -121,9 +115,7 @@ typedef struct
20067 short * a_count_short_pointer;
20068 int * a_count_int_pointer;
20069 long int * a_count_longint_pointer;
20070 -#if HAVE_LONG_LONG_INT
20071 long long int * a_count_longlongint_pointer;
20072 -#endif
20073 #if ENABLE_UNISTDIO
20074 /* The unistdio extensions. */
20075 const uint8_t * a_u8_string;
20076
20077 diff --git a/autotools/gnulib/printf-frexp.c b/autotools/gnulib/printf-frexp.c
20078 index 77eafab..68fce68 100644
20079 --- a/autotools/gnulib/printf-frexp.c
20080 +++ b/autotools/gnulib/printf-frexp.c
20081 @@ -1,17 +1,17 @@
20082 /* Split a double into fraction and mantissa, for hexadecimal printf.
20083 - Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
20084 + Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
20085
20086 - This program is free software: you can redistribute it and/or modify
20087 - it under the terms of the GNU General Public License as published by
20088 - the Free Software Foundation; either version 3 of the License, or
20089 - (at your option) any later version.
20090 + This file is free software: you can redistribute it and/or modify
20091 + it under the terms of the GNU Lesser General Public License as
20092 + published by the Free Software Foundation; either version 2.1 of the
20093 + License, or (at your option) any later version.
20094
20095 - This program is distributed in the hope that it will be useful,
20096 + This file is distributed in the hope that it will be useful,
20097 but WITHOUT ANY WARRANTY; without even the implied warranty of
20098 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20099 - GNU General Public License for more details.
20100 + GNU Lesser General Public License for more details.
20101
20102 - You should have received a copy of the GNU General Public License
20103 + You should have received a copy of the GNU Lesser General Public License
20104 along with this program. If not, see <https://www.gnu.org/licenses/>. */
20105
20106 #if ! defined USE_LONG_DOUBLE
20107
20108 diff --git a/autotools/gnulib/printf-frexp.h b/autotools/gnulib/printf-frexp.h
20109 index 9310734..44ece5d 100644
20110 --- a/autotools/gnulib/printf-frexp.h
20111 +++ b/autotools/gnulib/printf-frexp.h
20112 @@ -1,17 +1,17 @@
20113 /* Split a double into fraction and mantissa, for hexadecimal printf.
20114 - Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
20115 + Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
20116
20117 - This program is free software: you can redistribute it and/or modify
20118 - it under the terms of the GNU General Public License as published by
20119 - the Free Software Foundation; either version 3 of the License, or
20120 - (at your option) any later version.
20121 + This file is free software: you can redistribute it and/or modify
20122 + it under the terms of the GNU Lesser General Public License as
20123 + published by the Free Software Foundation; either version 2.1 of the
20124 + License, or (at your option) any later version.
20125
20126 - This program is distributed in the hope that it will be useful,
20127 + This file is distributed in the hope that it will be useful,
20128 but WITHOUT ANY WARRANTY; without even the implied warranty of
20129 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20130 - GNU General Public License for more details.
20131 + GNU Lesser General Public License for more details.
20132
20133 - You should have received a copy of the GNU General Public License
20134 + You should have received a copy of the GNU Lesser General Public License
20135 along with this program. If not, see <https://www.gnu.org/licenses/>. */
20136
20137 /* Write a finite, positive number x as
20138
20139 diff --git a/autotools/gnulib/printf-frexpl.c b/autotools/gnulib/printf-frexpl.c
20140 index 693b889..0004e02 100644
20141 --- a/autotools/gnulib/printf-frexpl.c
20142 +++ b/autotools/gnulib/printf-frexpl.c
20143 @@ -1,17 +1,17 @@
20144 /* Split a 'long double' into fraction and mantissa, for hexadecimal printf.
20145 - Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
20146 + Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
20147
20148 - This program is free software: you can redistribute it and/or modify
20149 - it under the terms of the GNU General Public License as published by
20150 - the Free Software Foundation; either version 3 of the License, or
20151 - (at your option) any later version.
20152 + This file is free software: you can redistribute it and/or modify
20153 + it under the terms of the GNU Lesser General Public License as
20154 + published by the Free Software Foundation; either version 2.1 of the
20155 + License, or (at your option) any later version.
20156
20157 - This program is distributed in the hope that it will be useful,
20158 + This file is distributed in the hope that it will be useful,
20159 but WITHOUT ANY WARRANTY; without even the implied warranty of
20160 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20161 - GNU General Public License for more details.
20162 + GNU Lesser General Public License for more details.
20163
20164 - You should have received a copy of the GNU General Public License
20165 + You should have received a copy of the GNU Lesser General Public License
20166 along with this program. If not, see <https://www.gnu.org/licenses/>. */
20167
20168 #include <config.h>
20169
20170 diff --git a/autotools/gnulib/printf-frexpl.h b/autotools/gnulib/printf-frexpl.h
20171 index 2760769..9220d7b 100644
20172 --- a/autotools/gnulib/printf-frexpl.h
20173 +++ b/autotools/gnulib/printf-frexpl.h
20174 @@ -1,17 +1,17 @@
20175 /* Split a 'long double' into fraction and mantissa, for hexadecimal printf.
20176 - Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
20177 + Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
20178
20179 - This program is free software: you can redistribute it and/or modify
20180 - it under the terms of the GNU General Public License as published by
20181 - the Free Software Foundation; either version 3 of the License, or
20182 - (at your option) any later version.
20183 + This file is free software: you can redistribute it and/or modify
20184 + it under the terms of the GNU Lesser General Public License as
20185 + published by the Free Software Foundation; either version 2.1 of the
20186 + License, or (at your option) any later version.
20187
20188 - This program is distributed in the hope that it will be useful,
20189 + This file is distributed in the hope that it will be useful,
20190 but WITHOUT ANY WARRANTY; without even the implied warranty of
20191 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20192 - GNU General Public License for more details.
20193 + GNU Lesser General Public License for more details.
20194
20195 - You should have received a copy of the GNU General Public License
20196 + You should have received a copy of the GNU Lesser General Public License
20197 along with this program. If not, see <https://www.gnu.org/licenses/>. */
20198
20199 /* Write a finite, positive number x as
20200
20201 diff --git a/autotools/gnulib/printf-parse.c b/autotools/gnulib/printf-parse.c
20202 index 8596fd5..aab02dc 100644
20203 --- a/autotools/gnulib/printf-parse.c
20204 +++ b/autotools/gnulib/printf-parse.c
20205 @@ -1,18 +1,18 @@
20206 /* Formatted output to strings.
20207 - Copyright (C) 1999-2000, 2002-2003, 2006-2019 Free Software Foundation, Inc.
20208 + Copyright (C) 1999-2000, 2002-2003, 2006-2022 Free Software Foundation, Inc.
20209
20210 - This program is free software; you can redistribute it and/or modify
20211 - it under the terms of the GNU General Public License as published by
20212 - the Free Software Foundation; either version 3, or (at your option)
20213 - any later version.
20214 + This file is free software: you can redistribute it and/or modify
20215 + it under the terms of the GNU Lesser General Public License as
20216 + published by the Free Software Foundation; either version 2.1 of the
20217 + License, or (at your option) any later version.
20218
20219 - This program is distributed in the hope that it will be useful,
20220 + This file is distributed in the hope that it will be useful,
20221 but WITHOUT ANY WARRANTY; without even the implied warranty of
20222 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20223 - GNU General Public License for more details.
20224 + GNU Lesser General Public License for more details.
20225
20226 - You should have received a copy of the GNU General Public License along
20227 - with this program; if not, see <https://www.gnu.org/licenses/>. */
20228 + You should have received a copy of the GNU Lesser General Public License
20229 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
20230
20231 /* This file can be parametrized with the following macros:
20232 CHAR_T The element type of the format string.
20233 @@ -48,16 +48,7 @@
20234 #include <stddef.h>
20235
20236 /* Get intmax_t. */
20237 -#if defined IN_LIBINTL || defined IN_LIBASPRINTF
20238 -# if HAVE_STDINT_H_WITH_UINTMAX
20239 -# include <stdint.h>
20240 -# endif
20241 -# if HAVE_INTTYPES_H_WITH_UINTMAX
20242 -# include <inttypes.h>
20243 -# endif
20244 -#else
20245 -# include <stdint.h>
20246 -#endif
20247 +#include <stdint.h>
20248
20249 /* malloc(), realloc(), free(). */
20250 #include <stdlib.h>
20251 @@ -447,14 +438,12 @@ PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a)
20252 switch (c)
20253 {
20254 case 'd': case 'i':
20255 -#if HAVE_LONG_LONG_INT
20256 - /* If 'long long' exists and is larger than 'long': */
20257 + /* If 'long long' is larger than 'long': */
20258 if (flags >= 16 || (flags & 4))
20259 type = TYPE_LONGLONGINT;
20260 else
20261 -#endif
20262 - /* If 'long long' exists and is the same as 'long', we parse
20263 - "lld" into TYPE_LONGINT. */
20264 + /* If 'long long' is the same as 'long', we parse "lld" into
20265 + TYPE_LONGINT. */
20266 if (flags >= 8)
20267 type = TYPE_LONGINT;
20268 else if (flags & 2)
20269 @@ -465,14 +454,12 @@ PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a)
20270 type = TYPE_INT;
20271 break;
20272 case 'o': case 'u': case 'x': case 'X':
20273 -#if HAVE_LONG_LONG_INT
20274 - /* If 'long long' exists and is larger than 'long': */
20275 + /* If 'unsigned long long' is larger than 'unsigned long': */
20276 if (flags >= 16 || (flags & 4))
20277 type = TYPE_ULONGLONGINT;
20278 else
20279 -#endif
20280 - /* If 'unsigned long long' exists and is the same as
20281 - 'unsigned long', we parse "llu" into TYPE_ULONGINT. */
20282 + /* If 'unsigned long long' is the same as 'unsigned long', we
20283 + parse "llu" into TYPE_ULONGINT. */
20284 if (flags >= 8)
20285 type = TYPE_ULONGINT;
20286 else if (flags & 2)
20287 @@ -525,14 +512,12 @@ PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a)
20288 type = TYPE_POINTER;
20289 break;
20290 case 'n':
20291 -#if HAVE_LONG_LONG_INT
20292 - /* If 'long long' exists and is larger than 'long': */
20293 + /* If 'long long' is larger than 'long': */
20294 if (flags >= 16 || (flags & 4))
20295 type = TYPE_COUNT_LONGLONGINT_POINTER;
20296 else
20297 -#endif
20298 - /* If 'long long' exists and is the same as 'long', we parse
20299 - "lln" into TYPE_COUNT_LONGINT_POINTER. */
20300 + /* If 'long long' is the same as 'long', we parse "lln" into
20301 + TYPE_COUNT_LONGINT_POINTER. */
20302 if (flags >= 8)
20303 type = TYPE_COUNT_LONGINT_POINTER;
20304 else if (flags & 2)
20305
20306 diff --git a/autotools/gnulib/printf-parse.h b/autotools/gnulib/printf-parse.h
20307 index 746bb3f..b12ccea 100644
20308 --- a/autotools/gnulib/printf-parse.h
20309 +++ b/autotools/gnulib/printf-parse.h
20310 @@ -1,19 +1,19 @@
20311 /* Parse printf format string.
20312 - Copyright (C) 1999, 2002-2003, 2005, 2007, 2010-2019 Free Software
20313 + Copyright (C) 1999, 2002-2003, 2005, 2007, 2010-2022 Free Software
20314 Foundation, Inc.
20315
20316 - This program is free software; you can redistribute it and/or modify
20317 - it under the terms of the GNU General Public License as published by
20318 - the Free Software Foundation; either version 3, or (at your option)
20319 - any later version.
20320 + This file is free software: you can redistribute it and/or modify
20321 + it under the terms of the GNU Lesser General Public License as
20322 + published by the Free Software Foundation; either version 2.1 of the
20323 + License, or (at your option) any later version.
20324
20325 - This program is distributed in the hope that it will be useful,
20326 + This file is distributed in the hope that it will be useful,
20327 but WITHOUT ANY WARRANTY; without even the implied warranty of
20328 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20329 - GNU General Public License for more details.
20330 + GNU Lesser General Public License for more details.
20331
20332 - You should have received a copy of the GNU General Public License along
20333 - with this program; if not, see <https://www.gnu.org/licenses/>. */
20334 + You should have received a copy of the GNU Lesser General Public License
20335 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
20336
20337 #ifndef _PRINTF_PARSE_H
20338 #define _PRINTF_PARSE_H
20339
20340 diff --git a/autotools/gnulib/rawmemchr.c b/autotools/gnulib/rawmemchr.c
20341 new file mode 100644
20342 index 0000000..ea68c1b
20343 --- /dev/null
20344 +++ b/autotools/gnulib/rawmemchr.c
20345 @@ -0,0 +1,125 @@
20346 +/* Searching in a string.
20347 + Copyright (C) 2008-2022 Free Software Foundation, Inc.
20348 +
20349 + This file is free software: you can redistribute it and/or modify
20350 + it under the terms of the GNU Lesser General Public License as
20351 + published by the Free Software Foundation; either version 2.1 of the
20352 + License, or (at your option) any later version.
20353 +
20354 + This file is distributed in the hope that it will be useful,
20355 + but WITHOUT ANY WARRANTY; without even the implied warranty of
20356 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20357 + GNU Lesser General Public License for more details.
20358 +
20359 + You should have received a copy of the GNU Lesser General Public License
20360 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
20361 +
20362 +#include <config.h>
20363 +
20364 +/* Specification. */
20365 +#include <string.h>
20366 +
20367 +/* A function definition is only needed if HAVE_RAWMEMCHR is not defined. */
20368 +#if !HAVE_RAWMEMCHR
20369 +
20370 +# include <limits.h>
20371 +# include <stdalign.h>
20372 +# include <stdint.h>
20373 +
20374 +# include "verify.h"
20375 +
20376 +/* Find the first occurrence of C in S. */
20377 +void *
20378 +rawmemchr (const void *s, int c_in)
20379 +{
20380 + /* Change this typedef to experiment with performance. */
20381 + typedef uintptr_t longword;
20382 + /* If you change the "uintptr_t", you should change UINTPTR_WIDTH to match.
20383 + This verifies that the type does not have padding bits. */
20384 + verify (UINTPTR_WIDTH == UCHAR_WIDTH * sizeof (longword));
20385 +
20386 + const unsigned char *char_ptr;
20387 + unsigned char c = c_in;
20388 +
20389 + /* Handle the first few bytes by reading one byte at a time.
20390 + Do this until CHAR_PTR is aligned on a longword boundary. */
20391 + for (char_ptr = (const unsigned char *) s;
20392 + (uintptr_t) char_ptr % alignof (longword) != 0;
20393 + ++char_ptr)
20394 + if (*char_ptr == c)
20395 + return (void *) char_ptr;
20396 +
20397 + longword const *longword_ptr = s = char_ptr;
20398 +
20399 + /* Compute auxiliary longword values:
20400 + repeated_one is a value which has a 1 in every byte.
20401 + repeated_c has c in every byte. */
20402 + longword repeated_one = (longword) -1 / UCHAR_MAX;
20403 + longword repeated_c = repeated_one * c;
20404 + longword repeated_hibit = repeated_one * (UCHAR_MAX / 2 + 1);
20405 +
20406 + /* Instead of the traditional loop which tests each byte, we will
20407 + test a longword at a time. The tricky part is testing if any of
20408 + the bytes in the longword in question are equal to
20409 + c. We first use an xor with repeated_c. This reduces the task
20410 + to testing whether any of the bytes in longword1 is zero.
20411 +
20412 + (The following comments assume 8-bit bytes, as POSIX requires;
20413 + the code's use of UCHAR_MAX should work even if bytes have more
20414 + than 8 bits.)
20415 +
20416 + We compute tmp =
20417 + ((longword1 - repeated_one) & ~longword1) & (repeated_one * 0x80).
20418 + That is, we perform the following operations:
20419 + 1. Subtract repeated_one.
20420 + 2. & ~longword1.
20421 + 3. & a mask consisting of 0x80 in every byte.
20422 + Consider what happens in each byte:
20423 + - If a byte of longword1 is zero, step 1 and 2 transform it into 0xff,
20424 + and step 3 transforms it into 0x80. A carry can also be propagated
20425 + to more significant bytes.
20426 + - If a byte of longword1 is nonzero, let its lowest 1 bit be at
20427 + position k (0 <= k <= 7); so the lowest k bits are 0. After step 1,
20428 + the byte ends in a single bit of value 0 and k bits of value 1.
20429 + After step 2, the result is just k bits of value 1: 2^k - 1. After
20430 + step 3, the result is 0. And no carry is produced.
20431 + So, if longword1 has only non-zero bytes, tmp is zero.
20432 + Whereas if longword1 has a zero byte, call j the position of the least
20433 + significant zero byte. Then the result has a zero at positions 0, ...,
20434 + j-1 and a 0x80 at position j. We cannot predict the result at the more
20435 + significant bytes (positions j+1..3), but it does not matter since we
20436 + already have a non-zero bit at position 8*j+7.
20437 +
20438 + The test whether any byte in longword1 is zero is equivalent
20439 + to testing whether tmp is nonzero.
20440 +
20441 + This test can read beyond the end of a string, depending on where
20442 + C_IN is encountered. However, this is considered safe since the
20443 + initialization phase ensured that the read will be aligned,
20444 + therefore, the read will not cross page boundaries and will not
20445 + cause a fault. */
20446 +
20447 + while (1)
20448 + {
20449 + longword longword1 = *longword_ptr ^ repeated_c;
20450 +
20451 + if ((((longword1 - repeated_one) & ~longword1) & repeated_hibit) != 0)
20452 + break;
20453 + longword_ptr++;
20454 + }
20455 +
20456 + char_ptr = s = longword_ptr;
20457 +
20458 + /* At this point, we know that one of the sizeof (longword) bytes
20459 + starting at char_ptr is == c. If we knew endianness, we
20460 + could determine the first such byte without any further memory
20461 + accesses, just by looking at the tmp result from the last loop
20462 + iteration. However, the following simple and portable code does
20463 + not attempt this potential optimization. */
20464 +
20465 + while (*char_ptr != c)
20466 + char_ptr++;
20467 + return (void *) char_ptr;
20468 +}
20469 +
20470 +#endif
20471
20472 diff --git a/autotools/gnulib/rawmemchr.valgrind b/autotools/gnulib/rawmemchr.valgrind
20473 new file mode 100644
20474 index 0000000..64cf86c
20475 --- /dev/null
20476 +++ b/autotools/gnulib/rawmemchr.valgrind
20477 @@ -0,0 +1,28 @@
20478 +# Suppress a valgrind message about use of uninitialized memory in rawmemchr().
20479 +
20480 +# Copyright (C) 2008-2022 Free Software Foundation, Inc.
20481 +#
20482 +# This file is free software: you can redistribute it and/or modify
20483 +# it under the terms of the GNU Lesser General Public License as
20484 +# published by the Free Software Foundation; either version 2.1 of the
20485 +# License, or (at your option) any later version.
20486 +#
20487 +# This file is distributed in the hope that it will be useful,
20488 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
20489 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20490 +# GNU Lesser General Public License for more details.
20491 +#
20492 +# You should have received a copy of the GNU Lesser General Public License
20493 +# along with this program. If not, see <https://www.gnu.org/licenses/>.
20494 +
20495 +# This use is OK because it provides only a speedup.
20496 +{
20497 + rawmemchr-value4
20498 + Memcheck:Value4
20499 + fun:rawmemchr
20500 +}
20501 +{
20502 + rawmemchr-value8
20503 + Memcheck:Value8
20504 + fun:rawmemchr
20505 +}
20506
20507 diff --git a/autotools/gnulib/readlink.c b/autotools/gnulib/readlink.c
20508 index bf71109..ed03cc8 100644
20509 --- a/autotools/gnulib/readlink.c
20510 +++ b/autotools/gnulib/readlink.c
20511 @@ -1,17 +1,17 @@
20512 -/* Stub for readlink().
20513 - Copyright (C) 2003-2007, 2009-2019 Free Software Foundation, Inc.
20514 +/* Read the contents of a symbolic link.
20515 + Copyright (C) 2003-2007, 2009-2022 Free Software Foundation, Inc.
20516
20517 - This program is free software: you can redistribute it and/or modify
20518 - it under the terms of the GNU General Public License as published by
20519 - the Free Software Foundation; either version 3 of the License, or
20520 - (at your option) any later version.
20521 + This file is free software: you can redistribute it and/or modify
20522 + it under the terms of the GNU Lesser General Public License as
20523 + published by the Free Software Foundation; either version 2.1 of the
20524 + License, or (at your option) any later version.
20525
20526 - This program is distributed in the hope that it will be useful,
20527 + This file is distributed in the hope that it will be useful,
20528 but WITHOUT ANY WARRANTY; without even the implied warranty of
20529 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20530 - GNU General Public License for more details.
20531 + GNU Lesser General Public License for more details.
20532
20533 - You should have received a copy of the GNU General Public License
20534 + You should have received a copy of the GNU Lesser General Public License
20535 along with this program. If not, see <https://www.gnu.org/licenses/>. */
20536
20537 #include <config.h>
20538 @@ -29,15 +29,15 @@
20539 such as DJGPP 2.03 and mingw32. */
20540
20541 ssize_t
20542 -readlink (const char *name, char *buf _GL_UNUSED,
20543 - size_t bufsize _GL_UNUSED)
20544 +readlink (char const *file, _GL_UNUSED char *buf,
20545 + _GL_UNUSED size_t bufsize)
20546 {
20547 struct stat statbuf;
20548
20549 /* In general we should use lstat() here, not stat(). But on platforms
20550 without symbolic links, lstat() - if it exists - would be equivalent to
20551 stat(), therefore we can use stat(). This saves us a configure check. */
20552 - if (stat (name, &statbuf) >= 0)
20553 + if (stat (file, &statbuf) >= 0)
20554 errno = EINVAL;
20555 return -1;
20556 }
20557 @@ -51,24 +51,54 @@ readlink (const char *name, char *buf _GL_UNUSED,
20558 for Solaris 9. */
20559
20560 ssize_t
20561 -rpl_readlink (const char *name, char *buf, size_t bufsize)
20562 +rpl_readlink (char const *file, char *buf, size_t bufsize)
20563 {
20564 # if READLINK_TRAILING_SLASH_BUG
20565 - size_t len = strlen (name);
20566 - if (len && name[len - 1] == '/')
20567 + size_t file_len = strlen (file);
20568 + if (file_len && file[file_len - 1] == '/')
20569 {
20570 - /* Even if name without the slash is a symlink to a directory,
20571 + /* Even if FILE without the slash is a symlink to a directory,
20572 both lstat() and stat() must resolve the trailing slash to
20573 the directory rather than the symlink. We can therefore
20574 safely use stat() to distinguish between EINVAL and
20575 ENOTDIR/ENOENT, avoiding extra overhead of rpl_lstat(). */
20576 struct stat st;
20577 - if (stat (name, &st) == 0)
20578 + if (stat (file, &st) == 0 || errno == EOVERFLOW)
20579 errno = EINVAL;
20580 return -1;
20581 }
20582 # endif /* READLINK_TRAILING_SLASH_BUG */
20583 - return readlink (name, buf, bufsize);
20584 +
20585 + ssize_t r = readlink (file, buf, bufsize);
20586 +
20587 +# if READLINK_TRUNCATE_BUG
20588 + if (r < 0 && errno == ERANGE)
20589 + {
20590 + /* Try again with a bigger buffer. This is just for test cases;
20591 + real code invariably discards short reads. */
20592 + char stackbuf[4032];
20593 + r = readlink (file, stackbuf, sizeof stackbuf);
20594 + if (r < 0)
20595 + {
20596 + if (errno == ERANGE)
20597 + {
20598 + /* Clear the buffer, which is good enough for real code.
20599 + Thankfully, no test cases try short reads of enormous
20600 + symlinks and what would be the point anyway? */
20601 + r = bufsize;
20602 + memset (buf, 0, r);
20603 + }
20604 + }
20605 + else
20606 + {
20607 + if (bufsize < r)
20608 + r = bufsize;
20609 + memcpy (buf, stackbuf, r);
20610 + }
20611 + }
20612 +# endif
20613 +
20614 + return r;
20615 }
20616
20617 #endif /* HAVE_READLINK */
20618
20619 diff --git a/autotools/gnulib/readlinkat.c b/autotools/gnulib/readlinkat.c
20620 index c0f3e59..ab45e14 100644
20621 --- a/autotools/gnulib/readlinkat.c
20622 +++ b/autotools/gnulib/readlinkat.c
20623 @@ -1,9 +1,9 @@
20624 /* Read a symlink relative to an open directory.
20625 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
20626 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
20627
20628 This program is free software: you can redistribute it and/or modify
20629 it under the terms of the GNU General Public License as published by
20630 - the Free Software Foundation; either version 3 of the License, or
20631 + the Free Software Foundation, either version 3 of the License, or
20632 (at your option) any later version.
20633
20634 This program is distributed in the hope that it will be useful,
20635 @@ -18,17 +18,21 @@
20636
20637 #include <config.h>
20638
20639 -#include <errno.h>
20640 +/* Specification. */
20641 #include <unistd.h>
20642 +
20643 +#include <errno.h>
20644 +#include <stdlib.h>
20645 #include <string.h>
20646 #include <sys/stat.h>
20647
20648 #if HAVE_READLINKAT
20649
20650 +# undef fstatat
20651 # undef readlinkat
20652
20653 ssize_t
20654 -rpl_readlinkat (int fd, char const *file, char *buf, size_t len)
20655 +rpl_readlinkat (int fd, char const *file, char *buf, size_t bufsize)
20656 {
20657 # if READLINK_TRAILING_SLASH_BUG
20658 size_t file_len = strlen (file);
20659 @@ -37,15 +41,45 @@ rpl_readlinkat (int fd, char const *file, char *buf, size_t len)
20660 /* Even if FILE without the slash is a symlink to a directory,
20661 both lstat() and stat() must resolve the trailing slash to
20662 the directory rather than the symlink. We can therefore
20663 - safely use stat() to distinguish between EINVAL and
20664 - ENOTDIR/ENOENT, avoiding extra overhead of rpl_lstat(). */
20665 + safely use fstatat(..., 0) to distinguish between EINVAL and
20666 + ENOTDIR/ENOENT, avoiding extra overhead of rpl_fstatat(). */
20667 struct stat st;
20668 - if (stat (file, &st) == 0)
20669 + if (fstatat (fd, file, &st, 0) == 0 || errno == EOVERFLOW)
20670 errno = EINVAL;
20671 return -1;
20672 }
20673 # endif /* READLINK_TRAILING_SLASH_BUG */
20674 - return readlinkat (fd, file, buf, len);
20675 +
20676 + ssize_t r = readlinkat (fd, file, buf, bufsize);
20677 +
20678 +# if READLINK_TRUNCATE_BUG
20679 + if (r < 0 && errno == ERANGE)
20680 + {
20681 + /* Try again with a bigger buffer. This is just for test cases;
20682 + real code invariably discards short reads. */
20683 + char stackbuf[4032];
20684 + r = readlinkat (fd, file, stackbuf, sizeof stackbuf);
20685 + if (r < 0)
20686 + {
20687 + if (errno == ERANGE)
20688 + {
20689 + /* Clear the buffer, which is good enough for real code.
20690 + Thankfully, no test cases try short reads of enormous
20691 + symlinks and what would be the point anyway? */
20692 + r = bufsize;
20693 + memset (buf, 0, r);
20694 + }
20695 + }
20696 + else
20697 + {
20698 + if (bufsize < r)
20699 + r = bufsize;
20700 + memcpy (buf, stackbuf, r);
20701 + }
20702 + }
20703 +# endif
20704 +
20705 + return r;
20706 }
20707
20708 #else
20709 @@ -58,7 +92,7 @@ rpl_readlinkat (int fd, char const *file, char *buf, size_t len)
20710 readlinkat worthless since readlink does not guarantee a
20711 NUL-terminated buffer. Assume this was a bug in POSIX. */
20712
20713 -/* Read the contents of symlink FILE into buffer BUF of size LEN, in the
20714 +/* Read the contents of symlink FILE into buffer BUF of size BUFSIZE, in the
20715 directory open on descriptor FD. If possible, do it without changing
20716 the working directory. Otherwise, resort to using save_cwd/fchdir,
20717 then readlink/restore_cwd. If either the save_cwd or the restore_cwd
20718 @@ -66,8 +100,8 @@ rpl_readlinkat (int fd, char const *file, char *buf, size_t len)
20719
20720 # define AT_FUNC_NAME readlinkat
20721 # define AT_FUNC_F1 readlink
20722 -# define AT_FUNC_POST_FILE_PARAM_DECLS , char *buf, size_t len
20723 -# define AT_FUNC_POST_FILE_ARGS , buf, len
20724 +# define AT_FUNC_POST_FILE_PARAM_DECLS , char *buf, size_t bufsize
20725 +# define AT_FUNC_POST_FILE_ARGS , buf, bufsize
20726 # define AT_FUNC_RESULT ssize_t
20727 # include "at-func.c"
20728 # undef AT_FUNC_NAME
20729
20730 diff --git a/autotools/gnulib/realloc.c b/autotools/gnulib/realloc.c
20731 index a81ce3b..c878381 100644
20732 --- a/autotools/gnulib/realloc.c
20733 +++ b/autotools/gnulib/realloc.c
20734 @@ -1,76 +1,60 @@
20735 /* realloc() function that is glibc compatible.
20736
20737 - Copyright (C) 1997, 2003-2004, 2006-2007, 2009-2019 Free Software
20738 + Copyright (C) 1997, 2003-2004, 2006-2007, 2009-2022 Free Software
20739 Foundation, Inc.
20740
20741 - This program is free software: you can redistribute it and/or modify
20742 - it under the terms of the GNU General Public License as published by
20743 - the Free Software Foundation; either version 3 of the License, or
20744 - (at your option) any later version.
20745 + This file is free software: you can redistribute it and/or modify
20746 + it under the terms of the GNU Lesser General Public License as
20747 + published by the Free Software Foundation; either version 2.1 of the
20748 + License, or (at your option) any later version.
20749
20750 - This program is distributed in the hope that it will be useful,
20751 + This file is distributed in the hope that it will be useful,
20752 but WITHOUT ANY WARRANTY; without even the implied warranty of
20753 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20754 - GNU General Public License for more details.
20755 + GNU Lesser General Public License for more details.
20756
20757 - You should have received a copy of the GNU General Public License
20758 + You should have received a copy of the GNU Lesser General Public License
20759 along with this program. If not, see <https://www.gnu.org/licenses/>. */
20760
20761 /* written by Jim Meyering and Bruno Haible */
20762
20763 -#define _GL_USE_STDLIB_ALLOC 1
20764 #include <config.h>
20765
20766 -/* Only the AC_FUNC_REALLOC macro defines 'realloc' already in config.h. */
20767 -#ifdef realloc
20768 -# define NEED_REALLOC_GNU 1
20769 -/* Whereas the gnulib module 'realloc-gnu' defines HAVE_REALLOC_GNU. */
20770 -#elif GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU
20771 -# define NEED_REALLOC_GNU 1
20772 -#endif
20773 -
20774 -/* Infer the properties of the system's malloc function.
20775 - The gnulib module 'malloc-gnu' defines HAVE_MALLOC_GNU. */
20776 -#if GNULIB_MALLOC_GNU && HAVE_MALLOC_GNU
20777 -# define SYSTEM_MALLOC_GLIBC_COMPATIBLE 1
20778 -#endif
20779 -
20780 #include <stdlib.h>
20781
20782 #include <errno.h>
20783
20784 +#include "xalloc-oversized.h"
20785 +
20786 +/* Call the system's realloc below. This file does not define
20787 + _GL_USE_STDLIB_ALLOC because it needs Gnulib's malloc if present. */
20788 +#undef realloc
20789 +
20790 /* Change the size of an allocated block of memory P to N bytes,
20791 - with error checking. If N is zero, change it to 1. If P is NULL,
20792 - use malloc. */
20793 + with error checking. If P is NULL, use malloc. Otherwise if N is zero,
20794 + free P and return NULL. */
20795
20796 void *
20797 rpl_realloc (void *p, size_t n)
20798 {
20799 - void *result;
20800 + if (p == NULL)
20801 + return malloc (n);
20802
20803 -#if NEED_REALLOC_GNU
20804 if (n == 0)
20805 {
20806 - n = 1;
20807 -
20808 - /* In theory realloc might fail, so don't rely on it to free. */
20809 free (p);
20810 - p = NULL;
20811 + return NULL;
20812 }
20813 -#endif
20814
20815 - if (p == NULL)
20816 + if (xalloc_oversized (n, 1))
20817 {
20818 -#if GNULIB_REALLOC_GNU && !NEED_REALLOC_GNU && !SYSTEM_MALLOC_GLIBC_COMPATIBLE
20819 - if (n == 0)
20820 - n = 1;
20821 -#endif
20822 - result = malloc (n);
20823 + errno = ENOMEM;
20824 + return NULL;
20825 }
20826 - else
20827 - result = realloc (p, n);
20828
20829 -#if !HAVE_REALLOC_POSIX
20830 + void *result = realloc (p, n);
20831 +
20832 +#if !HAVE_MALLOC_POSIX
20833 if (result == NULL)
20834 errno = ENOMEM;
20835 #endif
20836
20837 diff --git a/autotools/gnulib/reallocarray.c b/autotools/gnulib/reallocarray.c
20838 new file mode 100644
20839 index 0000000..bc4cba4
20840 --- /dev/null
20841 +++ b/autotools/gnulib/reallocarray.c
20842 @@ -0,0 +1,39 @@
20843 +/* reallocarray function that is glibc compatible.
20844 +
20845 + Copyright (C) 2017-2022 Free Software Foundation, Inc.
20846 +
20847 + This file is free software: you can redistribute it and/or modify
20848 + it under the terms of the GNU Lesser General Public License as
20849 + published by the Free Software Foundation; either version 2.1 of the
20850 + License, or (at your option) any later version.
20851 +
20852 + This file is distributed in the hope that it will be useful,
20853 + but WITHOUT ANY WARRANTY; without even the implied warranty of
20854 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20855 + GNU Lesser General Public License for more details.
20856 +
20857 + You should have received a copy of the GNU Lesser General Public License
20858 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
20859 +
20860 +/* written by Darshit Shah */
20861 +
20862 +#include <config.h>
20863 +
20864 +#include <stdlib.h>
20865 +#include <errno.h>
20866 +
20867 +#include "intprops.h"
20868 +
20869 +void *
20870 +reallocarray (void *ptr, size_t nmemb, size_t size)
20871 +{
20872 + size_t nbytes;
20873 + if (INT_MULTIPLY_WRAPV (nmemb, size, &nbytes))
20874 + {
20875 + errno = ENOMEM;
20876 + return NULL;
20877 + }
20878 +
20879 + /* Rely on the semantics of GNU realloc. */
20880 + return realloc (ptr, nbytes);
20881 +}
20882
20883 diff --git a/autotools/gnulib/rename.c b/autotools/gnulib/rename.c
20884 index 9d88e5c..119abe5 100644
20885 --- a/autotools/gnulib/rename.c
20886 +++ b/autotools/gnulib/rename.c
20887 @@ -1,18 +1,18 @@
20888 /* Work around rename bugs in some systems.
20889
20890 - Copyright (C) 2001-2003, 2005-2006, 2009-2019 Free Software Foundation, Inc.
20891 + Copyright (C) 2001-2003, 2005-2006, 2009-2022 Free Software Foundation, Inc.
20892
20893 - This program is free software: you can redistribute it and/or modify
20894 - it under the terms of the GNU General Public License as published by
20895 - the Free Software Foundation; either version 3 of the License, or
20896 - (at your option) any later version.
20897 + This file is free software: you can redistribute it and/or modify
20898 + it under the terms of the GNU Lesser General Public License as
20899 + published by the Free Software Foundation; either version 2.1 of the
20900 + License, or (at your option) any later version.
20901
20902 - This program is distributed in the hope that it will be useful,
20903 + This file is distributed in the hope that it will be useful,
20904 but WITHOUT ANY WARRANTY; without even the implied warranty of
20905 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20906 - GNU General Public License for more details.
20907 + GNU Lesser General Public License for more details.
20908
20909 - You should have received a copy of the GNU General Public License
20910 + You should have received a copy of the GNU Lesser General Public License
20911 along with this program. If not, see <https://www.gnu.org/licenses/>. */
20912
20913 /* Written by Volker Borchert, Eric Blake. */
20914 @@ -39,6 +39,10 @@
20915
20916 # include "dirname.h"
20917
20918 +/* Don't assume that UNICODE is not defined. */
20919 +# undef MoveFileEx
20920 +# define MoveFileEx MoveFileExA
20921 +
20922 /* Rename the file SRC to DST. This replacement is necessary on
20923 Windows, on which the system rename function will not replace
20924 an existing DST. */
20925 @@ -161,10 +165,8 @@ rpl_rename (char const *src, char const *dst)
20926 }
20927 if (rmdir (dst))
20928 {
20929 - error = errno;
20930 free (src_temp);
20931 free (dst_temp);
20932 - errno = error;
20933 return -1;
20934 }
20935 free (src_temp);
20936 @@ -285,7 +287,7 @@ rpl_rename (char const *src, char const *dst)
20937 char *dst_temp = (char *) dst;
20938 bool src_slash;
20939 bool dst_slash;
20940 - bool dst_exists _GL_UNUSED;
20941 + _GL_UNUSED bool dst_exists;
20942 int ret_val = -1;
20943 int rename_errno = ENOTDIR;
20944 struct stat src_st;
20945
20946 diff --git a/autotools/gnulib/renameat.c b/autotools/gnulib/renameat.c
20947 index 1ac3f33..f08be7b 100644
20948 --- a/autotools/gnulib/renameat.c
20949 +++ b/autotools/gnulib/renameat.c
20950 @@ -1,9 +1,9 @@
20951 /* Rename a file relative to open directories.
20952 - Copyright 2017-2019 Free Software Foundation, Inc.
20953 + Copyright 2017-2022 Free Software Foundation, Inc.
20954
20955 This program is free software: you can redistribute it and/or modify
20956 it under the terms of the GNU General Public License as published by
20957 - the Free Software Foundation; either version 3 of the License, or
20958 + the Free Software Foundation, either version 3 of the License, or
20959 (at your option) any later version.
20960
20961 This program is distributed in the hope that it will be useful,
20962
20963 diff --git a/autotools/gnulib/renameatu.c b/autotools/gnulib/renameatu.c
20964 index 7dd5a63..0eb33ab 100644
20965 --- a/autotools/gnulib/renameatu.c
20966 +++ b/autotools/gnulib/renameatu.c
20967 @@ -1,9 +1,9 @@
20968 /* Rename a file relative to open directories.
20969 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
20970 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
20971
20972 This program is free software: you can redistribute it and/or modify
20973 it under the terms of the GNU General Public License as published by
20974 - the Free Software Foundation; either version 3 of the License, or
20975 + the Free Software Foundation, either version 3 of the License, or
20976 (at your option) any later version.
20977
20978 This program is distributed in the hope that it will be useful,
20979 @@ -61,6 +61,29 @@ rename_noreplace (char const *src, char const *dst)
20980
20981 #undef renameat
20982
20983 +#if HAVE_RENAMEAT
20984 +
20985 +/* Act like renameat (FD1, SRC, FD2, DST), except fail with EEXIST if
20986 + FLAGS is nonzero and it is easy to fail atomically if DST already exists.
20987 + This lets renameatu be atomic when it can be implemented in terms
20988 + of renameatx_np. */
20989 +static int
20990 +renameat2ish (int fd1, char const *src, int fd2, char const *dst,
20991 + unsigned int flags)
20992 +{
20993 +# ifdef RENAME_EXCL
20994 + if (flags)
20995 + {
20996 + int r = renameatx_np (fd1, src, fd2, dst, RENAME_EXCL);
20997 + if (r == 0 || errno != ENOTSUP)
20998 + return r;
20999 + }
21000 +# endif
21001 +
21002 + return renameat (fd1, src, fd2, dst);
21003 +}
21004 +#endif
21005 +
21006 /* Rename FILE1, in the directory open on descriptor FD1, to FILE2, in
21007 the directory open on descriptor FD2. If possible, do it without
21008 changing the working directory. Otherwise, resort to using
21009 @@ -86,14 +109,6 @@ renameatu (int fd1, char const *src, int fd2, char const *dst,
21010 #elif defined SYS_renameat2
21011 ret_val = syscall (SYS_renameat2, fd1, src, fd2, dst, flags);
21012 err = errno;
21013 -#elif defined RENAME_EXCL
21014 - if (! (flags & ~(RENAME_EXCHANGE | RENAME_NOREPLACE)))
21015 - {
21016 - ret_val = renameatx_np (fd1, src, fd2, dst,
21017 - ((flags & RENAME_EXCHANGE ? RENAME_SWAP : 0)
21018 - | (flags & RENAME_NOREPLACE ? RENAME_EXCL : 0)));
21019 - err = errno;
21020 - }
21021 #endif
21022
21023 if (! (ret_val < 0 && (err == EINVAL || err == ENOSYS || err == ENOTSUP)))
21024 @@ -112,33 +127,38 @@ renameatu (int fd1, char const *src, int fd2, char const *dst,
21025 struct stat dst_st;
21026 bool dst_found_nonexistent = false;
21027
21028 - if (flags != 0)
21029 + switch (flags)
21030 {
21031 - /* RENAME_NOREPLACE is the only flag currently supported. */
21032 - if (flags & ~RENAME_NOREPLACE)
21033 - return errno_fail (ENOTSUP);
21034 - else
21035 - {
21036 - /* This has a race between the call to lstatat and the calls to
21037 - renameat below. */
21038 - if (lstatat (fd2, dst, &dst_st) == 0 || errno == EOVERFLOW)
21039 - return errno_fail (EEXIST);
21040 - if (errno != ENOENT)
21041 - return -1;
21042 - dst_found_nonexistent = true;
21043 - }
21044 + case 0:
21045 + break;
21046 +
21047 + case RENAME_NOREPLACE:
21048 + /* This has a race between the call to lstatat and the calls to
21049 + renameat below. This lstatat is needed even if RENAME_EXCL
21050 + is defined, because RENAME_EXCL is buggy on macOS 11.2:
21051 + renameatx_np (fd, "X", fd, "X", RENAME_EXCL) incorrectly
21052 + succeeds when X exists. */
21053 + if (lstatat (fd2, dst, &dst_st) == 0 || errno == EOVERFLOW)
21054 + return errno_fail (EEXIST);
21055 + if (errno != ENOENT)
21056 + return -1;
21057 + dst_found_nonexistent = true;
21058 + break;
21059 +
21060 + default:
21061 + return errno_fail (ENOTSUP);
21062 }
21063
21064 /* Let strace see any ENOENT failure. */
21065 src_len = strlen (src);
21066 dst_len = strlen (dst);
21067 if (!src_len || !dst_len)
21068 - return renameat (fd1, src, fd2, dst);
21069 + return renameat2ish (fd1, src, fd2, dst, flags);
21070
21071 src_slash = src[src_len - 1] == '/';
21072 dst_slash = dst[dst_len - 1] == '/';
21073 if (!src_slash && !dst_slash)
21074 - return renameat (fd1, src, fd2, dst);
21075 + return renameat2ish (fd1, src, fd2, dst, flags);
21076
21077 /* Presence of a trailing slash requires directory semantics. If
21078 the source does not exist, or if the destination cannot be turned
21079 @@ -211,7 +231,7 @@ renameatu (int fd1, char const *src, int fd2, char const *dst,
21080 on Solaris, since all other systems either lack renameat or honor
21081 trailing slash correctly. */
21082
21083 - ret_val = renameat (fd1, src_temp, fd2, dst_temp);
21084 + ret_val = renameat2ish (fd1, src_temp, fd2, dst_temp, flags);
21085 rename_errno = errno;
21086 goto out;
21087 out:
21088
21089 diff --git a/autotools/gnulib/renameatu.h b/autotools/gnulib/renameatu.h
21090 index b4b1c3c..239df4c 100644
21091 --- a/autotools/gnulib/renameatu.h
21092 +++ b/autotools/gnulib/renameatu.h
21093 @@ -1,9 +1,9 @@
21094 /* Rename a file relative to open directories.
21095 - Copyright 2017-2019 Free Software Foundation, Inc.
21096 + Copyright 2017-2022 Free Software Foundation, Inc.
21097
21098 This program is free software: you can redistribute it and/or modify
21099 it under the terms of the GNU General Public License as published by
21100 - the Free Software Foundation; either version 3 of the License, or
21101 + the Free Software Foundation, either version 3 of the License, or
21102 (at your option) any later version.
21103
21104 This program is distributed in the hope that it will be useful,
21105
21106 diff --git a/autotools/gnulib/rmdir.c b/autotools/gnulib/rmdir.c
21107 index 1d08822..8c8b75e 100644
21108 --- a/autotools/gnulib/rmdir.c
21109 +++ b/autotools/gnulib/rmdir.c
21110 @@ -1,19 +1,19 @@
21111 /* Work around rmdir bugs.
21112
21113 - Copyright (C) 1988, 1990, 1999, 2003-2006, 2009-2019 Free Software
21114 + Copyright (C) 1988, 1990, 1999, 2003-2006, 2009-2022 Free Software
21115 Foundation, Inc.
21116
21117 - This program is free software: you can redistribute it and/or modify
21118 - it under the terms of the GNU General Public License as published by
21119 - the Free Software Foundation; either version 3 of the License, or
21120 - (at your option) any later version.
21121 + This file is free software: you can redistribute it and/or modify
21122 + it under the terms of the GNU Lesser General Public License as
21123 + published by the Free Software Foundation; either version 2.1 of the
21124 + License, or (at your option) any later version.
21125
21126 - This program is distributed in the hope that it will be useful,
21127 + This file is distributed in the hope that it will be useful,
21128 but WITHOUT ANY WARRANTY; without even the implied warranty of
21129 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21130 - GNU General Public License for more details.
21131 + GNU Lesser General Public License for more details.
21132
21133 - You should have received a copy of the GNU General Public License
21134 + You should have received a copy of the GNU Lesser General Public License
21135 along with this program. If not, see <https://www.gnu.org/licenses/>. */
21136
21137 #include <config.h>
21138 @@ -23,9 +23,12 @@
21139 #include <errno.h>
21140 #include <string.h>
21141
21142 -#include "dosname.h"
21143 +#include "filename.h"
21144
21145 #undef rmdir
21146 +#if defined _WIN32 && !defined __CYGWIN__
21147 +# define rmdir _rmdir
21148 +#endif
21149
21150 /* Remove directory DIR.
21151 Return 0 if successful, -1 if not. */
21152
21153 diff --git a/autotools/gnulib/root-uid.h b/autotools/gnulib/root-uid.h
21154 index eebfa94..b3274e3 100644
21155 --- a/autotools/gnulib/root-uid.h
21156 +++ b/autotools/gnulib/root-uid.h
21157 @@ -1,21 +1,21 @@
21158 /* The user ID that always has appropriate privileges in the POSIX sense.
21159
21160 - Copyright 2012-2019 Free Software Foundation, Inc.
21161 + Copyright 2012-2022 Free Software Foundation, Inc.
21162
21163 - This program is free software: you can redistribute it and/or modify
21164 - it under the terms of the GNU General Public License as published by
21165 - the Free Software Foundation; either version 3 of the License, or
21166 - (at your option) any later version.
21167 + This file is free software: you can redistribute it and/or modify
21168 + it under the terms of the GNU Lesser General Public License as
21169 + published by the Free Software Foundation; either version 2.1 of the
21170 + License, or (at your option) any later version.
21171
21172 - This program is distributed in the hope that it will be useful,
21173 + This file is distributed in the hope that it will be useful,
21174 but WITHOUT ANY WARRANTY; without even the implied warranty of
21175 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21176 - GNU General Public License for more details.
21177 + GNU Lesser General Public License for more details.
21178
21179 - You should have received a copy of the GNU General Public License
21180 - along with this program. If not, see <https://www.gnu.org/licenses/>.
21181 + You should have received a copy of the GNU Lesser General Public License
21182 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
21183
21184 - Written by Paul Eggert. */
21185 +/* Written by Paul Eggert. */
21186
21187 #ifndef ROOT_UID_H_
21188 #define ROOT_UID_H_
21189
21190 diff --git a/autotools/gnulib/same-inode.h b/autotools/gnulib/same-inode.h
21191 index 06655b6..f65f3d0 100644
21192 --- a/autotools/gnulib/same-inode.h
21193 +++ b/autotools/gnulib/same-inode.h
21194 @@ -1,18 +1,18 @@
21195 /* Determine whether two stat buffers are known to refer to the same file.
21196
21197 - Copyright (C) 2006, 2009-2019 Free Software Foundation, Inc.
21198 + Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc.
21199
21200 - This program is free software: you can redistribute it and/or modify
21201 - it under the terms of the GNU General Public License as published by
21202 - the Free Software Foundation; either version 3 of the License, or
21203 - (at your option) any later version.
21204 + This file is free software: you can redistribute it and/or modify
21205 + it under the terms of the GNU Lesser General Public License as
21206 + published by the Free Software Foundation; either version 2.1 of the
21207 + License, or (at your option) any later version.
21208
21209 - This program is distributed in the hope that it will be useful,
21210 + This file is distributed in the hope that it will be useful,
21211 but WITHOUT ANY WARRANTY; without even the implied warranty of
21212 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21213 - GNU General Public License for more details.
21214 + GNU Lesser General Public License for more details.
21215
21216 - You should have received a copy of the GNU General Public License
21217 + You should have received a copy of the GNU Lesser General Public License
21218 along with this program. If not, see <https://www.gnu.org/licenses/>. */
21219
21220 #ifndef SAME_INODE_H
21221
21222 diff --git a/autotools/gnulib/save-cwd.c b/autotools/gnulib/save-cwd.c
21223 index a67d95d..ea487a4 100644
21224 --- a/autotools/gnulib/save-cwd.c
21225 +++ b/autotools/gnulib/save-cwd.c
21226 @@ -1,11 +1,11 @@
21227 /* save-cwd.c -- Save and restore current working directory.
21228
21229 - Copyright (C) 1995, 1997-1998, 2003-2006, 2009-2019 Free Software
21230 + Copyright (C) 1995, 1997-1998, 2003-2006, 2009-2022 Free Software
21231 Foundation, Inc.
21232
21233 This program is free software: you can redistribute it and/or modify
21234 it under the terms of the GNU General Public License as published by
21235 - the Free Software Foundation; either version 3 of the License, or
21236 + the Free Software Foundation, either version 3 of the License, or
21237 (at your option) any later version.
21238
21239 This program is distributed in the hope that it will be useful,
21240
21241 diff --git a/autotools/gnulib/save-cwd.h b/autotools/gnulib/save-cwd.h
21242 index 6a78070..90e8a07 100644
21243 --- a/autotools/gnulib/save-cwd.h
21244 +++ b/autotools/gnulib/save-cwd.h
21245 @@ -1,11 +1,11 @@
21246 /* Save and restore current working directory.
21247
21248 - Copyright (C) 1995, 1997-1998, 2003, 2009-2019 Free Software Foundation,
21249 + Copyright (C) 1995, 1997-1998, 2003, 2009-2022 Free Software Foundation,
21250 Inc.
21251
21252 This program is free software: you can redistribute it and/or modify
21253 it under the terms of the GNU General Public License as published by
21254 - the Free Software Foundation; either version 3 of the License, or
21255 + the Free Software Foundation, either version 3 of the License, or
21256 (at your option) any later version.
21257
21258 This program is distributed in the hope that it will be useful,
21259
21260 diff --git a/autotools/gnulib/signbitd.c b/autotools/gnulib/signbitd.c
21261 index 9eb7d3a..776dd73 100644
21262 --- a/autotools/gnulib/signbitd.c
21263 +++ b/autotools/gnulib/signbitd.c
21264 @@ -1,17 +1,17 @@
21265 /* signbit() macro: Determine the sign bit of a floating-point number.
21266 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
21267 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
21268
21269 - This program is free software: you can redistribute it and/or modify
21270 - it under the terms of the GNU General Public License as published by
21271 - the Free Software Foundation; either version 3 of the License, or
21272 - (at your option) any later version.
21273 + This file is free software: you can redistribute it and/or modify
21274 + it under the terms of the GNU Lesser General Public License as
21275 + published by the Free Software Foundation; either version 2.1 of the
21276 + License, or (at your option) any later version.
21277
21278 - This program is distributed in the hope that it will be useful,
21279 + This file is distributed in the hope that it will be useful,
21280 but WITHOUT ANY WARRANTY; without even the implied warranty of
21281 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21282 - GNU General Public License for more details.
21283 + GNU Lesser General Public License for more details.
21284
21285 - You should have received a copy of the GNU General Public License
21286 + You should have received a copy of the GNU Lesser General Public License
21287 along with this program. If not, see <https://www.gnu.org/licenses/>. */
21288
21289 #include <config.h>
21290
21291 diff --git a/autotools/gnulib/signbitf.c b/autotools/gnulib/signbitf.c
21292 index 86595e5..0adf001 100644
21293 --- a/autotools/gnulib/signbitf.c
21294 +++ b/autotools/gnulib/signbitf.c
21295 @@ -1,17 +1,17 @@
21296 /* signbit() macro: Determine the sign bit of a floating-point number.
21297 - Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
21298 + Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
21299
21300 - This program is free software: you can redistribute it and/or modify
21301 - it under the terms of the GNU General Public License as published by
21302 - the Free Software Foundation; either version 3 of the License, or
21303 - (at your option) any later version.
21304 + This file is free software: you can redistribute it and/or modify
21305 + it under the terms of the GNU Lesser General Public License as
21306 + published by the Free Software Foundation; either version 2.1 of the
21307 + License, or (at your option) any later version.
21308
21309 - This program is distributed in the hope that it will be useful,
21310 + This file is distributed in the hope that it will be useful,
21311 but WITHOUT ANY WARRANTY; without even the implied warranty of
21312 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21313 - GNU General Public License for more details.
21314 + GNU Lesser General Public License for more details.
21315
21316 - You should have received a copy of the GNU General Public License
21317 + You should have received a copy of the GNU Lesser General Public License
21318 along with this program. If not, see <https://www.gnu.org/licenses/>. */
21319
21320 #include <config.h>
21321
21322 diff --git a/autotools/gnulib/signbitl.c b/autotools/gnulib/signbitl.c
21323 index 79f4992..865d276 100644
21324 --- a/autotools/gnulib/signbitl.c
21325 +++ b/autotools/gnulib/signbitl.c
21326 @@ -1,17 +1,17 @@
21327 /* signbit() macro: Determine the sign bit of a floating-point number.
21328 - Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
21329 + Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
21330
21331 - This program is free software: you can redistribute it and/or modify
21332 - it under the terms of the GNU General Public License as published by
21333 - the Free Software Foundation; either version 3 of the License, or
21334 - (at your option) any later version.
21335 + This file is free software: you can redistribute it and/or modify
21336 + it under the terms of the GNU Lesser General Public License as
21337 + published by the Free Software Foundation; either version 2.1 of the
21338 + License, or (at your option) any later version.
21339
21340 - This program is distributed in the hope that it will be useful,
21341 + This file is distributed in the hope that it will be useful,
21342 but WITHOUT ANY WARRANTY; without even the implied warranty of
21343 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21344 - GNU General Public License for more details.
21345 + GNU Lesser General Public License for more details.
21346
21347 - You should have received a copy of the GNU General Public License
21348 + You should have received a copy of the GNU Lesser General Public License
21349 along with this program. If not, see <https://www.gnu.org/licenses/>. */
21350
21351 #include <config.h>
21352
21353 diff --git a/autotools/gnulib/size_max.h b/autotools/gnulib/size_max.h
21354 index e265fb9..dee2b8e 100644
21355 --- a/autotools/gnulib/size_max.h
21356 +++ b/autotools/gnulib/size_max.h
21357 @@ -1,19 +1,19 @@
21358 /* size_max.h -- declare SIZE_MAX through system headers
21359 - Copyright (C) 2005-2006, 2009-2019 Free Software Foundation, Inc.
21360 + Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc.
21361 Written by Simon Josefsson.
21362
21363 - This program is free software; you can redistribute it and/or modify
21364 - it under the terms of the GNU General Public License as published by
21365 - the Free Software Foundation; either version 3, or (at your option)
21366 - any later version.
21367 + This file is free software: you can redistribute it and/or modify
21368 + it under the terms of the GNU Lesser General Public License as
21369 + published by the Free Software Foundation; either version 2.1 of the
21370 + License, or (at your option) any later version.
21371
21372 - This program is distributed in the hope that it will be useful,
21373 + This file is distributed in the hope that it will be useful,
21374 but WITHOUT ANY WARRANTY; without even the implied warranty of
21375 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21376 - GNU General Public License for more details.
21377 + GNU Lesser General Public License for more details.
21378
21379 - You should have received a copy of the GNU General Public License
21380 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
21381 + You should have received a copy of the GNU Lesser General Public License
21382 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
21383
21384 #ifndef GNULIB_SIZE_MAX_H
21385 #define GNULIB_SIZE_MAX_H
21386
21387 diff --git a/autotools/gnulib/stat-time.c b/autotools/gnulib/stat-time.c
21388 index 81b83dd..3d48a2b 100644
21389 --- a/autotools/gnulib/stat-time.c
21390 +++ b/autotools/gnulib/stat-time.c
21391 @@ -1,3 +1,21 @@
21392 +/* stat-related time functions.
21393 +
21394 + Copyright (C) 2012-2022 Free Software Foundation, Inc.
21395 +
21396 + This file is free software: you can redistribute it and/or modify
21397 + it under the terms of the GNU Lesser General Public License as
21398 + published by the Free Software Foundation; either version 2.1 of the
21399 + License, or (at your option) any later version.
21400 +
21401 + This file is distributed in the hope that it will be useful,
21402 + but WITHOUT ANY WARRANTY; without even the implied warranty of
21403 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21404 + GNU Lesser General Public License for more details.
21405 +
21406 + You should have received a copy of the GNU Lesser General Public License
21407 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
21408 +
21409 #include <config.h>
21410 +
21411 #define _GL_STAT_TIME_INLINE _GL_EXTERN_INLINE
21412 #include "stat-time.h"
21413
21414 diff --git a/autotools/gnulib/stat-time.h b/autotools/gnulib/stat-time.h
21415 index 38a1f55..6b0088e 100644
21416 --- a/autotools/gnulib/stat-time.h
21417 +++ b/autotools/gnulib/stat-time.h
21418 @@ -1,18 +1,18 @@
21419 /* stat-related time functions.
21420
21421 - Copyright (C) 2005, 2007, 2009-2019 Free Software Foundation, Inc.
21422 + Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc.
21423
21424 - This program is free software: you can redistribute it and/or modify
21425 - it under the terms of the GNU General Public License as published by
21426 - the Free Software Foundation; either version 3 of the License, or
21427 - (at your option) any later version.
21428 + This file is free software: you can redistribute it and/or modify
21429 + it under the terms of the GNU Lesser General Public License as
21430 + published by the Free Software Foundation; either version 2.1 of the
21431 + License, or (at your option) any later version.
21432
21433 - This program is distributed in the hope that it will be useful,
21434 + This file is distributed in the hope that it will be useful,
21435 but WITHOUT ANY WARRANTY; without even the implied warranty of
21436 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21437 - GNU General Public License for more details.
21438 + GNU Lesser General Public License for more details.
21439
21440 - You should have received a copy of the GNU General Public License
21441 + You should have received a copy of the GNU Lesser General Public License
21442 along with this program. If not, see <https://www.gnu.org/licenses/>. */
21443
21444 /* Written by Paul Eggert. */
21445 @@ -102,7 +102,7 @@ get_stat_mtime_ns (struct stat const *st)
21446
21447 /* Return the nanosecond component of *ST's birth time. */
21448 _GL_STAT_TIME_INLINE long int _GL_ATTRIBUTE_PURE
21449 -get_stat_birthtime_ns (struct stat const *st _GL_UNUSED)
21450 +get_stat_birthtime_ns (_GL_UNUSED struct stat const *st)
21451 {
21452 # if defined HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC
21453 return STAT_TIMESPEC (st, st_birthtim).tv_nsec;
21454 @@ -158,7 +158,7 @@ get_stat_mtime (struct stat const *st)
21455 /* Return *ST's birth time, if available; otherwise return a value
21456 with tv_sec and tv_nsec both equal to -1. */
21457 _GL_STAT_TIME_INLINE struct timespec _GL_ATTRIBUTE_PURE
21458 -get_stat_birthtime (struct stat const *st _GL_UNUSED)
21459 +get_stat_birthtime (_GL_UNUSED struct stat const *st)
21460 {
21461 struct timespec t;
21462
21463 @@ -208,7 +208,7 @@ get_stat_birthtime (struct stat const *st _GL_UNUSED)
21464 errno to EOVERFLOW if normalization overflowed. This function
21465 is intended to be private to this .h file. */
21466 _GL_STAT_TIME_INLINE int
21467 -stat_time_normalize (int result, struct stat *st _GL_UNUSED)
21468 +stat_time_normalize (int result, _GL_UNUSED struct stat *st)
21469 {
21470 #if defined __sun && defined STAT_TIMESPEC
21471 if (result == 0)
21472
21473 diff --git a/autotools/gnulib/stat-w32.c b/autotools/gnulib/stat-w32.c
21474 index 60fe5f6..c1a2923 100644
21475 --- a/autotools/gnulib/stat-w32.c
21476 +++ b/autotools/gnulib/stat-w32.c
21477 @@ -1,17 +1,17 @@
21478 /* Core of implementation of fstat and stat for native Windows.
21479 - Copyright (C) 2017-2019 Free Software Foundation, Inc.
21480 + Copyright (C) 2017-2022 Free Software Foundation, Inc.
21481
21482 - This program is free software: you can redistribute it and/or modify
21483 - it under the terms of the GNU General Public License as published by
21484 - the Free Software Foundation; either version 3 of the License, or
21485 - (at your option) any later version.
21486 + This file is free software: you can redistribute it and/or modify
21487 + it under the terms of the GNU Lesser General Public License as
21488 + published by the Free Software Foundation; either version 2.1 of the
21489 + License, or (at your option) any later version.
21490
21491 - This program is distributed in the hope that it will be useful,
21492 + This file is distributed in the hope that it will be useful,
21493 but WITHOUT ANY WARRANTY; without even the implied warranty of
21494 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21495 - GNU General Public License for more details.
21496 + GNU Lesser General Public License for more details.
21497
21498 - You should have received a copy of the GNU General Public License
21499 + You should have received a copy of the GNU Lesser General Public License
21500 along with this program. If not, see <https://www.gnu.org/licenses/>. */
21501
21502 /* Written by Bruno Haible. */
21503 @@ -20,9 +20,23 @@
21504
21505 #if defined _WIN32 && ! defined __CYGWIN__
21506
21507 -/* Ensure that <windows.h> defines FILE_ID_INFO. */
21508 -#undef _WIN32_WINNT
21509 -#define _WIN32_WINNT _WIN32_WINNT_WIN8
21510 +/* Attempt to make <windows.h> define FILE_ID_INFO.
21511 + But ensure that the redefinition of _WIN32_WINNT does not make us assume
21512 + Windows Vista or newer when building for an older version of Windows. */
21513 +#if HAVE_SDKDDKVER_H
21514 +# include <sdkddkver.h>
21515 +# if _WIN32_WINNT >= _WIN32_WINNT_VISTA
21516 +# define WIN32_ASSUME_VISTA 1
21517 +# else
21518 +# define WIN32_ASSUME_VISTA 0
21519 +# endif
21520 +# if !defined _WIN32_WINNT || (_WIN32_WINNT < _WIN32_WINNT_WIN8)
21521 +# undef _WIN32_WINNT
21522 +# define _WIN32_WINNT _WIN32_WINNT_WIN8
21523 +# endif
21524 +#else
21525 +# define WIN32_ASSUME_VISTA (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
21526 +#endif
21527
21528 #include <sys/types.h>
21529 #include <sys/stat.h>
21530 @@ -38,21 +52,34 @@
21531 #include "pathmax.h"
21532 #include "verify.h"
21533
21534 +/* Don't assume that UNICODE is not defined. */
21535 +#undef LoadLibrary
21536 +#define LoadLibrary LoadLibraryA
21537 +#undef GetFinalPathNameByHandle
21538 +#define GetFinalPathNameByHandle GetFinalPathNameByHandleA
21539 +
21540 +/* Older mingw headers do not define VOLUME_NAME_NONE. */
21541 +#ifndef VOLUME_NAME_NONE
21542 +# define VOLUME_NAME_NONE 4
21543 +#endif
21544 +
21545 +#if !WIN32_ASSUME_VISTA
21546 +
21547 /* Avoid warnings from gcc -Wcast-function-type. */
21548 -#define GetProcAddress \
21549 - (void *) GetProcAddress
21550 +# define GetProcAddress \
21551 + (void *) GetProcAddress
21552
21553 -#if _GL_WINDOWS_STAT_INODES == 2
21554 +# if _GL_WINDOWS_STAT_INODES == 2
21555 /* GetFileInformationByHandleEx was introduced only in Windows Vista. */
21556 typedef DWORD (WINAPI * GetFileInformationByHandleExFuncType) (HANDLE hFile,
21557 FILE_INFO_BY_HANDLE_CLASS fiClass,
21558 LPVOID lpBuffer,
21559 DWORD dwBufferSize);
21560 static GetFileInformationByHandleExFuncType GetFileInformationByHandleExFunc = NULL;
21561 -#endif
21562 +# endif
21563 /* GetFinalPathNameByHandle was introduced only in Windows Vista. */
21564 typedef DWORD (WINAPI * GetFinalPathNameByHandleFuncType) (HANDLE hFile,
21565 - LPTSTR lpFilePath,
21566 + LPSTR lpFilePath,
21567 DWORD lenFilePath,
21568 DWORD dwFlags);
21569 static GetFinalPathNameByHandleFuncType GetFinalPathNameByHandleFunc = NULL;
21570 @@ -64,16 +91,23 @@ initialize (void)
21571 HMODULE kernel32 = LoadLibrary ("kernel32.dll");
21572 if (kernel32 != NULL)
21573 {
21574 -#if _GL_WINDOWS_STAT_INODES == 2
21575 +# if _GL_WINDOWS_STAT_INODES == 2
21576 GetFileInformationByHandleExFunc =
21577 (GetFileInformationByHandleExFuncType) GetProcAddress (kernel32, "GetFileInformationByHandleEx");
21578 -#endif
21579 +# endif
21580 GetFinalPathNameByHandleFunc =
21581 (GetFinalPathNameByHandleFuncType) GetProcAddress (kernel32, "GetFinalPathNameByHandleA");
21582 }
21583 initialized = TRUE;
21584 }
21585
21586 +#else
21587 +
21588 +# define GetFileInformationByHandleExFunc GetFileInformationByHandleEx
21589 +# define GetFinalPathNameByHandleFunc GetFinalPathNameByHandle
21590 +
21591 +#endif
21592 +
21593 /* Converts a FILETIME to GMT time since 1970-01-01 00:00:00. */
21594 #if _GL_WINDOWS_STAT_TIMESPEC
21595 struct timespec
21596 @@ -132,8 +166,10 @@ _gl_fstat_by_handle (HANDLE h, const char *path, struct stat *buf)
21597 DWORD type = GetFileType (h);
21598 if (type == FILE_TYPE_DISK)
21599 {
21600 +#if !WIN32_ASSUME_VISTA
21601 if (!initialized)
21602 initialize ();
21603 +#endif
21604
21605 /* st_mode can be determined through
21606 GetFileAttributesEx
21607
21608 diff --git a/autotools/gnulib/stat-w32.h b/autotools/gnulib/stat-w32.h
21609 index 6b961d7..0f79d61 100644
21610 --- a/autotools/gnulib/stat-w32.h
21611 +++ b/autotools/gnulib/stat-w32.h
21612 @@ -1,17 +1,17 @@
21613 /* Core of implementation of fstat and stat for native Windows.
21614 - Copyright (C) 2017-2019 Free Software Foundation, Inc.
21615 + Copyright (C) 2017-2022 Free Software Foundation, Inc.
21616
21617 - This program is free software: you can redistribute it and/or modify
21618 - it under the terms of the GNU General Public License as published by
21619 - the Free Software Foundation; either version 3 of the License, or
21620 - (at your option) any later version.
21621 + This file is free software: you can redistribute it and/or modify
21622 + it under the terms of the GNU Lesser General Public License as
21623 + published by the Free Software Foundation; either version 2.1 of the
21624 + License, or (at your option) any later version.
21625
21626 - This program is distributed in the hope that it will be useful,
21627 + This file is distributed in the hope that it will be useful,
21628 but WITHOUT ANY WARRANTY; without even the implied warranty of
21629 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21630 - GNU General Public License for more details.
21631 + GNU Lesser General Public License for more details.
21632
21633 - You should have received a copy of the GNU General Public License
21634 + You should have received a copy of the GNU Lesser General Public License
21635 along with this program. If not, see <https://www.gnu.org/licenses/>. */
21636
21637 #ifndef _STAT_W32_H
21638
21639 diff --git a/autotools/gnulib/stat.c b/autotools/gnulib/stat.c
21640 index 1c28aa4..574489a 100644
21641 --- a/autotools/gnulib/stat.c
21642 +++ b/autotools/gnulib/stat.c
21643 @@ -1,17 +1,17 @@
21644 /* Work around platform bugs in stat.
21645 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
21646 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
21647
21648 - This program is free software: you can redistribute it and/or modify
21649 - it under the terms of the GNU General Public License as published by
21650 - the Free Software Foundation; either version 3 of the License, or
21651 - (at your option) any later version.
21652 + This file is free software: you can redistribute it and/or modify
21653 + it under the terms of the GNU Lesser General Public License as
21654 + published by the Free Software Foundation; either version 2.1 of the
21655 + License, or (at your option) any later version.
21656
21657 - This program is distributed in the hope that it will be useful,
21658 + This file is distributed in the hope that it will be useful,
21659 but WITHOUT ANY WARRANTY; without even the implied warranty of
21660 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21661 - GNU General Public License for more details.
21662 + GNU Lesser General Public License for more details.
21663
21664 - You should have received a copy of the GNU General Public License
21665 + You should have received a copy of the GNU Lesser General Public License
21666 along with this program. If not, see <https://www.gnu.org/licenses/>. */
21667
21668 /* Written by Eric Blake and Bruno Haible. */
21669 @@ -65,6 +65,13 @@ orig_stat (const char *filename, struct stat *buf)
21670 # define WIN32_LEAN_AND_MEAN
21671 # include <windows.h>
21672 # include "stat-w32.h"
21673 +/* Don't assume that UNICODE is not defined. */
21674 +# undef WIN32_FIND_DATA
21675 +# define WIN32_FIND_DATA WIN32_FIND_DATAA
21676 +# undef CreateFile
21677 +# define CreateFile CreateFileA
21678 +# undef FindFirstFile
21679 +# define FindFirstFile FindFirstFileA
21680 #endif
21681
21682 #ifdef WINDOWS_NATIVE
21683 @@ -113,7 +120,7 @@ rpl_stat (char const *name, struct stat *buf)
21684 around length limitations
21685 <https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file> ? */
21686
21687 - /* POSIX <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>
21688 + /* POSIX <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>
21689 specifies: "More than two leading <slash> characters shall be treated as
21690 a single <slash> character." */
21691 if (ISSLASH (name[0]) && ISSLASH (name[1]) && ISSLASH (name[2]))
21692 @@ -375,7 +382,7 @@ rpl_stat (char const *name, struct stat *buf)
21693
21694 case ERROR_ACCESS_DENIED: /* rname is such as 'C:\System Volume Information\foo'. */
21695 case ERROR_SHARING_VIOLATION: /* rname is such as 'C:\pagefile.sys' (second approach only). */
21696 - /* XXX map to EACCESS or EPERM? */
21697 + /* XXX map to EACCES or EPERM? */
21698 errno = EACCES;
21699 break;
21700
21701 @@ -398,7 +405,7 @@ rpl_stat (char const *name, struct stat *buf)
21702 errno = ENAMETOOLONG;
21703 break;
21704
21705 - case ERROR_DELETE_PENDING: /* XXX map to EACCESS or EPERM? */
21706 + case ERROR_DELETE_PENDING: /* XXX map to EACCES or EPERM? */
21707 errno = EPERM;
21708 break;
21709
21710
21711 diff --git a/autotools/gnulib/statat.c b/autotools/gnulib/statat.c
21712 index 8cdb17e..bf96d3b 100644
21713 --- a/autotools/gnulib/statat.c
21714 +++ b/autotools/gnulib/statat.c
21715 @@ -1,3 +1,21 @@
21716 +/* Return info about a file at a directory.
21717 +
21718 + Copyright (C) 2012-2022 Free Software Foundation, Inc.
21719 +
21720 + This file is free software: you can redistribute it and/or modify
21721 + it under the terms of the GNU General Public License as published
21722 + by the Free Software Foundation, either version 3 of the License,
21723 + or (at your option) any later version.
21724 +
21725 + This file is distributed in the hope that it will be useful,
21726 + but WITHOUT ANY WARRANTY; without even the implied warranty of
21727 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21728 + GNU General Public License for more details.
21729 +
21730 + You should have received a copy of the GNU General Public License
21731 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
21732 +
21733 #include <config.h>
21734 +
21735 #define STATAT_INLINE _GL_EXTERN_INLINE
21736 #include "openat.h"
21737
21738 diff --git a/autotools/gnulib/stdbool.in.h b/autotools/gnulib/stdbool.in.h
21739 index 8158b00..03840f1 100644
21740 --- a/autotools/gnulib/stdbool.in.h
21741 +++ b/autotools/gnulib/stdbool.in.h
21742 @@ -1,18 +1,18 @@
21743 -/* Copyright (C) 2001-2003, 2006-2019 Free Software Foundation, Inc.
21744 +/* Copyright (C) 2001-2003, 2006-2022 Free Software Foundation, Inc.
21745 Written by Bruno Haible <haible@××××××××××.org>, 2001.
21746
21747 - This program is free software; you can redistribute it and/or modify
21748 - it under the terms of the GNU General Public License as published by
21749 - the Free Software Foundation; either version 3, or (at your option)
21750 - any later version.
21751 + This file is free software: you can redistribute it and/or modify
21752 + it under the terms of the GNU Lesser General Public License as
21753 + published by the Free Software Foundation; either version 2.1 of the
21754 + License, or (at your option) any later version.
21755
21756 - This program is distributed in the hope that it will be useful,
21757 + This file is distributed in the hope that it will be useful,
21758 but WITHOUT ANY WARRANTY; without even the implied warranty of
21759 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21760 - GNU General Public License for more details.
21761 + GNU Lesser General Public License for more details.
21762
21763 - You should have received a copy of the GNU General Public License
21764 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
21765 + You should have received a copy of the GNU Lesser General Public License
21766 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
21767
21768 #ifndef _GL_STDBOOL_H
21769 #define _GL_STDBOOL_H
21770
21771 diff --git a/autotools/gnulib/stddef.in.h b/autotools/gnulib/stddef.in.h
21772 index 5aad121..5c9a747 100644
21773 --- a/autotools/gnulib/stddef.in.h
21774 +++ b/autotools/gnulib/stddef.in.h
21775 @@ -1,25 +1,25 @@
21776 /* A substitute for POSIX 2008 <stddef.h>, for platforms that have issues.
21777
21778 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
21779 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
21780
21781 - This program is free software; you can redistribute it and/or modify
21782 - it under the terms of the GNU General Public License as published by
21783 - the Free Software Foundation; either version 3, or (at your option)
21784 - any later version.
21785 + This file is free software: you can redistribute it and/or modify
21786 + it under the terms of the GNU Lesser General Public License as
21787 + published by the Free Software Foundation; either version 2.1 of the
21788 + License, or (at your option) any later version.
21789
21790 - This program is distributed in the hope that it will be useful,
21791 + This file is distributed in the hope that it will be useful,
21792 but WITHOUT ANY WARRANTY; without even the implied warranty of
21793 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21794 - GNU General Public License for more details.
21795 + GNU Lesser General Public License for more details.
21796
21797 - You should have received a copy of the GNU General Public License
21798 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
21799 + You should have received a copy of the GNU Lesser General Public License
21800 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
21801
21802 /* Written by Eric Blake. */
21803
21804 /*
21805 * POSIX 2008 <stddef.h> for platforms that have issues.
21806 - * <http://www.opengroup.org/susv3xbd/stddef.h.html>
21807 + * <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stddef.h.html>
21808 */
21809
21810 #if __GNUC__ >= 3
21811 @@ -42,6 +42,13 @@
21812 # define _GL_STDDEF_WINT_T
21813 # endif
21814 # @INCLUDE_NEXT@ @NEXT_STDDEF_H@
21815 + /* On TinyCC, make sure that the macros that indicate the special invocation
21816 + convention get undefined. */
21817 +# undef __need_wchar_t
21818 +# undef __need_size_t
21819 +# undef __need_ptrdiff_t
21820 +# undef __need_NULL
21821 +# undef __need_wint_t
21822 # endif
21823
21824 #else
21825 @@ -49,6 +56,23 @@
21826
21827 # ifndef _@GUARD_PREFIX@_STDDEF_H
21828
21829 +/* On AIX 7.2, with xlc in 64-bit mode, <stddef.h> defines max_align_t to a
21830 + type with alignment 4, but 'long' has alignment 8. */
21831 +# if defined _AIX && defined __LP64__
21832 +# if !GNULIB_defined_max_align_t
21833 +# ifdef _MAX_ALIGN_T
21834 +/* /usr/include/stddef.h has already defined max_align_t. Override it. */
21835 +typedef long rpl_max_align_t;
21836 +# define max_align_t rpl_max_align_t
21837 +# else
21838 +/* Prevent /usr/include/stddef.h from defining max_align_t. */
21839 +typedef long max_align_t;
21840 +# define _MAX_ALIGN_T
21841 +# endif
21842 +# define GNULIB_defined_max_align_t 1
21843 +# endif
21844 +# endif
21845 +
21846 /* The include_next requires a split double-inclusion guard. */
21847
21848 # @INCLUDE_NEXT@ @NEXT_STDDEF_H@
21849 @@ -83,20 +107,28 @@
21850
21851 /* Some platforms lack max_align_t. The check for _GCC_MAX_ALIGN_T is
21852 a hack in case the configure-time test was done with g++ even though
21853 - we are currently compiling with gcc. */
21854 -#if ! (@HAVE_MAX_ALIGN_T@ || defined _GCC_MAX_ALIGN_T)
21855 -# if !GNULIB_defined_max_align_t
21856 + we are currently compiling with gcc.
21857 + On MSVC, max_align_t is defined only in C++ mode, after <cstddef> was
21858 + included. Its definition is good since it has an alignment of 8 (on x86
21859 + and x86_64).
21860 + Similarly on OS/2 kLIBC. */
21861 +#if (defined _MSC_VER || (defined __KLIBC__ && !defined __LIBCN__)) \
21862 + && defined __cplusplus
21863 +# include <cstddef>
21864 +#else
21865 +# if ! (@HAVE_MAX_ALIGN_T@ || (defined _GCC_MAX_ALIGN_T && !defined __clang__))
21866 +# if !GNULIB_defined_max_align_t
21867 /* On the x86, the maximum storage alignment of double, long, etc. is 4,
21868 but GCC's C11 ABI for x86 says that max_align_t has an alignment of 8,
21869 and the C11 standard allows this. Work around this problem by
21870 using __alignof__ (which returns 8 for double) rather than _Alignof
21871 (which returns 4), and align each union member accordingly. */
21872 -# ifdef __GNUC__
21873 -# define _GL_STDDEF_ALIGNAS(type) \
21874 - __attribute__ ((__aligned__ (__alignof__ (type))))
21875 -# else
21876 -# define _GL_STDDEF_ALIGNAS(type) /* */
21877 -# endif
21878 +# if defined __GNUC__ || (__clang_major__ >= 4)
21879 +# define _GL_STDDEF_ALIGNAS(type) \
21880 + __attribute__ ((__aligned__ (__alignof__ (type))))
21881 +# else
21882 +# define _GL_STDDEF_ALIGNAS(type) /* */
21883 +# endif
21884 typedef union
21885 {
21886 char *__p _GL_STDDEF_ALIGNAS (char *);
21887 @@ -104,8 +136,9 @@ typedef union
21888 long double __ld _GL_STDDEF_ALIGNAS (long double);
21889 long int __i _GL_STDDEF_ALIGNAS (long int);
21890 } rpl_max_align_t;
21891 -# define max_align_t rpl_max_align_t
21892 -# define GNULIB_defined_max_align_t 1
21893 +# define max_align_t rpl_max_align_t
21894 +# define GNULIB_defined_max_align_t 1
21895 +# endif
21896 # endif
21897 #endif
21898
21899
21900 diff --git a/autotools/gnulib/stdint.in.h b/autotools/gnulib/stdint.in.h
21901 index 21dd8d2..eaa7874 100644
21902 --- a/autotools/gnulib/stdint.in.h
21903 +++ b/autotools/gnulib/stdint.in.h
21904 @@ -1,23 +1,23 @@
21905 -/* Copyright (C) 2001-2002, 2004-2019 Free Software Foundation, Inc.
21906 +/* Copyright (C) 2001-2002, 2004-2022 Free Software Foundation, Inc.
21907 Written by Paul Eggert, Bruno Haible, Sam Steingold, Peter Burwood.
21908 This file is part of gnulib.
21909
21910 - This program is free software; you can redistribute it and/or modify
21911 - it under the terms of the GNU General Public License as published by
21912 - the Free Software Foundation; either version 3, or (at your option)
21913 - any later version.
21914 + This file is free software: you can redistribute it and/or modify
21915 + it under the terms of the GNU Lesser General Public License as
21916 + published by the Free Software Foundation; either version 2.1 of the
21917 + License, or (at your option) any later version.
21918
21919 - This program is distributed in the hope that it will be useful,
21920 + This file is distributed in the hope that it will be useful,
21921 but WITHOUT ANY WARRANTY; without even the implied warranty of
21922 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21923 - GNU General Public License for more details.
21924 + GNU Lesser General Public License for more details.
21925
21926 - You should have received a copy of the GNU General Public License
21927 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
21928 + You should have received a copy of the GNU Lesser General Public License
21929 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
21930
21931 /*
21932 * ISO C 99 <stdint.h> for platforms that lack it.
21933 - * <http://www.opengroup.org/susv3xbd/stdint.h.html>
21934 + * <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/stdint.h.html>
21935 */
21936
21937 #ifndef _@GUARD_PREFIX@_STDINT_H
21938 @@ -85,7 +85,7 @@
21939
21940 /* Override WINT_MIN and WINT_MAX if gnulib's <wchar.h> or <wctype.h> overrides
21941 wint_t. */
21942 -#if @GNULIB_OVERRIDES_WINT_T@
21943 +#if @GNULIBHEADERS_OVERRIDE_WINT_T@
21944 # undef WINT_MIN
21945 # undef WINT_MAX
21946 # define WINT_MIN 0x0U
21947 @@ -188,7 +188,7 @@ typedef long int gl_int64_t;
21948 typedef __int64 gl_int64_t;
21949 # define int64_t gl_int64_t
21950 # define GL_INT64_T
21951 -# elif @HAVE_LONG_LONG_INT@
21952 +# else
21953 # undef int64_t
21954 typedef long long int gl_int64_t;
21955 # define int64_t gl_int64_t
21956 @@ -209,7 +209,7 @@ typedef unsigned long int gl_uint64_t;
21957 typedef unsigned __int64 gl_uint64_t;
21958 # define uint64_t gl_uint64_t
21959 # define GL_UINT64_T
21960 -# elif @HAVE_UNSIGNED_LONG_LONG_INT@
21961 +# else
21962 # undef uint64_t
21963 typedef unsigned long long int gl_uint64_t;
21964 # define uint64_t gl_uint64_t
21965 @@ -299,16 +299,25 @@ typedef gl_uint_fast32_t gl_uint_fast16_t;
21966
21967 /* 7.18.1.4. Integer types capable of holding object pointers */
21968
21969 -/* kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
21970 +/* kLIBC's <stdint.h> defines _INTPTR_T_DECLARED and needs its own
21971 definitions of intptr_t and uintptr_t (which use int and unsigned)
21972 - to avoid clashes with declarations of system functions like sbrk. */
21973 -# ifndef _INTPTR_T_DECLARED
21974 -# undef intptr_t
21975 -# undef uintptr_t
21976 + to avoid clashes with declarations of system functions like sbrk.
21977 + Similarly, MinGW WSL-5.4.1 <stdint.h> needs its own intptr_t and
21978 + uintptr_t to avoid conflicting declarations of system functions like
21979 + _findclose in <io.h>. */
21980 +# if !((defined __KLIBC__ && defined _INTPTR_T_DECLARED) \
21981 + || defined __MINGW32__)
21982 +# undef intptr_t
21983 +# undef uintptr_t
21984 +# ifdef _WIN64
21985 +typedef long long int gl_intptr_t;
21986 +typedef unsigned long long int gl_uintptr_t;
21987 +# else
21988 typedef long int gl_intptr_t;
21989 typedef unsigned long int gl_uintptr_t;
21990 -# define intptr_t gl_intptr_t
21991 -# define uintptr_t gl_uintptr_t
21992 +# endif
21993 +# define intptr_t gl_intptr_t
21994 +# define uintptr_t gl_uintptr_t
21995 # endif
21996
21997 /* 7.18.1.5. Greatest-width integer types */
21998 @@ -323,7 +332,7 @@ typedef unsigned long int gl_uintptr_t;
21999 # ifndef INTMAX_MAX
22000 # undef INTMAX_C
22001 # undef intmax_t
22002 -# if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1
22003 +# if LONG_MAX >> 30 == 1
22004 typedef long long int gl_intmax_t;
22005 # define intmax_t gl_intmax_t
22006 # elif defined GL_INT64_T
22007 @@ -337,7 +346,7 @@ typedef long int gl_intmax_t;
22008 # ifndef UINTMAX_MAX
22009 # undef UINTMAX_C
22010 # undef uintmax_t
22011 -# if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1
22012 +# if ULONG_MAX >> 31 == 1
22013 typedef unsigned long long int gl_uintmax_t;
22014 # define uintmax_t gl_uintmax_t
22015 # elif defined GL_UINT64_T
22016 @@ -485,9 +494,15 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t)
22017 # undef INTPTR_MIN
22018 # undef INTPTR_MAX
22019 # undef UINTPTR_MAX
22020 -# define INTPTR_MIN LONG_MIN
22021 -# define INTPTR_MAX LONG_MAX
22022 -# define UINTPTR_MAX ULONG_MAX
22023 +# ifdef _WIN64
22024 +# define INTPTR_MIN LLONG_MIN
22025 +# define INTPTR_MAX LLONG_MAX
22026 +# define UINTPTR_MAX ULLONG_MAX
22027 +# else
22028 +# define INTPTR_MIN LONG_MIN
22029 +# define INTPTR_MAX LONG_MAX
22030 +# define UINTPTR_MAX ULONG_MAX
22031 +# endif
22032
22033 /* 7.18.2.5. Limits of greatest-width integer types */
22034
22035 @@ -564,11 +579,6 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t)
22036 <wchar.h> -> <stdio.h> -> <getopt.h> -> <stdlib.h>, and the latter includes
22037 <stdint.h> and assumes its types are already defined. */
22038 # if @HAVE_WCHAR_H@ && ! (defined WCHAR_MIN && defined WCHAR_MAX)
22039 - /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
22040 - included before <wchar.h>. */
22041 -# include <stddef.h>
22042 -# include <stdio.h>
22043 -# include <time.h>
22044 # define _GL_JUST_INCLUDE_SYSTEM_WCHAR_H
22045 # include <wchar.h>
22046 # undef _GL_JUST_INCLUDE_SYSTEM_WCHAR_H
22047 @@ -586,17 +596,21 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t)
22048 _STDINT_MAX (@HAVE_SIGNED_WCHAR_T@, @BITSIZEOF_WCHAR_T@, 0@WCHAR_T_SUFFIX@)
22049
22050 /* wint_t limits */
22051 -# undef WINT_MIN
22052 -# undef WINT_MAX
22053 -# if @HAVE_SIGNED_WINT_T@
22054 -# define WINT_MIN \
22055 - _STDINT_SIGNED_MIN (@BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@)
22056 -# else
22057 -# define WINT_MIN \
22058 - _STDINT_UNSIGNED_MIN (@BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@)
22059 +/* If gnulib's <wchar.h> or <wctype.h> overrides wint_t, @WINT_T_SUFFIX@ is not
22060 + accurate, therefore use the definitions from above. */
22061 +# if !@GNULIBHEADERS_OVERRIDE_WINT_T@
22062 +# undef WINT_MIN
22063 +# undef WINT_MAX
22064 +# if @HAVE_SIGNED_WINT_T@
22065 +# define WINT_MIN \
22066 + _STDINT_SIGNED_MIN (@BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@)
22067 +# else
22068 +# define WINT_MIN \
22069 + _STDINT_UNSIGNED_MIN (@BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@)
22070 +# endif
22071 +# define WINT_MAX \
22072 + _STDINT_MAX (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@)
22073 # endif
22074 -# define WINT_MAX \
22075 - _STDINT_MAX (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, 0@WINT_T_SUFFIX@)
22076
22077 /* 7.18.4. Macros for integer constants */
22078
22079 @@ -627,21 +641,21 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t)
22080 # define INT64_C(x) x##L
22081 # elif defined _MSC_VER
22082 # define INT64_C(x) x##i64
22083 -# elif @HAVE_LONG_LONG_INT@
22084 +# else
22085 # define INT64_C(x) x##LL
22086 # endif
22087 # if ULONG_MAX >> 31 >> 31 >> 1 == 1
22088 # define UINT64_C(x) x##UL
22089 # elif defined _MSC_VER
22090 # define UINT64_C(x) x##ui64
22091 -# elif @HAVE_UNSIGNED_LONG_LONG_INT@
22092 +# else
22093 # define UINT64_C(x) x##ULL
22094 # endif
22095
22096 /* 7.18.4.2. Macros for greatest-width integer constants */
22097
22098 # ifndef INTMAX_C
22099 -# if @HAVE_LONG_LONG_INT@ && LONG_MAX >> 30 == 1
22100 +# if LONG_MAX >> 30 == 1
22101 # define INTMAX_C(x) x##LL
22102 # elif defined GL_INT64_T
22103 # define INTMAX_C(x) INT64_C(x)
22104 @@ -651,7 +665,7 @@ typedef int _verify_intmax_size[sizeof (intmax_t) == sizeof (uintmax_t)
22105 # endif
22106
22107 # ifndef UINTMAX_C
22108 -# if @HAVE_UNSIGNED_LONG_LONG_INT@ && ULONG_MAX >> 31 == 1
22109 +# if ULONG_MAX >> 31 == 1
22110 # define UINTMAX_C(x) x##ULL
22111 # elif defined GL_UINT64_T
22112 # define UINTMAX_C(x) UINT64_C(x)
22113
22114 diff --git a/autotools/gnulib/stdio-read.c b/autotools/gnulib/stdio-read.c
22115 new file mode 100644
22116 index 0000000..85efa0d
22117 --- /dev/null
22118 +++ b/autotools/gnulib/stdio-read.c
22119 @@ -0,0 +1,168 @@
22120 +/* POSIX compatible FILE stream read function.
22121 + Copyright (C) 2008-2022 Free Software Foundation, Inc.
22122 + Written by Bruno Haible <bruno@×××××.org>, 2011.
22123 +
22124 + This file is free software: you can redistribute it and/or modify
22125 + it under the terms of the GNU Lesser General Public License as
22126 + published by the Free Software Foundation; either version 2.1 of the
22127 + License, or (at your option) any later version.
22128 +
22129 + This file is distributed in the hope that it will be useful,
22130 + but WITHOUT ANY WARRANTY; without even the implied warranty of
22131 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22132 + GNU Lesser General Public License for more details.
22133 +
22134 + You should have received a copy of the GNU Lesser General Public License
22135 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
22136 +
22137 +#include <config.h>
22138 +
22139 +/* Specification. */
22140 +#include <stdio.h>
22141 +
22142 +/* Replace these functions only if module 'nonblocking' is requested. */
22143 +#if GNULIB_NONBLOCKING
22144 +
22145 +/* On native Windows platforms, when read() is called on a non-blocking pipe
22146 + with an empty buffer, ReadFile() fails with error GetLastError() =
22147 + ERROR_NO_DATA, and read() in consequence fails with error EINVAL. This
22148 + read() function is at the basis of the function which fills the buffer of
22149 + a FILE stream. */
22150 +
22151 +# if defined _WIN32 && ! defined __CYGWIN__
22152 +
22153 +# include <errno.h>
22154 +# include <io.h>
22155 +
22156 +# define WIN32_LEAN_AND_MEAN /* avoid including junk */
22157 +# include <windows.h>
22158 +
22159 +# if GNULIB_MSVC_NOTHROW
22160 +# include "msvc-nothrow.h"
22161 +# else
22162 +# include <io.h>
22163 +# endif
22164 +
22165 +/* Don't assume that UNICODE is not defined. */
22166 +# undef GetNamedPipeHandleState
22167 +# define GetNamedPipeHandleState GetNamedPipeHandleStateA
22168 +
22169 +# define CALL_WITH_ERRNO_FIX(RETTYPE, EXPRESSION, FAILED) \
22170 + if (ferror (stream)) \
22171 + return (EXPRESSION); \
22172 + else \
22173 + { \
22174 + RETTYPE ret; \
22175 + SetLastError (0); \
22176 + ret = (EXPRESSION); \
22177 + if (FAILED) \
22178 + { \
22179 + if (GetLastError () == ERROR_NO_DATA && ferror (stream)) \
22180 + { \
22181 + int fd = fileno (stream); \
22182 + if (fd >= 0) \
22183 + { \
22184 + HANDLE h = (HANDLE) _get_osfhandle (fd); \
22185 + if (GetFileType (h) == FILE_TYPE_PIPE) \
22186 + { \
22187 + /* h is a pipe or socket. */ \
22188 + DWORD state; \
22189 + if (GetNamedPipeHandleState (h, &state, NULL, NULL, \
22190 + NULL, NULL, 0) \
22191 + && (state & PIPE_NOWAIT) != 0) \
22192 + /* h is a pipe in non-blocking mode. \
22193 + Change errno from EINVAL to EAGAIN. */ \
22194 + errno = EAGAIN; \
22195 + } \
22196 + } \
22197 + } \
22198 + } \
22199 + return ret; \
22200 + }
22201 +
22202 +/* Enable this function definition only if gnulib's <stdio.h> has prepared it.
22203 + Otherwise we get a function definition conflict with mingw64's <stdio.h>. */
22204 +# if GNULIB_SCANF
22205 +int
22206 +scanf (const char *format, ...)
22207 +{
22208 + int retval;
22209 + va_list args;
22210 +
22211 + va_start (args, format);
22212 + retval = vfscanf (stdin, format, args);
22213 + va_end (args);
22214 +
22215 + return retval;
22216 +}
22217 +# endif
22218 +
22219 +/* Enable this function definition only if gnulib's <stdio.h> has prepared it.
22220 + Otherwise we get a function definition conflict with mingw64's <stdio.h>. */
22221 +# if GNULIB_FSCANF
22222 +int
22223 +fscanf (FILE *stream, const char *format, ...)
22224 +{
22225 + int retval;
22226 + va_list args;
22227 +
22228 + va_start (args, format);
22229 + retval = vfscanf (stream, format, args);
22230 + va_end (args);
22231 +
22232 + return retval;
22233 +}
22234 +# endif
22235 +
22236 +/* Enable this function definition only if gnulib's <stdio.h> has prepared it.
22237 + Otherwise we get a function definition conflict with mingw64's <stdio.h>. */
22238 +# if GNULIB_VSCANF
22239 +int
22240 +vscanf (const char *format, va_list args)
22241 +{
22242 + return vfscanf (stdin, format, args);
22243 +}
22244 +# endif
22245 +
22246 +/* Enable this function definition only if gnulib's <stdio.h> has prepared it.
22247 + Otherwise we get a function definition conflict with mingw64's <stdio.h>. */
22248 +# if GNULIB_VFSCANF
22249 +int
22250 +vfscanf (FILE *stream, const char *format, va_list args)
22251 +#undef vfscanf
22252 +{
22253 + CALL_WITH_ERRNO_FIX (int, vfscanf (stream, format, args), ret == EOF)
22254 +}
22255 +# endif
22256 +
22257 +int
22258 +getchar (void)
22259 +{
22260 + return fgetc (stdin);
22261 +}
22262 +
22263 +int
22264 +fgetc (FILE *stream)
22265 +#undef fgetc
22266 +{
22267 + CALL_WITH_ERRNO_FIX (int, fgetc (stream), ret == EOF)
22268 +}
22269 +
22270 +char *
22271 +fgets (char *s, int n, FILE *stream)
22272 +#undef fgets
22273 +{
22274 + CALL_WITH_ERRNO_FIX (char *, fgets (s, n, stream), ret == NULL)
22275 +}
22276 +
22277 +/* We intentionally don't bother to fix gets. */
22278 +
22279 +size_t
22280 +fread (void *ptr, size_t s, size_t n, FILE *stream)
22281 +#undef fread
22282 +{
22283 + CALL_WITH_ERRNO_FIX (size_t, fread (ptr, s, n, stream), ret < n)
22284 +}
22285 +
22286 +# endif
22287 +#endif
22288
22289 diff --git a/autotools/gnulib/stdio-write.c b/autotools/gnulib/stdio-write.c
22290 new file mode 100644
22291 index 0000000..82facf5
22292 --- /dev/null
22293 +++ b/autotools/gnulib/stdio-write.c
22294 @@ -0,0 +1,206 @@
22295 +/* POSIX compatible FILE stream write function.
22296 + Copyright (C) 2008-2022 Free Software Foundation, Inc.
22297 + Written by Bruno Haible <bruno@×××××.org>, 2008.
22298 +
22299 + This file is free software: you can redistribute it and/or modify
22300 + it under the terms of the GNU Lesser General Public License as
22301 + published by the Free Software Foundation; either version 2.1 of the
22302 + License, or (at your option) any later version.
22303 +
22304 + This file is distributed in the hope that it will be useful,
22305 + but WITHOUT ANY WARRANTY; without even the implied warranty of
22306 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22307 + GNU Lesser General Public License for more details.
22308 +
22309 + You should have received a copy of the GNU Lesser General Public License
22310 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
22311 +
22312 +#include <config.h>
22313 +
22314 +/* Specification. */
22315 +#include <stdio.h>
22316 +
22317 +/* Replace these functions only if module 'nonblocking' or module 'sigpipe' is
22318 + requested. */
22319 +#if GNULIB_NONBLOCKING || GNULIB_SIGPIPE
22320 +
22321 +/* On native Windows platforms, SIGPIPE does not exist. When write() is
22322 + called on a pipe with no readers, WriteFile() fails with error
22323 + GetLastError() = ERROR_NO_DATA, and write() in consequence fails with
22324 + error EINVAL. This write() function is at the basis of the function
22325 + which flushes the buffer of a FILE stream. */
22326 +
22327 +# if defined _WIN32 && ! defined __CYGWIN__
22328 +
22329 +# include <errno.h>
22330 +# include <signal.h>
22331 +# include <io.h>
22332 +
22333 +# define WIN32_LEAN_AND_MEAN /* avoid including junk */
22334 +# include <windows.h>
22335 +
22336 +# if GNULIB_MSVC_NOTHROW
22337 +# include "msvc-nothrow.h"
22338 +# else
22339 +# include <io.h>
22340 +# endif
22341 +
22342 +/* Don't assume that UNICODE is not defined. */
22343 +# undef GetNamedPipeHandleState
22344 +# define GetNamedPipeHandleState GetNamedPipeHandleStateA
22345 +
22346 +# if GNULIB_NONBLOCKING
22347 +# define CLEAR_ERRNO \
22348 + errno = 0;
22349 +# define HANDLE_ENOSPC \
22350 + if (errno == ENOSPC && ferror (stream)) \
22351 + { \
22352 + int fd = fileno (stream); \
22353 + if (fd >= 0) \
22354 + { \
22355 + HANDLE h = (HANDLE) _get_osfhandle (fd); \
22356 + if (GetFileType (h) == FILE_TYPE_PIPE) \
22357 + { \
22358 + /* h is a pipe or socket. */ \
22359 + DWORD state; \
22360 + if (GetNamedPipeHandleState (h, &state, NULL, NULL, \
22361 + NULL, NULL, 0) \
22362 + && (state & PIPE_NOWAIT) != 0) \
22363 + /* h is a pipe in non-blocking mode. \
22364 + Change errno from ENOSPC to EAGAIN. */ \
22365 + errno = EAGAIN; \
22366 + } \
22367 + } \
22368 + } \
22369 + else
22370 +# else
22371 +# define CLEAR_ERRNO
22372 +# define HANDLE_ENOSPC
22373 +# endif
22374 +
22375 +# if GNULIB_SIGPIPE
22376 +# define CLEAR_LastError \
22377 + SetLastError (0);
22378 +# define HANDLE_ERROR_NO_DATA \
22379 + if (GetLastError () == ERROR_NO_DATA && ferror (stream)) \
22380 + { \
22381 + int fd = fileno (stream); \
22382 + if (fd >= 0 \
22383 + && GetFileType ((HANDLE) _get_osfhandle (fd)) \
22384 + == FILE_TYPE_PIPE) \
22385 + { \
22386 + /* Try to raise signal SIGPIPE. */ \
22387 + raise (SIGPIPE); \
22388 + /* If it is currently blocked or ignored, change errno from \
22389 + EINVAL to EPIPE. */ \
22390 + errno = EPIPE; \
22391 + } \
22392 + } \
22393 + else
22394 +# else
22395 +# define CLEAR_LastError
22396 +# define HANDLE_ERROR_NO_DATA
22397 +# endif
22398 +
22399 +# define CALL_WITH_SIGPIPE_EMULATION(RETTYPE, EXPRESSION, FAILED) \
22400 + if (ferror (stream)) \
22401 + return (EXPRESSION); \
22402 + else \
22403 + { \
22404 + RETTYPE ret; \
22405 + CLEAR_ERRNO \
22406 + CLEAR_LastError \
22407 + ret = (EXPRESSION); \
22408 + if (FAILED) \
22409 + { \
22410 + HANDLE_ENOSPC \
22411 + HANDLE_ERROR_NO_DATA \
22412 + ; \
22413 + } \
22414 + return ret; \
22415 + }
22416 +
22417 +# if !REPLACE_PRINTF_POSIX /* avoid collision with printf.c */
22418 +int
22419 +printf (const char *format, ...)
22420 +{
22421 + int retval;
22422 + va_list args;
22423 +
22424 + va_start (args, format);
22425 + retval = vfprintf (stdout, format, args);
22426 + va_end (args);
22427 +
22428 + return retval;
22429 +}
22430 +# endif
22431 +
22432 +# if !REPLACE_FPRINTF_POSIX /* avoid collision with fprintf.c */
22433 +int
22434 +fprintf (FILE *stream, const char *format, ...)
22435 +{
22436 + int retval;
22437 + va_list args;
22438 +
22439 + va_start (args, format);
22440 + retval = vfprintf (stream, format, args);
22441 + va_end (args);
22442 +
22443 + return retval;
22444 +}
22445 +# endif
22446 +
22447 +# if !REPLACE_VPRINTF_POSIX /* avoid collision with vprintf.c */
22448 +int
22449 +vprintf (const char *format, va_list args)
22450 +{
22451 + return vfprintf (stdout, format, args);
22452 +}
22453 +# endif
22454 +
22455 +# if !REPLACE_VFPRINTF_POSIX /* avoid collision with vfprintf.c */
22456 +int
22457 +vfprintf (FILE *stream, const char *format, va_list args)
22458 +#undef vfprintf
22459 +{
22460 + CALL_WITH_SIGPIPE_EMULATION (int, vfprintf (stream, format, args), ret == EOF)
22461 +}
22462 +# endif
22463 +
22464 +int
22465 +putchar (int c)
22466 +{
22467 + return fputc (c, stdout);
22468 +}
22469 +
22470 +int
22471 +fputc (int c, FILE *stream)
22472 +#undef fputc
22473 +{
22474 + CALL_WITH_SIGPIPE_EMULATION (int, fputc (c, stream), ret == EOF)
22475 +}
22476 +
22477 +int
22478 +fputs (const char *string, FILE *stream)
22479 +#undef fputs
22480 +{
22481 + CALL_WITH_SIGPIPE_EMULATION (int, fputs (string, stream), ret == EOF)
22482 +}
22483 +
22484 +int
22485 +puts (const char *string)
22486 +#undef puts
22487 +{
22488 + FILE *stream = stdout;
22489 + CALL_WITH_SIGPIPE_EMULATION (int, puts (string), ret == EOF)
22490 +}
22491 +
22492 +size_t
22493 +fwrite (const void *ptr, size_t s, size_t n, FILE *stream)
22494 +#undef fwrite
22495 +{
22496 + CALL_WITH_SIGPIPE_EMULATION (size_t, fwrite (ptr, s, n, stream), ret < n)
22497 +}
22498 +
22499 +# endif
22500 +#endif
22501
22502 diff --git a/autotools/gnulib/stdio.in.h b/autotools/gnulib/stdio.in.h
22503 index 4a8aa55..7b36dac 100644
22504 --- a/autotools/gnulib/stdio.in.h
22505 +++ b/autotools/gnulib/stdio.in.h
22506 @@ -1,19 +1,19 @@
22507 /* A GNU-like <stdio.h>.
22508
22509 - Copyright (C) 2004, 2007-2019 Free Software Foundation, Inc.
22510 + Copyright (C) 2004, 2007-2022 Free Software Foundation, Inc.
22511
22512 - This program is free software; you can redistribute it and/or modify
22513 - it under the terms of the GNU General Public License as published by
22514 - the Free Software Foundation; either version 3, or (at your option)
22515 - any later version.
22516 + This file is free software: you can redistribute it and/or modify
22517 + it under the terms of the GNU Lesser General Public License as
22518 + published by the Free Software Foundation; either version 2.1 of the
22519 + License, or (at your option) any later version.
22520
22521 - This program is distributed in the hope that it will be useful,
22522 + This file is distributed in the hope that it will be useful,
22523 but WITHOUT ANY WARRANTY; without even the implied warranty of
22524 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22525 - GNU General Public License for more details.
22526 + GNU Lesser General Public License for more details.
22527
22528 - You should have received a copy of the GNU General Public License
22529 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
22530 + You should have received a copy of the GNU Lesser General Public License
22531 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
22532
22533 #if __GNUC__ >= 3
22534 @PRAGMA_SYSTEM_HEADER@
22535 @@ -56,41 +56,103 @@
22536 May also define off_t to a 64-bit type on native Windows. */
22537 #include <sys/types.h>
22538
22539 +/* Solaris 10 and NetBSD 7.0 declare renameat in <unistd.h>, not in <stdio.h>. */
22540 +/* But in any case avoid namespace pollution on glibc systems. */
22541 +#if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && (defined __sun || defined __NetBSD__) \
22542 + && ! defined __GLIBC__
22543 +# include <unistd.h>
22544 +#endif
22545 +
22546 +/* Android 4.3 declares renameat in <sys/stat.h>, not in <stdio.h>. */
22547 +/* But in any case avoid namespace pollution on glibc systems. */
22548 +#if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && defined __ANDROID__ \
22549 + && ! defined __GLIBC__
22550 +# include <sys/stat.h>
22551 +#endif
22552 +
22553 +/* MSVC declares 'perror' in <stdlib.h>, not in <stdio.h>. We must include
22554 + it before we #define perror rpl_perror. */
22555 +/* But in any case avoid namespace pollution on glibc systems. */
22556 +#if (@GNULIB_PERROR@ || defined GNULIB_POSIXCHECK) \
22557 + && (defined _WIN32 && ! defined __CYGWIN__) \
22558 + && ! defined __GLIBC__
22559 +# include <stdlib.h>
22560 +#endif
22561 +
22562 +/* MSVC declares 'remove' in <io.h>, not in <stdio.h>. We must include
22563 + it before we #define remove rpl_remove. */
22564 +/* MSVC declares 'rename' in <io.h>, not in <stdio.h>. We must include
22565 + it before we #define rename rpl_rename. */
22566 +/* But in any case avoid namespace pollution on glibc systems. */
22567 +#if (@GNULIB_REMOVE@ || @GNULIB_RENAME@ || defined GNULIB_POSIXCHECK) \
22568 + && (defined _WIN32 && ! defined __CYGWIN__) \
22569 + && ! defined __GLIBC__
22570 +# include <io.h>
22571 +#endif
22572 +
22573 +
22574 +/* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers
22575 + that can be freed by passing them as the Ith argument to the
22576 + function F. */
22577 +#ifndef _GL_ATTRIBUTE_DEALLOC
22578 +# if __GNUC__ >= 11
22579 +# define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
22580 +# else
22581 +# define _GL_ATTRIBUTE_DEALLOC(f, i)
22582 +# endif
22583 +#endif
22584 +
22585 /* The __attribute__ feature is available in gcc versions 2.5 and later.
22586 The __-protected variants of the attributes 'format' and 'printf' are
22587 accepted by gcc versions 2.6.4 (effectively 2.7) and later.
22588 We enable _GL_ATTRIBUTE_FORMAT only if these are supported too, because
22589 gnulib and libintl do '#define printf __printf__' when they override
22590 the 'printf' function. */
22591 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
22592 -# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
22593 +#ifndef _GL_ATTRIBUTE_FORMAT
22594 +# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7) || defined __clang__
22595 +# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
22596 +# else
22597 +# define _GL_ATTRIBUTE_FORMAT(spec) /* empty */
22598 +# endif
22599 +#endif
22600 +
22601 +/* An __attribute__ __format__ specifier for a function that takes a format
22602 + string and arguments, where the format string directives are the ones
22603 + standardized by ISO C99 and POSIX.
22604 + _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD */
22605 +/* __gnu_printf__ is supported in GCC >= 4.4. */
22606 +#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
22607 +# define _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD __gnu_printf__
22608 +#else
22609 +# define _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD __printf__
22610 +#endif
22611 +
22612 +/* An __attribute__ __format__ specifier for a function that takes a format
22613 + string and arguments, where the format string directives are the ones of the
22614 + system printf(), rather than the ones standardized by ISO C99 and POSIX.
22615 + _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM */
22616 +/* On mingw, Gnulib sets __USE_MINGW_ANSI_STDIO in order to get closer to
22617 + the standards. The macro GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU indicates
22618 + whether this change is effective. On older mingw, it is not. */
22619 +#if GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU
22620 +# define _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD
22621 #else
22622 -# define _GL_ATTRIBUTE_FORMAT(spec) /* empty */
22623 +# define _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM __printf__
22624 #endif
22625
22626 -/* _GL_ATTRIBUTE_FORMAT_PRINTF
22627 +/* _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD
22628 indicates to GCC that the function takes a format string and arguments,
22629 where the format string directives are the ones standardized by ISO C99
22630 and POSIX. */
22631 -#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
22632 -# define _GL_ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \
22633 - _GL_ATTRIBUTE_FORMAT ((__gnu_printf__, formatstring_parameter, first_argument))
22634 -#else
22635 -# define _GL_ATTRIBUTE_FORMAT_PRINTF(formatstring_parameter, first_argument) \
22636 - _GL_ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument))
22637 -#endif
22638 +#define _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD(formatstring_parameter, first_argument) \
22639 + _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, formatstring_parameter, first_argument))
22640
22641 -/* _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM is like _GL_ATTRIBUTE_FORMAT_PRINTF,
22642 +/* _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM is like _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD,
22643 except that it indicates to GCC that the supported format string directives
22644 are the ones of the system printf(), rather than the ones standardized by
22645 ISO C99 and POSIX. */
22646 -#if GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU
22647 -# define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument) \
22648 - _GL_ATTRIBUTE_FORMAT_PRINTF (formatstring_parameter, first_argument)
22649 -#else
22650 -# define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument) \
22651 - _GL_ATTRIBUTE_FORMAT ((__printf__, formatstring_parameter, first_argument))
22652 -#endif
22653 +#define _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM(formatstring_parameter, first_argument) \
22654 + _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM, formatstring_parameter, first_argument))
22655
22656 /* _GL_ATTRIBUTE_FORMAT_SCANF
22657 indicates to GCC that the function takes a format string and arguments,
22658 @@ -111,41 +173,6 @@
22659 #define _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM(formatstring_parameter, first_argument) \
22660 _GL_ATTRIBUTE_FORMAT ((__scanf__, formatstring_parameter, first_argument))
22661
22662 -/* Solaris 10 and NetBSD 7.0 declare renameat in <unistd.h>, not in <stdio.h>. */
22663 -/* But in any case avoid namespace pollution on glibc systems. */
22664 -#if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && (defined __sun || defined __NetBSD__) \
22665 - && ! defined __GLIBC__
22666 -# include <unistd.h>
22667 -#endif
22668 -
22669 -/* Android 4.3 declares renameat in <sys/stat.h>, not in <stdio.h>. */
22670 -/* But in any case avoid namespace pollution on glibc systems. */
22671 -#if (@GNULIB_RENAMEAT@ || defined GNULIB_POSIXCHECK) && defined __ANDROID__ \
22672 - && ! defined __GLIBC__
22673 -# include <sys/stat.h>
22674 -#endif
22675 -
22676 -/* MSVC declares 'perror' in <stdlib.h>, not in <stdio.h>. We must include
22677 - it before we #define perror rpl_perror. */
22678 -/* But in any case avoid namespace pollution on glibc systems. */
22679 -#if (@GNULIB_PERROR@ || defined GNULIB_POSIXCHECK) \
22680 - && (defined _WIN32 && ! defined __CYGWIN__) \
22681 - && ! defined __GLIBC__
22682 -# include <stdlib.h>
22683 -#endif
22684 -
22685 -/* MSVC declares 'remove' in <io.h>, not in <stdio.h>. We must include
22686 - it before we #define remove rpl_remove. */
22687 -/* MSVC declares 'rename' in <io.h>, not in <stdio.h>. We must include
22688 - it before we #define rename rpl_rename. */
22689 -/* But in any case avoid namespace pollution on glibc systems. */
22690 -#if (@GNULIB_REMOVE@ || @GNULIB_RENAME@ || defined GNULIB_POSIXCHECK) \
22691 - && (defined _WIN32 && ! defined __CYGWIN__) \
22692 - && ! defined __GLIBC__
22693 -# include <io.h>
22694 -#endif
22695 -
22696 -
22697 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
22698
22699 /* The definition of _GL_ARG_NONNULL is copied here. */
22700 @@ -171,17 +198,17 @@
22701 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
22702 # define dprintf rpl_dprintf
22703 # endif
22704 -_GL_FUNCDECL_RPL (dprintf, int, (int fd, const char *format, ...)
22705 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3)
22706 +_GL_FUNCDECL_RPL (dprintf, int, (int fd, const char *restrict format, ...)
22707 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3)
22708 _GL_ARG_NONNULL ((2)));
22709 -_GL_CXXALIAS_RPL (dprintf, int, (int fd, const char *format, ...));
22710 +_GL_CXXALIAS_RPL (dprintf, int, (int fd, const char *restrict format, ...));
22711 # else
22712 # if !@HAVE_DPRINTF@
22713 -_GL_FUNCDECL_SYS (dprintf, int, (int fd, const char *format, ...)
22714 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3)
22715 +_GL_FUNCDECL_SYS (dprintf, int, (int fd, const char *restrict format, ...)
22716 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3)
22717 _GL_ARG_NONNULL ((2)));
22718 # endif
22719 -_GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *format, ...));
22720 +_GL_CXXALIAS_SYS (dprintf, int, (int fd, const char *restrict format, ...));
22721 # endif
22722 _GL_CXXALIASWARN (dprintf);
22723 #elif defined GNULIB_POSIXCHECK
22724 @@ -203,7 +230,9 @@ _GL_CXXALIAS_RPL (fclose, int, (FILE *stream));
22725 # else
22726 _GL_CXXALIAS_SYS (fclose, int, (FILE *stream));
22727 # endif
22728 +# if __GLIBC__ >= 2
22729 _GL_CXXALIASWARN (fclose);
22730 +# endif
22731 #elif defined GNULIB_POSIXCHECK
22732 # undef fclose
22733 /* Assume fclose is always declared. */
22734 @@ -211,24 +240,84 @@ _GL_WARN_ON_USE (fclose, "fclose is not always POSIX compliant - "
22735 "use gnulib module fclose for portable POSIX compliance");
22736 #endif
22737
22738 +#if @GNULIB_MDA_FCLOSEALL@
22739 +/* On native Windows, map 'fcloseall' to '_fcloseall', so that -loldnames is
22740 + not required. In C++ with GNULIB_NAMESPACE, avoid differences between
22741 + platforms by defining GNULIB_NAMESPACE::fcloseall on all platforms that have
22742 + it. */
22743 +# if defined _WIN32 && !defined __CYGWIN__
22744 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
22745 +# undef fcloseall
22746 +# define fcloseall _fcloseall
22747 +# endif
22748 +_GL_CXXALIAS_MDA (fcloseall, int, (void));
22749 +# else
22750 +# if @HAVE_DECL_FCLOSEALL@
22751 +# if defined __FreeBSD__ || defined __DragonFly__
22752 +_GL_CXXALIAS_SYS (fcloseall, void, (void));
22753 +# else
22754 +_GL_CXXALIAS_SYS (fcloseall, int, (void));
22755 +# endif
22756 +# endif
22757 +# endif
22758 +# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_FCLOSEALL@
22759 +_GL_CXXALIASWARN (fcloseall);
22760 +# endif
22761 +#endif
22762 +
22763 #if @GNULIB_FDOPEN@
22764 # if @REPLACE_FDOPEN@
22765 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
22766 # undef fdopen
22767 # define fdopen rpl_fdopen
22768 # endif
22769 -_GL_FUNCDECL_RPL (fdopen, FILE *, (int fd, const char *mode)
22770 - _GL_ARG_NONNULL ((2)));
22771 +_GL_FUNCDECL_RPL (fdopen, FILE *,
22772 + (int fd, const char *mode)
22773 + _GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1));
22774 _GL_CXXALIAS_RPL (fdopen, FILE *, (int fd, const char *mode));
22775 +# elif defined _WIN32 && !defined __CYGWIN__
22776 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
22777 +# undef fdopen
22778 +# define fdopen _fdopen
22779 +# endif
22780 +_GL_CXXALIAS_MDA (fdopen, FILE *, (int fd, const char *mode));
22781 # else
22782 +# if __GNUC__ >= 11
22783 +/* For -Wmismatched-dealloc: Associate fdopen with fclose or rpl_fclose. */
22784 +_GL_FUNCDECL_SYS (fdopen, FILE *,
22785 + (int fd, const char *mode)
22786 + _GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1));
22787 +# endif
22788 _GL_CXXALIAS_SYS (fdopen, FILE *, (int fd, const char *mode));
22789 # endif
22790 _GL_CXXALIASWARN (fdopen);
22791 -#elif defined GNULIB_POSIXCHECK
22792 -# undef fdopen
22793 +#else
22794 +# if @GNULIB_FCLOSE@ && __GNUC__ >= 11 && !defined fdopen
22795 +/* For -Wmismatched-dealloc: Associate fdopen with fclose or rpl_fclose. */
22796 +_GL_FUNCDECL_SYS (fdopen, FILE *,
22797 + (int fd, const char *mode)
22798 + _GL_ARG_NONNULL ((2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1));
22799 +# endif
22800 +# if defined GNULIB_POSIXCHECK
22801 +# undef fdopen
22802 /* Assume fdopen is always declared. */
22803 _GL_WARN_ON_USE (fdopen, "fdopen on native Windows platforms is not POSIX compliant - "
22804 "use gnulib module fdopen for portability");
22805 +# elif @GNULIB_MDA_FDOPEN@
22806 +/* On native Windows, map 'fdopen' to '_fdopen', so that -loldnames is not
22807 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
22808 + platforms by defining GNULIB_NAMESPACE::fdopen always. */
22809 +# if defined _WIN32 && !defined __CYGWIN__
22810 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
22811 +# undef fdopen
22812 +# define fdopen _fdopen
22813 +# endif
22814 +_GL_CXXALIAS_MDA (fdopen, FILE *, (int fd, const char *mode));
22815 +# else
22816 +_GL_CXXALIAS_SYS (fdopen, FILE *, (int fd, const char *mode));
22817 +# endif
22818 +_GL_CXXALIASWARN (fdopen);
22819 +# endif
22820 #endif
22821
22822 #if @GNULIB_FFLUSH@
22823 @@ -247,7 +336,9 @@ _GL_CXXALIAS_RPL (fflush, int, (FILE *gl_stream));
22824 # else
22825 _GL_CXXALIAS_SYS (fflush, int, (FILE *gl_stream));
22826 # endif
22827 +# if __GLIBC__ >= 2
22828 _GL_CXXALIASWARN (fflush);
22829 +# endif
22830 #elif defined GNULIB_POSIXCHECK
22831 # undef fflush
22832 /* Assume fflush is always declared. */
22833 @@ -266,7 +357,9 @@ _GL_CXXALIAS_RPL (fgetc, int, (FILE *stream));
22834 # else
22835 _GL_CXXALIAS_SYS (fgetc, int, (FILE *stream));
22836 # endif
22837 +# if __GLIBC__ >= 2
22838 _GL_CXXALIASWARN (fgetc);
22839 +# endif
22840 #endif
22841
22842 #if @GNULIB_FGETS@
22843 @@ -275,33 +368,74 @@ _GL_CXXALIASWARN (fgetc);
22844 # undef fgets
22845 # define fgets rpl_fgets
22846 # endif
22847 -_GL_FUNCDECL_RPL (fgets, char *, (char *s, int n, FILE *stream)
22848 - _GL_ARG_NONNULL ((1, 3)));
22849 -_GL_CXXALIAS_RPL (fgets, char *, (char *s, int n, FILE *stream));
22850 +_GL_FUNCDECL_RPL (fgets, char *,
22851 + (char *restrict s, int n, FILE *restrict stream)
22852 + _GL_ARG_NONNULL ((1, 3)));
22853 +_GL_CXXALIAS_RPL (fgets, char *,
22854 + (char *restrict s, int n, FILE *restrict stream));
22855 # else
22856 -_GL_CXXALIAS_SYS (fgets, char *, (char *s, int n, FILE *stream));
22857 +_GL_CXXALIAS_SYS (fgets, char *,
22858 + (char *restrict s, int n, FILE *restrict stream));
22859 # endif
22860 +# if __GLIBC__ >= 2
22861 _GL_CXXALIASWARN (fgets);
22862 +# endif
22863 +#endif
22864 +
22865 +#if @GNULIB_MDA_FILENO@
22866 +/* On native Windows, map 'fileno' to '_fileno', so that -loldnames is not
22867 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
22868 + platforms by defining GNULIB_NAMESPACE::fileno always. */
22869 +# if defined _WIN32 && !defined __CYGWIN__
22870 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
22871 +# undef fileno
22872 +# define fileno _fileno
22873 +# endif
22874 +_GL_CXXALIAS_MDA (fileno, int, (FILE *restrict stream));
22875 +# else
22876 +_GL_CXXALIAS_SYS (fileno, int, (FILE *restrict stream));
22877 +# endif
22878 +_GL_CXXALIASWARN (fileno);
22879 #endif
22880
22881 #if @GNULIB_FOPEN@
22882 -# if @REPLACE_FOPEN@
22883 +# if (@GNULIB_FOPEN@ && @REPLACE_FOPEN@) \
22884 + || (@GNULIB_FOPEN_GNU@ && @REPLACE_FOPEN_FOR_FOPEN_GNU@)
22885 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
22886 # undef fopen
22887 # define fopen rpl_fopen
22888 # endif
22889 -_GL_FUNCDECL_RPL (fopen, FILE *, (const char *filename, const char *mode)
22890 - _GL_ARG_NONNULL ((1, 2)));
22891 -_GL_CXXALIAS_RPL (fopen, FILE *, (const char *filename, const char *mode));
22892 +_GL_FUNCDECL_RPL (fopen, FILE *,
22893 + (const char *restrict filename, const char *restrict mode)
22894 + _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1));
22895 +_GL_CXXALIAS_RPL (fopen, FILE *,
22896 + (const char *restrict filename, const char *restrict mode));
22897 # else
22898 -_GL_CXXALIAS_SYS (fopen, FILE *, (const char *filename, const char *mode));
22899 +# if __GNUC__ >= 11
22900 +/* For -Wmismatched-dealloc: Associate fopen with fclose or rpl_fclose. */
22901 +_GL_FUNCDECL_SYS (fopen, FILE *,
22902 + (const char *restrict filename, const char *restrict mode)
22903 + _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1));
22904 +# endif
22905 +_GL_CXXALIAS_SYS (fopen, FILE *,
22906 + (const char *restrict filename, const char *restrict mode));
22907 # endif
22908 +# if __GLIBC__ >= 2
22909 _GL_CXXALIASWARN (fopen);
22910 -#elif defined GNULIB_POSIXCHECK
22911 -# undef fopen
22912 +# endif
22913 +#else
22914 +# if @GNULIB_FCLOSE@ && __GNUC__ >= 11 && !defined fopen
22915 +/* For -Wmismatched-dealloc: Associate fopen with fclose or rpl_fclose. */
22916 +_GL_FUNCDECL_SYS (fopen, FILE *,
22917 + (const char *restrict filename, const char *restrict mode)
22918 + _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (fclose, 1));
22919 +# endif
22920 +# if defined GNULIB_POSIXCHECK
22921 +# undef fopen
22922 /* Assume fopen is always declared. */
22923 _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX compliant - "
22924 "use gnulib module fopen for portability");
22925 +# endif
22926 #endif
22927
22928 #if @GNULIB_FPRINTF_POSIX@ || @GNULIB_FPRINTF@
22929 @@ -312,19 +446,25 @@ _GL_WARN_ON_USE (fopen, "fopen on native Windows platforms is not POSIX complian
22930 # endif
22931 # define GNULIB_overrides_fprintf 1
22932 # if @GNULIB_FPRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@
22933 -_GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...)
22934 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3)
22935 - _GL_ARG_NONNULL ((1, 2)));
22936 +_GL_FUNCDECL_RPL (fprintf, int,
22937 + (FILE *restrict fp, const char *restrict format, ...)
22938 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3)
22939 + _GL_ARG_NONNULL ((1, 2)));
22940 # else
22941 -_GL_FUNCDECL_RPL (fprintf, int, (FILE *fp, const char *format, ...)
22942 - _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (2, 3)
22943 - _GL_ARG_NONNULL ((1, 2)));
22944 +_GL_FUNCDECL_RPL (fprintf, int,
22945 + (FILE *restrict fp, const char *restrict format, ...)
22946 + _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (2, 3)
22947 + _GL_ARG_NONNULL ((1, 2)));
22948 # endif
22949 -_GL_CXXALIAS_RPL (fprintf, int, (FILE *fp, const char *format, ...));
22950 +_GL_CXXALIAS_RPL (fprintf, int,
22951 + (FILE *restrict fp, const char *restrict format, ...));
22952 # else
22953 -_GL_CXXALIAS_SYS (fprintf, int, (FILE *fp, const char *format, ...));
22954 +_GL_CXXALIAS_SYS (fprintf, int,
22955 + (FILE *restrict fp, const char *restrict format, ...));
22956 # endif
22957 +# if __GLIBC__ >= 2
22958 _GL_CXXALIASWARN (fprintf);
22959 +# endif
22960 #endif
22961 #if !@GNULIB_FPRINTF_POSIX@ && defined GNULIB_POSIXCHECK
22962 # if !GNULIB_overrides_fprintf
22963 @@ -375,7 +515,9 @@ _GL_CXXALIAS_RPL (fputc, int, (int c, FILE *stream));
22964 # else
22965 _GL_CXXALIAS_SYS (fputc, int, (int c, FILE *stream));
22966 # endif
22967 +# if __GLIBC__ >= 2
22968 _GL_CXXALIASWARN (fputc);
22969 +# endif
22970 #endif
22971
22972 #if @GNULIB_FPUTS@
22973 @@ -384,13 +526,18 @@ _GL_CXXALIASWARN (fputc);
22974 # undef fputs
22975 # define fputs rpl_fputs
22976 # endif
22977 -_GL_FUNCDECL_RPL (fputs, int, (const char *string, FILE *stream)
22978 - _GL_ARG_NONNULL ((1, 2)));
22979 -_GL_CXXALIAS_RPL (fputs, int, (const char *string, FILE *stream));
22980 +_GL_FUNCDECL_RPL (fputs, int,
22981 + (const char *restrict string, FILE *restrict stream)
22982 + _GL_ARG_NONNULL ((1, 2)));
22983 +_GL_CXXALIAS_RPL (fputs, int,
22984 + (const char *restrict string, FILE *restrict stream));
22985 # else
22986 -_GL_CXXALIAS_SYS (fputs, int, (const char *string, FILE *stream));
22987 +_GL_CXXALIAS_SYS (fputs, int,
22988 + (const char *restrict string, FILE *restrict stream));
22989 # endif
22990 +# if __GLIBC__ >= 2
22991 _GL_CXXALIASWARN (fputs);
22992 +# endif
22993 #endif
22994
22995 #if @GNULIB_FREAD@
22996 @@ -399,13 +546,21 @@ _GL_CXXALIASWARN (fputs);
22997 # undef fread
22998 # define fread rpl_fread
22999 # endif
23000 -_GL_FUNCDECL_RPL (fread, size_t, (void *ptr, size_t s, size_t n, FILE *stream)
23001 - _GL_ARG_NONNULL ((4)));
23002 -_GL_CXXALIAS_RPL (fread, size_t, (void *ptr, size_t s, size_t n, FILE *stream));
23003 +_GL_FUNCDECL_RPL (fread, size_t,
23004 + (void *restrict ptr, size_t s, size_t n,
23005 + FILE *restrict stream)
23006 + _GL_ARG_NONNULL ((4)));
23007 +_GL_CXXALIAS_RPL (fread, size_t,
23008 + (void *restrict ptr, size_t s, size_t n,
23009 + FILE *restrict stream));
23010 # else
23011 -_GL_CXXALIAS_SYS (fread, size_t, (void *ptr, size_t s, size_t n, FILE *stream));
23012 +_GL_CXXALIAS_SYS (fread, size_t,
23013 + (void *restrict ptr, size_t s, size_t n,
23014 + FILE *restrict stream));
23015 # endif
23016 +# if __GLIBC__ >= 2
23017 _GL_CXXALIASWARN (fread);
23018 +# endif
23019 #endif
23020
23021 #if @GNULIB_FREOPEN@
23022 @@ -415,15 +570,20 @@ _GL_CXXALIASWARN (fread);
23023 # define freopen rpl_freopen
23024 # endif
23025 _GL_FUNCDECL_RPL (freopen, FILE *,
23026 - (const char *filename, const char *mode, FILE *stream)
23027 + (const char *restrict filename, const char *restrict mode,
23028 + FILE *restrict stream)
23029 _GL_ARG_NONNULL ((2, 3)));
23030 _GL_CXXALIAS_RPL (freopen, FILE *,
23031 - (const char *filename, const char *mode, FILE *stream));
23032 + (const char *restrict filename, const char *restrict mode,
23033 + FILE *restrict stream));
23034 # else
23035 _GL_CXXALIAS_SYS (freopen, FILE *,
23036 - (const char *filename, const char *mode, FILE *stream));
23037 + (const char *restrict filename, const char *restrict mode,
23038 + FILE *restrict stream));
23039 # endif
23040 +# if __GLIBC__ >= 2
23041 _GL_CXXALIASWARN (freopen);
23042 +# endif
23043 #elif defined GNULIB_POSIXCHECK
23044 # undef freopen
23045 /* Assume freopen is always declared. */
23046 @@ -438,14 +598,19 @@ _GL_WARN_ON_USE (freopen,
23047 # undef fscanf
23048 # define fscanf rpl_fscanf
23049 # endif
23050 -_GL_FUNCDECL_RPL (fscanf, int, (FILE *stream, const char *format, ...)
23051 - _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (2, 3)
23052 - _GL_ARG_NONNULL ((1, 2)));
23053 -_GL_CXXALIAS_RPL (fscanf, int, (FILE *stream, const char *format, ...));
23054 +_GL_FUNCDECL_RPL (fscanf, int,
23055 + (FILE *restrict stream, const char *restrict format, ...)
23056 + _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (2, 3)
23057 + _GL_ARG_NONNULL ((1, 2)));
23058 +_GL_CXXALIAS_RPL (fscanf, int,
23059 + (FILE *restrict stream, const char *restrict format, ...));
23060 # else
23061 -_GL_CXXALIAS_SYS (fscanf, int, (FILE *stream, const char *format, ...));
23062 +_GL_CXXALIAS_SYS (fscanf, int,
23063 + (FILE *restrict stream, const char *restrict format, ...));
23064 # endif
23065 +# if __GLIBC__ >= 2
23066 _GL_CXXALIASWARN (fscanf);
23067 +# endif
23068 #endif
23069
23070
23071 @@ -496,7 +661,9 @@ _GL_CXXALIAS_RPL (fseek, int, (FILE *fp, long offset, int whence));
23072 # else
23073 _GL_CXXALIAS_SYS (fseek, int, (FILE *fp, long offset, int whence));
23074 # endif
23075 +# if __GLIBC__ >= 2
23076 _GL_CXXALIASWARN (fseek);
23077 +# endif
23078 #endif
23079
23080 #if @GNULIB_FSEEKO@
23081 @@ -559,7 +726,9 @@ _GL_CXXALIAS_RPL (ftell, long, (FILE *fp));
23082 # else
23083 _GL_CXXALIAS_SYS (ftell, long, (FILE *fp));
23084 # endif
23085 +# if __GLIBC__ >= 2
23086 _GL_CXXALIASWARN (ftell);
23087 +# endif
23088 #endif
23089
23090 #if @GNULIB_FTELLO@
23091 @@ -608,13 +777,16 @@ _GL_WARN_ON_USE (ftell, "ftell cannot handle files larger than 4 GB "
23092 # define fwrite rpl_fwrite
23093 # endif
23094 _GL_FUNCDECL_RPL (fwrite, size_t,
23095 - (const void *ptr, size_t s, size_t n, FILE *stream)
23096 + (const void *restrict ptr, size_t s, size_t n,
23097 + FILE *restrict stream)
23098 _GL_ARG_NONNULL ((1, 4)));
23099 _GL_CXXALIAS_RPL (fwrite, size_t,
23100 - (const void *ptr, size_t s, size_t n, FILE *stream));
23101 + (const void *restrict ptr, size_t s, size_t n,
23102 + FILE *restrict stream));
23103 # else
23104 _GL_CXXALIAS_SYS (fwrite, size_t,
23105 - (const void *ptr, size_t s, size_t n, FILE *stream));
23106 + (const void *restrict ptr, size_t s, size_t n,
23107 + FILE *restrict stream));
23108
23109 /* Work around bug 11959 when fortifying glibc 2.4 through 2.15
23110 <https://sourceware.org/bugzilla/show_bug.cgi?id=11959>,
23111 @@ -639,7 +811,9 @@ extern size_t __REDIRECT (rpl_fwrite_unlocked,
23112 # define fwrite_unlocked rpl_fwrite_unlocked
23113 # endif
23114 # endif
23115 +# if __GLIBC__ >= 2
23116 _GL_CXXALIASWARN (fwrite);
23117 +# endif
23118 #endif
23119
23120 #if @GNULIB_GETC@
23121 @@ -653,7 +827,9 @@ _GL_CXXALIAS_RPL_1 (getc, rpl_fgetc, int, (FILE *stream));
23122 # else
23123 _GL_CXXALIAS_SYS (getc, int, (FILE *stream));
23124 # endif
23125 +# if __GLIBC__ >= 2
23126 _GL_CXXALIASWARN (getc);
23127 +# endif
23128 #endif
23129
23130 #if @GNULIB_GETCHAR@
23131 @@ -667,7 +843,9 @@ _GL_CXXALIAS_RPL (getchar, int, (void));
23132 # else
23133 _GL_CXXALIAS_SYS (getchar, int, (void));
23134 # endif
23135 +# if __GLIBC__ >= 2
23136 _GL_CXXALIASWARN (getchar);
23137 +# endif
23138 #endif
23139
23140 #if @GNULIB_GETDELIM@
23141 @@ -683,22 +861,26 @@ _GL_CXXALIASWARN (getchar);
23142 # define getdelim rpl_getdelim
23143 # endif
23144 _GL_FUNCDECL_RPL (getdelim, ssize_t,
23145 - (char **lineptr, size_t *linesize, int delimiter,
23146 - FILE *stream)
23147 + (char **restrict lineptr, size_t *restrict linesize,
23148 + int delimiter,
23149 + FILE *restrict stream)
23150 _GL_ARG_NONNULL ((1, 2, 4)));
23151 _GL_CXXALIAS_RPL (getdelim, ssize_t,
23152 - (char **lineptr, size_t *linesize, int delimiter,
23153 - FILE *stream));
23154 + (char **restrict lineptr, size_t *restrict linesize,
23155 + int delimiter,
23156 + FILE *restrict stream));
23157 # else
23158 # if !@HAVE_DECL_GETDELIM@
23159 _GL_FUNCDECL_SYS (getdelim, ssize_t,
23160 - (char **lineptr, size_t *linesize, int delimiter,
23161 - FILE *stream)
23162 + (char **restrict lineptr, size_t *restrict linesize,
23163 + int delimiter,
23164 + FILE *restrict stream)
23165 _GL_ARG_NONNULL ((1, 2, 4)));
23166 # endif
23167 _GL_CXXALIAS_SYS (getdelim, ssize_t,
23168 - (char **lineptr, size_t *linesize, int delimiter,
23169 - FILE *stream));
23170 + (char **restrict lineptr, size_t *restrict linesize,
23171 + int delimiter,
23172 + FILE *restrict stream));
23173 # endif
23174 _GL_CXXALIASWARN (getdelim);
23175 #elif defined GNULIB_POSIXCHECK
23176 @@ -722,18 +904,22 @@ _GL_WARN_ON_USE (getdelim, "getdelim is unportable - "
23177 # define getline rpl_getline
23178 # endif
23179 _GL_FUNCDECL_RPL (getline, ssize_t,
23180 - (char **lineptr, size_t *linesize, FILE *stream)
23181 + (char **restrict lineptr, size_t *restrict linesize,
23182 + FILE *restrict stream)
23183 _GL_ARG_NONNULL ((1, 2, 3)));
23184 _GL_CXXALIAS_RPL (getline, ssize_t,
23185 - (char **lineptr, size_t *linesize, FILE *stream));
23186 + (char **restrict lineptr, size_t *restrict linesize,
23187 + FILE *restrict stream));
23188 # else
23189 # if !@HAVE_DECL_GETLINE@
23190 _GL_FUNCDECL_SYS (getline, ssize_t,
23191 - (char **lineptr, size_t *linesize, FILE *stream)
23192 + (char **restrict lineptr, size_t *restrict linesize,
23193 + FILE *restrict stream)
23194 _GL_ARG_NONNULL ((1, 2, 3)));
23195 # endif
23196 _GL_CXXALIAS_SYS (getline, ssize_t,
23197 - (char **lineptr, size_t *linesize, FILE *stream));
23198 + (char **restrict lineptr, size_t *restrict linesize,
23199 + FILE *restrict stream));
23200 # endif
23201 # if @HAVE_DECL_GETLINE@
23202 _GL_CXXALIASWARN (getline);
23203 @@ -754,6 +940,22 @@ _GL_WARN_ON_USE (getline, "getline is unportable - "
23204 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
23205 #endif
23206
23207 +#if @GNULIB_MDA_GETW@
23208 +/* On native Windows, map 'getw' to '_getw', so that -loldnames is not
23209 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
23210 + platforms by defining GNULIB_NAMESPACE::getw always. */
23211 +# if defined _WIN32 && !defined __CYGWIN__
23212 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23213 +# undef getw
23214 +# define getw _getw
23215 +# endif
23216 +_GL_CXXALIAS_MDA (getw, int, (FILE *restrict stream));
23217 +# else
23218 +_GL_CXXALIAS_SYS (getw, int, (FILE *restrict stream));
23219 +# endif
23220 +_GL_CXXALIASWARN (getw);
23221 +#endif
23222 +
23223 #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
23224 struct obstack;
23225 /* Grow an obstack with formatted output. Return the number of
23226 @@ -767,7 +969,7 @@ struct obstack;
23227 # endif
23228 _GL_FUNCDECL_RPL (obstack_printf, int,
23229 (struct obstack *obs, const char *format, ...)
23230 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3)
23231 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3)
23232 _GL_ARG_NONNULL ((1, 2)));
23233 _GL_CXXALIAS_RPL (obstack_printf, int,
23234 (struct obstack *obs, const char *format, ...));
23235 @@ -775,7 +977,7 @@ _GL_CXXALIAS_RPL (obstack_printf, int,
23236 # if !@HAVE_DECL_OBSTACK_PRINTF@
23237 _GL_FUNCDECL_SYS (obstack_printf, int,
23238 (struct obstack *obs, const char *format, ...)
23239 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3)
23240 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3)
23241 _GL_ARG_NONNULL ((1, 2)));
23242 # endif
23243 _GL_CXXALIAS_SYS (obstack_printf, int,
23244 @@ -788,7 +990,7 @@ _GL_CXXALIASWARN (obstack_printf);
23245 # endif
23246 _GL_FUNCDECL_RPL (obstack_vprintf, int,
23247 (struct obstack *obs, const char *format, va_list args)
23248 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0)
23249 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0)
23250 _GL_ARG_NONNULL ((1, 2)));
23251 _GL_CXXALIAS_RPL (obstack_vprintf, int,
23252 (struct obstack *obs, const char *format, va_list args));
23253 @@ -796,7 +998,7 @@ _GL_CXXALIAS_RPL (obstack_vprintf, int,
23254 # if !@HAVE_DECL_OBSTACK_PRINTF@
23255 _GL_FUNCDECL_SYS (obstack_vprintf, int,
23256 (struct obstack *obs, const char *format, va_list args)
23257 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0)
23258 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0)
23259 _GL_ARG_NONNULL ((1, 2)));
23260 # endif
23261 _GL_CXXALIAS_SYS (obstack_vprintf, int,
23262 @@ -832,7 +1034,9 @@ _GL_CXXALIAS_RPL (perror, void, (const char *string));
23263 # else
23264 _GL_CXXALIAS_SYS (perror, void, (const char *string));
23265 # endif
23266 +# if __GLIBC__ >= 2
23267 _GL_CXXALIASWARN (perror);
23268 +# endif
23269 #elif defined GNULIB_POSIXCHECK
23270 # undef perror
23271 /* Assume perror is always declared. */
23272 @@ -846,43 +1050,53 @@ _GL_WARN_ON_USE (perror, "perror is not always POSIX compliant - "
23273 # undef popen
23274 # define popen rpl_popen
23275 # endif
23276 -_GL_FUNCDECL_RPL (popen, FILE *, (const char *cmd, const char *mode)
23277 - _GL_ARG_NONNULL ((1, 2)));
23278 +_GL_FUNCDECL_RPL (popen, FILE *,
23279 + (const char *cmd, const char *mode)
23280 + _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1));
23281 _GL_CXXALIAS_RPL (popen, FILE *, (const char *cmd, const char *mode));
23282 # else
23283 -# if !@HAVE_POPEN@
23284 -_GL_FUNCDECL_SYS (popen, FILE *, (const char *cmd, const char *mode)
23285 - _GL_ARG_NONNULL ((1, 2)));
23286 +# if !@HAVE_POPEN@ || __GNUC__ >= 11
23287 +_GL_FUNCDECL_SYS (popen, FILE *,
23288 + (const char *cmd, const char *mode)
23289 + _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1));
23290 # endif
23291 _GL_CXXALIAS_SYS (popen, FILE *, (const char *cmd, const char *mode));
23292 # endif
23293 _GL_CXXALIASWARN (popen);
23294 -#elif defined GNULIB_POSIXCHECK
23295 -# undef popen
23296 -# if HAVE_RAW_DECL_POPEN
23297 +#else
23298 +# if @GNULIB_PCLOSE@ && __GNUC__ >= 11 && !defined popen
23299 +/* For -Wmismatched-dealloc: Associate popen with pclose or rpl_pclose. */
23300 +_GL_FUNCDECL_SYS (popen, FILE *,
23301 + (const char *cmd, const char *mode)
23302 + _GL_ARG_NONNULL ((1, 2)) _GL_ATTRIBUTE_DEALLOC (pclose, 1));
23303 +# endif
23304 +# if defined GNULIB_POSIXCHECK
23305 +# undef popen
23306 +# if HAVE_RAW_DECL_POPEN
23307 _GL_WARN_ON_USE (popen, "popen is buggy on some platforms - "
23308 "use gnulib module popen or pipe for more portability");
23309 +# endif
23310 # endif
23311 #endif
23312
23313 #if @GNULIB_PRINTF_POSIX@ || @GNULIB_PRINTF@
23314 # if (@GNULIB_PRINTF_POSIX@ && @REPLACE_PRINTF@) \
23315 || (@GNULIB_PRINTF@ && @REPLACE_STDIO_WRITE_FUNCS@ && (@GNULIB_STDIO_H_NONBLOCKING@ || @GNULIB_STDIO_H_SIGPIPE@))
23316 -# if defined __GNUC__
23317 +# if defined __GNUC__ || defined __clang__
23318 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23319 /* Don't break __attribute__((format(printf,M,N))). */
23320 # define printf __printf__
23321 # endif
23322 # if @GNULIB_PRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@
23323 _GL_FUNCDECL_RPL_1 (__printf__, int,
23324 - (const char *format, ...)
23325 + (const char *restrict format, ...)
23326 __asm__ (@ASM_SYMBOL_PREFIX@
23327 _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_printf))
23328 - _GL_ATTRIBUTE_FORMAT_PRINTF (1, 2)
23329 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (1, 2)
23330 _GL_ARG_NONNULL ((1)));
23331 # else
23332 _GL_FUNCDECL_RPL_1 (__printf__, int,
23333 - (const char *format, ...)
23334 + (const char *restrict format, ...)
23335 __asm__ (@ASM_SYMBOL_PREFIX@
23336 _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_printf))
23337 _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (1, 2)
23338 @@ -894,16 +1108,18 @@ _GL_CXXALIAS_RPL_1 (printf, __printf__, int, (const char *format, ...));
23339 # define printf rpl_printf
23340 # endif
23341 _GL_FUNCDECL_RPL (printf, int,
23342 - (const char *format, ...)
23343 - _GL_ATTRIBUTE_FORMAT_PRINTF (1, 2)
23344 + (const char *restrict format, ...)
23345 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (1, 2)
23346 _GL_ARG_NONNULL ((1)));
23347 -_GL_CXXALIAS_RPL (printf, int, (const char *format, ...));
23348 +_GL_CXXALIAS_RPL (printf, int, (const char *restrict format, ...));
23349 # endif
23350 # define GNULIB_overrides_printf 1
23351 # else
23352 -_GL_CXXALIAS_SYS (printf, int, (const char *format, ...));
23353 +_GL_CXXALIAS_SYS (printf, int, (const char *restrict format, ...));
23354 # endif
23355 +# if __GLIBC__ >= 2
23356 _GL_CXXALIASWARN (printf);
23357 +# endif
23358 #endif
23359 #if !@GNULIB_PRINTF_POSIX@ && defined GNULIB_POSIXCHECK
23360 # if !GNULIB_overrides_printf
23361 @@ -926,7 +1142,9 @@ _GL_CXXALIAS_RPL_1 (putc, rpl_fputc, int, (int c, FILE *stream));
23362 # else
23363 _GL_CXXALIAS_SYS (putc, int, (int c, FILE *stream));
23364 # endif
23365 +# if __GLIBC__ >= 2
23366 _GL_CXXALIASWARN (putc);
23367 +# endif
23368 #endif
23369
23370 #if @GNULIB_PUTCHAR@
23371 @@ -940,7 +1158,9 @@ _GL_CXXALIAS_RPL (putchar, int, (int c));
23372 # else
23373 _GL_CXXALIAS_SYS (putchar, int, (int c));
23374 # endif
23375 +# if __GLIBC__ >= 2
23376 _GL_CXXALIASWARN (putchar);
23377 +# endif
23378 #endif
23379
23380 #if @GNULIB_PUTS@
23381 @@ -954,7 +1174,25 @@ _GL_CXXALIAS_RPL (puts, int, (const char *string));
23382 # else
23383 _GL_CXXALIAS_SYS (puts, int, (const char *string));
23384 # endif
23385 +# if __GLIBC__ >= 2
23386 _GL_CXXALIASWARN (puts);
23387 +# endif
23388 +#endif
23389 +
23390 +#if @GNULIB_MDA_PUTW@
23391 +/* On native Windows, map 'putw' to '_putw', so that -loldnames is not
23392 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
23393 + platforms by defining GNULIB_NAMESPACE::putw always. */
23394 +# if defined _WIN32 && !defined __CYGWIN__
23395 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23396 +# undef putw
23397 +# define putw _putw
23398 +# endif
23399 +_GL_CXXALIAS_MDA (putw, int, (int w, FILE *restrict stream));
23400 +# else
23401 +_GL_CXXALIAS_SYS (putw, int, (int w, FILE *restrict stream));
23402 +# endif
23403 +_GL_CXXALIASWARN (putw);
23404 #endif
23405
23406 #if @GNULIB_REMOVE@
23407 @@ -968,7 +1206,9 @@ _GL_CXXALIAS_RPL (remove, int, (const char *name));
23408 # else
23409 _GL_CXXALIAS_SYS (remove, int, (const char *name));
23410 # endif
23411 +# if __GLIBC__ >= 2
23412 _GL_CXXALIASWARN (remove);
23413 +# endif
23414 #elif defined GNULIB_POSIXCHECK
23415 # undef remove
23416 /* Assume remove is always declared. */
23417 @@ -991,7 +1231,9 @@ _GL_CXXALIAS_RPL (rename, int,
23418 _GL_CXXALIAS_SYS (rename, int,
23419 (const char *old_filename, const char *new_filename));
23420 # endif
23421 +# if __GLIBC__ >= 2
23422 _GL_CXXALIASWARN (rename);
23423 +# endif
23424 #elif defined GNULIB_POSIXCHECK
23425 # undef rename
23426 /* Assume rename is always declared. */
23427 @@ -1030,33 +1272,35 @@ _GL_WARN_ON_USE (renameat, "renameat is not portable - "
23428
23429 #if @GNULIB_SCANF@
23430 # if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
23431 -# if defined __GNUC__
23432 +# if defined __GNUC__ || defined __clang__
23433 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23434 # undef scanf
23435 /* Don't break __attribute__((format(scanf,M,N))). */
23436 # define scanf __scanf__
23437 # endif
23438 _GL_FUNCDECL_RPL_1 (__scanf__, int,
23439 - (const char *format, ...)
23440 + (const char *restrict format, ...)
23441 __asm__ (@ASM_SYMBOL_PREFIX@
23442 _GL_STDIO_MACROEXPAND_AND_STRINGIZE(rpl_scanf))
23443 _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (1, 2)
23444 _GL_ARG_NONNULL ((1)));
23445 -_GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *format, ...));
23446 +_GL_CXXALIAS_RPL_1 (scanf, __scanf__, int, (const char *restrict format, ...));
23447 # else
23448 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23449 # undef scanf
23450 # define scanf rpl_scanf
23451 # endif
23452 -_GL_FUNCDECL_RPL (scanf, int, (const char *format, ...)
23453 +_GL_FUNCDECL_RPL (scanf, int, (const char *restrict format, ...)
23454 _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (1, 2)
23455 _GL_ARG_NONNULL ((1)));
23456 -_GL_CXXALIAS_RPL (scanf, int, (const char *format, ...));
23457 +_GL_CXXALIAS_RPL (scanf, int, (const char *restrict format, ...));
23458 # endif
23459 # else
23460 -_GL_CXXALIAS_SYS (scanf, int, (const char *format, ...));
23461 +_GL_CXXALIAS_SYS (scanf, int, (const char *restrict format, ...));
23462 # endif
23463 +# if __GLIBC__ >= 2
23464 _GL_CXXALIASWARN (scanf);
23465 +# endif
23466 #endif
23467
23468 #if @GNULIB_SNPRINTF@
23469 @@ -1064,23 +1308,30 @@ _GL_CXXALIASWARN (scanf);
23470 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23471 # define snprintf rpl_snprintf
23472 # endif
23473 +# define GNULIB_overrides_snprintf 1
23474 _GL_FUNCDECL_RPL (snprintf, int,
23475 - (char *str, size_t size, const char *format, ...)
23476 - _GL_ATTRIBUTE_FORMAT_PRINTF (3, 4)
23477 + (char *restrict str, size_t size,
23478 + const char *restrict format, ...)
23479 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 4)
23480 _GL_ARG_NONNULL ((3)));
23481 _GL_CXXALIAS_RPL (snprintf, int,
23482 - (char *str, size_t size, const char *format, ...));
23483 + (char *restrict str, size_t size,
23484 + const char *restrict format, ...));
23485 # else
23486 # if !@HAVE_DECL_SNPRINTF@
23487 _GL_FUNCDECL_SYS (snprintf, int,
23488 - (char *str, size_t size, const char *format, ...)
23489 - _GL_ATTRIBUTE_FORMAT_PRINTF (3, 4)
23490 + (char *restrict str, size_t size,
23491 + const char *restrict format, ...)
23492 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 4)
23493 _GL_ARG_NONNULL ((3)));
23494 # endif
23495 _GL_CXXALIAS_SYS (snprintf, int,
23496 - (char *str, size_t size, const char *format, ...));
23497 + (char *restrict str, size_t size,
23498 + const char *restrict format, ...));
23499 # endif
23500 +# if __GLIBC__ >= 2
23501 _GL_CXXALIASWARN (snprintf);
23502 +# endif
23503 #elif defined GNULIB_POSIXCHECK
23504 # undef snprintf
23505 # if HAVE_RAW_DECL_SNPRINTF
23506 @@ -1103,14 +1354,20 @@ _GL_WARN_ON_USE (snprintf, "snprintf is unportable - "
23507 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23508 # define sprintf rpl_sprintf
23509 # endif
23510 -_GL_FUNCDECL_RPL (sprintf, int, (char *str, const char *format, ...)
23511 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3)
23512 - _GL_ARG_NONNULL ((1, 2)));
23513 -_GL_CXXALIAS_RPL (sprintf, int, (char *str, const char *format, ...));
23514 +# define GNULIB_overrides_sprintf 1
23515 +_GL_FUNCDECL_RPL (sprintf, int,
23516 + (char *restrict str, const char *restrict format, ...)
23517 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3)
23518 + _GL_ARG_NONNULL ((1, 2)));
23519 +_GL_CXXALIAS_RPL (sprintf, int,
23520 + (char *restrict str, const char *restrict format, ...));
23521 # else
23522 -_GL_CXXALIAS_SYS (sprintf, int, (char *str, const char *format, ...));
23523 +_GL_CXXALIAS_SYS (sprintf, int,
23524 + (char *restrict str, const char *restrict format, ...));
23525 # endif
23526 +# if __GLIBC__ >= 2
23527 _GL_CXXALIASWARN (sprintf);
23528 +# endif
23529 #elif defined GNULIB_POSIXCHECK
23530 # undef sprintf
23531 /* Assume sprintf is always declared. */
23532 @@ -1119,22 +1376,53 @@ _GL_WARN_ON_USE (sprintf, "sprintf is not always POSIX compliant - "
23533 "POSIX compliance");
23534 #endif
23535
23536 +#if @GNULIB_MDA_TEMPNAM@
23537 +/* On native Windows, map 'tempnam' to '_tempnam', so that -loldnames is not
23538 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
23539 + platforms by defining GNULIB_NAMESPACE::tempnam always. */
23540 +# if defined _WIN32 && !defined __CYGWIN__
23541 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23542 +# undef tempnam
23543 +# define tempnam _tempnam
23544 +# endif
23545 +_GL_CXXALIAS_MDA (tempnam, char *, (const char *dir, const char *prefix));
23546 +# else
23547 +_GL_CXXALIAS_SYS (tempnam, char *, (const char *dir, const char *prefix));
23548 +# endif
23549 +_GL_CXXALIASWARN (tempnam);
23550 +#endif
23551 +
23552 #if @GNULIB_TMPFILE@
23553 # if @REPLACE_TMPFILE@
23554 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23555 # define tmpfile rpl_tmpfile
23556 # endif
23557 -_GL_FUNCDECL_RPL (tmpfile, FILE *, (void));
23558 +_GL_FUNCDECL_RPL (tmpfile, FILE *, (void)
23559 + _GL_ATTRIBUTE_DEALLOC (fclose, 1));
23560 _GL_CXXALIAS_RPL (tmpfile, FILE *, (void));
23561 # else
23562 +# if __GNUC__ >= 11
23563 +/* For -Wmismatched-dealloc: Associate tmpfile with fclose or rpl_fclose. */
23564 +_GL_FUNCDECL_SYS (tmpfile, FILE *, (void)
23565 + _GL_ATTRIBUTE_DEALLOC (fclose, 1));
23566 +# endif
23567 _GL_CXXALIAS_SYS (tmpfile, FILE *, (void));
23568 # endif
23569 +# if __GLIBC__ >= 2
23570 _GL_CXXALIASWARN (tmpfile);
23571 -#elif defined GNULIB_POSIXCHECK
23572 -# undef tmpfile
23573 -# if HAVE_RAW_DECL_TMPFILE
23574 +# endif
23575 +#else
23576 +# if @GNULIB_FCLOSE@ && __GNUC__ >= 11 && !defined tmpfile
23577 +/* For -Wmismatched-dealloc: Associate tmpfile with fclose or rpl_fclose. */
23578 +_GL_FUNCDECL_SYS (tmpfile, FILE *, (void)
23579 + _GL_ATTRIBUTE_DEALLOC (fclose, 1));
23580 +# endif
23581 +# if defined GNULIB_POSIXCHECK
23582 +# undef tmpfile
23583 +# if HAVE_RAW_DECL_TMPFILE
23584 _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - "
23585 "use gnulib module tmpfile for portability");
23586 +# endif
23587 # endif
23588 #endif
23589
23590 @@ -1147,9 +1435,10 @@ _GL_WARN_ON_USE (tmpfile, "tmpfile is not usable on mingw - "
23591 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23592 # define asprintf rpl_asprintf
23593 # endif
23594 +# define GNULIB_overrides_asprintf
23595 _GL_FUNCDECL_RPL (asprintf, int,
23596 (char **result, const char *format, ...)
23597 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3)
23598 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3)
23599 _GL_ARG_NONNULL ((1, 2)));
23600 _GL_CXXALIAS_RPL (asprintf, int,
23601 (char **result, const char *format, ...));
23602 @@ -1157,7 +1446,7 @@ _GL_CXXALIAS_RPL (asprintf, int,
23603 # if !@HAVE_VASPRINTF@
23604 _GL_FUNCDECL_SYS (asprintf, int,
23605 (char **result, const char *format, ...)
23606 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 3)
23607 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 3)
23608 _GL_ARG_NONNULL ((1, 2)));
23609 # endif
23610 _GL_CXXALIAS_SYS (asprintf, int,
23611 @@ -1168,9 +1457,10 @@ _GL_CXXALIASWARN (asprintf);
23612 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23613 # define vasprintf rpl_vasprintf
23614 # endif
23615 +# define GNULIB_overrides_vasprintf 1
23616 _GL_FUNCDECL_RPL (vasprintf, int,
23617 (char **result, const char *format, va_list args)
23618 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0)
23619 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0)
23620 _GL_ARG_NONNULL ((1, 2)));
23621 _GL_CXXALIAS_RPL (vasprintf, int,
23622 (char **result, const char *format, va_list args));
23623 @@ -1178,7 +1468,7 @@ _GL_CXXALIAS_RPL (vasprintf, int,
23624 # if !@HAVE_VASPRINTF@
23625 _GL_FUNCDECL_SYS (vasprintf, int,
23626 (char **result, const char *format, va_list args)
23627 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0)
23628 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0)
23629 _GL_ARG_NONNULL ((1, 2)));
23630 # endif
23631 _GL_CXXALIAS_SYS (vasprintf, int,
23632 @@ -1192,22 +1482,27 @@ _GL_CXXALIASWARN (vasprintf);
23633 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23634 # define vdprintf rpl_vdprintf
23635 # endif
23636 -_GL_FUNCDECL_RPL (vdprintf, int, (int fd, const char *format, va_list args)
23637 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0)
23638 - _GL_ARG_NONNULL ((2)));
23639 -_GL_CXXALIAS_RPL (vdprintf, int, (int fd, const char *format, va_list args));
23640 +_GL_FUNCDECL_RPL (vdprintf, int,
23641 + (int fd, const char *restrict format, va_list args)
23642 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0)
23643 + _GL_ARG_NONNULL ((2)));
23644 +_GL_CXXALIAS_RPL (vdprintf, int,
23645 + (int fd, const char *restrict format, va_list args));
23646 # else
23647 # if !@HAVE_VDPRINTF@
23648 -_GL_FUNCDECL_SYS (vdprintf, int, (int fd, const char *format, va_list args)
23649 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0)
23650 - _GL_ARG_NONNULL ((2)));
23651 +_GL_FUNCDECL_SYS (vdprintf, int,
23652 + (int fd, const char *restrict format, va_list args)
23653 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0)
23654 + _GL_ARG_NONNULL ((2)));
23655 # endif
23656 /* Need to cast, because on Solaris, the third parameter will likely be
23657 __va_list args. */
23658 _GL_CXXALIAS_SYS_CAST (vdprintf, int,
23659 - (int fd, const char *format, va_list args));
23660 + (int fd, const char *restrict format, va_list args));
23661 # endif
23662 +# if __GLIBC__ >= 2
23663 _GL_CXXALIASWARN (vdprintf);
23664 +# endif
23665 #elif defined GNULIB_POSIXCHECK
23666 # undef vdprintf
23667 # if HAVE_RAW_DECL_VDPRINTF
23668 @@ -1224,23 +1519,32 @@ _GL_WARN_ON_USE (vdprintf, "vdprintf is unportable - "
23669 # endif
23670 # define GNULIB_overrides_vfprintf 1
23671 # if @GNULIB_VFPRINTF_POSIX@
23672 -_GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)
23673 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0)
23674 - _GL_ARG_NONNULL ((1, 2)));
23675 +_GL_FUNCDECL_RPL (vfprintf, int,
23676 + (FILE *restrict fp,
23677 + const char *restrict format, va_list args)
23678 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0)
23679 + _GL_ARG_NONNULL ((1, 2)));
23680 # else
23681 -_GL_FUNCDECL_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args)
23682 - _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (2, 0)
23683 - _GL_ARG_NONNULL ((1, 2)));
23684 +_GL_FUNCDECL_RPL (vfprintf, int,
23685 + (FILE *restrict fp,
23686 + const char *restrict format, va_list args)
23687 + _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (2, 0)
23688 + _GL_ARG_NONNULL ((1, 2)));
23689 # endif
23690 -_GL_CXXALIAS_RPL (vfprintf, int, (FILE *fp, const char *format, va_list args));
23691 +_GL_CXXALIAS_RPL (vfprintf, int,
23692 + (FILE *restrict fp,
23693 + const char *restrict format, va_list args));
23694 # else
23695 /* Need to cast, because on Solaris, the third parameter is
23696 __va_list args
23697 and GCC's fixincludes did not change this to __gnuc_va_list. */
23698 _GL_CXXALIAS_SYS_CAST (vfprintf, int,
23699 - (FILE *fp, const char *format, va_list args));
23700 + (FILE *restrict fp,
23701 + const char *restrict format, va_list args));
23702 # endif
23703 +# if __GLIBC__ >= 2
23704 _GL_CXXALIASWARN (vfprintf);
23705 +# endif
23706 #endif
23707 #if !@GNULIB_VFPRINTF_POSIX@ && defined GNULIB_POSIXCHECK
23708 # if !GNULIB_overrides_vfprintf
23709 @@ -1259,16 +1563,21 @@ _GL_WARN_ON_USE (vfprintf, "vfprintf is not always POSIX compliant - "
23710 # define vfscanf rpl_vfscanf
23711 # endif
23712 _GL_FUNCDECL_RPL (vfscanf, int,
23713 - (FILE *stream, const char *format, va_list args)
23714 + (FILE *restrict stream,
23715 + const char *restrict format, va_list args)
23716 _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (2, 0)
23717 _GL_ARG_NONNULL ((1, 2)));
23718 _GL_CXXALIAS_RPL (vfscanf, int,
23719 - (FILE *stream, const char *format, va_list args));
23720 + (FILE *restrict stream,
23721 + const char *restrict format, va_list args));
23722 # else
23723 _GL_CXXALIAS_SYS (vfscanf, int,
23724 - (FILE *stream, const char *format, va_list args));
23725 + (FILE *restrict stream,
23726 + const char *restrict format, va_list args));
23727 # endif
23728 +# if __GLIBC__ >= 2
23729 _GL_CXXALIASWARN (vfscanf);
23730 +# endif
23731 #endif
23732
23733 #if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VPRINTF@
23734 @@ -1279,22 +1588,25 @@ _GL_CXXALIASWARN (vfscanf);
23735 # endif
23736 # define GNULIB_overrides_vprintf 1
23737 # if @GNULIB_VPRINTF_POSIX@ || @GNULIB_VFPRINTF_POSIX@
23738 -_GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args)
23739 - _GL_ATTRIBUTE_FORMAT_PRINTF (1, 0)
23740 +_GL_FUNCDECL_RPL (vprintf, int, (const char *restrict format, va_list args)
23741 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (1, 0)
23742 _GL_ARG_NONNULL ((1)));
23743 # else
23744 -_GL_FUNCDECL_RPL (vprintf, int, (const char *format, va_list args)
23745 +_GL_FUNCDECL_RPL (vprintf, int, (const char *restrict format, va_list args)
23746 _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM (1, 0)
23747 _GL_ARG_NONNULL ((1)));
23748 # endif
23749 -_GL_CXXALIAS_RPL (vprintf, int, (const char *format, va_list args));
23750 +_GL_CXXALIAS_RPL (vprintf, int, (const char *restrict format, va_list args));
23751 # else
23752 /* Need to cast, because on Solaris, the second parameter is
23753 __va_list args
23754 and GCC's fixincludes did not change this to __gnuc_va_list. */
23755 -_GL_CXXALIAS_SYS_CAST (vprintf, int, (const char *format, va_list args));
23756 +_GL_CXXALIAS_SYS_CAST (vprintf, int,
23757 + (const char *restrict format, va_list args));
23758 # endif
23759 +# if __GLIBC__ >= 2
23760 _GL_CXXALIASWARN (vprintf);
23761 +# endif
23762 #endif
23763 #if !@GNULIB_VPRINTF_POSIX@ && defined GNULIB_POSIXCHECK
23764 # if !GNULIB_overrides_vprintf
23765 @@ -1312,14 +1624,16 @@ _GL_WARN_ON_USE (vprintf, "vprintf is not always POSIX compliant - "
23766 # undef vscanf
23767 # define vscanf rpl_vscanf
23768 # endif
23769 -_GL_FUNCDECL_RPL (vscanf, int, (const char *format, va_list args)
23770 +_GL_FUNCDECL_RPL (vscanf, int, (const char *restrict format, va_list args)
23771 _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM (1, 0)
23772 _GL_ARG_NONNULL ((1)));
23773 -_GL_CXXALIAS_RPL (vscanf, int, (const char *format, va_list args));
23774 +_GL_CXXALIAS_RPL (vscanf, int, (const char *restrict format, va_list args));
23775 # else
23776 -_GL_CXXALIAS_SYS (vscanf, int, (const char *format, va_list args));
23777 +_GL_CXXALIAS_SYS (vscanf, int, (const char *restrict format, va_list args));
23778 # endif
23779 +# if __GLIBC__ >= 2
23780 _GL_CXXALIASWARN (vscanf);
23781 +# endif
23782 #endif
23783
23784 #if @GNULIB_VSNPRINTF@
23785 @@ -1327,23 +1641,30 @@ _GL_CXXALIASWARN (vscanf);
23786 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23787 # define vsnprintf rpl_vsnprintf
23788 # endif
23789 +# define GNULIB_overrides_vsnprintf 1
23790 _GL_FUNCDECL_RPL (vsnprintf, int,
23791 - (char *str, size_t size, const char *format, va_list args)
23792 - _GL_ATTRIBUTE_FORMAT_PRINTF (3, 0)
23793 + (char *restrict str, size_t size,
23794 + const char *restrict format, va_list args)
23795 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 0)
23796 _GL_ARG_NONNULL ((3)));
23797 _GL_CXXALIAS_RPL (vsnprintf, int,
23798 - (char *str, size_t size, const char *format, va_list args));
23799 + (char *restrict str, size_t size,
23800 + const char *restrict format, va_list args));
23801 # else
23802 # if !@HAVE_DECL_VSNPRINTF@
23803 _GL_FUNCDECL_SYS (vsnprintf, int,
23804 - (char *str, size_t size, const char *format, va_list args)
23805 - _GL_ATTRIBUTE_FORMAT_PRINTF (3, 0)
23806 + (char *restrict str, size_t size,
23807 + const char *restrict format, va_list args)
23808 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (3, 0)
23809 _GL_ARG_NONNULL ((3)));
23810 # endif
23811 _GL_CXXALIAS_SYS (vsnprintf, int,
23812 - (char *str, size_t size, const char *format, va_list args));
23813 + (char *restrict str, size_t size,
23814 + const char *restrict format, va_list args));
23815 # endif
23816 +# if __GLIBC__ >= 2
23817 _GL_CXXALIASWARN (vsnprintf);
23818 +# endif
23819 #elif defined GNULIB_POSIXCHECK
23820 # undef vsnprintf
23821 # if HAVE_RAW_DECL_VSNPRINTF
23822 @@ -1357,20 +1678,26 @@ _GL_WARN_ON_USE (vsnprintf, "vsnprintf is unportable - "
23823 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23824 # define vsprintf rpl_vsprintf
23825 # endif
23826 +# define GNULIB_overrides_vsprintf 1
23827 _GL_FUNCDECL_RPL (vsprintf, int,
23828 - (char *str, const char *format, va_list args)
23829 - _GL_ATTRIBUTE_FORMAT_PRINTF (2, 0)
23830 + (char *restrict str,
23831 + const char *restrict format, va_list args)
23832 + _GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD (2, 0)
23833 _GL_ARG_NONNULL ((1, 2)));
23834 _GL_CXXALIAS_RPL (vsprintf, int,
23835 - (char *str, const char *format, va_list args));
23836 + (char *restrict str,
23837 + const char *restrict format, va_list args));
23838 # else
23839 /* Need to cast, because on Solaris, the third parameter is
23840 __va_list args
23841 and GCC's fixincludes did not change this to __gnuc_va_list. */
23842 _GL_CXXALIAS_SYS_CAST (vsprintf, int,
23843 - (char *str, const char *format, va_list args));
23844 + (char *restrict str,
23845 + const char *restrict format, va_list args));
23846 # endif
23847 +# if __GLIBC__ >= 2
23848 _GL_CXXALIASWARN (vsprintf);
23849 +# endif
23850 #elif defined GNULIB_POSIXCHECK
23851 # undef vsprintf
23852 /* Assume vsprintf is always declared. */
23853
23854 diff --git a/autotools/gnulib/stdlib.in.h b/autotools/gnulib/stdlib.in.h
23855 index f829525..d52c2f7 100644
23856 --- a/autotools/gnulib/stdlib.in.h
23857 +++ b/autotools/gnulib/stdlib.in.h
23858 @@ -1,18 +1,18 @@
23859 /* A GNU-like <stdlib.h>.
23860
23861 - Copyright (C) 1995, 2001-2004, 2006-2019 Free Software Foundation, Inc.
23862 + Copyright (C) 1995, 2001-2004, 2006-2022 Free Software Foundation, Inc.
23863
23864 - This program is free software: you can redistribute it and/or modify
23865 - it under the terms of the GNU General Public License as published by
23866 - the Free Software Foundation; either version 3 of the License, or
23867 - (at your option) any later version.
23868 + This file is free software: you can redistribute it and/or modify
23869 + it under the terms of the GNU Lesser General Public License as
23870 + published by the Free Software Foundation; either version 2.1 of the
23871 + License, or (at your option) any later version.
23872
23873 - This program is distributed in the hope that it will be useful,
23874 + This file is distributed in the hope that it will be useful,
23875 but WITHOUT ANY WARRANTY; without even the implied warranty of
23876 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23877 - GNU General Public License for more details.
23878 + GNU Lesser General Public License for more details.
23879
23880 - You should have received a copy of the GNU General Public License
23881 + You should have received a copy of the GNU Lesser General Public License
23882 along with this program. If not, see <https://www.gnu.org/licenses/>. */
23883
23884 #if __GNUC__ >= 3
23885 @@ -53,8 +53,8 @@
23886 # include <sys/loadavg.h>
23887 #endif
23888
23889 -/* Native Windows platforms declare mktemp() in <io.h>. */
23890 -#if 0 && (defined _WIN32 && ! defined __CYGWIN__)
23891 +/* Native Windows platforms declare _mktemp() in <io.h>. */
23892 +#if defined _WIN32 && !defined __CYGWIN__
23893 # include <io.h>
23894 #endif
23895
23896 @@ -99,12 +99,43 @@ struct random_data
23897 # include <unistd.h>
23898 #endif
23899
23900 +/* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers
23901 + that can be freed by passing them as the Ith argument to the
23902 + function F. */
23903 +#ifndef _GL_ATTRIBUTE_DEALLOC
23904 +# if __GNUC__ >= 11
23905 +# define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
23906 +# else
23907 +# define _GL_ATTRIBUTE_DEALLOC(f, i)
23908 +# endif
23909 +#endif
23910 +
23911 +/* _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that
23912 + can be freed via 'free'; it can be used only after declaring 'free'. */
23913 +/* Applies to: functions. Cannot be used on inline functions. */
23914 +#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
23915 +# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1)
23916 +#endif
23917 +
23918 +/* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly
23919 + allocated memory. */
23920 +/* Applies to: functions. */
23921 +#ifndef _GL_ATTRIBUTE_MALLOC
23922 +# if __GNUC__ >= 3 || defined __clang__
23923 +# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
23924 +# else
23925 +# define _GL_ATTRIBUTE_MALLOC
23926 +# endif
23927 +#endif
23928 +
23929 /* The __attribute__ feature is available in gcc versions 2.5 and later.
23930 The attribute __pure__ was added in gcc 2.96. */
23931 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
23932 -# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
23933 -#else
23934 -# define _GL_ATTRIBUTE_PURE /* empty */
23935 +#ifndef _GL_ATTRIBUTE_PURE
23936 +# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__
23937 +# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
23938 +# else
23939 +# define _GL_ATTRIBUTE_PURE /* empty */
23940 +# endif
23941 #endif
23942
23943 /* The definition of _Noreturn is copied here. */
23944 @@ -147,6 +178,69 @@ _GL_WARN_ON_USE (_Exit, "_Exit is unportable - "
23945 #endif
23946
23947
23948 +#if @GNULIB_FREE_POSIX@
23949 +# if @REPLACE_FREE@
23950 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23951 +# undef free
23952 +# define free rpl_free
23953 +# endif
23954 +_GL_FUNCDECL_RPL (free, void, (void *ptr));
23955 +_GL_CXXALIAS_RPL (free, void, (void *ptr));
23956 +# else
23957 +_GL_CXXALIAS_SYS (free, void, (void *ptr));
23958 +# endif
23959 +# if __GLIBC__ >= 2
23960 +_GL_CXXALIASWARN (free);
23961 +# endif
23962 +#elif defined GNULIB_POSIXCHECK
23963 +# undef free
23964 +/* Assume free is always declared. */
23965 +_GL_WARN_ON_USE (free, "free is not future POSIX compliant everywhere - "
23966 + "use gnulib module free for portability");
23967 +#endif
23968 +
23969 +
23970 +/* Allocate memory with indefinite extent and specified alignment. */
23971 +#if @GNULIB_ALIGNED_ALLOC@
23972 +# if @REPLACE_ALIGNED_ALLOC@
23973 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
23974 +# undef aligned_alloc
23975 +# define aligned_alloc rpl_aligned_alloc
23976 +# endif
23977 +_GL_FUNCDECL_RPL (aligned_alloc, void *,
23978 + (size_t alignment, size_t size)
23979 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
23980 +_GL_CXXALIAS_RPL (aligned_alloc, void *, (size_t alignment, size_t size));
23981 +# else
23982 +# if @HAVE_ALIGNED_ALLOC@
23983 +# if __GNUC__ >= 11
23984 +/* For -Wmismatched-dealloc: Associate aligned_alloc with free or rpl_free. */
23985 +_GL_FUNCDECL_SYS (aligned_alloc, void *,
23986 + (size_t alignment, size_t size)
23987 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
23988 +# endif
23989 +_GL_CXXALIAS_SYS (aligned_alloc, void *, (size_t alignment, size_t size));
23990 +# endif
23991 +# endif
23992 +# if @HAVE_ALIGNED_ALLOC@
23993 +_GL_CXXALIASWARN (aligned_alloc);
23994 +# endif
23995 +#else
23996 +# if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined aligned_alloc
23997 +/* For -Wmismatched-dealloc: Associate aligned_alloc with free or rpl_free. */
23998 +_GL_FUNCDECL_SYS (aligned_alloc, void *,
23999 + (size_t alignment, size_t size)
24000 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
24001 +# endif
24002 +# if defined GNULIB_POSIXCHECK
24003 +# undef aligned_alloc
24004 +# if HAVE_RAW_DECL_ALIGNED_ALLOC
24005 +_GL_WARN_ON_USE (aligned_alloc, "aligned_alloc is not portable - "
24006 + "use gnulib module aligned_alloc for portability");
24007 +# endif
24008 +# endif
24009 +#endif
24010 +
24011 #if @GNULIB_ATOLL@
24012 /* Parse a signed decimal integer.
24013 Returns the value of the integer. Errors are not detected. */
24014 @@ -166,22 +260,41 @@ _GL_WARN_ON_USE (atoll, "atoll is unportable - "
24015 #endif
24016
24017 #if @GNULIB_CALLOC_POSIX@
24018 -# if @REPLACE_CALLOC@
24019 +# if (@GNULIB_CALLOC_POSIX@ && @REPLACE_CALLOC_FOR_CALLOC_POSIX@) \
24020 + || (@GNULIB_CALLOC_GNU@ && @REPLACE_CALLOC_FOR_CALLOC_GNU@)
24021 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24022 # undef calloc
24023 # define calloc rpl_calloc
24024 # endif
24025 -_GL_FUNCDECL_RPL (calloc, void *, (size_t nmemb, size_t size));
24026 +_GL_FUNCDECL_RPL (calloc, void *,
24027 + (size_t nmemb, size_t size)
24028 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
24029 _GL_CXXALIAS_RPL (calloc, void *, (size_t nmemb, size_t size));
24030 # else
24031 +# if __GNUC__ >= 11
24032 +/* For -Wmismatched-dealloc: Associate calloc with free or rpl_free. */
24033 +_GL_FUNCDECL_SYS (calloc, void *,
24034 + (size_t nmemb, size_t size)
24035 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
24036 +# endif
24037 _GL_CXXALIAS_SYS (calloc, void *, (size_t nmemb, size_t size));
24038 # endif
24039 +# if __GLIBC__ >= 2
24040 _GL_CXXALIASWARN (calloc);
24041 -#elif defined GNULIB_POSIXCHECK
24042 -# undef calloc
24043 +# endif
24044 +#else
24045 +# if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined calloc
24046 +/* For -Wmismatched-dealloc: Associate calloc with free or rpl_free. */
24047 +_GL_FUNCDECL_SYS (calloc, void *,
24048 + (size_t nmemb, size_t size)
24049 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
24050 +# endif
24051 +# if defined GNULIB_POSIXCHECK
24052 +# undef calloc
24053 /* Assume calloc is always declared. */
24054 _GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - "
24055 "use gnulib module calloc-posix for portability");
24056 +# endif
24057 #endif
24058
24059 #if @GNULIB_CANONICALIZE_FILE_NAME@
24060 @@ -189,23 +302,108 @@ _GL_WARN_ON_USE (calloc, "calloc is not POSIX compliant everywhere - "
24061 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24062 # define canonicalize_file_name rpl_canonicalize_file_name
24063 # endif
24064 -_GL_FUNCDECL_RPL (canonicalize_file_name, char *, (const char *name)
24065 - _GL_ARG_NONNULL ((1)));
24066 +_GL_FUNCDECL_RPL (canonicalize_file_name, char *,
24067 + (const char *name)
24068 + _GL_ARG_NONNULL ((1))
24069 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
24070 _GL_CXXALIAS_RPL (canonicalize_file_name, char *, (const char *name));
24071 # else
24072 -# if !@HAVE_CANONICALIZE_FILE_NAME@
24073 -_GL_FUNCDECL_SYS (canonicalize_file_name, char *, (const char *name)
24074 - _GL_ARG_NONNULL ((1)));
24075 +# if !@HAVE_CANONICALIZE_FILE_NAME@ || __GNUC__ >= 11
24076 +_GL_FUNCDECL_SYS (canonicalize_file_name, char *,
24077 + (const char *name)
24078 + _GL_ARG_NONNULL ((1))
24079 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
24080 # endif
24081 _GL_CXXALIAS_SYS (canonicalize_file_name, char *, (const char *name));
24082 # endif
24083 +# ifndef GNULIB_defined_canonicalize_file_name
24084 +# define GNULIB_defined_canonicalize_file_name \
24085 + (!@HAVE_CANONICALIZE_FILE_NAME@ || @REPLACE_CANONICALIZE_FILE_NAME@)
24086 +# endif
24087 _GL_CXXALIASWARN (canonicalize_file_name);
24088 -#elif defined GNULIB_POSIXCHECK
24089 -# undef canonicalize_file_name
24090 -# if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME
24091 +#else
24092 +# if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined canonicalize_file_name
24093 +/* For -Wmismatched-dealloc: Associate canonicalize_file_name with free or
24094 + rpl_free. */
24095 +_GL_FUNCDECL_SYS (canonicalize_file_name, char *,
24096 + (const char *name)
24097 + _GL_ARG_NONNULL ((1))
24098 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
24099 +# endif
24100 +# if defined GNULIB_POSIXCHECK
24101 +# undef canonicalize_file_name
24102 +# if HAVE_RAW_DECL_CANONICALIZE_FILE_NAME
24103 _GL_WARN_ON_USE (canonicalize_file_name,
24104 "canonicalize_file_name is unportable - "
24105 "use gnulib module canonicalize-lgpl for portability");
24106 +# endif
24107 +# endif
24108 +#endif
24109 +
24110 +#if @GNULIB_MDA_ECVT@
24111 +/* On native Windows, map 'ecvt' to '_ecvt', so that -loldnames is not
24112 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
24113 + platforms by defining GNULIB_NAMESPACE::ecvt on all platforms that have
24114 + it. */
24115 +# if defined _WIN32 && !defined __CYGWIN__
24116 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24117 +# undef ecvt
24118 +# define ecvt _ecvt
24119 +# endif
24120 +_GL_CXXALIAS_MDA (ecvt, char *,
24121 + (double number, int ndigits, int *decptp, int *signp));
24122 +# else
24123 +# if @HAVE_DECL_ECVT@
24124 +_GL_CXXALIAS_SYS (ecvt, char *,
24125 + (double number, int ndigits, int *decptp, int *signp));
24126 +# endif
24127 +# endif
24128 +# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_ECVT@
24129 +_GL_CXXALIASWARN (ecvt);
24130 +# endif
24131 +#endif
24132 +
24133 +#if @GNULIB_MDA_FCVT@
24134 +/* On native Windows, map 'fcvt' to '_fcvt', so that -loldnames is not
24135 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
24136 + platforms by defining GNULIB_NAMESPACE::fcvt on all platforms that have
24137 + it. */
24138 +# if defined _WIN32 && !defined __CYGWIN__
24139 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24140 +# undef fcvt
24141 +# define fcvt _fcvt
24142 +# endif
24143 +_GL_CXXALIAS_MDA (fcvt, char *,
24144 + (double number, int ndigits, int *decptp, int *signp));
24145 +# else
24146 +# if @HAVE_DECL_FCVT@
24147 +_GL_CXXALIAS_SYS (fcvt, char *,
24148 + (double number, int ndigits, int *decptp, int *signp));
24149 +# endif
24150 +# endif
24151 +# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_FCVT@
24152 +_GL_CXXALIASWARN (fcvt);
24153 +# endif
24154 +#endif
24155 +
24156 +#if @GNULIB_MDA_GCVT@
24157 +/* On native Windows, map 'gcvt' to '_gcvt', so that -loldnames is not
24158 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
24159 + platforms by defining GNULIB_NAMESPACE::gcvt on all platforms that have
24160 + it. */
24161 +# if defined _WIN32 && !defined __CYGWIN__
24162 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24163 +# undef gcvt
24164 +# define gcvt _gcvt
24165 +# endif
24166 +_GL_CXXALIAS_MDA (gcvt, char *, (double number, int ndigits, char *buf));
24167 +# else
24168 +# if @HAVE_DECL_GCVT@
24169 +_GL_CXXALIAS_SYS (gcvt, char *, (double number, int ndigits, char *buf));
24170 +# endif
24171 +# endif
24172 +# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_GCVT@
24173 +_GL_CXXALIASWARN (gcvt);
24174 # endif
24175 #endif
24176
24177 @@ -238,8 +436,8 @@ _GL_WARN_ON_USE (getloadavg, "getloadavg is not portable - "
24178 element (or NULL if it doesn't contain an "=" sign),
24179 - It returns the index of the "token" in the given array of tokens.
24180 Otherwise it returns -1, and *OPTIONP and *VALUEP are undefined.
24181 - For more details see the POSIX:2001 specification.
24182 - http://www.opengroup.org/susv3xsh/getsubopt.html */
24183 + For more details see the POSIX specification.
24184 + https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsubopt.html */
24185 # if !@HAVE_GETSUBOPT@
24186 _GL_FUNCDECL_SYS (getsubopt, int,
24187 (char **optionp, char *const *tokens, char **valuep)
24188 @@ -277,23 +475,42 @@ _GL_WARN_ON_USE (grantpt, "grantpt is not portable - "
24189 by never specifying a zero size), so it does not need malloc or
24190 realloc to be redefined. */
24191 #if @GNULIB_MALLOC_POSIX@
24192 -# if @REPLACE_MALLOC@
24193 +# if (@GNULIB_MALLOC_POSIX@ && @REPLACE_MALLOC_FOR_MALLOC_POSIX@) \
24194 + || (@GNULIB_MALLOC_GNU@ && @REPLACE_MALLOC_FOR_MALLOC_GNU@)
24195 # if !((defined __cplusplus && defined GNULIB_NAMESPACE) \
24196 || _GL_USE_STDLIB_ALLOC)
24197 # undef malloc
24198 # define malloc rpl_malloc
24199 # endif
24200 -_GL_FUNCDECL_RPL (malloc, void *, (size_t size));
24201 +_GL_FUNCDECL_RPL (malloc, void *,
24202 + (size_t size)
24203 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
24204 _GL_CXXALIAS_RPL (malloc, void *, (size_t size));
24205 # else
24206 +# if __GNUC__ >= 11
24207 +/* For -Wmismatched-dealloc: Associate malloc with free or rpl_free. */
24208 +_GL_FUNCDECL_SYS (malloc, void *,
24209 + (size_t size)
24210 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
24211 +# endif
24212 _GL_CXXALIAS_SYS (malloc, void *, (size_t size));
24213 # endif
24214 +# if __GLIBC__ >= 2
24215 _GL_CXXALIASWARN (malloc);
24216 -#elif defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC
24217 -# undef malloc
24218 +# endif
24219 +#else
24220 +# if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined malloc
24221 +/* For -Wmismatched-dealloc: Associate malloc with free or rpl_free. */
24222 +_GL_FUNCDECL_SYS (malloc, void *,
24223 + (size_t size)
24224 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
24225 +# endif
24226 +# if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC
24227 +# undef malloc
24228 /* Assume malloc is always declared. */
24229 _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - "
24230 "use gnulib module malloc-posix for portability");
24231 +# endif
24232 #endif
24233
24234 /* Convert a multibyte character to a wide character. */
24235 @@ -303,15 +520,21 @@ _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - "
24236 # undef mbtowc
24237 # define mbtowc rpl_mbtowc
24238 # endif
24239 -_GL_FUNCDECL_RPL (mbtowc, int, (wchar_t *pwc, const char *s, size_t n));
24240 -_GL_CXXALIAS_RPL (mbtowc, int, (wchar_t *pwc, const char *s, size_t n));
24241 +_GL_FUNCDECL_RPL (mbtowc, int,
24242 + (wchar_t *restrict pwc, const char *restrict s, size_t n));
24243 +_GL_CXXALIAS_RPL (mbtowc, int,
24244 + (wchar_t *restrict pwc, const char *restrict s, size_t n));
24245 # else
24246 # if !@HAVE_MBTOWC@
24247 -_GL_FUNCDECL_SYS (mbtowc, int, (wchar_t *pwc, const char *s, size_t n));
24248 +_GL_FUNCDECL_SYS (mbtowc, int,
24249 + (wchar_t *restrict pwc, const char *restrict s, size_t n));
24250 # endif
24251 -_GL_CXXALIAS_SYS (mbtowc, int, (wchar_t *pwc, const char *s, size_t n));
24252 +_GL_CXXALIAS_SYS (mbtowc, int,
24253 + (wchar_t *restrict pwc, const char *restrict s, size_t n));
24254 # endif
24255 +# if __GLIBC__ >= 2
24256 _GL_CXXALIASWARN (mbtowc);
24257 +# endif
24258 #elif defined GNULIB_POSIXCHECK
24259 # undef mbtowc
24260 # if HAVE_RAW_DECL_MBTOWC
24261 @@ -452,6 +675,51 @@ _GL_WARN_ON_USE (mkstemps, "mkstemps is unportable - "
24262 # endif
24263 #endif
24264
24265 +#if @GNULIB_MDA_MKTEMP@
24266 +/* On native Windows, map 'mktemp' to '_mktemp', so that -loldnames is not
24267 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
24268 + platforms by defining GNULIB_NAMESPACE::mktemp always. */
24269 +# if defined _WIN32 && !defined __CYGWIN__
24270 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24271 +# undef mktemp
24272 +# define mktemp _mktemp
24273 +# endif
24274 +_GL_CXXALIAS_MDA (mktemp, char *, (char * /*template*/));
24275 +# else
24276 +_GL_CXXALIAS_SYS (mktemp, char *, (char * /*template*/));
24277 +# endif
24278 +_GL_CXXALIASWARN (mktemp);
24279 +#endif
24280 +
24281 +/* Allocate memory with indefinite extent and specified alignment. */
24282 +#if @GNULIB_POSIX_MEMALIGN@
24283 +# if @REPLACE_POSIX_MEMALIGN@
24284 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24285 +# undef posix_memalign
24286 +# define posix_memalign rpl_posix_memalign
24287 +# endif
24288 +_GL_FUNCDECL_RPL (posix_memalign, int,
24289 + (void **memptr, size_t alignment, size_t size)
24290 + _GL_ARG_NONNULL ((1)));
24291 +_GL_CXXALIAS_RPL (posix_memalign, int,
24292 + (void **memptr, size_t alignment, size_t size));
24293 +# else
24294 +# if @HAVE_POSIX_MEMALIGN@
24295 +_GL_CXXALIAS_SYS (posix_memalign, int,
24296 + (void **memptr, size_t alignment, size_t size));
24297 +# endif
24298 +# endif
24299 +# if @HAVE_POSIX_MEMALIGN@
24300 +_GL_CXXALIASWARN (posix_memalign);
24301 +# endif
24302 +#elif defined GNULIB_POSIXCHECK
24303 +# undef posix_memalign
24304 +# if HAVE_RAW_DECL_POSIX_MEMALIGN
24305 +_GL_WARN_ON_USE (posix_memalign, "posix_memalign is not portable - "
24306 + "use gnulib module posix_memalign for portability");
24307 +# endif
24308 +#endif
24309 +
24310 #if @GNULIB_POSIX_OPENPT@
24311 /* Return an FD open to the master side of a pseudo-terminal. Flags should
24312 include O_RDWR, and may also include O_NOCTTY. */
24313 @@ -510,6 +778,9 @@ _GL_FUNCDECL_SYS (ptsname_r, int, (int fd, char *buf, size_t len));
24314 # endif
24315 _GL_CXXALIAS_SYS (ptsname_r, int, (int fd, char *buf, size_t len));
24316 # endif
24317 +# ifndef GNULIB_defined_ptsname_r
24318 +# define GNULIB_defined_ptsname_r (!@HAVE_PTSNAME_R@ || @REPLACE_PTSNAME_R@)
24319 +# endif
24320 _GL_CXXALIASWARN (ptsname_r);
24321 #elif defined GNULIB_POSIXCHECK
24322 # undef ptsname_r
24323 @@ -527,6 +798,28 @@ _GL_WARN_ON_USE (ptsname_r, "ptsname_r is not portable - "
24324 # endif
24325 _GL_FUNCDECL_RPL (putenv, int, (char *string) _GL_ARG_NONNULL ((1)));
24326 _GL_CXXALIAS_RPL (putenv, int, (char *string));
24327 +# elif defined _WIN32 && !defined __CYGWIN__
24328 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24329 +# undef putenv
24330 +# define putenv _putenv
24331 +# endif
24332 +_GL_CXXALIAS_MDA (putenv, int, (char *string));
24333 +# else
24334 +_GL_CXXALIAS_SYS (putenv, int, (char *string));
24335 +# endif
24336 +_GL_CXXALIASWARN (putenv);
24337 +#elif @GNULIB_MDA_PUTENV@
24338 +/* On native Windows, map 'putenv' to '_putenv', so that -loldnames is not
24339 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
24340 + platforms by defining GNULIB_NAMESPACE::putenv always. */
24341 +# if defined _WIN32 && !defined __CYGWIN__
24342 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24343 +# undef putenv
24344 +# define putenv _putenv
24345 +# endif
24346 +/* Need to cast, because on mingw, the parameter is either
24347 + 'const char *string' or 'char *string'. */
24348 +_GL_CXXALIAS_MDA_CAST (putenv, int, (char *string));
24349 # else
24350 _GL_CXXALIAS_SYS (putenv, int, (char *string));
24351 # endif
24352 @@ -537,29 +830,35 @@ _GL_CXXALIASWARN (putenv);
24353 /* Sort an array of NMEMB elements, starting at address BASE, each element
24354 occupying SIZE bytes, in ascending order according to the comparison
24355 function COMPARE. */
24356 +# ifdef __cplusplus
24357 +extern "C" {
24358 +# endif
24359 +# if !GNULIB_defined_qsort_r_fn_types
24360 +typedef int (*_gl_qsort_r_compar_fn) (void const *, void const *, void *);
24361 +# define GNULIB_defined_qsort_r_fn_types 1
24362 +# endif
24363 +# ifdef __cplusplus
24364 +}
24365 +# endif
24366 # if @REPLACE_QSORT_R@
24367 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24368 # undef qsort_r
24369 # define qsort_r rpl_qsort_r
24370 # endif
24371 _GL_FUNCDECL_RPL (qsort_r, void, (void *base, size_t nmemb, size_t size,
24372 - int (*compare) (void const *, void const *,
24373 - void *),
24374 + _gl_qsort_r_compar_fn compare,
24375 void *arg) _GL_ARG_NONNULL ((1, 4)));
24376 _GL_CXXALIAS_RPL (qsort_r, void, (void *base, size_t nmemb, size_t size,
24377 - int (*compare) (void const *, void const *,
24378 - void *),
24379 + _gl_qsort_r_compar_fn compare,
24380 void *arg));
24381 # else
24382 # if !@HAVE_QSORT_R@
24383 _GL_FUNCDECL_SYS (qsort_r, void, (void *base, size_t nmemb, size_t size,
24384 - int (*compare) (void const *, void const *,
24385 - void *),
24386 + _gl_qsort_r_compar_fn compare,
24387 void *arg) _GL_ARG_NONNULL ((1, 4)));
24388 # endif
24389 _GL_CXXALIAS_SYS (qsort_r, void, (void *base, size_t nmemb, size_t size,
24390 - int (*compare) (void const *, void const *,
24391 - void *),
24392 + _gl_qsort_r_compar_fn compare,
24393 void *arg));
24394 # endif
24395 _GL_CXXALIASWARN (qsort_r);
24396 @@ -593,7 +892,9 @@ _GL_CXXALIAS_RPL (random, long, (void));
24397 # if !@HAVE_RANDOM@
24398 _GL_FUNCDECL_SYS (random, long, (void));
24399 # endif
24400 -_GL_CXXALIAS_SYS (random, long, (void));
24401 +/* Need to cast, because on Haiku, the return type is
24402 + int. */
24403 +_GL_CXXALIAS_SYS_CAST (random, long, (void));
24404 # endif
24405 _GL_CXXALIASWARN (random);
24406 #elif defined GNULIB_POSIXCHECK
24407 @@ -616,7 +917,9 @@ _GL_CXXALIAS_RPL (srandom, void, (unsigned int seed));
24408 # if !@HAVE_RANDOM@
24409 _GL_FUNCDECL_SYS (srandom, void, (unsigned int seed));
24410 # endif
24411 -_GL_CXXALIAS_SYS (srandom, void, (unsigned int seed));
24412 +/* Need to cast, because on FreeBSD, the first parameter is
24413 + unsigned long seed. */
24414 +_GL_CXXALIAS_SYS_CAST (srandom, void, (unsigned int seed));
24415 # endif
24416 _GL_CXXALIASWARN (srandom);
24417 #elif defined GNULIB_POSIXCHECK
24418 @@ -644,8 +947,10 @@ _GL_FUNCDECL_SYS (initstate, char *,
24419 (unsigned int seed, char *buf, size_t buf_size)
24420 _GL_ARG_NONNULL ((2)));
24421 # endif
24422 -_GL_CXXALIAS_SYS (initstate, char *,
24423 - (unsigned int seed, char *buf, size_t buf_size));
24424 +/* Need to cast, because on FreeBSD, the first parameter is
24425 + unsigned long seed. */
24426 +_GL_CXXALIAS_SYS_CAST (initstate, char *,
24427 + (unsigned int seed, char *buf, size_t buf_size));
24428 # endif
24429 _GL_CXXALIASWARN (initstate);
24430 #elif defined GNULIB_POSIXCHECK
24431 @@ -668,7 +973,9 @@ _GL_CXXALIAS_RPL (setstate, char *, (char *arg_state));
24432 # if !@HAVE_SETSTATE@ || !@HAVE_DECL_SETSTATE@
24433 _GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1)));
24434 # endif
24435 -_GL_CXXALIAS_SYS (setstate, char *, (char *arg_state));
24436 +/* Need to cast, because on Mac OS X 10.13, HP-UX, Solaris the first parameter
24437 + is const char *arg_state. */
24438 +_GL_CXXALIAS_SYS_CAST (setstate, char *, (char *arg_state));
24439 # endif
24440 _GL_CXXALIASWARN (setstate);
24441 #elif defined GNULIB_POSIXCHECK
24442 @@ -754,9 +1061,11 @@ _GL_FUNCDECL_SYS (initstate_r, int,
24443 struct random_data *rand_state)
24444 _GL_ARG_NONNULL ((2, 4)));
24445 # endif
24446 -_GL_CXXALIAS_SYS (initstate_r, int,
24447 - (unsigned int seed, char *buf, size_t buf_size,
24448 - struct random_data *rand_state));
24449 +/* Need to cast, because on Haiku, the third parameter is
24450 + unsigned long buf_size. */
24451 +_GL_CXXALIAS_SYS_CAST (initstate_r, int,
24452 + (unsigned int seed, char *buf, size_t buf_size,
24453 + struct random_data *rand_state));
24454 # endif
24455 _GL_CXXALIASWARN (initstate_r);
24456 #elif defined GNULIB_POSIXCHECK
24457 @@ -784,8 +1093,10 @@ _GL_FUNCDECL_SYS (setstate_r, int,
24458 (char *arg_state, struct random_data *rand_state)
24459 _GL_ARG_NONNULL ((1, 2)));
24460 # endif
24461 -_GL_CXXALIAS_SYS (setstate_r, int,
24462 - (char *arg_state, struct random_data *rand_state));
24463 +/* Need to cast, because on Haiku, the first parameter is
24464 + void *arg_state. */
24465 +_GL_CXXALIAS_SYS_CAST (setstate_r, int,
24466 + (char *arg_state, struct random_data *rand_state));
24467 # endif
24468 _GL_CXXALIASWARN (setstate_r);
24469 #elif defined GNULIB_POSIXCHECK
24470 @@ -798,33 +1109,60 @@ _GL_WARN_ON_USE (setstate_r, "setstate_r is unportable - "
24471
24472
24473 #if @GNULIB_REALLOC_POSIX@
24474 -# if @REPLACE_REALLOC@
24475 +# if (@GNULIB_REALLOC_POSIX@ && @REPLACE_REALLOC_FOR_REALLOC_POSIX@) \
24476 + || (@GNULIB_REALLOC_GNU@ && @REPLACE_REALLOC_FOR_REALLOC_GNU@)
24477 # if !((defined __cplusplus && defined GNULIB_NAMESPACE) \
24478 || _GL_USE_STDLIB_ALLOC)
24479 # undef realloc
24480 # define realloc rpl_realloc
24481 # endif
24482 -_GL_FUNCDECL_RPL (realloc, void *, (void *ptr, size_t size));
24483 +_GL_FUNCDECL_RPL (realloc, void *, (void *ptr, size_t size)
24484 + _GL_ATTRIBUTE_DEALLOC_FREE);
24485 _GL_CXXALIAS_RPL (realloc, void *, (void *ptr, size_t size));
24486 # else
24487 +# if __GNUC__ >= 11
24488 +/* For -Wmismatched-dealloc: Associate realloc with free or rpl_free. */
24489 +_GL_FUNCDECL_SYS (realloc, void *, (void *ptr, size_t size)
24490 + _GL_ATTRIBUTE_DEALLOC_FREE);
24491 +# endif
24492 _GL_CXXALIAS_SYS (realloc, void *, (void *ptr, size_t size));
24493 # endif
24494 +# if __GLIBC__ >= 2
24495 _GL_CXXALIASWARN (realloc);
24496 -#elif defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC
24497 -# undef realloc
24498 +# endif
24499 +#else
24500 +# if @GNULIB_FREE_POSIX@ && __GNUC__ >= 11 && !defined realloc
24501 +/* For -Wmismatched-dealloc: Associate realloc with free or rpl_free. */
24502 +_GL_FUNCDECL_SYS (realloc, void *, (void *ptr, size_t size)
24503 + _GL_ATTRIBUTE_DEALLOC_FREE);
24504 +# endif
24505 +# if defined GNULIB_POSIXCHECK && !_GL_USE_STDLIB_ALLOC
24506 +# undef realloc
24507 /* Assume realloc is always declared. */
24508 _GL_WARN_ON_USE (realloc, "realloc is not POSIX compliant everywhere - "
24509 "use gnulib module realloc-posix for portability");
24510 +# endif
24511 #endif
24512
24513
24514 #if @GNULIB_REALLOCARRAY@
24515 -# if ! @HAVE_REALLOCARRAY@
24516 +# if @REPLACE_REALLOCARRAY@
24517 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24518 +# undef reallocarray
24519 +# define reallocarray rpl_reallocarray
24520 +# endif
24521 +_GL_FUNCDECL_RPL (reallocarray, void *,
24522 + (void *ptr, size_t nmemb, size_t size));
24523 +_GL_CXXALIAS_RPL (reallocarray, void *,
24524 + (void *ptr, size_t nmemb, size_t size));
24525 +# else
24526 +# if ! @HAVE_REALLOCARRAY@
24527 _GL_FUNCDECL_SYS (reallocarray, void *,
24528 (void *ptr, size_t nmemb, size_t size));
24529 -# endif
24530 +# endif
24531 _GL_CXXALIAS_SYS (reallocarray, void *,
24532 (void *ptr, size_t nmemb, size_t size));
24533 +# endif
24534 _GL_CXXALIASWARN (reallocarray);
24535 #elif defined GNULIB_POSIXCHECK
24536 # undef reallocarray
24537 @@ -839,15 +1177,19 @@ _GL_WARN_ON_USE (reallocarray, "reallocarray is not portable - "
24538 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24539 # define realpath rpl_realpath
24540 # endif
24541 -_GL_FUNCDECL_RPL (realpath, char *, (const char *name, char *resolved)
24542 - _GL_ARG_NONNULL ((1)));
24543 -_GL_CXXALIAS_RPL (realpath, char *, (const char *name, char *resolved));
24544 +_GL_FUNCDECL_RPL (realpath, char *,
24545 + (const char *restrict name, char *restrict resolved)
24546 + _GL_ARG_NONNULL ((1)));
24547 +_GL_CXXALIAS_RPL (realpath, char *,
24548 + (const char *restrict name, char *restrict resolved));
24549 # else
24550 # if !@HAVE_REALPATH@
24551 -_GL_FUNCDECL_SYS (realpath, char *, (const char *name, char *resolved)
24552 - _GL_ARG_NONNULL ((1)));
24553 +_GL_FUNCDECL_SYS (realpath, char *,
24554 + (const char *restrict name, char *restrict resolved)
24555 + _GL_ARG_NONNULL ((1)));
24556 # endif
24557 -_GL_CXXALIAS_SYS (realpath, char *, (const char *name, char *resolved));
24558 +_GL_CXXALIAS_SYS (realpath, char *,
24559 + (const char *restrict name, char *restrict resolved));
24560 # endif
24561 _GL_CXXALIASWARN (realpath);
24562 #elif defined GNULIB_POSIXCHECK
24563 @@ -930,17 +1272,23 @@ _GL_WARN_ON_USE (setenv, "setenv is unportable - "
24564 # define strtod rpl_strtod
24565 # endif
24566 # define GNULIB_defined_strtod_function 1
24567 -_GL_FUNCDECL_RPL (strtod, double, (const char *str, char **endp)
24568 - _GL_ARG_NONNULL ((1)));
24569 -_GL_CXXALIAS_RPL (strtod, double, (const char *str, char **endp));
24570 +_GL_FUNCDECL_RPL (strtod, double,
24571 + (const char *restrict str, char **restrict endp)
24572 + _GL_ARG_NONNULL ((1)));
24573 +_GL_CXXALIAS_RPL (strtod, double,
24574 + (const char *restrict str, char **restrict endp));
24575 # else
24576 # if !@HAVE_STRTOD@
24577 -_GL_FUNCDECL_SYS (strtod, double, (const char *str, char **endp)
24578 - _GL_ARG_NONNULL ((1)));
24579 +_GL_FUNCDECL_SYS (strtod, double,
24580 + (const char *restrict str, char **restrict endp)
24581 + _GL_ARG_NONNULL ((1)));
24582 # endif
24583 -_GL_CXXALIAS_SYS (strtod, double, (const char *str, char **endp));
24584 +_GL_CXXALIAS_SYS (strtod, double,
24585 + (const char *restrict str, char **restrict endp));
24586 # endif
24587 +# if __GLIBC__ >= 2
24588 _GL_CXXALIASWARN (strtod);
24589 +# endif
24590 #elif defined GNULIB_POSIXCHECK
24591 # undef strtod
24592 # if HAVE_RAW_DECL_STRTOD
24593 @@ -956,15 +1304,19 @@ _GL_WARN_ON_USE (strtod, "strtod is unportable - "
24594 # define strtold rpl_strtold
24595 # endif
24596 # define GNULIB_defined_strtold_function 1
24597 -_GL_FUNCDECL_RPL (strtold, long double, (const char *str, char **endp)
24598 - _GL_ARG_NONNULL ((1)));
24599 -_GL_CXXALIAS_RPL (strtold, long double, (const char *str, char **endp));
24600 +_GL_FUNCDECL_RPL (strtold, long double,
24601 + (const char *restrict str, char **restrict endp)
24602 + _GL_ARG_NONNULL ((1)));
24603 +_GL_CXXALIAS_RPL (strtold, long double,
24604 + (const char *restrict str, char **restrict endp));
24605 # else
24606 # if !@HAVE_STRTOLD@
24607 -_GL_FUNCDECL_SYS (strtold, long double, (const char *str, char **endp)
24608 - _GL_ARG_NONNULL ((1)));
24609 +_GL_FUNCDECL_SYS (strtold, long double,
24610 + (const char *restrict str, char **restrict endp)
24611 + _GL_ARG_NONNULL ((1)));
24612 # endif
24613 -_GL_CXXALIAS_SYS (strtold, long double, (const char *str, char **endp));
24614 +_GL_CXXALIAS_SYS (strtold, long double,
24615 + (const char *restrict str, char **restrict endp));
24616 # endif
24617 _GL_CXXALIASWARN (strtold);
24618 #elif defined GNULIB_POSIXCHECK
24619 @@ -975,6 +1327,47 @@ _GL_WARN_ON_USE (strtold, "strtold is unportable - "
24620 # endif
24621 #endif
24622
24623 +#if @GNULIB_STRTOL@
24624 +/* Parse a signed integer whose textual representation starts at STRING.
24625 + The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0,
24626 + it may be decimal or octal (with prefix "0") or hexadecimal (with prefix
24627 + "0x").
24628 + If ENDPTR is not NULL, the address of the first byte after the integer is
24629 + stored in *ENDPTR.
24630 + Upon overflow, the return value is LONG_MAX or LONG_MIN, and errno is set
24631 + to ERANGE. */
24632 +# if @REPLACE_STRTOL@
24633 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24634 +# define strtol rpl_strtol
24635 +# endif
24636 +# define GNULIB_defined_strtol_function 1
24637 +_GL_FUNCDECL_RPL (strtol, long,
24638 + (const char *restrict string, char **restrict endptr,
24639 + int base)
24640 + _GL_ARG_NONNULL ((1)));
24641 +_GL_CXXALIAS_RPL (strtol, long,
24642 + (const char *restrict string, char **restrict endptr,
24643 + int base));
24644 +# else
24645 +# if !@HAVE_STRTOL@
24646 +_GL_FUNCDECL_SYS (strtol, long,
24647 + (const char *restrict string, char **restrict endptr,
24648 + int base)
24649 + _GL_ARG_NONNULL ((1)));
24650 +# endif
24651 +_GL_CXXALIAS_SYS (strtol, long,
24652 + (const char *restrict string, char **restrict endptr,
24653 + int base));
24654 +# endif
24655 +_GL_CXXALIASWARN (strtol);
24656 +#elif defined GNULIB_POSIXCHECK
24657 +# undef strtol
24658 +# if HAVE_RAW_DECL_STRTOL
24659 +_GL_WARN_ON_USE (strtol, "strtol is unportable - "
24660 + "use gnulib module strtol for portability");
24661 +# endif
24662 +#endif
24663 +
24664 #if @GNULIB_STRTOLL@
24665 /* Parse a signed integer whose textual representation starts at STRING.
24666 The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0,
24667 @@ -984,13 +1377,29 @@ _GL_WARN_ON_USE (strtold, "strtold is unportable - "
24668 stored in *ENDPTR.
24669 Upon overflow, the return value is LLONG_MAX or LLONG_MIN, and errno is set
24670 to ERANGE. */
24671 -# if !@HAVE_STRTOLL@
24672 +# if @REPLACE_STRTOLL@
24673 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24674 +# define strtoll rpl_strtoll
24675 +# endif
24676 +# define GNULIB_defined_strtoll_function 1
24677 +_GL_FUNCDECL_RPL (strtoll, long long,
24678 + (const char *restrict string, char **restrict endptr,
24679 + int base)
24680 + _GL_ARG_NONNULL ((1)));
24681 +_GL_CXXALIAS_RPL (strtoll, long long,
24682 + (const char *restrict string, char **restrict endptr,
24683 + int base));
24684 +# else
24685 +# if !@HAVE_STRTOLL@
24686 _GL_FUNCDECL_SYS (strtoll, long long,
24687 - (const char *string, char **endptr, int base)
24688 + (const char *restrict string, char **restrict endptr,
24689 + int base)
24690 _GL_ARG_NONNULL ((1)));
24691 -# endif
24692 +# endif
24693 _GL_CXXALIAS_SYS (strtoll, long long,
24694 - (const char *string, char **endptr, int base));
24695 + (const char *restrict string, char **restrict endptr,
24696 + int base));
24697 +# endif
24698 _GL_CXXALIASWARN (strtoll);
24699 #elif defined GNULIB_POSIXCHECK
24700 # undef strtoll
24701 @@ -1000,6 +1409,46 @@ _GL_WARN_ON_USE (strtoll, "strtoll is unportable - "
24702 # endif
24703 #endif
24704
24705 +#if @GNULIB_STRTOUL@
24706 +/* Parse an unsigned integer whose textual representation starts at STRING.
24707 + The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0,
24708 + it may be decimal or octal (with prefix "0") or hexadecimal (with prefix
24709 + "0x").
24710 + If ENDPTR is not NULL, the address of the first byte after the integer is
24711 + stored in *ENDPTR.
24712 + Upon overflow, the return value is ULONG_MAX, and errno is set to ERANGE. */
24713 +# if @REPLACE_STRTOUL@
24714 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24715 +# define strtoul rpl_strtoul
24716 +# endif
24717 +# define GNULIB_defined_strtoul_function 1
24718 +_GL_FUNCDECL_RPL (strtoul, unsigned long,
24719 + (const char *restrict string, char **restrict endptr,
24720 + int base)
24721 + _GL_ARG_NONNULL ((1)));
24722 +_GL_CXXALIAS_RPL (strtoul, unsigned long,
24723 + (const char *restrict string, char **restrict endptr,
24724 + int base));
24725 +# else
24726 +# if !@HAVE_STRTOUL@
24727 +_GL_FUNCDECL_SYS (strtoul, unsigned long,
24728 + (const char *restrict string, char **restrict endptr,
24729 + int base)
24730 + _GL_ARG_NONNULL ((1)));
24731 +# endif
24732 +_GL_CXXALIAS_SYS (strtoul, unsigned long,
24733 + (const char *restrict string, char **restrict endptr,
24734 + int base));
24735 +# endif
24736 +_GL_CXXALIASWARN (strtoul);
24737 +#elif defined GNULIB_POSIXCHECK
24738 +# undef strtoul
24739 +# if HAVE_RAW_DECL_STRTOUL
24740 +_GL_WARN_ON_USE (strtoul, "strtoul is unportable - "
24741 + "use gnulib module strtoul for portability");
24742 +# endif
24743 +#endif
24744 +
24745 #if @GNULIB_STRTOULL@
24746 /* Parse an unsigned integer whose textual representation starts at STRING.
24747 The integer is expected to be in base BASE (2 <= BASE <= 36); if BASE == 0,
24748 @@ -1009,13 +1458,29 @@ _GL_WARN_ON_USE (strtoll, "strtoll is unportable - "
24749 stored in *ENDPTR.
24750 Upon overflow, the return value is ULLONG_MAX, and errno is set to
24751 ERANGE. */
24752 -# if !@HAVE_STRTOULL@
24753 +# if @REPLACE_STRTOULL@
24754 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
24755 +# define strtoull rpl_strtoull
24756 +# endif
24757 +# define GNULIB_defined_strtoull_function 1
24758 +_GL_FUNCDECL_RPL (strtoull, unsigned long long,
24759 + (const char *restrict string, char **restrict endptr,
24760 + int base)
24761 + _GL_ARG_NONNULL ((1)));
24762 +_GL_CXXALIAS_RPL (strtoull, unsigned long long,
24763 + (const char *restrict string, char **restrict endptr,
24764 + int base));
24765 +# else
24766 +# if !@HAVE_STRTOULL@
24767 _GL_FUNCDECL_SYS (strtoull, unsigned long long,
24768 - (const char *string, char **endptr, int base)
24769 + (const char *restrict string, char **restrict endptr,
24770 + int base)
24771 _GL_ARG_NONNULL ((1)));
24772 -# endif
24773 +# endif
24774 _GL_CXXALIAS_SYS (strtoull, unsigned long long,
24775 - (const char *string, char **endptr, int base));
24776 + (const char *restrict string, char **restrict endptr,
24777 + int base));
24778 +# endif
24779 _GL_CXXALIASWARN (strtoull);
24780 #elif defined GNULIB_POSIXCHECK
24781 # undef strtoull
24782 @@ -1079,7 +1544,9 @@ _GL_CXXALIAS_RPL (wctomb, int, (char *s, wchar_t wc));
24783 # else
24784 _GL_CXXALIAS_SYS (wctomb, int, (char *s, wchar_t wc));
24785 # endif
24786 +# if __GLIBC__ >= 2
24787 _GL_CXXALIASWARN (wctomb);
24788 +# endif
24789 #endif
24790
24791
24792
24793 diff --git a/autotools/gnulib/str-two-way.h b/autotools/gnulib/str-two-way.h
24794 index 9155e6b..7ee344a 100644
24795 --- a/autotools/gnulib/str-two-way.h
24796 +++ b/autotools/gnulib/str-two-way.h
24797 @@ -1,24 +1,24 @@
24798 /* Byte-wise substring search, using the Two-Way algorithm.
24799 - Copyright (C) 2008-2019 Free Software Foundation, Inc.
24800 + Copyright (C) 2008-2022 Free Software Foundation, Inc.
24801 This file is part of the GNU C Library.
24802 Written by Eric Blake <ebb9@×××.net>, 2008.
24803
24804 - This program is free software; you can redistribute it and/or modify
24805 - it under the terms of the GNU General Public License as published by
24806 - the Free Software Foundation; either version 3, or (at your option)
24807 - any later version.
24808 + This file is free software: you can redistribute it and/or modify
24809 + it under the terms of the GNU Lesser General Public License as
24810 + published by the Free Software Foundation; either version 2.1 of the
24811 + License, or (at your option) any later version.
24812
24813 - This program is distributed in the hope that it will be useful,
24814 + This file is distributed in the hope that it will be useful,
24815 but WITHOUT ANY WARRANTY; without even the implied warranty of
24816 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24817 - GNU General Public License for more details.
24818 + GNU Lesser General Public License for more details.
24819
24820 - You should have received a copy of the GNU General Public License along
24821 - with this program; if not, see <https://www.gnu.org/licenses/>. */
24822 + You should have received a copy of the GNU Lesser General Public License
24823 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
24824
24825 /* Before including this file, you need to include <config.h> and
24826 <string.h>, and define:
24827 - RESULT_TYPE A macro that expands to the return type.
24828 + RETURN_TYPE A macro that expands to the return type.
24829 AVAILABLE(h, h_l, j, n_l)
24830 A macro that returns nonzero if there are
24831 at least N_L bytes left starting at H[J].
24832 @@ -49,7 +49,7 @@
24833 character shift table similar to the Boyer-Moore algorithm to
24834 achieve improved (potentially sub-linear) performance.
24835
24836 - See http://www-igm.univ-mlv.fr/~lecroq/string/node26.html#SECTION00260,
24837 + See https://www-igm.univ-mlv.fr/~lecroq/string/node26.html#SECTION00260,
24838 https://en.wikipedia.org/wiki/Boyer-Moore_string_search_algorithm,
24839 https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.34.6641&rep=rep1&type=pdf
24840 */
24841
24842 diff --git a/autotools/gnulib/strcasecmp.c b/autotools/gnulib/strcasecmp.c
24843 index 6cd0e1e..a85a2b1 100644
24844 --- a/autotools/gnulib/strcasecmp.c
24845 +++ b/autotools/gnulib/strcasecmp.c
24846 @@ -1,18 +1,18 @@
24847 /* Case-insensitive string comparison function.
24848 - Copyright (C) 1998-1999, 2005-2007, 2009-2019 Free Software Foundation, Inc.
24849 + Copyright (C) 1998-1999, 2005-2007, 2009-2022 Free Software Foundation, Inc.
24850
24851 - This program is free software; you can redistribute it and/or modify
24852 - it under the terms of the GNU General Public License as published by
24853 - the Free Software Foundation; either version 3, or (at your option)
24854 - any later version.
24855 + This file is free software: you can redistribute it and/or modify
24856 + it under the terms of the GNU Lesser General Public License as
24857 + published by the Free Software Foundation; either version 2.1 of the
24858 + License, or (at your option) any later version.
24859
24860 - This program is distributed in the hope that it will be useful,
24861 + This file is distributed in the hope that it will be useful,
24862 but WITHOUT ANY WARRANTY; without even the implied warranty of
24863 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24864 - GNU General Public License for more details.
24865 + GNU Lesser General Public License for more details.
24866
24867 - You should have received a copy of the GNU General Public License
24868 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
24869 + You should have received a copy of the GNU Lesser General Public License
24870 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
24871
24872 #include <config.h>
24873
24874 @@ -58,5 +58,5 @@ strcasecmp (const char *s1, const char *s2)
24875 /* On machines where 'char' and 'int' are types of the same size, the
24876 difference of two 'unsigned char' values - including the sign bit -
24877 doesn't fit in an 'int'. */
24878 - return (c1 > c2 ? 1 : c1 < c2 ? -1 : 0);
24879 + return _GL_CMP (c1, c2);
24880 }
24881
24882 diff --git a/autotools/gnulib/strcasestr.c b/autotools/gnulib/strcasestr.c
24883 index 9c93ac5..b36f409 100644
24884 --- a/autotools/gnulib/strcasestr.c
24885 +++ b/autotools/gnulib/strcasestr.c
24886 @@ -1,19 +1,19 @@
24887 /* Case-insensitive searching in a string.
24888 - Copyright (C) 2005-2019 Free Software Foundation, Inc.
24889 + Copyright (C) 2005-2022 Free Software Foundation, Inc.
24890 Written by Bruno Haible <bruno@×××××.org>, 2005.
24891
24892 - This program is free software; you can redistribute it and/or modify
24893 - it under the terms of the GNU General Public License as published by
24894 - the Free Software Foundation; either version 3, or (at your option)
24895 - any later version.
24896 + This file is free software: you can redistribute it and/or modify
24897 + it under the terms of the GNU Lesser General Public License as
24898 + published by the Free Software Foundation; either version 2.1 of the
24899 + License, or (at your option) any later version.
24900
24901 - This program is distributed in the hope that it will be useful,
24902 + This file is distributed in the hope that it will be useful,
24903 but WITHOUT ANY WARRANTY; without even the implied warranty of
24904 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24905 - GNU General Public License for more details.
24906 + GNU Lesser General Public License for more details.
24907
24908 - You should have received a copy of the GNU General Public License
24909 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
24910 + You should have received a copy of the GNU Lesser General Public License
24911 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
24912
24913 #include <config.h>
24914
24915
24916 diff --git a/autotools/gnulib/strdup.c b/autotools/gnulib/strdup.c
24917 index 717cf65..2a0df02 100644
24918 --- a/autotools/gnulib/strdup.c
24919 +++ b/autotools/gnulib/strdup.c
24920 @@ -1,20 +1,20 @@
24921 -/* Copyright (C) 1991, 1996-1998, 2002-2004, 2006-2007, 2009-2019 Free Software
24922 +/* Copyright (C) 1991, 1996-1998, 2002-2004, 2006-2007, 2009-2022 Free Software
24923 Foundation, Inc.
24924
24925 This file is part of the GNU C Library.
24926
24927 - This program is free software; you can redistribute it and/or modify
24928 - it under the terms of the GNU General Public License as published by
24929 - the Free Software Foundation; either version 3, or (at your option)
24930 - any later version.
24931 + This file is free software: you can redistribute it and/or modify
24932 + it under the terms of the GNU Lesser General Public License as
24933 + published by the Free Software Foundation; either version 2.1 of the
24934 + License, or (at your option) any later version.
24935
24936 - This program is distributed in the hope that it will be useful,
24937 + This file is distributed in the hope that it will be useful,
24938 but WITHOUT ANY WARRANTY; without even the implied warranty of
24939 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24940 - GNU General Public License for more details.
24941 + GNU Lesser General Public License for more details.
24942
24943 - You should have received a copy of the GNU General Public License along
24944 - with this program; if not, see <https://www.gnu.org/licenses/>. */
24945 + You should have received a copy of the GNU Lesser General Public License
24946 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
24947
24948 #ifndef _LIBC
24949 # include <config.h>
24950
24951 diff --git a/autotools/gnulib/strerror-override.c b/autotools/gnulib/strerror-override.c
24952 index 558a010..6be1afd 100644
24953 --- a/autotools/gnulib/strerror-override.c
24954 +++ b/autotools/gnulib/strerror-override.c
24955 @@ -1,18 +1,18 @@
24956 /* strerror-override.c --- POSIX compatible system error routine
24957
24958 - Copyright (C) 2010-2019 Free Software Foundation, Inc.
24959 + Copyright (C) 2010-2022 Free Software Foundation, Inc.
24960
24961 - This program is free software: you can redistribute it and/or modify
24962 - it under the terms of the GNU General Public License as published by
24963 - the Free Software Foundation; either version 3 of the License, or
24964 - (at your option) any later version.
24965 + This file is free software: you can redistribute it and/or modify
24966 + it under the terms of the GNU Lesser General Public License as
24967 + published by the Free Software Foundation; either version 2.1 of the
24968 + License, or (at your option) any later version.
24969
24970 - This program is distributed in the hope that it will be useful,
24971 + This file is distributed in the hope that it will be useful,
24972 but WITHOUT ANY WARRANTY; without even the implied warranty of
24973 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24974 - GNU General Public License for more details.
24975 + GNU Lesser General Public License for more details.
24976
24977 - You should have received a copy of the GNU General Public License
24978 + You should have received a copy of the GNU Lesser General Public License
24979 along with this program. If not, see <https://www.gnu.org/licenses/>. */
24980
24981 /* Written by Bruno Haible <bruno@×××××.org>, 2010. */
24982 @@ -29,6 +29,8 @@
24983 # endif
24984 #endif
24985
24986 +#if !GNULIB_defined_strerror_override_macro
24987 +
24988 /* If ERRNUM maps to an errno value defined by gnulib, return a string
24989 describing the error. Otherwise return NULL. */
24990 const char *
24991 @@ -37,12 +39,12 @@ strerror_override (int errnum)
24992 /* These error messages are taken from glibc/sysdeps/gnu/errlist.c. */
24993 switch (errnum)
24994 {
24995 -#if REPLACE_STRERROR_0
24996 +# if REPLACE_STRERROR_0
24997 case 0:
24998 return "Success";
24999 -#endif
25000 +# endif
25001
25002 -#if GNULIB_defined_ESOCK /* native Windows platforms with older <errno.h> */
25003 +# if GNULIB_defined_ESOCK /* native Windows platforms with older <errno.h> */
25004 case EINPROGRESS:
25005 return "Operation now in progress";
25006 case EALREADY:
25007 @@ -89,8 +91,8 @@ strerror_override (int errnum)
25008 return "No route to host";
25009 case EWOULDBLOCK:
25010 return "Operation would block";
25011 -#endif
25012 -#if GNULIB_defined_ESTREAMS /* native Windows platforms with older <errno.h> */
25013 +# endif
25014 +# if GNULIB_defined_ESTREAMS /* native Windows platforms with older <errno.h> */
25015 case ETXTBSY:
25016 return "Text file busy";
25017 case ENODATA:
25018 @@ -103,8 +105,8 @@ strerror_override (int errnum)
25019 return "Timer expired";
25020 case EOTHER:
25021 return "Other error";
25022 -#endif
25023 -#if GNULIB_defined_EWINSOCK /* native Windows platforms */
25024 +# endif
25025 +# if GNULIB_defined_EWINSOCK /* native Windows platforms */
25026 case ESOCKTNOSUPPORT:
25027 return "Socket type not supported";
25028 case EPFNOSUPPORT:
25029 @@ -125,7 +127,7 @@ strerror_override (int errnum)
25030 return "Stale NFS file handle";
25031 case EREMOTE:
25032 return "Object is remote";
25033 -# if HAVE_WINSOCK2_H
25034 +# if HAVE_WINSOCK2_H
25035 /* WSA_INVALID_HANDLE maps to EBADF */
25036 /* WSA_NOT_ENOUGH_MEMORY maps to ENOMEM */
25037 /* WSA_INVALID_PARAMETER maps to EINVAL */
25038 @@ -213,90 +215,92 @@ strerror_override (int errnum)
25039 case WSANO_DATA:
25040 return "Valid name, no data record of requested type";
25041 /* WSA_QOS_* omitted */
25042 +# endif
25043 # endif
25044 -#endif
25045
25046 -#if GNULIB_defined_ENOMSG
25047 +# if GNULIB_defined_ENOMSG
25048 case ENOMSG:
25049 return "No message of desired type";
25050 -#endif
25051 +# endif
25052
25053 -#if GNULIB_defined_EIDRM
25054 +# if GNULIB_defined_EIDRM
25055 case EIDRM:
25056 return "Identifier removed";
25057 -#endif
25058 +# endif
25059
25060 -#if GNULIB_defined_ENOLINK
25061 +# if GNULIB_defined_ENOLINK
25062 case ENOLINK:
25063 return "Link has been severed";
25064 -#endif
25065 +# endif
25066
25067 -#if GNULIB_defined_EPROTO
25068 +# if GNULIB_defined_EPROTO
25069 case EPROTO:
25070 return "Protocol error";
25071 -#endif
25072 +# endif
25073
25074 -#if GNULIB_defined_EMULTIHOP
25075 +# if GNULIB_defined_EMULTIHOP
25076 case EMULTIHOP:
25077 return "Multihop attempted";
25078 -#endif
25079 +# endif
25080
25081 -#if GNULIB_defined_EBADMSG
25082 +# if GNULIB_defined_EBADMSG
25083 case EBADMSG:
25084 return "Bad message";
25085 -#endif
25086 +# endif
25087
25088 -#if GNULIB_defined_EOVERFLOW
25089 +# if GNULIB_defined_EOVERFLOW
25090 case EOVERFLOW:
25091 return "Value too large for defined data type";
25092 -#endif
25093 +# endif
25094
25095 -#if GNULIB_defined_ENOTSUP
25096 +# if GNULIB_defined_ENOTSUP
25097 case ENOTSUP:
25098 return "Not supported";
25099 -#endif
25100 +# endif
25101
25102 -#if GNULIB_defined_ENETRESET
25103 +# if GNULIB_defined_ENETRESET
25104 case ENETRESET:
25105 return "Network dropped connection on reset";
25106 -#endif
25107 +# endif
25108
25109 -#if GNULIB_defined_ECONNABORTED
25110 +# if GNULIB_defined_ECONNABORTED
25111 case ECONNABORTED:
25112 return "Software caused connection abort";
25113 -#endif
25114 +# endif
25115
25116 -#if GNULIB_defined_ESTALE
25117 +# if GNULIB_defined_ESTALE
25118 case ESTALE:
25119 return "Stale NFS file handle";
25120 -#endif
25121 +# endif
25122
25123 -#if GNULIB_defined_EDQUOT
25124 +# if GNULIB_defined_EDQUOT
25125 case EDQUOT:
25126 return "Disk quota exceeded";
25127 -#endif
25128 +# endif
25129
25130 -#if GNULIB_defined_ECANCELED
25131 +# if GNULIB_defined_ECANCELED
25132 case ECANCELED:
25133 return "Operation canceled";
25134 -#endif
25135 +# endif
25136
25137 -#if GNULIB_defined_EOWNERDEAD
25138 +# if GNULIB_defined_EOWNERDEAD
25139 case EOWNERDEAD:
25140 return "Owner died";
25141 -#endif
25142 +# endif
25143
25144 -#if GNULIB_defined_ENOTRECOVERABLE
25145 +# if GNULIB_defined_ENOTRECOVERABLE
25146 case ENOTRECOVERABLE:
25147 return "State not recoverable";
25148 -#endif
25149 +# endif
25150
25151 -#if GNULIB_defined_EILSEQ
25152 +# if GNULIB_defined_EILSEQ
25153 case EILSEQ:
25154 return "Invalid or incomplete multibyte or wide character";
25155 -#endif
25156 +# endif
25157
25158 default:
25159 return NULL;
25160 }
25161 }
25162 +
25163 +#endif
25164
25165 diff --git a/autotools/gnulib/strerror-override.h b/autotools/gnulib/strerror-override.h
25166 index 255febc..d010d27 100644
25167 --- a/autotools/gnulib/strerror-override.h
25168 +++ b/autotools/gnulib/strerror-override.h
25169 @@ -1,18 +1,18 @@
25170 /* strerror-override.h --- POSIX compatible system error routine
25171
25172 - Copyright (C) 2010-2019 Free Software Foundation, Inc.
25173 + Copyright (C) 2010-2022 Free Software Foundation, Inc.
25174
25175 - This program is free software: you can redistribute it and/or modify
25176 - it under the terms of the GNU General Public License as published by
25177 - the Free Software Foundation; either version 3 of the License, or
25178 - (at your option) any later version.
25179 + This file is free software: you can redistribute it and/or modify
25180 + it under the terms of the GNU Lesser General Public License as
25181 + published by the Free Software Foundation; either version 2.1 of the
25182 + License, or (at your option) any later version.
25183
25184 - This program is distributed in the hope that it will be useful,
25185 + This file is distributed in the hope that it will be useful,
25186 but WITHOUT ANY WARRANTY; without even the implied warranty of
25187 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25188 - GNU General Public License for more details.
25189 + GNU Lesser General Public License for more details.
25190
25191 - You should have received a copy of the GNU General Public License
25192 + You should have received a copy of the GNU Lesser General Public License
25193 along with this program. If not, see <https://www.gnu.org/licenses/>. */
25194
25195 #ifndef _GL_STRERROR_OVERRIDE_H
25196 @@ -51,6 +51,7 @@
25197 extern const char *strerror_override (int errnum) _GL_ATTRIBUTE_CONST;
25198 # else
25199 # define strerror_override(ignored) NULL
25200 +# define GNULIB_defined_strerror_override_macro 1
25201 # endif
25202
25203 #endif /* _GL_STRERROR_OVERRIDE_H */
25204
25205 diff --git a/autotools/gnulib/strerror.c b/autotools/gnulib/strerror.c
25206 index f5900fd..67c5216 100644
25207 --- a/autotools/gnulib/strerror.c
25208 +++ b/autotools/gnulib/strerror.c
25209 @@ -1,18 +1,18 @@
25210 /* strerror.c --- POSIX compatible system error routine
25211
25212 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
25213 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
25214
25215 - This program is free software: you can redistribute it and/or modify
25216 - it under the terms of the GNU General Public License as published by
25217 - the Free Software Foundation; either version 3 of the License, or
25218 - (at your option) any later version.
25219 + This file is free software: you can redistribute it and/or modify
25220 + it under the terms of the GNU Lesser General Public License as
25221 + published by the Free Software Foundation; either version 2.1 of the
25222 + License, or (at your option) any later version.
25223
25224 - This program is distributed in the hope that it will be useful,
25225 + This file is distributed in the hope that it will be useful,
25226 but WITHOUT ANY WARRANTY; without even the implied warranty of
25227 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25228 - GNU General Public License for more details.
25229 + GNU Lesser General Public License for more details.
25230
25231 - You should have received a copy of the GNU General Public License
25232 + You should have received a copy of the GNU Lesser General Public License
25233 along with this program. If not, see <https://www.gnu.org/licenses/>. */
25234
25235 #include <config.h>
25236
25237 diff --git a/autotools/gnulib/string.in.h b/autotools/gnulib/string.in.h
25238 index 4a9292f..c943294 100644
25239 --- a/autotools/gnulib/string.in.h
25240 +++ b/autotools/gnulib/string.in.h
25241 @@ -1,19 +1,19 @@
25242 /* A GNU-like <string.h>.
25243
25244 - Copyright (C) 1995-1996, 2001-2019 Free Software Foundation, Inc.
25245 + Copyright (C) 1995-1996, 2001-2022 Free Software Foundation, Inc.
25246
25247 - This program is free software; you can redistribute it and/or modify
25248 - it under the terms of the GNU General Public License as published by
25249 - the Free Software Foundation; either version 3, or (at your option)
25250 - any later version.
25251 + This file is free software: you can redistribute it and/or modify
25252 + it under the terms of the GNU Lesser General Public License as
25253 + published by the Free Software Foundation; either version 2.1 of the
25254 + License, or (at your option) any later version.
25255
25256 - This program is distributed in the hope that it will be useful,
25257 + This file is distributed in the hope that it will be useful,
25258 but WITHOUT ANY WARRANTY; without even the implied warranty of
25259 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25260 - GNU General Public License for more details.
25261 + GNU Lesser General Public License for more details.
25262
25263 - You should have received a copy of the GNU General Public License
25264 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
25265 + You should have received a copy of the GNU Lesser General Public License
25266 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
25267
25268 #if __GNUC__ >= 3
25269 @PRAGMA_SYSTEM_HEADER@
25270 @@ -52,14 +52,6 @@
25271 # include <wchar.h>
25272 #endif
25273
25274 -/* The __attribute__ feature is available in gcc versions 2.5 and later.
25275 - The attribute __pure__ was added in gcc 2.96. */
25276 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
25277 -# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
25278 -#else
25279 -# define _GL_ATTRIBUTE_PURE /* empty */
25280 -#endif
25281 -
25282 /* NetBSD 5.0 declares strsignal in <unistd.h>, not in <string.h>. */
25283 /* But in any case avoid namespace pollution on glibc systems. */
25284 #if (@GNULIB_STRSIGNAL@ || defined GNULIB_POSIXCHECK) && defined __NetBSD__ \
25285 @@ -67,12 +59,82 @@
25286 # include <unistd.h>
25287 #endif
25288
25289 +/* AIX 7.2 declares ffsl and ffsll in <strings.h>, not in <string.h>. */
25290 +/* But in any case avoid namespace pollution on glibc systems. */
25291 +#if ((@GNULIB_FFSL@ || @GNULIB_FFSLL@ || defined GNULIB_POSIXCHECK) \
25292 + && defined _AIX) \
25293 + && ! defined __GLIBC__
25294 +# include <strings.h>
25295 +#endif
25296 +
25297 +/* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers
25298 + that can be freed by passing them as the Ith argument to the
25299 + function F. */
25300 +#ifndef _GL_ATTRIBUTE_DEALLOC
25301 +# if __GNUC__ >= 11
25302 +# define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
25303 +# else
25304 +# define _GL_ATTRIBUTE_DEALLOC(f, i)
25305 +# endif
25306 +#endif
25307 +
25308 +/* _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that
25309 + can be freed via 'free'; it can be used only after declaring 'free'. */
25310 +/* Applies to: functions. Cannot be used on inline functions. */
25311 +#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
25312 +# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1)
25313 +#endif
25314 +
25315 +/* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly
25316 + allocated memory. */
25317 +/* Applies to: functions. */
25318 +#ifndef _GL_ATTRIBUTE_MALLOC
25319 +# if __GNUC__ >= 3 || defined __clang__
25320 +# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
25321 +# else
25322 +# define _GL_ATTRIBUTE_MALLOC
25323 +# endif
25324 +#endif
25325 +
25326 +/* The __attribute__ feature is available in gcc versions 2.5 and later.
25327 + The attribute __pure__ was added in gcc 2.96. */
25328 +#ifndef _GL_ATTRIBUTE_PURE
25329 +# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__
25330 +# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
25331 +# else
25332 +# define _GL_ATTRIBUTE_PURE /* empty */
25333 +# endif
25334 +#endif
25335 +
25336 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
25337
25338 /* The definition of _GL_ARG_NONNULL is copied here. */
25339
25340 /* The definition of _GL_WARN_ON_USE is copied here. */
25341
25342 +/* Make _GL_ATTRIBUTE_DEALLOC_FREE work, even though <stdlib.h> may not have
25343 + been included yet. */
25344 +#if @GNULIB_FREE_POSIX@
25345 +# if (@REPLACE_FREE@ && !defined free \
25346 + && !(defined __cplusplus && defined GNULIB_NAMESPACE))
25347 +/* We can't do '#define free rpl_free' here. */
25348 +_GL_EXTERN_C void rpl_free (void *);
25349 +# undef _GL_ATTRIBUTE_DEALLOC_FREE
25350 +# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (rpl_free, 1)
25351 +# else
25352 +# if defined _MSC_VER
25353 +_GL_EXTERN_C void __cdecl free (void *);
25354 +# else
25355 +_GL_EXTERN_C void free (void *);
25356 +# endif
25357 +# endif
25358 +#else
25359 +# if defined _MSC_VER
25360 +_GL_EXTERN_C void __cdecl free (void *);
25361 +# else
25362 +_GL_EXTERN_C void free (void *);
25363 +# endif
25364 +#endif
25365
25366 /* Clear a block of memory. The compiler will not delete a call to
25367 this function, even if the block is dead after the call. */
25368 @@ -108,10 +170,18 @@ _GL_WARN_ON_USE (ffsl, "ffsl is not portable - use the ffsl module");
25369
25370 /* Find the index of the least-significant set bit. */
25371 #if @GNULIB_FFSLL@
25372 -# if !@HAVE_FFSLL@
25373 +# if @REPLACE_FFSLL@
25374 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
25375 +# define ffsll rpl_ffsll
25376 +# endif
25377 +_GL_FUNCDECL_RPL (ffsll, int, (long long int i));
25378 +_GL_CXXALIAS_RPL (ffsll, int, (long long int i));
25379 +# else
25380 +# if !@HAVE_FFSLL@
25381 _GL_FUNCDECL_SYS (ffsll, int, (long long int i));
25382 -# endif
25383 +# endif
25384 _GL_CXXALIAS_SYS (ffsll, int, (long long int i));
25385 +# endif
25386 _GL_CXXALIASWARN (ffsll);
25387 #elif defined GNULIB_POSIXCHECK
25388 # undef ffsll
25389 @@ -121,10 +191,30 @@ _GL_WARN_ON_USE (ffsll, "ffsll is not portable - use the ffsll module");
25390 #endif
25391
25392
25393 +#if @GNULIB_MDA_MEMCCPY@
25394 +/* On native Windows, map 'memccpy' to '_memccpy', so that -loldnames is not
25395 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
25396 + platforms by defining GNULIB_NAMESPACE::memccpy always. */
25397 +# if defined _WIN32 && !defined __CYGWIN__
25398 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
25399 +# undef memccpy
25400 +# define memccpy _memccpy
25401 +# endif
25402 +_GL_CXXALIAS_MDA (memccpy, void *,
25403 + (void *dest, const void *src, int c, size_t n));
25404 +# else
25405 +_GL_CXXALIAS_SYS (memccpy, void *,
25406 + (void *dest, const void *src, int c, size_t n));
25407 +# endif
25408 +_GL_CXXALIASWARN (memccpy);
25409 +#endif
25410 +
25411 +
25412 /* Return the first instance of C within N bytes of S, or NULL. */
25413 #if @GNULIB_MEMCHR@
25414 # if @REPLACE_MEMCHR@
25415 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
25416 +# undef memchr
25417 # define memchr rpl_memchr
25418 # endif
25419 _GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n)
25420 @@ -132,11 +222,6 @@ _GL_FUNCDECL_RPL (memchr, void *, (void const *__s, int __c, size_t __n)
25421 _GL_ARG_NONNULL ((1)));
25422 _GL_CXXALIAS_RPL (memchr, void *, (void const *__s, int __c, size_t __n));
25423 # else
25424 -# if ! @HAVE_MEMCHR@
25425 -_GL_FUNCDECL_SYS (memchr, void *, (void const *__s, int __c, size_t __n)
25426 - _GL_ATTRIBUTE_PURE
25427 - _GL_ARG_NONNULL ((1)));
25428 -# endif
25429 /* On some systems, this function is defined as an overloaded function:
25430 extern "C" { const void * std::memchr (const void *, int, size_t); }
25431 extern "C++" { void * std::memchr (void *, int, size_t); } */
25432 @@ -149,7 +234,7 @@ _GL_CXXALIAS_SYS_CAST2 (memchr,
25433 _GL_CXXALIASWARN1 (memchr, void *, (void *__s, int __c, size_t __n));
25434 _GL_CXXALIASWARN1 (memchr, void const *,
25435 (void const *__s, int __c, size_t __n));
25436 -# else
25437 +# elif __GLIBC__ >= 2
25438 _GL_CXXALIASWARN (memchr);
25439 # endif
25440 #elif defined GNULIB_POSIXCHECK
25441 @@ -332,9 +417,11 @@ _GL_WARN_ON_USE (stpncpy, "stpncpy is unportable - "
25442 GB18030 and the character to be searched is a digit. */
25443 # undef strchr
25444 /* Assume strchr is always declared. */
25445 -_GL_WARN_ON_USE (strchr, "strchr cannot work correctly on character strings "
25446 - "in some multibyte locales - "
25447 - "use mbschr if you care about internationalization");
25448 +_GL_WARN_ON_USE_CXX (strchr,
25449 + const char *, char *, (const char *, int),
25450 + "strchr cannot work correctly on character strings "
25451 + "in some multibyte locales - "
25452 + "use mbschr if you care about internationalization");
25453 #endif
25454
25455 /* Find the first occurrence of C in S or the final NUL byte. */
25456 @@ -383,24 +470,62 @@ _GL_WARN_ON_USE (strchrnul, "strchrnul is unportable - "
25457 # undef strdup
25458 # define strdup rpl_strdup
25459 # endif
25460 -_GL_FUNCDECL_RPL (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1)));
25461 +_GL_FUNCDECL_RPL (strdup, char *,
25462 + (char const *__s)
25463 + _GL_ARG_NONNULL ((1))
25464 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
25465 _GL_CXXALIAS_RPL (strdup, char *, (char const *__s));
25466 +# elif defined _WIN32 && !defined __CYGWIN__
25467 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
25468 +# undef strdup
25469 +# define strdup _strdup
25470 +# endif
25471 +_GL_CXXALIAS_MDA (strdup, char *, (char const *__s));
25472 # else
25473 # if defined __cplusplus && defined GNULIB_NAMESPACE && defined strdup
25474 /* strdup exists as a function and as a macro. Get rid of the macro. */
25475 # undef strdup
25476 # endif
25477 -# if !(@HAVE_DECL_STRDUP@ || defined strdup)
25478 -_GL_FUNCDECL_SYS (strdup, char *, (char const *__s) _GL_ARG_NONNULL ((1)));
25479 +# if (!@HAVE_DECL_STRDUP@ || __GNUC__ >= 11) && !defined strdup
25480 +_GL_FUNCDECL_SYS (strdup, char *,
25481 + (char const *__s)
25482 + _GL_ARG_NONNULL ((1))
25483 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
25484 # endif
25485 _GL_CXXALIAS_SYS (strdup, char *, (char const *__s));
25486 # endif
25487 _GL_CXXALIASWARN (strdup);
25488 -#elif defined GNULIB_POSIXCHECK
25489 -# undef strdup
25490 -# if HAVE_RAW_DECL_STRDUP
25491 +#else
25492 +# if __GNUC__ >= 11 && !defined strdup
25493 +/* For -Wmismatched-dealloc: Associate strdup with free or rpl_free. */
25494 +_GL_FUNCDECL_SYS (strdup, char *,
25495 + (char const *__s)
25496 + _GL_ARG_NONNULL ((1))
25497 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
25498 +# endif
25499 +# if defined GNULIB_POSIXCHECK
25500 +# undef strdup
25501 +# if HAVE_RAW_DECL_STRDUP
25502 _GL_WARN_ON_USE (strdup, "strdup is unportable - "
25503 "use gnulib module strdup for portability");
25504 +# endif
25505 +# elif @GNULIB_MDA_STRDUP@
25506 +/* On native Windows, map 'creat' to '_creat', so that -loldnames is not
25507 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
25508 + platforms by defining GNULIB_NAMESPACE::strdup always. */
25509 +# if defined _WIN32 && !defined __CYGWIN__
25510 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
25511 +# undef strdup
25512 +# define strdup _strdup
25513 +# endif
25514 +_GL_CXXALIAS_MDA (strdup, char *, (char const *__s));
25515 +# else
25516 +# if defined __cplusplus && defined GNULIB_NAMESPACE && defined strdup
25517 +# undef strdup
25518 +# endif
25519 +_GL_CXXALIAS_SYS (strdup, char *, (char const *__s));
25520 +# endif
25521 +_GL_CXXALIASWARN (strdup);
25522 # endif
25523 #endif
25524
25525 @@ -411,13 +536,18 @@ _GL_WARN_ON_USE (strdup, "strdup is unportable - "
25526 # undef strncat
25527 # define strncat rpl_strncat
25528 # endif
25529 -_GL_FUNCDECL_RPL (strncat, char *, (char *dest, const char *src, size_t n)
25530 - _GL_ARG_NONNULL ((1, 2)));
25531 -_GL_CXXALIAS_RPL (strncat, char *, (char *dest, const char *src, size_t n));
25532 +_GL_FUNCDECL_RPL (strncat, char *,
25533 + (char *restrict dest, const char *restrict src, size_t n)
25534 + _GL_ARG_NONNULL ((1, 2)));
25535 +_GL_CXXALIAS_RPL (strncat, char *,
25536 + (char *restrict dest, const char *restrict src, size_t n));
25537 # else
25538 -_GL_CXXALIAS_SYS (strncat, char *, (char *dest, const char *src, size_t n));
25539 +_GL_CXXALIAS_SYS (strncat, char *,
25540 + (char *restrict dest, const char *restrict src, size_t n));
25541 # endif
25542 +# if __GLIBC__ >= 2
25543 _GL_CXXALIASWARN (strncat);
25544 +# endif
25545 #elif defined GNULIB_POSIXCHECK
25546 # undef strncat
25547 # if HAVE_RAW_DECL_STRNCAT
25548 @@ -433,22 +563,35 @@ _GL_WARN_ON_USE (strncat, "strncat is unportable - "
25549 # undef strndup
25550 # define strndup rpl_strndup
25551 # endif
25552 -_GL_FUNCDECL_RPL (strndup, char *, (char const *__s, size_t __n)
25553 - _GL_ARG_NONNULL ((1)));
25554 +_GL_FUNCDECL_RPL (strndup, char *,
25555 + (char const *__s, size_t __n)
25556 + _GL_ARG_NONNULL ((1))
25557 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
25558 _GL_CXXALIAS_RPL (strndup, char *, (char const *__s, size_t __n));
25559 # else
25560 -# if ! @HAVE_DECL_STRNDUP@
25561 -_GL_FUNCDECL_SYS (strndup, char *, (char const *__s, size_t __n)
25562 - _GL_ARG_NONNULL ((1)));
25563 +# if !@HAVE_DECL_STRNDUP@ || __GNUC__ >= 11
25564 +_GL_FUNCDECL_SYS (strndup, char *,
25565 + (char const *__s, size_t __n)
25566 + _GL_ARG_NONNULL ((1))
25567 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
25568 # endif
25569 _GL_CXXALIAS_SYS (strndup, char *, (char const *__s, size_t __n));
25570 # endif
25571 _GL_CXXALIASWARN (strndup);
25572 -#elif defined GNULIB_POSIXCHECK
25573 -# undef strndup
25574 -# if HAVE_RAW_DECL_STRNDUP
25575 +#else
25576 +# if __GNUC__ >= 11
25577 +/* For -Wmismatched-dealloc: Associate strndup with free or rpl_free. */
25578 +_GL_FUNCDECL_SYS (strndup, char *,
25579 + (char const *__s, size_t __n)
25580 + _GL_ARG_NONNULL ((1))
25581 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
25582 +# endif
25583 +# if defined GNULIB_POSIXCHECK
25584 +# undef strndup
25585 +# if HAVE_RAW_DECL_STRNDUP
25586 _GL_WARN_ON_USE (strndup, "strndup is unportable - "
25587 "use gnulib module strndup for portability");
25588 +# endif
25589 # endif
25590 #endif
25591
25592 @@ -512,7 +655,7 @@ _GL_CXXALIAS_SYS_CAST2 (strpbrk,
25593 _GL_CXXALIASWARN1 (strpbrk, char *, (char *__s, char const *__accept));
25594 _GL_CXXALIASWARN1 (strpbrk, char const *,
25595 (char const *__s, char const *__accept));
25596 -# else
25597 +# elif __GLIBC__ >= 2
25598 _GL_CXXALIASWARN (strpbrk);
25599 # endif
25600 # if defined GNULIB_POSIXCHECK
25601 @@ -521,15 +664,19 @@ _GL_CXXALIASWARN (strpbrk);
25602 locale encoding is GB18030 and one of the characters to be searched is a
25603 digit. */
25604 # undef strpbrk
25605 -_GL_WARN_ON_USE (strpbrk, "strpbrk cannot work correctly on character strings "
25606 - "in multibyte locales - "
25607 - "use mbspbrk if you care about internationalization");
25608 +_GL_WARN_ON_USE_CXX (strpbrk,
25609 + const char *, char *, (const char *, const char *),
25610 + "strpbrk cannot work correctly on character strings "
25611 + "in multibyte locales - "
25612 + "use mbspbrk if you care about internationalization");
25613 # endif
25614 #elif defined GNULIB_POSIXCHECK
25615 # undef strpbrk
25616 # if HAVE_RAW_DECL_STRPBRK
25617 -_GL_WARN_ON_USE (strpbrk, "strpbrk is unportable - "
25618 - "use gnulib module strpbrk for portability");
25619 +_GL_WARN_ON_USE_CXX (strpbrk,
25620 + const char *, char *, (const char *, const char *),
25621 + "strpbrk is unportable - "
25622 + "use gnulib module strpbrk for portability");
25623 # endif
25624 #endif
25625
25626 @@ -548,9 +695,11 @@ _GL_WARN_ON_USE (strspn, "strspn cannot work correctly on character strings "
25627 GB18030 and the character to be searched is a digit. */
25628 # undef strrchr
25629 /* Assume strrchr is always declared. */
25630 -_GL_WARN_ON_USE (strrchr, "strrchr cannot work correctly on character strings "
25631 - "in some multibyte locales - "
25632 - "use mbsrchr if you care about internationalization");
25633 +_GL_WARN_ON_USE_CXX (strrchr,
25634 + const char *, char *, (const char *, int),
25635 + "strrchr cannot work correctly on character strings "
25636 + "in some multibyte locales - "
25637 + "use mbsrchr if you care about internationalization");
25638 #endif
25639
25640 /* Search the next delimiter (char listed in DELIM) starting at *STRINGP.
25641 @@ -614,7 +763,7 @@ _GL_CXXALIAS_SYS_CAST2 (strstr,
25642 _GL_CXXALIASWARN1 (strstr, char *, (char *haystack, const char *needle));
25643 _GL_CXXALIASWARN1 (strstr, const char *,
25644 (const char *haystack, const char *needle));
25645 -# else
25646 +# elif __GLIBC__ >= 2
25647 _GL_CXXALIASWARN (strstr);
25648 # endif
25649 #elif defined GNULIB_POSIXCHECK
25650 @@ -693,7 +842,7 @@ _GL_WARN_ON_USE (strcasestr, "strcasestr does work correctly on character "
25651 This is a variant of strtok() that is multithread-safe.
25652
25653 For the POSIX documentation for this function, see:
25654 - http://www.opengroup.org/susv3xsh/strtok.html
25655 + https://pubs.opengroup.org/onlinepubs/9699919799/functions/strtok.html
25656
25657 Caveat: It modifies the original string.
25658 Caveat: These functions cannot be used on constant strings.
25659 @@ -964,7 +1113,8 @@ _GL_EXTERN_C char * mbssep (char **stringp, const char *delim)
25660 Caveat: The identity of the delimiting character is lost.
25661
25662 See also mbssep(). */
25663 -_GL_EXTERN_C char * mbstok_r (char *string, const char *delim, char **save_ptr)
25664 +_GL_EXTERN_C char * mbstok_r (char *restrict string, const char *delim,
25665 + char **save_ptr)
25666 _GL_ARG_NONNULL ((2, 3));
25667 #endif
25668
25669 @@ -980,7 +1130,9 @@ _GL_CXXALIAS_RPL (strerror, char *, (int));
25670 # else
25671 _GL_CXXALIAS_SYS (strerror, char *, (int));
25672 # endif
25673 +# if __GLIBC__ >= 2
25674 _GL_CXXALIASWARN (strerror);
25675 +# endif
25676 #elif defined GNULIB_POSIXCHECK
25677 # undef strerror
25678 /* Assume strerror is always declared. */
25679 @@ -1017,6 +1169,60 @@ _GL_WARN_ON_USE (strerror_r, "strerror_r is unportable - "
25680 # endif
25681 #endif
25682
25683 +/* Return the name of the system error code ERRNUM. */
25684 +#if @GNULIB_STRERRORNAME_NP@
25685 +# if @REPLACE_STRERRORNAME_NP@
25686 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
25687 +# undef strerrorname_np
25688 +# define strerrorname_np rpl_strerrorname_np
25689 +# endif
25690 +_GL_FUNCDECL_RPL (strerrorname_np, const char *, (int errnum));
25691 +_GL_CXXALIAS_RPL (strerrorname_np, const char *, (int errnum));
25692 +# else
25693 +# if !@HAVE_STRERRORNAME_NP@
25694 +_GL_FUNCDECL_SYS (strerrorname_np, const char *, (int errnum));
25695 +# endif
25696 +_GL_CXXALIAS_SYS (strerrorname_np, const char *, (int errnum));
25697 +# endif
25698 +_GL_CXXALIASWARN (strerrorname_np);
25699 +#elif defined GNULIB_POSIXCHECK
25700 +# undef strerrorname_np
25701 +# if HAVE_RAW_DECL_STRERRORNAME_NP
25702 +_GL_WARN_ON_USE (strerrorname_np, "strerrorname_np is unportable - "
25703 + "use gnulib module strerrorname_np for portability");
25704 +# endif
25705 +#endif
25706 +
25707 +/* Return an abbreviation string for the signal number SIG. */
25708 +#if @GNULIB_SIGABBREV_NP@
25709 +# if ! @HAVE_SIGABBREV_NP@
25710 +_GL_FUNCDECL_SYS (sigabbrev_np, const char *, (int sig));
25711 +# endif
25712 +_GL_CXXALIAS_SYS (sigabbrev_np, const char *, (int sig));
25713 +_GL_CXXALIASWARN (sigabbrev_np);
25714 +#elif defined GNULIB_POSIXCHECK
25715 +# undef sigabbrev_np
25716 +# if HAVE_RAW_DECL_SIGABBREV_NP
25717 +_GL_WARN_ON_USE (sigabbrev_np, "sigabbrev_np is unportable - "
25718 + "use gnulib module sigabbrev_np for portability");
25719 +# endif
25720 +#endif
25721 +
25722 +/* Return an English description string for the signal number SIG. */
25723 +#if @GNULIB_SIGDESCR_NP@
25724 +# if ! @HAVE_SIGDESCR_NP@
25725 +_GL_FUNCDECL_SYS (sigdescr_np, const char *, (int sig));
25726 +# endif
25727 +_GL_CXXALIAS_SYS (sigdescr_np, const char *, (int sig));
25728 +_GL_CXXALIASWARN (sigdescr_np);
25729 +#elif defined GNULIB_POSIXCHECK
25730 +# undef sigdescr_np
25731 +# if HAVE_RAW_DECL_SIGDESCR_NP
25732 +_GL_WARN_ON_USE (sigdescr_np, "sigdescr_np is unportable - "
25733 + "use gnulib module sigdescr_np for portability");
25734 +# endif
25735 +#endif
25736 +
25737 #if @GNULIB_STRSIGNAL@
25738 # if @REPLACE_STRSIGNAL@
25739 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
25740
25741 diff --git a/autotools/gnulib/strings.in.h b/autotools/gnulib/strings.in.h
25742 index 21b1a85..2c31d2e 100644
25743 --- a/autotools/gnulib/strings.in.h
25744 +++ b/autotools/gnulib/strings.in.h
25745 @@ -1,19 +1,19 @@
25746 /* A substitute <strings.h>.
25747
25748 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
25749 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
25750
25751 - This program is free software; you can redistribute it and/or modify
25752 - it under the terms of the GNU General Public License as published by
25753 - the Free Software Foundation; either version 3, or (at your option)
25754 - any later version.
25755 + This file is free software: you can redistribute it and/or modify
25756 + it under the terms of the GNU Lesser General Public License as
25757 + published by the Free Software Foundation; either version 2.1 of the
25758 + License, or (at your option) any later version.
25759
25760 - This program is distributed in the hope that it will be useful,
25761 + This file is distributed in the hope that it will be useful,
25762 but WITHOUT ANY WARRANTY; without even the implied warranty of
25763 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25764 - GNU General Public License for more details.
25765 + GNU Lesser General Public License for more details.
25766
25767 - You should have received a copy of the GNU General Public License
25768 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
25769 + You should have received a copy of the GNU Lesser General Public License
25770 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
25771
25772 #ifndef _@GUARD_PREFIX@_STRINGS_H
25773
25774
25775 diff --git a/autotools/gnulib/stripslash.c b/autotools/gnulib/stripslash.c
25776 index dfc15b4..aee89b7 100644
25777 --- a/autotools/gnulib/stripslash.c
25778 +++ b/autotools/gnulib/stripslash.c
25779 @@ -1,19 +1,19 @@
25780 /* stripslash.c -- remove redundant trailing slashes from a file name
25781
25782 - Copyright (C) 1990, 2001, 2003-2006, 2009-2019 Free Software Foundation,
25783 + Copyright (C) 1990, 2001, 2003-2006, 2009-2022 Free Software Foundation,
25784 Inc.
25785
25786 - This program is free software: you can redistribute it and/or modify
25787 - it under the terms of the GNU General Public License as published by
25788 - the Free Software Foundation; either version 3 of the License, or
25789 - (at your option) any later version.
25790 + This file is free software: you can redistribute it and/or modify
25791 + it under the terms of the GNU Lesser General Public License as
25792 + published by the Free Software Foundation; either version 2.1 of the
25793 + License, or (at your option) any later version.
25794
25795 - This program is distributed in the hope that it will be useful,
25796 + This file is distributed in the hope that it will be useful,
25797 but WITHOUT ANY WARRANTY; without even the implied warranty of
25798 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25799 - GNU General Public License for more details.
25800 + GNU Lesser General Public License for more details.
25801
25802 - You should have received a copy of the GNU General Public License
25803 + You should have received a copy of the GNU Lesser General Public License
25804 along with this program. If not, see <https://www.gnu.org/licenses/>. */
25805
25806 #include <config.h>
25807
25808 diff --git a/autotools/gnulib/strncasecmp.c b/autotools/gnulib/strncasecmp.c
25809 index 034011c..35d215b 100644
25810 --- a/autotools/gnulib/strncasecmp.c
25811 +++ b/autotools/gnulib/strncasecmp.c
25812 @@ -1,18 +1,18 @@
25813 /* strncasecmp.c -- case insensitive string comparator
25814 - Copyright (C) 1998-1999, 2005-2007, 2009-2019 Free Software Foundation, Inc.
25815 + Copyright (C) 1998-1999, 2005-2007, 2009-2022 Free Software Foundation, Inc.
25816
25817 - This program is free software; you can redistribute it and/or modify
25818 - it under the terms of the GNU General Public License as published by
25819 - the Free Software Foundation; either version 3, or (at your option)
25820 - any later version.
25821 + This file is free software: you can redistribute it and/or modify
25822 + it under the terms of the GNU Lesser General Public License as
25823 + published by the Free Software Foundation; either version 2.1 of the
25824 + License, or (at your option) any later version.
25825
25826 - This program is distributed in the hope that it will be useful,
25827 + This file is distributed in the hope that it will be useful,
25828 but WITHOUT ANY WARRANTY; without even the implied warranty of
25829 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25830 - GNU General Public License for more details.
25831 + GNU Lesser General Public License for more details.
25832
25833 - You should have received a copy of the GNU General Public License
25834 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
25835 + You should have received a copy of the GNU Lesser General Public License
25836 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
25837
25838 #include <config.h>
25839
25840 @@ -58,5 +58,5 @@ strncasecmp (const char *s1, const char *s2, size_t n)
25841 /* On machines where 'char' and 'int' are types of the same size, the
25842 difference of two 'unsigned char' values - including the sign bit -
25843 doesn't fit in an 'int'. */
25844 - return (c1 > c2 ? 1 : c1 < c2 ? -1 : 0);
25845 + return _GL_CMP (c1, c2);
25846 }
25847
25848 diff --git a/autotools/gnulib/strncat.c b/autotools/gnulib/strncat.c
25849 index a7daef4..1bfbc99 100644
25850 --- a/autotools/gnulib/strncat.c
25851 +++ b/autotools/gnulib/strncat.c
25852 @@ -1,18 +1,18 @@
25853 /* Concatenate strings.
25854 - Copyright (C) 1999, 2002, 2006, 2010-2019 Free Software Foundation, Inc.
25855 + Copyright (C) 1999, 2002, 2006, 2010-2022 Free Software Foundation, Inc.
25856 Written by Bruno Haible <bruno@×××××.org>, 2002.
25857
25858 - This program is free software: you can redistribute it and/or modify it
25859 - under the terms of the GNU General Public License as published
25860 - by the Free Software Foundation; either version 3 of the License, or
25861 - (at your option) any later version.
25862 + This file is free software: you can redistribute it and/or modify
25863 + it under the terms of the GNU Lesser General Public License as
25864 + published by the Free Software Foundation; either version 2.1 of the
25865 + License, or (at your option) any later version.
25866
25867 - This program is distributed in the hope that it will be useful,
25868 + This file is distributed in the hope that it will be useful,
25869 but WITHOUT ANY WARRANTY; without even the implied warranty of
25870 - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25871 - General Public License for more details.
25872 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25873 + GNU Lesser General Public License for more details.
25874
25875 - You should have received a copy of the GNU General Public License
25876 + You should have received a copy of the GNU Lesser General Public License
25877 along with this program. If not, see <https://www.gnu.org/licenses/>. */
25878
25879 #include <config.h>
25880
25881 diff --git a/autotools/gnulib/symlink.c b/autotools/gnulib/symlink.c
25882 index 16432ee..26310af 100644
25883 --- a/autotools/gnulib/symlink.c
25884 +++ b/autotools/gnulib/symlink.c
25885 @@ -1,17 +1,17 @@
25886 /* Stub for symlink().
25887 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
25888 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
25889
25890 - This program is free software: you can redistribute it and/or modify
25891 - it under the terms of the GNU General Public License as published by
25892 - the Free Software Foundation; either version 3 of the License, or
25893 - (at your option) any later version.
25894 + This file is free software: you can redistribute it and/or modify
25895 + it under the terms of the GNU Lesser General Public License as
25896 + published by the Free Software Foundation, either version 3 of the
25897 + License, or (at your option) any later version.
25898
25899 - This program is distributed in the hope that it will be useful,
25900 + This file is distributed in the hope that it will be useful,
25901 but WITHOUT ANY WARRANTY; without even the implied warranty of
25902 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25903 - GNU General Public License for more details.
25904 + GNU Lesser General Public License for more details.
25905
25906 - You should have received a copy of the GNU General Public License
25907 + You should have received a copy of the GNU Lesser General Public License
25908 along with this program. If not, see <https://www.gnu.org/licenses/>. */
25909
25910 #include <config.h>
25911 @@ -36,7 +36,7 @@ rpl_symlink (char const *contents, char const *name)
25912 if (len && name[len - 1] == '/')
25913 {
25914 struct stat st;
25915 - if (lstat (name, &st) == 0)
25916 + if (lstat (name, &st) == 0 || errno == EOVERFLOW)
25917 errno = EEXIST;
25918 return -1;
25919 }
25920 @@ -47,8 +47,8 @@ rpl_symlink (char const *contents, char const *name)
25921
25922 /* The system does not support symlinks. */
25923 int
25924 -symlink (char const *contents _GL_UNUSED,
25925 - char const *name _GL_UNUSED)
25926 +symlink (_GL_UNUSED char const *contents,
25927 + _GL_UNUSED char const *name)
25928 {
25929 errno = ENOSYS;
25930 return -1;
25931
25932 diff --git a/autotools/gnulib/symlinkat.c b/autotools/gnulib/symlinkat.c
25933 index 7d58cd9..1346da8 100644
25934 --- a/autotools/gnulib/symlinkat.c
25935 +++ b/autotools/gnulib/symlinkat.c
25936 @@ -1,9 +1,9 @@
25937 /* Create a symlink relative to an open directory.
25938 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
25939 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
25940
25941 This program is free software: you can redistribute it and/or modify
25942 it under the terms of the GNU General Public License as published by
25943 - the Free Software Foundation; either version 3 of the License, or
25944 + the Free Software Foundation, either version 3 of the License, or
25945 (at your option) any later version.
25946
25947 This program is distributed in the hope that it will be useful,
25948 @@ -18,12 +18,16 @@
25949
25950 #include <config.h>
25951
25952 +/* Specification. */
25953 #include <unistd.h>
25954 +
25955 #include <errno.h>
25956 +#include <stdlib.h>
25957
25958 #if HAVE_SYMLINKAT
25959 # undef symlinkat
25960
25961 +#include <fcntl.h>
25962 #include <sys/stat.h>
25963 #include <string.h>
25964
25965 @@ -35,7 +39,8 @@ rpl_symlinkat (char const *contents, int fd, char const *name)
25966 if (len && name[len - 1] == '/')
25967 {
25968 struct stat st;
25969 - if (fstatat (fd, name, &st, 0) == 0)
25970 + if (fstatat (fd, name, &st, AT_SYMLINK_NOFOLLOW) == 0
25971 + || errno == EOVERFLOW)
25972 errno = EEXIST;
25973 return -1;
25974 }
25975 @@ -47,8 +52,8 @@ rpl_symlinkat (char const *contents, int fd, char const *name)
25976 wrapper than to go through at-func.c to call rpl_symlink. */
25977
25978 int
25979 -symlinkat (char const *path1 _GL_UNUSED, int fd _GL_UNUSED,
25980 - char const *path2 _GL_UNUSED)
25981 +symlinkat (_GL_UNUSED char const *path1, _GL_UNUSED int fd,
25982 + _GL_UNUSED char const *path2)
25983 {
25984 errno = ENOSYS;
25985 return -1;
25986
25987 diff --git a/autotools/gnulib/sys_stat.in.h b/autotools/gnulib/sys_stat.in.h
25988 index 9ddd1a8..28ddd42 100644
25989 --- a/autotools/gnulib/sys_stat.in.h
25990 +++ b/autotools/gnulib/sys_stat.in.h
25991 @@ -1,18 +1,18 @@
25992 /* Provide a more complete sys/stat.h header file.
25993 - Copyright (C) 2005-2019 Free Software Foundation, Inc.
25994 + Copyright (C) 2005-2022 Free Software Foundation, Inc.
25995
25996 - This program is free software; you can redistribute it and/or modify
25997 - it under the terms of the GNU General Public License as published by
25998 - the Free Software Foundation; either version 3, or (at your option)
25999 - any later version.
26000 + This file is free software: you can redistribute it and/or modify
26001 + it under the terms of the GNU Lesser General Public License as
26002 + published by the Free Software Foundation; either version 2.1 of the
26003 + License, or (at your option) any later version.
26004
26005 - This program is distributed in the hope that it will be useful,
26006 + This file is distributed in the hope that it will be useful,
26007 but WITHOUT ANY WARRANTY; without even the implied warranty of
26008 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26009 - GNU General Public License for more details.
26010 + GNU Lesser General Public License for more details.
26011
26012 - You should have received a copy of the GNU General Public License
26013 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
26014 + You should have received a copy of the GNU Lesser General Public License
26015 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
26016
26017 /* Written by Eric Blake, Paul Eggert, and Jim Meyering. */
26018
26019 @@ -375,11 +375,11 @@ struct stat
26020 # define S_IRWXO (S_IROTH | S_IWOTH | S_IXOTH)
26021 #endif
26022
26023 -/* S_IXUGO is a common extension to POSIX. */
26024 +/* Although S_IXUGO and S_IRWXUGO are not specified by POSIX and are
26025 + not implemented in GNU/Linux, some Gnulib-using apps use the macros. */
26026 #if !S_IXUGO
26027 # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
26028 #endif
26029 -
26030 #ifndef S_IRWXUGO
26031 # define S_IRWXUGO (S_IRWXU | S_IRWXG | S_IRWXO)
26032 #endif
26033 @@ -391,14 +391,44 @@ struct stat
26034 #endif
26035
26036
26037 +#if @GNULIB_MDA_CHMOD@
26038 +/* On native Windows, map 'chmod' to '_chmod', so that -loldnames is not
26039 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
26040 + platforms by defining GNULIB_NAMESPACE::chmod always. */
26041 +# if defined _WIN32 && !defined __CYGWIN__
26042 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26043 +# undef chmod
26044 +# define chmod _chmod
26045 +# endif
26046 +/* Need to cast, because in mingw the last argument is 'int mode'. */
26047 +_GL_CXXALIAS_MDA_CAST (chmod, int, (const char *filename, mode_t mode));
26048 +# else
26049 +_GL_CXXALIAS_SYS (chmod, int, (const char *filename, mode_t mode));
26050 +# endif
26051 +_GL_CXXALIASWARN (chmod);
26052 +#endif
26053 +
26054 +
26055 #if @GNULIB_FCHMODAT@
26056 -# if !@HAVE_FCHMODAT@
26057 +# if @REPLACE_FCHMODAT@
26058 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26059 +# undef fchmodat
26060 +# define fchmodat rpl_fchmodat
26061 +# endif
26062 +_GL_FUNCDECL_RPL (fchmodat, int,
26063 + (int fd, char const *file, mode_t mode, int flag)
26064 + _GL_ARG_NONNULL ((2)));
26065 +_GL_CXXALIAS_RPL (fchmodat, int,
26066 + (int fd, char const *file, mode_t mode, int flag));
26067 +# else
26068 +# if !@HAVE_FCHMODAT@
26069 _GL_FUNCDECL_SYS (fchmodat, int,
26070 (int fd, char const *file, mode_t mode, int flag)
26071 _GL_ARG_NONNULL ((2)));
26072 -# endif
26073 +# endif
26074 _GL_CXXALIAS_SYS (fchmodat, int,
26075 (int fd, char const *file, mode_t mode, int flag));
26076 +# endif
26077 _GL_CXXALIASWARN (fchmodat);
26078 #elif defined GNULIB_POSIXCHECK
26079 # undef fchmodat
26080 @@ -420,7 +450,9 @@ _GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf));
26081 # else
26082 _GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf));
26083 # endif
26084 +# if __GLIBC__ >= 2
26085 _GL_CXXALIASWARN (fstat);
26086 +# endif
26087 #elif @GNULIB_OVERRIDES_STRUCT_STAT@
26088 # undef fstat
26089 # define fstat fstat_used_without_requesting_gnulib_module_fstat
26090 @@ -443,18 +475,22 @@ _GL_WARN_ON_USE (fstat, "fstat has portability problems - "
26091 # define fstatat rpl_fstatat
26092 # endif
26093 _GL_FUNCDECL_RPL (fstatat, int,
26094 - (int fd, char const *name, struct stat *st, int flags)
26095 + (int fd, char const *restrict name, struct stat *restrict st,
26096 + int flags)
26097 _GL_ARG_NONNULL ((2, 3)));
26098 _GL_CXXALIAS_RPL (fstatat, int,
26099 - (int fd, char const *name, struct stat *st, int flags));
26100 + (int fd, char const *restrict name, struct stat *restrict st,
26101 + int flags));
26102 # else
26103 # if !@HAVE_FSTATAT@
26104 _GL_FUNCDECL_SYS (fstatat, int,
26105 - (int fd, char const *name, struct stat *st, int flags)
26106 + (int fd, char const *restrict name, struct stat *restrict st,
26107 + int flags)
26108 _GL_ARG_NONNULL ((2, 3)));
26109 # endif
26110 _GL_CXXALIAS_SYS (fstatat, int,
26111 - (int fd, char const *name, struct stat *st, int flags));
26112 + (int fd, char const *restrict name, struct stat *restrict st,
26113 + int flags));
26114 # endif
26115 _GL_CXXALIASWARN (fstatat);
26116 #elif @GNULIB_OVERRIDES_STRUCT_STAT@
26117 @@ -499,34 +535,32 @@ _GL_WARN_ON_USE (futimens, "futimens is not portable - "
26118 #endif
26119
26120
26121 +#if @GNULIB_GETUMASK@
26122 +# if !@HAVE_GETUMASK@
26123 +_GL_FUNCDECL_SYS (getumask, mode_t, (void));
26124 +# endif
26125 +_GL_CXXALIAS_SYS (getumask, mode_t, (void));
26126 +# if @HAVE_GETUMASK@
26127 +_GL_CXXALIASWARN (getumask);
26128 +# endif
26129 +#elif defined GNULIB_POSIXCHECK
26130 +# undef getumask
26131 +# if HAVE_RAW_DECL_GETUMASK
26132 +_GL_WARN_ON_USE (getumask, "getumask is not portable - "
26133 + "use gnulib module getumask for portability");
26134 +# endif
26135 +#endif
26136 +
26137 +
26138 #if @GNULIB_LCHMOD@
26139 /* Change the mode of FILENAME to MODE, without dereferencing it if FILENAME
26140 denotes a symbolic link. */
26141 -# if !@HAVE_LCHMOD@
26142 -/* The lchmod replacement follows symbolic links. Callers should take
26143 - this into account; lchmod should be applied only to arguments that
26144 - are known to not be symbolic links. On hosts that lack lchmod,
26145 - this can lead to race conditions between the check and the
26146 - invocation of lchmod, but we know of no workarounds that are
26147 - reliable in general. You might try requesting support for lchmod
26148 - from your operating system supplier. */
26149 -# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26150 -# define lchmod chmod
26151 -# endif
26152 -/* Need to cast, because on mingw, the second parameter of chmod is
26153 - int mode. */
26154 -_GL_CXXALIAS_RPL_CAST_1 (lchmod, chmod, int,
26155 - (const char *filename, mode_t mode));
26156 -# else
26157 -# if 0 /* assume already declared */
26158 +# if !@HAVE_LCHMOD@ || defined __hpux
26159 _GL_FUNCDECL_SYS (lchmod, int, (const char *filename, mode_t mode)
26160 _GL_ARG_NONNULL ((1)));
26161 -# endif
26162 -_GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode));
26163 # endif
26164 -# if @HAVE_LCHMOD@
26165 +_GL_CXXALIAS_SYS (lchmod, int, (const char *filename, mode_t mode));
26166 _GL_CXXALIASWARN (lchmod);
26167 -# endif
26168 #elif defined GNULIB_POSIXCHECK
26169 # undef lchmod
26170 # if HAVE_RAW_DECL_LCHMOD
26171 @@ -543,17 +577,21 @@ _GL_WARN_ON_USE (lchmod, "lchmod is unportable - "
26172 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26173 # define lstat stat
26174 # endif
26175 -_GL_CXXALIAS_RPL_1 (lstat, stat, int, (const char *name, struct stat *buf));
26176 +_GL_CXXALIAS_RPL_1 (lstat, stat, int,
26177 + (const char *restrict name, struct stat *restrict buf));
26178 # elif @REPLACE_LSTAT@
26179 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26180 # undef lstat
26181 # define lstat rpl_lstat
26182 # endif
26183 -_GL_FUNCDECL_RPL (lstat, int, (const char *name, struct stat *buf)
26184 - _GL_ARG_NONNULL ((1, 2)));
26185 -_GL_CXXALIAS_RPL (lstat, int, (const char *name, struct stat *buf));
26186 +_GL_FUNCDECL_RPL (lstat, int,
26187 + (const char *restrict name, struct stat *restrict buf)
26188 + _GL_ARG_NONNULL ((1, 2)));
26189 +_GL_CXXALIAS_RPL (lstat, int,
26190 + (const char *restrict name, struct stat *restrict buf));
26191 # else
26192 -_GL_CXXALIAS_SYS (lstat, int, (const char *name, struct stat *buf));
26193 +_GL_CXXALIAS_SYS (lstat, int,
26194 + (const char *restrict name, struct stat *restrict buf));
26195 # endif
26196 # if @HAVE_LSTAT@
26197 _GL_CXXALIASWARN (lstat);
26198 @@ -570,21 +608,20 @@ _GL_WARN_ON_USE (lstat, "lstat is unportable - "
26199 #endif
26200
26201
26202 -#if @REPLACE_MKDIR@
26203 -# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26204 -# undef mkdir
26205 -# define mkdir rpl_mkdir
26206 -# endif
26207 +#if @GNULIB_MKDIR@
26208 +# if @REPLACE_MKDIR@
26209 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26210 +# undef mkdir
26211 +# define mkdir rpl_mkdir
26212 +# endif
26213 _GL_FUNCDECL_RPL (mkdir, int, (char const *name, mode_t mode)
26214 - _GL_ARG_NONNULL ((1)));
26215 + _GL_ARG_NONNULL ((1)));
26216 _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode));
26217 -#else
26218 +# elif defined _WIN32 && !defined __CYGWIN__
26219 /* mingw's _mkdir() function has 1 argument, but we pass 2 arguments.
26220 Additionally, it declares _mkdir (and depending on compile flags, an
26221 alias mkdir), only in the nonstandard includes <direct.h> and <io.h>,
26222 which are included above. */
26223 -# if defined _WIN32 && ! defined __CYGWIN__
26224 -
26225 # if !GNULIB_defined_rpl_mkdir
26226 static int
26227 rpl_mkdir (char const *name, mode_t mode)
26228 @@ -593,16 +630,44 @@ rpl_mkdir (char const *name, mode_t mode)
26229 }
26230 # define GNULIB_defined_rpl_mkdir 1
26231 # endif
26232 -
26233 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26234 +# undef mkdir
26235 # define mkdir rpl_mkdir
26236 # endif
26237 _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode));
26238 # else
26239 _GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode));
26240 # endif
26241 -#endif
26242 _GL_CXXALIASWARN (mkdir);
26243 +#elif defined GNULIB_POSIXCHECK
26244 +# undef mkdir
26245 +# if HAVE_RAW_DECL_MKDIR
26246 +_GL_WARN_ON_USE (mkdir, "mkdir does not always support two parameters - "
26247 + "use gnulib module mkdir for portability");
26248 +# endif
26249 +#elif @GNULIB_MDA_MKDIR@
26250 +/* On native Windows, map 'mkdir' to '_mkdir', so that -loldnames is not
26251 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
26252 + platforms by defining GNULIB_NAMESPACE::mkdir always. */
26253 +# if defined _WIN32 && !defined __CYGWIN__
26254 +# if !GNULIB_defined_rpl_mkdir
26255 +static int
26256 +rpl_mkdir (char const *name, mode_t mode)
26257 +{
26258 + return _mkdir (name);
26259 +}
26260 +# define GNULIB_defined_rpl_mkdir 1
26261 +# endif
26262 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26263 +# undef mkdir
26264 +# define mkdir rpl_mkdir
26265 +# endif
26266 +_GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode));
26267 +# else
26268 +_GL_CXXALIAS_SYS (mkdir, int, (char const *name, mode_t mode));
26269 +# endif
26270 +_GL_CXXALIASWARN (mkdir);
26271 +#endif
26272
26273
26274 #if @GNULIB_MKDIRAT@
26275 @@ -648,11 +713,21 @@ _GL_WARN_ON_USE (mkfifo, "mkfifo is not portable - "
26276
26277
26278 #if @GNULIB_MKFIFOAT@
26279 -# if !@HAVE_MKFIFOAT@
26280 +# if @REPLACE_MKFIFOAT@
26281 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26282 +# undef mkfifoat
26283 +# define mkfifoat rpl_mkfifoat
26284 +# endif
26285 +_GL_FUNCDECL_RPL (mkfifoat, int, (int fd, char const *file, mode_t mode)
26286 + _GL_ARG_NONNULL ((2)));
26287 +_GL_CXXALIAS_RPL (mkfifoat, int, (int fd, char const *file, mode_t mode));
26288 +# else
26289 +# if !@HAVE_MKFIFOAT@
26290 _GL_FUNCDECL_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode)
26291 _GL_ARG_NONNULL ((2)));
26292 -# endif
26293 +# endif
26294 _GL_CXXALIAS_SYS (mkfifoat, int, (int fd, char const *file, mode_t mode));
26295 +# endif
26296 _GL_CXXALIASWARN (mkfifoat);
26297 #elif defined GNULIB_POSIXCHECK
26298 # undef mkfifoat
26299 @@ -691,13 +766,25 @@ _GL_WARN_ON_USE (mknod, "mknod is not portable - "
26300
26301
26302 #if @GNULIB_MKNODAT@
26303 -# if !@HAVE_MKNODAT@
26304 +# if @REPLACE_MKNODAT@
26305 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26306 +# undef mknodat
26307 +# define mknodat rpl_mknodat
26308 +# endif
26309 +_GL_FUNCDECL_RPL (mknodat, int,
26310 + (int fd, char const *file, mode_t mode, dev_t dev)
26311 + _GL_ARG_NONNULL ((2)));
26312 +_GL_CXXALIAS_RPL (mknodat, int,
26313 + (int fd, char const *file, mode_t mode, dev_t dev));
26314 +# else
26315 +# if !@HAVE_MKNODAT@
26316 _GL_FUNCDECL_SYS (mknodat, int,
26317 (int fd, char const *file, mode_t mode, dev_t dev)
26318 _GL_ARG_NONNULL ((2)));
26319 -# endif
26320 +# endif
26321 _GL_CXXALIAS_SYS (mknodat, int,
26322 (int fd, char const *file, mode_t mode, dev_t dev));
26323 +# endif
26324 _GL_CXXALIASWARN (mknodat);
26325 #elif defined GNULIB_POSIXCHECK
26326 # undef mknodat
26327 @@ -766,7 +853,7 @@ _GL_WARN_ON_USE (mknodat, "mknodat is not portable - "
26328 # define stat(name, st) rpl_stat (name, st)
26329 # endif /* !_LARGE_FILES */
26330 # endif /* !@GNULIB_OVERRIDES_STRUCT_STAT@ */
26331 -_GL_EXTERN_C int stat (const char *name, struct stat *buf)
26332 +_GL_EXTERN_C int stat (const char *restrict name, struct stat *restrict buf)
26333 _GL_ARG_NONNULL ((1, 2));
26334 # endif
26335 #elif @GNULIB_OVERRIDES_STRUCT_STAT@
26336 @@ -782,6 +869,24 @@ _GL_WARN_ON_USE (stat, "stat is unportable - "
26337 #endif
26338
26339
26340 +#if @GNULIB_MDA_UMASK@
26341 +/* On native Windows, map 'umask' to '_umask', so that -loldnames is not
26342 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
26343 + platforms by defining GNULIB_NAMESPACE::umask always. */
26344 +# if defined _WIN32 && !defined __CYGWIN__
26345 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26346 +# undef umask
26347 +# define umask _umask
26348 +# endif
26349 +/* Need to cast, because in mingw the last argument is 'int mode'. */
26350 +_GL_CXXALIAS_MDA_CAST (umask, mode_t, (mode_t mask));
26351 +# else
26352 +_GL_CXXALIAS_SYS (umask, mode_t, (mode_t mask));
26353 +# endif
26354 +_GL_CXXALIASWARN (umask);
26355 +#endif
26356 +
26357 +
26358 #if @GNULIB_UTIMENSAT@
26359 /* Use the rpl_ prefix also on Solaris <= 9, because on Solaris 9 our utimensat
26360 implementation relies on futimesat, which on Solaris 10 makes an invocation
26361
26362 diff --git a/autotools/gnulib/sys_time.in.h b/autotools/gnulib/sys_time.in.h
26363 index 5397688..87db1a8 100644
26364 --- a/autotools/gnulib/sys_time.in.h
26365 +++ b/autotools/gnulib/sys_time.in.h
26366 @@ -1,19 +1,19 @@
26367 /* Provide a more complete sys/time.h.
26368
26369 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
26370 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
26371
26372 - This program is free software; you can redistribute it and/or modify
26373 - it under the terms of the GNU General Public License as published by
26374 - the Free Software Foundation; either version 3, or (at your option)
26375 - any later version.
26376 + This file is free software: you can redistribute it and/or modify
26377 + it under the terms of the GNU Lesser General Public License as
26378 + published by the Free Software Foundation; either version 2.1 of the
26379 + License, or (at your option) any later version.
26380
26381 - This program is distributed in the hope that it will be useful,
26382 + This file is distributed in the hope that it will be useful,
26383 but WITHOUT ANY WARRANTY; without even the implied warranty of
26384 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26385 - GNU General Public License for more details.
26386 + GNU Lesser General Public License for more details.
26387
26388 - You should have received a copy of the GNU General Public License
26389 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
26390 + You should have received a copy of the GNU Lesser General Public License
26391 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
26392
26393 /* Written by Paul Eggert. */
26394
26395 @@ -112,8 +112,12 @@ _GL_CXXALIASWARN (gettimeofday);
26396 # if defined __cplusplus && defined GNULIB_NAMESPACE
26397 namespace GNULIB_NAMESPACE {
26398 typedef ::timeval
26399 -#undef timeval
26400 +# undef timeval
26401 timeval;
26402 +# if @REPLACE_STRUCT_TIMEVAL@
26403 +# define timeval rpl_timeval
26404 + typedef ::timeval timeval;
26405 +# endif
26406 }
26407 # endif
26408 #elif defined GNULIB_POSIXCHECK
26409 @@ -131,7 +135,7 @@ _GL_WARN_ON_USE (gettimeofday, "gettimeofday is unportable - "
26410 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26411 # undef close
26412 # define close close_used_without_including_unistd_h
26413 -# else
26414 +# elif !defined __clang__
26415 _GL_WARN_ON_USE (close,
26416 "close() used without including <unistd.h>");
26417 # endif
26418
26419 diff --git a/autotools/gnulib/sys_types.in.h b/autotools/gnulib/sys_types.in.h
26420 index 237e206..698e88d 100644
26421 --- a/autotools/gnulib/sys_types.in.h
26422 +++ b/autotools/gnulib/sys_types.in.h
26423 @@ -1,19 +1,19 @@
26424 /* Provide a more complete sys/types.h.
26425
26426 - Copyright (C) 2011-2019 Free Software Foundation, Inc.
26427 + Copyright (C) 2011-2022 Free Software Foundation, Inc.
26428
26429 - This program is free software; you can redistribute it and/or modify
26430 - it under the terms of the GNU General Public License as published by
26431 - the Free Software Foundation; either version 3, or (at your option)
26432 - any later version.
26433 + This file is free software: you can redistribute it and/or modify
26434 + it under the terms of the GNU Lesser General Public License as
26435 + published by the Free Software Foundation; either version 2.1 of the
26436 + License, or (at your option) any later version.
26437
26438 - This program is distributed in the hope that it will be useful,
26439 + This file is distributed in the hope that it will be useful,
26440 but WITHOUT ANY WARRANTY; without even the implied warranty of
26441 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26442 - GNU General Public License for more details.
26443 + GNU Lesser General Public License for more details.
26444
26445 - You should have received a copy of the GNU General Public License
26446 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
26447 + You should have received a copy of the GNU Lesser General Public License
26448 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
26449
26450 #if __GNUC__ >= 3
26451 @PRAGMA_SYSTEM_HEADER@
26452
26453 diff --git a/autotools/gnulib/time.in.h b/autotools/gnulib/time.in.h
26454 index dd3b212..6d4c771 100644
26455 --- a/autotools/gnulib/time.in.h
26456 +++ b/autotools/gnulib/time.in.h
26457 @@ -1,19 +1,19 @@
26458 /* A more-standard <time.h>.
26459
26460 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
26461 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
26462
26463 - This program is free software; you can redistribute it and/or modify
26464 - it under the terms of the GNU General Public License as published by
26465 - the Free Software Foundation; either version 3, or (at your option)
26466 - any later version.
26467 + This file is free software: you can redistribute it and/or modify
26468 + it under the terms of the GNU Lesser General Public License as
26469 + published by the Free Software Foundation; either version 2.1 of the
26470 + License, or (at your option) any later version.
26471
26472 - This program is distributed in the hope that it will be useful,
26473 + This file is distributed in the hope that it will be useful,
26474 but WITHOUT ANY WARRANTY; without even the implied warranty of
26475 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26476 - GNU General Public License for more details.
26477 + GNU Lesser General Public License for more details.
26478
26479 - You should have received a copy of the GNU General Public License
26480 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
26481 + You should have received a copy of the GNU Lesser General Public License
26482 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
26483
26484 #if __GNUC__ >= 3
26485 @PRAGMA_SYSTEM_HEADER@
26486 @@ -37,6 +37,12 @@
26487
26488 # define _@GUARD_PREFIX@_TIME_H
26489
26490 +/* mingw's <time.h> provides the functions asctime_r, ctime_r, gmtime_r,
26491 + localtime_r only if <unistd.h> or <pthread.h> has been included before. */
26492 +# if defined __MINGW32__
26493 +# include <unistd.h>
26494 +# endif
26495 +
26496 # @INCLUDE_NEXT@ @NEXT_TIME_H@
26497
26498 /* NetBSD 5.0 mis-defines NULL. */
26499 @@ -84,8 +90,8 @@ struct timespec
26500 # endif
26501
26502 # if !GNULIB_defined_struct_time_t_must_be_integral
26503 -/* Per http://austingroupbugs.net/view.php?id=327, POSIX requires
26504 - time_t to be an integer type, even though C99 permits floating
26505 +/* https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
26506 + requires time_t to be an integer type, even though C99 permits floating
26507 point. We don't know of any implementation that uses floating
26508 point, and it is much easier to write code that doesn't have to
26509 worry about that corner case, so we force the issue. */
26510 @@ -95,9 +101,39 @@ struct __time_t_must_be_integral {
26511 # define GNULIB_defined_struct_time_t_must_be_integral 1
26512 # endif
26513
26514 +/* Define TIME_UTC, a positive integer constant used for timespec_get(). */
26515 +# if ! @TIME_H_DEFINES_TIME_UTC@
26516 +# if !GNULIB_defined_TIME_UTC
26517 +# define TIME_UTC 1
26518 +# define GNULIB_defined_TIME_UTC 1
26519 +# endif
26520 +# endif
26521 +
26522 +/* Set *TS to the current time, and return BASE.
26523 + Upon failure, return 0. */
26524 +# if @GNULIB_TIMESPEC_GET@
26525 +# if ! @HAVE_TIMESPEC_GET@
26526 +_GL_FUNCDECL_SYS (timespec_get, int, (struct timespec *ts, int base)
26527 + _GL_ARG_NONNULL ((1)));
26528 +# endif
26529 +_GL_CXXALIAS_SYS (timespec_get, int, (struct timespec *ts, int base));
26530 +_GL_CXXALIASWARN (timespec_get);
26531 +# endif
26532 +
26533 +/* Set *TS to the current time resolution, and return BASE.
26534 + Upon failure, return 0. */
26535 +# if @GNULIB_TIMESPEC_GETRES@
26536 +# if ! @HAVE_TIMESPEC_GETRES@
26537 +_GL_FUNCDECL_SYS (timespec_getres, int, (struct timespec *ts, int base)
26538 + _GL_ARG_NONNULL ((1)));
26539 +# endif
26540 +_GL_CXXALIAS_SYS (timespec_getres, int, (struct timespec *ts, int base));
26541 +_GL_CXXALIASWARN (timespec_getres);
26542 +# endif
26543 +
26544 /* Sleep for at least RQTP seconds unless interrupted, If interrupted,
26545 return -1 and store the remaining time into RMTP. See
26546 - <http://www.opengroup.org/susv3xsh/nanosleep.html>. */
26547 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/nanosleep.html>. */
26548 # if @GNULIB_NANOSLEEP@
26549 # if @REPLACE_NANOSLEEP@
26550 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26551 @@ -129,10 +165,27 @@ _GL_CXXALIASWARN (nanosleep);
26552 # endif
26553 _GL_FUNCDECL_RPL (tzset, void, (void));
26554 _GL_CXXALIAS_RPL (tzset, void, (void));
26555 +# elif defined _WIN32 && !defined __CYGWIN__
26556 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26557 +# undef tzset
26558 +# define tzset _tzset
26559 +# endif
26560 +_GL_CXXALIAS_MDA (tzset, void, (void));
26561 # else
26562 -# if ! @HAVE_TZSET@
26563 -_GL_FUNCDECL_SYS (tzset, void, (void));
26564 +_GL_CXXALIAS_SYS (tzset, void, (void));
26565 +# endif
26566 +_GL_CXXALIASWARN (tzset);
26567 +# elif @GNULIB_MDA_TZSET@
26568 +/* On native Windows, map 'tzset' to '_tzset', so that -loldnames is not
26569 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
26570 + platforms by defining GNULIB_NAMESPACE::tzset always. */
26571 +# if defined _WIN32 && !defined __CYGWIN__
26572 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26573 +# undef tzset
26574 +# define tzset _tzset
26575 # endif
26576 +_GL_CXXALIAS_MDA (tzset, void, (void));
26577 +# else
26578 _GL_CXXALIAS_SYS (tzset, void, (void));
26579 # endif
26580 _GL_CXXALIASWARN (tzset);
26581 @@ -149,12 +202,14 @@ _GL_CXXALIAS_RPL (mktime, time_t, (struct tm *__tp));
26582 # else
26583 _GL_CXXALIAS_SYS (mktime, time_t, (struct tm *__tp));
26584 # endif
26585 +# if __GLIBC__ >= 2
26586 _GL_CXXALIASWARN (mktime);
26587 +# endif
26588 # endif
26589
26590 /* Convert TIMER to RESULT, assuming local time and UTC respectively. See
26591 - <http://www.opengroup.org/susv3xsh/localtime_r.html> and
26592 - <http://www.opengroup.org/susv3xsh/gmtime_r.html>. */
26593 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/localtime_r.html> and
26594 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/gmtime_r.html>. */
26595 # if @GNULIB_TIME_R@
26596 # if @REPLACE_LOCALTIME_R@
26597 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26598 @@ -203,8 +258,8 @@ _GL_CXXALIASWARN (gmtime_r);
26599 # endif
26600
26601 /* Convert TIMER to RESULT, assuming local time and UTC respectively. See
26602 - <http://www.opengroup.org/susv3xsh/localtime.html> and
26603 - <http://www.opengroup.org/susv3xsh/gmtime.html>. */
26604 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/localtime.html> and
26605 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/gmtime.html>. */
26606 # if @GNULIB_LOCALTIME@ || @REPLACE_LOCALTIME@
26607 # if @REPLACE_LOCALTIME@
26608 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26609 @@ -217,7 +272,9 @@ _GL_CXXALIAS_RPL (localtime, struct tm *, (time_t const *__timer));
26610 # else
26611 _GL_CXXALIAS_SYS (localtime, struct tm *, (time_t const *__timer));
26612 # endif
26613 +# if __GLIBC__ >= 2
26614 _GL_CXXALIASWARN (localtime);
26615 +# endif
26616 # endif
26617
26618 # if 0 || @REPLACE_GMTIME@
26619 @@ -237,7 +294,7 @@ _GL_CXXALIASWARN (gmtime);
26620
26621 /* Parse BUF as a timestamp, assuming FORMAT specifies its layout, and store
26622 the resulting broken-down time into TM. See
26623 - <http://www.opengroup.org/susv3xsh/strptime.html>. */
26624 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/strptime.html>. */
26625 # if @GNULIB_STRPTIME@
26626 # if ! @HAVE_STRPTIME@
26627 _GL_FUNCDECL_SYS (strptime, char *, (char const *restrict __buf,
26628 @@ -252,7 +309,7 @@ _GL_CXXALIASWARN (strptime);
26629 # endif
26630
26631 /* Convert *TP to a date and time string. See
26632 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/ctime.html>. */
26633 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/ctime.html>. */
26634 # if @GNULIB_CTIME@
26635 # if @REPLACE_CTIME@
26636 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26637 @@ -264,45 +321,90 @@ _GL_CXXALIAS_RPL (ctime, char *, (time_t const *__tp));
26638 # else
26639 _GL_CXXALIAS_SYS (ctime, char *, (time_t const *__tp));
26640 # endif
26641 +# if __GLIBC__ >= 2
26642 _GL_CXXALIASWARN (ctime);
26643 +# endif
26644 # endif
26645
26646 /* Convert *TP to a date and time string. See
26647 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html>. */
26648 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html>. */
26649 # if @GNULIB_STRFTIME@
26650 # if @REPLACE_STRFTIME@
26651 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
26652 # define strftime rpl_strftime
26653 # endif
26654 -_GL_FUNCDECL_RPL (strftime, size_t, (char *__buf, size_t __bufsize,
26655 - const char *__fmt, const struct tm *__tp)
26656 - _GL_ARG_NONNULL ((1, 3, 4)));
26657 -_GL_CXXALIAS_RPL (strftime, size_t, (char *__buf, size_t __bufsize,
26658 - const char *__fmt, const struct tm *__tp));
26659 +_GL_FUNCDECL_RPL (strftime, size_t,
26660 + (char *restrict __buf, size_t __bufsize,
26661 + const char *restrict __fmt, const struct tm *restrict __tp)
26662 + _GL_ARG_NONNULL ((1, 3, 4)));
26663 +_GL_CXXALIAS_RPL (strftime, size_t,
26664 + (char *restrict __buf, size_t __bufsize,
26665 + const char *restrict __fmt, const struct tm *restrict __tp));
26666 # else
26667 -_GL_CXXALIAS_SYS (strftime, size_t, (char *__buf, size_t __bufsize,
26668 - const char *__fmt, const struct tm *__tp));
26669 +_GL_CXXALIAS_SYS (strftime, size_t,
26670 + (char *restrict __buf, size_t __bufsize,
26671 + const char *restrict __fmt, const struct tm *restrict __tp));
26672 # endif
26673 +# if __GLIBC__ >= 2
26674 _GL_CXXALIASWARN (strftime);
26675 +# endif
26676 # endif
26677
26678 # if defined _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@
26679 +/* Functions that use a first-class time zone data type, instead of
26680 + relying on an implicit global time zone.
26681 + Inspired by NetBSD. */
26682 +
26683 +/* Represents a time zone.
26684 + (timezone_t) NULL stands for UTC. */
26685 typedef struct tm_zone *timezone_t;
26686 +
26687 +/* tzalloc (name)
26688 + Returns a time zone object for the given time zone NAME. This object
26689 + represents the time zone that other functions would use it the TZ
26690 + environment variable was set to NAME.
26691 + If NAME is NULL, the result represents the time zone that other functions
26692 + would use it the TZ environment variable was unset.
26693 + May return NULL if NAME is invalid (this is platform dependent) or
26694 + upon memory allocation failure. */
26695 _GL_FUNCDECL_SYS (tzalloc, timezone_t, (char const *__name));
26696 _GL_CXXALIAS_SYS (tzalloc, timezone_t, (char const *__name));
26697 +
26698 +/* tzfree (tz)
26699 + Frees a time zone object.
26700 + The argument must have been returned by tzalloc(). */
26701 _GL_FUNCDECL_SYS (tzfree, void, (timezone_t __tz));
26702 _GL_CXXALIAS_SYS (tzfree, void, (timezone_t __tz));
26703 +
26704 +/* localtime_rz (tz, &t, &result)
26705 + Converts an absolute time T to a broken-down time RESULT, assuming the
26706 + time zone TZ.
26707 + This function is like 'localtime_r', but relies on the argument TZ instead
26708 + of an implicit global time zone. */
26709 _GL_FUNCDECL_SYS (localtime_rz, struct tm *,
26710 (timezone_t __tz, time_t const *restrict __timer,
26711 struct tm *restrict __result) _GL_ARG_NONNULL ((2, 3)));
26712 _GL_CXXALIAS_SYS (localtime_rz, struct tm *,
26713 (timezone_t __tz, time_t const *restrict __timer,
26714 struct tm *restrict __result));
26715 +
26716 +/* mktime_z (tz, &tm)
26717 + Normalizes the broken-down time TM and converts it to an absolute time,
26718 + assuming the time zone TZ. Returns the absolute time.
26719 + This function is like 'mktime', but relies on the argument TZ instead
26720 + of an implicit global time zone. */
26721 _GL_FUNCDECL_SYS (mktime_z, time_t,
26722 - (timezone_t __tz, struct tm *restrict __result)
26723 + (timezone_t __tz, struct tm *restrict __tm)
26724 _GL_ARG_NONNULL ((2)));
26725 _GL_CXXALIAS_SYS (mktime_z, time_t,
26726 - (timezone_t __tz, struct tm *restrict __result));
26727 + (timezone_t __tz, struct tm *restrict __tm));
26728 +
26729 +/* Time zone abbreviation strings (returned by 'localtime_rz' or 'mktime_z'
26730 + in the 'tm_zone' member of 'struct tm') are valid as long as
26731 + - the 'struct tm' argument is not destroyed or overwritten,
26732 + and
26733 + - the 'timezone_t' argument is not freed through tzfree(). */
26734 +
26735 # endif
26736
26737 /* Convert TM to a time_t value, assuming UTC. */
26738 @@ -333,17 +435,17 @@ _GL_WARN_ON_USE (asctime, "asctime can overrun buffers in some cases - "
26739 # endif
26740 # if defined GNULIB_POSIXCHECK
26741 # undef asctime_r
26742 -_GL_WARN_ON_USE (asctime, "asctime_r can overrun buffers in some cases - "
26743 +_GL_WARN_ON_USE (asctime_r, "asctime_r can overrun buffers in some cases - "
26744 "better use strftime (or even sprintf) instead");
26745 # endif
26746 # if defined GNULIB_POSIXCHECK
26747 # undef ctime
26748 -_GL_WARN_ON_USE (asctime, "ctime can overrun buffers in some cases - "
26749 +_GL_WARN_ON_USE (ctime, "ctime can overrun buffers in some cases - "
26750 "better use strftime (or even sprintf) instead");
26751 # endif
26752 # if defined GNULIB_POSIXCHECK
26753 # undef ctime_r
26754 -_GL_WARN_ON_USE (asctime, "ctime_r can overrun buffers in some cases - "
26755 +_GL_WARN_ON_USE (ctime_r, "ctime_r can overrun buffers in some cases - "
26756 "better use strftime (or even sprintf) instead");
26757 # endif
26758
26759
26760 diff --git a/autotools/gnulib/timespec.c b/autotools/gnulib/timespec.c
26761 index 2b6098e..9d136cb 100644
26762 --- a/autotools/gnulib/timespec.c
26763 +++ b/autotools/gnulib/timespec.c
26764 @@ -1,3 +1,21 @@
26765 +/* Inline functions for <timespec.h>.
26766 +
26767 + Copyright (C) 2012-2022 Free Software Foundation, Inc.
26768 +
26769 + This file is free software: you can redistribute it and/or modify
26770 + it under the terms of the GNU Lesser General Public License as
26771 + published by the Free Software Foundation, either version 3 of the
26772 + License, or (at your option) any later version.
26773 +
26774 + This file is distributed in the hope that it will be useful,
26775 + but WITHOUT ANY WARRANTY; without even the implied warranty of
26776 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26777 + GNU Lesser General Public License for more details.
26778 +
26779 + You should have received a copy of the GNU Lesser General Public License
26780 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
26781 +
26782 #include <config.h>
26783 +
26784 #define _GL_TIMESPEC_INLINE _GL_EXTERN_INLINE
26785 #include "timespec.h"
26786
26787 diff --git a/autotools/gnulib/timespec.h b/autotools/gnulib/timespec.h
26788 index 26f1bc1..9e35828 100644
26789 --- a/autotools/gnulib/timespec.h
26790 +++ b/autotools/gnulib/timespec.h
26791 @@ -1,19 +1,19 @@
26792 /* timespec -- System time interface
26793
26794 - Copyright (C) 2000, 2002, 2004-2005, 2007, 2009-2019 Free Software
26795 + Copyright (C) 2000, 2002, 2004-2005, 2007, 2009-2022 Free Software
26796 Foundation, Inc.
26797
26798 - This program is free software: you can redistribute it and/or modify
26799 - it under the terms of the GNU General Public License as published by
26800 - the Free Software Foundation; either version 3 of the License, or
26801 - (at your option) any later version.
26802 + This file is free software: you can redistribute it and/or modify
26803 + it under the terms of the GNU Lesser General Public License as
26804 + published by the Free Software Foundation, either version 3 of the
26805 + License, or (at your option) any later version.
26806
26807 - This program is distributed in the hope that it will be useful,
26808 + This file is distributed in the hope that it will be useful,
26809 but WITHOUT ANY WARRANTY; without even the implied warranty of
26810 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26811 - GNU General Public License for more details.
26812 + GNU Lesser General Public License for more details.
26813
26814 - You should have received a copy of the GNU General Public License
26815 + You should have received a copy of the GNU Lesser General Public License
26816 along with this program. If not, see <https://www.gnu.org/licenses/>. */
26817
26818 #if ! defined TIMESPEC_H
26819 @@ -34,7 +34,6 @@ extern "C" {
26820 #endif
26821
26822 #include "arg-nonnull.h"
26823 -#include "verify.h"
26824
26825 /* Inverse resolution of timespec timestamps (in units per second),
26826 and log base 10 of the inverse resolution. */
26827 @@ -59,46 +58,12 @@ make_timespec (time_t s, long int ns)
26828 return r;
26829 }
26830
26831 -/* Return negative, zero, positive if A < B, A == B, A > B, respectively.
26832 -
26833 - For each timestamp T, this code assumes that either:
26834 -
26835 - * T.tv_nsec is in the range 0..999999999; or
26836 - * T.tv_sec corresponds to a valid leap second on a host that supports
26837 - leap seconds, and T.tv_nsec is in the range 1000000000..1999999999; or
26838 - * T.tv_sec is the minimum time_t value and T.tv_nsec is -1; or
26839 - T.tv_sec is the maximum time_t value and T.tv_nsec is 2000000000.
26840 - This allows for special struct timespec values that are less or
26841 - greater than all possible valid timestamps.
26842 -
26843 - In all these cases, it is safe to subtract two tv_nsec values and
26844 - convert the result to integer without worrying about overflow on
26845 - any platform of interest to the GNU project, since all such
26846 - platforms have 32-bit int or wider.
26847 -
26848 - Replacing "a.tv_nsec - b.tv_nsec" with something like
26849 - "a.tv_nsec < b.tv_nsec ? -1 : a.tv_nsec > b.tv_nsec" would cause
26850 - this function to work in some cases where the above assumption is
26851 - violated, but not in all cases (e.g., a.tv_sec==1, a.tv_nsec==-2,
26852 - b.tv_sec==0, b.tv_nsec==999999999) and is arguably not worth the
26853 - extra instructions. Using a subtraction has the advantage of
26854 - detecting some invalid cases on platforms that detect integer
26855 - overflow. */
26856 +/* Return negative, zero, positive if A < B, A == B, A > B, respectively. */
26857
26858 _GL_TIMESPEC_INLINE int _GL_ATTRIBUTE_PURE
26859 timespec_cmp (struct timespec a, struct timespec b)
26860 {
26861 - if (a.tv_sec < b.tv_sec)
26862 - return -1;
26863 - if (a.tv_sec > b.tv_sec)
26864 - return 1;
26865 -
26866 - /* Pacify gcc -Wstrict-overflow (bleeding-edge circa 2017-10-02). See:
26867 - https://lists.gnu.org/r/bug-gnulib/2017-10/msg00006.html */
26868 - assume (-1 <= a.tv_nsec && a.tv_nsec <= 2 * TIMESPEC_HZ);
26869 - assume (-1 <= b.tv_nsec && b.tv_nsec <= 2 * TIMESPEC_HZ);
26870 -
26871 - return a.tv_nsec - b.tv_nsec;
26872 + return 2 * _GL_CMP (a.tv_sec, b.tv_sec) + _GL_CMP (a.tv_nsec, b.tv_nsec);
26873 }
26874
26875 /* Return -1, 0, 1, depending on the sign of A. A.tv_nsec must be
26876 @@ -106,7 +71,7 @@ timespec_cmp (struct timespec a, struct timespec b)
26877 _GL_TIMESPEC_INLINE int _GL_ATTRIBUTE_PURE
26878 timespec_sign (struct timespec a)
26879 {
26880 - return a.tv_sec < 0 ? -1 : a.tv_sec || a.tv_nsec;
26881 + return _GL_CMP (a.tv_sec, 0) + (!a.tv_sec & !!a.tv_nsec);
26882 }
26883
26884 struct timespec timespec_add (struct timespec, struct timespec)
26885 @@ -123,6 +88,7 @@ timespectod (struct timespec a)
26886 return a.tv_sec + a.tv_nsec / 1e9;
26887 }
26888
26889 +long int gettime_res (void);
26890 struct timespec current_timespec (void);
26891 void gettime (struct timespec *) _GL_ARG_NONNULL ((1));
26892 int settime (struct timespec const *) _GL_ARG_NONNULL ((1));
26893
26894 diff --git a/autotools/gnulib/unistd--.h b/autotools/gnulib/unistd--.h
26895 index 1268854..d395f7e 100644
26896 --- a/autotools/gnulib/unistd--.h
26897 +++ b/autotools/gnulib/unistd--.h
26898 @@ -1,10 +1,10 @@
26899 /* Like unistd.h, but redefine some names to avoid glitches.
26900
26901 - Copyright (C) 2005, 2009-2019 Free Software Foundation, Inc.
26902 + Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc.
26903
26904 This program is free software: you can redistribute it and/or modify
26905 it under the terms of the GNU General Public License as published by
26906 - the Free Software Foundation; either version 3 of the License, or
26907 + the Free Software Foundation, either version 3 of the License, or
26908 (at your option) any later version.
26909
26910 This program is distributed in the hope that it will be useful,
26911
26912 diff --git a/autotools/gnulib/unistd-safer.h b/autotools/gnulib/unistd-safer.h
26913 index 8eebffc..db82c85 100644
26914 --- a/autotools/gnulib/unistd-safer.h
26915 +++ b/autotools/gnulib/unistd-safer.h
26916 @@ -1,10 +1,10 @@
26917 /* Invoke unistd-like functions, but avoid some glitches.
26918
26919 - Copyright (C) 2001, 2003, 2005, 2009-2019 Free Software Foundation, Inc.
26920 + Copyright (C) 2001, 2003, 2005, 2009-2022 Free Software Foundation, Inc.
26921
26922 This program is free software: you can redistribute it and/or modify
26923 it under the terms of the GNU General Public License as published by
26924 - the Free Software Foundation; either version 3 of the License, or
26925 + the Free Software Foundation, either version 3 of the License, or
26926 (at your option) any later version.
26927
26928 This program is distributed in the hope that it will be useful,
26929
26930 diff --git a/autotools/gnulib/unistd.c b/autotools/gnulib/unistd.c
26931 index 72bad1c..95978e6 100644
26932 --- a/autotools/gnulib/unistd.c
26933 +++ b/autotools/gnulib/unistd.c
26934 @@ -1,4 +1,22 @@
26935 +/* Inline functions for <unistd.h>.
26936 +
26937 + Copyright (C) 2012-2022 Free Software Foundation, Inc.
26938 +
26939 + This file is free software: you can redistribute it and/or modify
26940 + it under the terms of the GNU Lesser General Public License as
26941 + published by the Free Software Foundation; either version 2.1 of the
26942 + License, or (at your option) any later version.
26943 +
26944 + This file is distributed in the hope that it will be useful,
26945 + but WITHOUT ANY WARRANTY; without even the implied warranty of
26946 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26947 + GNU Lesser General Public License for more details.
26948 +
26949 + You should have received a copy of the GNU Lesser General Public License
26950 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
26951 +
26952 #include <config.h>
26953 +
26954 #define _GL_UNISTD_INLINE _GL_EXTERN_INLINE
26955 #include "unistd.h"
26956 typedef int dummy;
26957
26958 diff --git a/autotools/gnulib/unistd.in.h b/autotools/gnulib/unistd.in.h
26959 index 7778d25..57df09e 100644
26960 --- a/autotools/gnulib/unistd.in.h
26961 +++ b/autotools/gnulib/unistd.in.h
26962 @@ -1,18 +1,18 @@
26963 /* Substitute for and wrapper around <unistd.h>.
26964 - Copyright (C) 2003-2019 Free Software Foundation, Inc.
26965 + Copyright (C) 2003-2022 Free Software Foundation, Inc.
26966
26967 - This program is free software; you can redistribute it and/or modify
26968 - it under the terms of the GNU General Public License as published by
26969 - the Free Software Foundation; either version 3, or (at your option)
26970 - any later version.
26971 + This file is free software: you can redistribute it and/or modify
26972 + it under the terms of the GNU Lesser General Public License as
26973 + published by the Free Software Foundation; either version 2.1 of the
26974 + License, or (at your option) any later version.
26975
26976 - This program is distributed in the hope that it will be useful,
26977 + This file is distributed in the hope that it will be useful,
26978 but WITHOUT ANY WARRANTY; without even the implied warranty of
26979 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26980 - GNU General Public License for more details.
26981 + GNU Lesser General Public License for more details.
26982
26983 - You should have received a copy of the GNU General Public License
26984 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
26985 + You should have received a copy of the GNU Lesser General Public License
26986 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
26987
26988 #ifndef _@GUARD_PREFIX@_UNISTD_H
26989
26990 @@ -21,7 +21,7 @@
26991 #endif
26992 @PRAGMA_COLUMNS@
26993
26994 -#ifdef _GL_INCLUDING_UNISTD_H
26995 +#if @HAVE_UNISTD_H@ && defined _GL_INCLUDING_UNISTD_H
26996 /* Special invocation convention:
26997 - On Mac OS X 10.3.9 we have a sequence of nested includes
26998 <unistd.h> -> <signal.h> -> <pthread.h> -> <unistd.h>
26999 @@ -52,7 +52,10 @@
27000 #define _@GUARD_PREFIX@_UNISTD_H
27001
27002 /* NetBSD 5.0 mis-defines NULL. Also get size_t. */
27003 -#include <stddef.h>
27004 +/* But avoid namespace pollution on glibc systems. */
27005 +#ifndef __GLIBC__
27006 +# include <stddef.h>
27007 +#endif
27008
27009 /* mingw doesn't define the SEEK_* or *_FILENO macros in <unistd.h>. */
27010 /* MSVC declares 'unlink' in <stdio.h>, not in <unistd.h>. We must include
27011 @@ -90,20 +93,18 @@
27012 # undef __need_system_stdlib_h
27013 #endif
27014
27015 -/* Native Windows platforms declare chdir, getcwd, rmdir in
27016 +/* Native Windows platforms declare _chdir, _getcwd, _rmdir in
27017 <io.h> and/or <direct.h>, not in <unistd.h>.
27018 - They also declare access(), chmod(), close(), dup(), dup2(), isatty(),
27019 - lseek(), read(), unlink(), write() in <io.h>. */
27020 -#if ((@GNULIB_CHDIR@ || @GNULIB_GETCWD@ || @GNULIB_RMDIR@ \
27021 - || defined GNULIB_POSIXCHECK) \
27022 - && (defined _WIN32 && ! defined __CYGWIN__))
27023 -# include <io.h> /* mingw32, mingw64 */
27024 -# include <direct.h> /* mingw64, MSVC 9 */
27025 -#elif (@GNULIB_CLOSE@ || @GNULIB_DUP@ || @GNULIB_DUP2@ || @GNULIB_ISATTY@ \
27026 - || @GNULIB_LSEEK@ || @GNULIB_READ@ || @GNULIB_UNLINK@ || @GNULIB_WRITE@ \
27027 - || defined GNULIB_POSIXCHECK) \
27028 - && (defined _WIN32 && ! defined __CYGWIN__)
27029 + They also declare _access(), _chmod(), _close(), _dup(), _dup2(), _isatty(),
27030 + _lseek(), _read(), _unlink(), _write() in <io.h>. */
27031 +#if defined _WIN32 && !defined __CYGWIN__
27032 # include <io.h>
27033 +# include <direct.h>
27034 +#endif
27035 +
27036 +/* Native Windows platforms declare _execl*, _execv* in <process.h>. */
27037 +#if defined _WIN32 && !defined __CYGWIN__
27038 +# include <process.h>
27039 #endif
27040
27041 /* AIX and OSF/1 5.1 declare getdomainname in <netdb.h>, not in <unistd.h>.
27042 @@ -115,6 +116,17 @@
27043 # include <netdb.h>
27044 #endif
27045
27046 +/* Mac OS X 10.13, Solaris 11.4, and Android 9.0 declare getentropy in
27047 + <sys/random.h>, not in <unistd.h>. */
27048 +/* But avoid namespace pollution on glibc systems. */
27049 +#if (@GNULIB_GETENTROPY@ || defined GNULIB_POSIXCHECK) \
27050 + && ((defined __APPLE__ && defined __MACH__) || defined __sun \
27051 + || defined __ANDROID__) \
27052 + && @UNISTD_H_HAVE_SYS_RANDOM_H@ \
27053 + && !defined __GLIBC__
27054 +# include <sys/random.h>
27055 +#endif
27056 +
27057 /* Android 4.3 declares fchownat in <sys/stat.h>, not in <unistd.h>. */
27058 /* But avoid namespace pollution on glibc systems. */
27059 #if (@GNULIB_FCHOWNAT@ || defined GNULIB_POSIXCHECK) && defined __ANDROID__ \
27060 @@ -124,17 +136,8 @@
27061
27062 /* MSVC defines off_t in <sys/types.h>.
27063 May also define off_t to a 64-bit type on native Windows. */
27064 -#if !@HAVE_UNISTD_H@ || @WINDOWS_64_BIT_OFF_T@
27065 -/* Get off_t. */
27066 -# include <sys/types.h>
27067 -#endif
27068 -
27069 -#if (@GNULIB_READ@ || @GNULIB_WRITE@ \
27070 - || @GNULIB_READLINK@ || @GNULIB_READLINKAT@ \
27071 - || @GNULIB_PREAD@ || @GNULIB_PWRITE@ || defined GNULIB_POSIXCHECK)
27072 -/* Get ssize_t. */
27073 -# include <sys/types.h>
27074 -#endif
27075 +/* Get off_t, ssize_t, mode_t. */
27076 +#include <sys/types.h>
27077
27078 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
27079
27080 @@ -144,7 +147,7 @@
27081
27082
27083 /* Get getopt(), optarg, optind, opterr, optopt. */
27084 -#if @GNULIB_UNISTD_H_GETOPT@ && !defined _GL_SYSTEM_GETOPT
27085 +#if @GNULIB_GETOPT_POSIX@ && @GNULIB_UNISTD_H_GETOPT@ && !defined _GL_SYSTEM_GETOPT
27086 # include <getopt-cdefs.h>
27087 # include <getopt-pfx-core.h>
27088 #endif
27089 @@ -256,15 +259,61 @@ _GL_INLINE_HEADER_BEGIN
27090 /* Declare overridden functions. */
27091
27092
27093 -#if defined GNULIB_POSIXCHECK
27094 +#if @GNULIB_ACCESS@
27095 +# if @REPLACE_ACCESS@
27096 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27097 +# undef access
27098 +# define access rpl_access
27099 +# endif
27100 +_GL_FUNCDECL_RPL (access, int, (const char *file, int mode)
27101 + _GL_ARG_NONNULL ((1)));
27102 +_GL_CXXALIAS_RPL (access, int, (const char *file, int mode));
27103 +# elif defined _WIN32 && !defined __CYGWIN__
27104 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27105 +# undef access
27106 +# define access _access
27107 +# endif
27108 +_GL_CXXALIAS_MDA (access, int, (const char *file, int mode));
27109 +# else
27110 +_GL_CXXALIAS_SYS (access, int, (const char *file, int mode));
27111 +# endif
27112 +_GL_CXXALIASWARN (access);
27113 +#elif defined GNULIB_POSIXCHECK
27114 +# undef access
27115 +# if HAVE_RAW_DECL_ACCESS
27116 /* The access() function is a security risk. */
27117 -_GL_WARN_ON_USE (access, "the access function is a security risk - "
27118 +_GL_WARN_ON_USE (access, "access does not always support X_OK - "
27119 + "use gnulib module access for portability; "
27120 + "also, this function is a security risk - "
27121 "use the gnulib module faccessat instead");
27122 +# endif
27123 +#elif @GNULIB_MDA_ACCESS@
27124 +/* On native Windows, map 'access' to '_access', so that -loldnames is not
27125 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27126 + platforms by defining GNULIB_NAMESPACE::access always. */
27127 +# if defined _WIN32 && !defined __CYGWIN__
27128 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27129 +# undef access
27130 +# define access _access
27131 +# endif
27132 +_GL_CXXALIAS_MDA (access, int, (const char *file, int mode));
27133 +# else
27134 +_GL_CXXALIAS_SYS (access, int, (const char *file, int mode));
27135 +# endif
27136 +_GL_CXXALIASWARN (access);
27137 #endif
27138
27139
27140 #if @GNULIB_CHDIR@
27141 +# if defined _WIN32 && !defined __CYGWIN__
27142 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27143 +# undef chdir
27144 +# define chdir _chdir
27145 +# endif
27146 +_GL_CXXALIAS_MDA (chdir, int, (const char *file));
27147 +# else
27148 _GL_CXXALIAS_SYS (chdir, int, (const char *file) _GL_ARG_NONNULL ((1)));
27149 +# endif
27150 _GL_CXXALIASWARN (chdir);
27151 #elif defined GNULIB_POSIXCHECK
27152 # undef chdir
27153 @@ -272,6 +321,20 @@ _GL_CXXALIASWARN (chdir);
27154 _GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - "
27155 "use gnulib module chdir for portability");
27156 # endif
27157 +#elif @GNULIB_MDA_CHDIR@
27158 +/* On native Windows, map 'chdir' to '_chdir', so that -loldnames is not
27159 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27160 + platforms by defining GNULIB_NAMESPACE::chdir always. */
27161 +# if defined _WIN32 && !defined __CYGWIN__
27162 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27163 +# undef chdir
27164 +# define chdir _chdir
27165 +# endif
27166 +_GL_CXXALIAS_MDA (chdir, int, (const char *file));
27167 +# else
27168 +_GL_CXXALIAS_SYS (chdir, int, (const char *file) _GL_ARG_NONNULL ((1)));
27169 +# endif
27170 +_GL_CXXALIASWARN (chdir);
27171 #endif
27172
27173
27174 @@ -280,7 +343,7 @@ _GL_WARN_ON_USE (chown, "chdir is not always in <unistd.h> - "
27175 to GID (if GID is not -1). Follow symbolic links.
27176 Return 0 if successful, otherwise -1 and errno set.
27177 See the POSIX:2008 specification
27178 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/chown.html. */
27179 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/chown.html. */
27180 # if @REPLACE_CHOWN@
27181 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27182 # undef chown
27183 @@ -316,6 +379,12 @@ _GL_WARN_ON_USE (chown, "chown fails to follow symlinks on some systems and "
27184 # endif
27185 _GL_FUNCDECL_RPL (close, int, (int fd));
27186 _GL_CXXALIAS_RPL (close, int, (int fd));
27187 +# elif defined _WIN32 && !defined __CYGWIN__
27188 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27189 +# undef close
27190 +# define close _close
27191 +# endif
27192 +_GL_CXXALIAS_MDA (close, int, (int fd));
27193 # else
27194 _GL_CXXALIAS_SYS (close, int, (int fd));
27195 # endif
27196 @@ -328,6 +397,53 @@ _GL_CXXALIASWARN (close);
27197 /* Assume close is always declared. */
27198 _GL_WARN_ON_USE (close, "close does not portably work on sockets - "
27199 "use gnulib module close for portability");
27200 +#elif @GNULIB_MDA_CLOSE@
27201 +/* On native Windows, map 'close' to '_close', so that -loldnames is not
27202 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27203 + platforms by defining GNULIB_NAMESPACE::close always. */
27204 +# if defined _WIN32 && !defined __CYGWIN__
27205 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27206 +# undef close
27207 +# define close _close
27208 +# endif
27209 +_GL_CXXALIAS_MDA (close, int, (int fd));
27210 +# else
27211 +_GL_CXXALIAS_SYS (close, int, (int fd));
27212 +# endif
27213 +_GL_CXXALIASWARN (close);
27214 +#endif
27215 +
27216 +
27217 +#if @GNULIB_COPY_FILE_RANGE@
27218 +# if @REPLACE_COPY_FILE_RANGE@
27219 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27220 +# undef copy_file_range
27221 +# define copy_file_range rpl_copy_file_range
27222 +# endif
27223 +_GL_FUNCDECL_RPL (copy_file_range, ssize_t, (int ifd, off_t *ipos,
27224 + int ofd, off_t *opos,
27225 + size_t len, unsigned flags));
27226 +_GL_CXXALIAS_RPL (copy_file_range, ssize_t, (int ifd, off_t *ipos,
27227 + int ofd, off_t *opos,
27228 + size_t len, unsigned flags));
27229 +# else
27230 +# if !@HAVE_COPY_FILE_RANGE@
27231 +_GL_FUNCDECL_SYS (copy_file_range, ssize_t, (int ifd, off_t *ipos,
27232 + int ofd, off_t *opos,
27233 + size_t len, unsigned flags));
27234 +# endif
27235 +_GL_CXXALIAS_SYS (copy_file_range, ssize_t, (int ifd, off_t *ipos,
27236 + int ofd, off_t *opos,
27237 + size_t len, unsigned flags));
27238 +# endif
27239 +_GL_CXXALIASWARN (copy_file_range);
27240 +#elif defined GNULIB_POSIXCHECK
27241 +# undef copy_file_range
27242 +# if HAVE_RAW_DECL_COPY_FILE_RANGE
27243 +_GL_WARN_ON_USE (copy_file_range,
27244 + "copy_file_range is unportable - "
27245 + "use gnulib module copy_file_range for portability");
27246 +# endif
27247 #endif
27248
27249
27250 @@ -338,6 +454,12 @@ _GL_WARN_ON_USE (close, "close does not portably work on sockets - "
27251 # endif
27252 _GL_FUNCDECL_RPL (dup, int, (int oldfd));
27253 _GL_CXXALIAS_RPL (dup, int, (int oldfd));
27254 +# elif defined _WIN32 && !defined __CYGWIN__
27255 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27256 +# undef dup
27257 +# define dup _dup
27258 +# endif
27259 +_GL_CXXALIAS_MDA (dup, int, (int oldfd));
27260 # else
27261 _GL_CXXALIAS_SYS (dup, int, (int oldfd));
27262 # endif
27263 @@ -348,6 +470,20 @@ _GL_CXXALIASWARN (dup);
27264 _GL_WARN_ON_USE (dup, "dup is unportable - "
27265 "use gnulib module dup for portability");
27266 # endif
27267 +#elif @GNULIB_MDA_DUP@
27268 +/* On native Windows, map 'dup' to '_dup', so that -loldnames is not
27269 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27270 + platforms by defining GNULIB_NAMESPACE::dup always. */
27271 +# if defined _WIN32 && !defined __CYGWIN__
27272 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27273 +# undef dup
27274 +# define dup _dup
27275 +# endif
27276 +_GL_CXXALIAS_MDA (dup, int, (int oldfd));
27277 +# else
27278 +_GL_CXXALIAS_SYS (dup, int, (int oldfd));
27279 +# endif
27280 +_GL_CXXALIASWARN (dup);
27281 #endif
27282
27283
27284 @@ -356,17 +492,20 @@ _GL_WARN_ON_USE (dup, "dup is unportable - "
27285 NEWFD = OLDFD, otherwise close NEWFD first if it is open.
27286 Return newfd if successful, otherwise -1 and errno set.
27287 See the POSIX:2008 specification
27288 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/dup2.html>. */
27289 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/dup2.html>. */
27290 # if @REPLACE_DUP2@
27291 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27292 # define dup2 rpl_dup2
27293 # endif
27294 _GL_FUNCDECL_RPL (dup2, int, (int oldfd, int newfd));
27295 _GL_CXXALIAS_RPL (dup2, int, (int oldfd, int newfd));
27296 -# else
27297 -# if !@HAVE_DUP2@
27298 -_GL_FUNCDECL_SYS (dup2, int, (int oldfd, int newfd));
27299 +# elif defined _WIN32 && !defined __CYGWIN__
27300 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27301 +# undef dup2
27302 +# define dup2 _dup2
27303 # endif
27304 +_GL_CXXALIAS_MDA (dup2, int, (int oldfd, int newfd));
27305 +# else
27306 _GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd));
27307 # endif
27308 _GL_CXXALIASWARN (dup2);
27309 @@ -376,6 +515,20 @@ _GL_CXXALIASWARN (dup2);
27310 _GL_WARN_ON_USE (dup2, "dup2 is unportable - "
27311 "use gnulib module dup2 for portability");
27312 # endif
27313 +#elif @GNULIB_MDA_DUP2@
27314 +/* On native Windows, map 'dup2' to '_dup2', so that -loldnames is not
27315 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27316 + platforms by defining GNULIB_NAMESPACE::dup2 always. */
27317 +# if defined _WIN32 && !defined __CYGWIN__
27318 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27319 +# undef dup2
27320 +# define dup2 _dup2
27321 +# endif
27322 +_GL_CXXALIAS_MDA (dup2, int, (int oldfd, int newfd));
27323 +# else
27324 +_GL_CXXALIAS_SYS (dup2, int, (int oldfd, int newfd));
27325 +# endif
27326 +_GL_CXXALIASWARN (dup2);
27327 #endif
27328
27329
27330 @@ -476,6 +629,282 @@ _GL_WARN_ON_USE (euidaccess, "euidaccess is unportable - "
27331 #endif
27332
27333
27334 +#if @GNULIB_EXECL@
27335 +# if @REPLACE_EXECL@
27336 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27337 +# undef execl
27338 +# define execl rpl_execl
27339 +# endif
27340 +_GL_FUNCDECL_RPL (execl, int, (const char *program, const char *arg, ...)
27341 + _GL_ARG_NONNULL ((1)));
27342 +_GL_CXXALIAS_RPL (execl, int, (const char *program, const char *arg, ...));
27343 +# else
27344 +_GL_CXXALIAS_SYS (execl, int, (const char *program, const char *arg, ...));
27345 +# endif
27346 +_GL_CXXALIASWARN (execl);
27347 +#elif defined GNULIB_POSIXCHECK
27348 +# undef execl
27349 +# if HAVE_RAW_DECL_EXECL
27350 +_GL_WARN_ON_USE (execl, "execl behaves very differently on mingw - "
27351 + "use gnulib module execl for portability");
27352 +# endif
27353 +#elif @GNULIB_MDA_EXECL@
27354 +/* On native Windows, map 'execl' to '_execl', so that -loldnames is not
27355 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27356 + platforms by defining GNULIB_NAMESPACE::execl always. */
27357 +# if defined _WIN32 && !defined __CYGWIN__
27358 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27359 +# undef execl
27360 +# define execl _execl
27361 +# endif
27362 +_GL_CXXALIAS_MDA (execl, intptr_t, (const char *program, const char *arg, ...));
27363 +# else
27364 +_GL_CXXALIAS_SYS (execl, int, (const char *program, const char *arg, ...));
27365 +# endif
27366 +_GL_CXXALIASWARN (execl);
27367 +#endif
27368 +
27369 +#if @GNULIB_EXECLE@
27370 +# if @REPLACE_EXECLE@
27371 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27372 +# undef execle
27373 +# define execle rpl_execle
27374 +# endif
27375 +_GL_FUNCDECL_RPL (execle, int, (const char *program, const char *arg, ...)
27376 + _GL_ARG_NONNULL ((1)));
27377 +_GL_CXXALIAS_RPL (execle, int, (const char *program, const char *arg, ...));
27378 +# else
27379 +_GL_CXXALIAS_SYS (execle, int, (const char *program, const char *arg, ...));
27380 +# endif
27381 +_GL_CXXALIASWARN (execle);
27382 +#elif defined GNULIB_POSIXCHECK
27383 +# undef execle
27384 +# if HAVE_RAW_DECL_EXECLE
27385 +_GL_WARN_ON_USE (execle, "execle behaves very differently on mingw - "
27386 + "use gnulib module execle for portability");
27387 +# endif
27388 +#elif @GNULIB_MDA_EXECLE@
27389 +/* On native Windows, map 'execle' to '_execle', so that -loldnames is not
27390 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27391 + platforms by defining GNULIB_NAMESPACE::execle always. */
27392 +# if defined _WIN32 && !defined __CYGWIN__
27393 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27394 +# undef execle
27395 +# define execle _execle
27396 +# endif
27397 +_GL_CXXALIAS_MDA (execle, intptr_t,
27398 + (const char *program, const char *arg, ...));
27399 +# else
27400 +_GL_CXXALIAS_SYS (execle, int, (const char *program, const char *arg, ...));
27401 +# endif
27402 +_GL_CXXALIASWARN (execle);
27403 +#endif
27404 +
27405 +#if @GNULIB_EXECLP@
27406 +# if @REPLACE_EXECLP@
27407 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27408 +# undef execlp
27409 +# define execlp rpl_execlp
27410 +# endif
27411 +_GL_FUNCDECL_RPL (execlp, int, (const char *program, const char *arg, ...)
27412 + _GL_ARG_NONNULL ((1)));
27413 +_GL_CXXALIAS_RPL (execlp, int, (const char *program, const char *arg, ...));
27414 +# else
27415 +_GL_CXXALIAS_SYS (execlp, int, (const char *program, const char *arg, ...));
27416 +# endif
27417 +_GL_CXXALIASWARN (execlp);
27418 +#elif defined GNULIB_POSIXCHECK
27419 +# undef execlp
27420 +# if HAVE_RAW_DECL_EXECLP
27421 +_GL_WARN_ON_USE (execlp, "execlp behaves very differently on mingw - "
27422 + "use gnulib module execlp for portability");
27423 +# endif
27424 +#elif @GNULIB_MDA_EXECLP@
27425 +/* On native Windows, map 'execlp' to '_execlp', so that -loldnames is not
27426 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27427 + platforms by defining GNULIB_NAMESPACE::execlp always. */
27428 +# if defined _WIN32 && !defined __CYGWIN__
27429 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27430 +# undef execlp
27431 +# define execlp _execlp
27432 +# endif
27433 +_GL_CXXALIAS_MDA (execlp, intptr_t,
27434 + (const char *program, const char *arg, ...));
27435 +# else
27436 +_GL_CXXALIAS_SYS (execlp, int, (const char *program, const char *arg, ...));
27437 +# endif
27438 +_GL_CXXALIASWARN (execlp);
27439 +#endif
27440 +
27441 +
27442 +#if @GNULIB_EXECV@
27443 +# if @REPLACE_EXECV@
27444 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27445 +# undef execv
27446 +# define execv rpl_execv
27447 +# endif
27448 +_GL_FUNCDECL_RPL (execv, int, (const char *program, char * const *argv)
27449 + _GL_ARG_NONNULL ((1, 2)));
27450 +_GL_CXXALIAS_RPL (execv, int, (const char *program, char * const *argv));
27451 +# else
27452 +_GL_CXXALIAS_SYS (execv, int, (const char *program, char * const *argv));
27453 +# endif
27454 +_GL_CXXALIASWARN (execv);
27455 +#elif defined GNULIB_POSIXCHECK
27456 +# undef execv
27457 +# if HAVE_RAW_DECL_EXECV
27458 +_GL_WARN_ON_USE (execv, "execv behaves very differently on mingw - "
27459 + "use gnulib module execv for portability");
27460 +# endif
27461 +#elif @GNULIB_MDA_EXECV@
27462 +/* On native Windows, map 'execv' to '_execv', so that -loldnames is not
27463 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27464 + platforms by defining GNULIB_NAMESPACE::execv always. */
27465 +# if defined _WIN32 && !defined __CYGWIN__
27466 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27467 +# undef execv
27468 +# define execv _execv
27469 +# endif
27470 +_GL_CXXALIAS_MDA_CAST (execv, intptr_t,
27471 + (const char *program, char * const *argv));
27472 +# else
27473 +_GL_CXXALIAS_SYS (execv, int, (const char *program, char * const *argv));
27474 +# endif
27475 +_GL_CXXALIASWARN (execv);
27476 +#endif
27477 +
27478 +#if @GNULIB_EXECVE@
27479 +# if @REPLACE_EXECVE@
27480 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27481 +# undef execve
27482 +# define execve rpl_execve
27483 +# endif
27484 +_GL_FUNCDECL_RPL (execve, int,
27485 + (const char *program, char * const *argv, char * const *env)
27486 + _GL_ARG_NONNULL ((1, 2)));
27487 +_GL_CXXALIAS_RPL (execve, int,
27488 + (const char *program, char * const *argv, char * const *env));
27489 +# else
27490 +_GL_CXXALIAS_SYS (execve, int,
27491 + (const char *program, char * const *argv, char * const *env));
27492 +# endif
27493 +_GL_CXXALIASWARN (execve);
27494 +#elif defined GNULIB_POSIXCHECK
27495 +# undef execve
27496 +# if HAVE_RAW_DECL_EXECVE
27497 +_GL_WARN_ON_USE (execve, "execve behaves very differently on mingw - "
27498 + "use gnulib module execve for portability");
27499 +# endif
27500 +#elif @GNULIB_MDA_EXECVE@
27501 +/* On native Windows, map 'execve' to '_execve', so that -loldnames is not
27502 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27503 + platforms by defining GNULIB_NAMESPACE::execve always. */
27504 +# if defined _WIN32 && !defined __CYGWIN__
27505 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27506 +# undef execve
27507 +# define execve _execve
27508 +# endif
27509 +_GL_CXXALIAS_MDA_CAST (execve, intptr_t,
27510 + (const char *program, char * const *argv,
27511 + char * const *env));
27512 +# else
27513 +_GL_CXXALIAS_SYS (execve, int,
27514 + (const char *program, char * const *argv, char * const *env));
27515 +# endif
27516 +_GL_CXXALIASWARN (execve);
27517 +#endif
27518 +
27519 +#if @GNULIB_EXECVP@
27520 +# if @REPLACE_EXECVP@
27521 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27522 +# undef execvp
27523 +# define execvp rpl_execvp
27524 +# endif
27525 +_GL_FUNCDECL_RPL (execvp, int, (const char *program, char * const *argv)
27526 + _GL_ARG_NONNULL ((1, 2)));
27527 +_GL_CXXALIAS_RPL (execvp, int, (const char *program, char * const *argv));
27528 +# else
27529 +_GL_CXXALIAS_SYS (execvp, int, (const char *program, char * const *argv));
27530 +# endif
27531 +_GL_CXXALIASWARN (execvp);
27532 +#elif defined GNULIB_POSIXCHECK
27533 +# undef execvp
27534 +# if HAVE_RAW_DECL_EXECVP
27535 +_GL_WARN_ON_USE (execvp, "execvp behaves very differently on mingw - "
27536 + "use gnulib module execvp for portability");
27537 +# endif
27538 +#elif @GNULIB_MDA_EXECVP@
27539 +/* On native Windows, map 'execvp' to '_execvp', so that -loldnames is not
27540 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27541 + platforms by defining GNULIB_NAMESPACE::execvp always. */
27542 +# if defined _WIN32 && !defined __CYGWIN__
27543 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27544 +# undef execvp
27545 +# define execvp _execvp
27546 +# endif
27547 +_GL_CXXALIAS_MDA_CAST (execvp, intptr_t,
27548 + (const char *program, char * const *argv));
27549 +# else
27550 +_GL_CXXALIAS_SYS (execvp, int, (const char *program, char * const *argv));
27551 +# endif
27552 +_GL_CXXALIASWARN (execvp);
27553 +#endif
27554 +
27555 +#if @GNULIB_EXECVPE@
27556 +# if @REPLACE_EXECVPE@
27557 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27558 +# undef execvpe
27559 +# define execvpe rpl_execvpe
27560 +# endif
27561 +_GL_FUNCDECL_RPL (execvpe, int,
27562 + (const char *program, char * const *argv, char * const *env)
27563 + _GL_ARG_NONNULL ((1, 2)));
27564 +_GL_CXXALIAS_RPL (execvpe, int,
27565 + (const char *program, char * const *argv, char * const *env));
27566 +# else
27567 +# if !@HAVE_DECL_EXECVPE@
27568 +_GL_FUNCDECL_SYS (execvpe, int,
27569 + (const char *program, char * const *argv, char * const *env)
27570 + _GL_ARG_NONNULL ((1, 2)));
27571 +# endif
27572 +_GL_CXXALIAS_SYS (execvpe, int,
27573 + (const char *program, char * const *argv, char * const *env));
27574 +# endif
27575 +_GL_CXXALIASWARN (execvpe);
27576 +#elif defined GNULIB_POSIXCHECK
27577 +# undef execvpe
27578 +# if HAVE_RAW_DECL_EXECVPE
27579 +_GL_WARN_ON_USE (execvpe, "execvpe behaves very differently on mingw - "
27580 + "use gnulib module execvpe for portability");
27581 +# endif
27582 +#elif @GNULIB_MDA_EXECVPE@
27583 +/* On native Windows, map 'execvpe' to '_execvpe', so that -loldnames is not
27584 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27585 + platforms by defining GNULIB_NAMESPACE::execvpe on all platforms that have
27586 + it. */
27587 +# if defined _WIN32 && !defined __CYGWIN__
27588 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27589 +# undef execvpe
27590 +# define execvpe _execvpe
27591 +# endif
27592 +_GL_CXXALIAS_MDA_CAST (execvpe, intptr_t,
27593 + (const char *program, char * const *argv,
27594 + char * const *env));
27595 +# elif @HAVE_EXECVPE@
27596 +# if !@HAVE_DECL_EXECVPE@
27597 +_GL_FUNCDECL_SYS (execvpe, int,
27598 + (const char *program, char * const *argv, char * const *env)
27599 + _GL_ARG_NONNULL ((1, 2)));
27600 +# endif
27601 +_GL_CXXALIAS_SYS (execvpe, int,
27602 + (const char *program, char * const *argv, char * const *env));
27603 +# endif
27604 +# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_EXECVPE@
27605 +_GL_CXXALIASWARN (execvpe);
27606 +# endif
27607 +#endif
27608 +
27609 +
27610 #if @GNULIB_FACCESSAT@
27611 # if @REPLACE_FACCESSAT@
27612 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27613 @@ -511,7 +940,7 @@ _GL_WARN_ON_USE (faccessat, "faccessat is not portable - "
27614 the given file descriptor is open.
27615 Return 0 if successful, otherwise -1 and errno set.
27616 See the POSIX:2008 specification
27617 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/fchdir.html>. */
27618 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/fchdir.html>. */
27619 # if ! @HAVE_FCHDIR@
27620 _GL_FUNCDECL_SYS (fchdir, int, (int /*fd*/));
27621
27622 @@ -563,7 +992,7 @@ _GL_CXXALIASWARN (fchownat);
27623 # undef fchownat
27624 # if HAVE_RAW_DECL_FCHOWNAT
27625 _GL_WARN_ON_USE (fchownat, "fchownat is not portable - "
27626 - "use gnulib module openat for portability");
27627 + "use gnulib module fchownat for portability");
27628 # endif
27629 #endif
27630
27631 @@ -572,7 +1001,7 @@ _GL_WARN_ON_USE (fchownat, "fchownat is not portable - "
27632 /* Synchronize changes to a file.
27633 Return 0 if successful, otherwise -1 and errno set.
27634 See POSIX:2008 specification
27635 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/fdatasync.html>. */
27636 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/fdatasync.html>. */
27637 # if !@HAVE_FDATASYNC@ || !@HAVE_DECL_FDATASYNC@
27638 _GL_FUNCDECL_SYS (fdatasync, int, (int fd));
27639 # endif
27640 @@ -591,7 +1020,7 @@ _GL_WARN_ON_USE (fdatasync, "fdatasync is unportable - "
27641 /* Synchronize changes, including metadata, to a file.
27642 Return 0 if successful, otherwise -1 and errno set.
27643 See POSIX:2008 specification
27644 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/fsync.html>. */
27645 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/fsync.html>. */
27646 # if !@HAVE_FSYNC@
27647 _GL_FUNCDECL_SYS (fsync, int, (int fd));
27648 # endif
27649 @@ -610,7 +1039,7 @@ _GL_WARN_ON_USE (fsync, "fsync is unportable - "
27650 /* Change the size of the file to which FD is opened to become equal to LENGTH.
27651 Return 0 if successful, otherwise -1 and errno set.
27652 See the POSIX:2008 specification
27653 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/ftruncate.html>. */
27654 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/ftruncate.html>. */
27655 # if @REPLACE_FTRUNCATE@
27656 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27657 # undef ftruncate
27658 @@ -640,7 +1069,7 @@ _GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - "
27659 Return BUF if successful, or NULL if the directory couldn't be determined
27660 or SIZE was too small.
27661 See the POSIX:2008 specification
27662 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/getcwd.html>.
27663 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/getcwd.html>.
27664 Additionally, the gnulib module 'getcwd' guarantees the following GNU
27665 extension: If BUF is NULL, an array is allocated with 'malloc'; the array
27666 is SIZE bytes long, unless SIZE == 0, in which case it is as big as
27667 @@ -651,6 +1080,12 @@ _GL_WARN_ON_USE (ftruncate, "ftruncate is unportable - "
27668 # endif
27669 _GL_FUNCDECL_RPL (getcwd, char *, (char *buf, size_t size));
27670 _GL_CXXALIAS_RPL (getcwd, char *, (char *buf, size_t size));
27671 +# elif defined _WIN32 && !defined __CYGWIN__
27672 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27673 +# undef getcwd
27674 +# define getcwd _getcwd
27675 +# endif
27676 +_GL_CXXALIAS_MDA (getcwd, char *, (char *buf, size_t size));
27677 # else
27678 /* Need to cast, because on mingw, the second parameter is
27679 int size. */
27680 @@ -663,6 +1098,22 @@ _GL_CXXALIASWARN (getcwd);
27681 _GL_WARN_ON_USE (getcwd, "getcwd is unportable - "
27682 "use gnulib module getcwd for portability");
27683 # endif
27684 +#elif @GNULIB_MDA_GETCWD@
27685 +/* On native Windows, map 'getcwd' to '_getcwd', so that -loldnames is not
27686 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27687 + platforms by defining GNULIB_NAMESPACE::getcwd always. */
27688 +# if defined _WIN32 && !defined __CYGWIN__
27689 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27690 +# undef getcwd
27691 +# define getcwd _getcwd
27692 +# endif
27693 +/* Need to cast, because on mingw, the second parameter is either
27694 + 'int size' or 'size_t size'. */
27695 +_GL_CXXALIAS_MDA_CAST (getcwd, char *, (char *buf, size_t size));
27696 +# else
27697 +_GL_CXXALIAS_SYS_CAST (getcwd, char *, (char *buf, size_t size));
27698 +# endif
27699 +_GL_CXXALIASWARN (getcwd);
27700 #endif
27701
27702
27703 @@ -716,7 +1167,9 @@ _GL_CXXALIAS_RPL (getdtablesize, int, (void));
27704 # if !@HAVE_GETDTABLESIZE@
27705 _GL_FUNCDECL_SYS (getdtablesize, int, (void));
27706 # endif
27707 -_GL_CXXALIAS_SYS (getdtablesize, int, (void));
27708 +/* Need to cast, because on AIX, the parameter list is
27709 + (...). */
27710 +_GL_CXXALIAS_SYS_CAST (getdtablesize, int, (void));
27711 # endif
27712 _GL_CXXALIASWARN (getdtablesize);
27713 #elif defined GNULIB_POSIXCHECK
27714 @@ -728,6 +1181,22 @@ _GL_WARN_ON_USE (getdtablesize, "getdtablesize is unportable - "
27715 #endif
27716
27717
27718 +#if @GNULIB_GETENTROPY@
27719 +/* Fill a buffer with random bytes. */
27720 +# if !@HAVE_GETENTROPY@
27721 +_GL_FUNCDECL_SYS (getentropy, int, (void *buffer, size_t length));
27722 +# endif
27723 +_GL_CXXALIAS_SYS (getentropy, int, (void *buffer, size_t length));
27724 +_GL_CXXALIASWARN (getentropy);
27725 +#elif defined GNULIB_POSIXCHECK
27726 +# undef getentropy
27727 +# if HAVE_RAW_DECL_GETENTROPY
27728 +_GL_WARN_ON_USE (getentropy, "getentropy is unportable - "
27729 + "use gnulib module getentropy for portability");
27730 +# endif
27731 +#endif
27732 +
27733 +
27734 #if @GNULIB_GETGROUPS@
27735 /* Return the supplemental groups that the current process belongs to.
27736 It is unspecified whether the effective group id is in the list.
27737 @@ -800,7 +1269,7 @@ _GL_WARN_ON_USE (gethostname, "gethostname is unportable - "
27738 /* Returns the user's login name, or NULL if it cannot be found. Upon error,
27739 returns NULL with errno set.
27740
27741 - See <http://www.opengroup.org/susv3xsh/getlogin.html>.
27742 + See <https://pubs.opengroup.org/onlinepubs/9699919799/functions/getlogin.html>.
27743
27744 Most programs don't need to use this function, because the information is
27745 available through environment variables:
27746 @@ -829,7 +1298,7 @@ _GL_WARN_ON_USE (getlogin, "getlogin is unportable - "
27747 the case that the login name cannot be found but no specific error is
27748 provided (this case is hopefully rare but is left open by the POSIX spec).
27749
27750 - See <http://www.opengroup.org/susv3xsh/getlogin.html>.
27751 + See <https://pubs.opengroup.org/onlinepubs/9699919799/functions/getlogin.html>.
27752
27753 Most programs don't need to use this function, because the information is
27754 available through environment variables:
27755 @@ -870,6 +1339,11 @@ _GL_WARN_ON_USE (getlogin_r, "getlogin_r is unportable - "
27756 _GL_FUNCDECL_RPL (getpagesize, int, (void));
27757 _GL_CXXALIAS_RPL (getpagesize, int, (void));
27758 # else
27759 +/* On HP-UX, getpagesize exists, but it is not declared in <unistd.h> even if
27760 + the compiler options -D_HPUX_SOURCE -D_XOPEN_SOURCE=600 are used. */
27761 +# if defined __hpux
27762 +_GL_FUNCDECL_SYS (getpagesize, int, (void));
27763 +# endif
27764 # if !@HAVE_GETPAGESIZE@
27765 # if !defined getpagesize
27766 /* This is for POSIX systems. */
27767 @@ -949,7 +1423,8 @@ _GL_WARN_ON_USE (getpagesize, "getpagesize is unportable - "
27768 Read a password from /dev/tty or stdin.
27769 Function getpass() from module 'getpass-gnu':
27770 Read a password of arbitrary length from /dev/tty or stdin. */
27771 -# if @REPLACE_GETPASS@
27772 +# if (@GNULIB_GETPASS@ && @REPLACE_GETPASS@) \
27773 + || (@GNULIB_GETPASS_GNU@ && @REPLACE_GETPASS_FOR_GETPASS_GNU@)
27774 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27775 # undef getpass
27776 # define getpass rpl_getpass
27777 @@ -974,6 +1449,23 @@ _GL_WARN_ON_USE (getpass, "getpass is unportable - "
27778 #endif
27779
27780
27781 +#if @GNULIB_MDA_GETPID@
27782 +/* On native Windows, map 'getpid' to '_getpid', so that -loldnames is not
27783 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27784 + platforms by defining GNULIB_NAMESPACE::getpid always. */
27785 +# if defined _WIN32 && !defined __CYGWIN__
27786 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27787 +# undef getpid
27788 +# define getpid _getpid
27789 +# endif
27790 +_GL_CXXALIAS_MDA (getpid, int, (void));
27791 +# else
27792 +_GL_CXXALIAS_SYS (getpid, pid_t, (void));
27793 +# endif
27794 +_GL_CXXALIASWARN (getpid);
27795 +#endif
27796 +
27797 +
27798 #if @GNULIB_GETUSERSHELL@
27799 /* Return the next valid login shell on the system, or NULL when the end of
27800 the list has been reached. */
27801 @@ -1044,8 +1536,15 @@ _GL_WARN_ON_USE (group_member, "group_member is unportable - "
27802 # undef isatty
27803 # define isatty rpl_isatty
27804 # endif
27805 +# define GNULIB_defined_isatty 1
27806 _GL_FUNCDECL_RPL (isatty, int, (int fd));
27807 _GL_CXXALIAS_RPL (isatty, int, (int fd));
27808 +# elif defined _WIN32 && !defined __CYGWIN__
27809 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27810 +# undef isatty
27811 +# define isatty _isatty
27812 +# endif
27813 +_GL_CXXALIAS_MDA (isatty, int, (int fd));
27814 # else
27815 _GL_CXXALIAS_SYS (isatty, int, (int fd));
27816 # endif
27817 @@ -1056,6 +1555,20 @@ _GL_CXXALIASWARN (isatty);
27818 _GL_WARN_ON_USE (isatty, "isatty has portability problems on native Windows - "
27819 "use gnulib module isatty for portability");
27820 # endif
27821 +#elif @GNULIB_MDA_ISATTY@
27822 +/* On native Windows, map 'isatty' to '_isatty', so that -loldnames is not
27823 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27824 + platforms by defining GNULIB_NAMESPACE::isatty always. */
27825 +# if defined _WIN32 && !defined __CYGWIN__
27826 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27827 +# undef isatty
27828 +# define isatty _isatty
27829 +# endif
27830 +_GL_CXXALIAS_MDA (isatty, int, (int fd));
27831 +# else
27832 +_GL_CXXALIAS_SYS (isatty, int, (int fd));
27833 +# endif
27834 +_GL_CXXALIASWARN (isatty);
27835 #endif
27836
27837
27838 @@ -1064,7 +1577,7 @@ _GL_WARN_ON_USE (isatty, "isatty has portability problems on native Windows - "
27839 to GID (if GID is not -1). Do not follow symbolic links.
27840 Return 0 if successful, otherwise -1 and errno set.
27841 See the POSIX:2008 specification
27842 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/lchown.html>. */
27843 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/lchown.html>. */
27844 # if @REPLACE_LCHOWN@
27845 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27846 # undef lchown
27847 @@ -1094,7 +1607,7 @@ _GL_WARN_ON_USE (lchown, "lchown is unportable to pre-POSIX.1-2001 systems - "
27848 /* Create a new hard link for an existing file.
27849 Return 0 if successful, otherwise -1 and errno set.
27850 See POSIX:2008 specification
27851 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/link.html>. */
27852 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/link.html>. */
27853 # if @REPLACE_LINK@
27854 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27855 # define link rpl_link
27856 @@ -1160,13 +1673,19 @@ _GL_WARN_ON_USE (linkat, "linkat is unportable - "
27857 /* Set the offset of FD relative to SEEK_SET, SEEK_CUR, or SEEK_END.
27858 Return the new offset if successful, otherwise -1 and errno set.
27859 See the POSIX:2008 specification
27860 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/lseek.html>. */
27861 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/lseek.html>. */
27862 # if @REPLACE_LSEEK@
27863 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27864 # define lseek rpl_lseek
27865 # endif
27866 _GL_FUNCDECL_RPL (lseek, off_t, (int fd, off_t offset, int whence));
27867 _GL_CXXALIAS_RPL (lseek, off_t, (int fd, off_t offset, int whence));
27868 +# elif defined _WIN32 && !defined __CYGWIN__
27869 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27870 +# undef lseek
27871 +# define lseek _lseek
27872 +# endif
27873 +_GL_CXXALIAS_MDA (lseek, off_t, (int fd, off_t offset, int whence));
27874 # else
27875 _GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence));
27876 # endif
27877 @@ -1177,6 +1696,20 @@ _GL_CXXALIASWARN (lseek);
27878 _GL_WARN_ON_USE (lseek, "lseek does not fail with ESPIPE on pipes on some "
27879 "systems - use gnulib module lseek for portability");
27880 # endif
27881 +#elif @GNULIB_MDA_LSEEK@
27882 +/* On native Windows, map 'lseek' to '_lseek', so that -loldnames is not
27883 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27884 + platforms by defining GNULIB_NAMESPACE::lseek always. */
27885 +# if defined _WIN32 && !defined __CYGWIN__
27886 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27887 +# undef lseek
27888 +# define lseek _lseek
27889 +# endif
27890 +_GL_CXXALIAS_MDA (lseek, long, (int fd, long offset, int whence));
27891 +# else
27892 +_GL_CXXALIAS_SYS (lseek, off_t, (int fd, off_t offset, int whence));
27893 +# endif
27894 +_GL_CXXALIASWARN (lseek);
27895 #endif
27896
27897
27898 @@ -1232,7 +1765,7 @@ _GL_WARN_ON_USE (pipe2, "pipe2 is unportable - "
27899 Return the number of bytes placed into BUF if successful, otherwise
27900 set errno and return -1. 0 indicates EOF.
27901 See the POSIX:2008 specification
27902 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/pread.html>. */
27903 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/pread.html>. */
27904 # if @REPLACE_PREAD@
27905 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27906 # undef pread
27907 @@ -1267,7 +1800,7 @@ _GL_WARN_ON_USE (pread, "pread is unportable - "
27908 Return the number of bytes written if successful, otherwise
27909 set errno and return -1. 0 indicates nothing written. See the
27910 POSIX:2008 specification
27911 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/pwrite.html>. */
27912 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/pwrite.html>. */
27913 # if @REPLACE_PWRITE@
27914 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27915 # undef pwrite
27916 @@ -1300,7 +1833,7 @@ _GL_WARN_ON_USE (pwrite, "pwrite is unportable - "
27917 #if @GNULIB_READ@
27918 /* Read up to COUNT bytes from file descriptor FD into the buffer starting
27919 at BUF. See the POSIX:2008 specification
27920 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/read.html>. */
27921 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/read.html>. */
27922 # if @REPLACE_READ@
27923 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27924 # undef read
27925 @@ -1309,11 +1842,32 @@ _GL_WARN_ON_USE (pwrite, "pwrite is unportable - "
27926 _GL_FUNCDECL_RPL (read, ssize_t, (int fd, void *buf, size_t count)
27927 _GL_ARG_NONNULL ((2)));
27928 _GL_CXXALIAS_RPL (read, ssize_t, (int fd, void *buf, size_t count));
27929 +# elif defined _WIN32 && !defined __CYGWIN__
27930 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27931 +# undef read
27932 +# define read _read
27933 +# endif
27934 +_GL_CXXALIAS_MDA (read, ssize_t, (int fd, void *buf, size_t count));
27935 # else
27936 -/* Need to cast, because on mingw, the third parameter is
27937 - unsigned int count
27938 - and the return type is 'int'. */
27939 -_GL_CXXALIAS_SYS_CAST (read, ssize_t, (int fd, void *buf, size_t count));
27940 +_GL_CXXALIAS_SYS (read, ssize_t, (int fd, void *buf, size_t count));
27941 +# endif
27942 +_GL_CXXALIASWARN (read);
27943 +#elif @GNULIB_MDA_READ@
27944 +/* On native Windows, map 'read' to '_read', so that -loldnames is not
27945 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
27946 + platforms by defining GNULIB_NAMESPACE::read always. */
27947 +# if defined _WIN32 && !defined __CYGWIN__
27948 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27949 +# undef read
27950 +# define read _read
27951 +# endif
27952 +# ifdef __MINGW32__
27953 +_GL_CXXALIAS_MDA (read, int, (int fd, void *buf, unsigned int count));
27954 +# else
27955 +_GL_CXXALIAS_MDA (read, ssize_t, (int fd, void *buf, unsigned int count));
27956 +# endif
27957 +# else
27958 +_GL_CXXALIAS_SYS (read, ssize_t, (int fd, void *buf, size_t count));
27959 # endif
27960 _GL_CXXALIASWARN (read);
27961 #endif
27962 @@ -1324,24 +1878,28 @@ _GL_CXXALIASWARN (read);
27963 bytes of it into BUF. Return the number of bytes placed into BUF if
27964 successful, otherwise -1 and errno set.
27965 See the POSIX:2008 specification
27966 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/readlink.html>. */
27967 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlink.html>. */
27968 # if @REPLACE_READLINK@
27969 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
27970 # define readlink rpl_readlink
27971 # endif
27972 _GL_FUNCDECL_RPL (readlink, ssize_t,
27973 - (const char *file, char *buf, size_t bufsize)
27974 + (const char *restrict file,
27975 + char *restrict buf, size_t bufsize)
27976 _GL_ARG_NONNULL ((1, 2)));
27977 _GL_CXXALIAS_RPL (readlink, ssize_t,
27978 - (const char *file, char *buf, size_t bufsize));
27979 + (const char *restrict file,
27980 + char *restrict buf, size_t bufsize));
27981 # else
27982 # if !@HAVE_READLINK@
27983 _GL_FUNCDECL_SYS (readlink, ssize_t,
27984 - (const char *file, char *buf, size_t bufsize)
27985 + (const char *restrict file,
27986 + char *restrict buf, size_t bufsize)
27987 _GL_ARG_NONNULL ((1, 2)));
27988 # endif
27989 _GL_CXXALIAS_SYS (readlink, ssize_t,
27990 - (const char *file, char *buf, size_t bufsize));
27991 + (const char *restrict file,
27992 + char *restrict buf, size_t bufsize));
27993 # endif
27994 _GL_CXXALIASWARN (readlink);
27995 #elif defined GNULIB_POSIXCHECK
27996 @@ -1359,18 +1917,22 @@ _GL_WARN_ON_USE (readlink, "readlink is unportable - "
27997 # define readlinkat rpl_readlinkat
27998 # endif
27999 _GL_FUNCDECL_RPL (readlinkat, ssize_t,
28000 - (int fd, char const *file, char *buf, size_t len)
28001 + (int fd, char const *restrict file,
28002 + char *restrict buf, size_t len)
28003 _GL_ARG_NONNULL ((2, 3)));
28004 _GL_CXXALIAS_RPL (readlinkat, ssize_t,
28005 - (int fd, char const *file, char *buf, size_t len));
28006 + (int fd, char const *restrict file,
28007 + char *restrict buf, size_t len));
28008 # else
28009 # if !@HAVE_READLINKAT@
28010 _GL_FUNCDECL_SYS (readlinkat, ssize_t,
28011 - (int fd, char const *file, char *buf, size_t len)
28012 + (int fd, char const *restrict file,
28013 + char *restrict buf, size_t len)
28014 _GL_ARG_NONNULL ((2, 3)));
28015 # endif
28016 _GL_CXXALIAS_SYS (readlinkat, ssize_t,
28017 - (int fd, char const *file, char *buf, size_t len));
28018 + (int fd, char const *restrict file,
28019 + char *restrict buf, size_t len));
28020 # endif
28021 _GL_CXXALIASWARN (readlinkat);
28022 #elif defined GNULIB_POSIXCHECK
28023 @@ -1390,6 +1952,12 @@ _GL_WARN_ON_USE (readlinkat, "readlinkat is not portable - "
28024 # endif
28025 _GL_FUNCDECL_RPL (rmdir, int, (char const *name) _GL_ARG_NONNULL ((1)));
28026 _GL_CXXALIAS_RPL (rmdir, int, (char const *name));
28027 +# elif defined _WIN32 && !defined __CYGWIN__
28028 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28029 +# undef rmdir
28030 +# define rmdir _rmdir
28031 +# endif
28032 +_GL_CXXALIAS_MDA (rmdir, int, (char const *name));
28033 # else
28034 _GL_CXXALIAS_SYS (rmdir, int, (char const *name));
28035 # endif
28036 @@ -1400,6 +1968,20 @@ _GL_CXXALIASWARN (rmdir);
28037 _GL_WARN_ON_USE (rmdir, "rmdir is unportable - "
28038 "use gnulib module rmdir for portability");
28039 # endif
28040 +#elif @GNULIB_MDA_RMDIR@
28041 +/* On native Windows, map 'rmdir' to '_rmdir', so that -loldnames is not
28042 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
28043 + platforms by defining GNULIB_NAMESPACE::rmdir always. */
28044 +# if defined _WIN32 && !defined __CYGWIN__
28045 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28046 +# undef rmdir
28047 +# define rmdir _rmdir
28048 +# endif
28049 +_GL_CXXALIAS_MDA (rmdir, int, (char const *name));
28050 +# else
28051 +_GL_CXXALIAS_SYS (rmdir, int, (char const *name));
28052 +# endif
28053 +_GL_CXXALIASWARN (rmdir);
28054 #endif
28055
28056
28057 @@ -1434,7 +2016,7 @@ _GL_WARN_ON_USE (sethostname, "sethostname is unportable - "
28058 /* Pause the execution of the current thread for N seconds.
28059 Returns the number of seconds left to sleep.
28060 See the POSIX:2008 specification
28061 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/sleep.html>. */
28062 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/sleep.html>. */
28063 # if @REPLACE_SLEEP@
28064 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28065 # undef sleep
28066 @@ -1458,6 +2040,31 @@ _GL_WARN_ON_USE (sleep, "sleep is unportable - "
28067 #endif
28068
28069
28070 +#if @GNULIB_MDA_SWAB@
28071 +/* On native Windows, map 'swab' to '_swab', so that -loldnames is not
28072 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
28073 + platforms by defining GNULIB_NAMESPACE::swab always. */
28074 +# if defined _WIN32 && !defined __CYGWIN__
28075 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28076 +# undef swab
28077 +# define swab _swab
28078 +# endif
28079 +/* Need to cast, because in old mingw the arguments are
28080 + (const char *from, char *to, size_t n). */
28081 +_GL_CXXALIAS_MDA_CAST (swab, void, (char *from, char *to, int n));
28082 +# else
28083 +# if defined __hpux /* HP-UX */
28084 +_GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, int n));
28085 +# elif defined __sun && !defined _XPG4 /* Solaris */
28086 +_GL_CXXALIAS_SYS (swab, void, (const char *from, char *to, ssize_t n));
28087 +# else
28088 +_GL_CXXALIAS_SYS (swab, void, (const void *from, void *to, ssize_t n));
28089 +# endif
28090 +# endif
28091 +_GL_CXXALIASWARN (swab);
28092 +#endif
28093 +
28094 +
28095 #if @GNULIB_SYMLINK@
28096 # if @REPLACE_SYMLINK@
28097 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28098 @@ -1518,7 +2125,7 @@ _GL_WARN_ON_USE (symlinkat, "symlinkat is not portable - "
28099 /* Change the size of the file designated by FILENAME to become equal to LENGTH.
28100 Return 0 if successful, otherwise -1 and errno set.
28101 See the POSIX:2008 specification
28102 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/truncate.html>. */
28103 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/truncate.html>. */
28104 # if @REPLACE_TRUNCATE@
28105 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28106 # undef truncate
28107 @@ -1582,6 +2189,12 @@ _GL_WARN_ON_USE (ttyname_r, "ttyname_r is not portable - "
28108 # endif
28109 _GL_FUNCDECL_RPL (unlink, int, (char const *file) _GL_ARG_NONNULL ((1)));
28110 _GL_CXXALIAS_RPL (unlink, int, (char const *file));
28111 +# elif defined _WIN32 && !defined __CYGWIN__
28112 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28113 +# undef unlink
28114 +# define unlink _unlink
28115 +# endif
28116 +_GL_CXXALIAS_MDA (unlink, int, (char const *file));
28117 # else
28118 _GL_CXXALIAS_SYS (unlink, int, (char const *file));
28119 # endif
28120 @@ -1592,6 +2205,20 @@ _GL_CXXALIASWARN (unlink);
28121 _GL_WARN_ON_USE (unlink, "unlink is not portable - "
28122 "use gnulib module unlink for portability");
28123 # endif
28124 +#elif @GNULIB_MDA_UNLINK@
28125 +/* On native Windows, map 'unlink' to '_unlink', so that -loldnames is not
28126 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
28127 + platforms by defining GNULIB_NAMESPACE::unlink always. */
28128 +# if defined _WIN32 && !defined __CYGWIN__
28129 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28130 +# undef unlink
28131 +# define unlink _unlink
28132 +# endif
28133 +_GL_CXXALIAS_MDA (unlink, int, (char const *file));
28134 +# else
28135 +_GL_CXXALIAS_SYS (unlink, int, (char const *file));
28136 +# endif
28137 +_GL_CXXALIASWARN (unlink);
28138 #endif
28139
28140
28141 @@ -1616,7 +2243,7 @@ _GL_CXXALIASWARN (unlinkat);
28142 # undef unlinkat
28143 # if HAVE_RAW_DECL_UNLINKAT
28144 _GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - "
28145 - "use gnulib module openat for portability");
28146 + "use gnulib module unlinkat for portability");
28147 # endif
28148 #endif
28149
28150 @@ -1625,7 +2252,7 @@ _GL_WARN_ON_USE (unlinkat, "unlinkat is not portable - "
28151 /* Pause the execution of the current thread for N microseconds.
28152 Returns 0 on completion, or -1 on range error.
28153 See the POSIX:2001 specification
28154 - <http://www.opengroup.org/susv3xsh/usleep.html>. */
28155 + <https://pubs.opengroup.org/onlinepubs/009695399/functions/usleep.html>. */
28156 # if @REPLACE_USLEEP@
28157 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28158 # undef usleep
28159 @@ -1637,7 +2264,9 @@ _GL_CXXALIAS_RPL (usleep, int, (useconds_t n));
28160 # if !@HAVE_USLEEP@
28161 _GL_FUNCDECL_SYS (usleep, int, (useconds_t n));
28162 # endif
28163 -_GL_CXXALIAS_SYS (usleep, int, (useconds_t n));
28164 +/* Need to cast, because on Haiku, the first parameter is
28165 + unsigned int n. */
28166 +_GL_CXXALIAS_SYS_CAST (usleep, int, (useconds_t n));
28167 # endif
28168 _GL_CXXALIASWARN (usleep);
28169 #elif defined GNULIB_POSIXCHECK
28170 @@ -1652,7 +2281,7 @@ _GL_WARN_ON_USE (usleep, "usleep is unportable - "
28171 #if @GNULIB_WRITE@
28172 /* Write up to COUNT bytes starting at BUF to file descriptor FD.
28173 See the POSIX:2008 specification
28174 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html>. */
28175 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/write.html>. */
28176 # if @REPLACE_WRITE@
28177 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28178 # undef write
28179 @@ -1661,11 +2290,32 @@ _GL_WARN_ON_USE (usleep, "usleep is unportable - "
28180 _GL_FUNCDECL_RPL (write, ssize_t, (int fd, const void *buf, size_t count)
28181 _GL_ARG_NONNULL ((2)));
28182 _GL_CXXALIAS_RPL (write, ssize_t, (int fd, const void *buf, size_t count));
28183 +# elif defined _WIN32 && !defined __CYGWIN__
28184 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28185 +# undef write
28186 +# define write _write
28187 +# endif
28188 +_GL_CXXALIAS_MDA (write, ssize_t, (int fd, const void *buf, size_t count));
28189 +# else
28190 +_GL_CXXALIAS_SYS (write, ssize_t, (int fd, const void *buf, size_t count));
28191 +# endif
28192 +_GL_CXXALIASWARN (write);
28193 +#elif @GNULIB_MDA_WRITE@
28194 +/* On native Windows, map 'write' to '_write', so that -loldnames is not
28195 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
28196 + platforms by defining GNULIB_NAMESPACE::write always. */
28197 +# if defined _WIN32 && !defined __CYGWIN__
28198 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28199 +# undef write
28200 +# define write _write
28201 +# endif
28202 +# ifdef __MINGW32__
28203 +_GL_CXXALIAS_MDA (write, int, (int fd, const void *buf, unsigned int count));
28204 +# else
28205 +_GL_CXXALIAS_MDA (write, ssize_t, (int fd, const void *buf, unsigned int count));
28206 +# endif
28207 # else
28208 -/* Need to cast, because on mingw, the third parameter is
28209 - unsigned int count
28210 - and the return type is 'int'. */
28211 -_GL_CXXALIAS_SYS_CAST (write, ssize_t, (int fd, const void *buf, size_t count));
28212 +_GL_CXXALIAS_SYS (write, ssize_t, (int fd, const void *buf, size_t count));
28213 # endif
28214 _GL_CXXALIASWARN (write);
28215 #endif
28216
28217 diff --git a/autotools/gnulib/unlink.c b/autotools/gnulib/unlink.c
28218 index 90dc9d3..b549dd4 100644
28219 --- a/autotools/gnulib/unlink.c
28220 +++ b/autotools/gnulib/unlink.c
28221 @@ -1,18 +1,18 @@
28222 /* Work around unlink bugs.
28223
28224 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
28225 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
28226
28227 - This program is free software: you can redistribute it and/or modify
28228 - it under the terms of the GNU General Public License as published by
28229 - the Free Software Foundation; either version 3 of the License, or
28230 - (at your option) any later version.
28231 + This file is free software: you can redistribute it and/or modify
28232 + it under the terms of the GNU Lesser General Public License as
28233 + published by the Free Software Foundation; either version 2.1 of the
28234 + License, or (at your option) any later version.
28235
28236 - This program is distributed in the hope that it will be useful,
28237 + This file is distributed in the hope that it will be useful,
28238 but WITHOUT ANY WARRANTY; without even the implied warranty of
28239 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28240 - GNU General Public License for more details.
28241 + GNU Lesser General Public License for more details.
28242
28243 - You should have received a copy of the GNU General Public License
28244 + You should have received a copy of the GNU Lesser General Public License
28245 along with this program. If not, see <https://www.gnu.org/licenses/>. */
28246
28247 #include <config.h>
28248 @@ -24,9 +24,12 @@
28249 #include <string.h>
28250 #include <sys/stat.h>
28251
28252 -#include "dosname.h"
28253 +#include "filename.h"
28254
28255 #undef unlink
28256 +#if defined _WIN32 && !defined __CYGWIN__
28257 +# define unlink _unlink
28258 +#endif
28259
28260 /* Remove file NAME.
28261 Return 0 if successful, -1 if not. */
28262 @@ -60,15 +63,12 @@ rpl_unlink (char const *name)
28263 can't delete a directory via a symlink. */
28264 struct stat st;
28265 result = lstat (name, &st);
28266 - if (result == 0)
28267 + if (result == 0 || errno == EOVERFLOW)
28268 {
28269 /* Trailing NUL will overwrite the trailing slash. */
28270 char *short_name = malloc (len);
28271 if (!short_name)
28272 - {
28273 - errno = EPERM;
28274 - return -1;
28275 - }
28276 + return -1;
28277 memcpy (short_name, name, len);
28278 while (len && ISSLASH (short_name[len - 1]))
28279 short_name[--len] = '\0';
28280 @@ -79,6 +79,7 @@ rpl_unlink (char const *name)
28281 return -1;
28282 }
28283 free (short_name);
28284 + result = 0;
28285 }
28286 }
28287 if (!result)
28288
28289 diff --git a/autotools/gnulib/unlinkat.c b/autotools/gnulib/unlinkat.c
28290 index 2b301ce..eae6007 100644
28291 --- a/autotools/gnulib/unlinkat.c
28292 +++ b/autotools/gnulib/unlinkat.c
28293 @@ -1,10 +1,10 @@
28294 /* Work around unlinkat bugs on Solaris 9 and Hurd.
28295
28296 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
28297 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
28298
28299 This program is free software: you can redistribute it and/or modify
28300 it under the terms of the GNU General Public License as published by
28301 - the Free Software Foundation; either version 3 of the License, or
28302 + the Free Software Foundation, either version 3 of the License, or
28303 (at your option) any later version.
28304
28305 This program is distributed in the hope that it will be useful,
28306 @@ -28,7 +28,7 @@
28307
28308 #include <stdlib.h>
28309
28310 -#include "dosname.h"
28311 +#include "filename.h"
28312 #include "openat.h"
28313
28314 #if HAVE_UNLINKAT
28315 @@ -59,7 +59,7 @@ rpl_unlinkat (int fd, char const *name, int flag)
28316 directory. */
28317 struct stat st;
28318 result = lstatat (fd, name, &st);
28319 - if (result == 0)
28320 + if (result == 0 || errno == EOVERFLOW)
28321 {
28322 /* Trailing NUL will overwrite the trailing slash. */
28323 char *short_name = malloc (len);
28324 @@ -78,6 +78,7 @@ rpl_unlinkat (int fd, char const *name, int flag)
28325 return -1;
28326 }
28327 free (short_name);
28328 + result = 0;
28329 }
28330 }
28331 if (!result)
28332
28333 diff --git a/autotools/gnulib/utime.c b/autotools/gnulib/utime.c
28334 index 6d29045..799be0f 100644
28335 --- a/autotools/gnulib/utime.c
28336 +++ b/autotools/gnulib/utime.c
28337 @@ -1,17 +1,17 @@
28338 /* Work around platform bugs in utime.
28339 - Copyright (C) 2017-2019 Free Software Foundation, Inc.
28340 + Copyright (C) 2017-2022 Free Software Foundation, Inc.
28341
28342 - This program is free software: you can redistribute it and/or modify
28343 - it under the terms of the GNU General Public License as published by
28344 - the Free Software Foundation; either version 3 of the License, or
28345 - (at your option) any later version.
28346 + This file is free software: you can redistribute it and/or modify
28347 + it under the terms of the GNU Lesser General Public License as
28348 + published by the Free Software Foundation, either version 3 of the
28349 + License, or (at your option) any later version.
28350
28351 - This program is distributed in the hope that it will be useful,
28352 + This file is distributed in the hope that it will be useful,
28353 but WITHOUT ANY WARRANTY; without even the implied warranty of
28354 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28355 - GNU General Public License for more details.
28356 + GNU Lesser General Public License for more details.
28357
28358 - You should have received a copy of the GNU General Public License
28359 + You should have received a copy of the GNU Lesser General Public License
28360 along with this program. If not, see <https://www.gnu.org/licenses/>. */
28361
28362 /* Written by Bruno Haible. */
28363 @@ -29,10 +29,16 @@
28364 # include "filename.h"
28365 # include "malloca.h"
28366
28367 +/* Don't assume that UNICODE is not defined. */
28368 +# undef CreateFile
28369 +# define CreateFile CreateFileA
28370 +# undef GetFileAttributes
28371 +# define GetFileAttributes GetFileAttributesA
28372 +
28373 int
28374 _gl_utimens_windows (const char *name, struct timespec ts[2])
28375 {
28376 - /* POSIX <http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>
28377 + /* POSIX <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_13>
28378 specifies: "More than two leading <slash> characters shall be treated as
28379 a single <slash> character." */
28380 if (ISSLASH (name[0]) && ISSLASH (name[1]) && ISSLASH (name[2]))
28381 @@ -224,7 +230,7 @@ _gl_utimens_windows (const char *name, struct timespec ts[2])
28382 errno = ENAMETOOLONG;
28383 break;
28384
28385 - case ERROR_DELETE_PENDING: /* XXX map to EACCESS or EPERM? */
28386 + case ERROR_DELETE_PENDING: /* XXX map to EACCES or EPERM? */
28387 errno = EPERM;
28388 break;
28389
28390 @@ -253,4 +259,30 @@ utime (const char *name, const struct utimbuf *ts)
28391 }
28392 }
28393
28394 +#else
28395 +
28396 +# include <errno.h>
28397 +# include <sys/stat.h>
28398 +# include "filename.h"
28399 +
28400 +int
28401 +utime (const char *name, const struct utimbuf *ts)
28402 +#undef utime
28403 +{
28404 +# if REPLACE_FUNC_UTIME_FILE
28405 + /* macOS 10.13 mistakenly succeeds when given a symbolic link to a
28406 + non-directory with a trailing slash. */
28407 + size_t len = strlen (name);
28408 + if (len > 0 && ISSLASH (name[len - 1]))
28409 + {
28410 + struct stat buf;
28411 +
28412 + if (stat (name, &buf) == -1 && errno != EOVERFLOW)
28413 + return -1;
28414 + }
28415 +# endif /* REPLACE_FUNC_UTIME_FILE */
28416 +
28417 + return utime (name, ts);
28418 +}
28419 +
28420 #endif
28421
28422 diff --git a/autotools/gnulib/utime.in.h b/autotools/gnulib/utime.in.h
28423 index f4b2804..6cf17b6 100644
28424 --- a/autotools/gnulib/utime.in.h
28425 +++ b/autotools/gnulib/utime.in.h
28426 @@ -1,18 +1,18 @@
28427 /* Substitute for and wrapper around <utime.h>.
28428 - Copyright (C) 2017-2019 Free Software Foundation, Inc.
28429 + Copyright (C) 2017-2022 Free Software Foundation, Inc.
28430
28431 - This program is free software; you can redistribute it and/or modify
28432 - it under the terms of the GNU General Public License as published by
28433 - the Free Software Foundation; either version 3, or (at your option)
28434 - any later version.
28435 + This file is free software: you can redistribute it and/or modify
28436 + it under the terms of the GNU Lesser General Public License as
28437 + published by the Free Software Foundation; either version 2.1 of the
28438 + License, or (at your option) any later version.
28439
28440 - This program is distributed in the hope that it will be useful,
28441 + This file is distributed in the hope that it will be useful,
28442 but WITHOUT ANY WARRANTY; without even the implied warranty of
28443 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28444 - GNU General Public License for more details.
28445 + GNU Lesser General Public License for more details.
28446
28447 - You should have received a copy of the GNU General Public License
28448 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
28449 + You should have received a copy of the GNU Lesser General Public License
28450 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
28451
28452 #ifndef _@GUARD_PREFIX@_UTIME_H
28453
28454 @@ -62,6 +62,12 @@
28455 _GL_FUNCDECL_RPL (utime, int, (const char *filename, const struct utimbuf *ts)
28456 _GL_ARG_NONNULL ((1)));
28457 _GL_CXXALIAS_RPL (utime, int, (const char *filename, const struct utimbuf *ts));
28458 +# elif defined _WIN32 && !defined __CYGWIN__
28459 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28460 +# undef utime
28461 +# define utime _utime
28462 +# endif
28463 +_GL_CXXALIAS_MDA (utime, int, (const char *filename, const struct utimbuf *ts));
28464 # else
28465 # if !@HAVE_UTIME@
28466 _GL_FUNCDECL_SYS (utime, int, (const char *filename, const struct utimbuf *ts)
28467 @@ -69,7 +75,9 @@ _GL_FUNCDECL_SYS (utime, int, (const char *filename, const struct utimbuf *ts)
28468 # endif
28469 _GL_CXXALIAS_SYS (utime, int, (const char *filename, const struct utimbuf *ts));
28470 # endif
28471 +# if __GLIBC__ >= 2
28472 _GL_CXXALIASWARN (utime);
28473 +# endif
28474 #elif defined GNULIB_POSIXCHECK
28475 # undef utime
28476 # if HAVE_RAW_DECL_UTIME
28477 @@ -77,6 +85,22 @@ _GL_WARN_ON_USE (utime,
28478 "utime is unportable - "
28479 "use gnulib module canonicalize-lgpl for portability");
28480 # endif
28481 +#elif @GNULIB_MDA_UTIME@
28482 +/* On native Windows, map 'utime' to '_utime', so that -loldnames is not
28483 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
28484 + platforms by defining GNULIB_NAMESPACE::utime always. */
28485 +# if defined _WIN32 && !defined __CYGWIN__
28486 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
28487 +# undef utime
28488 +# define utime _utime
28489 +# endif
28490 +_GL_CXXALIAS_MDA (utime, int, (const char *filename, const struct utimbuf *ts));
28491 +# else
28492 +_GL_CXXALIAS_SYS (utime, int, (const char *filename, const struct utimbuf *ts));
28493 +# endif
28494 +# if __GLIBC__ >= 2
28495 +_GL_CXXALIASWARN (utime);
28496 +# endif
28497 #endif
28498
28499 #if @GNULIB_UTIME@
28500
28501 diff --git a/autotools/gnulib/utimens.c b/autotools/gnulib/utimens.c
28502 index c9b65ef..2fa1251 100644
28503 --- a/autotools/gnulib/utimens.c
28504 +++ b/autotools/gnulib/utimens.c
28505 @@ -1,18 +1,18 @@
28506 /* Set file access and modification times.
28507
28508 - Copyright (C) 2003-2019 Free Software Foundation, Inc.
28509 + Copyright (C) 2003-2022 Free Software Foundation, Inc.
28510
28511 - This program is free software: you can redistribute it and/or modify it
28512 - under the terms of the GNU General Public License as published by the
28513 - Free Software Foundation; either version 3 of the License, or any
28514 - later version.
28515 + This file is free software: you can redistribute it and/or modify
28516 + it under the terms of the GNU Lesser General Public License as
28517 + published by the Free Software Foundation, either version 3 of the
28518 + License, or (at your option) any later version.
28519
28520 - This program is distributed in the hope that it will be useful,
28521 + This file is distributed in the hope that it will be useful,
28522 but WITHOUT ANY WARRANTY; without even the implied warranty of
28523 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28524 - GNU General Public License for more details.
28525 + GNU Lesser General Public License for more details.
28526
28527 - You should have received a copy of the GNU General Public License
28528 + You should have received a copy of the GNU Lesser General Public License
28529 along with this program. If not, see <https://www.gnu.org/licenses/>. */
28530
28531 /* Written by Paul Eggert. */
28532 @@ -27,6 +27,7 @@
28533 #include <errno.h>
28534 #include <fcntl.h>
28535 #include <stdbool.h>
28536 +#include <string.h>
28537 #include <sys/stat.h>
28538 #include <sys/time.h>
28539 #include <unistd.h>
28540 @@ -52,7 +53,9 @@
28541
28542 /* Avoid recursion with rpl_futimens or rpl_utimensat. */
28543 #undef futimens
28544 -#undef utimensat
28545 +#if !HAVE_NEARLY_WORKING_UTIMENSAT
28546 +# undef utimensat
28547 +#endif
28548
28549 /* Solaris 9 mistakenly succeeds when given a non-directory with a
28550 trailing slash. Force the use of rpl_stat for a fix. */
28551 @@ -123,14 +126,14 @@ validate_timespec (struct timespec timespec[2])
28552 return result + (utime_omit_count == 1);
28553 }
28554
28555 -/* Normalize any UTIME_NOW or UTIME_OMIT values in *TS, using stat
28556 - buffer STATBUF to obtain the current timestamps of the file. If
28557 +/* Normalize any UTIME_NOW or UTIME_OMIT values in (*TS)[0] and (*TS)[1],
28558 + using STATBUF to obtain the current timestamps of the file. If
28559 both times are UTIME_NOW, set *TS to NULL (as this can avoid some
28560 permissions issues). If both times are UTIME_OMIT, return true
28561 (nothing further beyond the prior collection of STATBUF is
28562 necessary); otherwise return false. */
28563 static bool
28564 -update_timespec (struct stat const *statbuf, struct timespec *ts[2])
28565 +update_timespec (struct stat const *statbuf, struct timespec **ts)
28566 {
28567 struct timespec *timespec = *ts;
28568 if (timespec[0].tv_nsec == UTIME_OMIT
28569 @@ -246,6 +249,20 @@ fdutimens (int fd, char const *file, struct timespec const timespec[2])
28570 # if HAVE_UTIMENSAT
28571 if (fd < 0)
28572 {
28573 +# if defined __APPLE__ && defined __MACH__
28574 + size_t len = strlen (file);
28575 + if (len > 0 && file[len - 1] == '/')
28576 + {
28577 + struct stat statbuf;
28578 + if (stat (file, &statbuf) < 0)
28579 + return -1;
28580 + if (!S_ISDIR (statbuf.st_mode))
28581 + {
28582 + errno = ENOTDIR;
28583 + return -1;
28584 + }
28585 + }
28586 +# endif
28587 result = utimensat (AT_FDCWD, file, ts, 0);
28588 # ifdef __linux__
28589 /* Work around a kernel bug:
28590
28591 diff --git a/autotools/gnulib/utimens.h b/autotools/gnulib/utimens.h
28592 index b174096..2ccc06e 100644
28593 --- a/autotools/gnulib/utimens.h
28594 +++ b/autotools/gnulib/utimens.h
28595 @@ -1,18 +1,18 @@
28596 /* Set file access and modification times.
28597
28598 - Copyright 2012-2019 Free Software Foundation, Inc.
28599 + Copyright 2012-2022 Free Software Foundation, Inc.
28600
28601 - This program is free software: you can redistribute it and/or modify it
28602 - under the terms of the GNU General Public License as published by the
28603 - Free Software Foundation; either version 3 of the License, or any
28604 - later version.
28605 + This file is free software: you can redistribute it and/or modify
28606 + it under the terms of the GNU Lesser General Public License as
28607 + published by the Free Software Foundation, either version 3 of the
28608 + License, or (at your option) any later version.
28609
28610 - This program is distributed in the hope that it will be useful,
28611 + This file is distributed in the hope that it will be useful,
28612 but WITHOUT ANY WARRANTY; without even the implied warranty of
28613 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28614 - GNU General Public License for more details.
28615 + GNU Lesser General Public License for more details.
28616
28617 - You should have received a copy of the GNU General Public License
28618 + You should have received a copy of the GNU Lesser General Public License
28619 along with this program. If not, see <https://www.gnu.org/licenses/>. */
28620
28621 /* Written by Paul Eggert. */
28622
28623 diff --git a/autotools/gnulib/utimensat.c b/autotools/gnulib/utimensat.c
28624 index e9ea626..f81b0c7 100644
28625 --- a/autotools/gnulib/utimensat.c
28626 +++ b/autotools/gnulib/utimensat.c
28627 @@ -1,9 +1,9 @@
28628 /* Set the access and modification time of a file relative to directory fd.
28629 - Copyright (C) 2009-2019 Free Software Foundation, Inc.
28630 + Copyright (C) 2009-2022 Free Software Foundation, Inc.
28631
28632 This program is free software: you can redistribute it and/or modify
28633 it under the terms of the GNU General Public License as published by
28634 - the Free Software Foundation; either version 3 of the License, or
28635 + the Free Software Foundation, either version 3 of the License, or
28636 (at your option) any later version.
28637
28638 This program is distributed in the hope that it will be useful,
28639 @@ -18,18 +18,46 @@
28640
28641 #include <config.h>
28642
28643 +/* Specification. */
28644 #include <sys/stat.h>
28645
28646 #include <errno.h>
28647 #include <fcntl.h>
28648 +#include <stdlib.h>
28649 +#include <string.h>
28650 +#include <sys/stat.h>
28651
28652 #include "stat-time.h"
28653 #include "timespec.h"
28654 #include "utimens.h"
28655
28656 -#if HAVE_UTIMENSAT
28657 +#if HAVE_NEARLY_WORKING_UTIMENSAT
28658
28659 +/* Use the original utimensat(), but correct the trailing slash handling. */
28660 +int
28661 +rpl_utimensat (int fd, char const *file, struct timespec const times[2],
28662 + int flag)
28663 # undef utimensat
28664 +{
28665 + size_t len = strlen (file);
28666 + if (len && file[len - 1] == '/')
28667 + {
28668 + struct stat st;
28669 + if (fstatat (fd, file, &st, flag & AT_SYMLINK_NOFOLLOW) < 0)
28670 + return -1;
28671 + if (!S_ISDIR (st.st_mode))
28672 + {
28673 + errno = ENOTDIR;
28674 + return -1;
28675 + }
28676 + }
28677 +
28678 + return utimensat (fd, file, times, flag);
28679 +}
28680 +
28681 +#else
28682 +
28683 +# if HAVE_UTIMENSAT
28684
28685 /* If we have a native utimensat, but are compiling this file, then
28686 utimensat was defined to rpl_utimensat by our replacement
28687 @@ -40,24 +68,25 @@
28688 local_utimensat provides the fallback manipulation. */
28689
28690 static int local_utimensat (int, char const *, struct timespec const[2], int);
28691 -# define AT_FUNC_NAME local_utimensat
28692 +# define AT_FUNC_NAME local_utimensat
28693
28694 /* Like utimensat, but work around native bugs. */
28695
28696 int
28697 rpl_utimensat (int fd, char const *file, struct timespec const times[2],
28698 int flag)
28699 +# undef utimensat
28700 {
28701 -# if defined __linux__ || defined __sun
28702 +# if defined __linux__ || defined __sun
28703 struct timespec ts[2];
28704 -# endif
28705 +# endif
28706
28707 /* See comments in utimens.c for details. */
28708 static int utimensat_works_really; /* 0 = unknown, 1 = yes, -1 = no. */
28709 if (0 <= utimensat_works_really)
28710 {
28711 int result;
28712 -# if defined __linux__ || defined __sun
28713 +# if defined __linux__ || defined __sun
28714 struct stat st;
28715 /* As recently as Linux kernel 2.6.32 (Dec 2009), several file
28716 systems (xfs, ntfs-3g) have bugs with a single UTIME_OMIT,
28717 @@ -88,7 +117,7 @@ rpl_utimensat (int fd, char const *file, struct timespec const times[2],
28718 ts[1] = times[1];
28719 times = ts;
28720 }
28721 -# ifdef __hppa__
28722 +# ifdef __hppa__
28723 /* Linux kernel 2.6.22.19 on hppa does not reject invalid tv_nsec
28724 values. */
28725 else if (times
28726 @@ -102,8 +131,36 @@ rpl_utimensat (int fd, char const *file, struct timespec const times[2],
28727 errno = EINVAL;
28728 return -1;
28729 }
28730 +# endif
28731 +# endif
28732 +# if defined __APPLE__ && defined __MACH__
28733 + /* macOS 10.13 does not reject invalid tv_nsec values either. */
28734 + if (times
28735 + && ((times[0].tv_nsec != UTIME_OMIT
28736 + && times[0].tv_nsec != UTIME_NOW
28737 + && ! (0 <= times[0].tv_nsec
28738 + && times[0].tv_nsec < TIMESPEC_HZ))
28739 + || (times[1].tv_nsec != UTIME_OMIT
28740 + && times[1].tv_nsec != UTIME_NOW
28741 + && ! (0 <= times[1].tv_nsec
28742 + && times[1].tv_nsec < TIMESPEC_HZ))))
28743 + {
28744 + errno = EINVAL;
28745 + return -1;
28746 + }
28747 + size_t len = strlen (file);
28748 + if (len > 0 && file[len - 1] == '/')
28749 + {
28750 + struct stat statbuf;
28751 + if (fstatat (fd, file, &statbuf, 0) < 0)
28752 + return -1;
28753 + if (!S_ISDIR (statbuf.st_mode))
28754 + {
28755 + errno = ENOTDIR;
28756 + return -1;
28757 + }
28758 + }
28759 # endif
28760 -# endif
28761 result = utimensat (fd, file, times, flag);
28762 /* Linux kernel 2.6.25 has a bug where it returns EINVAL for
28763 UTIME_NOW or UTIME_OMIT with non-zero tv_sec, which
28764 @@ -127,11 +184,11 @@ rpl_utimensat (int fd, char const *file, struct timespec const times[2],
28765 return local_utimensat (fd, file, times, flag);
28766 }
28767
28768 -#else /* !HAVE_UTIMENSAT */
28769 +# else /* !HAVE_UTIMENSAT */
28770
28771 -# define AT_FUNC_NAME utimensat
28772 +# define AT_FUNC_NAME utimensat
28773
28774 -#endif /* !HAVE_UTIMENSAT */
28775 +# endif /* !HAVE_UTIMENSAT */
28776
28777 /* Set the access and modification timestamps of FILE to be
28778 TIMESPEC[0] and TIMESPEC[1], respectively; relative to directory
28779 @@ -144,15 +201,17 @@ rpl_utimensat (int fd, char const *file, struct timespec const times[2],
28780 Return 0 on success, -1 (setting errno) on failure. */
28781
28782 /* AT_FUNC_NAME is now utimensat or local_utimensat. */
28783 -#define AT_FUNC_F1 lutimens
28784 -#define AT_FUNC_F2 utimens
28785 -#define AT_FUNC_USE_F1_COND AT_SYMLINK_NOFOLLOW
28786 -#define AT_FUNC_POST_FILE_PARAM_DECLS , struct timespec const ts[2], int flag
28787 -#define AT_FUNC_POST_FILE_ARGS , ts
28788 -#include "at-func.c"
28789 -#undef AT_FUNC_NAME
28790 -#undef AT_FUNC_F1
28791 -#undef AT_FUNC_F2
28792 -#undef AT_FUNC_USE_F1_COND
28793 -#undef AT_FUNC_POST_FILE_PARAM_DECLS
28794 -#undef AT_FUNC_POST_FILE_ARGS
28795 +# define AT_FUNC_F1 lutimens
28796 +# define AT_FUNC_F2 utimens
28797 +# define AT_FUNC_USE_F1_COND AT_SYMLINK_NOFOLLOW
28798 +# define AT_FUNC_POST_FILE_PARAM_DECLS , struct timespec const ts[2], int flag
28799 +# define AT_FUNC_POST_FILE_ARGS , ts
28800 +# include "at-func.c"
28801 +# undef AT_FUNC_NAME
28802 +# undef AT_FUNC_F1
28803 +# undef AT_FUNC_F2
28804 +# undef AT_FUNC_USE_F1_COND
28805 +# undef AT_FUNC_POST_FILE_PARAM_DECLS
28806 +# undef AT_FUNC_POST_FILE_ARGS
28807 +
28808 +#endif /* !HAVE_NEARLY_WORKING_UTIMENSAT */
28809
28810 diff --git a/autotools/gnulib/vasnprintf.c b/autotools/gnulib/vasnprintf.c
28811 index b3854e3..4857452 100644
28812 --- a/autotools/gnulib/vasnprintf.c
28813 +++ b/autotools/gnulib/vasnprintf.c
28814 @@ -1,18 +1,18 @@
28815 /* vsprintf with automatic memory allocation.
28816 - Copyright (C) 1999, 2002-2019 Free Software Foundation, Inc.
28817 + Copyright (C) 1999, 2002-2022 Free Software Foundation, Inc.
28818
28819 - This program is free software; you can redistribute it and/or modify
28820 - it under the terms of the GNU General Public License as published by
28821 - the Free Software Foundation; either version 3, or (at your option)
28822 - any later version.
28823 + This file is free software: you can redistribute it and/or modify
28824 + it under the terms of the GNU Lesser General Public License as
28825 + published by the Free Software Foundation; either version 2.1 of the
28826 + License, or (at your option) any later version.
28827
28828 - This program is distributed in the hope that it will be useful,
28829 + This file is distributed in the hope that it will be useful,
28830 but WITHOUT ANY WARRANTY; without even the implied warranty of
28831 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28832 - GNU General Public License for more details.
28833 + GNU Lesser General Public License for more details.
28834
28835 - You should have received a copy of the GNU General Public License along
28836 - with this program; if not, see <https://www.gnu.org/licenses/>. */
28837 + You should have received a copy of the GNU Lesser General Public License
28838 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
28839
28840 /* This file can be parametrized with the following macros:
28841 VASNPRINTF The name of the function being defined.
28842 @@ -41,7 +41,14 @@
28843 DCHAR_CONV_FROM_ENCODING A function to convert from char[] to DCHAR[].
28844 DCHAR_IS_UINT8_T Set to 1 if DCHAR_T is uint8_t.
28845 DCHAR_IS_UINT16_T Set to 1 if DCHAR_T is uint16_t.
28846 - DCHAR_IS_UINT32_T Set to 1 if DCHAR_T is uint32_t. */
28847 + DCHAR_IS_UINT32_T Set to 1 if DCHAR_T is uint32_t.
28848 + ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions.
28849 + ENABLE_WCHAR_FALLBACK Set to 1 to avoid EILSEQ during conversion of wide
28850 + characters (wchar_t) and wide character strings
28851 + (wchar_t[]) to multibyte sequences. The fallback is the
28852 + hexadecimal escape syntax (\unnnn or \Unnnnnnnn) or,
28853 + if wchar_t is not Unicode encoded, \wnnnn or \Wnnnnnnnn.
28854 + */
28855
28856 /* Tell glibc's <stdio.h> to provide a prototype for snprintf().
28857 This must come before <config.h> because <config.h> may include
28858 @@ -53,10 +60,16 @@
28859 #ifndef VASNPRINTF
28860 # include <config.h>
28861 #endif
28862 -#ifndef IN_LIBINTL
28863 -# include <alloca.h>
28864 +
28865 +/* As of GCC 11.2.1, gcc -Wanalyzer-too-complex reports that main's
28866 + use of CHECK macros expands to code that is too complicated for gcc
28867 + -fanalyzer. Suppress the resulting bogus warnings. */
28868 +#if 10 <= __GNUC__
28869 +# pragma GCC diagnostic ignored "-Wanalyzer-null-argument"
28870 #endif
28871
28872 +#include <alloca.h>
28873 +
28874 /* Specification. */
28875 #ifndef VASNPRINTF
28876 # if WIDE_CHAR_VERSION
28877 @@ -87,6 +100,7 @@
28878 /* Checked size_t computations. */
28879 #include "xsize.h"
28880
28881 +#include "attribute.h"
28882 #include "verify.h"
28883
28884 #if (NEED_PRINTF_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL
28885 @@ -118,14 +132,6 @@
28886 # include "fpucw.h"
28887 #endif
28888
28889 -#ifndef FALLTHROUGH
28890 -# if __GNUC__ < 7
28891 -# define FALLTHROUGH ((void) 0)
28892 -# else
28893 -# define FALLTHROUGH __attribute__ ((__fallthrough__))
28894 -# endif
28895 -#endif
28896 -
28897 /* Default parameters. */
28898 #ifndef VASNPRINTF
28899 # if WIDE_CHAR_VERSION
28900 @@ -277,6 +283,74 @@ local_wcsnlen (const wchar_t *s, size_t maxlen)
28901 # endif
28902 #endif
28903
28904 +#if (((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL) || ENABLE_WCHAR_FALLBACK) && HAVE_WCHAR_T) || (ENABLE_WCHAR_FALLBACK && HAVE_WINT_T)) && !WIDE_CHAR_VERSION
28905 +# if ENABLE_WCHAR_FALLBACK
28906 +static size_t
28907 +wctomb_fallback (char *s, wchar_t wc)
28908 +{
28909 + static char hex[16] = "0123456789ABCDEF";
28910 +
28911 + s[0] = '\\';
28912 + if (sizeof (wchar_t) > 2 && wc > 0xffff)
28913 + {
28914 +# if __STDC_ISO_10646__ || (__GLIBC__ >= 2) || (defined _WIN32 || defined __CYGWIN__)
28915 + s[1] = 'U';
28916 +# else
28917 + s[1] = 'W';
28918 +# endif
28919 + s[2] = hex[(wc & 0xf0000000U) >> 28];
28920 + s[3] = hex[(wc & 0xf000000U) >> 24];
28921 + s[4] = hex[(wc & 0xf00000U) >> 20];
28922 + s[5] = hex[(wc & 0xf0000U) >> 16];
28923 + s[6] = hex[(wc & 0xf000U) >> 12];
28924 + s[7] = hex[(wc & 0xf00U) >> 8];
28925 + s[8] = hex[(wc & 0xf0U) >> 4];
28926 + s[9] = hex[wc & 0xfU];
28927 + return 10;
28928 + }
28929 + else
28930 + {
28931 +# if __STDC_ISO_10646__ || (__GLIBC__ >= 2) || (defined _WIN32 || defined __CYGWIN__)
28932 + s[1] = 'u';
28933 +# else
28934 + s[1] = 'w';
28935 +# endif
28936 + s[2] = hex[(wc & 0xf000U) >> 12];
28937 + s[3] = hex[(wc & 0xf00U) >> 8];
28938 + s[4] = hex[(wc & 0xf0U) >> 4];
28939 + s[5] = hex[wc & 0xfU];
28940 + return 6;
28941 + }
28942 +}
28943 +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t
28944 +static size_t
28945 +local_wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
28946 +{
28947 + size_t count = wcrtomb (s, wc, ps);
28948 + if (count == (size_t)(-1))
28949 + count = wctomb_fallback (s, wc);
28950 + return count;
28951 +}
28952 +# else
28953 +static int
28954 +local_wctomb (char *s, wchar_t wc)
28955 +{
28956 + int count = wctomb (s, wc);
28957 + if (count < 0)
28958 + count = wctomb_fallback (s, wc);
28959 + return count;
28960 +}
28961 +# define local_wcrtomb(S, WC, PS) local_wctomb ((S), (WC))
28962 +# endif
28963 +# else
28964 +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t
28965 +# define local_wcrtomb(S, WC, PS) wcrtomb ((S), (WC), (PS))
28966 +# else
28967 +# define local_wcrtomb(S, WC, PS) wctomb ((S), (WC))
28968 +# endif
28969 +# endif
28970 +#endif
28971 +
28972 #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL
28973 /* Determine the decimal-point character according to the current locale. */
28974 # ifndef decimal_point_char_defined
28975 @@ -565,7 +639,8 @@ divide (mpn_t a, mpn_t b, mpn_t *q)
28976 mp_limb_t msd = b_ptr[b_len - 1]; /* = b[n-1], > 0 */
28977 /* Determine s = GMP_LIMB_BITS - integer_length (msd).
28978 Code copied from gnulib's integer_length.c. */
28979 -# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
28980 +# if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) \
28981 + || (__clang_major__ >= 4)
28982 s = __builtin_clz (msd);
28983 # else
28984 # if defined DBL_EXPBIT0_WORD && defined DBL_EXPBIT0_BIT
28985 @@ -1553,16 +1628,13 @@ MAX_ROOM_NEEDED (const arguments *ap, size_t arg_index, FCHAR_T conversion,
28986 switch (conversion)
28987 {
28988 case 'd': case 'i': case 'u':
28989 -# if HAVE_LONG_LONG_INT
28990 if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT)
28991 tmp_length =
28992 (unsigned int) (sizeof (unsigned long long) * CHAR_BIT
28993 * 0.30103 /* binary -> decimal */
28994 )
28995 + 1; /* turn floor into ceil */
28996 - else
28997 -# endif
28998 - if (type == TYPE_LONGINT || type == TYPE_ULONGINT)
28999 + else if (type == TYPE_LONGINT || type == TYPE_ULONGINT)
29000 tmp_length =
29001 (unsigned int) (sizeof (unsigned long) * CHAR_BIT
29002 * 0.30103 /* binary -> decimal */
29003 @@ -1583,16 +1655,13 @@ MAX_ROOM_NEEDED (const arguments *ap, size_t arg_index, FCHAR_T conversion,
29004 break;
29005
29006 case 'o':
29007 -# if HAVE_LONG_LONG_INT
29008 if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT)
29009 tmp_length =
29010 (unsigned int) (sizeof (unsigned long long) * CHAR_BIT
29011 * 0.333334 /* binary -> octal */
29012 )
29013 + 1; /* turn floor into ceil */
29014 - else
29015 -# endif
29016 - if (type == TYPE_LONGINT || type == TYPE_ULONGINT)
29017 + else if (type == TYPE_LONGINT || type == TYPE_ULONGINT)
29018 tmp_length =
29019 (unsigned int) (sizeof (unsigned long) * CHAR_BIT
29020 * 0.333334 /* binary -> octal */
29021 @@ -1611,16 +1680,13 @@ MAX_ROOM_NEEDED (const arguments *ap, size_t arg_index, FCHAR_T conversion,
29022 break;
29023
29024 case 'x': case 'X':
29025 -# if HAVE_LONG_LONG_INT
29026 if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT)
29027 tmp_length =
29028 (unsigned int) (sizeof (unsigned long long) * CHAR_BIT
29029 * 0.25 /* binary -> hexadecimal */
29030 )
29031 + 1; /* turn floor into ceil */
29032 - else
29033 -# endif
29034 - if (type == TYPE_LONGINT || type == TYPE_ULONGINT)
29035 + else if (type == TYPE_LONGINT || type == TYPE_ULONGINT)
29036 tmp_length =
29037 (unsigned int) (sizeof (unsigned long) * CHAR_BIT
29038 * 0.25 /* binary -> hexadecimal */
29039 @@ -1686,7 +1752,13 @@ MAX_ROOM_NEEDED (const arguments *ap, size_t arg_index, FCHAR_T conversion,
29040 case 'c':
29041 # if HAVE_WINT_T && !WIDE_CHAR_VERSION
29042 if (type == TYPE_WIDE_CHAR)
29043 - tmp_length = MB_CUR_MAX;
29044 + {
29045 + tmp_length = MB_CUR_MAX;
29046 +# if ENABLE_WCHAR_FALLBACK
29047 + if (tmp_length < (sizeof (wchar_t) > 2 ? 10 : 6))
29048 + tmp_length = (sizeof (wchar_t) > 2 ? 10 : 6);
29049 +# endif
29050 + }
29051 else
29052 # endif
29053 tmp_length = 1;
29054 @@ -1793,6 +1865,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29055 /* errno is already set. */
29056 return NULL;
29057
29058 + /* Frees the memory allocated by this function. Preserves errno. */
29059 #define CLEANUP() \
29060 if (d.dir != d.direct_alloc_dir) \
29061 free (d.dir); \
29062 @@ -1857,7 +1930,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29063
29064 /* Ensures that allocated >= needed. Aborts through a jump to
29065 out_of_memory if needed is SIZE_MAX or otherwise too big. */
29066 -#define ENSURE_ALLOCATION(needed) \
29067 +#define ENSURE_ALLOCATION_ELSE(needed, oom_statement) \
29068 if ((needed) > allocated) \
29069 { \
29070 size_t memory_size; \
29071 @@ -1868,17 +1941,19 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29072 allocated = (needed); \
29073 memory_size = xtimes (allocated, sizeof (DCHAR_T)); \
29074 if (size_overflow_p (memory_size)) \
29075 - goto out_of_memory; \
29076 + oom_statement \
29077 if (result == resultbuf || result == NULL) \
29078 memory = (DCHAR_T *) malloc (memory_size); \
29079 else \
29080 memory = (DCHAR_T *) realloc (result, memory_size); \
29081 if (memory == NULL) \
29082 - goto out_of_memory; \
29083 + oom_statement \
29084 if (result == resultbuf && length > 0) \
29085 DCHAR_CPY (memory, result, length); \
29086 result = memory; \
29087 }
29088 +#define ENSURE_ALLOCATION(needed) \
29089 + ENSURE_ALLOCATION_ELSE((needed), goto out_of_memory; )
29090
29091 for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++)
29092 {
29093 @@ -1939,11 +2014,9 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29094 case TYPE_COUNT_LONGINT_POINTER:
29095 *a.arg[dp->arg_index].a.a_count_longint_pointer = length;
29096 break;
29097 -#if HAVE_LONG_LONG_INT
29098 case TYPE_COUNT_LONGLONGINT_POINTER:
29099 *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length;
29100 break;
29101 -#endif
29102 default:
29103 abort ();
29104 }
29105 @@ -2119,18 +2192,17 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29106 # endif
29107 if (converted == NULL)
29108 {
29109 - int saved_errno = errno;
29110 if (!(result == resultbuf || result == NULL))
29111 free (result);
29112 if (buf_malloced != NULL)
29113 free (buf_malloced);
29114 CLEANUP ();
29115 - errno = saved_errno;
29116 return NULL;
29117 }
29118 if (converted != result + length)
29119 {
29120 - ENSURE_ALLOCATION (xsum (length, converted_len));
29121 + ENSURE_ALLOCATION_ELSE (xsum (length, converted_len),
29122 + { free (converted); goto out_of_memory; });
29123 DCHAR_CPY (result + length, converted, converted_len);
29124 free (converted);
29125 }
29126 @@ -2245,18 +2317,17 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29127 # endif
29128 if (converted == NULL)
29129 {
29130 - int saved_errno = errno;
29131 if (!(result == resultbuf || result == NULL))
29132 free (result);
29133 if (buf_malloced != NULL)
29134 free (buf_malloced);
29135 CLEANUP ();
29136 - errno = saved_errno;
29137 return NULL;
29138 }
29139 if (converted != result + length)
29140 {
29141 - ENSURE_ALLOCATION (xsum (length, converted_len));
29142 + ENSURE_ALLOCATION_ELSE (xsum (length, converted_len),
29143 + { free (converted); goto out_of_memory; });
29144 DCHAR_CPY (result + length, converted, converted_len);
29145 free (converted);
29146 }
29147 @@ -2371,18 +2442,17 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29148 # endif
29149 if (converted == NULL)
29150 {
29151 - int saved_errno = errno;
29152 if (!(result == resultbuf || result == NULL))
29153 free (result);
29154 if (buf_malloced != NULL)
29155 free (buf_malloced);
29156 CLEANUP ();
29157 - errno = saved_errno;
29158 return NULL;
29159 }
29160 if (converted != result + length)
29161 {
29162 - ENSURE_ALLOCATION (xsum (length, converted_len));
29163 + ENSURE_ALLOCATION_ELSE (xsum (length, converted_len),
29164 + { free (converted); goto out_of_memory; });
29165 DCHAR_CPY (result + length, converted, converted_len);
29166 free (converted);
29167 }
29168 @@ -2405,7 +2475,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29169 }
29170 }
29171 #endif
29172 -#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && HAVE_WCHAR_T
29173 +#if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL) || ENABLE_WCHAR_FALLBACK) && HAVE_WCHAR_T
29174 else if (dp->conversion == 's'
29175 # if WIDE_CHAR_VERSION
29176 && a.arg[dp->arg_index].type != TYPE_WIDE_STRING
29177 @@ -2680,11 +2750,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29178 if (*arg_end == 0)
29179 /* Found the terminating null wide character. */
29180 break;
29181 -# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t
29182 - count = wcrtomb (cbuf, *arg_end, &state);
29183 -# else
29184 - count = wctomb (cbuf, *arg_end);
29185 -# endif
29186 + count = local_wcrtomb (cbuf, *arg_end, &state);
29187 if (count < 0)
29188 {
29189 /* Cannot convert. */
29190 @@ -2725,11 +2791,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29191 if (*arg_end == 0)
29192 /* Found the terminating null wide character. */
29193 break;
29194 -# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t
29195 - count = wcrtomb (cbuf, *arg_end, &state);
29196 -# else
29197 - count = wctomb (cbuf, *arg_end);
29198 -# endif
29199 + count = local_wcrtomb (cbuf, *arg_end, &state);
29200 if (count < 0)
29201 {
29202 /* Cannot convert. */
29203 @@ -2774,11 +2836,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29204
29205 if (*arg == 0)
29206 abort ();
29207 -# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t
29208 - count = wcrtomb (cbuf, *arg, &state);
29209 -# else
29210 - count = wctomb (cbuf, *arg);
29211 -# endif
29212 + count = local_wcrtomb (cbuf, *arg, &state);
29213 if (count <= 0)
29214 /* Inconsistency. */
29215 abort ();
29216 @@ -2800,14 +2858,12 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29217 NULL, &tmpdst_len);
29218 if (tmpdst == NULL)
29219 {
29220 - int saved_errno = errno;
29221 free (tmpsrc);
29222 if (!(result == resultbuf || result == NULL))
29223 free (result);
29224 if (buf_malloced != NULL)
29225 free (buf_malloced);
29226 CLEANUP ();
29227 - errno = saved_errno;
29228 return NULL;
29229 }
29230 free (tmpsrc);
29231 @@ -2855,11 +2911,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29232
29233 if (*arg == 0)
29234 abort ();
29235 -# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t
29236 - count = wcrtomb (cbuf, *arg, &state);
29237 -# else
29238 - count = wctomb (cbuf, *arg);
29239 -# endif
29240 + count = local_wcrtomb (cbuf, *arg, &state);
29241 if (count <= 0)
29242 /* Inconsistency. */
29243 abort ();
29244 @@ -2884,11 +2936,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29245
29246 if (*arg == 0)
29247 abort ();
29248 -# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t
29249 - count = wcrtomb (cbuf, *arg, &state);
29250 -# else
29251 - count = wctomb (cbuf, *arg);
29252 -# endif
29253 + count = local_wcrtomb (cbuf, *arg, &state);
29254 if (count <= 0)
29255 {
29256 /* Cannot convert. */
29257 @@ -2907,7 +2955,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29258 }
29259 }
29260 # else
29261 - ENSURE_ALLOCATION (xsum (length, tmpdst_len));
29262 + ENSURE_ALLOCATION_ELSE (xsum (length, tmpdst_len),
29263 + { free (tmpdst); goto out_of_memory; });
29264 DCHAR_CPY (result + length, tmpdst, tmpdst_len);
29265 free (tmpdst);
29266 length += tmpdst_len;
29267 @@ -2924,6 +2973,209 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29268 # endif
29269 }
29270 #endif
29271 +#if ENABLE_WCHAR_FALLBACK && HAVE_WINT_T && !WIDE_CHAR_VERSION
29272 + else if (dp->conversion == 'c'
29273 + && a.arg[dp->arg_index].type == TYPE_WIDE_CHAR)
29274 + {
29275 + /* Implement the 'lc' directive ourselves, in order to provide
29276 + the fallback that avoids EILSEQ. */
29277 + int flags = dp->flags;
29278 + int has_width;
29279 + size_t width;
29280 +
29281 + has_width = 0;
29282 + width = 0;
29283 + if (dp->width_start != dp->width_end)
29284 + {
29285 + if (dp->width_arg_index != ARG_NONE)
29286 + {
29287 + int arg;
29288 +
29289 + if (!(a.arg[dp->width_arg_index].type == TYPE_INT))
29290 + abort ();
29291 + arg = a.arg[dp->width_arg_index].a.a_int;
29292 + width = arg;
29293 + if (arg < 0)
29294 + {
29295 + /* "A negative field width is taken as a '-' flag
29296 + followed by a positive field width." */
29297 + flags |= FLAG_LEFT;
29298 + width = -width;
29299 + }
29300 + }
29301 + else
29302 + {
29303 + const FCHAR_T *digitp = dp->width_start;
29304 +
29305 + do
29306 + width = xsum (xtimes (width, 10), *digitp++ - '0');
29307 + while (digitp != dp->width_end);
29308 + }
29309 + has_width = 1;
29310 + }
29311 +
29312 + /* %lc in vasnprintf. See the specification of fprintf. */
29313 + {
29314 + wchar_t arg = (wchar_t) a.arg[dp->arg_index].a.a_wide_char;
29315 + size_t characters;
29316 +# if !DCHAR_IS_TCHAR
29317 + /* This code assumes that TCHAR_T is 'char'. */
29318 + verify (sizeof (TCHAR_T) == 1);
29319 + TCHAR_T tmpsrc[64]; /* Assume MB_CUR_MAX <= 64. */
29320 + DCHAR_T *tmpdst;
29321 + size_t tmpdst_len;
29322 +# endif
29323 + size_t w;
29324 +
29325 +# if DCHAR_IS_TCHAR
29326 + if (has_width)
29327 +# endif
29328 + {
29329 + /* Count the number of bytes. */
29330 + characters = 0;
29331 + if (arg != 0)
29332 + {
29333 + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */
29334 + int count;
29335 +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t
29336 + mbstate_t state;
29337 + memset (&state, '\0', sizeof (mbstate_t));
29338 +# endif
29339 +
29340 + count = local_wcrtomb (cbuf, arg, &state);
29341 + if (count < 0)
29342 + /* Inconsistency. */
29343 + abort ();
29344 + characters = count;
29345 + }
29346 + }
29347 +# if DCHAR_IS_TCHAR
29348 + else
29349 + {
29350 + /* The number of bytes doesn't matter. */
29351 + characters = 0;
29352 + }
29353 +# endif
29354 +
29355 +# if !DCHAR_IS_TCHAR
29356 + /* Convert the string into a piece of temporary memory. */
29357 + if (characters > 0) /* implies arg != 0 */
29358 + {
29359 + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */
29360 + int count;
29361 +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t
29362 + mbstate_t state;
29363 + memset (&state, '\0', sizeof (mbstate_t));
29364 +# endif
29365 +
29366 + count = local_wcrtomb (cbuf, arg, &state);
29367 + if (count <= 0)
29368 + /* Inconsistency. */
29369 + abort ();
29370 + memcpy (tmpsrc, cbuf, count);
29371 + }
29372 +
29373 + /* Convert from TCHAR_T[] to DCHAR_T[]. */
29374 + tmpdst =
29375 + DCHAR_CONV_FROM_ENCODING (locale_charset (),
29376 + iconveh_question_mark,
29377 + tmpsrc, characters,
29378 + NULL,
29379 + NULL, &tmpdst_len);
29380 + if (tmpdst == NULL)
29381 + {
29382 + if (!(result == resultbuf || result == NULL))
29383 + free (result);
29384 + if (buf_malloced != NULL)
29385 + free (buf_malloced);
29386 + CLEANUP ();
29387 + return NULL;
29388 + }
29389 +# endif
29390 +
29391 + if (has_width)
29392 + {
29393 +# if ENABLE_UNISTDIO
29394 + /* Outside POSIX, it's preferable to compare the width
29395 + against the number of _characters_ of the converted
29396 + value. */
29397 + w = DCHAR_MBSNLEN (result + length, characters);
29398 +# else
29399 + /* The width is compared against the number of _bytes_
29400 + of the converted value, says POSIX. */
29401 + w = characters;
29402 +# endif
29403 + }
29404 + else
29405 + /* w doesn't matter. */
29406 + w = 0;
29407 +
29408 + if (w < width && !(dp->flags & FLAG_LEFT))
29409 + {
29410 + size_t n = width - w;
29411 + ENSURE_ALLOCATION (xsum (length, n));
29412 + DCHAR_SET (result + length, ' ', n);
29413 + length += n;
29414 + }
29415 +
29416 +# if DCHAR_IS_TCHAR
29417 + if (has_width)
29418 + {
29419 + /* We know the number of bytes in advance. */
29420 + ENSURE_ALLOCATION (xsum (length, characters));
29421 + if (characters > 0) /* implies arg != 0 */
29422 + {
29423 + int count;
29424 +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t
29425 + mbstate_t state;
29426 + memset (&state, '\0', sizeof (mbstate_t));
29427 +# endif
29428 +
29429 + count = local_wcrtomb (result + length, arg, &state);
29430 + if (count <= 0)
29431 + /* Inconsistency. */
29432 + abort ();
29433 + length += count;
29434 + }
29435 + }
29436 + else
29437 + {
29438 + if (arg != 0)
29439 + {
29440 + char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */
29441 + int count;
29442 +# if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t
29443 + mbstate_t state;
29444 + memset (&state, '\0', sizeof (mbstate_t));
29445 +# endif
29446 +
29447 + count = local_wcrtomb (cbuf, arg, &state);
29448 + if (count <= 0)
29449 + /* Inconsistency. */
29450 + abort ();
29451 + ENSURE_ALLOCATION (xsum (length, count));
29452 + memcpy (result + length, cbuf, count);
29453 + length += count;
29454 + }
29455 + }
29456 +# else
29457 + ENSURE_ALLOCATION_ELSE (xsum (length, tmpdst_len),
29458 + { free (tmpdst); goto out_of_memory; });
29459 + DCHAR_CPY (result + length, tmpdst, tmpdst_len);
29460 + free (tmpdst);
29461 + length += tmpdst_len;
29462 +# endif
29463 +
29464 + if (w < width && (dp->flags & FLAG_LEFT))
29465 + {
29466 + size_t n = width - w;
29467 + ENSURE_ALLOCATION (xsum (length, n));
29468 + DCHAR_SET (result + length, ' ', n);
29469 + length += n;
29470 + }
29471 + }
29472 + }
29473 +#endif
29474 #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL
29475 else if ((dp->conversion == 'a' || dp->conversion == 'A')
29476 # if !(NEED_PRINTF_DIRECTIVE_A || (NEED_PRINTF_LONG_DOUBLE && NEED_PRINTF_DOUBLE))
29477 @@ -4835,17 +5087,15 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29478
29479 switch (type)
29480 {
29481 -#if HAVE_LONG_LONG_INT
29482 case TYPE_LONGLONGINT:
29483 case TYPE_ULONGLONGINT:
29484 -# if defined _WIN32 && ! defined __CYGWIN__
29485 +#if defined _WIN32 && ! defined __CYGWIN__
29486 *fbp++ = 'I';
29487 *fbp++ = '6';
29488 *fbp++ = '4';
29489 break;
29490 -# else
29491 +#else
29492 *fbp++ = 'l';
29493 -# endif
29494 #endif
29495 FALLTHROUGH;
29496 case TYPE_LONGINT:
29497 @@ -4871,39 +5121,32 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29498 #endif
29499 *fbp = dp->conversion;
29500 #if USE_SNPRINTF
29501 -# if ! (((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) \
29502 - && !defined __UCLIBC__) \
29503 - || (defined __APPLE__ && defined __MACH__) \
29504 - || defined __ANDROID__ \
29505 - || (defined _WIN32 && ! defined __CYGWIN__))
29506 - fbp[1] = '%';
29507 - fbp[2] = 'n';
29508 - fbp[3] = '\0';
29509 -# else
29510 - /* On glibc2 systems from glibc >= 2.3 - probably also older
29511 - ones - we know that snprintf's return value conforms to
29512 - ISO C 99: the tests gl_SNPRINTF_RETVAL_C99 and
29513 - gl_SNPRINTF_TRUNCATION_C99 pass.
29514 - Therefore we can avoid using %n in this situation.
29515 - On glibc2 systems from 2004-10-18 or newer, the use of %n
29516 - in format strings in writable memory may crash the program
29517 - (if compiled with _FORTIFY_SOURCE=2), so we should avoid it
29518 - in this situation. */
29519 - /* On Mac OS X 10.3 or newer, we know that snprintf's return
29520 - value conforms to ISO C 99: the tests gl_SNPRINTF_RETVAL_C99
29521 - and gl_SNPRINTF_TRUNCATION_C99 pass.
29522 - Therefore we can avoid using %n in this situation.
29523 - On Mac OS X 10.13 or newer, the use of %n in format strings
29524 - in writable memory by default crashes the program, so we
29525 - should avoid it in this situation. */
29526 - /* On Android, we know that snprintf's return value conforms to
29527 - ISO C 99: the tests gl_SNPRINTF_RETVAL_C99 and
29528 - gl_SNPRINTF_TRUNCATION_C99 pass.
29529 - Therefore we can avoid using %n in this situation.
29530 - Starting on 2018-03-07, the use of %n in format strings
29531 - produces a fatal error (see
29532 - <https://android.googlesource.com/platform/bionic/+/41398d03b7e8e0dfb951660ae713e682e9fc0336>),
29533 - so we should avoid it. */
29534 +# if ((HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99) \
29535 + || ((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) \
29536 + && !defined __UCLIBC__) \
29537 + || (defined __APPLE__ && defined __MACH__) \
29538 + || defined __ANDROID__ \
29539 + || (defined _WIN32 && ! defined __CYGWIN__))
29540 + /* On systems where we know that snprintf's return value
29541 + conforms to ISO C 99 (HAVE_SNPRINTF_RETVAL_C99) and that
29542 + snprintf always produces NUL-terminated strings
29543 + (HAVE_SNPRINTF_TRUNCATION_C99), it is possible to avoid
29544 + using %n. And it is desirable to do so, because more and
29545 + more platforms no longer support %n, for "security reasons".
29546 + In particular, the following platforms:
29547 + - On glibc2 systems from 2004-10-18 or newer, the use of
29548 + %n in format strings in writable memory may crash the
29549 + program (if compiled with _FORTIFY_SOURCE=2).
29550 + - On Mac OS X 10.13 or newer, the use of %n in format
29551 + strings in writable memory by default crashes the
29552 + program.
29553 + - On Android, starting on 2018-03-07, the use of %n in
29554 + format strings produces a fatal error (see
29555 + <https://android.googlesource.com/platform/bionic/+/41398d03b7e8e0dfb951660ae713e682e9fc0336>).
29556 + On these platforms, HAVE_SNPRINTF_RETVAL_C99 and
29557 + HAVE_SNPRINTF_TRUNCATION_C99 are 1. We have listed them
29558 + explicitly in the condition above, in case of cross-
29559 + compilation (just to be sure). */
29560 /* On native Windows systems (such as mingw), we can avoid using
29561 %n because:
29562 - Although the gl_SNPRINTF_TRUNCATION_C99 test fails,
29563 @@ -4920,6 +5163,10 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29564 <https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/set-printf-count-output>
29565 So we should avoid %n in this situation. */
29566 fbp[1] = '\0';
29567 +# else /* AIX <= 5.1, HP-UX, IRIX, OSF/1, Solaris <= 9, BeOS */
29568 + fbp[1] = '%';
29569 + fbp[2] = 'n';
29570 + fbp[3] = '\0';
29571 # endif
29572 #else
29573 fbp[1] = '\0';
29574 @@ -5063,7 +5310,6 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29575 SNPRINTF_BUF (arg);
29576 }
29577 break;
29578 -#if HAVE_LONG_LONG_INT
29579 case TYPE_LONGLONGINT:
29580 {
29581 long long int arg = a.arg[dp->arg_index].a.a_longlongint;
29582 @@ -5076,7 +5322,6 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29583 SNPRINTF_BUF (arg);
29584 }
29585 break;
29586 -#endif
29587 case TYPE_DOUBLE:
29588 {
29589 double arg = a.arg[dp->arg_index].a.a_double;
29590 @@ -5208,15 +5453,14 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29591 /* Attempt to handle failure. */
29592 if (count < 0)
29593 {
29594 - /* SNPRINTF or sprintf failed. Save and use the errno
29595 - that it has set, if any. */
29596 - int saved_errno = errno;
29597 - if (saved_errno == 0)
29598 + /* SNPRINTF or sprintf failed. Use the errno that it
29599 + has set, if any. */
29600 + if (errno == 0)
29601 {
29602 if (dp->conversion == 'c' || dp->conversion == 's')
29603 - saved_errno = EILSEQ;
29604 + errno = EILSEQ;
29605 else
29606 - saved_errno = EINVAL;
29607 + errno = EINVAL;
29608 }
29609
29610 if (!(result == resultbuf || result == NULL))
29611 @@ -5225,7 +5469,6 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29612 free (buf_malloced);
29613 CLEANUP ();
29614
29615 - errno = saved_errno;
29616 return NULL;
29617 }
29618
29619 @@ -5361,16 +5604,15 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
29620 NULL, &tmpdst_len);
29621 if (tmpdst == NULL)
29622 {
29623 - int saved_errno = errno;
29624 if (!(result == resultbuf || result == NULL))
29625 free (result);
29626 if (buf_malloced != NULL)
29627 free (buf_malloced);
29628 CLEANUP ();
29629 - errno = saved_errno;
29630 return NULL;
29631 }
29632 - ENSURE_ALLOCATION (xsum (length, tmpdst_len));
29633 + ENSURE_ALLOCATION_ELSE (xsum (length, tmpdst_len),
29634 + { free (tmpdst); goto out_of_memory; });
29635 DCHAR_CPY (result + length, tmpdst, tmpdst_len);
29636 free (tmpdst);
29637 count = tmpdst_len;
29638
29639 diff --git a/autotools/gnulib/vasnprintf.h b/autotools/gnulib/vasnprintf.h
29640 index 5b192b2..27cf54c 100644
29641 --- a/autotools/gnulib/vasnprintf.h
29642 +++ b/autotools/gnulib/vasnprintf.h
29643 @@ -1,18 +1,18 @@
29644 /* vsprintf with automatic memory allocation.
29645 - Copyright (C) 2002-2004, 2007-2019 Free Software Foundation, Inc.
29646 + Copyright (C) 2002-2004, 2007-2022 Free Software Foundation, Inc.
29647
29648 - This program is free software; you can redistribute it and/or modify
29649 - it under the terms of the GNU General Public License as published by
29650 - the Free Software Foundation; either version 3, or (at your option)
29651 - any later version.
29652 + This file is free software: you can redistribute it and/or modify
29653 + it under the terms of the GNU Lesser General Public License as
29654 + published by the Free Software Foundation; either version 2.1 of the
29655 + License, or (at your option) any later version.
29656
29657 - This program is distributed in the hope that it will be useful,
29658 + This file is distributed in the hope that it will be useful,
29659 but WITHOUT ANY WARRANTY; without even the implied warranty of
29660 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29661 - GNU General Public License for more details.
29662 + GNU Lesser General Public License for more details.
29663
29664 - You should have received a copy of the GNU General Public License along
29665 - with this program; if not, see <https://www.gnu.org/licenses/>. */
29666 + You should have received a copy of the GNU Lesser General Public License
29667 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
29668
29669 #ifndef _VASNPRINTF_H
29670 #define _VASNPRINTF_H
29671 @@ -23,17 +23,8 @@
29672 /* Get size_t. */
29673 #include <stddef.h>
29674
29675 -/* The __attribute__ feature is available in gcc versions 2.5 and later.
29676 - The __-protected variants of the attributes 'format' and 'printf' are
29677 - accepted by gcc versions 2.6.4 (effectively 2.7) and later.
29678 - We enable _GL_ATTRIBUTE_FORMAT only if these are supported too, because
29679 - gnulib and libintl do '#define printf __printf__' when they override
29680 - the 'printf' function. */
29681 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
29682 -# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
29683 -#else
29684 -# define _GL_ATTRIBUTE_FORMAT(spec) /* empty */
29685 -#endif
29686 +/* Get _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD. */
29687 +#include <stdio.h>
29688
29689 #ifdef __cplusplus
29690 extern "C" {
29691 @@ -67,10 +58,12 @@ extern "C" {
29692 # define asnprintf rpl_asnprintf
29693 # define vasnprintf rpl_vasnprintf
29694 #endif
29695 -extern char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...)
29696 - _GL_ATTRIBUTE_FORMAT ((__printf__, 3, 4));
29697 -extern char * vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args)
29698 - _GL_ATTRIBUTE_FORMAT ((__printf__, 3, 0));
29699 +extern char * asnprintf (char *restrict resultbuf, size_t *lengthp,
29700 + const char *format, ...)
29701 + _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 3, 4));
29702 +extern char * vasnprintf (char *restrict resultbuf, size_t *lengthp,
29703 + const char *format, va_list args)
29704 + _GL_ATTRIBUTE_FORMAT ((_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD, 3, 0));
29705
29706 #ifdef __cplusplus
29707 }
29708
29709 diff --git a/autotools/gnulib/vasprintf.c b/autotools/gnulib/vasprintf.c
29710 index f5857ca..218275f 100644
29711 --- a/autotools/gnulib/vasprintf.c
29712 +++ b/autotools/gnulib/vasprintf.c
29713 @@ -1,18 +1,18 @@
29714 /* Formatted output to strings.
29715 - Copyright (C) 1999, 2002, 2006-2019 Free Software Foundation, Inc.
29716 + Copyright (C) 1999, 2002, 2006-2022 Free Software Foundation, Inc.
29717
29718 - This program is free software; you can redistribute it and/or modify
29719 - it under the terms of the GNU General Public License as published by
29720 - the Free Software Foundation; either version 3, or (at your option)
29721 - any later version.
29722 + This file is free software: you can redistribute it and/or modify
29723 + it under the terms of the GNU Lesser General Public License as
29724 + published by the Free Software Foundation; either version 2.1 of the
29725 + License, or (at your option) any later version.
29726
29727 - This program is distributed in the hope that it will be useful,
29728 + This file is distributed in the hope that it will be useful,
29729 but WITHOUT ANY WARRANTY; without even the implied warranty of
29730 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29731 - GNU General Public License for more details.
29732 + GNU Lesser General Public License for more details.
29733
29734 - You should have received a copy of the GNU General Public License along
29735 - with this program; if not, see <https://www.gnu.org/licenses/>. */
29736 + You should have received a copy of the GNU Lesser General Public License
29737 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
29738
29739 #include <config.h>
29740
29741
29742 diff --git a/autotools/gnulib/verify.h b/autotools/gnulib/verify.h
29743 index 6930645..07b2f48 100644
29744 --- a/autotools/gnulib/verify.h
29745 +++ b/autotools/gnulib/verify.h
29746 @@ -1,18 +1,18 @@
29747 /* Compile-time assert-like macros.
29748
29749 - Copyright (C) 2005-2006, 2009-2019 Free Software Foundation, Inc.
29750 + Copyright (C) 2005-2006, 2009-2022 Free Software Foundation, Inc.
29751
29752 - This program is free software: you can redistribute it and/or modify
29753 - it under the terms of the GNU General Public License as published by
29754 - the Free Software Foundation; either version 3 of the License, or
29755 - (at your option) any later version.
29756 + This file is free software: you can redistribute it and/or modify
29757 + it under the terms of the GNU Lesser General Public License as
29758 + published by the Free Software Foundation; either version 2.1 of the
29759 + License, or (at your option) any later version.
29760
29761 - This program is distributed in the hope that it will be useful,
29762 + This file is distributed in the hope that it will be useful,
29763 but WITHOUT ANY WARRANTY; without even the implied warranty of
29764 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29765 - GNU General Public License for more details.
29766 + GNU Lesser General Public License for more details.
29767
29768 - You should have received a copy of the GNU General Public License
29769 + You should have received a copy of the GNU Lesser General Public License
29770 along with this program. If not, see <https://www.gnu.org/licenses/>. */
29771
29772 /* Written by Paul Eggert, Bruno Haible, and Jim Meyering. */
29773 @@ -21,29 +21,32 @@
29774 #define _GL_VERIFY_H
29775
29776
29777 -/* Define _GL_HAVE__STATIC_ASSERT to 1 if _Static_assert works as per C11.
29778 - This is supported by GCC 4.6.0 and later, in C mode, and its use
29779 - here generates easier-to-read diagnostics when verify (R) fails.
29780 +/* Define _GL_HAVE__STATIC_ASSERT to 1 if _Static_assert (R, DIAGNOSTIC)
29781 + works as per C11. This is supported by GCC 4.6.0+ and by clang 4+.
29782
29783 - Define _GL_HAVE_STATIC_ASSERT to 1 if static_assert works as per C++11.
29784 - This is supported by GCC 6.1.0 and later, in C++ mode.
29785 + Define _GL_HAVE__STATIC_ASSERT1 to 1 if _Static_assert (R) works as
29786 + per C2x. This is supported by GCC 9.1+.
29787
29788 - Use this only with GCC. If we were willing to slow 'configure'
29789 - down we could also use it with other compilers, but since this
29790 - affects only the quality of diagnostics, why bother? */
29791 -#if (4 < __GNUC__ + (6 <= __GNUC_MINOR__) \
29792 - && (201112L <= __STDC_VERSION__ || !defined __STRICT_ANSI__) \
29793 - && !defined __cplusplus)
29794 -# define _GL_HAVE__STATIC_ASSERT 1
29795 -#endif
29796 -#if (6 <= __GNUC__) && defined __cplusplus
29797 -# define _GL_HAVE_STATIC_ASSERT 1
29798 + Support compilers claiming conformance to the relevant standard,
29799 + and also support GCC when not pedantic. If we were willing to slow
29800 + 'configure' down we could also use it with other compilers, but
29801 + since this affects only the quality of diagnostics, why bother? */
29802 +#ifndef __cplusplus
29803 +# if (201112L <= __STDC_VERSION__ \
29804 + || (!defined __STRICT_ANSI__ \
29805 + && (4 < __GNUC__ + (6 <= __GNUC_MINOR__) || 4 <= __clang_major__)))
29806 +# define _GL_HAVE__STATIC_ASSERT 1
29807 +# endif
29808 +# if (202000L <= __STDC_VERSION__ \
29809 + || (!defined __STRICT_ANSI__ && 9 <= __GNUC__))
29810 +# define _GL_HAVE__STATIC_ASSERT1 1
29811 +# endif
29812 #endif
29813
29814 /* FreeBSD 9.1 <sys/cdefs.h>, included by <stddef.h> and lots of other
29815 system headers, defines a conflicting _Static_assert that is no
29816 better than ours; override it. */
29817 -#ifndef _GL_HAVE_STATIC_ASSERT
29818 +#ifndef _GL_HAVE__STATIC_ASSERT
29819 # include <stddef.h>
29820 # undef _Static_assert
29821 #endif
29822 @@ -141,9 +144,9 @@
29823 which do not support _Static_assert, also do not warn about the
29824 last declaration mentioned above.
29825
29826 - * GCC warns if -Wnested-externs is enabled and verify() is used
29827 + * GCC warns if -Wnested-externs is enabled and 'verify' is used
29828 within a function body; but inside a function, you can always
29829 - arrange to use verify_expr() instead.
29830 + arrange to use verify_expr instead.
29831
29832 * In C++, any struct definition inside sizeof is invalid.
29833 Use a template type to work around the problem. */
29834 @@ -195,48 +198,63 @@ template <int w>
29835 #endif
29836
29837 /* Verify requirement R at compile-time, as a declaration without a
29838 - trailing ';'. If R is false, fail at compile-time, preferably
29839 - with a diagnostic that includes the string-literal DIAGNOSTIC.
29840 + trailing ';'. If R is false, fail at compile-time.
29841 +
29842 + This macro requires three or more arguments but uses at most the first
29843 + two, so that the _Static_assert macro optionally defined below supports
29844 + both the C11 two-argument syntax and the C2x one-argument syntax.
29845
29846 Unfortunately, unlike C11, this implementation must appear as an
29847 ordinary declaration, and cannot appear inside struct { ... }. */
29848
29849 -#ifdef _GL_HAVE__STATIC_ASSERT
29850 -# define _GL_VERIFY _Static_assert
29851 +#if 200410 <= __cpp_static_assert
29852 +# define _GL_VERIFY(R, DIAGNOSTIC, ...) static_assert (R, DIAGNOSTIC)
29853 +#elif defined _GL_HAVE__STATIC_ASSERT
29854 +# define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC)
29855 #else
29856 -# define _GL_VERIFY(R, DIAGNOSTIC) \
29857 +# define _GL_VERIFY(R, DIAGNOSTIC, ...) \
29858 extern int (*_GL_GENSYM (_gl_verify_function) (void)) \
29859 [_GL_VERIFY_TRUE (R, DIAGNOSTIC)]
29860 #endif
29861
29862 /* _GL_STATIC_ASSERT_H is defined if this code is copied into assert.h. */
29863 #ifdef _GL_STATIC_ASSERT_H
29864 -# if !defined _GL_HAVE__STATIC_ASSERT && !defined _Static_assert
29865 -# define _Static_assert(R, DIAGNOSTIC) _GL_VERIFY (R, DIAGNOSTIC)
29866 +# if !defined _GL_HAVE__STATIC_ASSERT1 && !defined _Static_assert
29867 +# define _Static_assert(...) \
29868 + _GL_VERIFY (__VA_ARGS__, "static assertion failed", -)
29869 # endif
29870 -# if !defined _GL_HAVE_STATIC_ASSERT && !defined static_assert
29871 +# if __cpp_static_assert < 201411 && !defined static_assert
29872 # define static_assert _Static_assert /* C11 requires this #define. */
29873 # endif
29874 #endif
29875
29876 /* @assert.h omit start@ */
29877
29878 +#if 3 < __GNUC__ + (3 < __GNUC_MINOR__ + (4 <= __GNUC_PATCHLEVEL__))
29879 +# define _GL_HAS_BUILTIN_TRAP 1
29880 +#elif defined __has_builtin
29881 +# define _GL_HAS_BUILTIN_TRAP __has_builtin (__builtin_trap)
29882 +#else
29883 +# define _GL_HAS_BUILTIN_TRAP 0
29884 +#endif
29885 +
29886 +#if 4 < __GNUC__ + (5 <= __GNUC_MINOR__)
29887 +# define _GL_HAS_BUILTIN_UNREACHABLE 1
29888 +#elif defined __has_builtin
29889 +# define _GL_HAS_BUILTIN_UNREACHABLE __has_builtin (__builtin_unreachable)
29890 +#else
29891 +# define _GL_HAS_BUILTIN_UNREACHABLE 0
29892 +#endif
29893 +
29894 /* Each of these macros verifies that its argument R is nonzero. To
29895 be portable, R should be an integer constant expression. Unlike
29896 assert (R), there is no run-time overhead.
29897
29898 There are two macros, since no single macro can be used in all
29899 - contexts in C. verify_true (R) is for scalar contexts, including
29900 + contexts in C. verify_expr (R, E) is for scalar contexts, including
29901 integer constant expression contexts. verify (R) is for declaration
29902 contexts, e.g., the top level. */
29903
29904 -/* Verify requirement R at compile-time, as an integer constant expression.
29905 - Return 1. This is equivalent to verify_expr (R, 1).
29906 -
29907 - verify_true is obsolescent; please use verify_expr instead. */
29908 -
29909 -#define verify_true(R) _GL_VERIFY_TRUE (R, "verify_true (" #R ")")
29910 -
29911 /* Verify requirement R at compile-time. Return the value of the
29912 expression E. */
29913
29914 @@ -244,31 +262,45 @@ template <int w>
29915 (_GL_VERIFY_TRUE (R, "verify_expr (" #R ", " #E ")") ? (E) : (E))
29916
29917 /* Verify requirement R at compile-time, as a declaration without a
29918 - trailing ';'. */
29919 + trailing ';'. verify (R) acts like static_assert (R) except that
29920 + it is portable to C11/C++14 and earlier, it can issue better
29921 + diagnostics, and its name is shorter and may be more convenient. */
29922
29923 -#ifdef __GNUC__
29924 -# define verify(R) _GL_VERIFY (R, "verify (" #R ")")
29925 +#ifdef __PGI
29926 +/* PGI barfs if R is long. */
29927 +# define verify(R) _GL_VERIFY (R, "verify (...)", -)
29928 #else
29929 -/* PGI barfs if R is long. Play it safe. */
29930 -# define verify(R) _GL_VERIFY (R, "verify (...)")
29931 +# define verify(R) _GL_VERIFY (R, "verify (" #R ")", -)
29932 #endif
29933
29934 -#ifndef __has_builtin
29935 -# define __has_builtin(x) 0
29936 -#endif
29937 +/* Assume that R always holds. Behavior is undefined if R is false,
29938 + fails to evaluate, or has side effects.
29939 +
29940 + 'assume (R)' is a directive from the programmer telling the
29941 + compiler that R is true so the compiler needn't generate code to
29942 + test R. This is why 'assume' is in verify.h: it's related to
29943 + static checking (in this case, static checking done by the
29944 + programmer), not dynamic checking.
29945 +
29946 + 'assume (R)' can affect compilation of all the code, not just code
29947 + that happens to be executed after the assume (R) is "executed".
29948 + For example, if the code mistakenly does 'assert (R); assume (R);'
29949 + the compiler is entitled to optimize away the 'assert (R)'.
29950 +
29951 + Although assuming R can help a compiler generate better code or
29952 + diagnostics, performance can suffer if R uses hard-to-optimize
29953 + features such as function calls not inlined by the compiler.
29954
29955 -/* Assume that R always holds. This lets the compiler optimize
29956 - accordingly. R should not have side-effects; it may or may not be
29957 - evaluated. Behavior is undefined if R is false. */
29958 + Avoid Clang's __builtin_assume, as it breaks GNU Emacs master
29959 + as of 2020-08-23T21:09:49Z!eggert@×××××××.edu; see
29960 + <https://bugs.gnu.org/43152#71>. It's not known whether this breakage
29961 + is a Clang bug or an Emacs bug; play it safe for now. */
29962
29963 -#if (__has_builtin (__builtin_unreachable) \
29964 - || 4 < __GNUC__ + (5 <= __GNUC_MINOR__))
29965 +#if _GL_HAS_BUILTIN_UNREACHABLE
29966 # define assume(R) ((R) ? (void) 0 : __builtin_unreachable ())
29967 #elif 1200 <= _MSC_VER
29968 # define assume(R) __assume (R)
29969 -#elif ((defined GCC_LINT || defined lint) \
29970 - && (__has_builtin (__builtin_trap) \
29971 - || 3 < __GNUC__ + (3 < __GNUC_MINOR__ + (4 <= __GNUC_PATCHLEVEL__))))
29972 +#elif (defined GCC_LINT || defined lint) && _GL_HAS_BUILTIN_TRAP
29973 /* Doing it this way helps various packages when configured with
29974 --enable-gcc-warnings, which compiles with -Dlint. It's nicer
29975 when 'assume' silences warnings even with older GCCs. */
29976
29977 diff --git a/autotools/gnulib/warn-on-use.h b/autotools/gnulib/warn-on-use.h
29978 index 7d11a15..94f5b92 100644
29979 --- a/autotools/gnulib/warn-on-use.h
29980 +++ b/autotools/gnulib/warn-on-use.h
29981 @@ -1,17 +1,17 @@
29982 /* A C macro for emitting warnings if a function is used.
29983 - Copyright (C) 2010-2019 Free Software Foundation, Inc.
29984 + Copyright (C) 2010-2022 Free Software Foundation, Inc.
29985
29986 This program is free software: you can redistribute it and/or modify it
29987 - under the terms of the GNU General Public License as published
29988 - by the Free Software Foundation; either version 3 of the License, or
29989 + under the terms of the GNU Lesser General Public License as published
29990 + by the Free Software Foundation; either version 2 of the License, or
29991 (at your option) any later version.
29992
29993 This program is distributed in the hope that it will be useful,
29994 but WITHOUT ANY WARRANTY; without even the implied warranty of
29995 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
29996 - General Public License for more details.
29997 + Lesser General Public License for more details.
29998
29999 - You should have received a copy of the GNU General Public License
30000 + You should have received a copy of the GNU Lesser General Public License
30001 along with this program. If not, see <https://www.gnu.org/licenses/>. */
30002
30003 /* _GL_WARN_ON_USE (function, "literal string") issues a declaration
30004 @@ -84,13 +84,20 @@
30005 # if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
30006 /* A compiler attribute is available in gcc versions 4.3.0 and later. */
30007 # define _GL_WARN_ON_USE(function, message) \
30008 -extern __typeof__ (function) function __attribute__ ((__warning__ (message)))
30009 +_GL_WARN_EXTERN_C __typeof__ (function) function __attribute__ ((__warning__ (message)))
30010 # define _GL_WARN_ON_USE_ATTRIBUTE(message) \
30011 __attribute__ ((__warning__ (message)))
30012 +# elif __clang_major__ >= 4
30013 +/* Another compiler attribute is available in clang. */
30014 +# define _GL_WARN_ON_USE(function, message) \
30015 +_GL_WARN_EXTERN_C __typeof__ (function) function \
30016 + __attribute__ ((__diagnose_if__ (1, message, "warning")))
30017 +# define _GL_WARN_ON_USE_ATTRIBUTE(message) \
30018 + __attribute__ ((__diagnose_if__ (1, message, "warning")))
30019 # elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
30020 /* Verify the existence of the function. */
30021 # define _GL_WARN_ON_USE(function, message) \
30022 -extern __typeof__ (function) function
30023 +_GL_WARN_EXTERN_C __typeof__ (function) function
30024 # define _GL_WARN_ON_USE_ATTRIBUTE(message)
30025 # else /* Unsupported. */
30026 # define _GL_WARN_ON_USE(function, message) \
30027 @@ -99,24 +106,35 @@ _GL_WARN_EXTERN_C int _gl_warn_on_use
30028 # endif
30029 #endif
30030
30031 -/* _GL_WARN_ON_USE_CXX (function, rettype, parameters_and_attributes, "string")
30032 - is like _GL_WARN_ON_USE (function, "string"), except that the function is
30033 - declared with the given prototype, consisting of return type, parameters,
30034 - and attributes.
30035 +/* _GL_WARN_ON_USE_CXX (function, rettype_gcc, rettype_clang, parameters_and_attributes, "message")
30036 + is like _GL_WARN_ON_USE (function, "message"), except that in C++ mode the
30037 + function is declared with the given prototype, consisting of return type,
30038 + parameters, and attributes.
30039 This variant is useful for overloaded functions in C++. _GL_WARN_ON_USE does
30040 not work in this case. */
30041 #ifndef _GL_WARN_ON_USE_CXX
30042 -# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
30043 -# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
30044 -extern rettype function parameters_and_attributes \
30045 - __attribute__ ((__warning__ (msg)))
30046 -# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
30047 +# if !defined __cplusplus
30048 +# define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \
30049 + _GL_WARN_ON_USE (function, msg)
30050 +# else
30051 +# if 4 < __GNUC__ || (__GNUC__ == 4 && 3 <= __GNUC_MINOR__)
30052 +/* A compiler attribute is available in gcc versions 4.3.0 and later. */
30053 +# define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \
30054 +extern rettype_gcc function parameters_and_attributes \
30055 + __attribute__ ((__warning__ (msg)))
30056 +# elif __clang_major__ >= 4
30057 +/* Another compiler attribute is available in clang. */
30058 +# define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \
30059 +extern rettype_clang function parameters_and_attributes \
30060 + __attribute__ ((__diagnose_if__ (1, msg, "warning")))
30061 +# elif __GNUC__ >= 3 && GNULIB_STRICT_CHECKING
30062 /* Verify the existence of the function. */
30063 -# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
30064 -extern rettype function parameters_and_attributes
30065 -# else /* Unsupported. */
30066 -# define _GL_WARN_ON_USE_CXX(function,rettype,parameters_and_attributes,msg) \
30067 +# define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \
30068 +extern rettype_gcc function parameters_and_attributes
30069 +# else /* Unsupported. */
30070 +# define _GL_WARN_ON_USE_CXX(function,rettype_gcc,rettype_clang,parameters_and_attributes,msg) \
30071 _GL_WARN_EXTERN_C int _gl_warn_on_use
30072 +# endif
30073 # endif
30074 #endif
30075
30076
30077 diff --git a/autotools/gnulib/wchar.in.h b/autotools/gnulib/wchar.in.h
30078 index 17d5691..d7792e5 100644
30079 --- a/autotools/gnulib/wchar.in.h
30080 +++ b/autotools/gnulib/wchar.in.h
30081 @@ -1,25 +1,25 @@
30082 /* A substitute for ISO C99 <wchar.h>, for platforms that have issues.
30083
30084 - Copyright (C) 2007-2019 Free Software Foundation, Inc.
30085 + Copyright (C) 2007-2022 Free Software Foundation, Inc.
30086
30087 - This program is free software; you can redistribute it and/or modify
30088 - it under the terms of the GNU General Public License as published by
30089 - the Free Software Foundation; either version 3, or (at your option)
30090 - any later version.
30091 + This file is free software: you can redistribute it and/or modify
30092 + it under the terms of the GNU Lesser General Public License as
30093 + published by the Free Software Foundation; either version 2.1 of the
30094 + License, or (at your option) any later version.
30095
30096 - This program is distributed in the hope that it will be useful,
30097 + This file is distributed in the hope that it will be useful,
30098 but WITHOUT ANY WARRANTY; without even the implied warranty of
30099 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30100 - GNU General Public License for more details.
30101 + GNU Lesser General Public License for more details.
30102
30103 - You should have received a copy of the GNU General Public License
30104 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
30105 + You should have received a copy of the GNU Lesser General Public License
30106 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
30107
30108 /* Written by Eric Blake. */
30109
30110 /*
30111 * ISO C 99 <wchar.h> for platforms that have issues.
30112 - * <http://www.opengroup.org/susv3xbd/wchar.h.html>
30113 + * <https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/wchar.h.html>
30114 *
30115 * For now, this just ensures proper prerequisite inclusion order and
30116 * the declaration of wcwidth().
30117 @@ -33,7 +33,8 @@
30118 #if (((defined __need_mbstate_t || defined __need_wint_t) \
30119 && !defined __MINGW32__) \
30120 || (defined __hpux \
30121 - && ((defined _INTTYPES_INCLUDED && !defined strtoimax) \
30122 + && ((defined _INTTYPES_INCLUDED \
30123 + && !defined _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H) \
30124 || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) \
30125 || (defined __MINGW32__ && defined __STRING_H_SOURCED__) \
30126 || defined _GL_ALREADY_INCLUDING_WCHAR_H)
30127 @@ -64,20 +65,12 @@
30128 # include <features.h> /* for __GLIBC__ */
30129 #endif
30130
30131 -/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
30132 - <wchar.h>.
30133 - BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
30134 - included before <wchar.h>.
30135 - In some builds of uClibc, <wchar.h> is nonexistent and wchar_t is defined
30136 +/* In some builds of uClibc, <wchar.h> is nonexistent and wchar_t is defined
30137 by <stddef.h>.
30138 But avoid namespace pollution on glibc systems. */
30139 #if !(defined __GLIBC__ && !defined __UCLIBC__)
30140 # include <stddef.h>
30141 #endif
30142 -#ifndef __GLIBC__
30143 -# include <stdio.h>
30144 -# include <time.h>
30145 -#endif
30146
30147 /* Include the original <wchar.h> if it exists.
30148 Some builds of uClibc lack it. */
30149 @@ -91,12 +84,43 @@
30150 #ifndef _@GUARD_PREFIX@_WCHAR_H
30151 #define _@GUARD_PREFIX@_WCHAR_H
30152
30153 +/* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers
30154 + that can be freed by passing them as the Ith argument to the
30155 + function F. */
30156 +#ifndef _GL_ATTRIBUTE_DEALLOC
30157 +# if __GNUC__ >= 11
30158 +# define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
30159 +# else
30160 +# define _GL_ATTRIBUTE_DEALLOC(f, i)
30161 +# endif
30162 +#endif
30163 +
30164 +/* _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that
30165 + can be freed via 'free'; it can be used only after declaring 'free'. */
30166 +/* Applies to: functions. Cannot be used on inline functions. */
30167 +#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
30168 +# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1)
30169 +#endif
30170 +
30171 +/* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly
30172 + allocated memory. */
30173 +/* Applies to: functions. */
30174 +#ifndef _GL_ATTRIBUTE_MALLOC
30175 +# if __GNUC__ >= 3 || defined __clang__
30176 +# define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
30177 +# else
30178 +# define _GL_ATTRIBUTE_MALLOC
30179 +# endif
30180 +#endif
30181 +
30182 /* The __attribute__ feature is available in gcc versions 2.5 and later.
30183 The attribute __pure__ was added in gcc 2.96. */
30184 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
30185 -# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
30186 -#else
30187 -# define _GL_ATTRIBUTE_PURE /* empty */
30188 +#ifndef _GL_ATTRIBUTE_PURE
30189 +# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__
30190 +# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
30191 +# else
30192 +# define _GL_ATTRIBUTE_PURE /* empty */
30193 +# endif
30194 #endif
30195
30196 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
30197 @@ -116,7 +140,7 @@
30198 /* mingw and MSVC define wint_t as 'unsigned short' in <crtdefs.h> or
30199 <stddef.h>. This is too small: ISO C 99 section 7.24.1.(2) says that
30200 wint_t must be "unchanged by default argument promotions". Override it. */
30201 -# if @GNULIB_OVERRIDES_WINT_T@
30202 +# if @GNULIBHEADERS_OVERRIDE_WINT_T@
30203 # if !GNULIB_defined_wint_t
30204 # if @HAVE_CRTDEFS_H@
30205 # include <crtdefs.h>
30206 @@ -137,16 +161,43 @@ typedef unsigned int rpl_wint_t;
30207
30208 /* Override mbstate_t if it is too small.
30209 On IRIX 6.5, sizeof (mbstate_t) == 1, which is not sufficient for
30210 - implementing mbrtowc for encodings like UTF-8. */
30211 -#if !(@HAVE_MBSINIT@ && @HAVE_MBRTOWC@) || @REPLACE_MBSTATE_T@
30212 + implementing mbrtowc for encodings like UTF-8.
30213 + On AIX and MSVC, mbrtowc needs to be overridden, but mbstate_t exists and is
30214 + large enough and overriding it would cause problems in C++ mode. */
30215 +#if !(((defined _WIN32 && !defined __CYGWIN__) || @HAVE_MBSINIT@) && @HAVE_MBRTOWC@) || @REPLACE_MBSTATE_T@
30216 # if !GNULIB_defined_mbstate_t
30217 +# if !(defined _AIX || defined _MSC_VER)
30218 typedef int rpl_mbstate_t;
30219 -# undef mbstate_t
30220 -# define mbstate_t rpl_mbstate_t
30221 +# undef mbstate_t
30222 +# define mbstate_t rpl_mbstate_t
30223 +# endif
30224 # define GNULIB_defined_mbstate_t 1
30225 # endif
30226 #endif
30227
30228 +/* Make _GL_ATTRIBUTE_DEALLOC_FREE work, even though <stdlib.h> may not have
30229 + been included yet. */
30230 +#if @GNULIB_FREE_POSIX@
30231 +# if (@REPLACE_FREE@ && !defined free \
30232 + && !(defined __cplusplus && defined GNULIB_NAMESPACE))
30233 +/* We can't do '#define free rpl_free' here. */
30234 +_GL_EXTERN_C void rpl_free (void *);
30235 +# undef _GL_ATTRIBUTE_DEALLOC_FREE
30236 +# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (rpl_free, 1)
30237 +# else
30238 +# if defined _MSC_VER
30239 +_GL_EXTERN_C void __cdecl free (void *);
30240 +# else
30241 +_GL_EXTERN_C void free (void *);
30242 +# endif
30243 +# endif
30244 +#else
30245 +# if defined _MSC_VER
30246 +_GL_EXTERN_C void __cdecl free (void *);
30247 +# else
30248 +_GL_EXTERN_C void free (void *);
30249 +# endif
30250 +#endif
30251
30252 /* Convert a single-byte character to a wide character. */
30253 #if @GNULIB_BTOWC@
30254 @@ -161,9 +212,12 @@ _GL_CXXALIAS_RPL (btowc, wint_t, (int c));
30255 # if !@HAVE_BTOWC@
30256 _GL_FUNCDECL_SYS (btowc, wint_t, (int c) _GL_ATTRIBUTE_PURE);
30257 # endif
30258 -_GL_CXXALIAS_SYS (btowc, wint_t, (int c));
30259 +/* Need to cast, because on mingw, the return type is 'unsigned short'. */
30260 +_GL_CXXALIAS_SYS_CAST (btowc, wint_t, (int c));
30261 # endif
30262 +# if __GLIBC__ >= 2
30263 _GL_CXXALIASWARN (btowc);
30264 +# endif
30265 #elif defined GNULIB_POSIXCHECK
30266 # undef btowc
30267 # if HAVE_RAW_DECL_BTOWC
30268 @@ -189,7 +243,9 @@ _GL_FUNCDECL_SYS (wctob, int, (wint_t wc) _GL_ATTRIBUTE_PURE);
30269 # endif
30270 _GL_CXXALIAS_SYS (wctob, int, (wint_t wc));
30271 # endif
30272 +# if __GLIBC__ >= 2
30273 _GL_CXXALIASWARN (wctob);
30274 +# endif
30275 #elif defined GNULIB_POSIXCHECK
30276 # undef wctob
30277 # if HAVE_RAW_DECL_WCTOB
30278 @@ -214,7 +270,9 @@ _GL_FUNCDECL_SYS (mbsinit, int, (const mbstate_t *ps));
30279 # endif
30280 _GL_CXXALIAS_SYS (mbsinit, int, (const mbstate_t *ps));
30281 # endif
30282 +# if __GLIBC__ >= 2
30283 _GL_CXXALIASWARN (mbsinit);
30284 +# endif
30285 #elif defined GNULIB_POSIXCHECK
30286 # undef mbsinit
30287 # if HAVE_RAW_DECL_MBSINIT
30288 @@ -232,18 +290,24 @@ _GL_WARN_ON_USE (mbsinit, "mbsinit is unportable - "
30289 # define mbrtowc rpl_mbrtowc
30290 # endif
30291 _GL_FUNCDECL_RPL (mbrtowc, size_t,
30292 - (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps));
30293 + (wchar_t *restrict pwc, const char *restrict s, size_t n,
30294 + mbstate_t *restrict ps));
30295 _GL_CXXALIAS_RPL (mbrtowc, size_t,
30296 - (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps));
30297 + (wchar_t *restrict pwc, const char *restrict s, size_t n,
30298 + mbstate_t *restrict ps));
30299 # else
30300 # if !@HAVE_MBRTOWC@
30301 _GL_FUNCDECL_SYS (mbrtowc, size_t,
30302 - (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps));
30303 + (wchar_t *restrict pwc, const char *restrict s, size_t n,
30304 + mbstate_t *restrict ps));
30305 # endif
30306 _GL_CXXALIAS_SYS (mbrtowc, size_t,
30307 - (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps));
30308 + (wchar_t *restrict pwc, const char *restrict s, size_t n,
30309 + mbstate_t *restrict ps));
30310 # endif
30311 +# if __GLIBC__ >= 2
30312 _GL_CXXALIASWARN (mbrtowc);
30313 +# endif
30314 #elif defined GNULIB_POSIXCHECK
30315 # undef mbrtowc
30316 # if HAVE_RAW_DECL_MBRTOWC
30317 @@ -260,15 +324,21 @@ _GL_WARN_ON_USE (mbrtowc, "mbrtowc is unportable - "
30318 # undef mbrlen
30319 # define mbrlen rpl_mbrlen
30320 # endif
30321 -_GL_FUNCDECL_RPL (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps));
30322 -_GL_CXXALIAS_RPL (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps));
30323 +_GL_FUNCDECL_RPL (mbrlen, size_t,
30324 + (const char *restrict s, size_t n, mbstate_t *restrict ps));
30325 +_GL_CXXALIAS_RPL (mbrlen, size_t,
30326 + (const char *restrict s, size_t n, mbstate_t *restrict ps));
30327 # else
30328 # if !@HAVE_MBRLEN@
30329 -_GL_FUNCDECL_SYS (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps));
30330 +_GL_FUNCDECL_SYS (mbrlen, size_t,
30331 + (const char *restrict s, size_t n, mbstate_t *restrict ps));
30332 # endif
30333 -_GL_CXXALIAS_SYS (mbrlen, size_t, (const char *s, size_t n, mbstate_t *ps));
30334 +_GL_CXXALIAS_SYS (mbrlen, size_t,
30335 + (const char *restrict s, size_t n, mbstate_t *restrict ps));
30336 # endif
30337 +# if __GLIBC__ >= 2
30338 _GL_CXXALIASWARN (mbrlen);
30339 +# endif
30340 #elif defined GNULIB_POSIXCHECK
30341 # undef mbrlen
30342 # if HAVE_RAW_DECL_MBRLEN
30343 @@ -286,22 +356,30 @@ _GL_WARN_ON_USE (mbrlen, "mbrlen is unportable - "
30344 # define mbsrtowcs rpl_mbsrtowcs
30345 # endif
30346 _GL_FUNCDECL_RPL (mbsrtowcs, size_t,
30347 - (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps)
30348 + (wchar_t *restrict dest,
30349 + const char **restrict srcp, size_t len,
30350 + mbstate_t *restrict ps)
30351 _GL_ARG_NONNULL ((2)));
30352 _GL_CXXALIAS_RPL (mbsrtowcs, size_t,
30353 - (wchar_t *dest, const char **srcp, size_t len,
30354 - mbstate_t *ps));
30355 + (wchar_t *restrict dest,
30356 + const char **restrict srcp, size_t len,
30357 + mbstate_t *restrict ps));
30358 # else
30359 # if !@HAVE_MBSRTOWCS@
30360 _GL_FUNCDECL_SYS (mbsrtowcs, size_t,
30361 - (wchar_t *dest, const char **srcp, size_t len, mbstate_t *ps)
30362 + (wchar_t *restrict dest,
30363 + const char **restrict srcp, size_t len,
30364 + mbstate_t *restrict ps)
30365 _GL_ARG_NONNULL ((2)));
30366 # endif
30367 _GL_CXXALIAS_SYS (mbsrtowcs, size_t,
30368 - (wchar_t *dest, const char **srcp, size_t len,
30369 - mbstate_t *ps));
30370 + (wchar_t *restrict dest,
30371 + const char **restrict srcp, size_t len,
30372 + mbstate_t *restrict ps));
30373 # endif
30374 +# if __GLIBC__ >= 2
30375 _GL_CXXALIASWARN (mbsrtowcs);
30376 +# endif
30377 #elif defined GNULIB_POSIXCHECK
30378 # undef mbsrtowcs
30379 # if HAVE_RAW_DECL_MBSRTOWCS
30380 @@ -319,22 +397,26 @@ _GL_WARN_ON_USE (mbsrtowcs, "mbsrtowcs is unportable - "
30381 # define mbsnrtowcs rpl_mbsnrtowcs
30382 # endif
30383 _GL_FUNCDECL_RPL (mbsnrtowcs, size_t,
30384 - (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
30385 - mbstate_t *ps)
30386 + (wchar_t *restrict dest,
30387 + const char **restrict srcp, size_t srclen, size_t len,
30388 + mbstate_t *restrict ps)
30389 _GL_ARG_NONNULL ((2)));
30390 _GL_CXXALIAS_RPL (mbsnrtowcs, size_t,
30391 - (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
30392 - mbstate_t *ps));
30393 + (wchar_t *restrict dest,
30394 + const char **restrict srcp, size_t srclen, size_t len,
30395 + mbstate_t *restrict ps));
30396 # else
30397 # if !@HAVE_MBSNRTOWCS@
30398 _GL_FUNCDECL_SYS (mbsnrtowcs, size_t,
30399 - (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
30400 - mbstate_t *ps)
30401 + (wchar_t *restrict dest,
30402 + const char **restrict srcp, size_t srclen, size_t len,
30403 + mbstate_t *restrict ps)
30404 _GL_ARG_NONNULL ((2)));
30405 # endif
30406 _GL_CXXALIAS_SYS (mbsnrtowcs, size_t,
30407 - (wchar_t *dest, const char **srcp, size_t srclen, size_t len,
30408 - mbstate_t *ps));
30409 + (wchar_t *restrict dest,
30410 + const char **restrict srcp, size_t srclen, size_t len,
30411 + mbstate_t *restrict ps));
30412 # endif
30413 _GL_CXXALIASWARN (mbsnrtowcs);
30414 #elif defined GNULIB_POSIXCHECK
30415 @@ -353,15 +435,21 @@ _GL_WARN_ON_USE (mbsnrtowcs, "mbsnrtowcs is unportable - "
30416 # undef wcrtomb
30417 # define wcrtomb rpl_wcrtomb
30418 # endif
30419 -_GL_FUNCDECL_RPL (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps));
30420 -_GL_CXXALIAS_RPL (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps));
30421 +_GL_FUNCDECL_RPL (wcrtomb, size_t,
30422 + (char *restrict s, wchar_t wc, mbstate_t *restrict ps));
30423 +_GL_CXXALIAS_RPL (wcrtomb, size_t,
30424 + (char *restrict s, wchar_t wc, mbstate_t *restrict ps));
30425 # else
30426 # if !@HAVE_WCRTOMB@
30427 -_GL_FUNCDECL_SYS (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps));
30428 +_GL_FUNCDECL_SYS (wcrtomb, size_t,
30429 + (char *restrict s, wchar_t wc, mbstate_t *restrict ps));
30430 # endif
30431 -_GL_CXXALIAS_SYS (wcrtomb, size_t, (char *s, wchar_t wc, mbstate_t *ps));
30432 +_GL_CXXALIAS_SYS (wcrtomb, size_t,
30433 + (char *restrict s, wchar_t wc, mbstate_t *restrict ps));
30434 # endif
30435 +# if __GLIBC__ >= 2
30436 _GL_CXXALIASWARN (wcrtomb);
30437 +# endif
30438 #elif defined GNULIB_POSIXCHECK
30439 # undef wcrtomb
30440 # if HAVE_RAW_DECL_WCRTOMB
30441 @@ -379,22 +467,30 @@ _GL_WARN_ON_USE (wcrtomb, "wcrtomb is unportable - "
30442 # define wcsrtombs rpl_wcsrtombs
30443 # endif
30444 _GL_FUNCDECL_RPL (wcsrtombs, size_t,
30445 - (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps)
30446 + (char *restrict dest, const wchar_t **restrict srcp,
30447 + size_t len,
30448 + mbstate_t *restrict ps)
30449 _GL_ARG_NONNULL ((2)));
30450 _GL_CXXALIAS_RPL (wcsrtombs, size_t,
30451 - (char *dest, const wchar_t **srcp, size_t len,
30452 - mbstate_t *ps));
30453 + (char *restrict dest, const wchar_t **restrict srcp,
30454 + size_t len,
30455 + mbstate_t *restrict ps));
30456 # else
30457 # if !@HAVE_WCSRTOMBS@
30458 _GL_FUNCDECL_SYS (wcsrtombs, size_t,
30459 - (char *dest, const wchar_t **srcp, size_t len, mbstate_t *ps)
30460 + (char *restrict dest, const wchar_t **restrict srcp,
30461 + size_t len,
30462 + mbstate_t *restrict ps)
30463 _GL_ARG_NONNULL ((2)));
30464 # endif
30465 _GL_CXXALIAS_SYS (wcsrtombs, size_t,
30466 - (char *dest, const wchar_t **srcp, size_t len,
30467 - mbstate_t *ps));
30468 + (char *restrict dest, const wchar_t **restrict srcp,
30469 + size_t len,
30470 + mbstate_t *restrict ps));
30471 # endif
30472 +# if __GLIBC__ >= 2
30473 _GL_CXXALIASWARN (wcsrtombs);
30474 +# endif
30475 #elif defined GNULIB_POSIXCHECK
30476 # undef wcsrtombs
30477 # if HAVE_RAW_DECL_WCSRTOMBS
30478 @@ -412,24 +508,34 @@ _GL_WARN_ON_USE (wcsrtombs, "wcsrtombs is unportable - "
30479 # define wcsnrtombs rpl_wcsnrtombs
30480 # endif
30481 _GL_FUNCDECL_RPL (wcsnrtombs, size_t,
30482 - (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
30483 - mbstate_t *ps)
30484 + (char *restrict dest,
30485 + const wchar_t **restrict srcp, size_t srclen,
30486 + size_t len,
30487 + mbstate_t *restrict ps)
30488 _GL_ARG_NONNULL ((2)));
30489 _GL_CXXALIAS_RPL (wcsnrtombs, size_t,
30490 - (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
30491 - mbstate_t *ps));
30492 + (char *restrict dest,
30493 + const wchar_t **restrict srcp, size_t srclen,
30494 + size_t len,
30495 + mbstate_t *restrict ps));
30496 # else
30497 -# if !@HAVE_WCSNRTOMBS@
30498 +# if !@HAVE_WCSNRTOMBS@ || (defined __cplusplus && defined __sun)
30499 _GL_FUNCDECL_SYS (wcsnrtombs, size_t,
30500 - (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
30501 - mbstate_t *ps)
30502 + (char *restrict dest,
30503 + const wchar_t **restrict srcp, size_t srclen,
30504 + size_t len,
30505 + mbstate_t *restrict ps)
30506 _GL_ARG_NONNULL ((2)));
30507 # endif
30508 _GL_CXXALIAS_SYS (wcsnrtombs, size_t,
30509 - (char *dest, const wchar_t **srcp, size_t srclen, size_t len,
30510 - mbstate_t *ps));
30511 + (char *restrict dest,
30512 + const wchar_t **restrict srcp, size_t srclen,
30513 + size_t len,
30514 + mbstate_t *restrict ps));
30515 # endif
30516 +# if __GLIBC__ >= 2
30517 _GL_CXXALIASWARN (wcsnrtombs);
30518 +# endif
30519 #elif defined GNULIB_POSIXCHECK
30520 # undef wcsnrtombs
30521 # if HAVE_RAW_DECL_WCSNRTOMBS
30522 @@ -455,7 +561,9 @@ _GL_FUNCDECL_SYS (wcwidth, int, (wchar_t) _GL_ATTRIBUTE_PURE);
30523 # endif
30524 _GL_CXXALIAS_SYS (wcwidth, int, (wchar_t));
30525 # endif
30526 +# if __GLIBC__ >= 2
30527 _GL_CXXALIASWARN (wcwidth);
30528 +# endif
30529 #elif defined GNULIB_POSIXCHECK
30530 # undef wcwidth
30531 # if HAVE_RAW_DECL_WCWIDTH
30532 @@ -484,7 +592,7 @@ _GL_CXXALIAS_SYS_CAST2 (wmemchr,
30533 _GL_CXXALIASWARN1 (wmemchr, wchar_t *, (wchar_t *s, wchar_t c, size_t n));
30534 _GL_CXXALIASWARN1 (wmemchr, const wchar_t *,
30535 (const wchar_t *s, wchar_t c, size_t n));
30536 -# else
30537 +# elif __GLIBC__ >= 2
30538 _GL_CXXALIASWARN (wmemchr);
30539 # endif
30540 #elif defined GNULIB_POSIXCHECK
30541 @@ -505,7 +613,9 @@ _GL_FUNCDECL_SYS (wmemcmp, int,
30542 # endif
30543 _GL_CXXALIAS_SYS (wmemcmp, int,
30544 (const wchar_t *s1, const wchar_t *s2, size_t n));
30545 +# if __GLIBC__ >= 2
30546 _GL_CXXALIASWARN (wmemcmp);
30547 +# endif
30548 #elif defined GNULIB_POSIXCHECK
30549 # undef wmemcmp
30550 # if HAVE_RAW_DECL_WMEMCMP
30551 @@ -519,11 +629,15 @@ _GL_WARN_ON_USE (wmemcmp, "wmemcmp is unportable - "
30552 #if @GNULIB_WMEMCPY@
30553 # if !@HAVE_WMEMCPY@
30554 _GL_FUNCDECL_SYS (wmemcpy, wchar_t *,
30555 - (wchar_t *dest, const wchar_t *src, size_t n));
30556 + (wchar_t *restrict dest,
30557 + const wchar_t *restrict src, size_t n));
30558 # endif
30559 _GL_CXXALIAS_SYS (wmemcpy, wchar_t *,
30560 - (wchar_t *dest, const wchar_t *src, size_t n));
30561 + (wchar_t *restrict dest,
30562 + const wchar_t *restrict src, size_t n));
30563 +# if __GLIBC__ >= 2
30564 _GL_CXXALIASWARN (wmemcpy);
30565 +# endif
30566 #elif defined GNULIB_POSIXCHECK
30567 # undef wmemcpy
30568 # if HAVE_RAW_DECL_WMEMCPY
30569 @@ -542,7 +656,9 @@ _GL_FUNCDECL_SYS (wmemmove, wchar_t *,
30570 # endif
30571 _GL_CXXALIAS_SYS (wmemmove, wchar_t *,
30572 (wchar_t *dest, const wchar_t *src, size_t n));
30573 +# if __GLIBC__ >= 2
30574 _GL_CXXALIASWARN (wmemmove);
30575 +# endif
30576 #elif defined GNULIB_POSIXCHECK
30577 # undef wmemmove
30578 # if HAVE_RAW_DECL_WMEMMOVE
30579 @@ -552,13 +668,38 @@ _GL_WARN_ON_USE (wmemmove, "wmemmove is unportable - "
30580 #endif
30581
30582
30583 +/* Copy N wide characters of SRC to DEST.
30584 + Return pointer to wide characters after the last written wide character. */
30585 +#if @GNULIB_WMEMPCPY@
30586 +# if !@HAVE_WMEMPCPY@
30587 +_GL_FUNCDECL_SYS (wmempcpy, wchar_t *,
30588 + (wchar_t *restrict dest,
30589 + const wchar_t *restrict src, size_t n));
30590 +# endif
30591 +_GL_CXXALIAS_SYS (wmempcpy, wchar_t *,
30592 + (wchar_t *restrict dest,
30593 + const wchar_t *restrict src, size_t n));
30594 +# if __GLIBC__ >= 2
30595 +_GL_CXXALIASWARN (wmempcpy);
30596 +# endif
30597 +#elif defined GNULIB_POSIXCHECK
30598 +# undef wmempcpy
30599 +# if HAVE_RAW_DECL_WMEMPCPY
30600 +_GL_WARN_ON_USE (wmempcpy, "wmempcpy is unportable - "
30601 + "use gnulib module wmempcpy for portability");
30602 +# endif
30603 +#endif
30604 +
30605 +
30606 /* Set N wide characters of S to C. */
30607 #if @GNULIB_WMEMSET@
30608 # if !@HAVE_WMEMSET@
30609 _GL_FUNCDECL_SYS (wmemset, wchar_t *, (wchar_t *s, wchar_t c, size_t n));
30610 # endif
30611 _GL_CXXALIAS_SYS (wmemset, wchar_t *, (wchar_t *s, wchar_t c, size_t n));
30612 +# if __GLIBC__ >= 2
30613 _GL_CXXALIASWARN (wmemset);
30614 +# endif
30615 #elif defined GNULIB_POSIXCHECK
30616 # undef wmemset
30617 # if HAVE_RAW_DECL_WMEMSET
30618 @@ -574,7 +715,9 @@ _GL_WARN_ON_USE (wmemset, "wmemset is unportable - "
30619 _GL_FUNCDECL_SYS (wcslen, size_t, (const wchar_t *s) _GL_ATTRIBUTE_PURE);
30620 # endif
30621 _GL_CXXALIAS_SYS (wcslen, size_t, (const wchar_t *s));
30622 +# if __GLIBC__ >= 2
30623 _GL_CXXALIASWARN (wcslen);
30624 +# endif
30625 #elif defined GNULIB_POSIXCHECK
30626 # undef wcslen
30627 # if HAVE_RAW_DECL_WCSLEN
30628 @@ -604,10 +747,14 @@ _GL_WARN_ON_USE (wcsnlen, "wcsnlen is unportable - "
30629 /* Copy SRC to DEST. */
30630 #if @GNULIB_WCSCPY@
30631 # if !@HAVE_WCSCPY@
30632 -_GL_FUNCDECL_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src));
30633 +_GL_FUNCDECL_SYS (wcscpy, wchar_t *,
30634 + (wchar_t *restrict dest, const wchar_t *restrict src));
30635 # endif
30636 -_GL_CXXALIAS_SYS (wcscpy, wchar_t *, (wchar_t *dest, const wchar_t *src));
30637 +_GL_CXXALIAS_SYS (wcscpy, wchar_t *,
30638 + (wchar_t *restrict dest, const wchar_t *restrict src));
30639 +# if __GLIBC__ >= 2
30640 _GL_CXXALIASWARN (wcscpy);
30641 +# endif
30642 #elif defined GNULIB_POSIXCHECK
30643 # undef wcscpy
30644 # if HAVE_RAW_DECL_WCSCPY
30645 @@ -620,9 +767,11 @@ _GL_WARN_ON_USE (wcscpy, "wcscpy is unportable - "
30646 /* Copy SRC to DEST, returning the address of the terminating L'\0' in DEST. */
30647 #if @GNULIB_WCPCPY@
30648 # if !@HAVE_WCPCPY@
30649 -_GL_FUNCDECL_SYS (wcpcpy, wchar_t *, (wchar_t *dest, const wchar_t *src));
30650 +_GL_FUNCDECL_SYS (wcpcpy, wchar_t *,
30651 + (wchar_t *restrict dest, const wchar_t *restrict src));
30652 # endif
30653 -_GL_CXXALIAS_SYS (wcpcpy, wchar_t *, (wchar_t *dest, const wchar_t *src));
30654 +_GL_CXXALIAS_SYS (wcpcpy, wchar_t *,
30655 + (wchar_t *restrict dest, const wchar_t *restrict src));
30656 _GL_CXXALIASWARN (wcpcpy);
30657 #elif defined GNULIB_POSIXCHECK
30658 # undef wcpcpy
30659 @@ -637,11 +786,15 @@ _GL_WARN_ON_USE (wcpcpy, "wcpcpy is unportable - "
30660 #if @GNULIB_WCSNCPY@
30661 # if !@HAVE_WCSNCPY@
30662 _GL_FUNCDECL_SYS (wcsncpy, wchar_t *,
30663 - (wchar_t *dest, const wchar_t *src, size_t n));
30664 + (wchar_t *restrict dest,
30665 + const wchar_t *restrict src, size_t n));
30666 # endif
30667 _GL_CXXALIAS_SYS (wcsncpy, wchar_t *,
30668 - (wchar_t *dest, const wchar_t *src, size_t n));
30669 + (wchar_t *restrict dest,
30670 + const wchar_t *restrict src, size_t n));
30671 +# if __GLIBC__ >= 2
30672 _GL_CXXALIASWARN (wcsncpy);
30673 +# endif
30674 #elif defined GNULIB_POSIXCHECK
30675 # undef wcsncpy
30676 # if HAVE_RAW_DECL_WCSNCPY
30677 @@ -656,10 +809,12 @@ _GL_WARN_ON_USE (wcsncpy, "wcsncpy is unportable - "
30678 #if @GNULIB_WCPNCPY@
30679 # if !@HAVE_WCPNCPY@
30680 _GL_FUNCDECL_SYS (wcpncpy, wchar_t *,
30681 - (wchar_t *dest, const wchar_t *src, size_t n));
30682 + (wchar_t *restrict dest,
30683 + const wchar_t *restrict src, size_t n));
30684 # endif
30685 _GL_CXXALIAS_SYS (wcpncpy, wchar_t *,
30686 - (wchar_t *dest, const wchar_t *src, size_t n));
30687 + (wchar_t *restrict dest,
30688 + const wchar_t *restrict src, size_t n));
30689 _GL_CXXALIASWARN (wcpncpy);
30690 #elif defined GNULIB_POSIXCHECK
30691 # undef wcpncpy
30692 @@ -673,10 +828,14 @@ _GL_WARN_ON_USE (wcpncpy, "wcpncpy is unportable - "
30693 /* Append SRC onto DEST. */
30694 #if @GNULIB_WCSCAT@
30695 # if !@HAVE_WCSCAT@
30696 -_GL_FUNCDECL_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src));
30697 +_GL_FUNCDECL_SYS (wcscat, wchar_t *,
30698 + (wchar_t *restrict dest, const wchar_t *restrict src));
30699 # endif
30700 -_GL_CXXALIAS_SYS (wcscat, wchar_t *, (wchar_t *dest, const wchar_t *src));
30701 +_GL_CXXALIAS_SYS (wcscat, wchar_t *,
30702 + (wchar_t *restrict dest, const wchar_t *restrict src));
30703 +# if __GLIBC__ >= 2
30704 _GL_CXXALIASWARN (wcscat);
30705 +# endif
30706 #elif defined GNULIB_POSIXCHECK
30707 # undef wcscat
30708 # if HAVE_RAW_DECL_WCSCAT
30709 @@ -690,11 +849,15 @@ _GL_WARN_ON_USE (wcscat, "wcscat is unportable - "
30710 #if @GNULIB_WCSNCAT@
30711 # if !@HAVE_WCSNCAT@
30712 _GL_FUNCDECL_SYS (wcsncat, wchar_t *,
30713 - (wchar_t *dest, const wchar_t *src, size_t n));
30714 + (wchar_t *restrict dest, const wchar_t *restrict src,
30715 + size_t n));
30716 # endif
30717 _GL_CXXALIAS_SYS (wcsncat, wchar_t *,
30718 - (wchar_t *dest, const wchar_t *src, size_t n));
30719 + (wchar_t *restrict dest, const wchar_t *restrict src,
30720 + size_t n));
30721 +# if __GLIBC__ >= 2
30722 _GL_CXXALIASWARN (wcsncat);
30723 +# endif
30724 #elif defined GNULIB_POSIXCHECK
30725 # undef wcsncat
30726 # if HAVE_RAW_DECL_WCSNCAT
30727 @@ -711,7 +874,9 @@ _GL_FUNCDECL_SYS (wcscmp, int, (const wchar_t *s1, const wchar_t *s2)
30728 _GL_ATTRIBUTE_PURE);
30729 # endif
30730 _GL_CXXALIAS_SYS (wcscmp, int, (const wchar_t *s1, const wchar_t *s2));
30731 +# if __GLIBC__ >= 2
30732 _GL_CXXALIASWARN (wcscmp);
30733 +# endif
30734 #elif defined GNULIB_POSIXCHECK
30735 # undef wcscmp
30736 # if HAVE_RAW_DECL_WCSCMP
30737 @@ -730,7 +895,9 @@ _GL_FUNCDECL_SYS (wcsncmp, int,
30738 # endif
30739 _GL_CXXALIAS_SYS (wcsncmp, int,
30740 (const wchar_t *s1, const wchar_t *s2, size_t n));
30741 +# if __GLIBC__ >= 2
30742 _GL_CXXALIASWARN (wcsncmp);
30743 +# endif
30744 #elif defined GNULIB_POSIXCHECK
30745 # undef wcsncmp
30746 # if HAVE_RAW_DECL_WCSNCMP
30747 @@ -783,7 +950,9 @@ _GL_WARN_ON_USE (wcsncasecmp, "wcsncasecmp is unportable - "
30748 _GL_FUNCDECL_SYS (wcscoll, int, (const wchar_t *s1, const wchar_t *s2));
30749 # endif
30750 _GL_CXXALIAS_SYS (wcscoll, int, (const wchar_t *s1, const wchar_t *s2));
30751 +# if __GLIBC__ >= 2
30752 _GL_CXXALIASWARN (wcscoll);
30753 +# endif
30754 #elif defined GNULIB_POSIXCHECK
30755 # undef wcscoll
30756 # if HAVE_RAW_DECL_WCSCOLL
30757 @@ -798,10 +967,14 @@ _GL_WARN_ON_USE (wcscoll, "wcscoll is unportable - "
30758 original strings. */
30759 #if @GNULIB_WCSXFRM@
30760 # if !@HAVE_WCSXFRM@
30761 -_GL_FUNCDECL_SYS (wcsxfrm, size_t, (wchar_t *s1, const wchar_t *s2, size_t n));
30762 +_GL_FUNCDECL_SYS (wcsxfrm, size_t,
30763 + (wchar_t *restrict s1, const wchar_t *restrict s2, size_t n));
30764 # endif
30765 -_GL_CXXALIAS_SYS (wcsxfrm, size_t, (wchar_t *s1, const wchar_t *s2, size_t n));
30766 +_GL_CXXALIAS_SYS (wcsxfrm, size_t,
30767 + (wchar_t *restrict s1, const wchar_t *restrict s2, size_t n));
30768 +# if __GLIBC__ >= 2
30769 _GL_CXXALIASWARN (wcsxfrm);
30770 +# endif
30771 #elif defined GNULIB_POSIXCHECK
30772 # undef wcsxfrm
30773 # if HAVE_RAW_DECL_WCSXFRM
30774 @@ -813,16 +986,55 @@ _GL_WARN_ON_USE (wcsxfrm, "wcsxfrm is unportable - "
30775
30776 /* Duplicate S, returning an identical malloc'd string. */
30777 #if @GNULIB_WCSDUP@
30778 -# if !@HAVE_WCSDUP@
30779 -_GL_FUNCDECL_SYS (wcsdup, wchar_t *, (const wchar_t *s));
30780 -# endif
30781 +# if defined _WIN32 && !defined __CYGWIN__
30782 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
30783 +# undef wcsdup
30784 +# define wcsdup _wcsdup
30785 +# endif
30786 +_GL_CXXALIAS_MDA (wcsdup, wchar_t *, (const wchar_t *s));
30787 +# else
30788 +# if !@HAVE_WCSDUP@ || __GNUC__ >= 11
30789 +_GL_FUNCDECL_SYS (wcsdup, wchar_t *,
30790 + (const wchar_t *s)
30791 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
30792 +# endif
30793 _GL_CXXALIAS_SYS (wcsdup, wchar_t *, (const wchar_t *s));
30794 +# endif
30795 _GL_CXXALIASWARN (wcsdup);
30796 -#elif defined GNULIB_POSIXCHECK
30797 -# undef wcsdup
30798 -# if HAVE_RAW_DECL_WCSDUP
30799 +#else
30800 +# if __GNUC__ >= 11 && !defined wcsdup
30801 +/* For -Wmismatched-dealloc: Associate wcsdup with free or rpl_free. */
30802 +_GL_FUNCDECL_SYS (wcsdup, wchar_t *,
30803 + (const wchar_t *s)
30804 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
30805 +# endif
30806 +# if defined GNULIB_POSIXCHECK
30807 +# undef wcsdup
30808 +# if HAVE_RAW_DECL_WCSDUP
30809 _GL_WARN_ON_USE (wcsdup, "wcsdup is unportable - "
30810 "use gnulib module wcsdup for portability");
30811 +# endif
30812 +# elif @GNULIB_MDA_WCSDUP@
30813 +/* On native Windows, map 'wcsdup' to '_wcsdup', so that -loldnames is not
30814 + required. In C++ with GNULIB_NAMESPACE, avoid differences between
30815 + platforms by defining GNULIB_NAMESPACE::wcsdup always. */
30816 +# if defined _WIN32 && !defined __CYGWIN__
30817 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
30818 +# undef wcsdup
30819 +# define wcsdup _wcsdup
30820 +# endif
30821 +_GL_CXXALIAS_MDA (wcsdup, wchar_t *, (const wchar_t *s));
30822 +# else
30823 +_GL_FUNCDECL_SYS (wcsdup, wchar_t *,
30824 + (const wchar_t *s)
30825 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
30826 +# if @HAVE_DECL_WCSDUP@
30827 +_GL_CXXALIAS_SYS (wcsdup, wchar_t *, (const wchar_t *s));
30828 +# endif
30829 +# endif
30830 +# if (defined _WIN32 && !defined __CYGWIN__) || @HAVE_DECL_WCSDUP@
30831 +_GL_CXXALIASWARN (wcsdup);
30832 +# endif
30833 # endif
30834 #endif
30835
30836 @@ -845,7 +1057,7 @@ _GL_CXXALIAS_SYS_CAST2 (wcschr,
30837 && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
30838 _GL_CXXALIASWARN1 (wcschr, wchar_t *, (wchar_t *wcs, wchar_t wc));
30839 _GL_CXXALIASWARN1 (wcschr, const wchar_t *, (const wchar_t *wcs, wchar_t wc));
30840 -# else
30841 +# elif __GLIBC__ >= 2
30842 _GL_CXXALIASWARN (wcschr);
30843 # endif
30844 #elif defined GNULIB_POSIXCHECK
30845 @@ -875,7 +1087,7 @@ _GL_CXXALIAS_SYS_CAST2 (wcsrchr,
30846 && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
30847 _GL_CXXALIASWARN1 (wcsrchr, wchar_t *, (wchar_t *wcs, wchar_t wc));
30848 _GL_CXXALIASWARN1 (wcsrchr, const wchar_t *, (const wchar_t *wcs, wchar_t wc));
30849 -# else
30850 +# elif __GLIBC__ >= 2
30851 _GL_CXXALIASWARN (wcsrchr);
30852 # endif
30853 #elif defined GNULIB_POSIXCHECK
30854 @@ -895,7 +1107,9 @@ _GL_FUNCDECL_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject)
30855 _GL_ATTRIBUTE_PURE);
30856 # endif
30857 _GL_CXXALIAS_SYS (wcscspn, size_t, (const wchar_t *wcs, const wchar_t *reject));
30858 +# if __GLIBC__ >= 2
30859 _GL_CXXALIASWARN (wcscspn);
30860 +# endif
30861 #elif defined GNULIB_POSIXCHECK
30862 # undef wcscspn
30863 # if HAVE_RAW_DECL_WCSCSPN
30864 @@ -913,7 +1127,9 @@ _GL_FUNCDECL_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept)
30865 _GL_ATTRIBUTE_PURE);
30866 # endif
30867 _GL_CXXALIAS_SYS (wcsspn, size_t, (const wchar_t *wcs, const wchar_t *accept));
30868 +# if __GLIBC__ >= 2
30869 _GL_CXXALIASWARN (wcsspn);
30870 +# endif
30871 #elif defined GNULIB_POSIXCHECK
30872 # undef wcsspn
30873 # if HAVE_RAW_DECL_WCSSPN
30874 @@ -944,7 +1160,7 @@ _GL_CXXALIASWARN1 (wcspbrk, wchar_t *,
30875 (wchar_t *wcs, const wchar_t *accept));
30876 _GL_CXXALIASWARN1 (wcspbrk, const wchar_t *,
30877 (const wchar_t *wcs, const wchar_t *accept));
30878 -# else
30879 +# elif __GLIBC__ >= 2
30880 _GL_CXXALIASWARN (wcspbrk);
30881 # endif
30882 #elif defined GNULIB_POSIXCHECK
30883 @@ -960,7 +1176,8 @@ _GL_WARN_ON_USE (wcspbrk, "wcspbrk is unportable - "
30884 #if @GNULIB_WCSSTR@
30885 # if !@HAVE_WCSSTR@
30886 _GL_FUNCDECL_SYS (wcsstr, wchar_t *,
30887 - (const wchar_t *haystack, const wchar_t *needle)
30888 + (const wchar_t *restrict haystack,
30889 + const wchar_t *restrict needle)
30890 _GL_ATTRIBUTE_PURE);
30891 # endif
30892 /* On some systems, this function is defined as an overloaded function:
30893 @@ -969,15 +1186,19 @@ _GL_FUNCDECL_SYS (wcsstr, wchar_t *,
30894 wchar_t * std::wcsstr (wchar_t *, const wchar_t *);
30895 } */
30896 _GL_CXXALIAS_SYS_CAST2 (wcsstr,
30897 - wchar_t *, (const wchar_t *, const wchar_t *),
30898 - const wchar_t *, (const wchar_t *, const wchar_t *));
30899 + wchar_t *,
30900 + (const wchar_t *restrict, const wchar_t *restrict),
30901 + const wchar_t *,
30902 + (const wchar_t *restrict, const wchar_t *restrict));
30903 # if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 10) && !defined __UCLIBC__) \
30904 && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
30905 _GL_CXXALIASWARN1 (wcsstr, wchar_t *,
30906 - (wchar_t *haystack, const wchar_t *needle));
30907 + (wchar_t *restrict haystack,
30908 + const wchar_t *restrict needle));
30909 _GL_CXXALIASWARN1 (wcsstr, const wchar_t *,
30910 - (const wchar_t *haystack, const wchar_t *needle));
30911 -# else
30912 + (const wchar_t *restrict haystack,
30913 + const wchar_t *restrict needle));
30914 +# elif __GLIBC__ >= 2
30915 _GL_CXXALIASWARN (wcsstr);
30916 # endif
30917 #elif defined GNULIB_POSIXCHECK
30918 @@ -991,13 +1212,30 @@ _GL_WARN_ON_USE (wcsstr, "wcsstr is unportable - "
30919
30920 /* Divide WCS into tokens separated by characters in DELIM. */
30921 #if @GNULIB_WCSTOK@
30922 -# if !@HAVE_WCSTOK@
30923 +# if @REPLACE_WCSTOK@
30924 +# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
30925 +# undef wcstok
30926 +# define wcstok rpl_wcstok
30927 +# endif
30928 +_GL_FUNCDECL_RPL (wcstok, wchar_t *,
30929 + (wchar_t *restrict wcs, const wchar_t *restrict delim,
30930 + wchar_t **restrict ptr));
30931 +_GL_CXXALIAS_RPL (wcstok, wchar_t *,
30932 + (wchar_t *restrict wcs, const wchar_t *restrict delim,
30933 + wchar_t **restrict ptr));
30934 +# else
30935 +# if !@HAVE_WCSTOK@
30936 _GL_FUNCDECL_SYS (wcstok, wchar_t *,
30937 - (wchar_t *wcs, const wchar_t *delim, wchar_t **ptr));
30938 -# endif
30939 + (wchar_t *restrict wcs, const wchar_t *restrict delim,
30940 + wchar_t **restrict ptr));
30941 +# endif
30942 _GL_CXXALIAS_SYS (wcstok, wchar_t *,
30943 - (wchar_t *wcs, const wchar_t *delim, wchar_t **ptr));
30944 + (wchar_t *restrict wcs, const wchar_t *restrict delim,
30945 + wchar_t **restrict ptr));
30946 +# endif
30947 +# if __GLIBC__ >= 2
30948 _GL_CXXALIASWARN (wcstok);
30949 +# endif
30950 #elif defined GNULIB_POSIXCHECK
30951 # undef wcstok
30952 # if HAVE_RAW_DECL_WCSTOK
30953 @@ -1025,7 +1263,9 @@ _GL_FUNCDECL_SYS (wcswidth, int, (const wchar_t *s, size_t n)
30954 # endif
30955 _GL_CXXALIAS_SYS (wcswidth, int, (const wchar_t *s, size_t n));
30956 # endif
30957 +# if __GLIBC__ >= 2
30958 _GL_CXXALIASWARN (wcswidth);
30959 +# endif
30960 #elif defined GNULIB_POSIXCHECK
30961 # undef wcswidth
30962 # if HAVE_RAW_DECL_WCSWIDTH
30963 @@ -1036,28 +1276,38 @@ _GL_WARN_ON_USE (wcswidth, "wcswidth is unportable - "
30964
30965
30966 /* Convert *TP to a date and time wide string. See
30967 - <http://pubs.opengroup.org/onlinepubs/9699919799/functions/wcsftime.html>. */
30968 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/wcsftime.html>. */
30969 #if @GNULIB_WCSFTIME@
30970 # if @REPLACE_WCSFTIME@
30971 # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
30972 # undef wcsftime
30973 # define wcsftime rpl_wcsftime
30974 # endif
30975 -_GL_FUNCDECL_RPL (wcsftime, size_t, (wchar_t *__buf, size_t __bufsize,
30976 - const wchar_t *__fmt, const struct tm *__tp)
30977 - _GL_ARG_NONNULL ((1, 3, 4)));
30978 -_GL_CXXALIAS_RPL (wcsftime, size_t, (wchar_t *__buf, size_t __bufsize,
30979 - const wchar_t *__fmt, const struct tm *__tp));
30980 +_GL_FUNCDECL_RPL (wcsftime, size_t,
30981 + (wchar_t *restrict __buf, size_t __bufsize,
30982 + const wchar_t *restrict __fmt,
30983 + const struct tm *restrict __tp)
30984 + _GL_ARG_NONNULL ((1, 3, 4)));
30985 +_GL_CXXALIAS_RPL (wcsftime, size_t,
30986 + (wchar_t *restrict __buf, size_t __bufsize,
30987 + const wchar_t *restrict __fmt,
30988 + const struct tm *restrict __tp));
30989 # else
30990 # if !@HAVE_WCSFTIME@
30991 -_GL_FUNCDECL_SYS (wcsftime, size_t, (wchar_t *__buf, size_t __bufsize,
30992 - const wchar_t *__fmt, const struct tm *__tp)
30993 - _GL_ARG_NONNULL ((1, 3, 4)));
30994 +_GL_FUNCDECL_SYS (wcsftime, size_t,
30995 + (wchar_t *restrict __buf, size_t __bufsize,
30996 + const wchar_t *restrict __fmt,
30997 + const struct tm *restrict __tp)
30998 + _GL_ARG_NONNULL ((1, 3, 4)));
30999 # endif
31000 -_GL_CXXALIAS_SYS (wcsftime, size_t, (wchar_t *__buf, size_t __bufsize,
31001 - const wchar_t *__fmt, const struct tm *__tp));
31002 +_GL_CXXALIAS_SYS (wcsftime, size_t,
31003 + (wchar_t *restrict __buf, size_t __bufsize,
31004 + const wchar_t *restrict __fmt,
31005 + const struct tm *restrict __tp));
31006 # endif
31007 +# if __GLIBC__ >= 2
31008 _GL_CXXALIASWARN (wcsftime);
31009 +# endif
31010 #elif defined GNULIB_POSIXCHECK
31011 # undef wcsftime
31012 # if HAVE_RAW_DECL_WCSFTIME
31013
31014 diff --git a/autotools/gnulib/xalloc-die.c b/autotools/gnulib/xalloc-die.c
31015 index 295f8d8..5b947f1 100644
31016 --- a/autotools/gnulib/xalloc-die.c
31017 +++ b/autotools/gnulib/xalloc-die.c
31018 @@ -1,11 +1,11 @@
31019 /* Report a memory allocation failure and exit.
31020
31021 - Copyright (C) 1997-2000, 2002-2004, 2006, 2009-2019 Free Software
31022 + Copyright (C) 1997-2000, 2002-2004, 2006, 2009-2022 Free Software
31023 Foundation, Inc.
31024
31025 This program is free software: you can redistribute it and/or modify
31026 it under the terms of the GNU General Public License as published by
31027 - the Free Software Foundation; either version 3 of the License, or
31028 + the Free Software Foundation, either version 3 of the License, or
31029 (at your option) any later version.
31030
31031 This program is distributed in the hope that it will be useful,
31032
31033 diff --git a/autotools/gnulib/xalloc-oversized.h b/autotools/gnulib/xalloc-oversized.h
31034 index e3068c8..aefa6fd 100644
31035 --- a/autotools/gnulib/xalloc-oversized.h
31036 +++ b/autotools/gnulib/xalloc-oversized.h
31037 @@ -1,18 +1,18 @@
31038 /* xalloc-oversized.h -- memory allocation size checking
31039
31040 - Copyright (C) 1990-2000, 2003-2004, 2006-2019 Free Software Foundation, Inc.
31041 + Copyright (C) 1990-2000, 2003-2004, 2006-2022 Free Software Foundation, Inc.
31042
31043 - This program is free software: you can redistribute it and/or modify
31044 - it under the terms of the GNU General Public License as published by
31045 - the Free Software Foundation; either version 3 of the License, or
31046 - (at your option) any later version.
31047 + This file is free software: you can redistribute it and/or modify
31048 + it under the terms of the GNU Lesser General Public License as
31049 + published by the Free Software Foundation; either version 2.1 of the
31050 + License, or (at your option) any later version.
31051
31052 - This program is distributed in the hope that it will be useful,
31053 + This file is distributed in the hope that it will be useful,
31054 but WITHOUT ANY WARRANTY; without even the implied warranty of
31055 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31056 - GNU General Public License for more details.
31057 + GNU Lesser General Public License for more details.
31058
31059 - You should have received a copy of the GNU General Public License
31060 + You should have received a copy of the GNU Lesser General Public License
31061 along with this program. If not, see <https://www.gnu.org/licenses/>. */
31062
31063 #ifndef XALLOC_OVERSIZED_H_
31064 @@ -21,34 +21,39 @@
31065 #include <stddef.h>
31066 #include <stdint.h>
31067
31068 -/* True if N * S would overflow in a size_t calculation,
31069 - or would generate a value larger than PTRDIFF_MAX.
31070 +/* True if N * S does not fit into both ptrdiff_t and size_t.
31071 + N and S should be nonnegative and free of side effects.
31072 This expands to a constant expression if N and S are both constants.
31073 - By gnulib convention, SIZE_MAX represents overflow in size
31074 + By gnulib convention, SIZE_MAX represents overflow in size_t
31075 calculations, so the conservative size_t-based dividend to use here
31076 is SIZE_MAX - 1. */
31077 #define __xalloc_oversized(n, s) \
31078 - ((size_t) (PTRDIFF_MAX < SIZE_MAX ? PTRDIFF_MAX : SIZE_MAX - 1) / (s) < (n))
31079 + ((s) != 0 \
31080 + && ((size_t) (PTRDIFF_MAX < SIZE_MAX ? PTRDIFF_MAX : SIZE_MAX - 1) / (s) \
31081 + < (n)))
31082
31083 -#if PTRDIFF_MAX < SIZE_MAX
31084 -typedef ptrdiff_t __xalloc_count_type;
31085 -#else
31086 -typedef size_t __xalloc_count_type;
31087 -#endif
31088 +/* Return 1 if and only if an array of N objects, each of size S,
31089 + cannot exist reliably because its total size in bytes would exceed
31090 + MIN (PTRDIFF_MAX, SIZE_MAX - 1).
31091 +
31092 + N and S should be nonnegative and free of side effects.
31093
31094 -/* Return 1 if an array of N objects, each of size S, cannot exist
31095 - reliably due to size or ptrdiff_t arithmetic overflow. S must be
31096 - positive and N must be nonnegative. This is a macro, not a
31097 - function, so that it works correctly even when SIZE_MAX < N. */
31098 + Warning: (xalloc_oversized (N, S) ? NULL : malloc (N * S)) can
31099 + misbehave if N and S are both narrower than ptrdiff_t and size_t,
31100 + and can be rewritten as (xalloc_oversized (N, S) ? NULL
31101 + : malloc (N * (size_t) S)).
31102
31103 -#if 7 <= __GNUC__
31104 + This is a macro, not a function, so that it works even if an
31105 + argument exceeds MAX (PTRDIFF_MAX, SIZE_MAX). */
31106 +#if 7 <= __GNUC__ && !defined __clang__ && PTRDIFF_MAX < SIZE_MAX
31107 # define xalloc_oversized(n, s) \
31108 - __builtin_mul_overflow_p (n, s, (__xalloc_count_type) 1)
31109 -#elif 5 <= __GNUC__ && !defined __ICC && !__STRICT_ANSI__
31110 + __builtin_mul_overflow_p (n, s, (ptrdiff_t) 1)
31111 +#elif (5 <= __GNUC__ && !defined __ICC && !__STRICT_ANSI__ \
31112 + && PTRDIFF_MAX < SIZE_MAX)
31113 # define xalloc_oversized(n, s) \
31114 (__builtin_constant_p (n) && __builtin_constant_p (s) \
31115 ? __xalloc_oversized (n, s) \
31116 - : ({ __xalloc_count_type __xalloc_count; \
31117 + : ({ ptrdiff_t __xalloc_count; \
31118 __builtin_mul_overflow (n, s, &__xalloc_count); }))
31119
31120 /* Other compilers use integer division; this may be slower but is
31121
31122 diff --git a/autotools/gnulib/xalloc.h b/autotools/gnulib/xalloc.h
31123 index fc7e86b..9f4bf8d 100644
31124 --- a/autotools/gnulib/xalloc.h
31125 +++ b/autotools/gnulib/xalloc.h
31126 @@ -1,10 +1,10 @@
31127 /* xalloc.h -- malloc with out-of-memory checking
31128
31129 - Copyright (C) 1990-2000, 2003-2004, 2006-2019 Free Software Foundation, Inc.
31130 + Copyright (C) 1990-2000, 2003-2004, 2006-2022 Free Software Foundation, Inc.
31131
31132 This program is free software: you can redistribute it and/or modify
31133 it under the terms of the GNU General Public License as published by
31134 - the Free Software Foundation; either version 3 of the License, or
31135 + the Free Software Foundation, either version 3 of the License, or
31136 (at your option) any later version.
31137
31138 This program is distributed in the hope that it will be useful,
31139 @@ -19,9 +19,13 @@
31140 #define XALLOC_H_
31141
31142 #include <stddef.h>
31143 +#include <stdlib.h>
31144 #include <stdint.h>
31145
31146 -#include "xalloc-oversized.h"
31147 +#if GNULIB_XALLOC
31148 +# include "idx.h"
31149 +# include "intprops.h"
31150 +#endif
31151
31152 #ifndef _GL_INLINE_HEADER_BEGIN
31153 #error "Please include config.h first."
31154 @@ -31,38 +35,72 @@ _GL_INLINE_HEADER_BEGIN
31155 # define XALLOC_INLINE _GL_INLINE
31156 #endif
31157
31158 +
31159 #ifdef __cplusplus
31160 extern "C" {
31161 #endif
31162
31163
31164 -#if ! defined __clang__ && \
31165 - (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
31166 -# define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
31167 -#else
31168 -# define _GL_ATTRIBUTE_ALLOC_SIZE(args)
31169 -#endif
31170 +#if GNULIB_XALLOC_DIE
31171
31172 /* This function is always triggered when memory is exhausted.
31173 It must be defined by the application, either explicitly
31174 or by using gnulib's xalloc-die module. This is the
31175 function to call when one wants the program to die because of a
31176 memory allocation failure. */
31177 -extern _Noreturn void xalloc_die (void);
31178 +/*extern*/ _Noreturn void xalloc_die (void);
31179 +
31180 +#endif /* GNULIB_XALLOC_DIE */
31181 +
31182 +#if GNULIB_XALLOC
31183
31184 void *xmalloc (size_t s)
31185 - _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_ALLOC_SIZE ((1));
31186 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31187 + _GL_ATTRIBUTE_ALLOC_SIZE ((1)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31188 +void *ximalloc (idx_t s)
31189 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31190 + _GL_ATTRIBUTE_ALLOC_SIZE ((1)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31191 +void *xinmalloc (idx_t n, idx_t s)
31192 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31193 + _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31194 void *xzalloc (size_t s)
31195 - _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_ALLOC_SIZE ((1));
31196 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31197 + _GL_ATTRIBUTE_ALLOC_SIZE ((1)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31198 +void *xizalloc (idx_t s)
31199 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31200 + _GL_ATTRIBUTE_ALLOC_SIZE ((1)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31201 void *xcalloc (size_t n, size_t s)
31202 - _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2));
31203 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31204 + _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31205 +void *xicalloc (idx_t n, idx_t s)
31206 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31207 + _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31208 void *xrealloc (void *p, size_t s)
31209 - _GL_ATTRIBUTE_ALLOC_SIZE ((2));
31210 -void *x2realloc (void *p, size_t *pn);
31211 + _GL_ATTRIBUTE_ALLOC_SIZE ((2));
31212 +void *xirealloc (void *p, idx_t s)
31213 + _GL_ATTRIBUTE_ALLOC_SIZE ((2)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31214 +void *xreallocarray (void *p, size_t n, size_t s)
31215 + _GL_ATTRIBUTE_ALLOC_SIZE ((2, 3));
31216 +void *xireallocarray (void *p, idx_t n, idx_t s)
31217 + _GL_ATTRIBUTE_ALLOC_SIZE ((2, 3)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31218 +void *x2realloc (void *p, size_t *ps) /* superseded by xpalloc */
31219 + _GL_ATTRIBUTE_RETURNS_NONNULL;
31220 +void *x2nrealloc (void *p, size_t *pn, size_t s) /* superseded by xpalloc */
31221 + _GL_ATTRIBUTE_RETURNS_NONNULL;
31222 +void *xpalloc (void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s)
31223 + _GL_ATTRIBUTE_RETURNS_NONNULL;
31224 void *xmemdup (void const *p, size_t s)
31225 - _GL_ATTRIBUTE_ALLOC_SIZE ((2));
31226 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31227 + _GL_ATTRIBUTE_ALLOC_SIZE ((2)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31228 +void *ximemdup (void const *p, idx_t s)
31229 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31230 + _GL_ATTRIBUTE_ALLOC_SIZE ((2)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31231 +char *ximemdup0 (void const *p, idx_t s)
31232 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31233 + _GL_ATTRIBUTE_RETURNS_NONNULL;
31234 char *xstrdup (char const *str)
31235 - _GL_ATTRIBUTE_MALLOC;
31236 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31237 + _GL_ATTRIBUTE_RETURNS_NONNULL;
31238
31239 /* In the following macros, T must be an elementary or structure/union or
31240 typedef'ed type, or a pointer to such a type. To apply one of the
31241 @@ -71,155 +109,60 @@ char *xstrdup (char const *str)
31242
31243 /* Allocate an object of type T dynamically, with error checking. */
31244 /* extern t *XMALLOC (typename t); */
31245 -#define XMALLOC(t) ((t *) xmalloc (sizeof (t)))
31246 +# define XMALLOC(t) ((t *) xmalloc (sizeof (t)))
31247
31248 /* Allocate memory for N elements of type T, with error checking. */
31249 /* extern t *XNMALLOC (size_t n, typename t); */
31250 -#define XNMALLOC(n, t) \
31251 - ((t *) (sizeof (t) == 1 ? xmalloc (n) : xnmalloc (n, sizeof (t))))
31252 +# define XNMALLOC(n, t) \
31253 + ((t *) (sizeof (t) == 1 ? xmalloc (n) : xnmalloc (n, sizeof (t))))
31254
31255 /* Allocate an object of type T dynamically, with error checking,
31256 and zero it. */
31257 /* extern t *XZALLOC (typename t); */
31258 -#define XZALLOC(t) ((t *) xzalloc (sizeof (t)))
31259 +# define XZALLOC(t) ((t *) xzalloc (sizeof (t)))
31260
31261 /* Allocate memory for N elements of type T, with error checking,
31262 and zero it. */
31263 /* extern t *XCALLOC (size_t n, typename t); */
31264 -#define XCALLOC(n, t) \
31265 - ((t *) (sizeof (t) == 1 ? xzalloc (n) : xcalloc (n, sizeof (t))))
31266 +# define XCALLOC(n, t) \
31267 + ((t *) (sizeof (t) == 1 ? xzalloc (n) : xcalloc (n, sizeof (t))))
31268
31269
31270 /* Allocate an array of N objects, each with S bytes of memory,
31271 dynamically, with error checking. S must be nonzero. */
31272
31273 -XALLOC_INLINE void *xnmalloc (size_t n, size_t s)
31274 - _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2));
31275 -XALLOC_INLINE void *
31276 -xnmalloc (size_t n, size_t s)
31277 -{
31278 - if (xalloc_oversized (n, s))
31279 - xalloc_die ();
31280 - return xmalloc (n * s);
31281 -}
31282 +void *xnmalloc (size_t n, size_t s)
31283 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31284 + _GL_ATTRIBUTE_ALLOC_SIZE ((1, 2)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31285
31286 +/* FIXME: Deprecate this in favor of xreallocarray? */
31287 /* Change the size of an allocated block of memory P to an array of N
31288 objects each of S bytes, with error checking. S must be nonzero. */
31289
31290 XALLOC_INLINE void *xnrealloc (void *p, size_t n, size_t s)
31291 - _GL_ATTRIBUTE_ALLOC_SIZE ((2, 3));
31292 + _GL_ATTRIBUTE_ALLOC_SIZE ((2, 3));
31293 XALLOC_INLINE void *
31294 xnrealloc (void *p, size_t n, size_t s)
31295 {
31296 - if (xalloc_oversized (n, s))
31297 - xalloc_die ();
31298 - return xrealloc (p, n * s);
31299 -}
31300 -
31301 -/* If P is null, allocate a block of at least *PN such objects;
31302 - otherwise, reallocate P so that it contains more than *PN objects
31303 - each of S bytes. S must be nonzero. Set *PN to the new number of
31304 - objects, and return the pointer to the new block. *PN is never set
31305 - to zero, and the returned pointer is never null.
31306 -
31307 - Repeated reallocations are guaranteed to make progress, either by
31308 - allocating an initial block with a nonzero size, or by allocating a
31309 - larger block.
31310 -
31311 - In the following implementation, nonzero sizes are increased by a
31312 - factor of approximately 1.5 so that repeated reallocations have
31313 - O(N) overall cost rather than O(N**2) cost, but the
31314 - specification for this function does not guarantee that rate.
31315 -
31316 - Here is an example of use:
31317 -
31318 - int *p = NULL;
31319 - size_t used = 0;
31320 - size_t allocated = 0;
31321 -
31322 - void
31323 - append_int (int value)
31324 - {
31325 - if (used == allocated)
31326 - p = x2nrealloc (p, &allocated, sizeof *p);
31327 - p[used++] = value;
31328 - }
31329 -
31330 - This causes x2nrealloc to allocate a block of some nonzero size the
31331 - first time it is called.
31332 -
31333 - To have finer-grained control over the initial size, set *PN to a
31334 - nonzero value before calling this function with P == NULL. For
31335 - example:
31336 -
31337 - int *p = NULL;
31338 - size_t used = 0;
31339 - size_t allocated = 0;
31340 - size_t allocated1 = 1000;
31341 -
31342 - void
31343 - append_int (int value)
31344 - {
31345 - if (used == allocated)
31346 - {
31347 - p = x2nrealloc (p, &allocated1, sizeof *p);
31348 - allocated = allocated1;
31349 - }
31350 - p[used++] = value;
31351 - }
31352 -
31353 - */
31354 -
31355 -XALLOC_INLINE void *
31356 -x2nrealloc (void *p, size_t *pn, size_t s)
31357 -{
31358 - size_t n = *pn;
31359 -
31360 - if (! p)
31361 - {
31362 - if (! n)
31363 - {
31364 - /* The approximate size to use for initial small allocation
31365 - requests, when the invoking code specifies an old size of
31366 - zero. This is the largest "small" request for the GNU C
31367 - library malloc. */
31368 - enum { DEFAULT_MXFAST = 64 * sizeof (size_t) / 4 };
31369 -
31370 - n = DEFAULT_MXFAST / s;
31371 - n += !n;
31372 - }
31373 - if (xalloc_oversized (n, s))
31374 - xalloc_die ();
31375 - }
31376 - else
31377 - {
31378 - /* Set N = floor (1.5 * N) + 1 so that progress is made even if N == 0.
31379 - Check for overflow, so that N * S stays in both ptrdiff_t and
31380 - size_t range. The check may be slightly conservative, but an
31381 - exact check isn't worth the trouble. */
31382 - if ((PTRDIFF_MAX < SIZE_MAX ? PTRDIFF_MAX : SIZE_MAX) / 3 * 2 / s
31383 - <= n)
31384 - xalloc_die ();
31385 - n += n / 2 + 1;
31386 - }
31387 -
31388 - *pn = n;
31389 - return xrealloc (p, n * s);
31390 + return xreallocarray (p, n, s);
31391 }
31392
31393 /* Return a pointer to a new buffer of N bytes. This is like xmalloc,
31394 except it returns char *. */
31395
31396 -XALLOC_INLINE char *xcharalloc (size_t n)
31397 - _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_ALLOC_SIZE ((1));
31398 -XALLOC_INLINE char *
31399 -xcharalloc (size_t n)
31400 -{
31401 - return XNMALLOC (n, char);
31402 -}
31403 +char *xcharalloc (size_t n)
31404 + _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE
31405 + _GL_ATTRIBUTE_ALLOC_SIZE ((1)) _GL_ATTRIBUTE_RETURNS_NONNULL;
31406 +
31407 +#endif /* GNULIB_XALLOC */
31408 +
31409
31410 #ifdef __cplusplus
31411 }
31412 +#endif
31413 +
31414 +
31415 +#if GNULIB_XALLOC && defined __cplusplus
31416
31417 /* C++ does not allow conversions from void * to other pointer types
31418 without a cast. Use templates to work around the problem when
31419 @@ -231,10 +174,17 @@ xrealloc (T *p, size_t s)
31420 return (T *) xrealloc ((void *) p, s);
31421 }
31422
31423 +template <typename T> inline T *
31424 +xreallocarray (T *p, size_t n, size_t s)
31425 +{
31426 + return (T *) xreallocarray ((void *) p, n, s);
31427 +}
31428 +
31429 +/* FIXME: Deprecate this in favor of xreallocarray? */
31430 template <typename T> inline T *
31431 xnrealloc (T *p, size_t n, size_t s)
31432 {
31433 - return (T *) xnrealloc ((void *) p, n, s);
31434 + return xreallocarray (p, n, s);
31435 }
31436
31437 template <typename T> inline T *
31438 @@ -255,7 +205,8 @@ xmemdup (T const *p, size_t s)
31439 return (T *) xmemdup ((void const *) p, s);
31440 }
31441
31442 -#endif
31443 +#endif /* GNULIB_XALLOC && C++ */
31444 +
31445
31446 _GL_INLINE_HEADER_END
31447
31448
31449 diff --git a/autotools/gnulib/xmalloc.c b/autotools/gnulib/xmalloc.c
31450 index cbe9a4f..993c1ee 100644
31451 --- a/autotools/gnulib/xmalloc.c
31452 +++ b/autotools/gnulib/xmalloc.c
31453 @@ -1,10 +1,10 @@
31454 /* xmalloc.c -- malloc with out of memory checking
31455
31456 - Copyright (C) 1990-2000, 2002-2006, 2008-2019 Free Software Foundation, Inc.
31457 + Copyright (C) 1990-2000, 2002-2006, 2008-2022 Free Software Foundation, Inc.
31458
31459 This program is free software: you can redistribute it and/or modify
31460 it under the terms of the GNU General Public License as published by
31461 - the Free Software Foundation; either version 3 of the License, or
31462 + the Free Software Foundation, either version 3 of the License, or
31463 (at your option) any later version.
31464
31465 This program is distributed in the hope that it will be useful,
31466 @@ -21,59 +21,255 @@
31467
31468 #include "xalloc.h"
31469
31470 +#include "ialloc.h"
31471 +#include "intprops.h"
31472 +#include "minmax.h"
31473 +
31474 #include <stdlib.h>
31475 #include <string.h>
31476
31477 -/* 1 if calloc is known to be compatible with GNU calloc. This
31478 - matters if we are not also using the calloc module, which defines
31479 - HAVE_CALLOC_GNU and supports the GNU API even on non-GNU platforms. */
31480 -#if defined HAVE_CALLOC_GNU || (defined __GLIBC__ && !defined __UCLIBC__)
31481 -enum { HAVE_GNU_CALLOC = 1 };
31482 -#else
31483 -enum { HAVE_GNU_CALLOC = 0 };
31484 -#endif
31485 +static void * _GL_ATTRIBUTE_PURE
31486 +nonnull (void *p)
31487 +{
31488 + if (!p)
31489 + xalloc_die ();
31490 + return p;
31491 +}
31492
31493 -/* Allocate N bytes of memory dynamically, with error checking. */
31494 +/* Allocate S bytes of memory dynamically, with error checking. */
31495
31496 void *
31497 -xmalloc (size_t n)
31498 +xmalloc (size_t s)
31499 {
31500 - void *p = malloc (n);
31501 - if (!p && n != 0)
31502 - xalloc_die ();
31503 - return p;
31504 + return nonnull (malloc (s));
31505 +}
31506 +
31507 +void *
31508 +ximalloc (idx_t s)
31509 +{
31510 + return nonnull (imalloc (s));
31511 }
31512
31513 -/* Change the size of an allocated block of memory P to N bytes,
31514 +char *
31515 +xcharalloc (size_t n)
31516 +{
31517 + return XNMALLOC (n, char);
31518 +}
31519 +
31520 +/* Change the size of an allocated block of memory P to S bytes,
31521 with error checking. */
31522
31523 void *
31524 -xrealloc (void *p, size_t n)
31525 +xrealloc (void *p, size_t s)
31526 +{
31527 + void *r = realloc (p, s);
31528 + if (!r && (!p || s))
31529 + xalloc_die ();
31530 + return r;
31531 +}
31532 +
31533 +void *
31534 +xirealloc (void *p, idx_t s)
31535 +{
31536 + return nonnull (irealloc (p, s));
31537 +}
31538 +
31539 +/* Change the size of an allocated block of memory P to an array of N
31540 + objects each of S bytes, with error checking. */
31541 +
31542 +void *
31543 +xreallocarray (void *p, size_t n, size_t s)
31544 +{
31545 + void *r = reallocarray (p, n, s);
31546 + if (!r && (!p || (n && s)))
31547 + xalloc_die ();
31548 + return r;
31549 +}
31550 +
31551 +void *
31552 +xireallocarray (void *p, idx_t n, idx_t s)
31553 +{
31554 + return nonnull (ireallocarray (p, n, s));
31555 +}
31556 +
31557 +/* Allocate an array of N objects, each with S bytes of memory,
31558 + dynamically, with error checking. S must be nonzero. */
31559 +
31560 +void *
31561 +xnmalloc (size_t n, size_t s)
31562 +{
31563 + return xreallocarray (NULL, n, s);
31564 +}
31565 +
31566 +void *
31567 +xinmalloc (idx_t n, idx_t s)
31568 +{
31569 + return xireallocarray (NULL, n, s);
31570 +}
31571 +
31572 +/* If P is null, allocate a block of at least *PS bytes; otherwise,
31573 + reallocate P so that it contains more than *PS bytes. *PS must be
31574 + nonzero unless P is null. Set *PS to the new block's size, and
31575 + return the pointer to the new block. *PS is never set to zero, and
31576 + the returned pointer is never null. */
31577 +
31578 +void *
31579 +x2realloc (void *p, size_t *ps)
31580 +{
31581 + return x2nrealloc (p, ps, 1);
31582 +}
31583 +
31584 +/* If P is null, allocate a block of at least *PN such objects;
31585 + otherwise, reallocate P so that it contains more than *PN objects
31586 + each of S bytes. S must be nonzero. Set *PN to the new number of
31587 + objects, and return the pointer to the new block. *PN is never set
31588 + to zero, and the returned pointer is never null.
31589 +
31590 + Repeated reallocations are guaranteed to make progress, either by
31591 + allocating an initial block with a nonzero size, or by allocating a
31592 + larger block.
31593 +
31594 + In the following implementation, nonzero sizes are increased by a
31595 + factor of approximately 1.5 so that repeated reallocations have
31596 + O(N) overall cost rather than O(N**2) cost, but the
31597 + specification for this function does not guarantee that rate.
31598 +
31599 + Here is an example of use:
31600 +
31601 + int *p = NULL;
31602 + size_t used = 0;
31603 + size_t allocated = 0;
31604 +
31605 + void
31606 + append_int (int value)
31607 + {
31608 + if (used == allocated)
31609 + p = x2nrealloc (p, &allocated, sizeof *p);
31610 + p[used++] = value;
31611 + }
31612 +
31613 + This causes x2nrealloc to allocate a block of some nonzero size the
31614 + first time it is called.
31615 +
31616 + To have finer-grained control over the initial size, set *PN to a
31617 + nonzero value before calling this function with P == NULL. For
31618 + example:
31619 +
31620 + int *p = NULL;
31621 + size_t used = 0;
31622 + size_t allocated = 0;
31623 + size_t allocated1 = 1000;
31624 +
31625 + void
31626 + append_int (int value)
31627 + {
31628 + if (used == allocated)
31629 + {
31630 + p = x2nrealloc (p, &allocated1, sizeof *p);
31631 + allocated = allocated1;
31632 + }
31633 + p[used++] = value;
31634 + }
31635 +
31636 + */
31637 +
31638 +void *
31639 +x2nrealloc (void *p, size_t *pn, size_t s)
31640 {
31641 - if (!n && p)
31642 + size_t n = *pn;
31643 +
31644 + if (! p)
31645 {
31646 - /* The GNU and C99 realloc behaviors disagree here. Act like
31647 - GNU, even if the underlying realloc is C99. */
31648 - free (p);
31649 - return NULL;
31650 + if (! n)
31651 + {
31652 + /* The approximate size to use for initial small allocation
31653 + requests, when the invoking code specifies an old size of
31654 + zero. This is the largest "small" request for the GNU C
31655 + library malloc. */
31656 + enum { DEFAULT_MXFAST = 64 * sizeof (size_t) / 4 };
31657 +
31658 + n = DEFAULT_MXFAST / s;
31659 + n += !n;
31660 + }
31661 + }
31662 + else
31663 + {
31664 + /* Set N = floor (1.5 * N) + 1 to make progress even if N == 0. */
31665 + if (INT_ADD_WRAPV (n, (n >> 1) + 1, &n))
31666 + xalloc_die ();
31667 }
31668
31669 - p = realloc (p, n);
31670 - if (!p && n)
31671 - xalloc_die ();
31672 + p = xreallocarray (p, n, s);
31673 + *pn = n;
31674 return p;
31675 }
31676
31677 -/* If P is null, allocate a block of at least *PN bytes; otherwise,
31678 - reallocate P so that it contains more than *PN bytes. *PN must be
31679 - nonzero unless P is null. Set *PN to the new block's size, and
31680 - return the pointer to the new block. *PN is never set to zero, and
31681 - the returned pointer is never null. */
31682 +/* Grow PA, which points to an array of *PN items, and return the
31683 + location of the reallocated array, updating *PN to reflect its
31684 + new size. The new array will contain at least N_INCR_MIN more
31685 + items, but will not contain more than N_MAX items total.
31686 + S is the size of each item, in bytes.
31687 +
31688 + S and N_INCR_MIN must be positive. *PN must be
31689 + nonnegative. If N_MAX is -1, it is treated as if it were
31690 + infinity.
31691 +
31692 + If PA is null, then allocate a new array instead of reallocating
31693 + the old one.
31694 +
31695 + Thus, to grow an array A without saving its old contents, do
31696 + { free (A); A = xpalloc (NULL, &AITEMS, ...); }. */
31697
31698 void *
31699 -x2realloc (void *p, size_t *pn)
31700 +xpalloc (void *pa, idx_t *pn, idx_t n_incr_min, ptrdiff_t n_max, idx_t s)
31701 {
31702 - return x2nrealloc (p, pn, 1);
31703 + idx_t n0 = *pn;
31704 +
31705 + /* The approximate size to use for initial small allocation
31706 + requests. This is the largest "small" request for the GNU C
31707 + library malloc. */
31708 + enum { DEFAULT_MXFAST = 64 * sizeof (size_t) / 4 };
31709 +
31710 + /* If the array is tiny, grow it to about (but no greater than)
31711 + DEFAULT_MXFAST bytes. Otherwise, grow it by about 50%.
31712 + Adjust the growth according to three constraints: N_INCR_MIN,
31713 + N_MAX, and what the C language can represent safely. */
31714 +
31715 + idx_t n;
31716 + if (INT_ADD_WRAPV (n0, n0 >> 1, &n))
31717 + n = IDX_MAX;
31718 + if (0 <= n_max && n_max < n)
31719 + n = n_max;
31720 +
31721 + /* NBYTES is of a type suitable for holding the count of bytes in an object.
31722 + This is typically idx_t, but it should be size_t on (theoretical?)
31723 + platforms where SIZE_MAX < IDX_MAX so xpalloc does not pass
31724 + values greater than SIZE_MAX to xrealloc. */
31725 +#if IDX_MAX <= SIZE_MAX
31726 + idx_t nbytes;
31727 +#else
31728 + size_t nbytes;
31729 +#endif
31730 + idx_t adjusted_nbytes
31731 + = (INT_MULTIPLY_WRAPV (n, s, &nbytes)
31732 + ? MIN (IDX_MAX, SIZE_MAX)
31733 + : nbytes < DEFAULT_MXFAST ? DEFAULT_MXFAST : 0);
31734 + if (adjusted_nbytes)
31735 + {
31736 + n = adjusted_nbytes / s;
31737 + nbytes = adjusted_nbytes - adjusted_nbytes % s;
31738 + }
31739 +
31740 + if (! pa)
31741 + *pn = 0;
31742 + if (n - n0 < n_incr_min
31743 + && (INT_ADD_WRAPV (n0, n_incr_min, &n)
31744 + || (0 <= n_max && n_max < n)
31745 + || INT_MULTIPLY_WRAPV (n, s, &nbytes)))
31746 + xalloc_die ();
31747 + pa = xrealloc (pa, nbytes);
31748 + *pn = n;
31749 + return pa;
31750 }
31751
31752 /* Allocate S bytes of zeroed memory dynamically, with error checking.
31753 @@ -83,7 +279,13 @@ x2realloc (void *p, size_t *pn)
31754 void *
31755 xzalloc (size_t s)
31756 {
31757 - return memset (xmalloc (s), 0, s);
31758 + return xcalloc (s, 1);
31759 +}
31760 +
31761 +void *
31762 +xizalloc (idx_t s)
31763 +{
31764 + return xicalloc (s, 1);
31765 }
31766
31767 /* Allocate zeroed memory for N elements of S bytes, with error
31768 @@ -92,15 +294,13 @@ xzalloc (size_t s)
31769 void *
31770 xcalloc (size_t n, size_t s)
31771 {
31772 - void *p;
31773 - /* Test for overflow, since objects with size greater than
31774 - PTRDIFF_MAX cause pointer subtraction to go awry. Omit size-zero
31775 - tests if HAVE_GNU_CALLOC, since GNU calloc never returns NULL if
31776 - successful. */
31777 - if (xalloc_oversized (n, s)
31778 - || (! (p = calloc (n, s)) && (HAVE_GNU_CALLOC || n != 0)))
31779 - xalloc_die ();
31780 - return p;
31781 + return nonnull (calloc (n, s));
31782 +}
31783 +
31784 +void *
31785 +xicalloc (idx_t n, idx_t s)
31786 +{
31787 + return nonnull (icalloc (n, s));
31788 }
31789
31790 /* Clone an object P of size S, with error checking. There's no need
31791 @@ -113,6 +313,23 @@ xmemdup (void const *p, size_t s)
31792 return memcpy (xmalloc (s), p, s);
31793 }
31794
31795 +void *
31796 +ximemdup (void const *p, idx_t s)
31797 +{
31798 + return memcpy (ximalloc (s), p, s);
31799 +}
31800 +
31801 +/* Clone an object P of size S, with error checking. Append
31802 + a terminating NUL byte. */
31803 +
31804 +char *
31805 +ximemdup0 (void const *p, idx_t s)
31806 +{
31807 + char *result = ximalloc (s + 1);
31808 + result[s] = 0;
31809 + return memcpy (result, p, s);
31810 +}
31811 +
31812 /* Clone STRING. */
31813
31814 char *
31815
31816 diff --git a/autotools/gnulib/xsize.c b/autotools/gnulib/xsize.c
31817 index 4b4914c..761e343 100644
31818 --- a/autotools/gnulib/xsize.c
31819 +++ b/autotools/gnulib/xsize.c
31820 @@ -1,3 +1,21 @@
31821 +/* Checked size_t computations.
31822 +
31823 + Copyright (C) 2012-2022 Free Software Foundation, Inc.
31824 +
31825 + This file is free software: you can redistribute it and/or modify
31826 + it under the terms of the GNU Lesser General Public License as
31827 + published by the Free Software Foundation; either version 2.1 of the
31828 + License, or (at your option) any later version.
31829 +
31830 + This file is distributed in the hope that it will be useful,
31831 + but WITHOUT ANY WARRANTY; without even the implied warranty of
31832 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31833 + GNU Lesser General Public License for more details.
31834 +
31835 + You should have received a copy of the GNU Lesser General Public License
31836 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
31837 +
31838 #include <config.h>
31839 +
31840 #define XSIZE_INLINE _GL_EXTERN_INLINE
31841 #include "xsize.h"
31842
31843 diff --git a/autotools/gnulib/xsize.h b/autotools/gnulib/xsize.h
31844 index ecfd478..0bfa4c8 100644
31845 --- a/autotools/gnulib/xsize.h
31846 +++ b/autotools/gnulib/xsize.h
31847 @@ -1,19 +1,19 @@
31848 /* xsize.h -- Checked size_t computations.
31849
31850 - Copyright (C) 2003, 2008-2019 Free Software Foundation, Inc.
31851 + Copyright (C) 2003, 2008-2022 Free Software Foundation, Inc.
31852
31853 - This program is free software; you can redistribute it and/or modify
31854 - it under the terms of the GNU General Public License as published by
31855 - the Free Software Foundation; either version 3, or (at your option)
31856 - any later version.
31857 + This file is free software: you can redistribute it and/or modify
31858 + it under the terms of the GNU Lesser General Public License as
31859 + published by the Free Software Foundation; either version 2.1 of the
31860 + License, or (at your option) any later version.
31861
31862 - This program is distributed in the hope that it will be useful,
31863 + This file is distributed in the hope that it will be useful,
31864 but WITHOUT ANY WARRANTY; without even the implied warranty of
31865 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31866 - GNU General Public License for more details.
31867 + GNU Lesser General Public License for more details.
31868
31869 - You should have received a copy of the GNU General Public License
31870 - along with this program; if not, see <https://www.gnu.org/licenses/>. */
31871 + You should have received a copy of the GNU Lesser General Public License
31872 + along with this program. If not, see <https://www.gnu.org/licenses/>. */
31873
31874 #ifndef _XSIZE_H
31875 #define _XSIZE_H
31876 @@ -27,6 +27,9 @@
31877 # include <stdint.h>
31878 #endif
31879
31880 +/* Get ATTRIBUTE_PURE. */
31881 +#include "attribute.h"
31882 +
31883 #ifndef _GL_INLINE_HEADER_BEGIN
31884 #error "Please include config.h first."
31885 #endif
31886 @@ -56,10 +59,7 @@ _GL_INLINE_HEADER_BEGIN
31887 ((N) <= SIZE_MAX ? (size_t) (N) : SIZE_MAX)
31888
31889 /* Sum of two sizes, with overflow check. */
31890 -XSIZE_INLINE size_t
31891 -#if __GNUC__ >= 3
31892 -__attribute__ ((__pure__))
31893 -#endif
31894 +XSIZE_INLINE size_t ATTRIBUTE_PURE
31895 xsum (size_t size1, size_t size2)
31896 {
31897 size_t sum = size1 + size2;
31898 @@ -67,30 +67,21 @@ xsum (size_t size1, size_t size2)
31899 }
31900
31901 /* Sum of three sizes, with overflow check. */
31902 -XSIZE_INLINE size_t
31903 -#if __GNUC__ >= 3
31904 -__attribute__ ((__pure__))
31905 -#endif
31906 +XSIZE_INLINE size_t ATTRIBUTE_PURE
31907 xsum3 (size_t size1, size_t size2, size_t size3)
31908 {
31909 return xsum (xsum (size1, size2), size3);
31910 }
31911
31912 /* Sum of four sizes, with overflow check. */
31913 -XSIZE_INLINE size_t
31914 -#if __GNUC__ >= 3
31915 -__attribute__ ((__pure__))
31916 -#endif
31917 +XSIZE_INLINE size_t ATTRIBUTE_PURE
31918 xsum4 (size_t size1, size_t size2, size_t size3, size_t size4)
31919 {
31920 return xsum (xsum (xsum (size1, size2), size3), size4);
31921 }
31922
31923 /* Maximum of two sizes, with overflow check. */
31924 -XSIZE_INLINE size_t
31925 -#if __GNUC__ >= 3
31926 -__attribute__ ((__pure__))
31927 -#endif
31928 +XSIZE_INLINE size_t ATTRIBUTE_PURE
31929 xmax (size_t size1, size_t size2)
31930 {
31931 /* No explicit check is needed here, because for any n:
31932
31933 diff --git a/autotools/m4/00gnulib.m4 b/autotools/m4/00gnulib.m4
31934 index e3e0fb6..dea34e8 100644
31935 --- a/autotools/m4/00gnulib.m4
31936 +++ b/autotools/m4/00gnulib.m4
31937 @@ -1,43 +1,82 @@
31938 -# 00gnulib.m4 serial 3
31939 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
31940 +# 00gnulib.m4 serial 8
31941 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
31942 dnl This file is free software; the Free Software Foundation
31943 dnl gives unlimited permission to copy and/or distribute it,
31944 dnl with or without modifications, as long as this notice is preserved.
31945
31946 dnl This file must be named something that sorts before all other
31947 -dnl gnulib-provided .m4 files. It is needed until such time as we can
31948 -dnl assume Autoconf 2.64, with its improved AC_DEFUN_ONCE and
31949 -dnl m4_divert semantics.
31950 +dnl gnulib-provided .m4 files. It is needed until the clang fix has
31951 +dnl been included in Autoconf.
31952
31953 -# Until autoconf 2.63, handling of the diversion stack required m4_init
31954 -# to be called first; but this does not happen with aclocal. Wrapping
31955 -# the entire execution in another layer of the diversion stack fixes this.
31956 -# Worse, prior to autoconf 2.62, m4_wrap depended on the underlying m4
31957 -# for whether it was FIFO or LIFO; in order to properly balance with
31958 -# m4_init, we need to undo our push just before anything wrapped within
31959 -# the m4_init body. The way to ensure this is to wrap both sides of
31960 -# m4_init with a one-shot macro that does the pop at the right time.
31961 -m4_ifndef([_m4_divert_diversion],
31962 -[m4_divert_push([KILL])
31963 -m4_define([gl_divert_fixup], [m4_divert_pop()m4_define([$0])])
31964 -m4_define([m4_init],
31965 - [gl_divert_fixup()]m4_defn([m4_init])[gl_divert_fixup()])])
31966 -
31967 -
31968 -# AC_DEFUN_ONCE([NAME], VALUE)
31969 -# ----------------------------
31970 -# Define NAME to expand to VALUE on the first use (whether by direct
31971 -# expansion, or by AC_REQUIRE), and to nothing on all subsequent uses.
31972 -# Avoid bugs in AC_REQUIRE in Autoconf 2.63 and earlier. This
31973 -# definition is slower than the version in Autoconf 2.64, because it
31974 -# can only use interfaces that existed since 2.59; but it achieves the
31975 -# same effect. Quoting is necessary to avoid confusing Automake.
31976 -m4_version_prereq([2.63.263], [],
31977 -[m4_define([AC][_DEFUN_ONCE],
31978 - [AC][_DEFUN([$1],
31979 - [AC_REQUIRE([_gl_DEFUN_ONCE([$1])],
31980 - [m4_indir([_gl_DEFUN_ONCE([$1])])])])]dnl
31981 -[AC][_DEFUN([_gl_DEFUN_ONCE([$1])], [$2])])])
31982 +# The following definitions arrange to use a compiler option
31983 +# -Werror=implicit-function-declaration in AC_CHECK_DECL, when the
31984 +# compiler is clang. Without it, clang implicitly declares "known"
31985 +# library functions in C mode, but not in C++ mode, which would cause
31986 +# Gnulib to omit a declaration and thus later produce an error in C++
31987 +# mode. As of clang 9.0, these "known" functions are identified through
31988 +# LIBBUILTIN invocations in the LLVM source file
31989 +# llvm/tools/clang/include/clang/Basic/Builtins.def.
31990 +# It's not possible to AC_REQUIRE the extra tests from AC_CHECK_DECL,
31991 +# because AC_CHECK_DECL, like other Autoconf built-ins, is not supposed
31992 +# to AC_REQUIRE anything: some configure.ac files have their first
31993 +# AC_CHECK_DECL executed conditionally. Therefore append the extra tests
31994 +# to AC_PROG_CC.
31995 +AC_DEFUN([gl_COMPILER_CLANG],
31996 +[
31997 +dnl AC_REQUIRE([AC_PROG_CC])
31998 + AC_CACHE_CHECK([whether the compiler is clang],
31999 + [gl_cv_compiler_clang],
32000 + [dnl Use _AC_COMPILE_IFELSE instead of AC_EGREP_CPP, to avoid error
32001 + dnl "circular dependency of AC_LANG_COMPILER(C)" if AC_PROG_CC has
32002 + dnl not yet been invoked.
32003 + _AC_COMPILE_IFELSE(
32004 + [AC_LANG_PROGRAM([[
32005 + #ifdef __clang__
32006 + barfbarf
32007 + #endif
32008 + ]],[[]])
32009 + ],
32010 + [gl_cv_compiler_clang=no],
32011 + [gl_cv_compiler_clang=yes])
32012 + ])
32013 +])
32014 +AC_DEFUN([gl_COMPILER_PREPARE_CHECK_DECL],
32015 +[
32016 +dnl AC_REQUIRE([AC_PROG_CC])
32017 +dnl AC_REQUIRE([gl_COMPILER_CLANG])
32018 + AC_CACHE_CHECK([for compiler option needed when checking for declarations],
32019 + [gl_cv_compiler_check_decl_option],
32020 + [if test $gl_cv_compiler_clang = yes; then
32021 + dnl Test whether the compiler supports the option
32022 + dnl '-Werror=implicit-function-declaration'.
32023 + save_ac_compile="$ac_compile"
32024 + ac_compile="$ac_compile -Werror=implicit-function-declaration"
32025 + dnl Use _AC_COMPILE_IFELSE instead of AC_COMPILE_IFELSE, to avoid a
32026 + dnl warning "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS".
32027 + _AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]],[[]])],
32028 + [gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'],
32029 + [gl_cv_compiler_check_decl_option=none])
32030 + ac_compile="$save_ac_compile"
32031 + else
32032 + gl_cv_compiler_check_decl_option=none
32033 + fi
32034 + ])
32035 + if test "x$gl_cv_compiler_check_decl_option" != xnone; then
32036 + ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
32037 + else
32038 + ac_compile_for_check_decl="$ac_compile"
32039 + fi
32040 +])
32041 +dnl Redefine _AC_CHECK_DECL_BODY so that it references ac_compile_for_check_decl
32042 +dnl instead of ac_compile. If, for whatever reason, the override of AC_PROG_CC
32043 +dnl in zzgnulib.m4 is inactive, use the original ac_compile.
32044 +m4_define([_AC_CHECK_DECL_BODY],
32045 +[ ac_save_ac_compile="$ac_compile"
32046 + if test -n "$ac_compile_for_check_decl"; then
32047 + ac_compile="$ac_compile_for_check_decl"
32048 + fi]
32049 +m4_defn([_AC_CHECK_DECL_BODY])[ ac_compile="$ac_save_ac_compile"
32050 +])
32051
32052 # gl_00GNULIB
32053 # -----------
32054
32055 diff --git a/autotools/m4/__inline.m4 b/autotools/m4/__inline.m4
32056 new file mode 100644
32057 index 0000000..fbe2098
32058 --- /dev/null
32059 +++ b/autotools/m4/__inline.m4
32060 @@ -0,0 +1,22 @@
32061 +# Test for __inline keyword
32062 +dnl Copyright 2017-2022 Free Software Foundation, Inc.
32063 +dnl This file is free software; the Free Software Foundation
32064 +dnl gives unlimited permission to copy and/or distribute it,
32065 +dnl with or without modifications, as long as this notice is preserved.
32066 +
32067 +AC_DEFUN([gl___INLINE],
32068 +[
32069 + AC_CACHE_CHECK([whether the compiler supports the __inline keyword],
32070 + [gl_cv_c___inline],
32071 + [AC_COMPILE_IFELSE(
32072 + [AC_LANG_PROGRAM(
32073 + [[typedef int foo_t;
32074 + static __inline foo_t foo (void) { return 0; }]],
32075 + [[return foo ();]])],
32076 + [gl_cv_c___inline=yes],
32077 + [gl_cv_c___inline=no])])
32078 + if test $gl_cv_c___inline = yes; then
32079 + AC_DEFINE([HAVE___INLINE], [1],
32080 + [Define to 1 if the compiler supports the keyword '__inline'.])
32081 + fi
32082 +])
32083
32084 diff --git a/autotools/m4/absolute-header.m4 b/autotools/m4/absolute-header.m4
32085 index a8f2cba..67d6507 100644
32086 --- a/autotools/m4/absolute-header.m4
32087 +++ b/autotools/m4/absolute-header.m4
32088 @@ -1,5 +1,5 @@
32089 -# absolute-header.m4 serial 16
32090 -dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
32091 +# absolute-header.m4 serial 17
32092 +dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
32093 dnl This file is free software; the Free Software Foundation
32094 dnl gives unlimited permission to copy and/or distribute it,
32095 dnl with or without modifications, as long as this notice is preserved.
32096 @@ -22,23 +22,21 @@ dnl From Derek Price.
32097 AC_DEFUN([gl_ABSOLUTE_HEADER],
32098 [AC_REQUIRE([AC_CANONICAL_HOST])
32099 AC_LANG_PREPROC_REQUIRE()dnl
32100 -dnl FIXME: gl_absolute_header and ac_header_exists must be used unquoted
32101 -dnl until we can assume autoconf 2.64 or newer.
32102 m4_foreach_w([gl_HEADER_NAME], [$1],
32103 [AS_VAR_PUSHDEF([gl_absolute_header],
32104 [gl_cv_absolute_]m4_defn([gl_HEADER_NAME]))dnl
32105 AC_CACHE_CHECK([absolute name of <]m4_defn([gl_HEADER_NAME])[>],
32106 - m4_defn([gl_absolute_header]),
32107 + [gl_absolute_header],
32108 [AS_VAR_PUSHDEF([ac_header_exists],
32109 [ac_cv_header_]m4_defn([gl_HEADER_NAME]))dnl
32110 AC_CHECK_HEADERS_ONCE(m4_defn([gl_HEADER_NAME]))dnl
32111 - if test AS_VAR_GET(ac_header_exists) = yes; then
32112 + if test AS_VAR_GET([ac_header_exists]) = yes; then
32113 gl_ABSOLUTE_HEADER_ONE(m4_defn([gl_HEADER_NAME]))
32114 fi
32115 AS_VAR_POPDEF([ac_header_exists])dnl
32116 ])dnl
32117 AC_DEFINE_UNQUOTED(AS_TR_CPP([ABSOLUTE_]m4_defn([gl_HEADER_NAME])),
32118 - ["AS_VAR_GET(gl_absolute_header)"],
32119 + ["AS_VAR_GET([gl_absolute_header])"],
32120 [Define this to an absolute name of <]m4_defn([gl_HEADER_NAME])[>.])
32121 AS_VAR_POPDEF([gl_absolute_header])dnl
32122 ])dnl
32123
32124 diff --git a/autotools/m4/alloca.m4 b/autotools/m4/alloca.m4
32125 index 29bd289..dc6f47e 100644
32126 --- a/autotools/m4/alloca.m4
32127 +++ b/autotools/m4/alloca.m4
32128 @@ -1,5 +1,5 @@
32129 -# alloca.m4 serial 15
32130 -dnl Copyright (C) 2002-2004, 2006-2007, 2009-2019 Free Software Foundation,
32131 +# alloca.m4 serial 21
32132 +dnl Copyright (C) 2002-2004, 2006-2007, 2009-2022 Free Software Foundation,
32133 dnl Inc.
32134 dnl This file is free software; the Free Software Foundation
32135 dnl gives unlimited permission to copy and/or distribute it,
32136 @@ -26,17 +26,15 @@ AC_DEFUN([gl_FUNC_ALLOCA],
32137 AC_DEFINE([HAVE_ALLOCA], [1],
32138 [Define to 1 if you have 'alloca' after including <alloca.h>,
32139 a header that may be supplied by this distribution.])
32140 - ALLOCA_H=alloca.h
32141 + GL_GENERATE_ALLOCA_H=true
32142 else
32143 dnl alloca exists as a library function, i.e. it is slow and probably
32144 dnl a memory leak. Don't define HAVE_ALLOCA in this case.
32145 - ALLOCA_H=
32146 + GL_GENERATE_ALLOCA_H=false
32147 fi
32148 else
32149 - ALLOCA_H=alloca.h
32150 + GL_GENERATE_ALLOCA_H=true
32151 fi
32152 - AC_SUBST([ALLOCA_H])
32153 - AM_CONDITIONAL([GL_GENERATE_ALLOCA_H], [test -n "$ALLOCA_H"])
32154
32155 if test $ac_cv_working_alloca_h = yes; then
32156 HAVE_ALLOCA_H=1
32157 @@ -50,13 +48,13 @@ AC_DEFUN([gl_FUNC_ALLOCA],
32158 # STACK_DIRECTION is already handled by AC_FUNC_ALLOCA.
32159 AC_DEFUN([gl_PREREQ_ALLOCA], [:])
32160
32161 -# This works around a bug in autoconf <= 2.68.
32162 -# See <https://lists.gnu.org/r/bug-gnulib/2011-06/msg00277.html>.
32163 +m4_version_prereq([2.70], [], [
32164
32165 -m4_version_prereq([2.69], [] ,[
32166 -
32167 -# This is taken from the following Autoconf patch:
32168 -# https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=6cd9f12520b0d6f76d3230d7565feba1ecf29497
32169 +# This works around a bug in autoconf <= 2.68 and has simplifications
32170 +# from 2.70. See:
32171 +# https://lists.gnu.org/r/bug-gnulib/2011-06/msg00277.html
32172 +# https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=6cd9f12520b0d6f76d3230d7565feba1ecf29497
32173 +# https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=15edf7fd8094fd14a89d9891dd72a9624762597a
32174
32175 # _AC_LIBOBJ_ALLOCA
32176 # -----------------
32177 @@ -72,26 +70,6 @@ AC_LIBSOURCES(alloca.c)
32178 AC_SUBST([ALLOCA], [\${LIBOBJDIR}alloca.$ac_objext])dnl
32179 AC_DEFINE(C_ALLOCA, 1, [Define to 1 if using 'alloca.c'.])
32180
32181 -AC_CACHE_CHECK(whether 'alloca.c' needs Cray hooks, ac_cv_os_cray,
32182 -[AC_EGREP_CPP(webecray,
32183 -[#if defined CRAY && ! defined CRAY2
32184 -webecray
32185 -#else
32186 -wenotbecray
32187 -#endif
32188 -], ac_cv_os_cray=yes, ac_cv_os_cray=no)])
32189 -if test $ac_cv_os_cray = yes; then
32190 - for ac_func in _getb67 GETB67 getb67; do
32191 - AC_CHECK_FUNC($ac_func,
32192 - [AC_DEFINE_UNQUOTED(CRAY_STACKSEG_END, $ac_func,
32193 - [Define to one of '_getb67', 'GETB67',
32194 - 'getb67' for Cray-2 and Cray-YMP
32195 - systems. This function is required for
32196 - 'alloca.c' support on those systems.])
32197 - break])
32198 - done
32199 -fi
32200 -
32201 AC_CACHE_CHECK([stack direction for C alloca],
32202 [ac_cv_c_stack_direction],
32203 [AC_RUN_IFELSE([AC_LANG_SOURCE(
32204 @@ -122,7 +100,7 @@ AH_VERBATIM([STACK_DIRECTION],
32205 STACK_DIRECTION > 0 => grows toward higher addresses
32206 STACK_DIRECTION < 0 => grows toward lower addresses
32207 STACK_DIRECTION = 0 => direction of growth unknown */
32208 -@%:@undef STACK_DIRECTION])dnl
32209 +#undef STACK_DIRECTION])dnl
32210 AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
32211 ])# _AC_LIBOBJ_ALLOCA
32212 ])
32213
32214 diff --git a/autotools/m4/builtin-expect.m4 b/autotools/m4/builtin-expect.m4
32215 new file mode 100644
32216 index 0000000..b1fb12a
32217 --- /dev/null
32218 +++ b/autotools/m4/builtin-expect.m4
32219 @@ -0,0 +1,49 @@
32220 +dnl Check for __builtin_expect.
32221 +
32222 +dnl Copyright 2016-2022 Free Software Foundation, Inc.
32223 +dnl This file is free software; the Free Software Foundation
32224 +dnl gives unlimited permission to copy and/or distribute it,
32225 +dnl with or without modifications, as long as this notice is preserved.
32226 +
32227 +dnl Written by Paul Eggert.
32228 +
32229 +AC_DEFUN([gl___BUILTIN_EXPECT],
32230 +[
32231 + AC_CACHE_CHECK([for __builtin_expect],
32232 + [gl_cv___builtin_expect],
32233 + [AC_LINK_IFELSE(
32234 + [AC_LANG_SOURCE([[
32235 + int
32236 + main (int argc, char **argv)
32237 + {
32238 + argc = __builtin_expect (argc, 100);
32239 + return argv[argc != 100][0];
32240 + }]])],
32241 + [gl_cv___builtin_expect=yes],
32242 + [AC_LINK_IFELSE(
32243 + [AC_LANG_SOURCE([[
32244 + #include <builtins.h>
32245 + int
32246 + main (int argc, char **argv)
32247 + {
32248 + argc = __builtin_expect (argc, 100);
32249 + return argv[argc != 100][0];
32250 + }]])],
32251 + [gl_cv___builtin_expect="in <builtins.h>"],
32252 + [gl_cv___builtin_expect=no])])])
32253 + if test "$gl_cv___builtin_expect" = yes; then
32254 + AC_DEFINE([HAVE___BUILTIN_EXPECT], [1])
32255 + elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
32256 + AC_DEFINE([HAVE___BUILTIN_EXPECT], [2])
32257 + fi
32258 + AH_VERBATIM([HAVE___BUILTIN_EXPECT],
32259 + [/* Define to 1 if the compiler supports __builtin_expect,
32260 + and to 2 if <builtins.h> does. */
32261 +#undef HAVE___BUILTIN_EXPECT
32262 +#ifndef HAVE___BUILTIN_EXPECT
32263 +# define __builtin_expect(e, c) (e)
32264 +#elif HAVE___BUILTIN_EXPECT == 2
32265 +# include <builtins.h>
32266 +#endif
32267 + ])
32268 +])
32269
32270 diff --git a/autotools/m4/calloc.m4 b/autotools/m4/calloc.m4
32271 new file mode 100644
32272 index 0000000..c01520e
32273 --- /dev/null
32274 +++ b/autotools/m4/calloc.m4
32275 @@ -0,0 +1,83 @@
32276 +# calloc.m4 serial 29
32277 +
32278 +# Copyright (C) 2004-2022 Free Software Foundation, Inc.
32279 +# This file is free software; the Free Software Foundation
32280 +# gives unlimited permission to copy and/or distribute it,
32281 +# with or without modifications, as long as this notice is preserved.
32282 +
32283 +# Written by Jim Meyering.
32284 +
32285 +# Determine whether calloc (N, S) returns non-NULL when N*S is zero,
32286 +# and returns NULL when N*S overflows.
32287 +# If so, define HAVE_CALLOC. Otherwise, define calloc to rpl_calloc
32288 +# and arrange to use a calloc wrapper function that does work in that case.
32289 +
32290 +# _AC_FUNC_CALLOC_IF([IF-WORKS], [IF-NOT])
32291 +# -------------------------------------
32292 +# If calloc is compatible with GNU calloc, run IF-WORKS, otherwise, IF-NOT.
32293 +AC_DEFUN([_AC_FUNC_CALLOC_IF],
32294 +[
32295 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
32296 + AC_CACHE_CHECK([whether calloc (0, n) and calloc (n, 0) return nonnull],
32297 + [ac_cv_func_calloc_0_nonnull],
32298 + [if test $cross_compiling != yes; then
32299 + ac_cv_func_calloc_0_nonnull=yes
32300 + AC_RUN_IFELSE(
32301 + [AC_LANG_PROGRAM(
32302 + [AC_INCLUDES_DEFAULT],
32303 + [[int result = 0;
32304 + char * volatile p = calloc (0, 0);
32305 + if (!p)
32306 + result |= 1;
32307 + free (p);
32308 + return result;
32309 + ]])],
32310 + [],
32311 + [ac_cv_func_calloc_0_nonnull=no])
32312 + else
32313 + case "$host_os" in
32314 + # Guess yes on glibc systems.
32315 + *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
32316 + # Guess yes on musl systems.
32317 + *-musl*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
32318 + # Guess yes on native Windows.
32319 + mingw*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
32320 + # If we don't know, obey --enable-cross-guesses.
32321 + *) ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;;
32322 + esac
32323 + fi
32324 + ])
32325 + AS_CASE([$ac_cv_func_calloc_0_nonnull], [*yes], [$1], [$2])
32326 +])
32327 +
32328 +
32329 +# gl_FUNC_CALLOC_GNU
32330 +# ------------------
32331 +# Replace calloc if it is not compatible with GNU libc.
32332 +AC_DEFUN([gl_FUNC_CALLOC_GNU],
32333 +[
32334 + AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
32335 + AC_REQUIRE([gl_FUNC_CALLOC_POSIX])
32336 + REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX"
32337 + if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then
32338 + _AC_FUNC_CALLOC_IF([], [REPLACE_CALLOC_FOR_CALLOC_GNU=1])
32339 + fi
32340 +])# gl_FUNC_CALLOC_GNU
32341 +
32342 +# gl_FUNC_CALLOC_POSIX
32343 +# --------------------
32344 +# Test whether 'calloc' is POSIX compliant (sets errno to ENOMEM when it
32345 +# fails, and doesn't mess up with ptrdiff_t or size_t overflow),
32346 +# and replace calloc if it is not.
32347 +AC_DEFUN([gl_FUNC_CALLOC_POSIX],
32348 +[
32349 + AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
32350 + AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
32351 + if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
32352 + REPLACE_CALLOC_FOR_CALLOC_POSIX=1
32353 + fi
32354 + dnl Although in theory we should also test for size_t overflow,
32355 + dnl in practice testing for ptrdiff_t overflow suffices
32356 + dnl since PTRDIFF_MAX <= SIZE_MAX on all known Gnulib porting targets.
32357 + dnl A separate size_t test would slow down 'configure'.
32358 +])
32359
32360 diff --git a/autotools/m4/canonicalize.m4 b/autotools/m4/canonicalize.m4
32361 index 5b6e25d..b55d5c0 100644
32362 --- a/autotools/m4/canonicalize.m4
32363 +++ b/autotools/m4/canonicalize.m4
32364 @@ -1,6 +1,6 @@
32365 -# canonicalize.m4 serial 29
32366 +# canonicalize.m4 serial 37
32367
32368 -dnl Copyright (C) 2003-2007, 2009-2019 Free Software Foundation, Inc.
32369 +dnl Copyright (C) 2003-2007, 2009-2022 Free Software Foundation, Inc.
32370
32371 dnl This file is free software; the Free Software Foundation
32372 dnl gives unlimited permission to copy and/or distribute it,
32373 @@ -11,7 +11,8 @@ dnl with or without modifications, as long as this notice is preserved.
32374 AC_DEFUN([gl_FUNC_CANONICALIZE_FILENAME_MODE],
32375 [
32376 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
32377 - AC_CHECK_FUNCS_ONCE([canonicalize_file_name])
32378 + AC_REQUIRE([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
32379 + AC_CHECK_FUNCS_ONCE([canonicalize_file_name faccessat])
32380 AC_REQUIRE([gl_DOUBLE_SLASH_ROOT])
32381 AC_REQUIRE([gl_FUNC_REALPATH_WORKS])
32382 if test $ac_cv_func_canonicalize_file_name = no; then
32383 @@ -56,7 +57,17 @@ AC_DEFUN([gl_CANONICALIZE_LGPL],
32384 AC_DEFUN([gl_CANONICALIZE_LGPL_SEPARATE],
32385 [
32386 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
32387 - AC_CHECK_FUNCS_ONCE([canonicalize_file_name getcwd readlink])
32388 + AC_REQUIRE([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK])
32389 + AC_CHECK_FUNCS_ONCE([canonicalize_file_name faccessat])
32390 +
32391 + dnl On native Windows, we use _getcwd(), regardless whether getcwd() is
32392 + dnl available through the linker option '-loldnames'.
32393 + AC_REQUIRE([AC_CANONICAL_HOST])
32394 + case "$host_os" in
32395 + mingw*) ;;
32396 + *) AC_CHECK_FUNCS([getcwd]) ;;
32397 + esac
32398 +
32399 AC_REQUIRE([gl_DOUBLE_SLASH_ROOT])
32400 AC_REQUIRE([gl_FUNC_REALPATH_WORKS])
32401 AC_CHECK_HEADERS_ONCE([sys/param.h])
32402 @@ -67,65 +78,106 @@ AC_DEFUN([gl_CANONICALIZE_LGPL_SEPARATE],
32403 # so is the latter.
32404 AC_DEFUN([gl_FUNC_REALPATH_WORKS],
32405 [
32406 - AC_CHECK_FUNCS_ONCE([realpath])
32407 + AC_CHECK_FUNCS_ONCE([realpath lstat])
32408 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
32409 AC_CACHE_CHECK([whether realpath works], [gl_cv_func_realpath_works], [
32410 + rm -rf conftest.a conftest.d
32411 touch conftest.a
32412 + # Assume that if we have lstat, we can also check symlinks.
32413 + if test $ac_cv_func_lstat = yes; then
32414 + ln -s conftest.a conftest.l
32415 + fi
32416 mkdir conftest.d
32417 AC_RUN_IFELSE([
32418 AC_LANG_PROGRAM([[
32419 ]GL_NOCRASH[
32420 + #include <errno.h>
32421 #include <stdlib.h>
32422 #include <string.h>
32423 ]], [[
32424 int result = 0;
32425 + /* This test fails on Solaris 10. */
32426 {
32427 char *name = realpath ("conftest.a", NULL);
32428 if (!(name && *name == '/'))
32429 result |= 1;
32430 free (name);
32431 }
32432 + /* This test fails on older versions of Cygwin. */
32433 {
32434 char *name = realpath ("conftest.b/../conftest.a", NULL);
32435 if (name != NULL)
32436 result |= 2;
32437 free (name);
32438 }
32439 + /* This test fails on Cygwin 2.9. */
32440 + #if HAVE_LSTAT
32441 + {
32442 + char *name = realpath ("conftest.l/../conftest.a", NULL);
32443 + if (name != NULL || errno != ENOTDIR)
32444 + result |= 4;
32445 + free (name);
32446 + }
32447 + #endif
32448 + /* This test fails on Mac OS X 10.13, OpenBSD 6.0. */
32449 {
32450 char *name = realpath ("conftest.a/", NULL);
32451 if (name != NULL)
32452 - result |= 4;
32453 + result |= 8;
32454 free (name);
32455 }
32456 + /* This test fails on AIX 7, Solaris 10. */
32457 {
32458 char *name1 = realpath (".", NULL);
32459 char *name2 = realpath ("conftest.d//./..", NULL);
32460 if (! name1 || ! name2 || strcmp (name1, name2))
32461 - result |= 8;
32462 + result |= 16;
32463 free (name1);
32464 free (name2);
32465 }
32466 + #ifdef __linux__
32467 + /* On Linux, // is the same as /. See also double-slash-root.m4.
32468 + realpath() should respect this.
32469 + This test fails on musl libc 1.2.2. */
32470 + {
32471 + char *name = realpath ("//", NULL);
32472 + if (! name || strcmp (name, "/"))
32473 + result |= 32;
32474 + free (name);
32475 + }
32476 + #endif
32477 return result;
32478 ]])
32479 ],
32480 [gl_cv_func_realpath_works=yes],
32481 - [gl_cv_func_realpath_works=no],
32482 + [case $? in
32483 + 32) gl_cv_func_realpath_works=nearly ;;
32484 + *) gl_cv_func_realpath_works=no ;;
32485 + esac
32486 + ],
32487 [case "$host_os" in
32488 # Guess yes on glibc systems.
32489 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
32490 + # Guess 'nearly' on musl systems.
32491 + *-musl*) gl_cv_func_realpath_works="guessing nearly" ;;
32492 + # Guess no on Cygwin.
32493 + cygwin*) gl_cv_func_realpath_works="guessing no" ;;
32494 # Guess no on native Windows.
32495 mingw*) gl_cv_func_realpath_works="guessing no" ;;
32496 - # If we don't know, assume the worst.
32497 - *) gl_cv_func_realpath_works="guessing no" ;;
32498 + # If we don't know, obey --enable-cross-guesses.
32499 + *) gl_cv_func_realpath_works="$gl_cross_guess_normal" ;;
32500 esac
32501 ])
32502 - rm -rf conftest.a conftest.d
32503 + rm -rf conftest.a conftest.l conftest.d
32504 ])
32505 case "$gl_cv_func_realpath_works" in
32506 *yes)
32507 - AC_DEFINE([FUNC_REALPATH_WORKS], [1], [Define to 1 if realpath()
32508 - can malloc memory, always gives an absolute path, and handles
32509 - trailing slash correctly.])
32510 + AC_DEFINE([FUNC_REALPATH_WORKS], [1],
32511 + [Define to 1 if realpath() can malloc memory, always gives an absolute path, and handles leading slashes and a trailing slash correctly.])
32512 + ;;
32513 + *nearly)
32514 + AC_DEFINE([FUNC_REALPATH_NEARLY_WORKS], [1],
32515 + [Define to 1 if realpath() can malloc memory, always gives an absolute path, and handles a trailing slash correctly.])
32516 ;;
32517 esac
32518 ])
32519
32520 diff --git a/autotools/m4/chdir-long.m4 b/autotools/m4/chdir-long.m4
32521 index 64b5ef9..4cadc3f 100644
32522 --- a/autotools/m4/chdir-long.m4
32523 +++ b/autotools/m4/chdir-long.m4
32524 @@ -1,4 +1,4 @@
32525 -#serial 16
32526 +#serial 17
32527
32528 # Use Gnulib's robust chdir function.
32529 # It can handle arbitrarily long directory names, which means
32530 @@ -6,7 +6,7 @@
32531 # never fails with ENAMETOOLONG.
32532 # Arrange to compile chdir-long.c only on systems that define PATH_MAX.
32533
32534 -dnl Copyright (C) 2004-2007, 2009-2019 Free Software Foundation, Inc.
32535 +dnl Copyright (C) 2004-2007, 2009-2022 Free Software Foundation, Inc.
32536 dnl This file is free software; the Free Software Foundation
32537 dnl gives unlimited permission to copy and/or distribute it,
32538 dnl with or without modifications, as long as this notice is preserved.
32539 @@ -16,15 +16,15 @@ dnl with or without modifications, as long as this notice is preserved.
32540 AC_DEFUN([gl_FUNC_CHDIR_LONG],
32541 [
32542 AC_REQUIRE([gl_PATHMAX_SNIPPET_PREREQ])
32543 - AC_CACHE_CHECK([whether this system has an arbitrary file name length limit],
32544 - [gl_cv_have_arbitrary_file_name_length_limit],
32545 + AC_CACHE_CHECK([whether this system supports file names of any length],
32546 + [gl_cv_have_unlimited_file_name_length],
32547 [AC_EGREP_CPP([have_arbitrary_file_name_length_limit],
32548 gl_PATHMAX_SNIPPET[
32549 #ifdef PATH_MAX
32550 have_arbitrary_file_name_length_limit
32551 #endif],
32552 - [gl_cv_have_arbitrary_file_name_length_limit=yes],
32553 - [gl_cv_have_arbitrary_file_name_length_limit=no])])
32554 + [gl_cv_have_unlimited_file_name_length=no],
32555 + [gl_cv_have_unlimited_file_name_length=yes])])
32556 ])
32557
32558 AC_DEFUN([gl_PREREQ_CHDIR_LONG], [:])
32559
32560 diff --git a/autotools/m4/clock_time.m4 b/autotools/m4/clock_time.m4
32561 index 8f7a7fc..2253553 100644
32562 --- a/autotools/m4/clock_time.m4
32563 +++ b/autotools/m4/clock_time.m4
32564 @@ -1,10 +1,11 @@
32565 -# clock_time.m4 serial 10
32566 -dnl Copyright (C) 2002-2006, 2009-2019 Free Software Foundation, Inc.
32567 +# clock_time.m4 serial 11
32568 +dnl Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc.
32569 dnl This file is free software; the Free Software Foundation
32570 dnl gives unlimited permission to copy and/or distribute it,
32571 dnl with or without modifications, as long as this notice is preserved.
32572
32573 -# Check for clock_gettime and clock_settime, and set LIB_CLOCK_GETTIME.
32574 +# Check for clock_getres, clock_gettime and clock_settime,
32575 +# and set LIB_CLOCK_GETTIME.
32576 # For a program named, say foo, you should add a line like the following
32577 # in the corresponding Makefile.am file:
32578 # foo_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME)
32579 @@ -26,6 +27,6 @@ AC_DEFUN([gl_CLOCK_TIME],
32580 AC_SEARCH_LIBS([clock_gettime], [rt posix4],
32581 [test "$ac_cv_search_clock_gettime" = "none required" ||
32582 LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime])
32583 - AC_CHECK_FUNCS([clock_gettime clock_settime])
32584 + AC_CHECK_FUNCS([clock_getres clock_gettime clock_settime])
32585 LIBS=$gl_saved_libs
32586 ])
32587
32588 diff --git a/autotools/m4/close.m4 b/autotools/m4/close.m4
32589 index 7013a13..f95dbc9 100644
32590 --- a/autotools/m4/close.m4
32591 +++ b/autotools/m4/close.m4
32592 @@ -1,5 +1,5 @@
32593 # close.m4 serial 9
32594 -dnl Copyright (C) 2008-2019 Free Software Foundation, Inc.
32595 +dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
32596 dnl This file is free software; the Free Software Foundation
32597 dnl gives unlimited permission to copy and/or distribute it,
32598 dnl with or without modifications, as long as this notice is preserved.
32599
32600 diff --git a/autotools/m4/closedir.m4 b/autotools/m4/closedir.m4
32601 index 37dc541..cac29d6 100644
32602 --- a/autotools/m4/closedir.m4
32603 +++ b/autotools/m4/closedir.m4
32604 @@ -1,5 +1,5 @@
32605 # closedir.m4 serial 6
32606 -dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
32607 +dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
32608 dnl This file is free software; the Free Software Foundation
32609 dnl gives unlimited permission to copy and/or distribute it,
32610 dnl with or without modifications, as long as this notice is preserved.
32611
32612 diff --git a/autotools/m4/dirent_h.m4 b/autotools/m4/dirent_h.m4
32613 index 732aa55..ddaca16 100644
32614 --- a/autotools/m4/dirent_h.m4
32615 +++ b/autotools/m4/dirent_h.m4
32616 @@ -1,15 +1,15 @@
32617 -# dirent_h.m4 serial 16
32618 -dnl Copyright (C) 2008-2019 Free Software Foundation, Inc.
32619 +# dirent_h.m4 serial 19
32620 +dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
32621 dnl This file is free software; the Free Software Foundation
32622 dnl gives unlimited permission to copy and/or distribute it,
32623 dnl with or without modifications, as long as this notice is preserved.
32624
32625 dnl Written by Bruno Haible.
32626
32627 -AC_DEFUN([gl_DIRENT_H],
32628 +AC_DEFUN_ONCE([gl_DIRENT_H],
32629 [
32630 - dnl Use AC_REQUIRE here, so that the default behavior below is expanded
32631 - dnl once only, before all statements that occur in other macros.
32632 + dnl Ensure to expand the default settings once only, before all statements
32633 + dnl that occur in other macros.
32634 AC_REQUIRE([gl_DIRENT_H_DEFAULTS])
32635
32636 dnl <dirent.h> is always overridden, because of GNULIB_POSIXCHECK.
32637 @@ -27,26 +27,41 @@ AC_DEFUN([gl_DIRENT_H],
32638 ]], [alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir])
32639 ])
32640
32641 +# gl_DIRENT_MODULE_INDICATOR([modulename])
32642 +# sets the shell variable that indicates the presence of the given module
32643 +# to a C preprocessor expression that will evaluate to 1.
32644 +# This macro invocation must not occur in macros that are AC_REQUIREd.
32645 AC_DEFUN([gl_DIRENT_MODULE_INDICATOR],
32646 [
32647 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
32648 - AC_REQUIRE([gl_DIRENT_H_DEFAULTS])
32649 + dnl Ensure to expand the default settings once only.
32650 + gl_DIRENT_H_REQUIRE_DEFAULTS
32651 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
32652 dnl Define it also as a C macro, for the benefit of the unit tests.
32653 gl_MODULE_INDICATOR_FOR_TESTS([$1])
32654 ])
32655
32656 +# Initializes the default values for AC_SUBSTed shell variables.
32657 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
32658 +# outside of macros or in macros that are not AC_REQUIREd.
32659 +AC_DEFUN([gl_DIRENT_H_REQUIRE_DEFAULTS],
32660 +[
32661 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_DIRENT_H_MODULE_INDICATOR_DEFAULTS], [
32662 + gl_UNISTD_H_REQUIRE_DEFAULTS dnl for REPLACE_FCHDIR
32663 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPENDIR])
32664 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_READDIR])
32665 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REWINDDIR])
32666 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CLOSEDIR])
32667 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_DIRFD])
32668 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FDOPENDIR])
32669 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SCANDIR])
32670 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ALPHASORT])
32671 + ])
32672 + m4_require(GL_MODULE_INDICATOR_PREFIX[_DIRENT_H_MODULE_INDICATOR_DEFAULTS])
32673 + AC_REQUIRE([gl_DIRENT_H_DEFAULTS])
32674 +])
32675 +
32676 AC_DEFUN([gl_DIRENT_H_DEFAULTS],
32677 [
32678 - AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl for REPLACE_FCHDIR
32679 - GNULIB_OPENDIR=0; AC_SUBST([GNULIB_OPENDIR])
32680 - GNULIB_READDIR=0; AC_SUBST([GNULIB_READDIR])
32681 - GNULIB_REWINDDIR=0; AC_SUBST([GNULIB_REWINDDIR])
32682 - GNULIB_CLOSEDIR=0; AC_SUBST([GNULIB_CLOSEDIR])
32683 - GNULIB_DIRFD=0; AC_SUBST([GNULIB_DIRFD])
32684 - GNULIB_FDOPENDIR=0; AC_SUBST([GNULIB_FDOPENDIR])
32685 - GNULIB_SCANDIR=0; AC_SUBST([GNULIB_SCANDIR])
32686 - GNULIB_ALPHASORT=0; AC_SUBST([GNULIB_ALPHASORT])
32687 dnl Assume proper GNU behavior unless another module says otherwise.
32688 HAVE_OPENDIR=1; AC_SUBST([HAVE_OPENDIR])
32689 HAVE_READDIR=1; AC_SUBST([HAVE_READDIR])
32690
32691 diff --git a/autotools/m4/dirfd.m4 b/autotools/m4/dirfd.m4
32692 index 5c75869..9200170 100644
32693 --- a/autotools/m4/dirfd.m4
32694 +++ b/autotools/m4/dirfd.m4
32695 @@ -2,7 +2,7 @@
32696
32697 dnl Find out how to get the file descriptor associated with an open DIR*.
32698
32699 -# Copyright (C) 2001-2006, 2008-2019 Free Software Foundation, Inc.
32700 +# Copyright (C) 2001-2006, 2008-2022 Free Software Foundation, Inc.
32701 # This file is free software; the Free Software Foundation
32702 # gives unlimited permission to copy and/or distribute it,
32703 # with or without modifications, as long as this notice is preserved.
32704
32705 diff --git a/autotools/m4/dirname.m4 b/autotools/m4/dirname.m4
32706 deleted file mode 100644
32707 index 32141ae..0000000
32708 --- a/autotools/m4/dirname.m4
32709 +++ /dev/null
32710 @@ -1,19 +0,0 @@
32711 -#serial 10 -*- autoconf -*-
32712 -dnl Copyright (C) 2002-2006, 2009-2019 Free Software Foundation, Inc.
32713 -dnl This file is free software; the Free Software Foundation
32714 -dnl gives unlimited permission to copy and/or distribute it,
32715 -dnl with or without modifications, as long as this notice is preserved.
32716 -
32717 -AC_DEFUN([gl_DIRNAME],
32718 -[
32719 - AC_REQUIRE([gl_DIRNAME_LGPL])
32720 -])
32721 -
32722 -AC_DEFUN([gl_DIRNAME_LGPL],
32723 -[
32724 - dnl Prerequisites of lib/dirname.h.
32725 - AC_REQUIRE([gl_DOUBLE_SLASH_ROOT])
32726 -
32727 - dnl No prerequisites of lib/basename-lgpl.c, lib/dirname-lgpl.c,
32728 - dnl lib/stripslash.c.
32729 -])
32730
32731 diff --git a/autotools/m4/double-slash-root.m4 b/autotools/m4/double-slash-root.m4
32732 index 0c5afb1..09ff5f0 100644
32733 --- a/autotools/m4/double-slash-root.m4
32734 +++ b/autotools/m4/double-slash-root.m4
32735 @@ -1,5 +1,5 @@
32736 # double-slash-root.m4 serial 4 -*- Autoconf -*-
32737 -dnl Copyright (C) 2006, 2008-2019 Free Software Foundation, Inc.
32738 +dnl Copyright (C) 2006, 2008-2022 Free Software Foundation, Inc.
32739 dnl This file is free software; the Free Software Foundation
32740 dnl gives unlimited permission to copy and/or distribute it,
32741 dnl with or without modifications, as long as this notice is preserved.
32742
32743 diff --git a/autotools/m4/dup.m4 b/autotools/m4/dup.m4
32744 index 005f1ea..3109a65 100644
32745 --- a/autotools/m4/dup.m4
32746 +++ b/autotools/m4/dup.m4
32747 @@ -1,5 +1,5 @@
32748 -# dup.m4 serial 6
32749 -dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
32750 +# dup.m4 serial 7
32751 +dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
32752 dnl This file is free software; the Free Software Foundation
32753 dnl gives unlimited permission to copy and/or distribute it,
32754 dnl with or without modifications, as long as this notice is preserved.
32755 @@ -26,7 +26,8 @@ AC_DEFUN([gl_FUNC_DUP],
32756 [AC_RUN_IFELSE(
32757 [AC_LANG_PROGRAM([[#include <unistd.h>
32758 #include <fcntl.h>
32759 - #include <errno.h>]],
32760 + #include <errno.h>
32761 + ]GL_MDA_DEFINES],
32762 [[/* On OS/2 kLIBC, dup does not work on a directory fd. */
32763 int fd = open (".", O_RDONLY);
32764 return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
32765
32766 diff --git a/autotools/m4/dup2.m4 b/autotools/m4/dup2.m4
32767 index b314247..7e777cd 100644
32768 --- a/autotools/m4/dup2.m4
32769 +++ b/autotools/m4/dup2.m4
32770 @@ -1,5 +1,5 @@
32771 -#serial 25
32772 -dnl Copyright (C) 2002, 2005, 2007, 2009-2019 Free Software Foundation, Inc.
32773 +#serial 27
32774 +dnl Copyright (C) 2002, 2005, 2007, 2009-2022 Free Software Foundation, Inc.
32775 dnl This file is free software; the Free Software Foundation
32776 dnl gives unlimited permission to copy and/or distribute it,
32777 dnl with or without modifications, as long as this notice is preserved.
32778 @@ -8,107 +8,95 @@ AC_DEFUN([gl_FUNC_DUP2],
32779 [
32780 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
32781 AC_REQUIRE([AC_CANONICAL_HOST])
32782 - m4_ifdef([gl_FUNC_DUP2_OBSOLETE], [
32783 - AC_CHECK_FUNCS_ONCE([dup2])
32784 - if test $ac_cv_func_dup2 = no; then
32785 - HAVE_DUP2=0
32786 - fi
32787 - ], [
32788 - AC_DEFINE([HAVE_DUP2], [1], [Define to 1 if you have the 'dup2' function.])
32789 - ])
32790 - if test $HAVE_DUP2 = 1; then
32791 - AC_CACHE_CHECK([whether dup2 works], [gl_cv_func_dup2_works],
32792 - [AC_RUN_IFELSE([
32793 - AC_LANG_PROGRAM(
32794 - [[#include <errno.h>
32795 - #include <fcntl.h>
32796 - #include <limits.h>
32797 - #include <sys/resource.h>
32798 - #include <unistd.h>
32799 - #ifndef RLIM_SAVED_CUR
32800 - # define RLIM_SAVED_CUR RLIM_INFINITY
32801 - #endif
32802 - #ifndef RLIM_SAVED_MAX
32803 - # define RLIM_SAVED_MAX RLIM_INFINITY
32804 - #endif
32805 - ]],
32806 - [[int result = 0;
32807 - int bad_fd = INT_MAX;
32808 - struct rlimit rlim;
32809 - if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
32810 - && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
32811 - && rlim.rlim_cur != RLIM_INFINITY
32812 - && rlim.rlim_cur != RLIM_SAVED_MAX
32813 - && rlim.rlim_cur != RLIM_SAVED_CUR)
32814 - bad_fd = rlim.rlim_cur;
32815 - #ifdef FD_CLOEXEC
32816 - if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
32817 - result |= 1;
32818 - #endif
32819 - if (dup2 (1, 1) != 1)
32820 - result |= 2;
32821 - #ifdef FD_CLOEXEC
32822 - if (fcntl (1, F_GETFD) != FD_CLOEXEC)
32823 - result |= 4;
32824 - #endif
32825 - close (0);
32826 - if (dup2 (0, 0) != -1)
32827 - result |= 8;
32828 - /* Many gnulib modules require POSIX conformance of EBADF. */
32829 - if (dup2 (2, bad_fd) == -1 && errno != EBADF)
32830 - result |= 16;
32831 - /* Flush out some cygwin core dumps. */
32832 - if (dup2 (2, -1) != -1 || errno != EBADF)
32833 - result |= 32;
32834 - dup2 (2, 255);
32835 - dup2 (2, 256);
32836 - /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
32837 - {
32838 - int fd = open (".", O_RDONLY);
32839 - if (fd == -1)
32840 - result |= 64;
32841 - else if (dup2 (fd, fd + 1) == -1)
32842 - result |= 128;
32843 -
32844 - close (fd);
32845 - }
32846 - return result;]])
32847 - ],
32848 - [gl_cv_func_dup2_works=yes], [gl_cv_func_dup2_works=no],
32849 - [case "$host_os" in
32850 - mingw*) # on this platform, dup2 always returns 0 for success
32851 - gl_cv_func_dup2_works="guessing no" ;;
32852 - cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
32853 - gl_cv_func_dup2_works="guessing no" ;;
32854 - aix* | freebsd*)
32855 - # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
32856 - # not EBADF.
32857 - gl_cv_func_dup2_works="guessing no" ;;
32858 - haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
32859 - gl_cv_func_dup2_works="guessing no" ;;
32860 - *-android*) # implemented using dup3(), which fails if oldfd == newfd
32861 - gl_cv_func_dup2_works="guessing no" ;;
32862 - os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
32863 - gl_cv_func_dup2_works="guessing no" ;;
32864 - *) gl_cv_func_dup2_works="guessing yes" ;;
32865 - esac])
32866 - ])
32867 - case "$gl_cv_func_dup2_works" in
32868 - *yes) ;;
32869 - *)
32870 - REPLACE_DUP2=1
32871 - AC_CHECK_FUNCS([setdtablesize])
32872 - ;;
32873 - esac
32874 - fi
32875 + AC_CACHE_CHECK([whether dup2 works], [gl_cv_func_dup2_works],
32876 + [AC_RUN_IFELSE([
32877 + AC_LANG_PROGRAM(
32878 + [[#include <errno.h>
32879 + #include <fcntl.h>
32880 + #include <limits.h>
32881 + #include <sys/resource.h>
32882 + #include <unistd.h>
32883 + ]GL_MDA_DEFINES[
32884 + #ifndef RLIM_SAVED_CUR
32885 + # define RLIM_SAVED_CUR RLIM_INFINITY
32886 + #endif
32887 + #ifndef RLIM_SAVED_MAX
32888 + # define RLIM_SAVED_MAX RLIM_INFINITY
32889 + #endif
32890 + ]],
32891 + [[int result = 0;
32892 + int bad_fd = INT_MAX;
32893 + struct rlimit rlim;
32894 + if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
32895 + && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
32896 + && rlim.rlim_cur != RLIM_INFINITY
32897 + && rlim.rlim_cur != RLIM_SAVED_MAX
32898 + && rlim.rlim_cur != RLIM_SAVED_CUR)
32899 + bad_fd = rlim.rlim_cur;
32900 + #ifdef FD_CLOEXEC
32901 + if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
32902 + result |= 1;
32903 + #endif
32904 + if (dup2 (1, 1) != 1)
32905 + result |= 2;
32906 + #ifdef FD_CLOEXEC
32907 + if (fcntl (1, F_GETFD) != FD_CLOEXEC)
32908 + result |= 4;
32909 + #endif
32910 + close (0);
32911 + if (dup2 (0, 0) != -1)
32912 + result |= 8;
32913 + /* Many gnulib modules require POSIX conformance of EBADF. */
32914 + if (dup2 (2, bad_fd) == -1 && errno != EBADF)
32915 + result |= 16;
32916 + /* Flush out some cygwin core dumps. */
32917 + if (dup2 (2, -1) != -1 || errno != EBADF)
32918 + result |= 32;
32919 + dup2 (2, 255);
32920 + dup2 (2, 256);
32921 + /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
32922 + {
32923 + int fd = open (".", O_RDONLY);
32924 + if (fd == -1)
32925 + result |= 64;
32926 + else if (dup2 (fd, fd + 1) == -1)
32927 + result |= 128;
32928 + close (fd);
32929 + }
32930 + return result;]])
32931 + ],
32932 + [gl_cv_func_dup2_works=yes], [gl_cv_func_dup2_works=no],
32933 + [case "$host_os" in
32934 + mingw*) # on this platform, dup2 always returns 0 for success
32935 + gl_cv_func_dup2_works="guessing no" ;;
32936 + cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
32937 + gl_cv_func_dup2_works="guessing no" ;;
32938 + aix* | freebsd*)
32939 + # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
32940 + # not EBADF.
32941 + gl_cv_func_dup2_works="guessing no" ;;
32942 + haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
32943 + gl_cv_func_dup2_works="guessing no" ;;
32944 + *-android*) # implemented using dup3(), which fails if oldfd == newfd
32945 + gl_cv_func_dup2_works="guessing no" ;;
32946 + os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
32947 + gl_cv_func_dup2_works="guessing no" ;;
32948 + *) gl_cv_func_dup2_works="guessing yes" ;;
32949 + esac])
32950 + ])
32951 + case "$gl_cv_func_dup2_works" in
32952 + *yes) ;;
32953 + *)
32954 + REPLACE_DUP2=1
32955 + AC_CHECK_FUNCS([setdtablesize])
32956 + ;;
32957 + esac
32958 dnl Replace dup2() for supporting the gnulib-defined fchdir() function,
32959 dnl to keep fchdir's bookkeeping up-to-date.
32960 m4_ifdef([gl_FUNC_FCHDIR], [
32961 gl_TEST_FCHDIR
32962 if test $HAVE_FCHDIR = 0; then
32963 - if test $HAVE_DUP2 = 1; then
32964 - REPLACE_DUP2=1
32965 - fi
32966 + REPLACE_DUP2=1
32967 fi
32968 ])
32969 ])
32970
32971 diff --git a/autotools/m4/eealloc.m4 b/autotools/m4/eealloc.m4
32972 index 2a4b120..a6aa2f8 100644
32973 --- a/autotools/m4/eealloc.m4
32974 +++ b/autotools/m4/eealloc.m4
32975 @@ -1,5 +1,5 @@
32976 # eealloc.m4 serial 3
32977 -dnl Copyright (C) 2003, 2009-2019 Free Software Foundation, Inc.
32978 +dnl Copyright (C) 2003, 2009-2022 Free Software Foundation, Inc.
32979 dnl This file is free software; the Free Software Foundation
32980 dnl gives unlimited permission to copy and/or distribute it,
32981 dnl with or without modifications, as long as this notice is preserved.
32982
32983 diff --git a/autotools/m4/errno_h.m4 b/autotools/m4/errno_h.m4
32984 index 2388854..4be9780 100644
32985 --- a/autotools/m4/errno_h.m4
32986 +++ b/autotools/m4/errno_h.m4
32987 @@ -1,5 +1,5 @@
32988 -# errno_h.m4 serial 13
32989 -dnl Copyright (C) 2004, 2006, 2008-2019 Free Software Foundation, Inc.
32990 +# errno_h.m4 serial 14
32991 +dnl Copyright (C) 2004, 2006, 2008-2022 Free Software Foundation, Inc.
32992 dnl This file is free software; the Free Software Foundation
32993 dnl gives unlimited permission to copy and/or distribute it,
32994 dnl with or without modifications, as long as this notice is preserved.
32995 @@ -68,13 +68,11 @@ booboo
32996 [gl_cv_header_errno_h_complete=yes])
32997 ])
32998 if test $gl_cv_header_errno_h_complete = yes; then
32999 - ERRNO_H=''
33000 + GL_GENERATE_ERRNO_H=false
33001 else
33002 gl_NEXT_HEADERS([errno.h])
33003 - ERRNO_H='errno.h'
33004 + GL_GENERATE_ERRNO_H=true
33005 fi
33006 - AC_SUBST([ERRNO_H])
33007 - AM_CONDITIONAL([GL_GENERATE_ERRNO_H], [test -n "$ERRNO_H"])
33008 gl_REPLACE_ERRNO_VALUE([EMULTIHOP])
33009 gl_REPLACE_ERRNO_VALUE([ENOLINK])
33010 gl_REPLACE_ERRNO_VALUE([EOVERFLOW])
33011 @@ -88,7 +86,7 @@ booboo
33012 # Set the variables EOVERFLOW_HIDDEN and EOVERFLOW_VALUE.
33013 AC_DEFUN([gl_REPLACE_ERRNO_VALUE],
33014 [
33015 - if test -n "$ERRNO_H"; then
33016 + if $GL_GENERATE_ERRNO_H; then
33017 AC_CACHE_CHECK([for ]$1[ value], [gl_cv_header_errno_h_]$1, [
33018 AC_EGREP_CPP([yes],[
33019 #include <errno.h>
33020
33021 diff --git a/autotools/m4/error.m4 b/autotools/m4/error.m4
33022 index 393adb5..7a10344 100644
33023 --- a/autotools/m4/error.m4
33024 +++ b/autotools/m4/error.m4
33025 @@ -1,6 +1,6 @@
33026 -#serial 14
33027 +#serial 15
33028
33029 -# Copyright (C) 1996-1998, 2001-2004, 2009-2019 Free Software Foundation, Inc.
33030 +# Copyright (C) 1996-1998, 2001-2004, 2009-2022 Free Software Foundation, Inc.
33031 #
33032 # This file is free software; the Free Software Foundation
33033 # gives unlimited permission to copy and/or distribute it,
33034 @@ -22,6 +22,10 @@ AC_DEFUN([gl_ERROR],
33035 # Prerequisites of lib/error.c.
33036 AC_DEFUN([gl_PREREQ_ERROR],
33037 [
33038 + dnl Use system extensions on Android, so that AC_FUNC_STRERROR_R
33039 + dnl discovers the GNU API for strerror_r on Android API level 23 and later.
33040 + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
33041 +
33042 AC_REQUIRE([AC_FUNC_STRERROR_R])
33043 :
33044 ])
33045
33046 diff --git a/autotools/m4/euidaccess.m4 b/autotools/m4/euidaccess.m4
33047 index 8e840e6..04f66f9 100644
33048 --- a/autotools/m4/euidaccess.m4
33049 +++ b/autotools/m4/euidaccess.m4
33050 @@ -1,5 +1,5 @@
33051 # euidaccess.m4 serial 15
33052 -dnl Copyright (C) 2002-2019 Free Software Foundation, Inc.
33053 +dnl Copyright (C) 2002-2022 Free Software Foundation, Inc.
33054 dnl This file is free software; the Free Software Foundation
33055 dnl gives unlimited permission to copy and/or distribute it,
33056 dnl with or without modifications, as long as this notice is preserved.
33057
33058 diff --git a/autotools/m4/exponentd.m4 b/autotools/m4/exponentd.m4
33059 index 90870df..83ac08b 100644
33060 --- a/autotools/m4/exponentd.m4
33061 +++ b/autotools/m4/exponentd.m4
33062 @@ -1,5 +1,5 @@
33063 # exponentd.m4 serial 3
33064 -dnl Copyright (C) 2007-2008, 2010-2019 Free Software Foundation, Inc.
33065 +dnl Copyright (C) 2007-2008, 2010-2022 Free Software Foundation, Inc.
33066 dnl This file is free software; the Free Software Foundation
33067 dnl gives unlimited permission to copy and/or distribute it,
33068 dnl with or without modifications, as long as this notice is preserved.
33069
33070 diff --git a/autotools/m4/exponentf.m4 b/autotools/m4/exponentf.m4
33071 index cf8306b..32fdb6a 100644
33072 --- a/autotools/m4/exponentf.m4
33073 +++ b/autotools/m4/exponentf.m4
33074 @@ -1,5 +1,5 @@
33075 # exponentf.m4 serial 2
33076 -dnl Copyright (C) 2007-2008, 2010-2019 Free Software Foundation, Inc.
33077 +dnl Copyright (C) 2007-2008, 2010-2022 Free Software Foundation, Inc.
33078 dnl This file is free software; the Free Software Foundation
33079 dnl gives unlimited permission to copy and/or distribute it,
33080 dnl with or without modifications, as long as this notice is preserved.
33081
33082 diff --git a/autotools/m4/exponentl.m4 b/autotools/m4/exponentl.m4
33083 index 4064981..653ad5a 100644
33084 --- a/autotools/m4/exponentl.m4
33085 +++ b/autotools/m4/exponentl.m4
33086 @@ -1,5 +1,5 @@
33087 -# exponentl.m4 serial 4
33088 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
33089 +# exponentl.m4 serial 5
33090 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
33091 dnl This file is free software; the Free Software Foundation
33092 dnl gives unlimited permission to copy and/or distribute it,
33093 dnl with or without modifications, as long as this notice is preserved.
33094 @@ -22,14 +22,14 @@ typedef union { long double value; unsigned int word[NWORDS]; }
33095 memory_long_double;
33096 static unsigned int ored_words[NWORDS];
33097 static unsigned int anded_words[NWORDS];
33098 -static void add_to_ored_words (long double x)
33099 +static void add_to_ored_words (long double *x)
33100 {
33101 memory_long_double m;
33102 size_t i;
33103 /* Clear it first, in case
33104 sizeof (long double) < sizeof (memory_long_double). */
33105 memset (&m, 0, sizeof (memory_long_double));
33106 - m.value = x;
33107 + m.value = *x;
33108 for (i = 0; i < NWORDS; i++)
33109 {
33110 ored_words[i] |= m.word[i];
33111 @@ -38,17 +38,15 @@ static void add_to_ored_words (long double x)
33112 }
33113 int main ()
33114 {
33115 + static long double samples[5] = { 0.25L, 0.5L, 1.0L, 2.0L, 4.0L };
33116 size_t j;
33117 FILE *fp = fopen ("conftest.out", "w");
33118 if (fp == NULL)
33119 return 1;
33120 for (j = 0; j < NWORDS; j++)
33121 anded_words[j] = ~ (unsigned int) 0;
33122 - add_to_ored_words (0.25L);
33123 - add_to_ored_words (0.5L);
33124 - add_to_ored_words (1.0L);
33125 - add_to_ored_words (2.0L);
33126 - add_to_ored_words (4.0L);
33127 + for (j = 0; j < 5; j++)
33128 + add_to_ored_words (&samples[j]);
33129 /* Remove bits that are common (e.g. if representation of the first mantissa
33130 bit is explicit). */
33131 for (j = 0; j < NWORDS; j++)
33132
33133 diff --git a/autotools/m4/extensions.m4 b/autotools/m4/extensions.m4
33134 index fd1ce81..0b3e4b5 100644
33135 --- a/autotools/m4/extensions.m4
33136 +++ b/autotools/m4/extensions.m4
33137 @@ -1,14 +1,19 @@
33138 -# serial 18 -*- Autoconf -*-
33139 +# serial 22 -*- Autoconf -*-
33140 # Enable extensions on systems that normally disable them.
33141
33142 -# Copyright (C) 2003, 2006-2019 Free Software Foundation, Inc.
33143 +# Copyright (C) 2003, 2006-2022 Free Software Foundation, Inc.
33144 # This file is free software; the Free Software Foundation
33145 # gives unlimited permission to copy and/or distribute it,
33146 # with or without modifications, as long as this notice is preserved.
33147
33148 +dnl Define to empty for the benefit of Autoconf 2.69 and earlier, so that
33149 +dnl AC_USE_SYSTEM_EXTENSIONS (below) can be used unchanged from Autoconf 2.70+.
33150 +m4_ifndef([AC_CHECK_INCLUDES_DEFAULT],
33151 + [AC_DEFUN([AC_CHECK_INCLUDES_DEFAULT], [])])
33152 +
33153 # This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from git
33154 # Autoconf. Perhaps we can remove this once we can assume Autoconf
33155 -# 2.70 or later everywhere, but since Autoconf mutates rapidly
33156 +# is recent-enough everywhere, but since Autoconf mutates rapidly
33157 # enough in this area it's likely we'll need to redefine
33158 # AC_USE_SYSTEM_EXTENSIONS for quite some time.
33159
33160 @@ -26,36 +31,27 @@
33161 # its dependencies. This will ensure that the gl_USE_SYSTEM_EXTENSIONS
33162 # invocation occurs in gl_EARLY, not in gl_INIT.
33163
33164 +m4_version_prereq([2.70.1], [], [
33165 +
33166 # AC_USE_SYSTEM_EXTENSIONS
33167 # ------------------------
33168 # Enable extensions on systems that normally disable them,
33169 # typically due to standards-conformance issues.
33170 -#
33171 -# Remember that #undef in AH_VERBATIM gets replaced with #define by
33172 -# AC_DEFINE. The goal here is to define all known feature-enabling
33173 -# macros, then, if reports of conflicts are made, disable macros that
33174 -# cause problems on some platforms (such as __EXTENSIONS__).
33175 +# We unconditionally define as many of the known feature-enabling
33176 +# as possible, reserving conditional behavior for macros that are
33177 +# known to cause problems on some platforms (such as __EXTENSIONS__).
33178 AC_DEFUN_ONCE([AC_USE_SYSTEM_EXTENSIONS],
33179 -[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
33180 +[AC_BEFORE([$0], [AC_PREPROC_IFELSE])dnl
33181 +AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
33182 +AC_BEFORE([$0], [AC_LINK_IFELSE])dnl
33183 AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
33184 -
33185 - AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=])
33186 - if test "$MINIX" = yes; then
33187 - AC_DEFINE([_POSIX_SOURCE], [1],
33188 - [Define to 1 if you need to in order for 'stat' and other
33189 - things to work.])
33190 - AC_DEFINE([_POSIX_1_SOURCE], [2],
33191 - [Define to 2 if the system does not provide POSIX.1 features
33192 - except with this defined.])
33193 - AC_DEFINE([_MINIX], [1],
33194 - [Define to 1 if on MINIX.])
33195 - AC_DEFINE([_NETBSD_SOURCE], [1],
33196 - [Define to 1 to make NetBSD features available. MINIX 3 needs this.])
33197 - fi
33198 -
33199 +AC_BEFORE([$0], [AC_CHECK_INCLUDES_DEFAULT])dnl
33200 +dnl #undef in AH_VERBATIM gets replaced with #define by AC_DEFINE.
33201 dnl Use a different key than __EXTENSIONS__, as that name broke existing
33202 dnl configure.ac when using autoheader 2.62.
33203 - AH_VERBATIM([USE_SYSTEM_EXTENSIONS],
33204 +dnl The macros below are in alphabetical order ignoring leading _ or __
33205 +dnl prefixes.
33206 +AH_VERBATIM([USE_SYSTEM_EXTENSIONS],
33207 [/* Enable extensions on AIX 3, Interix. */
33208 #ifndef _ALL_SOURCE
33209 # undef _ALL_SOURCE
33210 @@ -64,19 +60,44 @@ dnl configure.ac when using autoheader 2.62.
33211 #ifndef _DARWIN_C_SOURCE
33212 # undef _DARWIN_C_SOURCE
33213 #endif
33214 +/* Enable general extensions on Solaris. */
33215 +#ifndef __EXTENSIONS__
33216 +# undef __EXTENSIONS__
33217 +#endif
33218 /* Enable GNU extensions on systems that have them. */
33219 #ifndef _GNU_SOURCE
33220 # undef _GNU_SOURCE
33221 #endif
33222 -/* Enable NetBSD extensions on NetBSD. */
33223 +/* Enable X/Open compliant socket functions that do not require linking
33224 + with -lxnet on HP-UX 11.11. */
33225 +#ifndef _HPUX_ALT_XOPEN_SOCKET_API
33226 +# undef _HPUX_ALT_XOPEN_SOCKET_API
33227 +#endif
33228 +/* Identify the host operating system as Minix.
33229 + This macro does not affect the system headers' behavior.
33230 + A future release of Autoconf may stop defining this macro. */
33231 +#ifndef _MINIX
33232 +# undef _MINIX
33233 +#endif
33234 +/* Enable general extensions on NetBSD.
33235 + Enable NetBSD compatibility extensions on Minix. */
33236 #ifndef _NETBSD_SOURCE
33237 # undef _NETBSD_SOURCE
33238 #endif
33239 -/* Enable OpenBSD extensions on NetBSD. */
33240 +/* Enable OpenBSD compatibility extensions on NetBSD.
33241 + Oddly enough, this does nothing on OpenBSD. */
33242 #ifndef _OPENBSD_SOURCE
33243 # undef _OPENBSD_SOURCE
33244 #endif
33245 -/* Enable threading extensions on Solaris. */
33246 +/* Define to 1 if needed for POSIX-compatible behavior. */
33247 +#ifndef _POSIX_SOURCE
33248 +# undef _POSIX_SOURCE
33249 +#endif
33250 +/* Define to 2 if needed for POSIX-compatible behavior. */
33251 +#ifndef _POSIX_1_SOURCE
33252 +# undef _POSIX_1_SOURCE
33253 +#endif
33254 +/* Enable POSIX-compatible threading on Solaris. */
33255 #ifndef _POSIX_PTHREAD_SEMANTICS
33256 # undef _POSIX_PTHREAD_SEMANTICS
33257 #endif
33258 @@ -112,22 +133,19 @@ dnl configure.ac when using autoheader 2.62.
33259 #ifndef _TANDEM_SOURCE
33260 # undef _TANDEM_SOURCE
33261 #endif
33262 -/* Enable X/Open extensions if necessary. HP-UX 11.11 defines
33263 - mbstate_t only if _XOPEN_SOURCE is defined to 500, regardless of
33264 - whether compiling with -Ae or -D_HPUX_SOURCE=1. */
33265 +/* Enable X/Open extensions. Define to 500 only if necessary
33266 + to make mbstate_t available. */
33267 #ifndef _XOPEN_SOURCE
33268 # undef _XOPEN_SOURCE
33269 #endif
33270 -/* Enable X/Open compliant socket functions that do not require linking
33271 - with -lxnet on HP-UX 11.11. */
33272 -#ifndef _HPUX_ALT_XOPEN_SOCKET_API
33273 -# undef _HPUX_ALT_XOPEN_SOCKET_API
33274 -#endif
33275 -/* Enable general extensions on Solaris. */
33276 -#ifndef __EXTENSIONS__
33277 -# undef __EXTENSIONS__
33278 -#endif
33279 -])
33280 +])dnl
33281 +
33282 + AC_REQUIRE([AC_CHECK_INCLUDES_DEFAULT])dnl
33283 + _AC_CHECK_HEADER_ONCE([wchar.h])
33284 + _AC_CHECK_HEADER_ONCE([minix/config.h])
33285 +
33286 +dnl Defining __EXTENSIONS__ may break the system headers on some systems.
33287 +dnl (FIXME: Which ones?)
33288 AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
33289 [ac_cv_safe_to_define___extensions__],
33290 [AC_COMPILE_IFELSE(
33291 @@ -136,11 +154,33 @@ dnl configure.ac when using autoheader 2.62.
33292 ]AC_INCLUDES_DEFAULT])],
33293 [ac_cv_safe_to_define___extensions__=yes],
33294 [ac_cv_safe_to_define___extensions__=no])])
33295 - test $ac_cv_safe_to_define___extensions__ = yes &&
33296 - AC_DEFINE([__EXTENSIONS__])
33297 +
33298 +dnl HP-UX 11.11 defines mbstate_t only if _XOPEN_SOURCE is defined to
33299 +dnl 500, regardless of whether compiling with -Ae or -D_HPUX_SOURCE=1.
33300 +dnl But defining _XOPEN_SOURCE may turn *off* extensions on platforms
33301 +dnl not covered by turn-on-extensions macros (notably Dragonfly, Free,
33302 +dnl and OpenBSD, which don't have any equivalent of _NETBSD_SOURCE) so
33303 +dnl it should only be defined when necessary.
33304 + AC_CACHE_CHECK([whether _XOPEN_SOURCE should be defined],
33305 + [ac_cv_should_define__xopen_source],
33306 + [ac_cv_should_define__xopen_source=no
33307 + AS_IF([test $ac_cv_header_wchar_h = yes],
33308 + [AC_COMPILE_IFELSE(
33309 + [AC_LANG_PROGRAM([[
33310 + #include <wchar.h>
33311 + mbstate_t x;]])],
33312 + [],
33313 + [AC_COMPILE_IFELSE(
33314 + [AC_LANG_PROGRAM([[
33315 + #define _XOPEN_SOURCE 500
33316 + #include <wchar.h>
33317 + mbstate_t x;]])],
33318 + [ac_cv_should_define__xopen_source=yes])])])])
33319 +
33320 AC_DEFINE([_ALL_SOURCE])
33321 AC_DEFINE([_DARWIN_C_SOURCE])
33322 AC_DEFINE([_GNU_SOURCE])
33323 + AC_DEFINE([_HPUX_ALT_XOPEN_SOCKET_API])
33324 AC_DEFINE([_NETBSD_SOURCE])
33325 AC_DEFINE([_OPENBSD_SOURCE])
33326 AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
33327 @@ -152,24 +192,18 @@ dnl configure.ac when using autoheader 2.62.
33328 AC_DEFINE([__STDC_WANT_LIB_EXT2__])
33329 AC_DEFINE([__STDC_WANT_MATH_SPEC_FUNCS__])
33330 AC_DEFINE([_TANDEM_SOURCE])
33331 - AC_CACHE_CHECK([whether _XOPEN_SOURCE should be defined],
33332 - [ac_cv_should_define__xopen_source],
33333 - [ac_cv_should_define__xopen_source=no
33334 - AC_COMPILE_IFELSE(
33335 - [AC_LANG_PROGRAM([[
33336 - #include <wchar.h>
33337 - mbstate_t x;]])],
33338 - [],
33339 - [AC_COMPILE_IFELSE(
33340 - [AC_LANG_PROGRAM([[
33341 - #define _XOPEN_SOURCE 500
33342 - #include <wchar.h>
33343 - mbstate_t x;]])],
33344 - [ac_cv_should_define__xopen_source=yes])])])
33345 - test $ac_cv_should_define__xopen_source = yes &&
33346 - AC_DEFINE([_XOPEN_SOURCE], [500])
33347 - AC_DEFINE([_HPUX_ALT_XOPEN_SOCKET_API])
33348 + AS_IF([test $ac_cv_header_minix_config_h = yes],
33349 + [MINIX=yes
33350 + AC_DEFINE([_MINIX])
33351 + AC_DEFINE([_POSIX_SOURCE])
33352 + AC_DEFINE([_POSIX_1_SOURCE], [2])],
33353 + [MINIX=])
33354 + AS_IF([test $ac_cv_safe_to_define___extensions__ = yes],
33355 + [AC_DEFINE([__EXTENSIONS__])])
33356 + AS_IF([test $ac_cv_should_define__xopen_source = yes],
33357 + [AC_DEFINE([_XOPEN_SOURCE], [500])])
33358 ])# AC_USE_SYSTEM_EXTENSIONS
33359 +])
33360
33361 # gl_USE_SYSTEM_EXTENSIONS
33362 # ------------------------
33363 @@ -177,13 +211,17 @@ dnl configure.ac when using autoheader 2.62.
33364 # typically due to standards-conformance issues.
33365 AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS],
33366 [
33367 - dnl Require this macro before AC_USE_SYSTEM_EXTENSIONS.
33368 - dnl gnulib does not need it. But if it gets required by third-party macros
33369 - dnl after AC_USE_SYSTEM_EXTENSIONS is required, autoconf 2.62..2.63 emit a
33370 - dnl warning: "AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS".
33371 - dnl Note: We can do this only for one of the macros AC_AIX, AC_GNU_SOURCE,
33372 - dnl AC_MINIX. If people still use AC_AIX or AC_MINIX, they are out of luck.
33373 - AC_REQUIRE([AC_GNU_SOURCE])
33374 -
33375 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
33376 +
33377 + dnl On OpenBSD 6.8 with GCC, the include files contain a couple of
33378 + dnl definitions that are only activated with an explicit -D_ISOC11_SOURCE.
33379 + dnl That's because this version of GCC (4.2.1) supports the option
33380 + dnl '-std=gnu99' but not the option '-std=gnu11'.
33381 + AC_REQUIRE([AC_CANONICAL_HOST])
33382 + case "$host_os" in
33383 + openbsd*)
33384 + AC_DEFINE([_ISOC11_SOURCE], [1],
33385 + [Define to enable the declarations of ISO C 11 types and functions.])
33386 + ;;
33387 + esac
33388 ])
33389
33390 diff --git a/autotools/m4/extern-inline.m4 b/autotools/m4/extern-inline.m4
33391 index ec9f221..8a12bdd 100644
33392 --- a/autotools/m4/extern-inline.m4
33393 +++ b/autotools/m4/extern-inline.m4
33394 @@ -1,13 +1,28 @@
33395 dnl 'extern inline' a la ISO C99.
33396
33397 -dnl Copyright 2012-2019 Free Software Foundation, Inc.
33398 +dnl Copyright 2012-2022 Free Software Foundation, Inc.
33399 dnl This file is free software; the Free Software Foundation
33400 dnl gives unlimited permission to copy and/or distribute it,
33401 dnl with or without modifications, as long as this notice is preserved.
33402
33403 AC_DEFUN([gl_EXTERN_INLINE],
33404 [
33405 - AH_VERBATIM([extern_inline],
33406 + AC_CACHE_CHECK([whether ctype.h defines __header_inline],
33407 + [gl_cv_have___header_inline],
33408 + [AC_PREPROC_IFELSE(
33409 + [AC_LANG_SOURCE([[#include <ctype.h>
33410 + #ifndef __header_inline
33411 + #error "<ctype.h> does not define __header_inline"
33412 + #endif
33413 + ]])],
33414 + [gl_cv_have___header_inline=yes],
33415 + [gl_cv_have___header_inline=no])])
33416 + if test "$gl_cv_have___header_inline" = yes; then
33417 + AC_DEFINE([HAVE___HEADER_INLINE], [1],
33418 + [Define to 1 if ctype.h defines __header_inline.])
33419 + fi
33420 +
33421 + AH_VERBATIM([HAVE___HEADER_INLINE_1],
33422 [/* Please see the Gnulib manual for how to use these macros.
33423
33424 Suppress extern inline with HP-UX cc, as it appears to be broken; see
33425 @@ -17,7 +32,8 @@ AC_DEFUN([gl_EXTERN_INLINE],
33426 mishandles inline functions that call each other. E.g., for 'inline void f
33427 (void) { } inline void g (void) { f (); }', c99 incorrectly complains
33428 'reference to static identifier "f" in extern inline function'.
33429 - This bug was observed with Sun C 5.12 SunOS_i386 2011/11/16.
33430 + This bug was observed with Oracle Developer Studio 12.6
33431 + (Sun C 5.15 SunOS_sparc 2017/05/30).
33432
33433 Suppress extern inline (with or without __attribute__ ((__gnu_inline__)))
33434 on configurations that mistakenly use 'static inline' to implement
33435 @@ -32,7 +48,7 @@ AC_DEFUN([gl_EXTERN_INLINE],
33436 https://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html
33437
33438 DragonFly; see
33439 - http://muscles.dragonflybsd.org/bulk/bleeding-edge-potential/latest-per-pkg/ah-tty-0.3.12.log
33440 + http://muscles.dragonflybsd.org/bulk/clang-master-potential/20141111_102002/logs/ah-tty-0.3.12.log
33441
33442 FreeBSD; see:
33443 https://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
33444 @@ -53,7 +69,7 @@ AC_DEFUN([gl_EXTERN_INLINE],
33445 */
33446 #if (((defined __APPLE__ && defined __MACH__) \
33447 || defined __DragonFly__ || defined __FreeBSD__) \
33448 - && (defined __header_inline \
33449 + && (defined HAVE___HEADER_INLINE \
33450 ? (defined __cplusplus && defined __GNUC_STDC_INLINE__ \
33451 && ! defined __clang__) \
33452 : ((! defined _DONT_USE_CTYPE_INLINE_ \
33453 @@ -83,8 +99,8 @@ AC_DEFUN([gl_EXTERN_INLINE],
33454 # define _GL_EXTERN_INLINE extern
33455 # define _GL_EXTERN_INLINE_IN_USE
33456 #else
33457 -# define _GL_INLINE static _GL_UNUSED
33458 -# define _GL_EXTERN_INLINE static _GL_UNUSED
33459 +# define _GL_INLINE _GL_UNUSED static
33460 +# define _GL_EXTERN_INLINE _GL_UNUSED static
33461 #endif
33462
33463 /* In GCC 4.6 (inclusive) to 5.1 (exclusive),
33464
33465 diff --git a/autotools/m4/faccessat.m4 b/autotools/m4/faccessat.m4
33466 index 6c7d79b..0ba5b3b 100644
33467 --- a/autotools/m4/faccessat.m4
33468 +++ b/autotools/m4/faccessat.m4
33469 @@ -1,7 +1,7 @@
33470 -# serial 8
33471 +# serial 10
33472 # See if we need to provide faccessat replacement.
33473
33474 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
33475 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
33476 dnl This file is free software; the Free Software Foundation
33477 dnl gives unlimited permission to copy and/or distribute it,
33478 dnl with or without modifications, as long as this notice is preserved.
33479 @@ -20,7 +20,7 @@ AC_DEFUN([gl_FUNC_FACCESSAT],
33480 if test $ac_cv_func_faccessat = no; then
33481 HAVE_FACCESSAT=0
33482 else
33483 - case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
33484 + case $gl_cv_func_lstat_dereferences_slashed_symlink in
33485 *yes) ;;
33486 *) REPLACE_FACCESSAT=1 ;;
33487 esac
33488
33489 diff --git a/autotools/m4/fchdir.m4 b/autotools/m4/fchdir.m4
33490 index ea5a4f9..f85549a 100644
33491 --- a/autotools/m4/fchdir.m4
33492 +++ b/autotools/m4/fchdir.m4
33493 @@ -1,5 +1,5 @@
33494 -# fchdir.m4 serial 24
33495 -dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
33496 +# fchdir.m4 serial 27
33497 +dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
33498 dnl This file is free software; the Free Software Foundation
33499 dnl gives unlimited permission to copy and/or distribute it,
33500 dnl with or without modifications, as long as this notice is preserved.
33501 @@ -17,8 +17,6 @@ AC_DEFUN([gl_FUNC_FCHDIR],
33502
33503 AC_REQUIRE([gl_TEST_FCHDIR])
33504 if test $HAVE_FCHDIR = 0; then
33505 - AC_LIBOBJ([fchdir])
33506 - gl_PREREQ_FCHDIR
33507 AC_DEFINE([REPLACE_FCHDIR], [1],
33508 [Define to 1 if gnulib's fchdir() replacement is used.])
33509 dnl We must also replace anything that can manipulate a directory fd,
33510 @@ -26,21 +24,24 @@ AC_DEFUN([gl_FUNC_FCHDIR],
33511 dnl fstatat, since no platform has fstatat but lacks fchdir.
33512 AC_CACHE_CHECK([whether open can visit directories],
33513 [gl_cv_func_open_directory_works],
33514 - [AC_RUN_IFELSE([AC_LANG_PROGRAM([[#include <fcntl.h>
33515 -]], [return open(".", O_RDONLY) < 0;])],
33516 - [gl_cv_func_open_directory_works=yes],
33517 - [gl_cv_func_open_directory_works=no],
33518 - [case "$host_os" in
33519 - # Guess yes on Linux systems.
33520 - linux-* | linux) gl_cv_func_open_directory_works="guessing yes" ;;
33521 - # Guess yes on glibc systems.
33522 - *-gnu* | gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
33523 - # Guess no on native Windows.
33524 - mingw*) gl_cv_func_open_directory_works="guessing no" ;;
33525 - # If we don't know, assume the worst.
33526 - *) gl_cv_func_open_directory_works="guessing no" ;;
33527 - esac
33528 - ])])
33529 + [AC_RUN_IFELSE(
33530 + [AC_LANG_PROGRAM(
33531 + [[#include <fcntl.h>
33532 + ]GL_MDA_DEFINES],
33533 + [[return open(".", O_RDONLY) < 0;]])],
33534 + [gl_cv_func_open_directory_works=yes],
33535 + [gl_cv_func_open_directory_works=no],
33536 + [case "$host_os" in
33537 + # Guess yes on Linux systems.
33538 + linux-* | linux) gl_cv_func_open_directory_works="guessing yes" ;;
33539 + # Guess yes on glibc systems.
33540 + *-gnu* | gnu*) gl_cv_func_open_directory_works="guessing yes" ;;
33541 + # Guess no on native Windows.
33542 + mingw*) gl_cv_func_open_directory_works="guessing no" ;;
33543 + # If we don't know, obey --enable-cross-guesses.
33544 + *) gl_cv_func_open_directory_works="$gl_cross_guess_normal" ;;
33545 + esac
33546 + ])])
33547 case "$gl_cv_func_open_directory_works" in
33548 *yes) ;;
33549 *)
33550
33551 diff --git a/autotools/m4/fcntl-o.m4 b/autotools/m4/fcntl-o.m4
33552 index 6ab3387..4dcde9e 100644
33553 --- a/autotools/m4/fcntl-o.m4
33554 +++ b/autotools/m4/fcntl-o.m4
33555 @@ -1,5 +1,5 @@
33556 -# fcntl-o.m4 serial 6
33557 -dnl Copyright (C) 2006, 2009-2019 Free Software Foundation, Inc.
33558 +# fcntl-o.m4 serial 7
33559 +dnl Copyright (C) 2006, 2009-2022 Free Software Foundation, Inc.
33560 dnl This file is free software; the Free Software Foundation
33561 dnl gives unlimited permission to copy and/or distribute it,
33562 dnl with or without modifications, as long as this notice is preserved.
33563 @@ -32,6 +32,7 @@ AC_DEFUN([gl_FCNTL_O_FLAGS],
33564 # defined sleep(n) _sleep ((n) * 1000)
33565 #endif
33566 #include <fcntl.h>
33567 + ]GL_MDA_DEFINES[
33568 #ifndef O_NOATIME
33569 #define O_NOATIME 0
33570 #endif
33571
33572 diff --git a/autotools/m4/fcntl.m4 b/autotools/m4/fcntl.m4
33573 index e409e96..428e570 100644
33574 --- a/autotools/m4/fcntl.m4
33575 +++ b/autotools/m4/fcntl.m4
33576 @@ -1,5 +1,5 @@
33577 -# fcntl.m4 serial 9
33578 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
33579 +# fcntl.m4 serial 11
33580 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
33581 dnl This file is free software; the Free Software Foundation
33582 dnl gives unlimited permission to copy and/or distribute it,
33583 dnl with or without modifications, as long as this notice is preserved.
33584 @@ -34,6 +34,7 @@ AC_DEFUN([gl_FUNC_FCNTL],
33585 #include <limits.h>
33586 #include <sys/resource.h>
33587 #include <unistd.h>
33588 + ]GL_MDA_DEFINES[
33589 #ifndef RLIM_SAVED_CUR
33590 # define RLIM_SAVED_CUR RLIM_INFINITY
33591 #endif
33592 @@ -80,15 +81,29 @@ AC_DEFUN([gl_FUNC_FCNTL],
33593 behavior does not match POSIX]) ;;
33594 esac
33595
33596 - dnl Many systems lack F_DUPFD_CLOEXEC
33597 + dnl Many systems lack F_DUPFD_CLOEXEC.
33598 + dnl NetBSD 9.0 declares F_DUPFD_CLOEXEC but it works only like F_DUPFD.
33599 AC_CACHE_CHECK([whether fcntl understands F_DUPFD_CLOEXEC],
33600 [gl_cv_func_fcntl_f_dupfd_cloexec],
33601 - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
33602 -#include <fcntl.h>
33603 -#ifndef F_DUPFD_CLOEXEC
33604 -choke me
33605 -#endif
33606 - ]])],
33607 + [AC_RUN_IFELSE(
33608 + [AC_LANG_SOURCE(
33609 + [[#include <fcntl.h>
33610 + #include <unistd.h>
33611 + int main (int argc, char *argv[])
33612 + {
33613 + if (argc == 1)
33614 + /* parent process */
33615 + {
33616 + if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
33617 + return 1;
33618 + return execl ("./conftest", "./conftest", "child", NULL);
33619 + }
33620 + else
33621 + /* child process */
33622 + return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
33623 + }
33624 + ]])
33625 + ],
33626 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
33627 #ifdef __linux__
33628 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
33629 @@ -97,12 +112,22 @@ choke me
33630 #endif
33631 ]])],
33632 [gl_cv_func_fcntl_f_dupfd_cloexec=yes],
33633 - [gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"])],
33634 - [gl_cv_func_fcntl_f_dupfd_cloexec=no])])
33635 - if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
33636 - gl_REPLACE_FCNTL
33637 - dnl No witness macro needed for this bug.
33638 - fi
33639 + [gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"])
33640 + ],
33641 + [gl_cv_func_fcntl_f_dupfd_cloexec=no],
33642 + [case "$host_os" in
33643 + # Guess no on NetBSD.
33644 + netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
33645 + *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
33646 + esac
33647 + ])
33648 + ])
33649 + case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
33650 + *yes) ;;
33651 + *) gl_REPLACE_FCNTL
33652 + dnl No witness macro needed for this bug.
33653 + ;;
33654 + esac
33655 fi
33656 dnl Replace fcntl() for supporting the gnulib-defined fchdir() function,
33657 dnl to keep fchdir's bookkeeping up-to-date.
33658
33659 diff --git a/autotools/m4/fcntl_h.m4 b/autotools/m4/fcntl_h.m4
33660 index a86fdae..267f98b 100644
33661 --- a/autotools/m4/fcntl_h.m4
33662 +++ b/autotools/m4/fcntl_h.m4
33663 @@ -1,13 +1,13 @@
33664 -# serial 15
33665 +# serial 20
33666 # Configure fcntl.h.
33667 -dnl Copyright (C) 2006-2007, 2009-2019 Free Software Foundation, Inc.
33668 +dnl Copyright (C) 2006-2007, 2009-2022 Free Software Foundation, Inc.
33669 dnl This file is free software; the Free Software Foundation
33670 dnl gives unlimited permission to copy and/or distribute it,
33671 dnl with or without modifications, as long as this notice is preserved.
33672
33673 dnl Written by Paul Eggert.
33674
33675 -AC_DEFUN([gl_FCNTL_H],
33676 +AC_DEFUN_ONCE([gl_FCNTL_H],
33677 [
33678 AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
33679 AC_REQUIRE([gl_FCNTL_O_FLAGS])
33680 @@ -26,24 +26,44 @@ AC_DEFUN([gl_FCNTL_H],
33681 ]], [fcntl openat])
33682 ])
33683
33684 +# gl_FCNTL_MODULE_INDICATOR([modulename])
33685 +# sets the shell variable that indicates the presence of the given module
33686 +# to a C preprocessor expression that will evaluate to 1.
33687 +# This macro invocation must not occur in macros that are AC_REQUIREd.
33688 AC_DEFUN([gl_FCNTL_MODULE_INDICATOR],
33689 [
33690 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
33691 - AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
33692 + dnl Ensure to expand the default settings once only.
33693 + gl_FCNTL_H_REQUIRE_DEFAULTS
33694 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
33695 dnl Define it also as a C macro, for the benefit of the unit tests.
33696 gl_MODULE_INDICATOR_FOR_TESTS([$1])
33697 ])
33698
33699 +# Initializes the default values for AC_SUBSTed shell variables.
33700 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
33701 +# outside of macros or in macros that are not AC_REQUIREd.
33702 +AC_DEFUN([gl_FCNTL_H_REQUIRE_DEFAULTS],
33703 +[
33704 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_FCNTL_H_MODULE_INDICATOR_DEFAULTS], [
33705 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CREAT])
33706 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCNTL])
33707 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_NONBLOCKING])
33708 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPEN])
33709 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OPENAT])
33710 + dnl Support Microsoft deprecated alias function names by default.
33711 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CREAT], [1])
33712 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_OPEN], [1])
33713 + ])
33714 + m4_require(GL_MODULE_INDICATOR_PREFIX[_FCNTL_H_MODULE_INDICATOR_DEFAULTS])
33715 + AC_REQUIRE([gl_FCNTL_H_DEFAULTS])
33716 +])
33717 +
33718 AC_DEFUN([gl_FCNTL_H_DEFAULTS],
33719 [
33720 - GNULIB_FCNTL=0; AC_SUBST([GNULIB_FCNTL])
33721 - GNULIB_NONBLOCKING=0; AC_SUBST([GNULIB_NONBLOCKING])
33722 - GNULIB_OPEN=0; AC_SUBST([GNULIB_OPEN])
33723 - GNULIB_OPENAT=0; AC_SUBST([GNULIB_OPENAT])
33724 dnl Assume proper GNU behavior unless another module says otherwise.
33725 HAVE_FCNTL=1; AC_SUBST([HAVE_FCNTL])
33726 HAVE_OPENAT=1; AC_SUBST([HAVE_OPENAT])
33727 + REPLACE_CREAT=0; AC_SUBST([REPLACE_CREAT])
33728 REPLACE_FCNTL=0; AC_SUBST([REPLACE_FCNTL])
33729 REPLACE_OPEN=0; AC_SUBST([REPLACE_OPEN])
33730 REPLACE_OPENAT=0; AC_SUBST([REPLACE_OPENAT])
33731
33732 diff --git a/autotools/m4/fdopendir.m4 b/autotools/m4/fdopendir.m4
33733 index 0490551..3001608 100644
33734 --- a/autotools/m4/fdopendir.m4
33735 +++ b/autotools/m4/fdopendir.m4
33736 @@ -1,7 +1,7 @@
33737 -# serial 10
33738 +# serial 14
33739 # See if we need to provide fdopendir.
33740
33741 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
33742 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
33743 dnl This file is free software; the Free Software Foundation
33744 dnl gives unlimited permission to copy and/or distribute it,
33745 dnl with or without modifications, as long as this notice is preserved.
33746 @@ -25,10 +25,12 @@ AC_DEFUN([gl_FUNC_FDOPENDIR],
33747 else
33748 AC_CACHE_CHECK([whether fdopendir works],
33749 [gl_cv_func_fdopendir_works],
33750 - [AC_RUN_IFELSE([AC_LANG_PROGRAM([[
33751 + [AC_RUN_IFELSE(
33752 + [AC_LANG_PROGRAM([[
33753 #include <dirent.h>
33754 #include <fcntl.h>
33755 #include <unistd.h>
33756 +]GL_MDA_DEFINES[
33757 #if !HAVE_DECL_FDOPENDIR
33758 extern
33759 # ifdef __cplusplus
33760 @@ -36,19 +38,23 @@ extern
33761 # endif
33762 DIR *fdopendir (int);
33763 #endif
33764 -]], [int result = 0;
33765 - int fd = open ("conftest.c", O_RDONLY);
33766 - if (fd < 0) result |= 1;
33767 - if (fdopendir (fd)) result |= 2;
33768 - if (close (fd)) result |= 4;
33769 - return result;])],
33770 +]],
33771 + [[int result = 0;
33772 + int fd = open ("conftest.c", O_RDONLY);
33773 + if (fd < 0) result |= 1;
33774 + if (fdopendir (fd)) result |= 2;
33775 + if (close (fd)) result |= 4;
33776 + return result;
33777 + ]])],
33778 [gl_cv_func_fdopendir_works=yes],
33779 [gl_cv_func_fdopendir_works=no],
33780 [case "$host_os" in
33781 - # Guess yes on glibc systems.
33782 - *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
33783 - # If we don't know, assume the worst.
33784 - *) gl_cv_func_fdopendir_works="guessing no" ;;
33785 + # Guess yes on glibc systems.
33786 + *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
33787 + # Guess yes on musl systems.
33788 + *-musl*) gl_cv_func_fdopendir_works="guessing yes" ;;
33789 + # If we don't know, obey --enable-cross-guesses.
33790 + *) gl_cv_func_fdopendir_works="$gl_cross_guess_normal" ;;
33791 esac
33792 ])])
33793 case "$gl_cv_func_fdopendir_works" in
33794
33795 diff --git a/autotools/m4/filenamecat.m4 b/autotools/m4/filenamecat.m4
33796 index 351715a..4546b83 100644
33797 --- a/autotools/m4/filenamecat.m4
33798 +++ b/autotools/m4/filenamecat.m4
33799 @@ -1,5 +1,5 @@
33800 # filenamecat.m4 serial 11
33801 -dnl Copyright (C) 2002-2006, 2009-2019 Free Software Foundation, Inc.
33802 +dnl Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc.
33803 dnl This file is free software; the Free Software Foundation
33804 dnl gives unlimited permission to copy and/or distribute it,
33805 dnl with or without modifications, as long as this notice is preserved.
33806
33807 diff --git a/autotools/m4/float_h.m4 b/autotools/m4/float_h.m4
33808 index 1cd28a0..0e84572 100644
33809 --- a/autotools/m4/float_h.m4
33810 +++ b/autotools/m4/float_h.m4
33811 @@ -1,5 +1,5 @@
33812 -# float_h.m4 serial 12
33813 -dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
33814 +# float_h.m4 serial 13
33815 +dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
33816 dnl This file is free software; the Free Software Foundation
33817 dnl gives unlimited permission to copy and/or distribute it,
33818 dnl with or without modifications, as long as this notice is preserved.
33819 @@ -8,18 +8,18 @@ AC_DEFUN([gl_FLOAT_H],
33820 [
33821 AC_REQUIRE([AC_PROG_CC])
33822 AC_REQUIRE([AC_CANONICAL_HOST])
33823 - FLOAT_H=
33824 + GL_GENERATE_FLOAT_H=false
33825 REPLACE_FLOAT_LDBL=0
33826 case "$host_os" in
33827 aix* | beos* | openbsd* | mirbsd* | irix*)
33828 - FLOAT_H=float.h
33829 + GL_GENERATE_FLOAT_H=true
33830 ;;
33831 freebsd* | dragonfly*)
33832 case "$host_cpu" in
33833 changequote(,)dnl
33834 i[34567]86 )
33835 changequote([,])dnl
33836 - FLOAT_H=float.h
33837 + GL_GENERATE_FLOAT_H=true
33838 ;;
33839 x86_64 )
33840 # On x86_64 systems, the C compiler may still be generating
33841 @@ -33,21 +33,21 @@ changequote([,])dnl
33842 #endif
33843 ]])],
33844 [],
33845 - [FLOAT_H=float.h])
33846 + [GL_GENERATE_FLOAT_H=true])
33847 ;;
33848 esac
33849 ;;
33850 linux*)
33851 case "$host_cpu" in
33852 powerpc*)
33853 - FLOAT_H=float.h
33854 + GL_GENERATE_FLOAT_H=true
33855 ;;
33856 esac
33857 ;;
33858 esac
33859 case "$host_os" in
33860 aix* | freebsd* | dragonfly* | linux*)
33861 - if test -n "$FLOAT_H"; then
33862 + if $GL_GENERATE_FLOAT_H; then
33863 REPLACE_FLOAT_LDBL=1
33864 fi
33865 ;;
33866 @@ -95,14 +95,12 @@ int main ()
33867 REPLACE_ITOLD=1
33868 dnl We add the workaround to <float.h> but also to <math.h>,
33869 dnl to increase the chances that the fix function gets pulled in.
33870 - FLOAT_H=float.h
33871 + GL_GENERATE_FLOAT_H=true
33872 ;;
33873 esac
33874
33875 - if test -n "$FLOAT_H"; then
33876 + if $GL_GENERATE_FLOAT_H; then
33877 gl_NEXT_HEADERS([float.h])
33878 fi
33879 - AC_SUBST([FLOAT_H])
33880 - AM_CONDITIONAL([GL_GENERATE_FLOAT_H], [test -n "$FLOAT_H"])
33881 AC_SUBST([REPLACE_ITOLD])
33882 ])
33883
33884 diff --git a/autotools/m4/fpieee.m4 b/autotools/m4/fpieee.m4
33885 index ea1d5da..c0c23e9 100644
33886 --- a/autotools/m4/fpieee.m4
33887 +++ b/autotools/m4/fpieee.m4
33888 @@ -1,5 +1,5 @@
33889 # fpieee.m4 serial 2 -*- coding: utf-8 -*-
33890 -dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
33891 +dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
33892 dnl This file is free software; the Free Software Foundation
33893 dnl gives unlimited permission to copy and/or distribute it,
33894 dnl with or without modifications, as long as this notice is preserved.
33895
33896 diff --git a/autotools/m4/free.m4 b/autotools/m4/free.m4
33897 new file mode 100644
33898 index 0000000..dfeecd2
33899 --- /dev/null
33900 +++ b/autotools/m4/free.m4
33901 @@ -0,0 +1,52 @@
33902 +# free.m4 serial 6
33903 +# Copyright (C) 2003-2005, 2009-2022 Free Software Foundation, Inc.
33904 +# This file is free software; the Free Software Foundation
33905 +# gives unlimited permission to copy and/or distribute it,
33906 +# with or without modifications, as long as this notice is preserved.
33907 +
33908 +# Written by Paul Eggert and Bruno Haible.
33909 +
33910 +AC_DEFUN([gl_FUNC_FREE],
33911 +[
33912 + AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
33913 +
33914 + dnl In the next release of POSIX, free must preserve errno.
33915 + dnl https://www.austingroupbugs.net/view.php?id=385
33916 + dnl https://sourceware.org/bugzilla/show_bug.cgi?id=17924
33917 + dnl So far, we know of three platforms that do this:
33918 + dnl * glibc >= 2.33, thanks to the fix for this bug:
33919 + dnl <https://sourceware.org/bugzilla/show_bug.cgi?id=17924>
33920 + dnl * OpenBSD >= 4.5, thanks to this commit:
33921 + dnl <https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/lib/libc/stdlib/malloc.c.diff?r1=1.100&r2=1.101&f=h>
33922 + dnl * Solaris, because its malloc() implementation is based on brk(),
33923 + dnl not mmap(); hence its free() implementation makes no system calls.
33924 + dnl For other platforms, you can only be sure if they state it in their
33925 + dnl documentation, or by code inspection of the free() implementation in libc.
33926 + AC_CACHE_CHECK([whether free is known to preserve errno],
33927 + [gl_cv_func_free_preserves_errno],
33928 + [AC_COMPILE_IFELSE(
33929 + [AC_LANG_PROGRAM(
33930 + [[#include <stdlib.h>
33931 + ]],
33932 + [[#if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
33933 + #elif defined __OpenBSD__
33934 + #elif defined __sun
33935 + #else
33936 + #error "'free' is not known to preserve errno"
33937 + #endif
33938 + ]])],
33939 + [gl_cv_func_free_preserves_errno=yes],
33940 + [gl_cv_func_free_preserves_errno=no])
33941 + ])
33942 +
33943 + case $gl_cv_func_free_preserves_errno in
33944 + *yes)
33945 + AC_DEFINE([HAVE_FREE_POSIX], [1],
33946 + [Define if the 'free' function is guaranteed to preserve errno.])
33947 + ;;
33948 + *) REPLACE_FREE=1 ;;
33949 + esac
33950 +])
33951 +
33952 +# Prerequisites of lib/free.c.
33953 +AC_DEFUN([gl_PREREQ_FREE], [:])
33954
33955 diff --git a/autotools/m4/frexp.m4 b/autotools/m4/frexp.m4
33956 index 990fce6..d8f3cef 100644
33957 --- a/autotools/m4/frexp.m4
33958 +++ b/autotools/m4/frexp.m4
33959 @@ -1,5 +1,5 @@
33960 # frexp.m4 serial 16
33961 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
33962 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
33963 dnl This file is free software; the Free Software Foundation
33964 dnl gives unlimited permission to copy and/or distribute it,
33965 dnl with or without modifications, as long as this notice is preserved.
33966
33967 diff --git a/autotools/m4/frexpl.m4 b/autotools/m4/frexpl.m4
33968 index 53eed55..4557613 100644
33969 --- a/autotools/m4/frexpl.m4
33970 +++ b/autotools/m4/frexpl.m4
33971 @@ -1,5 +1,5 @@
33972 -# frexpl.m4 serial 21
33973 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
33974 +# frexpl.m4 serial 22
33975 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
33976 dnl This file is free software; the Free Software Foundation
33977 dnl gives unlimited permission to copy and/or distribute it,
33978 dnl with or without modifications, as long as this notice is preserved.
33979 @@ -150,6 +150,7 @@ extern
33980 "C"
33981 #endif
33982 long double frexpl (long double, int *);
33983 +long double zero = 0.0L;
33984 int main()
33985 {
33986 int result = 0;
33987 @@ -207,7 +208,8 @@ int main()
33988 }
33989 }
33990 /* Test on infinite numbers. */
33991 - x = 1.0L / 0.0L;
33992 + /* The Microsoft MSVC 14 compiler chokes on the expression 1.0 / 0.0. */
33993 + x = 1.0L / zero;
33994 {
33995 int exp;
33996 long double y = frexpl (x, &exp);
33997
33998 diff --git a/autotools/m4/fstat.m4 b/autotools/m4/fstat.m4
33999 index 2a59c8f..9e61bcc 100644
34000 --- a/autotools/m4/fstat.m4
34001 +++ b/autotools/m4/fstat.m4
34002 @@ -1,5 +1,5 @@
34003 -# fstat.m4 serial 6
34004 -dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
34005 +# fstat.m4 serial 8
34006 +dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
34007 dnl This file is free software; the Free Software Foundation
34008 dnl gives unlimited permission to copy and/or distribute it,
34009 dnl with or without modifications, as long as this notice is preserved.
34010 @@ -34,6 +34,7 @@ AC_DEFUN([gl_FUNC_FSTAT],
34011
34012 # Prerequisites of lib/fstat.c and lib/stat-w32.c.
34013 AC_DEFUN([gl_PREREQ_FSTAT], [
34014 - AC_REQUIRE([gl_HEADER_SYS_STAT_H])
34015 + AC_REQUIRE([gl_SYS_STAT_H])
34016 + AC_REQUIRE([gl_PREREQ_STAT_W32])
34017 :
34018 ])
34019
34020 diff --git a/autotools/m4/fstatat.m4 b/autotools/m4/fstatat.m4
34021 index 489a55a..e8604a6 100644
34022 --- a/autotools/m4/fstatat.m4
34023 +++ b/autotools/m4/fstatat.m4
34024 @@ -1,5 +1,5 @@
34025 # fstatat.m4 serial 4
34026 -dnl Copyright (C) 2004-2019 Free Software Foundation, Inc.
34027 +dnl Copyright (C) 2004-2022 Free Software Foundation, Inc.
34028 dnl This file is free software; the Free Software Foundation
34029 dnl gives unlimited permission to copy and/or distribute it,
34030 dnl with or without modifications, as long as this notice is preserved.
34031
34032 diff --git a/autotools/m4/futimens.m4 b/autotools/m4/futimens.m4
34033 index 3cfa4a1..e3caa7d 100644
34034 --- a/autotools/m4/futimens.m4
34035 +++ b/autotools/m4/futimens.m4
34036 @@ -1,7 +1,7 @@
34037 -# serial 7
34038 +# serial 9
34039 # See if we need to provide futimens replacement.
34040
34041 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
34042 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
34043 dnl This file is free software; the Free Software Foundation
34044 dnl gives unlimited permission to copy and/or distribute it,
34045 dnl with or without modifications, as long as this notice is preserved.
34046 @@ -11,6 +11,7 @@ dnl with or without modifications, as long as this notice is preserved.
34047 AC_DEFUN([gl_FUNC_FUTIMENS],
34048 [
34049 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
34050 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
34051 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
34052 AC_CHECK_FUNCS_ONCE([futimens])
34053 if test $ac_cv_func_futimens = no; then
34054 @@ -23,7 +24,8 @@ AC_DEFUN([gl_FUNC_FUTIMENS],
34055 #include <sys/stat.h>
34056 #include <unistd.h>
34057 #include <errno.h>
34058 -]], [[struct timespec ts[2];
34059 +]GL_MDA_DEFINES],
34060 + [[struct timespec ts[2];
34061 int fd = creat ("conftest.file", 0600);
34062 struct stat st;
34063 if (fd < 0) return 1;
34064 @@ -44,10 +46,21 @@ AC_DEFUN([gl_FUNC_FUTIMENS],
34065 ]])],
34066 [gl_cv_func_futimens_works=yes],
34067 [gl_cv_func_futimens_works=no],
34068 - [gl_cv_func_futimens_works="guessing yes"])
34069 + [case "$host_os" in
34070 + # Guess no on glibc systems.
34071 + *-gnu* | gnu*) gl_cv_func_futimens_works="guessing no" ;;
34072 + # Guess no on musl systems.
34073 + *-musl*) gl_cv_func_futimens_works="guessing no" ;;
34074 + # Guess yes otherwise.
34075 + *) gl_cv_func_futimens_works="guessing yes" ;;
34076 + esac
34077 + ])
34078 rm -f conftest.file])
34079 - if test "$gl_cv_func_futimens_works" = no; then
34080 - REPLACE_FUTIMENS=1
34081 - fi
34082 + case "$gl_cv_func_futimens_works" in
34083 + *yes) ;;
34084 + *)
34085 + REPLACE_FUTIMENS=1
34086 + ;;
34087 + esac
34088 fi
34089 ])
34090
34091 diff --git a/autotools/m4/getcwd.m4 b/autotools/m4/getcwd.m4
34092 index 4929b51..076ca31 100644
34093 --- a/autotools/m4/getcwd.m4
34094 +++ b/autotools/m4/getcwd.m4
34095 @@ -1,12 +1,12 @@
34096 # getcwd.m4 - check for working getcwd that is compatible with glibc
34097
34098 -# Copyright (C) 2001, 2003-2007, 2009-2019 Free Software Foundation, Inc.
34099 +# Copyright (C) 2001, 2003-2007, 2009-2022 Free Software Foundation, Inc.
34100 # This file is free software; the Free Software Foundation
34101 # gives unlimited permission to copy and/or distribute it,
34102 # with or without modifications, as long as this notice is preserved.
34103
34104 # Written by Paul Eggert.
34105 -# serial 16
34106 +# serial 19
34107
34108 AC_DEFUN([gl_FUNC_GETCWD_NULL],
34109 [
34110 @@ -21,12 +21,13 @@ AC_DEFUN([gl_FUNC_GETCWD_NULL],
34111 # else /* on Windows with MSVC */
34112 # include <direct.h>
34113 # endif
34114 + ]GL_MDA_DEFINES[
34115 # ifndef getcwd
34116 char *getcwd ();
34117 # endif
34118 ]], [[
34119 #if defined _WIN32 && ! defined __CYGWIN__
34120 -/* mingw cwd does not start with '/', but getcwd does allocate.
34121 +/* mingw cwd does not start with '/', but _getcwd does allocate.
34122 However, mingw fails to honor non-zero size. */
34123 #else
34124 if (chdir ("/") != 0)
34125 @@ -50,10 +51,12 @@ AC_DEFUN([gl_FUNC_GETCWD_NULL],
34126 [[case "$host_os" in
34127 # Guess yes on glibc systems.
34128 *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";;
34129 + # Guess yes on musl systems.
34130 + *-musl*) gl_cv_func_getcwd_null="guessing yes";;
34131 # Guess yes on Cygwin.
34132 cygwin*) gl_cv_func_getcwd_null="guessing yes";;
34133 - # If we don't know, assume the worst.
34134 - *) gl_cv_func_getcwd_null="guessing no";;
34135 + # If we don't know, obey --enable-cross-guesses.
34136 + *) gl_cv_func_getcwd_null="$gl_cross_guess_normal";;
34137 esac
34138 ]])])
34139 ])
34140 @@ -64,7 +67,8 @@ AC_DEFUN([gl_FUNC_GETCWD_SIGNATURE],
34141 [gl_cv_func_getcwd_posix_signature],
34142 [AC_COMPILE_IFELSE(
34143 [AC_LANG_PROGRAM(
34144 - [[#include <unistd.h>]],
34145 + [[#include <unistd.h>
34146 + ]GL_MDA_DEFINES],
34147 [[extern
34148 #ifdef __cplusplus
34149 "C"
34150 @@ -125,7 +129,7 @@ AC_DEFUN([gl_FUNC_GETCWD],
34151 dnl Define HAVE_MINIMALLY_WORKING_GETCWD and HAVE_PARTLY_WORKING_GETCWD
34152 dnl if appropriate.
34153 case "$gl_cv_func_getcwd_path_max" in
34154 - "no"|"no, it has the AIX bug") ;;
34155 + *"no" | *"no, it has the AIX bug") ;;
34156 *)
34157 AC_DEFINE([HAVE_MINIMALLY_WORKING_GETCWD], [1],
34158 [Define to 1 if getcwd minimally works, that is, its result can be
34159 @@ -133,12 +137,12 @@ AC_DEFUN([gl_FUNC_GETCWD],
34160 ;;
34161 esac
34162 case "$gl_cv_func_getcwd_path_max" in
34163 - "no, but it is partly working")
34164 + *"no, but it is partly working")
34165 AC_DEFINE([HAVE_PARTLY_WORKING_GETCWD], [1],
34166 [Define to 1 if getcwd works, except it sometimes fails when it
34167 shouldn't, setting errno to ERANGE, ENAMETOOLONG, or ENOENT.])
34168 ;;
34169 - "yes, but with shorter paths")
34170 + *"yes, but with shorter paths")
34171 AC_DEFINE([HAVE_GETCWD_SHORTER], [1],
34172 [Define to 1 if getcwd works, but with shorter paths
34173 than is generally tested with the replacement.])
34174
34175 diff --git a/autotools/m4/getdelim.m4 b/autotools/m4/getdelim.m4
34176 index bf17c57..0b63b55 100644
34177 --- a/autotools/m4/getdelim.m4
34178 +++ b/autotools/m4/getdelim.m4
34179 @@ -1,6 +1,6 @@
34180 -# getdelim.m4 serial 12
34181 +# getdelim.m4 serial 15
34182
34183 -dnl Copyright (C) 2005-2007, 2009-2019 Free Software Foundation, Inc.
34184 +dnl Copyright (C) 2005-2007, 2009-2022 Free Software Foundation, Inc.
34185 dnl
34186 dnl This file is free software; the Free Software Foundation
34187 dnl gives unlimited permission to copy and/or distribute it,
34188 @@ -11,6 +11,7 @@ AC_PREREQ([2.59])
34189 AC_DEFUN([gl_FUNC_GETDELIM],
34190 [
34191 AC_REQUIRE([gl_STDIO_H_DEFAULTS])
34192 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
34193
34194 dnl Persuade glibc <stdio.h> to declare getdelim().
34195 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
34196 @@ -21,9 +22,10 @@ AC_DEFUN([gl_FUNC_GETDELIM],
34197 if test $ac_cv_func_getdelim = yes; then
34198 HAVE_GETDELIM=1
34199 dnl Found it in some library. Verify that it works.
34200 - AC_CACHE_CHECK([for working getdelim function], [gl_cv_func_working_getdelim],
34201 - [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
34202 - AC_RUN_IFELSE([AC_LANG_SOURCE([[
34203 + AC_CACHE_CHECK([for working getdelim function],
34204 + [gl_cv_func_working_getdelim],
34205 + [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
34206 + AC_RUN_IFELSE([AC_LANG_SOURCE([[
34207 # include <stdio.h>
34208 # include <stdlib.h>
34209 # include <string.h>
34210 @@ -40,6 +42,7 @@ AC_DEFUN([gl_FUNC_GETDELIM],
34211 int len = getdelim (&line, &siz, '\n', in);
34212 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
34213 { free (line); fclose (in); return 2; }
34214 + free (line);
34215 }
34216 {
34217 /* Test result for a NULL buffer and a non-zero size.
34218 @@ -53,25 +56,31 @@ AC_DEFUN([gl_FUNC_GETDELIM],
34219 fclose (in);
34220 return 0;
34221 }
34222 - ]])], [gl_cv_func_working_getdelim=yes] dnl The library version works.
34223 - , [gl_cv_func_working_getdelim=no] dnl The library version does NOT work.
34224 - , dnl We're cross compiling. Assume it works on glibc2 systems.
34225 - [AC_EGREP_CPP([Lucky GNU user],
34226 - [
34227 + ]])],
34228 + [gl_cv_func_working_getdelim=yes],
34229 + [gl_cv_func_working_getdelim=no],
34230 + [dnl We're cross compiling.
34231 + dnl Guess it works on glibc2 systems and musl systems.
34232 + AC_EGREP_CPP([Lucky GNU user],
34233 + [
34234 #include <features.h>
34235 #ifdef __GNU_LIBRARY__
34236 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
34237 Lucky GNU user
34238 #endif
34239 #endif
34240 - ],
34241 - [gl_cv_func_working_getdelim="guessing yes"],
34242 - [gl_cv_func_working_getdelim="guessing no"])]
34243 - )])
34244 + ],
34245 + [gl_cv_func_working_getdelim="guessing yes"],
34246 + [case "$host_os" in
34247 + *-musl*) gl_cv_func_working_getdelim="guessing yes" ;;
34248 + *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
34249 + esac
34250 + ])
34251 + ])
34252 + ])
34253 case "$gl_cv_func_working_getdelim" in
34254 - *no)
34255 - REPLACE_GETDELIM=1
34256 - ;;
34257 + *yes) ;;
34258 + *) REPLACE_GETDELIM=1 ;;
34259 esac
34260 else
34261 HAVE_GETDELIM=0
34262
34263 diff --git a/autotools/m4/getdtablesize.m4 b/autotools/m4/getdtablesize.m4
34264 index 96aa241..6134eaa 100644
34265 --- a/autotools/m4/getdtablesize.m4
34266 +++ b/autotools/m4/getdtablesize.m4
34267 @@ -1,5 +1,5 @@
34268 -# getdtablesize.m4 serial 7
34269 -dnl Copyright (C) 2008-2019 Free Software Foundation, Inc.
34270 +# getdtablesize.m4 serial 8
34271 +dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
34272 dnl This file is free software; the Free Software Foundation
34273 dnl gives unlimited permission to copy and/or distribute it,
34274 dnl with or without modifications, as long as this notice is preserved.
34275 @@ -29,13 +29,16 @@ AC_DEFUN([gl_FUNC_GETDTABLESIZE],
34276 dnl correctly require setrlimit before getdtablesize() can report
34277 dnl a larger value.
34278 AC_RUN_IFELSE([
34279 - AC_LANG_PROGRAM([[#include <unistd.h>]],
34280 - [int size = getdtablesize();
34281 - if (dup2 (0, getdtablesize()) != -1)
34282 - return 1;
34283 - if (size != getdtablesize())
34284 - return 2;
34285 - ])],
34286 + AC_LANG_PROGRAM(
34287 + [[#include <unistd.h>]
34288 + GL_MDA_DEFINES
34289 + ],
34290 + [[int size = getdtablesize();
34291 + if (dup2 (0, getdtablesize()) != -1)
34292 + return 1;
34293 + if (size != getdtablesize())
34294 + return 2;
34295 + ]])],
34296 [gl_cv_func_getdtablesize_works=yes],
34297 [gl_cv_func_getdtablesize_works=no],
34298 [case "$host_os" in
34299
34300 diff --git a/autotools/m4/getgroups.m4 b/autotools/m4/getgroups.m4
34301 index 2ce986e..d7a71f5 100644
34302 --- a/autotools/m4/getgroups.m4
34303 +++ b/autotools/m4/getgroups.m4
34304 @@ -1,16 +1,14 @@
34305 -# serial 21
34306 +# serial 24
34307
34308 dnl From Jim Meyering.
34309 dnl A wrapper around AC_FUNC_GETGROUPS.
34310
34311 -# Copyright (C) 1996-1997, 1999-2004, 2008-2019 Free Software Foundation, Inc.
34312 +# Copyright (C) 1996-1997, 1999-2004, 2008-2022 Free Software Foundation, Inc.
34313 #
34314 # This file is free software; the Free Software Foundation
34315 # gives unlimited permission to copy and/or distribute it,
34316 # with or without modifications, as long as this notice is preserved.
34317
34318 -m4_version_prereq([2.70], [] ,[
34319 -
34320 # This is taken from the following Autoconf patch:
34321 # https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=7fbb553727ed7e0e689a17594b58559ecf3ea6e9
34322 AC_DEFUN([AC_FUNC_GETGROUPS],
34323 @@ -42,8 +40,10 @@ AC_DEFUN([AC_FUNC_GETGROUPS],
34324 [case "$host_os" in # ((
34325 # Guess yes on glibc systems.
34326 *-gnu* | gnu*) ac_cv_func_getgroups_works="guessing yes" ;;
34327 - # If we don't know, assume the worst.
34328 - *) ac_cv_func_getgroups_works="guessing no" ;;
34329 + # Guess yes on musl systems.
34330 + *-musl*) ac_cv_func_getgroups_works="guessing yes" ;;
34331 + # If we don't know, obey --enable-cross-guesses.
34332 + *) ac_cv_func_getgroups_works="$gl_cross_guess_normal" ;;
34333 esac
34334 ])
34335 ])
34336 @@ -59,8 +59,6 @@ AC_DEFUN([AC_FUNC_GETGROUPS],
34337 LIBS=$ac_save_LIBS
34338 ])# AC_FUNC_GETGROUPS
34339
34340 -])
34341 -
34342 AC_DEFUN([gl_FUNC_GETGROUPS],
34343 [
34344 AC_REQUIRE([AC_TYPE_GETGROUPS])
34345 @@ -81,7 +79,8 @@ AC_DEFUN([gl_FUNC_GETGROUPS],
34346 AC_DEFINE([GETGROUPS_ZERO_BUG], [1], [Define this to 1 if
34347 getgroups(0,NULL) does not return the number of groups.])
34348 else
34349 - dnl Detect FreeBSD bug; POSIX requires getgroups(-1,ptr) to fail.
34350 + dnl Detect Mac OS X and FreeBSD bug; POSIX requires getgroups(-1,ptr)
34351 + dnl to fail.
34352 AC_CACHE_CHECK([whether getgroups handles negative values],
34353 [gl_cv_func_getgroups_works],
34354 [AC_RUN_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT],
34355 @@ -95,8 +94,10 @@ AC_DEFUN([gl_FUNC_GETGROUPS],
34356 [case "$host_os" in
34357 # Guess yes on glibc systems.
34358 *-gnu* | gnu*) gl_cv_func_getgroups_works="guessing yes" ;;
34359 - # If we don't know, assume the worst.
34360 - *) gl_cv_func_getgroups_works="guessing no" ;;
34361 + # Guess yes on musl systems.
34362 + *-musl*) gl_cv_func_getgroups_works="guessing yes" ;;
34363 + # If we don't know, obey --enable-cross-guesses.
34364 + *) gl_cv_func_getgroups_works="$gl_cross_guess_normal" ;;
34365 esac
34366 ])])
34367 case "$gl_cv_func_getgroups_works" in
34368
34369 diff --git a/autotools/m4/getline.m4 b/autotools/m4/getline.m4
34370 index 5b2ead2..ca0301d 100644
34371 --- a/autotools/m4/getline.m4
34372 +++ b/autotools/m4/getline.m4
34373 @@ -1,6 +1,6 @@
34374 -# getline.m4 serial 28
34375 +# getline.m4 serial 30
34376
34377 -dnl Copyright (C) 1998-2003, 2005-2007, 2009-2019 Free Software Foundation,
34378 +dnl Copyright (C) 1998-2003, 2005-2007, 2009-2022 Free Software Foundation,
34379 dnl Inc.
34380 dnl
34381 dnl This file is free software; the Free Software Foundation
34382 @@ -16,6 +16,7 @@ dnl to do with the function we need.
34383 AC_DEFUN([gl_FUNC_GETLINE],
34384 [
34385 AC_REQUIRE([gl_STDIO_H_DEFAULTS])
34386 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
34387
34388 dnl Persuade glibc <stdio.h> to declare getline().
34389 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
34390 @@ -28,9 +29,10 @@ AC_DEFUN([gl_FUNC_GETLINE],
34391 gl_getline_needs_run_time_check=yes],
34392 [am_cv_func_working_getline=no])
34393 if test $gl_getline_needs_run_time_check = yes; then
34394 - AC_CACHE_CHECK([for working getline function], [am_cv_func_working_getline],
34395 - [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
34396 - AC_RUN_IFELSE([AC_LANG_SOURCE([[
34397 + AC_CACHE_CHECK([for working getline function],
34398 + [am_cv_func_working_getline],
34399 + [echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
34400 + AC_RUN_IFELSE([AC_LANG_SOURCE([[
34401 # include <stdio.h>
34402 # include <stdlib.h>
34403 # include <string.h>
34404 @@ -61,21 +63,28 @@ AC_DEFUN([gl_FUNC_GETLINE],
34405 fclose (in);
34406 return 0;
34407 }
34408 - ]])], [am_cv_func_working_getline=yes] dnl The library version works.
34409 - , [am_cv_func_working_getline=no] dnl The library version does NOT work.
34410 - , dnl We're cross compiling. Assume it works on glibc2 systems.
34411 - [AC_EGREP_CPP([Lucky GNU user],
34412 - [
34413 + ]])],
34414 + [am_cv_func_working_getline=yes],
34415 + [am_cv_func_working_getline=no],
34416 + [dnl We're cross compiling.
34417 + dnl Guess it works on glibc2 systems and musl systems.
34418 + AC_EGREP_CPP([Lucky GNU user],
34419 + [
34420 #include <features.h>
34421 #ifdef __GNU_LIBRARY__
34422 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
34423 Lucky GNU user
34424 #endif
34425 #endif
34426 - ],
34427 - [am_cv_func_working_getline="guessing yes"],
34428 - [am_cv_func_working_getline="guessing no"])]
34429 - )])
34430 + ],
34431 + [am_cv_func_working_getline="guessing yes"],
34432 + [case "$host_os" in
34433 + *-musl*) am_cv_func_working_getline="guessing yes" ;;
34434 + *) am_cv_func_working_getline="$gl_cross_guess_normal" ;;
34435 + esac
34436 + ])
34437 + ])
34438 + ])
34439 fi
34440
34441 if test $ac_cv_have_decl_getline = no; then
34442 @@ -83,7 +92,8 @@ AC_DEFUN([gl_FUNC_GETLINE],
34443 fi
34444
34445 case "$am_cv_func_working_getline" in
34446 - *no)
34447 + *yes) ;;
34448 + *)
34449 dnl Set REPLACE_GETLINE always: Even if we have not found the broken
34450 dnl getline function among $LIBS, it may exist in libinet and the
34451 dnl executable may be linked with -linet.
34452
34453 diff --git a/autotools/m4/getopt.m4 b/autotools/m4/getopt.m4
34454 index 5991bf8..ff78ed5 100644
34455 --- a/autotools/m4/getopt.m4
34456 +++ b/autotools/m4/getopt.m4
34457 @@ -1,5 +1,5 @@
34458 -# getopt.m4 serial 46
34459 -dnl Copyright (C) 2002-2006, 2008-2019 Free Software Foundation, Inc.
34460 +# getopt.m4 serial 48
34461 +dnl Copyright (C) 2002-2006, 2008-2022 Free Software Foundation, Inc.
34462 dnl This file is free software; the Free Software Foundation
34463 dnl gives unlimited permission to copy and/or distribute it,
34464 dnl with or without modifications, as long as this notice is preserved.
34465 @@ -21,6 +21,8 @@ AC_DEFUN([gl_FUNC_GETOPT_POSIX],
34466 REPLACE_GETOPT=1
34467 fi
34468 ])
34469 + GL_GENERATE_GETOPT_H=false
34470 + GL_GENERATE_GETOPT_CDEFS_H=false
34471 if test $REPLACE_GETOPT = 1; then
34472 dnl Arrange for getopt.h to be created.
34473 gl_GETOPT_SUBSTITUTE_HEADER
34474 @@ -302,8 +304,10 @@ dnl is ambiguous with environment values that contain newlines.
34475 ]])],
34476 [gl_cv_func_getopt_gnu=yes],
34477 [gl_cv_func_getopt_gnu=no],
34478 - [dnl Cross compiling. Assume the worst, even on glibc platforms.
34479 - gl_cv_func_getopt_gnu="guessing no"
34480 + [dnl Cross compiling.
34481 + dnl Assume the worst, even on glibc platforms.
34482 + dnl But obey --enable-cross-guesses.
34483 + gl_cv_func_getopt_gnu="$gl_cross_guess_normal"
34484 ])
34485 case $gl_had_POSIXLY_CORRECT in
34486 exported) ;;
34487 @@ -372,8 +376,6 @@ AC_DEFUN([gl_GETOPT_SUBSTITUTE_HEADER],
34488 AC_DEFINE([__GETOPT_PREFIX], [[rpl_]],
34489 [Define to rpl_ if the getopt replacement functions and variables
34490 should be used.])
34491 - GETOPT_H=getopt.h
34492 - GETOPT_CDEFS_H=getopt-cdefs.h
34493 - AC_SUBST([GETOPT_H])
34494 - AC_SUBST([GETOPT_CDEFS_H])
34495 + GL_GENERATE_GETOPT_H=true
34496 + GL_GENERATE_GETOPT_CDEFS_H=true
34497 ])
34498
34499 diff --git a/autotools/m4/getprogname.m4 b/autotools/m4/getprogname.m4
34500 index 4a96d06..b26146e 100644
34501 --- a/autotools/m4/getprogname.m4
34502 +++ b/autotools/m4/getprogname.m4
34503 @@ -1,6 +1,6 @@
34504 # getprogname.m4 - check for getprogname or replacements for it
34505
34506 -# Copyright (C) 2016-2019 Free Software Foundation, Inc.
34507 +# Copyright (C) 2016-2022 Free Software Foundation, Inc.
34508 # This file is free software; the Free Software Foundation
34509 # gives unlimited permission to copy and/or distribute it,
34510 # with or without modifications, as long as this notice is preserved.
34511
34512 diff --git a/autotools/m4/gettime.m4 b/autotools/m4/gettime.m4
34513 index 60d8ea1..f0aeb4d 100644
34514 --- a/autotools/m4/gettime.m4
34515 +++ b/autotools/m4/gettime.m4
34516 @@ -1,5 +1,5 @@
34517 -# gettime.m4 serial 9
34518 -dnl Copyright (C) 2002, 2004-2006, 2009-2019 Free Software Foundation, Inc.
34519 +# gettime.m4 serial 11
34520 +dnl Copyright (C) 2002, 2004-2006, 2009-2022 Free Software Foundation, Inc.
34521 dnl This file is free software; the Free Software Foundation
34522 dnl gives unlimited permission to copy and/or distribute it,
34523 dnl with or without modifications, as long as this notice is preserved.
34524 @@ -9,5 +9,13 @@ AC_DEFUN([gl_GETTIME],
34525 dnl Prerequisites of lib/gettime.c.
34526 AC_REQUIRE([gl_CLOCK_TIME])
34527 AC_REQUIRE([gl_TIMESPEC])
34528 - AC_CHECK_FUNCS_ONCE([gettimeofday])
34529 + AC_CHECK_FUNCS_ONCE([timespec_get])
34530 +])
34531 +
34532 +AC_DEFUN([gl_GETTIME_RES],
34533 +[
34534 + dnl Prerequisites of lib/gettime-res.c.
34535 + AC_REQUIRE([gl_CLOCK_TIME])
34536 + AC_REQUIRE([gl_TIMESPEC])
34537 + AC_CHECK_FUNCS_ONCE([timespec_getres])
34538 ])
34539
34540 diff --git a/autotools/m4/gettimeofday.m4 b/autotools/m4/gettimeofday.m4
34541 index d29b4bf..f729601 100644
34542 --- a/autotools/m4/gettimeofday.m4
34543 +++ b/autotools/m4/gettimeofday.m4
34544 @@ -1,6 +1,6 @@
34545 -# serial 25
34546 +# serial 29
34547
34548 -# Copyright (C) 2001-2003, 2005, 2007, 2009-2019 Free Software Foundation, Inc.
34549 +# Copyright (C) 2001-2003, 2005, 2007, 2009-2022 Free Software Foundation, Inc.
34550 # This file is free software; the Free Software Foundation
34551 # gives unlimited permission to copy and/or distribute it,
34552 # with or without modifications, as long as this notice is preserved.
34553 @@ -9,17 +9,16 @@ dnl From Jim Meyering.
34554
34555 AC_DEFUN([gl_FUNC_GETTIMEOFDAY],
34556 [
34557 - AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS])
34558 + AC_REQUIRE([gl_SYS_TIME_H_DEFAULTS])
34559 AC_REQUIRE([AC_C_RESTRICT])
34560 AC_REQUIRE([AC_CANONICAL_HOST])
34561 - AC_REQUIRE([gl_HEADER_SYS_TIME_H])
34562 + AC_REQUIRE([gl_SYS_TIME_H])
34563 AC_CHECK_FUNCS_ONCE([gettimeofday])
34564
34565 gl_gettimeofday_timezone=void
34566 if test $ac_cv_func_gettimeofday != yes; then
34567 HAVE_GETTIMEOFDAY=0
34568 else
34569 - gl_FUNC_GETTIMEOFDAY_CLOBBER
34570 AC_CACHE_CHECK([for gettimeofday with POSIX signature],
34571 [gl_cv_func_gettimeofday_posix_signature],
34572 [AC_COMPILE_IFELSE(
34573 @@ -66,61 +65,5 @@ int gettimeofday (struct timeval *restrict, struct timezone *restrict);
34574 declaration of the second argument to gettimeofday.])
34575 ])
34576
34577 -
34578 -dnl See if gettimeofday clobbers the static buffer that localtime uses
34579 -dnl for its return value. The gettimeofday function from Mac OS X 10.0.4
34580 -dnl (i.e., Darwin 1.3.7) has this problem.
34581 -dnl
34582 -dnl If it does, then arrange to use gettimeofday and localtime only via
34583 -dnl the wrapper functions that work around the problem.
34584 -
34585 -AC_DEFUN([gl_FUNC_GETTIMEOFDAY_CLOBBER],
34586 -[
34587 - AC_REQUIRE([gl_HEADER_SYS_TIME_H])
34588 - AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
34589 - AC_REQUIRE([gl_LOCALTIME_BUFFER_DEFAULTS])
34590 -
34591 - AC_CACHE_CHECK([whether gettimeofday clobbers localtime buffer],
34592 - [gl_cv_func_gettimeofday_clobber],
34593 - [AC_RUN_IFELSE(
34594 - [AC_LANG_PROGRAM(
34595 - [[#include <string.h>
34596 - #include <sys/time.h>
34597 - #include <time.h>
34598 - #include <stdlib.h>
34599 - ]],
34600 - [[
34601 - time_t t = 0;
34602 - struct tm *lt;
34603 - struct tm saved_lt;
34604 - struct timeval tv;
34605 - lt = localtime (&t);
34606 - saved_lt = *lt;
34607 - gettimeofday (&tv, NULL);
34608 - return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
34609 - ]])],
34610 - [gl_cv_func_gettimeofday_clobber=no],
34611 - [gl_cv_func_gettimeofday_clobber=yes],
34612 - [# When cross-compiling:
34613 - case "$host_os" in
34614 - # Guess all is fine on glibc systems.
34615 - *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
34616 - # Guess no on native Windows.
34617 - mingw*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
34618 - # If we don't know, assume the worst.
34619 - *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
34620 - esac
34621 - ])])
34622 -
34623 - case "$gl_cv_func_gettimeofday_clobber" in
34624 - *yes)
34625 - REPLACE_GETTIMEOFDAY=1
34626 - AC_DEFINE([GETTIMEOFDAY_CLOBBERS_LOCALTIME], [1],
34627 - [Define if gettimeofday clobbers the localtime buffer.])
34628 - gl_LOCALTIME_BUFFER_NEEDED
34629 - ;;
34630 - esac
34631 -])
34632 -
34633 # Prerequisites of lib/gettimeofday.c.
34634 AC_DEFUN([gl_PREREQ_GETTIMEOFDAY], [:])
34635
34636 diff --git a/autotools/m4/gnulib-cache.m4 b/autotools/m4/gnulib-cache.m4
34637 index 41e605c..fed003e 100644
34638 --- a/autotools/m4/gnulib-cache.m4
34639 +++ b/autotools/m4/gnulib-cache.m4
34640 @@ -1,8 +1,8 @@
34641 -# Copyright (C) 2002-2019 Free Software Foundation, Inc.
34642 +# Copyright (C) 2002-2022 Free Software Foundation, Inc.
34643 #
34644 # This file is free software; you can redistribute it and/or modify
34645 # it under the terms of the GNU General Public License as published by
34646 -# the Free Software Foundation; either version 3 of the License, or
34647 +# the Free Software Foundation, either version 3 of the License, or
34648 # (at your option) any later version.
34649 #
34650 # This file is distributed in the hope that it will be useful,
34651
34652 diff --git a/autotools/m4/gnulib-common.m4 b/autotools/m4/gnulib-common.m4
34653 index 7c0e3e8..dbc4079 100644
34654 --- a/autotools/m4/gnulib-common.m4
34655 +++ b/autotools/m4/gnulib-common.m4
34656 @@ -1,5 +1,5 @@
34657 -# gnulib-common.m4 serial 41
34658 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
34659 +# gnulib-common.m4 serial 72
34660 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
34661 dnl This file is free software; the Free Software Foundation
34662 dnl gives unlimited permission to copy and/or distribute it,
34663 dnl with or without modifications, as long as this notice is preserved.
34664 @@ -12,17 +12,41 @@ AC_DEFUN([gl_COMMON], [
34665 dnl Use AC_REQUIRE here, so that the code is expanded once only.
34666 AC_REQUIRE([gl_00GNULIB])
34667 AC_REQUIRE([gl_COMMON_BODY])
34668 + AC_REQUIRE([gl_ZZGNULIB])
34669 ])
34670 AC_DEFUN([gl_COMMON_BODY], [
34671 + AH_VERBATIM([_GL_GNUC_PREREQ],
34672 +[/* True if the compiler says it groks GNU C version MAJOR.MINOR. */
34673 +#if defined __GNUC__ && defined __GNUC_MINOR__
34674 +# define _GL_GNUC_PREREQ(major, minor) \
34675 + ((major) < __GNUC__ + ((minor) <= __GNUC_MINOR__))
34676 +#else
34677 +# define _GL_GNUC_PREREQ(major, minor) 0
34678 +#endif
34679 +])
34680 AH_VERBATIM([_Noreturn],
34681 [/* The _Noreturn keyword of C11. */
34682 #ifndef _Noreturn
34683 -# if 201103 <= (defined __cplusplus ? __cplusplus : 0)
34684 +# if (defined __cplusplus \
34685 + && ((201103 <= __cplusplus && !(__GNUC__ == 4 && __GNUC_MINOR__ == 7)) \
34686 + || (defined _MSC_VER && 1900 <= _MSC_VER)) \
34687 + && 0)
34688 + /* [[noreturn]] is not practically usable, because with it the syntax
34689 + extern _Noreturn void func (...);
34690 + would not be valid; such a declaration would only be valid with 'extern'
34691 + and '_Noreturn' swapped, or without the 'extern' keyword. However, some
34692 + AIX system header files and several gnulib header files use precisely
34693 + this syntax with 'extern'. */
34694 # define _Noreturn [[noreturn]]
34695 -# elif (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
34696 - || 4 < __GNUC__ + (7 <= __GNUC_MINOR__))
34697 +# elif ((!defined __cplusplus || defined __clang__) \
34698 + && (201112 <= (defined __STDC_VERSION__ ? __STDC_VERSION__ : 0) \
34699 + || (!defined __STRICT_ANSI__ \
34700 + && (_GL_GNUC_PREREQ (4, 7) \
34701 + || (defined __apple_build_version__ \
34702 + ? 6000000 <= __apple_build_version__ \
34703 + : 3 < __clang_major__ + (5 <= __clang_minor__))))))
34704 /* _Noreturn works as-is. */
34705 -# elif 2 < __GNUC__ + (8 <= __GNUC_MINOR__) || 0x5110 <= __SUNPRO_C
34706 +# elif _GL_GNUC_PREREQ (2, 8) || defined __clang__ || 0x5110 <= __SUNPRO_C
34707 # define _Noreturn __attribute__ ((__noreturn__))
34708 # elif 1200 <= (defined _MSC_VER ? _MSC_VER : 0)
34709 # define _Noreturn __declspec (noreturn)
34710 @@ -41,50 +65,442 @@ AC_DEFUN([gl_COMMON_BODY], [
34711 #if defined __APPLE__ && defined __MACH__ && __APPLE_CC__ >= 5465 && !defined __cplusplus && __STDC_VERSION__ >= 199901L && !defined __GNUC_STDC_INLINE__
34712 # define __GNUC_STDC_INLINE__ 1
34713 #endif])
34714 - AH_VERBATIM([unused_parameter],
34715 -[/* Define as a marker that can be attached to declarations that might not
34716 - be used. This helps to reduce warnings, such as from
34717 - GCC -Wunused-parameter. */
34718 -#if __GNUC__ >= 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
34719 -# define _GL_UNUSED __attribute__ ((__unused__))
34720 + AH_VERBATIM([attribute],
34721 +[/* Attributes. */
34722 +#if (defined __has_attribute \
34723 + && (!defined __clang_minor__ \
34724 + || 3 < __clang_major__ + (5 <= __clang_minor__)))
34725 +# define _GL_HAS_ATTRIBUTE(attr) __has_attribute (__##attr##__)
34726 #else
34727 -# define _GL_UNUSED
34728 -#endif
34729 -/* The name _UNUSED_PARAMETER_ is an earlier spelling, although the name
34730 - is a misnomer outside of parameter lists. */
34731 -#define _UNUSED_PARAMETER_ _GL_UNUSED
34732 -
34733 -/* gcc supports the "unused" attribute on possibly unused labels, and
34734 - g++ has since version 4.5. Note to support C++ as well as C,
34735 - _GL_UNUSED_LABEL should be used with a trailing ; */
34736 -#if !defined __cplusplus || __GNUC__ > 4 \
34737 - || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
34738 -# define _GL_UNUSED_LABEL _GL_UNUSED
34739 +# define _GL_HAS_ATTRIBUTE(attr) _GL_ATTR_##attr
34740 +# define _GL_ATTR_alloc_size _GL_GNUC_PREREQ (4, 3)
34741 +# define _GL_ATTR_always_inline _GL_GNUC_PREREQ (3, 2)
34742 +# define _GL_ATTR_artificial _GL_GNUC_PREREQ (4, 3)
34743 +# define _GL_ATTR_cold _GL_GNUC_PREREQ (4, 3)
34744 +# define _GL_ATTR_const _GL_GNUC_PREREQ (2, 95)
34745 +# define _GL_ATTR_deprecated _GL_GNUC_PREREQ (3, 1)
34746 +# define _GL_ATTR_diagnose_if 0
34747 +# define _GL_ATTR_error _GL_GNUC_PREREQ (4, 3)
34748 +# define _GL_ATTR_externally_visible _GL_GNUC_PREREQ (4, 1)
34749 +# define _GL_ATTR_fallthrough _GL_GNUC_PREREQ (7, 0)
34750 +# define _GL_ATTR_format _GL_GNUC_PREREQ (2, 7)
34751 +# define _GL_ATTR_leaf _GL_GNUC_PREREQ (4, 6)
34752 +# define _GL_ATTR_malloc _GL_GNUC_PREREQ (3, 0)
34753 +# ifdef _ICC
34754 +# define _GL_ATTR_may_alias 0
34755 +# else
34756 +# define _GL_ATTR_may_alias _GL_GNUC_PREREQ (3, 3)
34757 +# endif
34758 +# define _GL_ATTR_noinline _GL_GNUC_PREREQ (3, 1)
34759 +# define _GL_ATTR_nonnull _GL_GNUC_PREREQ (3, 3)
34760 +# define _GL_ATTR_nonstring _GL_GNUC_PREREQ (8, 0)
34761 +# define _GL_ATTR_nothrow _GL_GNUC_PREREQ (3, 3)
34762 +# define _GL_ATTR_packed _GL_GNUC_PREREQ (2, 7)
34763 +# define _GL_ATTR_pure _GL_GNUC_PREREQ (2, 96)
34764 +# define _GL_ATTR_returns_nonnull _GL_GNUC_PREREQ (4, 9)
34765 +# define _GL_ATTR_sentinel _GL_GNUC_PREREQ (4, 0)
34766 +# define _GL_ATTR_unused _GL_GNUC_PREREQ (2, 7)
34767 +# define _GL_ATTR_warn_unused_result _GL_GNUC_PREREQ (3, 4)
34768 +#endif
34769 +
34770 +#ifdef __has_c_attribute
34771 +# define _GL_HAS_C_ATTRIBUTE(attr) __has_c_attribute (__##attr##__)
34772 #else
34773 -# define _GL_UNUSED_LABEL
34774 +# define _GL_HAS_C_ATTRIBUTE(attr) 0
34775 #endif
34776
34777 -/* The __pure__ attribute was added in gcc 2.96. */
34778 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
34779 -# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
34780 +]dnl There is no _GL_ATTRIBUTE_ALIGNED; use stdalign's _Alignas instead.
34781 +[
34782 +/* _GL_ATTRIBUTE_ALLOC_SIZE ((N)) declares that the Nth argument of the function
34783 + is the size of the returned memory block.
34784 + _GL_ATTRIBUTE_ALLOC_SIZE ((M, N)) declares that the Mth argument multiplied
34785 + by the Nth argument of the function is the size of the returned memory block.
34786 + */
34787 +/* Applies to: function, pointer to function, function types. */
34788 +#if _GL_HAS_ATTRIBUTE (alloc_size)
34789 +# define _GL_ATTRIBUTE_ALLOC_SIZE(args) __attribute__ ((__alloc_size__ args))
34790 +#else
34791 +# define _GL_ATTRIBUTE_ALLOC_SIZE(args)
34792 +#endif
34793 +
34794 +/* _GL_ATTRIBUTE_ALWAYS_INLINE tells that the compiler should always inline the
34795 + function and report an error if it cannot do so. */
34796 +/* Applies to: function. */
34797 +#if _GL_HAS_ATTRIBUTE (always_inline)
34798 +# define _GL_ATTRIBUTE_ALWAYS_INLINE __attribute__ ((__always_inline__))
34799 +#else
34800 +# define _GL_ATTRIBUTE_ALWAYS_INLINE
34801 +#endif
34802 +
34803 +/* _GL_ATTRIBUTE_ARTIFICIAL declares that the function is not important to show
34804 + in stack traces when debugging. The compiler should omit the function from
34805 + stack traces. */
34806 +/* Applies to: function. */
34807 +#if _GL_HAS_ATTRIBUTE (artificial)
34808 +# define _GL_ATTRIBUTE_ARTIFICIAL __attribute__ ((__artificial__))
34809 #else
34810 -# define _GL_ATTRIBUTE_PURE /* empty */
34811 +# define _GL_ATTRIBUTE_ARTIFICIAL
34812 #endif
34813
34814 -/* The __const__ attribute was added in gcc 2.95. */
34815 -#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
34816 +/* _GL_ATTRIBUTE_COLD declares that the function is rarely executed. */
34817 +/* Applies to: functions. */
34818 +/* Avoid __attribute__ ((cold)) on MinGW; see thread starting at
34819 + <https://lists.gnu.org/r/emacs-devel/2019-04/msg01152.html>.
34820 + Also, Oracle Studio 12.6 requires 'cold' not '__cold__'. */
34821 +#if _GL_HAS_ATTRIBUTE (cold) && !defined __MINGW32__
34822 +# ifndef __SUNPRO_C
34823 +# define _GL_ATTRIBUTE_COLD __attribute__ ((__cold__))
34824 +# else
34825 +# define _GL_ATTRIBUTE_COLD __attribute__ ((cold))
34826 +# endif
34827 +#else
34828 +# define _GL_ATTRIBUTE_COLD
34829 +#endif
34830 +
34831 +/* _GL_ATTRIBUTE_CONST declares that it is OK for a compiler to omit duplicate
34832 + calls to the function with the same arguments.
34833 + This attribute is safe for a function that neither depends on nor affects
34834 + observable state, and always returns exactly once - e.g., does not loop
34835 + forever, and does not call longjmp.
34836 + (This attribute is stricter than _GL_ATTRIBUTE_PURE.) */
34837 +/* Applies to: functions. */
34838 +#if _GL_HAS_ATTRIBUTE (const)
34839 # define _GL_ATTRIBUTE_CONST __attribute__ ((__const__))
34840 #else
34841 -# define _GL_ATTRIBUTE_CONST /* empty */
34842 +# define _GL_ATTRIBUTE_CONST
34843 +#endif
34844 +
34845 +/* _GL_ATTRIBUTE_DEALLOC (F, I) declares that the function returns pointers
34846 + that can be freed by passing them as the Ith argument to the
34847 + function F.
34848 + _GL_ATTRIBUTE_DEALLOC_FREE declares that the function returns pointers that
34849 + can be freed via 'free'; it can be used only after declaring 'free'. */
34850 +/* Applies to: functions. Cannot be used on inline functions. */
34851 +#if _GL_GNUC_PREREQ (11, 0)
34852 +# define _GL_ATTRIBUTE_DEALLOC(f, i) __attribute__ ((__malloc__ (f, i)))
34853 +#else
34854 +# define _GL_ATTRIBUTE_DEALLOC(f, i)
34855 +#endif
34856 +/* If gnulib's <string.h> or <wchar.h> has already defined this macro, continue
34857 + to use this earlier definition, since <stdlib.h> may not have been included
34858 + yet. */
34859 +#ifndef _GL_ATTRIBUTE_DEALLOC_FREE
34860 +# define _GL_ATTRIBUTE_DEALLOC_FREE _GL_ATTRIBUTE_DEALLOC (free, 1)
34861 +#endif
34862 +
34863 +/* _GL_ATTRIBUTE_DEPRECATED: Declares that an entity is deprecated.
34864 + The compiler may warn if the entity is used. */
34865 +/* Applies to:
34866 + - function, variable,
34867 + - struct, union, struct/union member,
34868 + - enumeration, enumeration item,
34869 + - typedef,
34870 + in C++ also: namespace, class, template specialization. */
34871 +#if _GL_HAS_C_ATTRIBUTE (deprecated)
34872 +# define _GL_ATTRIBUTE_DEPRECATED [[__deprecated__]]
34873 +#elif _GL_HAS_ATTRIBUTE (deprecated)
34874 +# define _GL_ATTRIBUTE_DEPRECATED __attribute__ ((__deprecated__))
34875 +#else
34876 +# define _GL_ATTRIBUTE_DEPRECATED
34877 +#endif
34878 +
34879 +/* _GL_ATTRIBUTE_ERROR(msg) requests an error if a function is called and
34880 + the function call is not optimized away.
34881 + _GL_ATTRIBUTE_WARNING(msg) requests a warning if a function is called and
34882 + the function call is not optimized away. */
34883 +/* Applies to: functions. */
34884 +#if _GL_HAS_ATTRIBUTE (error)
34885 +# define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__error__ (msg)))
34886 +# define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__warning__ (msg)))
34887 +#elif _GL_HAS_ATTRIBUTE (diagnose_if)
34888 +# define _GL_ATTRIBUTE_ERROR(msg) __attribute__ ((__diagnose_if__ (1, msg, "error")))
34889 +# define _GL_ATTRIBUTE_WARNING(msg) __attribute__ ((__diagnose_if__ (1, msg, "warning")))
34890 +#else
34891 +# define _GL_ATTRIBUTE_ERROR(msg)
34892 +# define _GL_ATTRIBUTE_WARNING(msg)
34893 +#endif
34894 +
34895 +/* _GL_ATTRIBUTE_EXTERNALLY_VISIBLE declares that the entity should remain
34896 + visible to debuggers etc., even with '-fwhole-program'. */
34897 +/* Applies to: functions, variables. */
34898 +#if _GL_HAS_ATTRIBUTE (externally_visible)
34899 +# define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE __attribute__ ((externally_visible))
34900 +#else
34901 +# define _GL_ATTRIBUTE_EXTERNALLY_VISIBLE
34902 +#endif
34903 +
34904 +/* _GL_ATTRIBUTE_FALLTHROUGH declares that it is not a programming mistake if
34905 + the control flow falls through to the immediately following 'case' or
34906 + 'default' label. The compiler should not warn in this case. */
34907 +/* Applies to: Empty statement (;), inside a 'switch' statement. */
34908 +/* Always expands to something. */
34909 +#if _GL_HAS_C_ATTRIBUTE (fallthrough)
34910 +# define _GL_ATTRIBUTE_FALLTHROUGH [[__fallthrough__]]
34911 +#elif _GL_HAS_ATTRIBUTE (fallthrough)
34912 +# define _GL_ATTRIBUTE_FALLTHROUGH __attribute__ ((__fallthrough__))
34913 +#else
34914 +# define _GL_ATTRIBUTE_FALLTHROUGH ((void) 0)
34915 +#endif
34916 +
34917 +/* _GL_ATTRIBUTE_FORMAT ((ARCHETYPE, STRING-INDEX, FIRST-TO-CHECK))
34918 + declares that the STRING-INDEXth function argument is a format string of
34919 + style ARCHETYPE, which is one of:
34920 + printf, gnu_printf
34921 + scanf, gnu_scanf,
34922 + strftime, gnu_strftime,
34923 + strfmon,
34924 + or the same thing prefixed and suffixed with '__'.
34925 + If FIRST-TO-CHECK is not 0, arguments starting at FIRST-TO_CHECK
34926 + are suitable for the format string. */
34927 +/* Applies to: functions. */
34928 +#if _GL_HAS_ATTRIBUTE (format)
34929 +# define _GL_ATTRIBUTE_FORMAT(spec) __attribute__ ((__format__ spec))
34930 +#else
34931 +# define _GL_ATTRIBUTE_FORMAT(spec)
34932 #endif
34933
34934 -/* The __malloc__ attribute was added in gcc 3. */
34935 -#if 3 <= __GNUC__
34936 +/* _GL_ATTRIBUTE_LEAF declares that if the function is called from some other
34937 + compilation unit, it executes code from that unit only by return or by
34938 + exception handling. This declaration lets the compiler optimize that unit
34939 + more aggressively. */
34940 +/* Applies to: functions. */
34941 +#if _GL_HAS_ATTRIBUTE (leaf)
34942 +# define _GL_ATTRIBUTE_LEAF __attribute__ ((__leaf__))
34943 +#else
34944 +# define _GL_ATTRIBUTE_LEAF
34945 +#endif
34946 +
34947 +/* _GL_ATTRIBUTE_MALLOC declares that the function returns a pointer to freshly
34948 + allocated memory. */
34949 +/* Applies to: functions. */
34950 +#if _GL_HAS_ATTRIBUTE (malloc)
34951 # define _GL_ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
34952 #else
34953 -# define _GL_ATTRIBUTE_MALLOC /* empty */
34954 +# define _GL_ATTRIBUTE_MALLOC
34955 +#endif
34956 +
34957 +/* _GL_ATTRIBUTE_MAY_ALIAS declares that pointers to the type may point to the
34958 + same storage as pointers to other types. Thus this declaration disables
34959 + strict aliasing optimization. */
34960 +/* Applies to: types. */
34961 +/* Oracle Studio 12.6 mishandles may_alias despite __has_attribute OK. */
34962 +#if _GL_HAS_ATTRIBUTE (may_alias) && !defined __SUNPRO_C
34963 +# define _GL_ATTRIBUTE_MAY_ALIAS __attribute__ ((__may_alias__))
34964 +#else
34965 +# define _GL_ATTRIBUTE_MAY_ALIAS
34966 +#endif
34967 +
34968 +/* _GL_ATTRIBUTE_MAYBE_UNUSED declares that it is not a programming mistake if
34969 + the entity is not used. The compiler should not warn if the entity is not
34970 + used. */
34971 +/* Applies to:
34972 + - function, variable,
34973 + - struct, union, struct/union member,
34974 + - enumeration, enumeration item,
34975 + - typedef,
34976 + in C++ also: class. */
34977 +/* In C++ and C2x, this is spelled [[__maybe_unused__]].
34978 + GCC's syntax is __attribute__ ((__unused__)).
34979 + clang supports both syntaxes. */
34980 +#if _GL_HAS_C_ATTRIBUTE (maybe_unused)
34981 +# define _GL_ATTRIBUTE_MAYBE_UNUSED [[__maybe_unused__]]
34982 +#else
34983 +# define _GL_ATTRIBUTE_MAYBE_UNUSED _GL_ATTRIBUTE_UNUSED
34984 +#endif
34985 +/* Alternative spelling of this macro, for convenience. */
34986 +#define _GL_UNUSED _GL_ATTRIBUTE_MAYBE_UNUSED
34987 +/* Earlier spellings of this macro. */
34988 +#define _UNUSED_PARAMETER_ _GL_ATTRIBUTE_MAYBE_UNUSED
34989 +
34990 +/* _GL_ATTRIBUTE_NODISCARD declares that the caller of the function should not
34991 + discard the return value. The compiler may warn if the caller does not use
34992 + the return value, unless the caller uses something like ignore_value. */
34993 +/* Applies to: function, enumeration, class. */
34994 +#if _GL_HAS_C_ATTRIBUTE (nodiscard)
34995 +# define _GL_ATTRIBUTE_NODISCARD [[__nodiscard__]]
34996 +#elif _GL_HAS_ATTRIBUTE (warn_unused_result)
34997 +# define _GL_ATTRIBUTE_NODISCARD __attribute__ ((__warn_unused_result__))
34998 +#else
34999 +# define _GL_ATTRIBUTE_NODISCARD
35000 +#endif
35001 +
35002 +/* _GL_ATTRIBUTE_NOINLINE tells that the compiler should not inline the
35003 + function. */
35004 +/* Applies to: functions. */
35005 +#if _GL_HAS_ATTRIBUTE (noinline)
35006 +# define _GL_ATTRIBUTE_NOINLINE __attribute__ ((__noinline__))
35007 +#else
35008 +# define _GL_ATTRIBUTE_NOINLINE
35009 +#endif
35010 +
35011 +/* _GL_ATTRIBUTE_NONNULL ((N1, N2,...)) declares that the arguments N1, N2,...
35012 + must not be NULL.
35013 + _GL_ATTRIBUTE_NONNULL () declares that all pointer arguments must not be
35014 + null. */
35015 +/* Applies to: functions. */
35016 +#if _GL_HAS_ATTRIBUTE (nonnull)
35017 +# define _GL_ATTRIBUTE_NONNULL(args) __attribute__ ((__nonnull__ args))
35018 +#else
35019 +# define _GL_ATTRIBUTE_NONNULL(args)
35020 +#endif
35021 +
35022 +/* _GL_ATTRIBUTE_NONSTRING declares that the contents of a character array is
35023 + not meant to be NUL-terminated. */
35024 +/* Applies to: struct/union members and variables that are arrays of element
35025 + type '[[un]signed] char'. */
35026 +#if _GL_HAS_ATTRIBUTE (nonstring)
35027 +# define _GL_ATTRIBUTE_NONSTRING __attribute__ ((__nonstring__))
35028 +#else
35029 +# define _GL_ATTRIBUTE_NONSTRING
35030 #endif
35031 +
35032 +/* There is no _GL_ATTRIBUTE_NORETURN; use _Noreturn instead. */
35033 +
35034 +/* _GL_ATTRIBUTE_NOTHROW declares that the function does not throw exceptions.
35035 + */
35036 +/* Applies to: functions. */
35037 +#if _GL_HAS_ATTRIBUTE (nothrow) && !defined __cplusplus
35038 +# define _GL_ATTRIBUTE_NOTHROW __attribute__ ((__nothrow__))
35039 +#else
35040 +# define _GL_ATTRIBUTE_NOTHROW
35041 +#endif
35042 +
35043 +/* _GL_ATTRIBUTE_PACKED declares:
35044 + For struct members: The member has the smallest possible alignment.
35045 + For struct, union, class: All members have the smallest possible alignment,
35046 + minimizing the memory required. */
35047 +/* Applies to: struct members, struct, union,
35048 + in C++ also: class. */
35049 +#if _GL_HAS_ATTRIBUTE (packed)
35050 +# define _GL_ATTRIBUTE_PACKED __attribute__ ((__packed__))
35051 +#else
35052 +# define _GL_ATTRIBUTE_PACKED
35053 +#endif
35054 +
35055 +/* _GL_ATTRIBUTE_PURE declares that It is OK for a compiler to omit duplicate
35056 + calls to the function with the same arguments if observable state is not
35057 + changed between calls.
35058 + This attribute is safe for a function that does not affect
35059 + observable state, and always returns exactly once.
35060 + (This attribute is looser than _GL_ATTRIBUTE_CONST.) */
35061 +/* Applies to: functions. */
35062 +#if _GL_HAS_ATTRIBUTE (pure)
35063 +# define _GL_ATTRIBUTE_PURE __attribute__ ((__pure__))
35064 +#else
35065 +# define _GL_ATTRIBUTE_PURE
35066 +#endif
35067 +
35068 +/* _GL_ATTRIBUTE_RETURNS_NONNULL declares that the function's return value is
35069 + a non-NULL pointer. */
35070 +/* Applies to: functions. */
35071 +#if _GL_HAS_ATTRIBUTE (returns_nonnull)
35072 +# define _GL_ATTRIBUTE_RETURNS_NONNULL __attribute__ ((__returns_nonnull__))
35073 +#else
35074 +# define _GL_ATTRIBUTE_RETURNS_NONNULL
35075 +#endif
35076 +
35077 +/* _GL_ATTRIBUTE_SENTINEL(pos) declares that the variadic function expects a
35078 + trailing NULL argument.
35079 + _GL_ATTRIBUTE_SENTINEL () - The last argument is NULL (requires C99).
35080 + _GL_ATTRIBUTE_SENTINEL ((N)) - The (N+1)st argument from the end is NULL. */
35081 +/* Applies to: functions. */
35082 +#if _GL_HAS_ATTRIBUTE (sentinel)
35083 +# define _GL_ATTRIBUTE_SENTINEL(pos) __attribute__ ((__sentinel__ pos))
35084 +#else
35085 +# define _GL_ATTRIBUTE_SENTINEL(pos)
35086 +#endif
35087 +
35088 +/* A helper macro. Don't use it directly. */
35089 +#if _GL_HAS_ATTRIBUTE (unused)
35090 +# define _GL_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
35091 +#else
35092 +# define _GL_ATTRIBUTE_UNUSED
35093 +#endif
35094 +
35095 +]dnl There is no _GL_ATTRIBUTE_VISIBILITY; see m4/visibility.m4 instead.
35096 +[
35097 +/* _GL_UNUSED_LABEL; declares that it is not a programming mistake if the
35098 + immediately preceding label is not used. The compiler should not warn
35099 + if the label is not used. */
35100 +/* Applies to: label (both in C and C++). */
35101 +/* Note that g++ < 4.5 does not support the '__attribute__ ((__unused__)) ;'
35102 + syntax. But clang does. */
35103 +#if !(defined __cplusplus && !_GL_GNUC_PREREQ (4, 5)) || defined __clang__
35104 +# define _GL_UNUSED_LABEL _GL_ATTRIBUTE_UNUSED
35105 +#else
35106 +# define _GL_UNUSED_LABEL
35107 +#endif
35108 +])
35109 + AH_VERBATIM([async_safe],
35110 +[/* The _GL_ASYNC_SAFE marker should be attached to functions that are
35111 + signal handlers (for signals other than SIGABRT, SIGPIPE) or can be
35112 + invoked from such signal handlers. Such functions have some restrictions:
35113 + * All functions that it calls should be marked _GL_ASYNC_SAFE as well,
35114 + or should be listed as async-signal-safe in POSIX
35115 + <https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#tag_15_04>
35116 + section 2.4.3. Note that malloc(), sprintf(), and fwrite(), in
35117 + particular, are NOT async-signal-safe.
35118 + * All memory locations (variables and struct fields) that these functions
35119 + access must be marked 'volatile'. This holds for both read and write
35120 + accesses. Otherwise the compiler might optimize away stores to and
35121 + reads from such locations that occur in the program, depending on its
35122 + data flow analysis. For example, when the program contains a loop
35123 + that is intended to inspect a variable set from within a signal handler
35124 + while (!signal_occurred)
35125 + ;
35126 + the compiler is allowed to transform this into an endless loop if the
35127 + variable 'signal_occurred' is not declared 'volatile'.
35128 + Additionally, recall that:
35129 + * A signal handler should not modify errno (except if it is a handler
35130 + for a fatal signal and ends by raising the same signal again, thus
35131 + provoking the termination of the process). If it invokes a function
35132 + that may clobber errno, it needs to save and restore the value of
35133 + errno. */
35134 +#define _GL_ASYNC_SAFE
35135 +])
35136 + AH_VERBATIM([micro_optimizations],
35137 +[/* _GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2, where
35138 + n1 and n2 are expressions without side effects, that evaluate to real
35139 + numbers (excluding NaN).
35140 + It returns
35141 + 1 if n1 > n2
35142 + 0 if n1 == n2
35143 + -1 if n1 < n2
35144 + The naïve code (n1 > n2 ? 1 : n1 < n2 ? -1 : 0) produces a conditional
35145 + jump with nearly all GCC versions up to GCC 10.
35146 + This variant (n1 < n2 ? -1 : n1 > n2) produces a conditional with many
35147 + GCC versions up to GCC 9.
35148 + The better code (n1 > n2) - (n1 < n2) from Hacker's Delight § 2-9
35149 + avoids conditional jumps in all GCC versions >= 3.4. */
35150 +#define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2)))
35151 ])
35152 + dnl Hint which direction to take regarding cross-compilation guesses:
35153 + dnl When a user installs a program on a platform they are not intimately
35154 + dnl familiar with, --enable-cross-guesses=conservative is the appropriate
35155 + dnl choice. It implements the "If we don't know, assume the worst" principle.
35156 + dnl However, when an operating system developer (on a platform which is not
35157 + dnl yet known to gnulib) builds packages for their platform, they want to
35158 + dnl expose, not hide, possible platform bugs; in this case,
35159 + dnl --enable-cross-guesses=risky is the appropriate choice.
35160 + dnl Sets the variables
35161 + dnl gl_cross_guess_normal (to be used when 'yes' is good and 'no' is bad),
35162 + dnl gl_cross_guess_inverted (to be used when 'no' is good and 'yes' is bad).
35163 + AC_ARG_ENABLE([cross-guesses],
35164 + [AS_HELP_STRING([--enable-cross-guesses={conservative|risky}],
35165 + [specify policy for cross-compilation guesses])],
35166 + [if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
35167 + AC_MSG_WARN([invalid argument supplied to --enable-cross-guesses])
35168 + enableval=conservative
35169 + fi
35170 + gl_cross_guesses="$enableval"],
35171 + [gl_cross_guesses=conservative])
35172 + if test $gl_cross_guesses = risky; then
35173 + gl_cross_guess_normal="guessing yes"
35174 + gl_cross_guess_inverted="guessing no"
35175 + else
35176 + gl_cross_guess_normal="guessing no"
35177 + gl_cross_guess_inverted="guessing yes"
35178 + fi
35179 dnl Preparation for running test programs:
35180 dnl Tell glibc to write diagnostics from -D_FORTIFY_SOURCE=2 to stderr, not
35181 dnl to /dev/tty, so they can be redirected to log files. Such diagnostics
35182 @@ -93,6 +509,16 @@ AC_DEFUN([gl_COMMON_BODY], [
35183 export LIBC_FATAL_STDERR_
35184 ])
35185
35186 +# gl_MODULE_INDICATOR_INIT_VARIABLE([variablename])
35187 +# gl_MODULE_INDICATOR_INIT_VARIABLE([variablename], [initialvalue])
35188 +# initializes the shell variable that indicates the presence of the given module
35189 +# as a C preprocessor expression.
35190 +AC_DEFUN([gl_MODULE_INDICATOR_INIT_VARIABLE],
35191 +[
35192 + GL_MODULE_INDICATOR_PREFIX[]_[$1]=m4_if([$2], , [0], [$2])
35193 + AC_SUBST(GL_MODULE_INDICATOR_PREFIX[]_[$1])
35194 +])
35195 +
35196 # gl_MODULE_INDICATOR_CONDITION
35197 # expands to a C preprocessor expression that evaluates to 1 or 0, depending
35198 # whether a gnulib module that has been requested shall be considered present
35199 @@ -105,9 +531,9 @@ m4_define([gl_MODULE_INDICATOR_CONDITION], [1])
35200 AC_DEFUN([gl_MODULE_INDICATOR_SET_VARIABLE],
35201 [
35202 gl_MODULE_INDICATOR_SET_VARIABLE_AUX(
35203 - [GNULIB_[]m4_translit([[$1]],
35204 - [abcdefghijklmnopqrstuvwxyz./-],
35205 - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])],
35206 + [GL_MODULE_INDICATOR_PREFIX[]_GNULIB_[]m4_translit([[$1]],
35207 + [abcdefghijklmnopqrstuvwxyz./-],
35208 + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])],
35209 [gl_MODULE_INDICATOR_CONDITION])
35210 ])
35211
35212 @@ -219,34 +645,20 @@ AC_DEFUN([gl_FEATURES_H],
35213 AC_SUBST([HAVE_FEATURES_H])
35214 ])
35215
35216 -# AS_VAR_IF(VAR, VALUE, [IF-MATCH], [IF-NOT-MATCH])
35217 -# ----------------------------------------------------
35218 -# Backport of autoconf-2.63b's macro.
35219 -# Remove this macro when we can assume autoconf >= 2.64.
35220 -m4_ifndef([AS_VAR_IF],
35221 -[m4_define([AS_VAR_IF],
35222 -[AS_IF([test x"AS_VAR_GET([$1])" = x""$2], [$3], [$4])])])
35223 -
35224 # gl_PROG_CC_C99
35225 # Modifies the value of the shell variable CC in an attempt to make $CC
35226 # understand ISO C99 source code.
35227 -# This is like AC_PROG_CC_C99, except that
35228 -# - AC_PROG_CC_C99 does not mix well with AC_PROG_CC_STDC
35229 -# <https://lists.gnu.org/r/bug-gnulib/2011-09/msg00367.html>,
35230 -# but many more packages use AC_PROG_CC_STDC than AC_PROG_CC_C99
35231 -# <https://lists.gnu.org/r/bug-gnulib/2011-09/msg00441.html>.
35232 -# Remaining problems:
35233 -# - When AC_PROG_CC_STDC is invoked twice, it adds the C99 enabling options
35234 -# to CC twice
35235 -# <https://lists.gnu.org/r/bug-gnulib/2011-09/msg00431.html>.
35236 -# - AC_PROG_CC_STDC is likely to change now that C11 is an ISO standard.
35237 AC_DEFUN([gl_PROG_CC_C99],
35238 [
35239 - dnl Change that version number to the minimum Autoconf version that supports
35240 - dnl mixing AC_PROG_CC_C99 calls with AC_PROG_CC_STDC calls.
35241 - m4_version_prereq([9.0],
35242 - [AC_REQUIRE([AC_PROG_CC_C99])],
35243 - [AC_REQUIRE([AC_PROG_CC_STDC])])
35244 + dnl Just use AC_PROG_CC_C99.
35245 + dnl When AC_PROG_CC_C99 and AC_PROG_CC_STDC are used together, the substituted
35246 + dnl value of CC will contain the C99 enabling options twice. But this is only
35247 + dnl a cosmetic problem.
35248 + dnl With Autoconf >= 2.70, use AC_PROG_CC since it implies AC_PROG_CC_C99;
35249 + dnl this avoids a "warning: The macro `AC_PROG_CC_C99' is obsolete."
35250 + m4_version_prereq([2.70],
35251 + [AC_REQUIRE([AC_PROG_CC])],
35252 + [AC_REQUIRE([AC_PROG_CC_C99])])
35253 ])
35254
35255 # gl_PROG_AR_RANLIB
35256 @@ -320,16 +732,16 @@ Amsterdam
35257 ])
35258
35259 # AC_C_RESTRICT
35260 -# This definition is copied from post-2.69 Autoconf and overrides the
35261 -# AC_C_RESTRICT macro from autoconf 2.60..2.69. It can be removed
35262 -# once autoconf >= 2.70 can be assumed. It's painful to check version
35263 -# numbers, and in practice this macro is more up-to-date than Autoconf
35264 -# is, so override Autoconf unconditionally.
35265 +# This definition is copied from post-2.70 Autoconf and overrides the
35266 +# AC_C_RESTRICT macro from autoconf 2.60..2.70.
35267 +m4_version_prereq([2.70.1], [], [
35268 AC_DEFUN([AC_C_RESTRICT],
35269 [AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict],
35270 [ac_cv_c_restrict=no
35271 - # The order here caters to the fact that C++ does not require restrict.
35272 - for ac_kw in __restrict __restrict__ _Restrict restrict; do
35273 + # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
35274 + # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
35275 + # Put 'restrict' last, because C++ lacks it.
35276 + for ac_kw in __restrict__ __restrict _Restrict restrict; do
35277 AC_COMPILE_IFELSE(
35278 [AC_LANG_PROGRAM(
35279 [[typedef int *int_ptr;
35280 @@ -349,14 +761,15 @@ AC_DEFUN([AC_C_RESTRICT],
35281 AH_VERBATIM([restrict],
35282 [/* Define to the equivalent of the C99 'restrict' keyword, or to
35283 nothing if this is not supported. Do not define if restrict is
35284 - supported directly. */
35285 + supported only directly. */
35286 #undef restrict
35287 -/* Work around a bug in Sun C++: it does not support _Restrict or
35288 - __restrict__, even though the corresponding Sun C compiler ends up with
35289 - "#define restrict _Restrict" or "#define restrict __restrict__" in the
35290 - previous line. Perhaps some future version of Sun C++ will work with
35291 - restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
35292 -#if defined __SUNPRO_CC && !defined __RESTRICT
35293 +/* Work around a bug in older versions of Sun C++, which did not
35294 + #define __restrict__ or support _Restrict or __restrict__
35295 + even though the corresponding Sun C compiler ended up with
35296 + "#define restrict _Restrict" or "#define restrict __restrict__"
35297 + in the previous line. This workaround can be removed once
35298 + we assume Oracle Developer Studio 12.5 (2016) or later. */
35299 +#if defined __SUNPRO_CC && !defined __RESTRICT && !defined __restrict__
35300 # define _Restrict
35301 # define __restrict__
35302 #endif])
35303 @@ -366,6 +779,7 @@ AC_DEFUN([AC_C_RESTRICT],
35304 *) AC_DEFINE_UNQUOTED([restrict], [$ac_cv_c_restrict]) ;;
35305 esac
35306 ])# AC_C_RESTRICT
35307 +])
35308
35309 # gl_BIGENDIAN
35310 # is like AC_C_BIGENDIAN, except that it can be AC_REQUIREd.
35311 @@ -376,6 +790,22 @@ AC_DEFUN([gl_BIGENDIAN],
35312 AC_C_BIGENDIAN
35313 ])
35314
35315 +# A temporary file descriptor.
35316 +# Must be less than 10, because dash 0.5.8 does not support redirections
35317 +# with multi-digit file descriptors.
35318 +m4_define([GL_TMP_FD], 9)
35319 +
35320 +# gl_SILENT(command)
35321 +# executes command, but without the normal configure output.
35322 +# This is useful when you want to invoke AC_CACHE_CHECK (or AC_CHECK_FUNC etc.)
35323 +# inside another AC_CACHE_CHECK.
35324 +AC_DEFUN([gl_SILENT],
35325 +[
35326 + exec GL_TMP_FD>&AS_MESSAGE_FD AS_MESSAGE_FD>/dev/null
35327 + $1
35328 + exec AS_MESSAGE_FD>&GL_TMP_FD GL_TMP_FD>&-
35329 +])
35330 +
35331 # gl_CACHE_VAL_SILENT(cache-id, command-to-set-it)
35332 # is like AC_CACHE_VAL(cache-id, command-to-set-it), except that it does not
35333 # output a spurious "(cached)" mark in the midst of other configure output.
35334 @@ -383,12 +813,257 @@ AC_DEFUN([gl_BIGENDIAN],
35335 # by an AC_MSG_CHECKING/AC_MSG_RESULT pair.
35336 AC_DEFUN([gl_CACHE_VAL_SILENT],
35337 [
35338 - saved_as_echo_n="$as_echo_n"
35339 - as_echo_n=':'
35340 - AC_CACHE_VAL([$1], [$2])
35341 - as_echo_n="$saved_as_echo_n"
35342 + gl_SILENT([
35343 + AC_CACHE_VAL([$1], [$2])
35344 + ])
35345 +])
35346 +
35347 +# gl_CONDITIONAL(conditional, condition)
35348 +# is like AM_CONDITIONAL(conditional, condition), except that it does not
35349 +# produce an error
35350 +# configure: error: conditional "..." was never defined.
35351 +# Usually this means the macro was only invoked conditionally.
35352 +# when only invoked conditionally. Instead, in that case, both the _TRUE
35353 +# and the _FALSE case are disabled.
35354 +AC_DEFUN([gl_CONDITIONAL],
35355 +[
35356 + pushdef([AC_CONFIG_COMMANDS_PRE], [:])dnl
35357 + AM_CONDITIONAL([$1], [$2])
35358 + popdef([AC_CONFIG_COMMANDS_PRE])dnl
35359 + if test -z "${[$1]_TRUE}" && test -z "${[$1]_FALSE}"; then
35360 + [$1]_TRUE='#'
35361 + [$1]_FALSE='#'
35362 + fi
35363 +])
35364 +
35365 +# gl_CC_ALLOW_WARNINGS
35366 +# sets and substitutes a variable GL_CFLAG_ALLOW_WARNINGS, to a $(CC) option
35367 +# that reverts a preceding '-Werror' option, if available.
35368 +# This is expected to be '-Wno-error' on gcc, clang (except clang/MSVC), xlclang
35369 +# and empty otherwise.
35370 +AC_DEFUN([gl_CC_ALLOW_WARNINGS],
35371 +[
35372 + AC_REQUIRE([AC_PROG_CC])
35373 + AC_CACHE_CHECK([for C compiler option to allow warnings],
35374 + [gl_cv_cc_wallow],
35375 + [rm -f conftest*
35376 + echo 'int dummy;' > conftest.c
35377 + AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err]) >/dev/null
35378 + AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err]) >/dev/null
35379 + dnl Test the number of error output lines, because AIX xlc accepts the
35380 + dnl option '-Wno-error', just to produce a warning
35381 + dnl "Option -Wno-error was incorrectly specified. The option will be ignored."
35382 + dnl afterwards.
35383 + if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
35384 + gl_cv_cc_wallow='-Wno-error'
35385 + else
35386 + gl_cv_cc_wallow=none
35387 + fi
35388 + rm -f conftest*
35389 + ])
35390 + case "$gl_cv_cc_wallow" in
35391 + none) GL_CFLAG_ALLOW_WARNINGS='' ;;
35392 + *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
35393 + esac
35394 + AC_SUBST([GL_CFLAG_ALLOW_WARNINGS])
35395 ])
35396
35397 -# AS_VAR_COPY was added in autoconf 2.63b
35398 -m4_define_default([AS_VAR_COPY],
35399 -[AS_LITERAL_IF([$1[]$2], [$1=$$2], [eval $1=\$$2])])
35400 +# gl_CXX_ALLOW_WARNINGS
35401 +# sets and substitutes a variable GL_CXXFLAG_ALLOW_WARNINGS, to a $(CC) option
35402 +# that reverts a preceding '-Werror' option, if available.
35403 +AC_DEFUN([gl_CXX_ALLOW_WARNINGS],
35404 +[
35405 + dnl Requires AC_PROG_CXX or gl_PROG_ANSI_CXX.
35406 + if test -n "$CXX" && test "$CXX" != no; then
35407 + AC_CACHE_CHECK([for C++ compiler option to allow warnings],
35408 + [gl_cv_cxx_wallow],
35409 + [rm -f conftest*
35410 + echo 'int dummy;' > conftest.cc
35411 + AC_TRY_COMMAND([${CXX-c++} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>conftest1.err]) >/dev/null
35412 + AC_TRY_COMMAND([${CXX-c++} $CXXFLAGS $CPPFLAGS -Wno-error -c conftest.cc 2>conftest2.err]) >/dev/null
35413 + dnl Test the number of error output lines, because AIX xlC accepts the
35414 + dnl option '-Wno-error', just to produce a warning
35415 + dnl "Option -Wno-error was incorrectly specified. The option will be ignored."
35416 + dnl afterwards.
35417 + if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
35418 + gl_cv_cxx_wallow='-Wno-error'
35419 + else
35420 + gl_cv_cxx_wallow=none
35421 + fi
35422 + rm -f conftest*
35423 + ])
35424 + case "$gl_cv_cxx_wallow" in
35425 + none) GL_CXXFLAG_ALLOW_WARNINGS='' ;;
35426 + *) GL_CXXFLAG_ALLOW_WARNINGS="$gl_cv_cxx_wallow" ;;
35427 + esac
35428 + else
35429 + GL_CXXFLAG_ALLOW_WARNINGS=''
35430 + fi
35431 + AC_SUBST([GL_CXXFLAG_ALLOW_WARNINGS])
35432 +])
35433 +
35434 +# gl_CC_GNULIB_WARNINGS
35435 +# sets and substitutes a variable GL_CFLAG_GNULIB_WARNINGS, to a $(CC) option
35436 +# set that enables or disables warnings as suitable for the Gnulib coding style.
35437 +AC_DEFUN([gl_CC_GNULIB_WARNINGS],
35438 +[
35439 + AC_REQUIRE([gl_CC_ALLOW_WARNINGS])
35440 + dnl Assume that the compiler supports -Wno-* options only if it also supports
35441 + dnl -Wno-error.
35442 + GL_CFLAG_GNULIB_WARNINGS=''
35443 + if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
35444 + dnl Enable these warning options:
35445 + dnl
35446 + dnl GCC clang
35447 + dnl -Wno-cast-qual >= 3 >= 3.9
35448 + dnl -Wno-conversion >= 3 >= 3.9
35449 + dnl -Wno-float-conversion >= 4.9 >= 3.9
35450 + dnl -Wno-float-equal >= 3 >= 3.9
35451 + dnl -Wimplicit-fallthrough >= 7 >= 3.9
35452 + dnl -Wno-pedantic >= 4.8 >= 3.9
35453 + dnl -Wno-sign-compare >= 3 >= 3.9
35454 + dnl -Wno-sign-conversion >= 4.3 >= 3.9
35455 + dnl -Wno-type-limits >= 4.3 >= 3.9
35456 + dnl -Wno-undef >= 3 >= 3.9
35457 + dnl -Wno-unsuffixed-float-constants >= 4.5
35458 + dnl -Wno-unused-function >= 3 >= 3.9
35459 + dnl -Wno-unused-parameter >= 3 >= 3.9
35460 + dnl
35461 + cat > conftest.c <<\EOF
35462 + #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
35463 + -Wno-cast-qual
35464 + -Wno-conversion
35465 + -Wno-float-equal
35466 + -Wno-sign-compare
35467 + -Wno-undef
35468 + -Wno-unused-function
35469 + -Wno-unused-parameter
35470 + #endif
35471 + #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
35472 + -Wno-float-conversion
35473 + #endif
35474 + #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
35475 + -Wimplicit-fallthrough
35476 + #endif
35477 + #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
35478 + -Wno-pedantic
35479 + #endif
35480 + #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
35481 + -Wno-sign-conversion
35482 + -Wno-type-limits
35483 + #endif
35484 + #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
35485 + -Wno-unsuffixed-float-constants
35486 + #endif
35487 +EOF
35488 + gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
35489 + if AC_TRY_EVAL([gl_command]); then
35490 + gl_options=`grep -v '#' conftest.out`
35491 + for word in $gl_options; do
35492 + GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
35493 + done
35494 + fi
35495 + rm -f conftest.c conftest.out
35496 + fi
35497 + AC_SUBST([GL_CFLAG_GNULIB_WARNINGS])
35498 +])
35499 +
35500 +dnl gl_CONDITIONAL_HEADER([foo.h])
35501 +dnl takes a shell variable GL_GENERATE_FOO_H (with value true or false) as input
35502 +dnl and produces
35503 +dnl - an AC_SUBSTed variable FOO_H that is either a file name or empty, based
35504 +dnl on whether GL_GENERATE_FOO_H is true or false,
35505 +dnl - an Automake conditional GL_GENERATE_FOO_H that evaluates to the value of
35506 +dnl the shell variable GL_GENERATE_FOO_H.
35507 +AC_DEFUN([gl_CONDITIONAL_HEADER],
35508 +[
35509 + m4_pushdef([gl_header_name], AS_TR_SH(m4_toupper($1)))
35510 + m4_pushdef([gl_generate_var], [GL_GENERATE_]AS_TR_SH(m4_toupper($1)))
35511 + m4_pushdef([gl_generate_cond], [GL_GENERATE_]AS_TR_SH(m4_toupper($1)))
35512 + case "$gl_generate_var" in
35513 + false) gl_header_name='' ;;
35514 + true)
35515 + dnl It is OK to use a .h file in lib/ from within tests/, but not vice
35516 + dnl versa.
35517 + if test -z "$gl_header_name"; then
35518 + gl_header_name="${gl_source_base_prefix}$1"
35519 + fi
35520 + ;;
35521 + *) echo "*** gl_generate_var is not set correctly" 1>&2; exit 1 ;;
35522 + esac
35523 + AC_SUBST(gl_header_name)
35524 + gl_CONDITIONAL(gl_generate_cond, [$gl_generate_var])
35525 + m4_popdef([gl_generate_cond])
35526 + m4_popdef([gl_generate_var])
35527 + m4_popdef([gl_header_name])
35528 +])
35529 +
35530 +dnl Expands to some code for use in .c programs that, on native Windows, defines
35531 +dnl the Microsoft deprecated alias function names to the underscore-prefixed
35532 +dnl actual function names. With this macro, these function names are available
35533 +dnl without linking with '-loldnames' and without generating warnings.
35534 +dnl Usage: Use it after all system header files are included.
35535 +dnl #include <...>
35536 +dnl #include <...>
35537 +dnl ]GL_MDA_DEFINES[
35538 +dnl ...
35539 +AC_DEFUN([GL_MDA_DEFINES],[
35540 +AC_REQUIRE([_GL_MDA_DEFINES])
35541 +[$gl_mda_defines]
35542 +])
35543 +AC_DEFUN([_GL_MDA_DEFINES],
35544 +[gl_mda_defines='
35545 +#if defined _WIN32 && !defined __CYGWIN__
35546 +#define access _access
35547 +#define chdir _chdir
35548 +#define chmod _chmod
35549 +#define close _close
35550 +#define creat _creat
35551 +#define dup _dup
35552 +#define dup2 _dup2
35553 +#define ecvt _ecvt
35554 +#define execl _execl
35555 +#define execle _execle
35556 +#define execlp _execlp
35557 +#define execv _execv
35558 +#define execve _execve
35559 +#define execvp _execvp
35560 +#define execvpe _execvpe
35561 +#define fcloseall _fcloseall
35562 +#define fcvt _fcvt
35563 +#define fdopen _fdopen
35564 +#define fileno _fileno
35565 +#define gcvt _gcvt
35566 +#define getcwd _getcwd
35567 +#define getpid _getpid
35568 +#define getw _getw
35569 +#define isatty _isatty
35570 +#define j0 _j0
35571 +#define j1 _j1
35572 +#define jn _jn
35573 +#define lfind _lfind
35574 +#define lsearch _lsearch
35575 +#define lseek _lseek
35576 +#define memccpy _memccpy
35577 +#define mkdir _mkdir
35578 +#define mktemp _mktemp
35579 +#define open _open
35580 +#define putenv _putenv
35581 +#define putw _putw
35582 +#define read _read
35583 +#define rmdir _rmdir
35584 +#define strdup _strdup
35585 +#define swab _swab
35586 +#define tempnam _tempnam
35587 +#define tzset _tzset
35588 +#define umask _umask
35589 +#define unlink _unlink
35590 +#define utime _utime
35591 +#define wcsdup _wcsdup
35592 +#define write _write
35593 +#define y0 _y0
35594 +#define y1 _y1
35595 +#define yn _yn
35596 +#endif
35597 +'
35598 +])
35599
35600 diff --git a/autotools/m4/gnulib-comp.m4 b/autotools/m4/gnulib-comp.m4
35601 index d859b36..33e6417 100644
35602 --- a/autotools/m4/gnulib-comp.m4
35603 +++ b/autotools/m4/gnulib-comp.m4
35604 @@ -1,9 +1,9 @@
35605 # DO NOT EDIT! GENERATED AUTOMATICALLY!
35606 -# Copyright (C) 2002-2019 Free Software Foundation, Inc.
35607 +# Copyright (C) 2002-2022 Free Software Foundation, Inc.
35608 #
35609 # This file is free software; you can redistribute it and/or modify
35610 # it under the terms of the GNU General Public License as published by
35611 -# the Free Software Foundation; either version 3 of the License, or
35612 +# the Free Software Foundation, either version 3 of the License, or
35613 # (at your option) any later version.
35614 #
35615 # This file is distributed in the hope that it will be useful,
35616 @@ -42,10 +42,17 @@ AC_DEFUN([gl_EARLY],
35617 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
35618 AC_REQUIRE([gl_PROG_AR_RANLIB])
35619
35620 + AC_REQUIRE([AM_PROG_CC_C_O])
35621 # Code from module absolute-header:
35622 # Code from module alloca-opt:
35623 # Code from module assure:
35624 # Code from module at-internal:
35625 + # Code from module attribute:
35626 + # Code from module basename-lgpl:
35627 + # Code from module builtin-expect:
35628 + # Code from module c99:
35629 + # Code from module calloc-gnu:
35630 + # Code from module calloc-posix:
35631 # Code from module canonicalize-lgpl:
35632 # Code from module chdir:
35633 # Code from module chdir-long:
35634 @@ -56,10 +63,10 @@ AC_DEFUN([gl_EARLY],
35635 # Code from module dirent:
35636 # Code from module dirfd:
35637 # Code from module dirname-lgpl:
35638 - # Code from module dosname:
35639 # Code from module double-slash-root:
35640 # Code from module dup:
35641 # Code from module dup2:
35642 + # Code from module eloop-threshold:
35643 # Code from module errno:
35644 # Code from module error:
35645 # Code from module euidaccess:
35646 @@ -79,11 +86,13 @@ AC_DEFUN([gl_EARLY],
35647 # Code from module fpieee:
35648 AC_REQUIRE([gl_FP_IEEE])
35649 # Code from module fpucw:
35650 + # Code from module free-posix:
35651 # Code from module frexp-nolibm:
35652 # Code from module frexpl-nolibm:
35653 # Code from module fstat:
35654 # Code from module fstatat:
35655 # Code from module futimens:
35656 + # Code from module gen-header:
35657 # Code from module getcwd-lgpl:
35658 # Code from module getdelim:
35659 # Code from module getdtablesize:
35660 @@ -95,6 +104,8 @@ AC_DEFUN([gl_EARLY],
35661 # Code from module gettime:
35662 # Code from module gettimeofday:
35663 # Code from module group-member:
35664 + # Code from module ialloc:
35665 + # Code from module idx:
35666 # Code from module include_next:
35667 # Code from module intprops:
35668 # Code from module inttypes:
35669 @@ -104,15 +115,18 @@ AC_DEFUN([gl_EARLY],
35670 # Code from module isnanl-nolibm:
35671 # Code from module largefile:
35672 AC_REQUIRE([AC_SYS_LARGEFILE])
35673 + AC_REQUIRE([gl_YEAR2038_EARLY])
35674 + # Code from module libc-config:
35675 # Code from module limits-h:
35676 - # Code from module localtime-buffer:
35677 # Code from module lstat:
35678 + # Code from module malloc-gnu:
35679 # Code from module malloc-posix:
35680 # Code from module malloca:
35681 # Code from module math:
35682 # Code from module memchr:
35683 # Code from module mempcpy:
35684 # Code from module memrchr:
35685 + # Code from module minmax:
35686 # Code from module mkdir:
35687 # Code from module mkdirat:
35688 # Code from module msvc-inval:
35689 @@ -125,12 +139,16 @@ AC_DEFUN([gl_EARLY],
35690 # Code from module openat-h:
35691 # Code from module opendir:
35692 # Code from module pathmax:
35693 + # Code from module pipe-posix:
35694 # Code from module printf-frexp:
35695 # Code from module printf-frexpl:
35696 # Code from module printf-safe:
35697 + # Code from module rawmemchr:
35698 # Code from module readlink:
35699 # Code from module readlinkat:
35700 + # Code from module realloc-gnu:
35701 # Code from module realloc-posix:
35702 + # Code from module reallocarray:
35703 # Code from module rename:
35704 # Code from module renameat:
35705 # Code from module renameatu:
35706 @@ -138,6 +156,7 @@ AC_DEFUN([gl_EARLY],
35707 # Code from module root-uid:
35708 # Code from module same-inode:
35709 # Code from module save-cwd:
35710 + # Code from module scratch_buffer:
35711 # Code from module signbit:
35712 # Code from module size_max:
35713 # Code from module snippet/_Noreturn:
35714 @@ -148,6 +167,8 @@ AC_DEFUN([gl_EARLY],
35715 # Code from module stat:
35716 # Code from module stat-time:
35717 # Code from module statat:
35718 + # Code from module std-gnu11:
35719 + # Code from module stdalign:
35720 # Code from module stdbool:
35721 # Code from module stddef:
35722 # Code from module stdint:
35723 @@ -176,6 +197,7 @@ AC_DEFUN([gl_EARLY],
35724 # Code from module utime-h:
35725 # Code from module utimens:
35726 # Code from module utimensat:
35727 + # Code from module vararrays:
35728 # Code from module vasnprintf:
35729 # Code from module vasprintf:
35730 # Code from module vasprintf-posix:
35731 @@ -201,103 +223,128 @@ AC_DEFUN([gl_INIT],
35732 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
35733 m4_pushdef([gl_LIBSOURCES_LIST], [])
35734 m4_pushdef([gl_LIBSOURCES_DIR], [])
35735 + m4_pushdef([GL_MACRO_PREFIX], [gl])
35736 + m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
35737 gl_COMMON
35738 gl_source_base='autotools/gnulib'
35739 + gl_source_base_prefix=
35740 gl_FUNC_ALLOCA
35741 - AC_LIBOBJ([openat-proc])
35742 + gl_CONDITIONAL_HEADER([alloca.h])
35743 + AC_PROG_MKDIR_P
35744 + AC_REQUIRE([AC_CANONICAL_HOST])
35745 + gl___BUILTIN_EXPECT
35746 + gl_FUNC_CALLOC_GNU
35747 + if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then
35748 + AC_LIBOBJ([calloc])
35749 + fi
35750 + gl_STDLIB_MODULE_INDICATOR([calloc-gnu])
35751 + gl_FUNC_CALLOC_POSIX
35752 + if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then
35753 + AC_LIBOBJ([calloc])
35754 + fi
35755 + gl_STDLIB_MODULE_INDICATOR([calloc-posix])
35756 gl_CANONICALIZE_LGPL
35757 - if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
35758 - AC_LIBOBJ([canonicalize-lgpl])
35759 - fi
35760 + gl_CONDITIONAL([GL_COND_OBJ_CANONICALIZE_LGPL],
35761 + [test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1])
35762 gl_MODULE_INDICATOR([canonicalize-lgpl])
35763 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
35764 gl_STDLIB_MODULE_INDICATOR([realpath])
35765 gl_UNISTD_MODULE_INDICATOR([chdir])
35766 gl_FUNC_CHDIR_LONG
35767 - if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
35768 - AC_LIBOBJ([chdir-long])
35769 + gl_CONDITIONAL([GL_COND_OBJ_CHDIR_LONG],
35770 + [test $gl_cv_have_unlimited_file_name_length = no])
35771 + AM_COND_IF([GL_COND_OBJ_CHDIR_LONG], [
35772 gl_PREREQ_CHDIR_LONG
35773 - fi
35774 + ])
35775 gl_CLOCK_TIME
35776 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
35777 gl_FUNC_CLOSE
35778 - if test $REPLACE_CLOSE = 1; then
35779 - AC_LIBOBJ([close])
35780 - fi
35781 + gl_CONDITIONAL([GL_COND_OBJ_CLOSE], [test $REPLACE_CLOSE = 1])
35782 gl_UNISTD_MODULE_INDICATOR([close])
35783 gl_FUNC_CLOSEDIR
35784 - if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
35785 - AC_LIBOBJ([closedir])
35786 - fi
35787 + gl_CONDITIONAL([GL_COND_OBJ_CLOSEDIR],
35788 + [test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1])
35789 gl_DIRENT_MODULE_INDICATOR([closedir])
35790 gl_DIRENT_H
35791 + gl_DIRENT_H_REQUIRE_DEFAULTS
35792 + AC_PROG_MKDIR_P
35793 gl_FUNC_DIRFD
35794 - if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
35795 - || test $REPLACE_DIRFD = 1; then
35796 - AC_LIBOBJ([dirfd])
35797 + gl_CONDITIONAL([GL_COND_OBJ_DIRFD],
35798 + [test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no || test $REPLACE_DIRFD = 1])
35799 + AM_COND_IF([GL_COND_OBJ_DIRFD], [
35800 gl_PREREQ_DIRFD
35801 - fi
35802 + ])
35803 gl_DIRENT_MODULE_INDICATOR([dirfd])
35804 - gl_DIRNAME_LGPL
35805 gl_DOUBLE_SLASH_ROOT
35806 gl_FUNC_DUP
35807 - if test $REPLACE_DUP = 1; then
35808 - AC_LIBOBJ([dup])
35809 + gl_CONDITIONAL([GL_COND_OBJ_DUP], [test $REPLACE_DUP = 1])
35810 + AM_COND_IF([GL_COND_OBJ_DUP], [
35811 gl_PREREQ_DUP
35812 - fi
35813 + ])
35814 gl_UNISTD_MODULE_INDICATOR([dup])
35815 gl_FUNC_DUP2
35816 - if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
35817 - AC_LIBOBJ([dup2])
35818 + gl_CONDITIONAL([GL_COND_OBJ_DUP2], [test $REPLACE_DUP2 = 1])
35819 + AM_COND_IF([GL_COND_OBJ_DUP2], [
35820 gl_PREREQ_DUP2
35821 - fi
35822 + ])
35823 gl_UNISTD_MODULE_INDICATOR([dup2])
35824 gl_HEADER_ERRNO_H
35825 + gl_CONDITIONAL_HEADER([errno.h])
35826 + AC_PROG_MKDIR_P
35827 gl_ERROR
35828 - if test $ac_cv_lib_error_at_line = no; then
35829 - AC_LIBOBJ([error])
35830 + gl_CONDITIONAL([GL_COND_OBJ_ERROR], [test "$ac_cv_lib_error_at_line" = no])
35831 + AM_COND_IF([GL_COND_OBJ_ERROR], [
35832 gl_PREREQ_ERROR
35833 - fi
35834 + ])
35835 m4_ifdef([AM_XGETTEXT_OPTION],
35836 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
35837 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
35838 gl_FUNC_EUIDACCESS
35839 - if test $HAVE_EUIDACCESS = 0; then
35840 - AC_LIBOBJ([euidaccess])
35841 + gl_CONDITIONAL([GL_COND_OBJ_EUIDACCESS], [test $HAVE_EUIDACCESS = 0])
35842 + AM_COND_IF([GL_COND_OBJ_EUIDACCESS], [
35843 gl_PREREQ_EUIDACCESS
35844 - fi
35845 + ])
35846 gl_UNISTD_MODULE_INDICATOR([euidaccess])
35847 AC_REQUIRE([gl_EXTERN_INLINE])
35848 gl_FUNC_FACCESSAT
35849 - if test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1; then
35850 - AC_LIBOBJ([faccessat])
35851 + gl_CONDITIONAL([GL_COND_OBJ_FACCESSAT],
35852 + [test $HAVE_FACCESSAT = 0 || test $REPLACE_FACCESSAT = 1])
35853 + AM_COND_IF([GL_COND_OBJ_FACCESSAT], [
35854 gl_PREREQ_FACCESSAT
35855 - fi
35856 + ])
35857 gl_MODULE_INDICATOR([faccessat])
35858 gl_UNISTD_MODULE_INDICATOR([faccessat])
35859 gl_FUNC_FCHDIR
35860 + gl_CONDITIONAL([GL_COND_OBJ_FCHDIR], [test $HAVE_FCHDIR = 0])
35861 + AM_COND_IF([GL_COND_OBJ_FCHDIR], [
35862 + gl_PREREQ_FCHDIR
35863 + ])
35864 gl_UNISTD_MODULE_INDICATOR([fchdir])
35865 gl_FUNC_FCNTL
35866 - if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
35867 - AC_LIBOBJ([fcntl])
35868 - fi
35869 + gl_CONDITIONAL([GL_COND_OBJ_FCNTL],
35870 + [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1])
35871 gl_FCNTL_MODULE_INDICATOR([fcntl])
35872 gl_FCNTL_H
35873 + gl_FCNTL_H_REQUIRE_DEFAULTS
35874 + AC_PROG_MKDIR_P
35875 gl_MODULE_INDICATOR([fd-safer-flag])
35876 gl_FUNC_FDOPENDIR
35877 - if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
35878 - AC_LIBOBJ([fdopendir])
35879 - fi
35880 + gl_CONDITIONAL([GL_COND_OBJ_FDOPENDIR],
35881 + [test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1])
35882 gl_DIRENT_MODULE_INDICATOR([fdopendir])
35883 gl_MODULE_INDICATOR([fdopendir])
35884 gl_FILE_NAME_CONCAT_LGPL
35885 gl_FLOAT_H
35886 - if test $REPLACE_FLOAT_LDBL = 1; then
35887 - AC_LIBOBJ([float])
35888 - fi
35889 - if test $REPLACE_ITOLD = 1; then
35890 - AC_LIBOBJ([itold])
35891 - fi
35892 + gl_CONDITIONAL_HEADER([float.h])
35893 + AC_PROG_MKDIR_P
35894 + gl_CONDITIONAL([GL_COND_OBJ_FLOAT], [test $REPLACE_FLOAT_LDBL = 1])
35895 + gl_CONDITIONAL([GL_COND_OBJ_ITOLD], [test $REPLACE_ITOLD = 1])
35896 + gl_FUNC_FREE
35897 + gl_CONDITIONAL([GL_COND_OBJ_FREE], [test $REPLACE_FREE = 1])
35898 + AM_COND_IF([GL_COND_OBJ_FREE], [
35899 + gl_PREREQ_FREE
35900 + ])
35901 + gl_STDLIB_MODULE_INDICATOR([free-posix])
35902 gl_FUNC_FREXP_NO_LIBM
35903 if test $gl_func_frexp_no_libm != yes; then
35904 AC_LIBOBJ([frexp])
35905 @@ -309,80 +356,83 @@ AC_DEFUN([gl_INIT],
35906 fi
35907 gl_MATH_MODULE_INDICATOR([frexpl])
35908 gl_FUNC_FSTAT
35909 - if test $REPLACE_FSTAT = 1; then
35910 - AC_LIBOBJ([fstat])
35911 + gl_CONDITIONAL([GL_COND_OBJ_FSTAT], [test $REPLACE_FSTAT = 1])
35912 + AM_COND_IF([GL_COND_OBJ_FSTAT], [
35913 case "$host_os" in
35914 mingw*)
35915 AC_LIBOBJ([stat-w32])
35916 ;;
35917 esac
35918 gl_PREREQ_FSTAT
35919 - fi
35920 + ])
35921 gl_SYS_STAT_MODULE_INDICATOR([fstat])
35922 gl_FUNC_FSTATAT
35923 - if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
35924 - AC_LIBOBJ([fstatat])
35925 - fi
35926 + gl_CONDITIONAL([GL_COND_OBJ_FSTATAT],
35927 + [test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1])
35928 gl_SYS_STAT_MODULE_INDICATOR([fstatat])
35929 gl_FUNC_FUTIMENS
35930 - if test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1; then
35931 - AC_LIBOBJ([futimens])
35932 - fi
35933 + gl_CONDITIONAL([GL_COND_OBJ_FUTIMENS],
35934 + [test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1])
35935 gl_SYS_STAT_MODULE_INDICATOR([futimens])
35936 gl_FUNC_GETCWD_LGPL
35937 - if test $REPLACE_GETCWD = 1; then
35938 - AC_LIBOBJ([getcwd-lgpl])
35939 - fi
35940 + gl_CONDITIONAL([GL_COND_OBJ_GETCWD_LGPL], [test $REPLACE_GETCWD = 1])
35941 gl_UNISTD_MODULE_INDICATOR([getcwd])
35942 gl_FUNC_GETDELIM
35943 - if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
35944 - AC_LIBOBJ([getdelim])
35945 + gl_CONDITIONAL([GL_COND_OBJ_GETDELIM],
35946 + [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1])
35947 + AM_COND_IF([GL_COND_OBJ_GETDELIM], [
35948 gl_PREREQ_GETDELIM
35949 - fi
35950 + ])
35951 gl_STDIO_MODULE_INDICATOR([getdelim])
35952 gl_FUNC_GETDTABLESIZE
35953 - if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
35954 - AC_LIBOBJ([getdtablesize])
35955 + gl_CONDITIONAL([GL_COND_OBJ_GETDTABLESIZE],
35956 + [test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1])
35957 + AM_COND_IF([GL_COND_OBJ_GETDTABLESIZE], [
35958 gl_PREREQ_GETDTABLESIZE
35959 - fi
35960 + ])
35961 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
35962 gl_FUNC_GETGROUPS
35963 - if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
35964 - AC_LIBOBJ([getgroups])
35965 - fi
35966 + gl_CONDITIONAL([GL_COND_OBJ_GETGROUPS],
35967 + [test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1])
35968 gl_UNISTD_MODULE_INDICATOR([getgroups])
35969 gl_FUNC_GETLINE
35970 - if test $REPLACE_GETLINE = 1; then
35971 - AC_LIBOBJ([getline])
35972 + gl_CONDITIONAL([GL_COND_OBJ_GETLINE], [test $REPLACE_GETLINE = 1])
35973 + AM_COND_IF([GL_COND_OBJ_GETLINE], [
35974 gl_PREREQ_GETLINE
35975 - fi
35976 + ])
35977 gl_STDIO_MODULE_INDICATOR([getline])
35978 gl_FUNC_GETOPT_POSIX
35979 - if test $REPLACE_GETOPT = 1; then
35980 - AC_LIBOBJ([getopt])
35981 - AC_LIBOBJ([getopt1])
35982 - dnl Arrange for unistd.h to include getopt.h.
35983 - GNULIB_GL_UNISTD_H_GETOPT=1
35984 - fi
35985 - AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
35986 + gl_CONDITIONAL_HEADER([getopt.h])
35987 + gl_CONDITIONAL_HEADER([getopt-cdefs.h])
35988 + AC_PROG_MKDIR_P
35989 + gl_CONDITIONAL([GL_COND_OBJ_GETOPT], [test $REPLACE_GETOPT = 1])
35990 + AM_COND_IF([GL_COND_OBJ_GETOPT], [
35991 + dnl Define the substituted variable GNULIB_UNISTD_H_GETOPT to 1.
35992 + gl_UNISTD_H_REQUIRE_DEFAULTS
35993 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT], [1])
35994 + ])
35995 + gl_UNISTD_MODULE_INDICATOR([getopt-posix])
35996 gl_FUNC_GETPROGNAME
35997 AC_SUBST([LIBINTL])
35998 AC_SUBST([LTLIBINTL])
35999 gl_GETTIME
36000 gl_FUNC_GETTIMEOFDAY
36001 - if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
36002 - AC_LIBOBJ([gettimeofday])
36003 + gl_CONDITIONAL([GL_COND_OBJ_GETTIMEOFDAY],
36004 + [test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1])
36005 + AM_COND_IF([GL_COND_OBJ_GETTIMEOFDAY], [
36006 gl_PREREQ_GETTIMEOFDAY
36007 - fi
36008 + ])
36009 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
36010 gl_FUNC_GROUP_MEMBER
36011 - if test $HAVE_GROUP_MEMBER = 0; then
36012 - AC_LIBOBJ([group-member])
36013 + gl_CONDITIONAL([GL_COND_OBJ_GROUP_MEMBER], [test $HAVE_GROUP_MEMBER = 0])
36014 + AM_COND_IF([GL_COND_OBJ_GROUP_MEMBER], [
36015 gl_PREREQ_GROUP_MEMBER
36016 - fi
36017 + ])
36018 gl_UNISTD_MODULE_INDICATOR([group-member])
36019 gl_INTTYPES_H
36020 gl_INTTYPES_INCOMPLETE
36021 + gl_INTTYPES_H_REQUIRE_DEFAULTS
36022 + AC_PROG_MKDIR_P
36023 gl_FUNC_ISNAND_NO_LIBM
36024 if test $gl_func_isnand_no_libm != yes; then
36025 AC_LIBOBJ([isnand])
36026 @@ -399,107 +449,132 @@ AC_DEFUN([gl_INIT],
36027 gl_PREREQ_ISNANL
36028 fi
36029 AC_REQUIRE([gl_LARGEFILE])
36030 + gl___INLINE
36031 gl_LIMITS_H
36032 - AC_REQUIRE([gl_LOCALTIME_BUFFER_DEFAULTS])
36033 - AC_LIBOBJ([localtime-buffer])
36034 + gl_CONDITIONAL_HEADER([limits.h])
36035 + AC_PROG_MKDIR_P
36036 gl_FUNC_LSTAT
36037 - if test $REPLACE_LSTAT = 1; then
36038 - AC_LIBOBJ([lstat])
36039 + gl_CONDITIONAL([GL_COND_OBJ_LSTAT], [test $REPLACE_LSTAT = 1])
36040 + AM_COND_IF([GL_COND_OBJ_LSTAT], [
36041 gl_PREREQ_LSTAT
36042 - fi
36043 + ])
36044 gl_SYS_STAT_MODULE_INDICATOR([lstat])
36045 - gl_FUNC_MALLOC_POSIX
36046 - if test $REPLACE_MALLOC = 1; then
36047 + gl_FUNC_MALLOC_GNU
36048 + if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
36049 + AC_LIBOBJ([malloc])
36050 + fi
36051 + gl_STDLIB_MODULE_INDICATOR([malloc-gnu])
36052 + AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
36053 + if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
36054 AC_LIBOBJ([malloc])
36055 fi
36056 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
36057 gl_MALLOCA
36058 gl_MATH_H
36059 + gl_MATH_H_REQUIRE_DEFAULTS
36060 + AC_PROG_MKDIR_P
36061 gl_FUNC_MEMCHR
36062 - if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
36063 - AC_LIBOBJ([memchr])
36064 + gl_CONDITIONAL([GL_COND_OBJ_MEMCHR], [test $REPLACE_MEMCHR = 1])
36065 + AM_COND_IF([GL_COND_OBJ_MEMCHR], [
36066 gl_PREREQ_MEMCHR
36067 - fi
36068 + ])
36069 gl_STRING_MODULE_INDICATOR([memchr])
36070 gl_FUNC_MEMPCPY
36071 - if test $HAVE_MEMPCPY = 0; then
36072 - AC_LIBOBJ([mempcpy])
36073 + gl_CONDITIONAL([GL_COND_OBJ_MEMPCPY], [test $HAVE_MEMPCPY = 0])
36074 + AM_COND_IF([GL_COND_OBJ_MEMPCPY], [
36075 gl_PREREQ_MEMPCPY
36076 - fi
36077 + ])
36078 gl_STRING_MODULE_INDICATOR([mempcpy])
36079 gl_FUNC_MEMRCHR
36080 - if test $ac_cv_func_memrchr = no; then
36081 - AC_LIBOBJ([memrchr])
36082 + gl_CONDITIONAL([GL_COND_OBJ_MEMRCHR], [test $ac_cv_func_memrchr = no])
36083 + AM_COND_IF([GL_COND_OBJ_MEMRCHR], [
36084 gl_PREREQ_MEMRCHR
36085 - fi
36086 + ])
36087 gl_STRING_MODULE_INDICATOR([memrchr])
36088 + gl_MINMAX
36089 gl_FUNC_MKDIR
36090 - if test $REPLACE_MKDIR = 1; then
36091 - AC_LIBOBJ([mkdir])
36092 - fi
36093 + gl_CONDITIONAL([GL_COND_OBJ_MKDIR], [test $REPLACE_MKDIR = 1])
36094 + gl_SYS_STAT_MODULE_INDICATOR([mkdir])
36095 gl_FUNC_MKDIRAT
36096 - if test $HAVE_MKDIRAT = 0; then
36097 - AC_LIBOBJ([mkdirat])
36098 + gl_CONDITIONAL([GL_COND_OBJ_MKDIRAT], [test $HAVE_MKDIRAT = 0])
36099 + AM_COND_IF([GL_COND_OBJ_MKDIRAT], [
36100 gl_PREREQ_MKDIRAT
36101 - fi
36102 + ])
36103 gl_SYS_STAT_MODULE_INDICATOR([mkdirat])
36104 AC_REQUIRE([gl_MSVC_INVAL])
36105 - if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
36106 - AC_LIBOBJ([msvc-inval])
36107 - fi
36108 + gl_CONDITIONAL([GL_COND_OBJ_MSVC_INVAL],
36109 + [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
36110 AC_REQUIRE([gl_MSVC_NOTHROW])
36111 - if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
36112 - AC_LIBOBJ([msvc-nothrow])
36113 - fi
36114 + gl_CONDITIONAL([GL_COND_OBJ_MSVC_NOTHROW],
36115 + [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
36116 gl_MODULE_INDICATOR([msvc-nothrow])
36117 gl_MULTIARCH
36118 gl_FUNC_OPEN
36119 - if test $REPLACE_OPEN = 1; then
36120 - AC_LIBOBJ([open])
36121 + gl_CONDITIONAL([GL_COND_OBJ_OPEN], [test $REPLACE_OPEN = 1])
36122 + AM_COND_IF([GL_COND_OBJ_OPEN], [
36123 gl_PREREQ_OPEN
36124 - fi
36125 + ])
36126 gl_FCNTL_MODULE_INDICATOR([open])
36127 gl_FUNC_OPENAT
36128 - if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
36129 - AC_LIBOBJ([openat])
36130 + gl_CONDITIONAL([GL_COND_OBJ_OPENAT],
36131 + [test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1])
36132 + AM_COND_IF([GL_COND_OBJ_OPENAT], [
36133 gl_PREREQ_OPENAT
36134 - fi
36135 + ])
36136 gl_MODULE_INDICATOR([openat]) dnl for lib/getcwd.c
36137 gl_FCNTL_MODULE_INDICATOR([openat])
36138 gl_FUNC_OPENDIR
36139 - if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
36140 - AC_LIBOBJ([opendir])
36141 - fi
36142 + gl_CONDITIONAL([GL_COND_OBJ_OPENDIR],
36143 + [test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1])
36144 gl_DIRENT_MODULE_INDICATOR([opendir])
36145 gl_PATHMAX
36146 + gl_FUNC_PIPE
36147 + gl_CONDITIONAL([GL_COND_OBJ_PIPE], [test $HAVE_PIPE = 0])
36148 + gl_UNISTD_MODULE_INDICATOR([pipe])
36149 gl_FUNC_PRINTF_FREXP
36150 gl_FUNC_PRINTF_FREXPL
36151 m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
36152 + gl_FUNC_RAWMEMCHR
36153 + gl_CONDITIONAL([GL_COND_OBJ_RAWMEMCHR], [test $HAVE_RAWMEMCHR = 0])
36154 + AM_COND_IF([GL_COND_OBJ_RAWMEMCHR], [
36155 + gl_PREREQ_RAWMEMCHR
36156 + ])
36157 + gl_STRING_MODULE_INDICATOR([rawmemchr])
36158 gl_FUNC_READLINK
36159 - if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
36160 - AC_LIBOBJ([readlink])
36161 + gl_CONDITIONAL([GL_COND_OBJ_READLINK],
36162 + [test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1])
36163 + AM_COND_IF([GL_COND_OBJ_READLINK], [
36164 gl_PREREQ_READLINK
36165 - fi
36166 + ])
36167 gl_UNISTD_MODULE_INDICATOR([readlink])
36168 gl_FUNC_READLINKAT
36169 - if test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1; then
36170 - AC_LIBOBJ([readlinkat])
36171 - fi
36172 + gl_CONDITIONAL([GL_COND_OBJ_READLINKAT],
36173 + [test $HAVE_READLINKAT = 0 || test $REPLACE_READLINKAT = 1])
36174 gl_UNISTD_MODULE_INDICATOR([readlinkat])
36175 + gl_FUNC_REALLOC_GNU
36176 + if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
36177 + AC_LIBOBJ([realloc])
36178 + fi
36179 + gl_STDLIB_MODULE_INDICATOR([realloc-gnu])
36180 gl_FUNC_REALLOC_POSIX
36181 - if test $REPLACE_REALLOC = 1; then
36182 + if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
36183 AC_LIBOBJ([realloc])
36184 fi
36185 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
36186 + gl_FUNC_REALLOCARRAY
36187 + gl_CONDITIONAL([GL_COND_OBJ_REALLOCARRAY],
36188 + [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1])
36189 + AM_COND_IF([GL_COND_OBJ_REALLOCARRAY], [
36190 + gl_PREREQ_REALLOCARRAY
36191 + ])
36192 + gl_MODULE_INDICATOR([reallocarray])
36193 + gl_STDLIB_MODULE_INDICATOR([reallocarray])
36194 gl_FUNC_RENAME
36195 - if test $REPLACE_RENAME = 1; then
36196 - AC_LIBOBJ([rename])
36197 - fi
36198 + gl_CONDITIONAL([GL_COND_OBJ_RENAME], [test $REPLACE_RENAME = 1])
36199 gl_STDIO_MODULE_INDICATOR([rename])
36200 gl_FUNC_RENAMEAT
36201 - if test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1; then
36202 - AC_LIBOBJ([renameat])
36203 - fi
36204 + gl_CONDITIONAL([GL_COND_OBJ_RENAMEAT],
36205 + [test $HAVE_RENAMEAT = 0 || test $REPLACE_RENAMEAT = 1])
36206 if test $HAVE_RENAMEAT = 0; then
36207 AC_LIBOBJ([at-func2])
36208 fi
36209 @@ -509,48 +584,84 @@ AC_DEFUN([gl_INIT],
36210 AC_LIBOBJ([at-func2])
36211 fi
36212 gl_FUNC_RMDIR
36213 - if test $REPLACE_RMDIR = 1; then
36214 - AC_LIBOBJ([rmdir])
36215 - fi
36216 + gl_CONDITIONAL([GL_COND_OBJ_RMDIR], [test $REPLACE_RMDIR = 1])
36217 gl_UNISTD_MODULE_INDICATOR([rmdir])
36218 gl_SAVE_CWD
36219 + AC_PROG_MKDIR_P
36220 gl_SIGNBIT
36221 - if test $REPLACE_SIGNBIT = 1; then
36222 - AC_LIBOBJ([signbitf])
36223 - AC_LIBOBJ([signbitd])
36224 - AC_LIBOBJ([signbitl])
36225 - fi
36226 + gl_CONDITIONAL([GL_COND_OBJ_SIGNBIT3], [test $REPLACE_SIGNBIT = 1])
36227 gl_MATH_MODULE_INDICATOR([signbit])
36228 gl_SIZE_MAX
36229 gt_TYPE_SSIZE_T
36230 gl_FUNC_STAT
36231 - if test $REPLACE_STAT = 1; then
36232 - AC_LIBOBJ([stat])
36233 + gl_CONDITIONAL([GL_COND_OBJ_STAT], [test $REPLACE_STAT = 1])
36234 + AM_COND_IF([GL_COND_OBJ_STAT], [
36235 case "$host_os" in
36236 mingw*)
36237 AC_LIBOBJ([stat-w32])
36238 ;;
36239 esac
36240 gl_PREREQ_STAT
36241 - fi
36242 + ])
36243 gl_SYS_STAT_MODULE_INDICATOR([stat])
36244 gl_STAT_TIME
36245 gl_STAT_BIRTHTIME
36246 gl_MODULE_INDICATOR([statat]) dnl for lib/openat.h
36247 - AM_STDBOOL_H
36248 + gl_STDALIGN_H
36249 + gl_CONDITIONAL_HEADER([stdalign.h])
36250 + AC_PROG_MKDIR_P
36251 + gl_STDBOOL_H
36252 + gl_CONDITIONAL_HEADER([stdbool.h])
36253 + AC_PROG_MKDIR_P
36254 gl_STDDEF_H
36255 + gl_STDDEF_H_REQUIRE_DEFAULTS
36256 + gl_CONDITIONAL_HEADER([stddef.h])
36257 + AC_PROG_MKDIR_P
36258 gl_STDINT_H
36259 + gl_CONDITIONAL_HEADER([stdint.h])
36260 + dnl Because of gl_REPLACE_LIMITS_H:
36261 + gl_CONDITIONAL_HEADER([limits.h])
36262 + AC_PROG_MKDIR_P
36263 gl_STDIO_H
36264 + gl_STDIO_H_REQUIRE_DEFAULTS
36265 + AC_PROG_MKDIR_P
36266 + gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1])
36267 + gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1])
36268 + dnl No need to create extra modules for these functions. Everyone who uses
36269 + dnl <stdio.h> likely needs them.
36270 + gl_STDIO_MODULE_INDICATOR([fscanf])
36271 + gl_MODULE_INDICATOR([fscanf])
36272 + gl_STDIO_MODULE_INDICATOR([scanf])
36273 + gl_MODULE_INDICATOR([scanf])
36274 + gl_STDIO_MODULE_INDICATOR([fgetc])
36275 + gl_STDIO_MODULE_INDICATOR([getc])
36276 + gl_STDIO_MODULE_INDICATOR([getchar])
36277 + gl_STDIO_MODULE_INDICATOR([fgets])
36278 + gl_STDIO_MODULE_INDICATOR([fread])
36279 + dnl No need to create extra modules for these functions. Everyone who uses
36280 + dnl <stdio.h> likely needs them.
36281 + gl_STDIO_MODULE_INDICATOR([fprintf])
36282 + gl_STDIO_MODULE_INDICATOR([printf])
36283 + gl_STDIO_MODULE_INDICATOR([vfprintf])
36284 + gl_STDIO_MODULE_INDICATOR([vprintf])
36285 + gl_STDIO_MODULE_INDICATOR([fputc])
36286 + gl_STDIO_MODULE_INDICATOR([putc])
36287 + gl_STDIO_MODULE_INDICATOR([putchar])
36288 + gl_STDIO_MODULE_INDICATOR([fputs])
36289 + gl_STDIO_MODULE_INDICATOR([puts])
36290 + gl_STDIO_MODULE_INDICATOR([fwrite])
36291 gl_STDLIB_H
36292 + gl_STDLIB_H_REQUIRE_DEFAULTS
36293 + AC_PROG_MKDIR_P
36294 gl_STRCASE
36295 - if test $HAVE_STRCASECMP = 0; then
36296 - AC_LIBOBJ([strcasecmp])
36297 + gl_CONDITIONAL([GL_COND_OBJ_STRCASECMP], [test $HAVE_STRCASECMP = 0])
36298 + AM_COND_IF([GL_COND_OBJ_STRCASECMP], [
36299 gl_PREREQ_STRCASECMP
36300 - fi
36301 - if test $HAVE_STRNCASECMP = 0; then
36302 - AC_LIBOBJ([strncasecmp])
36303 + ])
36304 + gl_CONDITIONAL([GL_COND_OBJ_STRNCASECMP], [test $HAVE_STRNCASECMP = 0])
36305 + AM_COND_IF([GL_COND_OBJ_STRNCASECMP], [
36306 gl_PREREQ_STRNCASECMP
36307 - fi
36308 + ])
36309 gl_FUNC_STRCASESTR_SIMPLE
36310 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
36311 AC_LIBOBJ([strcasestr])
36312 @@ -558,74 +669,83 @@ AC_DEFUN([gl_INIT],
36313 fi
36314 gl_STRING_MODULE_INDICATOR([strcasestr])
36315 gl_FUNC_STRDUP_POSIX
36316 - if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
36317 - AC_LIBOBJ([strdup])
36318 + gl_CONDITIONAL([GL_COND_OBJ_STRDUP], [test $REPLACE_STRDUP = 1])
36319 + AM_COND_IF([GL_COND_OBJ_STRDUP], [
36320 gl_PREREQ_STRDUP
36321 - fi
36322 + ])
36323 gl_STRING_MODULE_INDICATOR([strdup])
36324 gl_FUNC_STRERROR
36325 - if test $REPLACE_STRERROR = 1; then
36326 - AC_LIBOBJ([strerror])
36327 - fi
36328 + gl_CONDITIONAL([GL_COND_OBJ_STRERROR], [test $REPLACE_STRERROR = 1])
36329 gl_MODULE_INDICATOR([strerror])
36330 gl_STRING_MODULE_INDICATOR([strerror])
36331 AC_REQUIRE([gl_HEADER_ERRNO_H])
36332 AC_REQUIRE([gl_FUNC_STRERROR_0])
36333 - if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
36334 - AC_LIBOBJ([strerror-override])
36335 + gl_CONDITIONAL([GL_COND_OBJ_STRERROR_OVERRIDE],
36336 + [test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1])
36337 + AM_COND_IF([GL_COND_OBJ_STRERROR_OVERRIDE], [
36338 gl_PREREQ_SYS_H_WINSOCK2
36339 - fi
36340 - gl_HEADER_STRING_H
36341 - gl_HEADER_STRINGS_H
36342 + ])
36343 + gl_STRING_H
36344 + gl_STRING_H_REQUIRE_DEFAULTS
36345 + AC_PROG_MKDIR_P
36346 + gl_STRINGS_H
36347 + gl_STRINGS_H_REQUIRE_DEFAULTS
36348 + AC_PROG_MKDIR_P
36349 gl_FUNC_STRNCAT
36350 - if test $REPLACE_STRNCAT = 1; then
36351 - AC_LIBOBJ([strncat])
36352 + gl_CONDITIONAL([GL_COND_OBJ_STRNCAT], [test $REPLACE_STRNCAT = 1])
36353 + AM_COND_IF([GL_COND_OBJ_STRNCAT], [
36354 gl_PREREQ_STRNCAT
36355 - fi
36356 + ])
36357 gl_STRING_MODULE_INDICATOR([strncat])
36358 gl_FUNC_SYMLINK
36359 - if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
36360 - AC_LIBOBJ([symlink])
36361 - fi
36362 + gl_CONDITIONAL([GL_COND_OBJ_SYMLINK],
36363 + [test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1])
36364 gl_UNISTD_MODULE_INDICATOR([symlink])
36365 gl_FUNC_SYMLINKAT
36366 - if test $HAVE_SYMLINKAT = 0 || test $REPLACE_SYMLINKAT = 1; then
36367 - AC_LIBOBJ([symlinkat])
36368 - fi
36369 + gl_CONDITIONAL([GL_COND_OBJ_SYMLINKAT],
36370 + [test $HAVE_SYMLINKAT = 0 || test $REPLACE_SYMLINKAT = 1])
36371 gl_UNISTD_MODULE_INDICATOR([symlinkat])
36372 - gl_HEADER_SYS_STAT_H
36373 + gl_SYS_STAT_H
36374 + gl_SYS_STAT_H_REQUIRE_DEFAULTS
36375 AC_PROG_MKDIR_P
36376 - gl_HEADER_SYS_TIME_H
36377 + gl_SYS_TIME_H
36378 + gl_SYS_TIME_H_REQUIRE_DEFAULTS
36379 AC_PROG_MKDIR_P
36380 gl_SYS_TYPES_H
36381 + gl_SYS_TYPES_H_REQUIRE_DEFAULTS
36382 + AC_PROG_MKDIR_P
36383 + gl_TIME_H
36384 + gl_TIME_H_REQUIRE_DEFAULTS
36385 AC_PROG_MKDIR_P
36386 - gl_HEADER_TIME_H
36387 gl_TIMESPEC
36388 gl_UNISTD_H
36389 + gl_UNISTD_H_REQUIRE_DEFAULTS
36390 + AC_PROG_MKDIR_P
36391 gl_UNISTD_SAFER
36392 gl_FUNC_UNLINK
36393 - if test $REPLACE_UNLINK = 1; then
36394 - AC_LIBOBJ([unlink])
36395 - fi
36396 + gl_CONDITIONAL([GL_COND_OBJ_UNLINK], [test $REPLACE_UNLINK = 1])
36397 gl_UNISTD_MODULE_INDICATOR([unlink])
36398 gl_FUNC_UNLINKAT
36399 - if test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1; then
36400 - AC_LIBOBJ([unlinkat])
36401 - fi
36402 + gl_CONDITIONAL([GL_COND_OBJ_UNLINKAT],
36403 + [test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1])
36404 gl_UNISTD_MODULE_INDICATOR([unlinkat])
36405 gl_FUNC_UTIME
36406 - if test $HAVE_UTIME = 0 || test $REPLACE_UTIME = 1; then
36407 - AC_LIBOBJ([utime])
36408 + gl_CONDITIONAL([GL_COND_OBJ_UTIME],
36409 + [test $HAVE_UTIME = 0 || test $REPLACE_UTIME = 1])
36410 + AM_COND_IF([GL_COND_OBJ_UTIME], [
36411 gl_PREREQ_UTIME
36412 - fi
36413 + ])
36414 gl_UTIME_MODULE_INDICATOR([utime])
36415 gl_UTIME_H
36416 + gl_UTIME_H_REQUIRE_DEFAULTS
36417 + AC_PROG_MKDIR_P
36418 gl_UTIMENS
36419 gl_FUNC_UTIMENSAT
36420 - if test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1; then
36421 - AC_LIBOBJ([utimensat])
36422 - fi
36423 + gl_CONDITIONAL([GL_COND_OBJ_UTIMENSAT],
36424 + [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1])
36425 gl_SYS_STAT_MODULE_INDICATOR([utimensat])
36426 + AC_C_VARARRAYS
36427 + AC_REQUIRE([AC_C_RESTRICT])
36428 gl_FUNC_VASNPRINTF
36429 gl_FUNC_VASPRINTF
36430 gl_STDIO_MODULE_INDICATOR([vasprintf])
36431 @@ -634,7 +754,11 @@ AC_DEFUN([gl_INIT],
36432 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
36433 gl_FUNC_VASPRINTF_POSIX
36434 gl_WCHAR_H
36435 + gl_WCHAR_H_REQUIRE_DEFAULTS
36436 + AC_PROG_MKDIR_P
36437 gl_XALLOC
36438 + gl_MODULE_INDICATOR([xalloc])
36439 + gl_MODULE_INDICATOR([xalloc-die])
36440 gl_XSIZE
36441 # End of code from modules
36442 m4_ifval(gl_LIBSOURCES_LIST, [
36443 @@ -648,6 +772,8 @@ AC_DEFUN([gl_INIT],
36444 m4_if(m4_sysval, [0], [],
36445 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
36446 ])
36447 + m4_popdef([GL_MODULE_INDICATOR_PREFIX])
36448 + m4_popdef([GL_MACRO_PREFIX])
36449 m4_popdef([gl_LIBSOURCES_DIR])
36450 m4_popdef([gl_LIBSOURCES_LIST])
36451 m4_popdef([AC_LIBSOURCES])
36452 @@ -656,16 +782,28 @@ AC_DEFUN([gl_INIT],
36453 AC_CONFIG_COMMANDS_PRE([
36454 gl_libobjs=
36455 gl_ltlibobjs=
36456 + gl_libobjdeps=
36457 if test -n "$gl_LIBOBJS"; then
36458 # Remove the extension.
36459 +changequote(,)dnl
36460 sed_drop_objext='s/\.o$//;s/\.obj$//'
36461 + sed_dirname1='s,//*,/,g'
36462 + sed_dirname2='s,\(.\)/$,\1,'
36463 + sed_dirname3='s,^[^/]*$,.,'
36464 + sed_dirname4='s,\(.\)/[^/]*$,\1,'
36465 + sed_basename1='s,.*/,,'
36466 +changequote([, ])dnl
36467 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
36468 gl_libobjs="$gl_libobjs $i.$ac_objext"
36469 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
36470 + i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
36471 + i_base=`echo "$i" | sed -e "$sed_basename1"`
36472 + gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
36473 done
36474 fi
36475 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
36476 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
36477 + AC_SUBST([gl_LIBOBJDEPS], [$gl_libobjdeps])
36478 ])
36479 gltests_libdeps=
36480 gltests_ltlibdeps=
36481 @@ -674,8 +812,11 @@ AC_DEFUN([gl_INIT],
36482 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
36483 m4_pushdef([gltests_LIBSOURCES_LIST], [])
36484 m4_pushdef([gltests_LIBSOURCES_DIR], [])
36485 + m4_pushdef([GL_MACRO_PREFIX], [gltests])
36486 + m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
36487 gl_COMMON
36488 gl_source_base='tests'
36489 + gl_source_base_prefix=
36490 changequote(,)dnl
36491 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
36492 changequote([, ])dnl
36493 @@ -694,6 +835,8 @@ changequote([, ])dnl
36494 m4_if(m4_sysval, [0], [],
36495 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
36496 ])
36497 + m4_popdef([GL_MODULE_INDICATOR_PREFIX])
36498 + m4_popdef([GL_MACRO_PREFIX])
36499 m4_popdef([gltests_LIBSOURCES_DIR])
36500 m4_popdef([gltests_LIBSOURCES_LIST])
36501 m4_popdef([AC_LIBSOURCES])
36502 @@ -702,17 +845,30 @@ changequote([, ])dnl
36503 AC_CONFIG_COMMANDS_PRE([
36504 gltests_libobjs=
36505 gltests_ltlibobjs=
36506 + gltests_libobjdeps=
36507 if test -n "$gltests_LIBOBJS"; then
36508 # Remove the extension.
36509 +changequote(,)dnl
36510 sed_drop_objext='s/\.o$//;s/\.obj$//'
36511 + sed_dirname1='s,//*,/,g'
36512 + sed_dirname2='s,\(.\)/$,\1,'
36513 + sed_dirname3='s,^[^/]*$,.,'
36514 + sed_dirname4='s,\(.\)/[^/]*$,\1,'
36515 + sed_basename1='s,.*/,,'
36516 +changequote([, ])dnl
36517 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
36518 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
36519 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
36520 + i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
36521 + i_base=`echo "$i" | sed -e "$sed_basename1"`
36522 + gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
36523 done
36524 fi
36525 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
36526 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
36527 + AC_SUBST([gltests_LIBOBJDEPS], [$gltests_libobjdeps])
36528 ])
36529 + AC_REQUIRE([gl_CC_GNULIB_WARNINGS])
36530 LIBGNU_LIBDEPS="$gl_libdeps"
36531 AC_SUBST([LIBGNU_LIBDEPS])
36532 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
36533 @@ -784,9 +940,13 @@ AC_DEFUN([gl_FILE_LIST], [
36534 lib/assure.h
36535 lib/at-func.c
36536 lib/at-func2.c
36537 + lib/attribute.h
36538 lib/basename-lgpl.c
36539 + lib/basename-lgpl.h
36540 lib/c++defs.h
36541 + lib/calloc.c
36542 lib/canonicalize-lgpl.c
36543 + lib/cdefs.h
36544 lib/chdir-long.c
36545 lib/chdir-long.h
36546 lib/cloexec.c
36547 @@ -798,11 +958,11 @@ AC_DEFUN([gl_FILE_LIST], [
36548 lib/dirfd.c
36549 lib/dirname-lgpl.c
36550 lib/dirname.h
36551 - lib/dosname.h
36552 lib/dup-safer-flag.c
36553 lib/dup-safer.c
36554 lib/dup.c
36555 lib/dup2.c
36556 + lib/eloop-threshold.h
36557 lib/errno.in.h
36558 lib/error.c
36559 lib/error.h
36560 @@ -825,6 +985,7 @@ AC_DEFUN([gl_FILE_LIST], [
36561 lib/float.c
36562 lib/float.in.h
36563 lib/fpucw.h
36564 + lib/free.c
36565 lib/frexp.c
36566 lib/frexpl.c
36567 lib/fstat.c
36568 @@ -850,6 +1011,9 @@ AC_DEFUN([gl_FILE_LIST], [
36569 lib/gettime.c
36570 lib/gettimeofday.c
36571 lib/group-member.c
36572 + lib/ialloc.c
36573 + lib/ialloc.h
36574 + lib/idx.h
36575 lib/intprops.h
36576 lib/inttypes.in.h
36577 lib/isnan.c
36578 @@ -860,11 +1024,15 @@ AC_DEFUN([gl_FILE_LIST], [
36579 lib/isnanl-nolibm.h
36580 lib/isnanl.c
36581 lib/itold.c
36582 + lib/libc-config.h
36583 lib/limits.in.h
36584 - lib/localtime-buffer.c
36585 - lib/localtime-buffer.h
36586 lib/lstat.c
36587 lib/malloc.c
36588 + lib/malloc/scratch_buffer.h
36589 + lib/malloc/scratch_buffer_dupfree.c
36590 + lib/malloc/scratch_buffer_grow.c
36591 + lib/malloc/scratch_buffer_grow_preserve.c
36592 + lib/malloc/scratch_buffer_set_array_size.c
36593 lib/malloca.c
36594 lib/malloca.h
36595 lib/math.c
36596 @@ -873,6 +1041,7 @@ AC_DEFUN([gl_FILE_LIST], [
36597 lib/memchr.valgrind
36598 lib/mempcpy.c
36599 lib/memrchr.c
36600 + lib/minmax.h
36601 lib/mkdir.c
36602 lib/mkdirat.c
36603 lib/msvc-inval.c
36604 @@ -888,6 +1057,7 @@ AC_DEFUN([gl_FILE_LIST], [
36605 lib/opendir.c
36606 lib/pathmax.h
36607 lib/pipe-safer.c
36608 + lib/pipe.c
36609 lib/printf-args.c
36610 lib/printf-args.h
36611 lib/printf-frexp.c
36612 @@ -896,9 +1066,12 @@ AC_DEFUN([gl_FILE_LIST], [
36613 lib/printf-frexpl.h
36614 lib/printf-parse.c
36615 lib/printf-parse.h
36616 + lib/rawmemchr.c
36617 + lib/rawmemchr.valgrind
36618 lib/readlink.c
36619 lib/readlinkat.c
36620 lib/realloc.c
36621 + lib/reallocarray.c
36622 lib/rename.c
36623 lib/renameat.c
36624 lib/renameatu.c
36625 @@ -908,6 +1081,7 @@ AC_DEFUN([gl_FILE_LIST], [
36626 lib/same-inode.h
36627 lib/save-cwd.c
36628 lib/save-cwd.h
36629 + lib/scratch_buffer.h
36630 lib/signbitd.c
36631 lib/signbitf.c
36632 lib/signbitl.c
36633 @@ -918,9 +1092,12 @@ AC_DEFUN([gl_FILE_LIST], [
36634 lib/stat-w32.h
36635 lib/stat.c
36636 lib/statat.c
36637 + lib/stdalign.in.h
36638 lib/stdbool.in.h
36639 lib/stddef.in.h
36640 lib/stdint.in.h
36641 + lib/stdio-read.c
36642 + lib/stdio-write.c
36643 lib/stdio.in.h
36644 lib/stdlib.in.h
36645 lib/str-two-way.h
36646 @@ -967,8 +1144,11 @@ AC_DEFUN([gl_FILE_LIST], [
36647 lib/xsize.c
36648 lib/xsize.h
36649 m4/00gnulib.m4
36650 + m4/__inline.m4
36651 m4/absolute-header.m4
36652 m4/alloca.m4
36653 + m4/builtin-expect.m4
36654 + m4/calloc.m4
36655 m4/canonicalize.m4
36656 m4/chdir-long.m4
36657 m4/clock_time.m4
36658 @@ -976,7 +1156,6 @@ AC_DEFUN([gl_FILE_LIST], [
36659 m4/closedir.m4
36660 m4/dirent_h.m4
36661 m4/dirfd.m4
36662 - m4/dirname.m4
36663 m4/double-slash-root.m4
36664 m4/dup.m4
36665 m4/dup2.m4
36666 @@ -998,6 +1177,7 @@ AC_DEFUN([gl_FILE_LIST], [
36667 m4/filenamecat.m4
36668 m4/float_h.m4
36669 m4/fpieee.m4
36670 + m4/free.m4
36671 m4/frexp.m4
36672 m4/frexpl.m4
36673 m4/fstat.m4
36674 @@ -1016,7 +1196,6 @@ AC_DEFUN([gl_FILE_LIST], [
36675 m4/group-member.m4
36676 m4/include_next.m4
36677 m4/intmax_t.m4
36678 - m4/inttypes-pri.m4
36679 m4/inttypes.m4
36680 m4/inttypes_h.m4
36681 m4/isnand.m4
36682 @@ -1025,8 +1204,6 @@ AC_DEFUN([gl_FILE_LIST], [
36683 m4/largefile.m4
36684 m4/ldexpl.m4
36685 m4/limits-h.m4
36686 - m4/localtime-buffer.m4
36687 - m4/longlong.m4
36688 m4/lstat.m4
36689 m4/malloc.m4
36690 m4/malloca.m4
36691 @@ -1034,6 +1211,7 @@ AC_DEFUN([gl_FILE_LIST], [
36692 m4/memchr.m4
36693 m4/mempcpy.m4
36694 m4/memrchr.m4
36695 + m4/minmax.m4
36696 m4/mkdir.m4
36697 m4/mkdirat.m4
36698 m4/mmap-anon.m4
36699 @@ -1044,16 +1222,21 @@ AC_DEFUN([gl_FILE_LIST], [
36700 m4/nocrash.m4
36701 m4/off_t.m4
36702 m4/open-cloexec.m4
36703 + m4/open-slash.m4
36704 m4/open.m4
36705 m4/openat.m4
36706 m4/opendir.m4
36707 m4/pathmax.m4
36708 + m4/pid_t.m4
36709 + m4/pipe.m4
36710 m4/printf-frexp.m4
36711 m4/printf-frexpl.m4
36712 m4/printf.m4
36713 + m4/rawmemchr.m4
36714 m4/readlink.m4
36715 m4/readlinkat.m4
36716 m4/realloc.m4
36717 + m4/reallocarray.m4
36718 m4/rename.m4
36719 m4/renameat.m4
36720 m4/rmdir.m4
36721 @@ -1063,6 +1246,8 @@ AC_DEFUN([gl_FILE_LIST], [
36722 m4/ssize_t.m4
36723 m4/stat-time.m4
36724 m4/stat.m4
36725 + m4/std-gnu11.m4
36726 + m4/stdalign.m4
36727 m4/stdbool.m4
36728 m4/stddef_h.m4
36729 m4/stdint.m4
36730 @@ -1093,6 +1278,7 @@ AC_DEFUN([gl_FILE_LIST], [
36731 m4/utimens.m4
36732 m4/utimensat.m4
36733 m4/utimes.m4
36734 + m4/vararrays.m4
36735 m4/vasnprintf.m4
36736 m4/vasprintf-posix.m4
36737 m4/vasprintf.m4
36738 @@ -1102,4 +1288,6 @@ AC_DEFUN([gl_FILE_LIST], [
36739 m4/wint_t.m4
36740 m4/xalloc.m4
36741 m4/xsize.m4
36742 + m4/year2038.m4
36743 + m4/zzgnulib.m4
36744 ])
36745
36746 diff --git a/autotools/m4/gnulib-tool.m4 b/autotools/m4/gnulib-tool.m4
36747 index 98e6ade..8428901 100644
36748 --- a/autotools/m4/gnulib-tool.m4
36749 +++ b/autotools/m4/gnulib-tool.m4
36750 @@ -1,5 +1,5 @@
36751 -# gnulib-tool.m4 serial 2
36752 -dnl Copyright (C) 2004-2005, 2009-2019 Free Software Foundation, Inc.
36753 +# gnulib-tool.m4 serial 4
36754 +dnl Copyright (C) 2004-2005, 2009-2022 Free Software Foundation, Inc.
36755 dnl This file is free software; the Free Software Foundation
36756 dnl gives unlimited permission to copy and/or distribute it,
36757 dnl with or without modifications, as long as this notice is preserved.
36758 @@ -44,6 +44,12 @@ AC_DEFUN([gl_LGPL], [])
36759 dnl Usage: gl_MAKEFILE_NAME([FILENAME])
36760 AC_DEFUN([gl_MAKEFILE_NAME], [])
36761
36762 +dnl Usage: gl_TESTS_MAKEFILE_NAME([FILENAME])
36763 +AC_DEFUN([gl_TESTS_MAKEFILE_NAME], [])
36764 +
36765 +dnl Usage: gl_AUTOMAKE_SUBDIR
36766 +AC_DEFUN([gl_AUTOMAKE_SUBDIR], [])
36767 +
36768 dnl Usage: gl_LIBTOOL
36769 AC_DEFUN([gl_LIBTOOL], [])
36770
36771
36772 diff --git a/autotools/m4/group-member.m4 b/autotools/m4/group-member.m4
36773 index 77d389d..f9bc38b 100644
36774 --- a/autotools/m4/group-member.m4
36775 +++ b/autotools/m4/group-member.m4
36776 @@ -1,6 +1,6 @@
36777 # serial 14
36778
36779 -# Copyright (C) 1999-2001, 2003-2007, 2009-2019 Free Software Foundation, Inc.
36780 +# Copyright (C) 1999-2001, 2003-2007, 2009-2022 Free Software Foundation, Inc.
36781
36782 # This file is free software; the Free Software Foundation
36783 # gives unlimited permission to copy and/or distribute it,
36784
36785 diff --git a/autotools/m4/include_next.m4 b/autotools/m4/include_next.m4
36786 index 86eb2c9..a9247f6 100644
36787 --- a/autotools/m4/include_next.m4
36788 +++ b/autotools/m4/include_next.m4
36789 @@ -1,5 +1,5 @@
36790 -# include_next.m4 serial 24
36791 -dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
36792 +# include_next.m4 serial 26
36793 +dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
36794 dnl This file is free software; the Free Software Foundation
36795 dnl gives unlimited permission to copy and/or distribute it,
36796 dnl with or without modifications, as long as this notice is preserved.
36797 @@ -106,19 +106,21 @@ dnl We intentionally avoid using AC_LANG_SOURCE here.
36798 AC_SUBST([INCLUDE_NEXT])
36799 AC_SUBST([INCLUDE_NEXT_AS_FIRST_DIRECTIVE])
36800 AC_SUBST([PRAGMA_SYSTEM_HEADER])
36801 - AC_CACHE_CHECK([whether system header files limit the line length],
36802 - [gl_cv_pragma_columns],
36803 - [dnl HP NonStop systems, which define __TANDEM, have this misfeature.
36804 - AC_EGREP_CPP([choke me],
36805 +
36806 + dnl HP NonStop systems, which define __TANDEM, limit the line length
36807 + dnl after including some system header files.
36808 + AC_CACHE_CHECK([whether source code line length is unlimited],
36809 + [gl_cv_source_line_length_unlimited],
36810 + [AC_EGREP_CPP([choke me],
36811 [
36812 #ifdef __TANDEM
36813 choke me
36814 #endif
36815 ],
36816 - [gl_cv_pragma_columns=yes],
36817 - [gl_cv_pragma_columns=no])
36818 + [gl_cv_source_line_length_unlimited=no],
36819 + [gl_cv_source_line_length_unlimited=yes])
36820 ])
36821 - if test $gl_cv_pragma_columns = yes; then
36822 + if test $gl_cv_source_line_length_unlimited = no; then
36823 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
36824 else
36825 PRAGMA_COLUMNS=
36826 @@ -176,42 +178,40 @@ AC_DEFUN([gl_NEXT_HEADERS_INTERNAL],
36827 [AC_CHECK_HEADERS_ONCE([$1])
36828 ])
36829
36830 -dnl FIXME: gl_next_header and gl_header_exists must be used unquoted
36831 -dnl until we can assume autoconf 2.64 or newer.
36832 m4_foreach_w([gl_HEADER_NAME], [$1],
36833 [AS_VAR_PUSHDEF([gl_next_header],
36834 [gl_cv_next_]m4_defn([gl_HEADER_NAME]))
36835 if test $gl_cv_have_include_next = yes; then
36836 - AS_VAR_SET(gl_next_header, ['<'gl_HEADER_NAME'>'])
36837 + AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
36838 else
36839 AC_CACHE_CHECK(
36840 [absolute name of <]m4_defn([gl_HEADER_NAME])[>],
36841 - m4_defn([gl_next_header]),
36842 + [gl_next_header],
36843 [m4_if([$2], [check],
36844 [AS_VAR_PUSHDEF([gl_header_exists],
36845 [ac_cv_header_]m4_defn([gl_HEADER_NAME]))
36846 - if test AS_VAR_GET(gl_header_exists) = yes; then
36847 + if test AS_VAR_GET([gl_header_exists]) = yes; then
36848 AS_VAR_POPDEF([gl_header_exists])
36849 ])
36850 - gl_ABSOLUTE_HEADER_ONE(gl_HEADER_NAME)
36851 - AS_VAR_COPY([gl_header], [gl_cv_absolute_]AS_TR_SH(gl_HEADER_NAME))
36852 - AS_VAR_SET(gl_next_header, ['"'$gl_header'"'])
36853 + gl_ABSOLUTE_HEADER_ONE(gl_HEADER_NAME)
36854 + AS_VAR_COPY([gl_header], [gl_cv_absolute_]AS_TR_SH(gl_HEADER_NAME))
36855 + AS_VAR_SET([gl_next_header], ['"'$gl_header'"'])
36856 m4_if([$2], [check],
36857 [else
36858 - AS_VAR_SET(gl_next_header, ['<'gl_HEADER_NAME'>'])
36859 + AS_VAR_SET([gl_next_header], ['<'gl_HEADER_NAME'>'])
36860 fi
36861 ])
36862 ])
36863 fi
36864 AC_SUBST(
36865 AS_TR_CPP([NEXT_]m4_defn([gl_HEADER_NAME])),
36866 - [AS_VAR_GET(gl_next_header)])
36867 + [AS_VAR_GET([gl_next_header])])
36868 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
36869 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
36870 gl_next_as_first_directive='<'gl_HEADER_NAME'>'
36871 else
36872 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
36873 - gl_next_as_first_directive=AS_VAR_GET(gl_next_header)
36874 + gl_next_as_first_directive=AS_VAR_GET([gl_next_header])
36875 fi
36876 AC_SUBST(
36877 AS_TR_CPP([NEXT_AS_FIRST_DIRECTIVE_]m4_defn([gl_HEADER_NAME])),
36878
36879 diff --git a/autotools/m4/intmax_t.m4 b/autotools/m4/intmax_t.m4
36880 index 5ded16e..8a15dab 100644
36881 --- a/autotools/m4/intmax_t.m4
36882 +++ b/autotools/m4/intmax_t.m4
36883 @@ -1,5 +1,5 @@
36884 -# intmax_t.m4 serial 8
36885 -dnl Copyright (C) 1997-2004, 2006-2007, 2009-2019 Free Software Foundation,
36886 +# intmax_t.m4 serial 9
36887 +dnl Copyright (C) 1997-2004, 2006-2007, 2009-2022 Free Software Foundation,
36888 dnl Inc.
36889 dnl This file is free software; the Free Software Foundation
36890 dnl gives unlimited permission to copy and/or distribute it,
36891 @@ -19,11 +19,7 @@ AC_DEFUN([gl_AC_TYPE_INTMAX_T],
36892 AC_REQUIRE([gl_AC_HEADER_INTTYPES_H])
36893 AC_REQUIRE([gl_AC_HEADER_STDINT_H])
36894 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
36895 - AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
36896 - test $ac_cv_type_long_long_int = yes \
36897 - && ac_type='long long' \
36898 - || ac_type='long'
36899 - AC_DEFINE_UNQUOTED([intmax_t], [$ac_type],
36900 + AC_DEFINE_UNQUOTED([intmax_t], [long long],
36901 [Define to long or long long if <inttypes.h> and <stdint.h> don't define.])
36902 else
36903 AC_DEFINE([HAVE_INTMAX_T], [1],
36904 @@ -57,11 +53,7 @@ AC_DEFUN([gt_AC_TYPE_INTMAX_T],
36905 AC_DEFINE([HAVE_INTMAX_T], [1],
36906 [Define if you have the 'intmax_t' type in <stdint.h> or <inttypes.h>.])
36907 else
36908 - AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
36909 - test $ac_cv_type_long_long_int = yes \
36910 - && ac_type='long long' \
36911 - || ac_type='long'
36912 - AC_DEFINE_UNQUOTED([intmax_t], [$ac_type],
36913 + AC_DEFINE_UNQUOTED([intmax_t], [long long],
36914 [Define to long or long long if <stdint.h> and <inttypes.h> don't define.])
36915 fi
36916 ])
36917
36918 diff --git a/autotools/m4/inttypes-pri.m4 b/autotools/m4/inttypes-pri.m4
36919 deleted file mode 100644
36920 index 38fe118..0000000
36921 --- a/autotools/m4/inttypes-pri.m4
36922 +++ /dev/null
36923 @@ -1,42 +0,0 @@
36924 -# inttypes-pri.m4 serial 7 (gettext-0.18.2)
36925 -dnl Copyright (C) 1997-2002, 2006, 2008-2019 Free Software Foundation, Inc.
36926 -dnl This file is free software; the Free Software Foundation
36927 -dnl gives unlimited permission to copy and/or distribute it,
36928 -dnl with or without modifications, as long as this notice is preserved.
36929 -
36930 -dnl From Bruno Haible.
36931 -
36932 -AC_PREREQ([2.53])
36933 -
36934 -# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
36935 -# macros to non-string values. This is the case on AIX 4.3.3.
36936 -
36937 -AC_DEFUN([gt_INTTYPES_PRI],
36938 -[
36939 - AC_CHECK_HEADERS([inttypes.h])
36940 - if test $ac_cv_header_inttypes_h = yes; then
36941 - AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
36942 - [gt_cv_inttypes_pri_broken],
36943 - [
36944 - AC_COMPILE_IFELSE(
36945 - [AC_LANG_PROGRAM(
36946 - [[
36947 -#include <inttypes.h>
36948 -#ifdef PRId32
36949 -char *p = PRId32;
36950 -#endif
36951 - ]],
36952 - [[]])],
36953 - [gt_cv_inttypes_pri_broken=no],
36954 - [gt_cv_inttypes_pri_broken=yes])
36955 - ])
36956 - fi
36957 - if test "$gt_cv_inttypes_pri_broken" = yes; then
36958 - AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1],
36959 - [Define if <inttypes.h> exists and defines unusable PRI* macros.])
36960 - PRI_MACROS_BROKEN=1
36961 - else
36962 - PRI_MACROS_BROKEN=0
36963 - fi
36964 - AC_SUBST([PRI_MACROS_BROKEN])
36965 -])
36966
36967 diff --git a/autotools/m4/inttypes.m4 b/autotools/m4/inttypes.m4
36968 index c58a1be..df25a21 100644
36969 --- a/autotools/m4/inttypes.m4
36970 +++ b/autotools/m4/inttypes.m4
36971 @@ -1,5 +1,5 @@
36972 -# inttypes.m4 serial 27
36973 -dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
36974 +# inttypes.m4 serial 36
36975 +dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
36976 dnl This file is free software; the Free Software Foundation
36977 dnl gives unlimited permission to copy and/or distribute it,
36978 dnl with or without modifications, as long as this notice is preserved.
36979 @@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
36980 dnl From Derek Price, Bruno Haible.
36981 dnl Test whether <inttypes.h> is supported or must be substituted.
36982
36983 -AC_DEFUN([gl_INTTYPES_H],
36984 +AC_DEFUN_ONCE([gl_INTTYPES_H],
36985 [
36986 AC_REQUIRE([gl_INTTYPES_INCOMPLETE])
36987 gl_INTTYPES_PRI_SCN
36988 @@ -28,17 +28,26 @@ AC_DEFUN_ONCE([gl_INTTYPES_INCOMPLETE],
36989 dnl corresponding gnulib module is not in use.
36990 gl_WARN_ON_USE_PREPARE([[#include <inttypes.h>
36991 ]], [imaxabs imaxdiv strtoimax strtoumax])
36992 +
36993 + AC_REQUIRE([AC_C_RESTRICT])
36994 ])
36995
36996 # Ensure that the PRI* and SCN* macros are defined appropriately.
36997 AC_DEFUN([gl_INTTYPES_PRI_SCN],
36998 [
36999 - AC_REQUIRE([gt_INTTYPES_PRI])
37000 -
37001 PRIPTR_PREFIX=
37002 - if test -n "$STDINT_H"; then
37003 - dnl Using the gnulib <stdint.h>. It always defines intptr_t to 'long'.
37004 - PRIPTR_PREFIX='"l"'
37005 + if $GL_GENERATE_STDINT_H; then
37006 + dnl Using the gnulib <stdint.h>. It defines intptr_t to 'long' or
37007 + dnl 'long long', depending on _WIN64.
37008 + AC_COMPILE_IFELSE(
37009 + [AC_LANG_PROGRAM([[
37010 + #ifdef _WIN64
37011 + LLP64
37012 + #endif
37013 + ]])
37014 + ],
37015 + [PRIPTR_PREFIX='"l"'],
37016 + [PRIPTR_PREFIX='"ll"'])
37017 else
37018 dnl Using the system's <stdint.h>.
37019 for glpfx in '' l ll I64; do
37020 @@ -113,10 +122,8 @@ AC_DEFUN([gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION],
37021
37022 #if $2
37023 #define CONDITION ($3)
37024 - #elif HAVE_LONG_LONG_INT
37025 - #define CONDITION ($4)
37026 #else
37027 - #define CONDITION 0
37028 + #define CONDITION ($4)
37029 #endif
37030 int test[CONDITION ? 1 : -1];]])],
37031 [gl_cv_test_$1=yes],
37032 @@ -129,19 +136,34 @@ AC_DEFUN([gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION],
37033 AC_SUBST([$1])
37034 ])
37035
37036 +# gl_INTTYPES_MODULE_INDICATOR([modulename])
37037 +# sets the shell variable that indicates the presence of the given module
37038 +# to a C preprocessor expression that will evaluate to 1.
37039 +# This macro invocation must not occur in macros that are AC_REQUIREd.
37040 AC_DEFUN([gl_INTTYPES_MODULE_INDICATOR],
37041 [
37042 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
37043 - AC_REQUIRE([gl_INTTYPES_H_DEFAULTS])
37044 + dnl Ensure to expand the default settings once only.
37045 + gl_INTTYPES_H_REQUIRE_DEFAULTS
37046 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
37047 ])
37048
37049 +# Initializes the default values for AC_SUBSTed shell variables.
37050 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
37051 +# outside of macros or in macros that are not AC_REQUIREd.
37052 +AC_DEFUN([gl_INTTYPES_H_REQUIRE_DEFAULTS],
37053 +[
37054 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_INTTYPES_H_MODULE_INDICATOR_DEFAULTS], [
37055 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_IMAXABS])
37056 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_IMAXDIV])
37057 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOIMAX])
37058 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOUMAX])
37059 + ])
37060 + m4_require(GL_MODULE_INDICATOR_PREFIX[_INTTYPES_H_MODULE_INDICATOR_DEFAULTS])
37061 + AC_REQUIRE([gl_INTTYPES_H_DEFAULTS])
37062 +])
37063 +
37064 AC_DEFUN([gl_INTTYPES_H_DEFAULTS],
37065 [
37066 - GNULIB_IMAXABS=0; AC_SUBST([GNULIB_IMAXABS])
37067 - GNULIB_IMAXDIV=0; AC_SUBST([GNULIB_IMAXDIV])
37068 - GNULIB_STRTOIMAX=0; AC_SUBST([GNULIB_STRTOIMAX])
37069 - GNULIB_STRTOUMAX=0; AC_SUBST([GNULIB_STRTOUMAX])
37070 dnl Assume proper GNU behavior unless another module says otherwise.
37071 HAVE_DECL_IMAXABS=1; AC_SUBST([HAVE_DECL_IMAXABS])
37072 HAVE_DECL_IMAXDIV=1; AC_SUBST([HAVE_DECL_IMAXDIV])
37073 @@ -152,7 +174,6 @@ AC_DEFUN([gl_INTTYPES_H_DEFAULTS],
37074 REPLACE_STRTOUMAX=0; AC_SUBST([REPLACE_STRTOUMAX])
37075 INT32_MAX_LT_INTMAX_MAX=1; AC_SUBST([INT32_MAX_LT_INTMAX_MAX])
37076 INT64_MAX_EQ_LONG_MAX='defined _LP64'; AC_SUBST([INT64_MAX_EQ_LONG_MAX])
37077 - PRI_MACROS_BROKEN=0; AC_SUBST([PRI_MACROS_BROKEN])
37078 PRIPTR_PREFIX=__PRIPTR_PREFIX; AC_SUBST([PRIPTR_PREFIX])
37079 UINT32_MAX_LT_UINTMAX_MAX=1; AC_SUBST([UINT32_MAX_LT_UINTMAX_MAX])
37080 UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; AC_SUBST([UINT64_MAX_EQ_ULONG_MAX])
37081
37082 diff --git a/autotools/m4/inttypes_h.m4 b/autotools/m4/inttypes_h.m4
37083 index d20422a..6e9eebf 100644
37084 --- a/autotools/m4/inttypes_h.m4
37085 +++ b/autotools/m4/inttypes_h.m4
37086 @@ -1,5 +1,5 @@
37087 # inttypes_h.m4 serial 10
37088 -dnl Copyright (C) 1997-2004, 2006, 2008-2019 Free Software Foundation, Inc.
37089 +dnl Copyright (C) 1997-2004, 2006, 2008-2022 Free Software Foundation, Inc.
37090 dnl This file is free software; the Free Software Foundation
37091 dnl gives unlimited permission to copy and/or distribute it,
37092 dnl with or without modifications, as long as this notice is preserved.
37093
37094 diff --git a/autotools/m4/isnand.m4 b/autotools/m4/isnand.m4
37095 index 31af024..4eadde7 100644
37096 --- a/autotools/m4/isnand.m4
37097 +++ b/autotools/m4/isnand.m4
37098 @@ -1,5 +1,5 @@
37099 -# isnand.m4 serial 11
37100 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
37101 +# isnand.m4 serial 12
37102 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
37103 dnl This file is free software; the Free Software Foundation
37104 dnl gives unlimited permission to copy and/or distribute it,
37105 dnl with or without modifications, as long as this notice is preserved.
37106 @@ -58,7 +58,7 @@ AC_DEFUN([gl_HAVE_ISNAND_IN_LIBM],
37107 AC_LINK_IFELSE(
37108 [AC_LANG_PROGRAM(
37109 [[#include <math.h>
37110 - #if __GNUC__ >= 4
37111 + #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
37112 # undef isnand
37113 # define isnand(x) __builtin_isnan ((double)(x))
37114 #elif defined isnan
37115 @@ -81,7 +81,7 @@ AC_DEFUN([gl_HAVE_ISNAND_NO_LIBM],
37116 AC_LINK_IFELSE(
37117 [AC_LANG_PROGRAM(
37118 [[#include <math.h>
37119 - #if __GNUC__ >= 4
37120 + #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
37121 # undef isnand
37122 # define isnand(x) __builtin_isnan ((double)(x))
37123 #else
37124
37125 diff --git a/autotools/m4/isnanf.m4 b/autotools/m4/isnanf.m4
37126 index f03f37d..44c825a 100644
37127 --- a/autotools/m4/isnanf.m4
37128 +++ b/autotools/m4/isnanf.m4
37129 @@ -1,5 +1,5 @@
37130 -# isnanf.m4 serial 15
37131 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
37132 +# isnanf.m4 serial 18
37133 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
37134 dnl This file is free software; the Free Software Foundation
37135 dnl gives unlimited permission to copy and/or distribute it,
37136 dnl with or without modifications, as long as this notice is preserved.
37137 @@ -74,9 +74,9 @@ AC_DEFUN([gl_HAVE_ISNANF_NO_LIBM],
37138 AC_LINK_IFELSE(
37139 [AC_LANG_PROGRAM(
37140 [[#include <math.h>
37141 - #if __GNUC__ >= 4
37142 + #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
37143 # undef isnanf
37144 - # define isnanf(x) __builtin_isnanf ((float)(x))
37145 + # define isnanf(x) __builtin_isnan ((float)(x))
37146 #elif defined isnan
37147 # undef isnanf
37148 # define isnanf(x) isnan ((float)(x))
37149 @@ -99,9 +99,9 @@ AC_DEFUN([gl_HAVE_ISNANF_IN_LIBM],
37150 AC_LINK_IFELSE(
37151 [AC_LANG_PROGRAM(
37152 [[#include <math.h>
37153 - #if __GNUC__ >= 4
37154 + #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
37155 # undef isnanf
37156 - # define isnanf(x) __builtin_isnanf ((float)(x))
37157 + # define isnanf(x) __builtin_isnan ((float)(x))
37158 #elif defined isnan
37159 # undef isnanf
37160 # define isnanf(x) isnan ((float)(x))
37161 @@ -127,9 +127,9 @@ AC_DEFUN([gl_ISNANF_WORKS],
37162 AC_RUN_IFELSE(
37163 [AC_LANG_SOURCE([[
37164 #include <math.h>
37165 -#if __GNUC__ >= 4
37166 +#if (__GNUC__ >= 4) || (__clang_major__ >= 4)
37167 # undef isnanf
37168 -# define isnanf(x) __builtin_isnanf ((float)(x))
37169 +# define isnanf(x) __builtin_isnan ((float)(x))
37170 #elif defined isnan
37171 # undef isnanf
37172 # define isnanf(x) isnan ((float)(x))
37173 @@ -169,7 +169,7 @@ int main()
37174 m.value = NaN ();
37175 /* Set the bits below the exponent to 01111...111. */
37176 m.word[0] &= -1U << FLT_EXPBIT0_BIT;
37177 - m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
37178 + m.word[0] |= (1U << (FLT_EXPBIT0_BIT - 1)) - 1;
37179 if (!isnanf (m.value))
37180 result |= 4;
37181 }
37182
37183 diff --git a/autotools/m4/isnanl.m4 b/autotools/m4/isnanl.m4
37184 index 3bef867..fa49a64 100644
37185 --- a/autotools/m4/isnanl.m4
37186 +++ b/autotools/m4/isnanl.m4
37187 @@ -1,5 +1,5 @@
37188 -# isnanl.m4 serial 20
37189 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
37190 +# isnanl.m4 serial 22
37191 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
37192 dnl This file is free software; the Free Software Foundation
37193 dnl gives unlimited permission to copy and/or distribute it,
37194 dnl with or without modifications, as long as this notice is preserved.
37195 @@ -68,9 +68,9 @@ AC_DEFUN([gl_HAVE_ISNANL_NO_LIBM],
37196 AC_LINK_IFELSE(
37197 [AC_LANG_PROGRAM(
37198 [[#include <math.h>
37199 - #if __GNUC__ >= 4
37200 + #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
37201 # undef isnanl
37202 - # define isnanl(x) __builtin_isnanl ((long double)(x))
37203 + # define isnanl(x) __builtin_isnan ((long double)(x))
37204 #elif defined isnan
37205 # undef isnanl
37206 # define isnanl(x) isnan ((long double)(x))
37207 @@ -93,9 +93,9 @@ AC_DEFUN([gl_HAVE_ISNANL_IN_LIBM],
37208 AC_LINK_IFELSE(
37209 [AC_LANG_PROGRAM(
37210 [[#include <math.h>
37211 - #if __GNUC__ >= 4
37212 + #if (__GNUC__ >= 4) || (__clang_major__ >= 4)
37213 # undef isnanl
37214 - # define isnanl(x) __builtin_isnanl ((long double)(x))
37215 + # define isnanl(x) __builtin_isnan ((long double)(x))
37216 #elif defined isnan
37217 # undef isnanl
37218 # define isnanl(x) isnan ((long double)(x))
37219 @@ -123,9 +123,9 @@ AC_DEFUN([gl_FUNC_ISNANL_WORKS],
37220 #include <float.h>
37221 #include <limits.h>
37222 #include <math.h>
37223 -#if __GNUC__ >= 4
37224 +#if (__GNUC__ >= 4) || (__clang_major__ >= 4)
37225 # undef isnanl
37226 -# define isnanl(x) __builtin_isnanl ((long double)(x))
37227 +# define isnanl(x) __builtin_isnan ((long double)(x))
37228 #elif defined isnan
37229 # undef isnanl
37230 # define isnanl(x) isnan ((long double)(x))
37231
37232 diff --git a/autotools/m4/largefile.m4 b/autotools/m4/largefile.m4
37233 index 1938188..3e8b5e3 100644
37234 --- a/autotools/m4/largefile.m4
37235 +++ b/autotools/m4/largefile.m4
37236 @@ -1,28 +1,47 @@
37237 # Enable large files on systems where this is not the default.
37238 +# Enable support for files on Linux file systems with 64-bit inode numbers.
37239
37240 -# Copyright 1992-1996, 1998-2019 Free Software Foundation, Inc.
37241 +# Copyright 1992-1996, 1998-2022 Free Software Foundation, Inc.
37242 # This file is free software; the Free Software Foundation
37243 # gives unlimited permission to copy and/or distribute it,
37244 # with or without modifications, as long as this notice is preserved.
37245
37246 -# The following implementation works around a problem in autoconf <= 2.69;
37247 +# The following macro works around a problem in Autoconf's AC_FUNC_FSEEKO:
37248 +# It does not set _LARGEFILE_SOURCE=1 on HP-UX/ia64 32-bit, although this
37249 +# setting of _LARGEFILE_SOURCE is needed so that <stdio.h> declares fseeko
37250 +# and ftello in C++ mode as well.
37251 +AC_DEFUN([gl_SET_LARGEFILE_SOURCE],
37252 +[
37253 + AC_REQUIRE([AC_CANONICAL_HOST])
37254 + AC_FUNC_FSEEKO
37255 + case "$host_os" in
37256 + hpux*)
37257 + AC_DEFINE([_LARGEFILE_SOURCE], [1],
37258 + [Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2).])
37259 + ;;
37260 + esac
37261 +])
37262 +
37263 +# Work around a problem in Autoconf through at least 2.71 on glibc 2.34+
37264 +# with _TIME_BITS. Also, work around a problem in autoconf <= 2.69:
37265 # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5,
37266 # or configures them incorrectly in some cases.
37267 -m4_version_prereq([2.70], [] ,[
37268 +m4_version_prereq([2.70], [], [
37269
37270 # _AC_SYS_LARGEFILE_TEST_INCLUDES
37271 # -------------------------------
37272 m4_define([_AC_SYS_LARGEFILE_TEST_INCLUDES],
37273 -[@%:@include <sys/types.h>
37274 +[#include <sys/types.h>
37275 /* Check that off_t can represent 2**63 - 1 correctly.
37276 We can't simply define LARGE_OFF_T to be 9223372036854775807,
37277 since some C++ compilers masquerading as C compilers
37278 incorrectly reject 9223372036854775807. */
37279 -@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
37280 +#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
37281 int off_t_is_large[[(LARGE_OFF_T % 2147483629 == 721
37282 && LARGE_OFF_T % 2147483647 == 1)
37283 ? 1 : -1]];[]dnl
37284 ])
37285 +])# m4_version_prereq 2.70
37286
37287
37288 # _AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE,
37289 @@ -37,7 +56,8 @@ m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE],
37290 [AC_LANG_PROGRAM([$5], [$6])],
37291 [$3=no; break])
37292 m4_ifval([$6], [AC_LINK_IFELSE], [AC_COMPILE_IFELSE])(
37293 - [AC_LANG_PROGRAM([@%:@define $1 $2
37294 + [AC_LANG_PROGRAM([#undef $1
37295 +#define $1 $2
37296 $5], [$6])],
37297 [$3=$2; break])
37298 $3=unknown
37299 @@ -56,13 +76,15 @@ rm -rf conftest*[]dnl
37300 # By default, many hosts won't let programs access large files;
37301 # one must use special compiler options to get large-file access to work.
37302 # For more details about this brain damage please see:
37303 -# http://www.unix-systems.org/version2/whatsnew/lfs20mar.html
37304 +# http://www.unix.org/version2/whatsnew/lfs20mar.html
37305 +# Additionally, on Linux file systems with 64-bit inodes a file that happens
37306 +# to have a 64-bit inode number cannot be accessed by 32-bit applications on
37307 +# Linux x86/x86_64. This can occur with file systems such as XFS and NFS.
37308 AC_DEFUN([AC_SYS_LARGEFILE],
37309 [AC_ARG_ENABLE(largefile,
37310 [ --disable-largefile omit support for large files])
37311 -if test "$enable_largefile" != no; then
37312 -
37313 - AC_CACHE_CHECK([for special C compiler options needed for large files],
37314 +AS_IF([test "$enable_largefile" != no],
37315 + [AC_CACHE_CHECK([for special C compiler options needed for large files],
37316 ac_cv_sys_largefile_CC,
37317 [ac_cv_sys_largefile_CC=no
37318 if test "$GCC" != yes; then
37319 @@ -87,18 +109,15 @@ if test "$enable_largefile" != no; then
37320 ac_cv_sys_file_offset_bits,
37321 [Number of bits in a file offset, on hosts where this is settable.],
37322 [_AC_SYS_LARGEFILE_TEST_INCLUDES])
37323 - if test $ac_cv_sys_file_offset_bits = unknown; then
37324 - _AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1,
37325 - ac_cv_sys_large_files,
37326 - [Define for large files, on AIX-style hosts.],
37327 - [_AC_SYS_LARGEFILE_TEST_INCLUDES])
37328 - fi
37329 -
37330 - AC_DEFINE([_DARWIN_USE_64_BIT_INODE], [1],
37331 - [Enable large inode numbers on Mac OS X 10.5.])
37332 -fi
37333 + AS_CASE([$ac_cv_sys_file_offset_bits],
37334 + [unknown],
37335 + [_AC_SYS_LARGEFILE_MACRO_VALUE([_LARGE_FILES], [1],
37336 + [ac_cv_sys_large_files],
37337 + [Define for large files, on AIX-style hosts.],
37338 + [_AC_SYS_LARGEFILE_TEST_INCLUDES])],
37339 + [64],
37340 + [gl_YEAR2038_BODY([])])])
37341 ])# AC_SYS_LARGEFILE
37342 -])# m4_version_prereq 2.70
37343
37344 # Enable large files on systems where this is implemented by Gnulib, not by the
37345 # system headers.
37346
37347 diff --git a/autotools/m4/ldexpl.m4 b/autotools/m4/ldexpl.m4
37348 index bae6de3..06d30f7 100644
37349 --- a/autotools/m4/ldexpl.m4
37350 +++ b/autotools/m4/ldexpl.m4
37351 @@ -1,5 +1,5 @@
37352 # ldexpl.m4 serial 17
37353 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
37354 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
37355 dnl This file is free software; the Free Software Foundation
37356 dnl gives unlimited permission to copy and/or distribute it,
37357 dnl with or without modifications, as long as this notice is preserved.
37358
37359 diff --git a/autotools/m4/limits-h.m4 b/autotools/m4/limits-h.m4
37360 index 68f724c..5d5a5bf 100644
37361 --- a/autotools/m4/limits-h.m4
37362 +++ b/autotools/m4/limits-h.m4
37363 @@ -1,6 +1,6 @@
37364 dnl Check whether limits.h has needed features.
37365
37366 -dnl Copyright 2016-2019 Free Software Foundation, Inc.
37367 +dnl Copyright 2016-2022 Free Software Foundation, Inc.
37368 dnl This file is free software; the Free Software Foundation
37369 dnl gives unlimited permission to copy and/or distribute it,
37370 dnl with or without modifications, as long as this notice is preserved.
37371 @@ -11,7 +11,7 @@ AC_DEFUN_ONCE([gl_LIMITS_H],
37372 [
37373 gl_CHECK_NEXT_HEADERS([limits.h])
37374
37375 - AC_CACHE_CHECK([whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.],
37376 + AC_CACHE_CHECK([whether limits.h has WORD_BIT, BOOL_WIDTH etc.],
37377 [gl_cv_header_limits_width],
37378 [AC_COMPILE_IFELSE(
37379 [AC_LANG_PROGRAM(
37380 @@ -22,22 +22,20 @@ AC_DEFUN_ONCE([gl_LIMITS_H],
37381 long long llm = LLONG_MAX;
37382 int wb = WORD_BIT;
37383 int ullw = ULLONG_WIDTH;
37384 + int bw = BOOL_WIDTH;
37385 ]])],
37386 [gl_cv_header_limits_width=yes],
37387 [gl_cv_header_limits_width=no])])
37388 if test "$gl_cv_header_limits_width" = yes; then
37389 - LIMITS_H=
37390 + GL_GENERATE_LIMITS_H=false
37391 else
37392 - LIMITS_H=limits.h
37393 + GL_GENERATE_LIMITS_H=true
37394 fi
37395 - AC_SUBST([LIMITS_H])
37396 - AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"])
37397 ])
37398
37399 dnl Unconditionally enables the replacement of <limits.h>.
37400 AC_DEFUN([gl_REPLACE_LIMITS_H],
37401 [
37402 AC_REQUIRE([gl_LIMITS_H])
37403 - LIMITS_H='limits.h'
37404 - AM_CONDITIONAL([GL_GENERATE_LIMITS_H], [test -n "$LIMITS_H"])
37405 + GL_GENERATE_LIMITS_H=true
37406 ])
37407
37408 diff --git a/autotools/m4/localtime-buffer.m4 b/autotools/m4/localtime-buffer.m4
37409 deleted file mode 100644
37410 index 6d99828..0000000
37411 --- a/autotools/m4/localtime-buffer.m4
37412 +++ /dev/null
37413 @@ -1,21 +0,0 @@
37414 -# localtime-buffer.m4 serial 1
37415 -dnl Copyright (C) 2017-2019 Free Software Foundation, Inc.
37416 -dnl This file is free software; the Free Software Foundation
37417 -dnl gives unlimited permission to copy and/or distribute it,
37418 -dnl with or without modifications, as long as this notice is preserved.
37419 -
37420 -AC_DEFUN([gl_LOCALTIME_BUFFER_DEFAULTS],
37421 -[
37422 - NEED_LOCALTIME_BUFFER=0
37423 -])
37424 -
37425 -dnl Macro invoked from other modules, to signal that the compilation of
37426 -dnl module 'localtime-buffer' is needed.
37427 -AC_DEFUN([gl_LOCALTIME_BUFFER_NEEDED],
37428 -[
37429 - AC_REQUIRE([gl_LOCALTIME_BUFFER_DEFAULTS])
37430 - AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS])
37431 - NEED_LOCALTIME_BUFFER=1
37432 - REPLACE_GMTIME=1
37433 - REPLACE_LOCALTIME=1
37434 -])
37435
37436 diff --git a/autotools/m4/longlong.m4 b/autotools/m4/longlong.m4
37437 deleted file mode 100644
37438 index 08d0e36..0000000
37439 --- a/autotools/m4/longlong.m4
37440 +++ /dev/null
37441 @@ -1,113 +0,0 @@
37442 -# longlong.m4 serial 18
37443 -dnl Copyright (C) 1999-2007, 2009-2019 Free Software Foundation, Inc.
37444 -dnl This file is free software; the Free Software Foundation
37445 -dnl gives unlimited permission to copy and/or distribute it,
37446 -dnl with or without modifications, as long as this notice is preserved.
37447 -
37448 -dnl From Paul Eggert.
37449 -
37450 -AC_PREREQ([2.62])
37451 -
37452 -# Define HAVE_LONG_LONG_INT if 'long long int' works.
37453 -# This can be faster than what's in Autoconf 2.62 through 2.68.
37454 -
37455 -# Note: If the type 'long long int' exists but is only 32 bits large
37456 -# (as on some very old compilers), HAVE_LONG_LONG_INT will not be
37457 -# defined. In this case you can treat 'long long int' like 'long int'.
37458 -
37459 -AC_DEFUN([AC_TYPE_LONG_LONG_INT],
37460 -[
37461 - AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
37462 - AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int],
37463 - [ac_cv_type_long_long_int=yes
37464 - if test "x${ac_cv_prog_cc_c99-no}" = xno; then
37465 - ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
37466 - if test $ac_cv_type_long_long_int = yes; then
37467 - dnl Catch a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004.
37468 - dnl If cross compiling, assume the bug is not important, since
37469 - dnl nobody cross compiles for this platform as far as we know.
37470 - AC_RUN_IFELSE(
37471 - [AC_LANG_PROGRAM(
37472 - [[@%:@include <limits.h>
37473 - @%:@ifndef LLONG_MAX
37474 - @%:@ define HALF \
37475 - (1LL << (sizeof (long long int) * CHAR_BIT - 2))
37476 - @%:@ define LLONG_MAX (HALF - 1 + HALF)
37477 - @%:@endif]],
37478 - [[long long int n = 1;
37479 - int i;
37480 - for (i = 0; ; i++)
37481 - {
37482 - long long int m = n << i;
37483 - if (m >> i != n)
37484 - return 1;
37485 - if (LLONG_MAX / 2 < m)
37486 - break;
37487 - }
37488 - return 0;]])],
37489 - [],
37490 - [ac_cv_type_long_long_int=no],
37491 - [:])
37492 - fi
37493 - fi])
37494 - if test $ac_cv_type_long_long_int = yes; then
37495 - AC_DEFINE([HAVE_LONG_LONG_INT], [1],
37496 - [Define to 1 if the system has the type 'long long int'.])
37497 - fi
37498 -])
37499 -
37500 -# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works.
37501 -# This can be faster than what's in Autoconf 2.62 through 2.68.
37502 -
37503 -# Note: If the type 'unsigned long long int' exists but is only 32 bits
37504 -# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT
37505 -# will not be defined. In this case you can treat 'unsigned long long int'
37506 -# like 'unsigned long int'.
37507 -
37508 -AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT],
37509 -[
37510 - AC_CACHE_CHECK([for unsigned long long int],
37511 - [ac_cv_type_unsigned_long_long_int],
37512 - [ac_cv_type_unsigned_long_long_int=yes
37513 - if test "x${ac_cv_prog_cc_c99-no}" = xno; then
37514 - AC_LINK_IFELSE(
37515 - [_AC_TYPE_LONG_LONG_SNIPPET],
37516 - [],
37517 - [ac_cv_type_unsigned_long_long_int=no])
37518 - fi])
37519 - if test $ac_cv_type_unsigned_long_long_int = yes; then
37520 - AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1],
37521 - [Define to 1 if the system has the type 'unsigned long long int'.])
37522 - fi
37523 -])
37524 -
37525 -# Expands to a C program that can be used to test for simultaneous support
37526 -# of 'long long' and 'unsigned long long'. We don't want to say that
37527 -# 'long long' is available if 'unsigned long long' is not, or vice versa,
37528 -# because too many programs rely on the symmetry between signed and unsigned
37529 -# integer types (excluding 'bool').
37530 -AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET],
37531 -[
37532 - AC_LANG_PROGRAM(
37533 - [[/* For now, do not test the preprocessor; as of 2007 there are too many
37534 - implementations with broken preprocessors. Perhaps this can
37535 - be revisited in 2012. In the meantime, code should not expect
37536 - #if to work with literals wider than 32 bits. */
37537 - /* Test literals. */
37538 - long long int ll = 9223372036854775807ll;
37539 - long long int nll = -9223372036854775807LL;
37540 - unsigned long long int ull = 18446744073709551615ULL;
37541 - /* Test constant expressions. */
37542 - typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
37543 - ? 1 : -1)];
37544 - typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
37545 - ? 1 : -1)];
37546 - int i = 63;]],
37547 - [[/* Test availability of runtime routines for shift and division. */
37548 - long long int llmax = 9223372036854775807ll;
37549 - unsigned long long int ullmax = 18446744073709551615ull;
37550 - return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
37551 - | (llmax / ll) | (llmax % ll)
37552 - | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
37553 - | (ullmax / ull) | (ullmax % ull));]])
37554 -])
37555
37556 diff --git a/autotools/m4/lstat.m4 b/autotools/m4/lstat.m4
37557 index ace1638..d987060 100644
37558 --- a/autotools/m4/lstat.m4
37559 +++ b/autotools/m4/lstat.m4
37560 @@ -1,6 +1,6 @@
37561 -# serial 32
37562 +# serial 33
37563
37564 -# Copyright (C) 1997-2001, 2003-2019 Free Software Foundation, Inc.
37565 +# Copyright (C) 1997-2001, 2003-2022 Free Software Foundation, Inc.
37566 #
37567 # This file is free software; the Free Software Foundation
37568 # gives unlimited permission to copy and/or distribute it,
37569 @@ -63,8 +63,8 @@ AC_DEFUN([gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK],
37570 # Guess no on native Windows.
37571 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
37572 *)
37573 - # If we don't know, assume the worst.
37574 - gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
37575 + # If we don't know, obey --enable-cross-guesses.
37576 + gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
37577 esac
37578 ])
37579 rm -f conftest.sym conftest.file
37580
37581 diff --git a/autotools/m4/malloc.m4 b/autotools/m4/malloc.m4
37582 index f78a484..6b76c1e 100644
37583 --- a/autotools/m4/malloc.m4
37584 +++ b/autotools/m4/malloc.m4
37585 @@ -1,29 +1,21 @@
37586 -# malloc.m4 serial 17
37587 -dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
37588 +# malloc.m4 serial 28
37589 +dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
37590 dnl This file is free software; the Free Software Foundation
37591 dnl gives unlimited permission to copy and/or distribute it,
37592 dnl with or without modifications, as long as this notice is preserved.
37593
37594 -m4_version_prereq([2.70], [] ,[
37595 -
37596 # This is adapted with modifications from upstream Autoconf here:
37597 -# https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=04be2b7a29d65d9a08e64e8e56e594c91749598c
37598 +# https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/functions.m4?id=v2.70#n949
37599 AC_DEFUN([_AC_FUNC_MALLOC_IF],
37600 [
37601 - AC_REQUIRE([AC_HEADER_STDC])dnl
37602 AC_REQUIRE([AC_CANONICAL_HOST])dnl for cross-compiles
37603 - AC_CHECK_HEADERS([stdlib.h])
37604 - AC_CACHE_CHECK([for GNU libc compatible malloc],
37605 + AC_CACHE_CHECK([whether malloc (0) returns nonnull],
37606 [ac_cv_func_malloc_0_nonnull],
37607 [AC_RUN_IFELSE(
37608 [AC_LANG_PROGRAM(
37609 - [[#if defined STDC_HEADERS || defined HAVE_STDLIB_H
37610 - # include <stdlib.h>
37611 - #else
37612 - char *malloc ();
37613 - #endif
37614 + [[#include <stdlib.h>
37615 ]],
37616 - [[char *p = malloc (0);
37617 + [[void *p = malloc (0);
37618 int result = !p;
37619 free (p);
37620 return result;]])
37621 @@ -32,70 +24,152 @@ AC_DEFUN([_AC_FUNC_MALLOC_IF],
37622 [ac_cv_func_malloc_0_nonnull=no],
37623 [case "$host_os" in
37624 # Guess yes on platforms where we know the result.
37625 - *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
37626 - | hpux* | solaris* | cygwin* | mingw*)
37627 - ac_cv_func_malloc_0_nonnull=yes ;;
37628 - # If we don't know, assume the worst.
37629 - *) ac_cv_func_malloc_0_nonnull=no ;;
37630 + *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
37631 + | gnu* | *-musl* | midnightbsd* \
37632 + | hpux* | solaris* | cygwin* | mingw* | msys* )
37633 + ac_cv_func_malloc_0_nonnull="guessing yes" ;;
37634 + # If we don't know, obey --enable-cross-guesses.
37635 + *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
37636 esac
37637 ])
37638 ])
37639 - AS_IF([test $ac_cv_func_malloc_0_nonnull = yes], [$1], [$2])
37640 + AS_CASE([$ac_cv_func_malloc_0_nonnull], [*yes], [$1], [$2])
37641 ])# _AC_FUNC_MALLOC_IF
37642
37643 -])
37644 -
37645 # gl_FUNC_MALLOC_GNU
37646 # ------------------
37647 -# Test whether 'malloc (0)' is handled like in GNU libc, and replace malloc if
37648 -# it is not.
37649 +# Replace malloc if it is not compatible with GNU libc.
37650 AC_DEFUN([gl_FUNC_MALLOC_GNU],
37651 [
37652 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
37653 - dnl _AC_FUNC_MALLOC_IF is defined in Autoconf.
37654 - _AC_FUNC_MALLOC_IF(
37655 - [AC_DEFINE([HAVE_MALLOC_GNU], [1],
37656 - [Define to 1 if your system has a GNU libc compatible 'malloc'
37657 - function, and to 0 otherwise.])],
37658 - [AC_DEFINE([HAVE_MALLOC_GNU], [0])
37659 - REPLACE_MALLOC=1
37660 + AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
37661 + REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX"
37662 + if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then
37663 + _AC_FUNC_MALLOC_IF([], [REPLACE_MALLOC_FOR_MALLOC_GNU=1])
37664 + fi
37665 +])
37666 +
37667 +# gl_FUNC_MALLOC_PTRDIFF
37668 +# ----------------------
37669 +# Test whether malloc (N) reliably fails when N exceeds PTRDIFF_MAX,
37670 +# and replace malloc otherwise.
37671 +AC_DEFUN([gl_FUNC_MALLOC_PTRDIFF],
37672 +[
37673 + AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
37674 + AC_REQUIRE([gl_CHECK_MALLOC_PTRDIFF])
37675 + test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1
37676 +])
37677 +
37678 +# Test whether malloc, realloc, calloc refuse to create objects
37679 +# larger than what can be expressed in ptrdiff_t.
37680 +# Set gl_cv_func_malloc_gnu to yes or no accordingly.
37681 +AC_DEFUN([gl_CHECK_MALLOC_PTRDIFF],
37682 +[
37683 + AC_CACHE_CHECK([whether malloc is ptrdiff_t safe],
37684 + [gl_cv_malloc_ptrdiff],
37685 + [AC_COMPILE_IFELSE(
37686 + [AC_LANG_PROGRAM(
37687 + [[#include <stdint.h>
37688 + ]],
37689 + [[/* 64-bit ptrdiff_t is so wide that no practical platform
37690 + can exceed it. */
37691 + #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
37692 +
37693 + /* On rare machines where size_t fits in ptrdiff_t there
37694 + is no problem. */
37695 + #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
37696 +
37697 + /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
37698 + bounds even on 32-bit platforms. We don't know which
37699 + non-glibc systems are safe. */
37700 + #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
37701 +
37702 + #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
37703 + return 0;
37704 + #else
37705 + #error "malloc might not be ptrdiff_t safe"
37706 + syntax error
37707 + #endif
37708 + ]])],
37709 + [gl_cv_malloc_ptrdiff=yes],
37710 + [gl_cv_malloc_ptrdiff=no])
37711 ])
37712 ])
37713
37714 # gl_FUNC_MALLOC_POSIX
37715 # --------------------
37716 # Test whether 'malloc' is POSIX compliant (sets errno to ENOMEM when it
37717 -# fails), and replace malloc if it is not.
37718 +# fails, and doesn't mess up with ptrdiff_t overflow), and replace
37719 +# malloc if it is not.
37720 AC_DEFUN([gl_FUNC_MALLOC_POSIX],
37721 [
37722 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
37723 + AC_REQUIRE([gl_FUNC_MALLOC_PTRDIFF])
37724 AC_REQUIRE([gl_CHECK_MALLOC_POSIX])
37725 - if test $gl_cv_func_malloc_posix = yes; then
37726 + if test "$gl_cv_func_malloc_posix" = yes; then
37727 AC_DEFINE([HAVE_MALLOC_POSIX], [1],
37728 - [Define if the 'malloc' function is POSIX compliant.])
37729 + [Define if malloc, realloc, and calloc set errno on allocation failure.])
37730 else
37731 - REPLACE_MALLOC=1
37732 + REPLACE_MALLOC_FOR_MALLOC_POSIX=1
37733 fi
37734 ])
37735
37736 -# Test whether malloc, realloc, calloc are POSIX compliant,
37737 +# Test whether malloc, realloc, calloc set errno to ENOMEM on failure.
37738 # Set gl_cv_func_malloc_posix to yes or no accordingly.
37739 AC_DEFUN([gl_CHECK_MALLOC_POSIX],
37740 [
37741 - AC_CACHE_CHECK([whether malloc, realloc, calloc are POSIX compliant],
37742 + AC_REQUIRE([AC_CANONICAL_HOST])
37743 + AC_CACHE_CHECK([whether malloc, realloc, calloc set errno on failure],
37744 [gl_cv_func_malloc_posix],
37745 [
37746 dnl It is too dangerous to try to allocate a large amount of memory:
37747 dnl some systems go to their knees when you do that. So assume that
37748 - dnl all Unix implementations of the function are POSIX compliant.
37749 - AC_COMPILE_IFELSE(
37750 - [AC_LANG_PROGRAM(
37751 - [[]],
37752 - [[#if defined _WIN32 && ! defined __CYGWIN__
37753 - choke me
37754 - #endif
37755 - ]])],
37756 - [gl_cv_func_malloc_posix=yes],
37757 - [gl_cv_func_malloc_posix=no])
37758 + dnl all Unix implementations of the function set errno on failure,
37759 + dnl except on those platforms where we have seen 'test-malloc-gnu',
37760 + dnl 'test-realloc-gnu', 'test-calloc-gnu' fail.
37761 + case "$host_os" in
37762 + mingw*)
37763 + gl_cv_func_malloc_posix=no ;;
37764 + irix* | solaris*)
37765 + dnl On IRIX 6.5, the three functions return NULL with errno unset
37766 + dnl when the argument is larger than PTRDIFF_MAX.
37767 + dnl On Solaris 11.3, the three functions return NULL with errno set
37768 + dnl to EAGAIN, not ENOMEM, when the argument is larger than
37769 + dnl PTRDIFF_MAX.
37770 + dnl Here is a test program:
37771 +m4_divert_push([KILL])
37772 +#include <errno.h>
37773 +#include <stdio.h>
37774 +#include <stdlib.h>
37775 +#define ptrdiff_t long
37776 +#ifndef PTRDIFF_MAX
37777 +# define PTRDIFF_MAX ((ptrdiff_t) ((1UL << (8 * sizeof (ptrdiff_t) - 1)) - 1))
37778 +#endif
37779 +
37780 +int main ()
37781 +{
37782 + void *p;
37783 +
37784 + fprintf (stderr, "PTRDIFF_MAX = %lu\n", (unsigned long) PTRDIFF_MAX);
37785 +
37786 + errno = 0;
37787 + p = malloc ((unsigned long) PTRDIFF_MAX + 1);
37788 + fprintf (stderr, "p=%p errno=%d\n", p, errno);
37789 +
37790 + errno = 0;
37791 + p = calloc (PTRDIFF_MAX / 2 + 1, 2);
37792 + fprintf (stderr, "p=%p errno=%d\n", p, errno);
37793 +
37794 + errno = 0;
37795 + p = realloc (NULL, (unsigned long) PTRDIFF_MAX + 1);
37796 + fprintf (stderr, "p=%p errno=%d\n", p, errno);
37797 +
37798 + return 0;
37799 +}
37800 +m4_divert_pop([KILL])
37801 + gl_cv_func_malloc_posix=no ;;
37802 + *)
37803 + gl_cv_func_malloc_posix=yes ;;
37804 + esac
37805 ])
37806 ])
37807
37808 diff --git a/autotools/m4/malloca.m4 b/autotools/m4/malloca.m4
37809 index 820f40a..77eb96a 100644
37810 --- a/autotools/m4/malloca.m4
37811 +++ b/autotools/m4/malloca.m4
37812 @@ -1,5 +1,5 @@
37813 -# malloca.m4 serial 1
37814 -dnl Copyright (C) 2003-2004, 2006-2007, 2009-2019 Free Software Foundation,
37815 +# malloca.m4 serial 2
37816 +dnl Copyright (C) 2003-2004, 2006-2007, 2009-2022 Free Software Foundation,
37817 dnl Inc.
37818 dnl This file is free software; the Free Software Foundation
37819 dnl gives unlimited permission to copy and/or distribute it,
37820 @@ -11,5 +11,4 @@ AC_DEFUN([gl_MALLOCA],
37821 dnl @ALLOCA@ and @LTALLOCA@.
37822 dnl gl_FUNC_ALLOCA dnl Already brought in by the module dependencies.
37823 AC_REQUIRE([gl_EEMALLOC])
37824 - AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
37825 ])
37826
37827 diff --git a/autotools/m4/math_h.m4 b/autotools/m4/math_h.m4
37828 index 3d5af84..a08526a 100644
37829 --- a/autotools/m4/math_h.m4
37830 +++ b/autotools/m4/math_h.m4
37831 @@ -1,16 +1,16 @@
37832 -# math_h.m4 serial 119
37833 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
37834 +# math_h.m4 serial 125
37835 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
37836 dnl This file is free software; the Free Software Foundation
37837 dnl gives unlimited permission to copy and/or distribute it,
37838 dnl with or without modifications, as long as this notice is preserved.
37839
37840 -AC_DEFUN([gl_MATH_H],
37841 +AC_DEFUN_ONCE([gl_MATH_H],
37842 [
37843 AC_REQUIRE([gl_MATH_H_DEFAULTS])
37844 gl_CHECK_NEXT_HEADERS([math.h])
37845
37846 AC_CACHE_CHECK([whether NAN macro works], [gl_cv_header_math_nan_works],
37847 - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <math.h>]],
37848 + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]],
37849 [[/* Solaris 10 has a broken definition of NAN. Other platforms
37850 fail to provide NAN, or provide it only in C99 mode; this
37851 test only needs to fail when NAN is provided but wrong. */
37852 @@ -25,7 +25,7 @@ AC_DEFUN([gl_MATH_H],
37853 REPLACE_NAN=1
37854 fi
37855 AC_CACHE_CHECK([whether HUGE_VAL works], [gl_cv_header_math_huge_val_works],
37856 - [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[@%:@include <math.h>]],
37857 + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <math.h>]],
37858 [[/* Solaris 10 has a broken definition of HUGE_VAL. */
37859 double d = HUGE_VAL;
37860 return d == 0;]])],
37861 @@ -53,288 +53,310 @@ AC_DEFUN([gl_MATH_H],
37862 tanf tanl tanhf trunc truncf truncl])
37863 ])
37864
37865 +# gl_MATH_MODULE_INDICATOR([modulename])
37866 +# sets the shell variable that indicates the presence of the given module
37867 +# to a C preprocessor expression that will evaluate to 1.
37868 +# This macro invocation must not occur in macros that are AC_REQUIREd.
37869 AC_DEFUN([gl_MATH_MODULE_INDICATOR],
37870 [
37871 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
37872 - AC_REQUIRE([gl_MATH_H_DEFAULTS])
37873 + dnl Ensure to expand the default settings once only.
37874 + gl_MATH_H_REQUIRE_DEFAULTS
37875 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
37876 dnl Define it also as a C macro, for the benefit of the unit tests.
37877 gl_MODULE_INDICATOR_FOR_TESTS([$1])
37878 ])
37879
37880 +# Initializes the default values for AC_SUBSTed shell variables.
37881 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
37882 +# outside of macros or in macros that are not AC_REQUIREd.
37883 +AC_DEFUN([gl_MATH_H_REQUIRE_DEFAULTS],
37884 +[
37885 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_MATH_H_MODULE_INDICATOR_DEFAULTS], [
37886 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ACOSF])
37887 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ACOSL])
37888 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ASINF])
37889 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ASINL])
37890 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ATANF])
37891 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ATANL])
37892 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ATAN2F])
37893 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CBRT])
37894 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CBRTF])
37895 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CBRTL])
37896 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CEIL])
37897 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CEILF])
37898 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CEILL])
37899 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_COPYSIGN])
37900 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_COPYSIGNF])
37901 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_COPYSIGNL])
37902 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_COSF])
37903 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_COSL])
37904 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_COSHF])
37905 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXPF])
37906 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXPL])
37907 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXP2])
37908 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXP2F])
37909 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXP2L])
37910 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXPM1])
37911 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXPM1F])
37912 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXPM1L])
37913 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FABSF])
37914 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FABSL])
37915 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FLOOR])
37916 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FLOORF])
37917 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FLOORL])
37918 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FMA])
37919 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FMAF])
37920 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FMAL])
37921 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FMOD])
37922 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FMODF])
37923 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FMODL])
37924 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FREXPF])
37925 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FREXP])
37926 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FREXPL])
37927 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_HYPOT])
37928 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_HYPOTF])
37929 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_HYPOTL])
37930 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ILOGB])
37931 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ILOGBF])
37932 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ILOGBL])
37933 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISFINITE])
37934 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISINF])
37935 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNAN])
37936 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNANF])
37937 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNAND])
37938 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISNANL])
37939 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LDEXPF])
37940 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LDEXPL])
37941 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOG])
37942 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOGF])
37943 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOGL])
37944 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOG10])
37945 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOG10F])
37946 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOG10L])
37947 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOG1P])
37948 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOG1PF])
37949 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOG1PL])
37950 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOG2])
37951 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOG2F])
37952 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOG2L])
37953 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOGB])
37954 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOGBF])
37955 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOGBL])
37956 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MODF])
37957 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MODFF])
37958 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MODFL])
37959 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_POWF])
37960 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REMAINDER])
37961 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REMAINDERF])
37962 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REMAINDERL])
37963 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RINT])
37964 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RINTF])
37965 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RINTL])
37966 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ROUND])
37967 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ROUNDF])
37968 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ROUNDL])
37969 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SIGNBIT])
37970 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SINF])
37971 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SINL])
37972 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SINHF])
37973 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SQRTF])
37974 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SQRTL])
37975 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TANF])
37976 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TANL])
37977 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TANHF])
37978 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TRUNC])
37979 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TRUNCF])
37980 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TRUNCL])
37981 + dnl Support Microsoft deprecated alias function names by default.
37982 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_J0], [1])
37983 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_J1], [1])
37984 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_JN], [1])
37985 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_Y0], [1])
37986 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_Y1], [1])
37987 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_YN], [1])
37988 + ])
37989 + m4_require(GL_MODULE_INDICATOR_PREFIX[_MATH_H_MODULE_INDICATOR_DEFAULTS])
37990 + AC_REQUIRE([gl_MATH_H_DEFAULTS])
37991 +])
37992 +
37993 AC_DEFUN([gl_MATH_H_DEFAULTS],
37994 [
37995 - GNULIB_ACOSF=0; AC_SUBST([GNULIB_ACOSF])
37996 - GNULIB_ACOSL=0; AC_SUBST([GNULIB_ACOSL])
37997 - GNULIB_ASINF=0; AC_SUBST([GNULIB_ASINF])
37998 - GNULIB_ASINL=0; AC_SUBST([GNULIB_ASINL])
37999 - GNULIB_ATANF=0; AC_SUBST([GNULIB_ATANF])
38000 - GNULIB_ATANL=0; AC_SUBST([GNULIB_ATANL])
38001 - GNULIB_ATAN2F=0; AC_SUBST([GNULIB_ATAN2F])
38002 - GNULIB_CBRT=0; AC_SUBST([GNULIB_CBRT])
38003 - GNULIB_CBRTF=0; AC_SUBST([GNULIB_CBRTF])
38004 - GNULIB_CBRTL=0; AC_SUBST([GNULIB_CBRTL])
38005 - GNULIB_CEIL=0; AC_SUBST([GNULIB_CEIL])
38006 - GNULIB_CEILF=0; AC_SUBST([GNULIB_CEILF])
38007 - GNULIB_CEILL=0; AC_SUBST([GNULIB_CEILL])
38008 - GNULIB_COPYSIGN=0; AC_SUBST([GNULIB_COPYSIGN])
38009 - GNULIB_COPYSIGNF=0; AC_SUBST([GNULIB_COPYSIGNF])
38010 - GNULIB_COPYSIGNL=0; AC_SUBST([GNULIB_COPYSIGNL])
38011 - GNULIB_COSF=0; AC_SUBST([GNULIB_COSF])
38012 - GNULIB_COSL=0; AC_SUBST([GNULIB_COSL])
38013 - GNULIB_COSHF=0; AC_SUBST([GNULIB_COSHF])
38014 - GNULIB_EXPF=0; AC_SUBST([GNULIB_EXPF])
38015 - GNULIB_EXPL=0; AC_SUBST([GNULIB_EXPL])
38016 - GNULIB_EXP2=0; AC_SUBST([GNULIB_EXP2])
38017 - GNULIB_EXP2F=0; AC_SUBST([GNULIB_EXP2F])
38018 - GNULIB_EXP2L=0; AC_SUBST([GNULIB_EXP2L])
38019 - GNULIB_EXPM1=0; AC_SUBST([GNULIB_EXPM1])
38020 - GNULIB_EXPM1F=0; AC_SUBST([GNULIB_EXPM1F])
38021 - GNULIB_EXPM1L=0; AC_SUBST([GNULIB_EXPM1L])
38022 - GNULIB_FABSF=0; AC_SUBST([GNULIB_FABSF])
38023 - GNULIB_FABSL=0; AC_SUBST([GNULIB_FABSL])
38024 - GNULIB_FLOOR=0; AC_SUBST([GNULIB_FLOOR])
38025 - GNULIB_FLOORF=0; AC_SUBST([GNULIB_FLOORF])
38026 - GNULIB_FLOORL=0; AC_SUBST([GNULIB_FLOORL])
38027 - GNULIB_FMA=0; AC_SUBST([GNULIB_FMA])
38028 - GNULIB_FMAF=0; AC_SUBST([GNULIB_FMAF])
38029 - GNULIB_FMAL=0; AC_SUBST([GNULIB_FMAL])
38030 - GNULIB_FMOD=0; AC_SUBST([GNULIB_FMOD])
38031 - GNULIB_FMODF=0; AC_SUBST([GNULIB_FMODF])
38032 - GNULIB_FMODL=0; AC_SUBST([GNULIB_FMODL])
38033 - GNULIB_FREXPF=0; AC_SUBST([GNULIB_FREXPF])
38034 - GNULIB_FREXP=0; AC_SUBST([GNULIB_FREXP])
38035 - GNULIB_FREXPL=0; AC_SUBST([GNULIB_FREXPL])
38036 - GNULIB_HYPOT=0; AC_SUBST([GNULIB_HYPOT])
38037 - GNULIB_HYPOTF=0; AC_SUBST([GNULIB_HYPOTF])
38038 - GNULIB_HYPOTL=0; AC_SUBST([GNULIB_HYPOTL])
38039 - GNULIB_ILOGB=0; AC_SUBST([GNULIB_ILOGB])
38040 - GNULIB_ILOGBF=0; AC_SUBST([GNULIB_ILOGBF])
38041 - GNULIB_ILOGBL=0; AC_SUBST([GNULIB_ILOGBL])
38042 - GNULIB_ISFINITE=0; AC_SUBST([GNULIB_ISFINITE])
38043 - GNULIB_ISINF=0; AC_SUBST([GNULIB_ISINF])
38044 - GNULIB_ISNAN=0; AC_SUBST([GNULIB_ISNAN])
38045 - GNULIB_ISNANF=0; AC_SUBST([GNULIB_ISNANF])
38046 - GNULIB_ISNAND=0; AC_SUBST([GNULIB_ISNAND])
38047 - GNULIB_ISNANL=0; AC_SUBST([GNULIB_ISNANL])
38048 - GNULIB_LDEXPF=0; AC_SUBST([GNULIB_LDEXPF])
38049 - GNULIB_LDEXPL=0; AC_SUBST([GNULIB_LDEXPL])
38050 - GNULIB_LOG=0; AC_SUBST([GNULIB_LOG])
38051 - GNULIB_LOGF=0; AC_SUBST([GNULIB_LOGF])
38052 - GNULIB_LOGL=0; AC_SUBST([GNULIB_LOGL])
38053 - GNULIB_LOG10=0; AC_SUBST([GNULIB_LOG10])
38054 - GNULIB_LOG10F=0; AC_SUBST([GNULIB_LOG10F])
38055 - GNULIB_LOG10L=0; AC_SUBST([GNULIB_LOG10L])
38056 - GNULIB_LOG1P=0; AC_SUBST([GNULIB_LOG1P])
38057 - GNULIB_LOG1PF=0; AC_SUBST([GNULIB_LOG1PF])
38058 - GNULIB_LOG1PL=0; AC_SUBST([GNULIB_LOG1PL])
38059 - GNULIB_LOG2=0; AC_SUBST([GNULIB_LOG2])
38060 - GNULIB_LOG2F=0; AC_SUBST([GNULIB_LOG2F])
38061 - GNULIB_LOG2L=0; AC_SUBST([GNULIB_LOG2L])
38062 - GNULIB_LOGB=0; AC_SUBST([GNULIB_LOGB])
38063 - GNULIB_LOGBF=0; AC_SUBST([GNULIB_LOGBF])
38064 - GNULIB_LOGBL=0; AC_SUBST([GNULIB_LOGBL])
38065 - GNULIB_MODF=0; AC_SUBST([GNULIB_MODF])
38066 - GNULIB_MODFF=0; AC_SUBST([GNULIB_MODFF])
38067 - GNULIB_MODFL=0; AC_SUBST([GNULIB_MODFL])
38068 - GNULIB_POWF=0; AC_SUBST([GNULIB_POWF])
38069 - GNULIB_REMAINDER=0; AC_SUBST([GNULIB_REMAINDER])
38070 - GNULIB_REMAINDERF=0; AC_SUBST([GNULIB_REMAINDERF])
38071 - GNULIB_REMAINDERL=0; AC_SUBST([GNULIB_REMAINDERL])
38072 - GNULIB_RINT=0; AC_SUBST([GNULIB_RINT])
38073 - GNULIB_RINTF=0; AC_SUBST([GNULIB_RINTF])
38074 - GNULIB_RINTL=0; AC_SUBST([GNULIB_RINTL])
38075 - GNULIB_ROUND=0; AC_SUBST([GNULIB_ROUND])
38076 - GNULIB_ROUNDF=0; AC_SUBST([GNULIB_ROUNDF])
38077 - GNULIB_ROUNDL=0; AC_SUBST([GNULIB_ROUNDL])
38078 - GNULIB_SIGNBIT=0; AC_SUBST([GNULIB_SIGNBIT])
38079 - GNULIB_SINF=0; AC_SUBST([GNULIB_SINF])
38080 - GNULIB_SINL=0; AC_SUBST([GNULIB_SINL])
38081 - GNULIB_SINHF=0; AC_SUBST([GNULIB_SINHF])
38082 - GNULIB_SQRTF=0; AC_SUBST([GNULIB_SQRTF])
38083 - GNULIB_SQRTL=0; AC_SUBST([GNULIB_SQRTL])
38084 - GNULIB_TANF=0; AC_SUBST([GNULIB_TANF])
38085 - GNULIB_TANL=0; AC_SUBST([GNULIB_TANL])
38086 - GNULIB_TANHF=0; AC_SUBST([GNULIB_TANHF])
38087 - GNULIB_TRUNC=0; AC_SUBST([GNULIB_TRUNC])
38088 - GNULIB_TRUNCF=0; AC_SUBST([GNULIB_TRUNCF])
38089 - GNULIB_TRUNCL=0; AC_SUBST([GNULIB_TRUNCL])
38090 dnl Assume proper GNU behavior unless another module says otherwise.
38091 - HAVE_ACOSF=1; AC_SUBST([HAVE_ACOSF])
38092 - HAVE_ACOSL=1; AC_SUBST([HAVE_ACOSL])
38093 - HAVE_ASINF=1; AC_SUBST([HAVE_ASINF])
38094 - HAVE_ASINL=1; AC_SUBST([HAVE_ASINL])
38095 - HAVE_ATANF=1; AC_SUBST([HAVE_ATANF])
38096 - HAVE_ATANL=1; AC_SUBST([HAVE_ATANL])
38097 - HAVE_ATAN2F=1; AC_SUBST([HAVE_ATAN2F])
38098 - HAVE_CBRT=1; AC_SUBST([HAVE_CBRT])
38099 - HAVE_CBRTF=1; AC_SUBST([HAVE_CBRTF])
38100 - HAVE_CBRTL=1; AC_SUBST([HAVE_CBRTL])
38101 - HAVE_COPYSIGN=1; AC_SUBST([HAVE_COPYSIGN])
38102 - HAVE_COPYSIGNL=1; AC_SUBST([HAVE_COPYSIGNL])
38103 - HAVE_COSF=1; AC_SUBST([HAVE_COSF])
38104 - HAVE_COSL=1; AC_SUBST([HAVE_COSL])
38105 - HAVE_COSHF=1; AC_SUBST([HAVE_COSHF])
38106 - HAVE_EXPF=1; AC_SUBST([HAVE_EXPF])
38107 - HAVE_EXPL=1; AC_SUBST([HAVE_EXPL])
38108 - HAVE_EXPM1=1; AC_SUBST([HAVE_EXPM1])
38109 - HAVE_EXPM1F=1; AC_SUBST([HAVE_EXPM1F])
38110 - HAVE_FABSF=1; AC_SUBST([HAVE_FABSF])
38111 - HAVE_FABSL=1; AC_SUBST([HAVE_FABSL])
38112 - HAVE_FMA=1; AC_SUBST([HAVE_FMA])
38113 - HAVE_FMAF=1; AC_SUBST([HAVE_FMAF])
38114 - HAVE_FMAL=1; AC_SUBST([HAVE_FMAL])
38115 - HAVE_FMODF=1; AC_SUBST([HAVE_FMODF])
38116 - HAVE_FMODL=1; AC_SUBST([HAVE_FMODL])
38117 - HAVE_FREXPF=1; AC_SUBST([HAVE_FREXPF])
38118 - HAVE_HYPOTF=1; AC_SUBST([HAVE_HYPOTF])
38119 - HAVE_HYPOTL=1; AC_SUBST([HAVE_HYPOTL])
38120 - HAVE_ILOGB=1; AC_SUBST([HAVE_ILOGB])
38121 - HAVE_ILOGBF=1; AC_SUBST([HAVE_ILOGBF])
38122 - HAVE_ILOGBL=1; AC_SUBST([HAVE_ILOGBL])
38123 - HAVE_ISNANF=1; AC_SUBST([HAVE_ISNANF])
38124 - HAVE_ISNAND=1; AC_SUBST([HAVE_ISNAND])
38125 - HAVE_ISNANL=1; AC_SUBST([HAVE_ISNANL])
38126 - HAVE_LDEXPF=1; AC_SUBST([HAVE_LDEXPF])
38127 - HAVE_LOGF=1; AC_SUBST([HAVE_LOGF])
38128 - HAVE_LOGL=1; AC_SUBST([HAVE_LOGL])
38129 - HAVE_LOG10F=1; AC_SUBST([HAVE_LOG10F])
38130 - HAVE_LOG10L=1; AC_SUBST([HAVE_LOG10L])
38131 - HAVE_LOG1P=1; AC_SUBST([HAVE_LOG1P])
38132 - HAVE_LOG1PF=1; AC_SUBST([HAVE_LOG1PF])
38133 - HAVE_LOG1PL=1; AC_SUBST([HAVE_LOG1PL])
38134 - HAVE_LOGBF=1; AC_SUBST([HAVE_LOGBF])
38135 - HAVE_LOGBL=1; AC_SUBST([HAVE_LOGBL])
38136 - HAVE_MODFF=1; AC_SUBST([HAVE_MODFF])
38137 - HAVE_MODFL=1; AC_SUBST([HAVE_MODFL])
38138 - HAVE_POWF=1; AC_SUBST([HAVE_POWF])
38139 - HAVE_REMAINDER=1; AC_SUBST([HAVE_REMAINDER])
38140 - HAVE_REMAINDERF=1; AC_SUBST([HAVE_REMAINDERF])
38141 - HAVE_RINT=1; AC_SUBST([HAVE_RINT])
38142 - HAVE_RINTL=1; AC_SUBST([HAVE_RINTL])
38143 - HAVE_SINF=1; AC_SUBST([HAVE_SINF])
38144 - HAVE_SINL=1; AC_SUBST([HAVE_SINL])
38145 - HAVE_SINHF=1; AC_SUBST([HAVE_SINHF])
38146 - HAVE_SQRTF=1; AC_SUBST([HAVE_SQRTF])
38147 - HAVE_SQRTL=1; AC_SUBST([HAVE_SQRTL])
38148 - HAVE_TANF=1; AC_SUBST([HAVE_TANF])
38149 - HAVE_TANL=1; AC_SUBST([HAVE_TANL])
38150 - HAVE_TANHF=1; AC_SUBST([HAVE_TANHF])
38151 - HAVE_DECL_ACOSL=1; AC_SUBST([HAVE_DECL_ACOSL])
38152 - HAVE_DECL_ASINL=1; AC_SUBST([HAVE_DECL_ASINL])
38153 - HAVE_DECL_ATANL=1; AC_SUBST([HAVE_DECL_ATANL])
38154 - HAVE_DECL_CBRTF=1; AC_SUBST([HAVE_DECL_CBRTF])
38155 - HAVE_DECL_CBRTL=1; AC_SUBST([HAVE_DECL_CBRTL])
38156 - HAVE_DECL_CEILF=1; AC_SUBST([HAVE_DECL_CEILF])
38157 - HAVE_DECL_CEILL=1; AC_SUBST([HAVE_DECL_CEILL])
38158 - HAVE_DECL_COPYSIGNF=1; AC_SUBST([HAVE_DECL_COPYSIGNF])
38159 - HAVE_DECL_COSL=1; AC_SUBST([HAVE_DECL_COSL])
38160 - HAVE_DECL_EXPL=1; AC_SUBST([HAVE_DECL_EXPL])
38161 - HAVE_DECL_EXP2=1; AC_SUBST([HAVE_DECL_EXP2])
38162 - HAVE_DECL_EXP2F=1; AC_SUBST([HAVE_DECL_EXP2F])
38163 - HAVE_DECL_EXP2L=1; AC_SUBST([HAVE_DECL_EXP2L])
38164 - HAVE_DECL_EXPM1L=1; AC_SUBST([HAVE_DECL_EXPM1L])
38165 - HAVE_DECL_FLOORF=1; AC_SUBST([HAVE_DECL_FLOORF])
38166 - HAVE_DECL_FLOORL=1; AC_SUBST([HAVE_DECL_FLOORL])
38167 - HAVE_DECL_FREXPL=1; AC_SUBST([HAVE_DECL_FREXPL])
38168 - HAVE_DECL_LDEXPL=1; AC_SUBST([HAVE_DECL_LDEXPL])
38169 - HAVE_DECL_LOGL=1; AC_SUBST([HAVE_DECL_LOGL])
38170 - HAVE_DECL_LOG10L=1; AC_SUBST([HAVE_DECL_LOG10L])
38171 - HAVE_DECL_LOG2=1; AC_SUBST([HAVE_DECL_LOG2])
38172 - HAVE_DECL_LOG2F=1; AC_SUBST([HAVE_DECL_LOG2F])
38173 - HAVE_DECL_LOG2L=1; AC_SUBST([HAVE_DECL_LOG2L])
38174 - HAVE_DECL_LOGB=1; AC_SUBST([HAVE_DECL_LOGB])
38175 - HAVE_DECL_REMAINDER=1; AC_SUBST([HAVE_DECL_REMAINDER])
38176 - HAVE_DECL_REMAINDERL=1; AC_SUBST([HAVE_DECL_REMAINDERL])
38177 - HAVE_DECL_RINTF=1; AC_SUBST([HAVE_DECL_RINTF])
38178 - HAVE_DECL_ROUND=1; AC_SUBST([HAVE_DECL_ROUND])
38179 - HAVE_DECL_ROUNDF=1; AC_SUBST([HAVE_DECL_ROUNDF])
38180 - HAVE_DECL_ROUNDL=1; AC_SUBST([HAVE_DECL_ROUNDL])
38181 - HAVE_DECL_SINL=1; AC_SUBST([HAVE_DECL_SINL])
38182 - HAVE_DECL_SQRTL=1; AC_SUBST([HAVE_DECL_SQRTL])
38183 - HAVE_DECL_TANL=1; AC_SUBST([HAVE_DECL_TANL])
38184 - HAVE_DECL_TRUNC=1; AC_SUBST([HAVE_DECL_TRUNC])
38185 - HAVE_DECL_TRUNCF=1; AC_SUBST([HAVE_DECL_TRUNCF])
38186 - HAVE_DECL_TRUNCL=1; AC_SUBST([HAVE_DECL_TRUNCL])
38187 - REPLACE_ACOSF=0; AC_SUBST([REPLACE_ACOSF])
38188 - REPLACE_ASINF=0; AC_SUBST([REPLACE_ASINF])
38189 - REPLACE_ATANF=0; AC_SUBST([REPLACE_ATANF])
38190 - REPLACE_ATAN2F=0; AC_SUBST([REPLACE_ATAN2F])
38191 - REPLACE_CBRTF=0; AC_SUBST([REPLACE_CBRTF])
38192 - REPLACE_CBRTL=0; AC_SUBST([REPLACE_CBRTL])
38193 - REPLACE_CEIL=0; AC_SUBST([REPLACE_CEIL])
38194 - REPLACE_CEILF=0; AC_SUBST([REPLACE_CEILF])
38195 - REPLACE_CEILL=0; AC_SUBST([REPLACE_CEILL])
38196 - REPLACE_COSF=0; AC_SUBST([REPLACE_COSF])
38197 - REPLACE_COSHF=0; AC_SUBST([REPLACE_COSHF])
38198 - REPLACE_EXPF=0; AC_SUBST([REPLACE_EXPF])
38199 - REPLACE_EXPL=0; AC_SUBST([REPLACE_EXPL])
38200 - REPLACE_EXPM1=0; AC_SUBST([REPLACE_EXPM1])
38201 - REPLACE_EXPM1F=0; AC_SUBST([REPLACE_EXPM1F])
38202 - REPLACE_EXPM1L=0; AC_SUBST([REPLACE_EXPM1L])
38203 - REPLACE_EXP2=0; AC_SUBST([REPLACE_EXP2])
38204 - REPLACE_EXP2L=0; AC_SUBST([REPLACE_EXP2L])
38205 - REPLACE_FABSL=0; AC_SUBST([REPLACE_FABSL])
38206 - REPLACE_FLOOR=0; AC_SUBST([REPLACE_FLOOR])
38207 - REPLACE_FLOORF=0; AC_SUBST([REPLACE_FLOORF])
38208 - REPLACE_FLOORL=0; AC_SUBST([REPLACE_FLOORL])
38209 - REPLACE_FMA=0; AC_SUBST([REPLACE_FMA])
38210 - REPLACE_FMAF=0; AC_SUBST([REPLACE_FMAF])
38211 - REPLACE_FMAL=0; AC_SUBST([REPLACE_FMAL])
38212 - REPLACE_FMOD=0; AC_SUBST([REPLACE_FMOD])
38213 - REPLACE_FMODF=0; AC_SUBST([REPLACE_FMODF])
38214 - REPLACE_FMODL=0; AC_SUBST([REPLACE_FMODL])
38215 - REPLACE_FREXPF=0; AC_SUBST([REPLACE_FREXPF])
38216 - REPLACE_FREXP=0; AC_SUBST([REPLACE_FREXP])
38217 - REPLACE_FREXPL=0; AC_SUBST([REPLACE_FREXPL])
38218 - REPLACE_HUGE_VAL=0; AC_SUBST([REPLACE_HUGE_VAL])
38219 - REPLACE_HYPOT=0; AC_SUBST([REPLACE_HYPOT])
38220 - REPLACE_HYPOTF=0; AC_SUBST([REPLACE_HYPOTF])
38221 - REPLACE_HYPOTL=0; AC_SUBST([REPLACE_HYPOTL])
38222 - REPLACE_ILOGB=0; AC_SUBST([REPLACE_ILOGB])
38223 - REPLACE_ILOGBF=0; AC_SUBST([REPLACE_ILOGBF])
38224 - REPLACE_ILOGBL=0; AC_SUBST([REPLACE_ILOGBL])
38225 - REPLACE_ISFINITE=0; AC_SUBST([REPLACE_ISFINITE])
38226 - REPLACE_ISINF=0; AC_SUBST([REPLACE_ISINF])
38227 - REPLACE_ISNAN=0; AC_SUBST([REPLACE_ISNAN])
38228 - REPLACE_LDEXPL=0; AC_SUBST([REPLACE_LDEXPL])
38229 - REPLACE_LOG=0; AC_SUBST([REPLACE_LOG])
38230 - REPLACE_LOGF=0; AC_SUBST([REPLACE_LOGF])
38231 - REPLACE_LOGL=0; AC_SUBST([REPLACE_LOGL])
38232 - REPLACE_LOG10=0; AC_SUBST([REPLACE_LOG10])
38233 - REPLACE_LOG10F=0; AC_SUBST([REPLACE_LOG10F])
38234 - REPLACE_LOG10L=0; AC_SUBST([REPLACE_LOG10L])
38235 - REPLACE_LOG1P=0; AC_SUBST([REPLACE_LOG1P])
38236 - REPLACE_LOG1PF=0; AC_SUBST([REPLACE_LOG1PF])
38237 - REPLACE_LOG1PL=0; AC_SUBST([REPLACE_LOG1PL])
38238 - REPLACE_LOG2=0; AC_SUBST([REPLACE_LOG2])
38239 - REPLACE_LOG2F=0; AC_SUBST([REPLACE_LOG2F])
38240 - REPLACE_LOG2L=0; AC_SUBST([REPLACE_LOG2L])
38241 - REPLACE_LOGB=0; AC_SUBST([REPLACE_LOGB])
38242 - REPLACE_LOGBF=0; AC_SUBST([REPLACE_LOGBF])
38243 - REPLACE_LOGBL=0; AC_SUBST([REPLACE_LOGBL])
38244 - REPLACE_MODF=0; AC_SUBST([REPLACE_MODF])
38245 - REPLACE_MODFF=0; AC_SUBST([REPLACE_MODFF])
38246 - REPLACE_MODFL=0; AC_SUBST([REPLACE_MODFL])
38247 - REPLACE_NAN=0; AC_SUBST([REPLACE_NAN])
38248 - REPLACE_REMAINDER=0; AC_SUBST([REPLACE_REMAINDER])
38249 - REPLACE_REMAINDERF=0; AC_SUBST([REPLACE_REMAINDERF])
38250 - REPLACE_REMAINDERL=0; AC_SUBST([REPLACE_REMAINDERL])
38251 - REPLACE_RINTL=0; AC_SUBST([REPLACE_RINTL])
38252 - REPLACE_ROUND=0; AC_SUBST([REPLACE_ROUND])
38253 - REPLACE_ROUNDF=0; AC_SUBST([REPLACE_ROUNDF])
38254 - REPLACE_ROUNDL=0; AC_SUBST([REPLACE_ROUNDL])
38255 - REPLACE_SIGNBIT=0; AC_SUBST([REPLACE_SIGNBIT])
38256 - REPLACE_SIGNBIT_USING_GCC=0; AC_SUBST([REPLACE_SIGNBIT_USING_GCC])
38257 - REPLACE_SINF=0; AC_SUBST([REPLACE_SINF])
38258 - REPLACE_SINHF=0; AC_SUBST([REPLACE_SINHF])
38259 - REPLACE_SQRTF=0; AC_SUBST([REPLACE_SQRTF])
38260 - REPLACE_SQRTL=0; AC_SUBST([REPLACE_SQRTL])
38261 - REPLACE_TANF=0; AC_SUBST([REPLACE_TANF])
38262 - REPLACE_TANHF=0; AC_SUBST([REPLACE_TANHF])
38263 - REPLACE_TRUNC=0; AC_SUBST([REPLACE_TRUNC])
38264 - REPLACE_TRUNCF=0; AC_SUBST([REPLACE_TRUNCF])
38265 - REPLACE_TRUNCL=0; AC_SUBST([REPLACE_TRUNCL])
38266 + HAVE_ACOSF=1; AC_SUBST([HAVE_ACOSF])
38267 + HAVE_ACOSL=1; AC_SUBST([HAVE_ACOSL])
38268 + HAVE_ASINF=1; AC_SUBST([HAVE_ASINF])
38269 + HAVE_ASINL=1; AC_SUBST([HAVE_ASINL])
38270 + HAVE_ATANF=1; AC_SUBST([HAVE_ATANF])
38271 + HAVE_ATANL=1; AC_SUBST([HAVE_ATANL])
38272 + HAVE_ATAN2F=1; AC_SUBST([HAVE_ATAN2F])
38273 + HAVE_CBRT=1; AC_SUBST([HAVE_CBRT])
38274 + HAVE_CBRTF=1; AC_SUBST([HAVE_CBRTF])
38275 + HAVE_CBRTL=1; AC_SUBST([HAVE_CBRTL])
38276 + HAVE_COPYSIGN=1; AC_SUBST([HAVE_COPYSIGN])
38277 + HAVE_COPYSIGNL=1; AC_SUBST([HAVE_COPYSIGNL])
38278 + HAVE_COSF=1; AC_SUBST([HAVE_COSF])
38279 + HAVE_COSL=1; AC_SUBST([HAVE_COSL])
38280 + HAVE_COSHF=1; AC_SUBST([HAVE_COSHF])
38281 + HAVE_EXPF=1; AC_SUBST([HAVE_EXPF])
38282 + HAVE_EXPL=1; AC_SUBST([HAVE_EXPL])
38283 + HAVE_EXPM1=1; AC_SUBST([HAVE_EXPM1])
38284 + HAVE_EXPM1F=1; AC_SUBST([HAVE_EXPM1F])
38285 + HAVE_FABSF=1; AC_SUBST([HAVE_FABSF])
38286 + HAVE_FABSL=1; AC_SUBST([HAVE_FABSL])
38287 + HAVE_FMA=1; AC_SUBST([HAVE_FMA])
38288 + HAVE_FMAF=1; AC_SUBST([HAVE_FMAF])
38289 + HAVE_FMAL=1; AC_SUBST([HAVE_FMAL])
38290 + HAVE_FMODF=1; AC_SUBST([HAVE_FMODF])
38291 + HAVE_FMODL=1; AC_SUBST([HAVE_FMODL])
38292 + HAVE_FREXPF=1; AC_SUBST([HAVE_FREXPF])
38293 + HAVE_HYPOTF=1; AC_SUBST([HAVE_HYPOTF])
38294 + HAVE_HYPOTL=1; AC_SUBST([HAVE_HYPOTL])
38295 + HAVE_ILOGB=1; AC_SUBST([HAVE_ILOGB])
38296 + HAVE_ILOGBF=1; AC_SUBST([HAVE_ILOGBF])
38297 + HAVE_ILOGBL=1; AC_SUBST([HAVE_ILOGBL])
38298 + HAVE_ISNANF=1; AC_SUBST([HAVE_ISNANF])
38299 + HAVE_ISNAND=1; AC_SUBST([HAVE_ISNAND])
38300 + HAVE_ISNANL=1; AC_SUBST([HAVE_ISNANL])
38301 + HAVE_LDEXPF=1; AC_SUBST([HAVE_LDEXPF])
38302 + HAVE_LOGF=1; AC_SUBST([HAVE_LOGF])
38303 + HAVE_LOGL=1; AC_SUBST([HAVE_LOGL])
38304 + HAVE_LOG10F=1; AC_SUBST([HAVE_LOG10F])
38305 + HAVE_LOG10L=1; AC_SUBST([HAVE_LOG10L])
38306 + HAVE_LOG1P=1; AC_SUBST([HAVE_LOG1P])
38307 + HAVE_LOG1PF=1; AC_SUBST([HAVE_LOG1PF])
38308 + HAVE_LOG1PL=1; AC_SUBST([HAVE_LOG1PL])
38309 + HAVE_LOGBF=1; AC_SUBST([HAVE_LOGBF])
38310 + HAVE_LOGBL=1; AC_SUBST([HAVE_LOGBL])
38311 + HAVE_MODFF=1; AC_SUBST([HAVE_MODFF])
38312 + HAVE_MODFL=1; AC_SUBST([HAVE_MODFL])
38313 + HAVE_POWF=1; AC_SUBST([HAVE_POWF])
38314 + HAVE_REMAINDER=1; AC_SUBST([HAVE_REMAINDER])
38315 + HAVE_REMAINDERF=1; AC_SUBST([HAVE_REMAINDERF])
38316 + HAVE_RINT=1; AC_SUBST([HAVE_RINT])
38317 + HAVE_RINTL=1; AC_SUBST([HAVE_RINTL])
38318 + HAVE_SINF=1; AC_SUBST([HAVE_SINF])
38319 + HAVE_SINL=1; AC_SUBST([HAVE_SINL])
38320 + HAVE_SINHF=1; AC_SUBST([HAVE_SINHF])
38321 + HAVE_SQRTF=1; AC_SUBST([HAVE_SQRTF])
38322 + HAVE_SQRTL=1; AC_SUBST([HAVE_SQRTL])
38323 + HAVE_TANF=1; AC_SUBST([HAVE_TANF])
38324 + HAVE_TANL=1; AC_SUBST([HAVE_TANL])
38325 + HAVE_TANHF=1; AC_SUBST([HAVE_TANHF])
38326 + HAVE_DECL_ACOSL=1; AC_SUBST([HAVE_DECL_ACOSL])
38327 + HAVE_DECL_ASINL=1; AC_SUBST([HAVE_DECL_ASINL])
38328 + HAVE_DECL_ATANL=1; AC_SUBST([HAVE_DECL_ATANL])
38329 + HAVE_DECL_CBRTF=1; AC_SUBST([HAVE_DECL_CBRTF])
38330 + HAVE_DECL_CBRTL=1; AC_SUBST([HAVE_DECL_CBRTL])
38331 + HAVE_DECL_CEILF=1; AC_SUBST([HAVE_DECL_CEILF])
38332 + HAVE_DECL_CEILL=1; AC_SUBST([HAVE_DECL_CEILL])
38333 + HAVE_DECL_COPYSIGNF=1; AC_SUBST([HAVE_DECL_COPYSIGNF])
38334 + HAVE_DECL_COSL=1; AC_SUBST([HAVE_DECL_COSL])
38335 + HAVE_DECL_EXPL=1; AC_SUBST([HAVE_DECL_EXPL])
38336 + HAVE_DECL_EXP2=1; AC_SUBST([HAVE_DECL_EXP2])
38337 + HAVE_DECL_EXP2F=1; AC_SUBST([HAVE_DECL_EXP2F])
38338 + HAVE_DECL_EXP2L=1; AC_SUBST([HAVE_DECL_EXP2L])
38339 + HAVE_DECL_EXPM1L=1; AC_SUBST([HAVE_DECL_EXPM1L])
38340 + HAVE_DECL_FLOORF=1; AC_SUBST([HAVE_DECL_FLOORF])
38341 + HAVE_DECL_FLOORL=1; AC_SUBST([HAVE_DECL_FLOORL])
38342 + HAVE_DECL_FREXPL=1; AC_SUBST([HAVE_DECL_FREXPL])
38343 + HAVE_DECL_LDEXPL=1; AC_SUBST([HAVE_DECL_LDEXPL])
38344 + HAVE_DECL_LOGL=1; AC_SUBST([HAVE_DECL_LOGL])
38345 + HAVE_DECL_LOG10L=1; AC_SUBST([HAVE_DECL_LOG10L])
38346 + HAVE_DECL_LOG2=1; AC_SUBST([HAVE_DECL_LOG2])
38347 + HAVE_DECL_LOG2F=1; AC_SUBST([HAVE_DECL_LOG2F])
38348 + HAVE_DECL_LOG2L=1; AC_SUBST([HAVE_DECL_LOG2L])
38349 + HAVE_DECL_LOGB=1; AC_SUBST([HAVE_DECL_LOGB])
38350 + HAVE_DECL_REMAINDER=1; AC_SUBST([HAVE_DECL_REMAINDER])
38351 + HAVE_DECL_REMAINDERL=1; AC_SUBST([HAVE_DECL_REMAINDERL])
38352 + HAVE_DECL_RINTF=1; AC_SUBST([HAVE_DECL_RINTF])
38353 + HAVE_DECL_ROUND=1; AC_SUBST([HAVE_DECL_ROUND])
38354 + HAVE_DECL_ROUNDF=1; AC_SUBST([HAVE_DECL_ROUNDF])
38355 + HAVE_DECL_ROUNDL=1; AC_SUBST([HAVE_DECL_ROUNDL])
38356 + HAVE_DECL_SINL=1; AC_SUBST([HAVE_DECL_SINL])
38357 + HAVE_DECL_SQRTL=1; AC_SUBST([HAVE_DECL_SQRTL])
38358 + HAVE_DECL_TANL=1; AC_SUBST([HAVE_DECL_TANL])
38359 + HAVE_DECL_TRUNC=1; AC_SUBST([HAVE_DECL_TRUNC])
38360 + HAVE_DECL_TRUNCF=1; AC_SUBST([HAVE_DECL_TRUNCF])
38361 + HAVE_DECL_TRUNCL=1; AC_SUBST([HAVE_DECL_TRUNCL])
38362 + REPLACE_ACOSF=0; AC_SUBST([REPLACE_ACOSF])
38363 + REPLACE_ASINF=0; AC_SUBST([REPLACE_ASINF])
38364 + REPLACE_ATANF=0; AC_SUBST([REPLACE_ATANF])
38365 + REPLACE_ATAN2F=0; AC_SUBST([REPLACE_ATAN2F])
38366 + REPLACE_CBRTF=0; AC_SUBST([REPLACE_CBRTF])
38367 + REPLACE_CBRTL=0; AC_SUBST([REPLACE_CBRTL])
38368 + REPLACE_CEIL=0; AC_SUBST([REPLACE_CEIL])
38369 + REPLACE_CEILF=0; AC_SUBST([REPLACE_CEILF])
38370 + REPLACE_CEILL=0; AC_SUBST([REPLACE_CEILL])
38371 + REPLACE_COSF=0; AC_SUBST([REPLACE_COSF])
38372 + REPLACE_COSHF=0; AC_SUBST([REPLACE_COSHF])
38373 + REPLACE_EXPF=0; AC_SUBST([REPLACE_EXPF])
38374 + REPLACE_EXPL=0; AC_SUBST([REPLACE_EXPL])
38375 + REPLACE_EXPM1=0; AC_SUBST([REPLACE_EXPM1])
38376 + REPLACE_EXPM1F=0; AC_SUBST([REPLACE_EXPM1F])
38377 + REPLACE_EXPM1L=0; AC_SUBST([REPLACE_EXPM1L])
38378 + REPLACE_EXP2=0; AC_SUBST([REPLACE_EXP2])
38379 + REPLACE_EXP2L=0; AC_SUBST([REPLACE_EXP2L])
38380 + REPLACE_FABSL=0; AC_SUBST([REPLACE_FABSL])
38381 + REPLACE_FLOOR=0; AC_SUBST([REPLACE_FLOOR])
38382 + REPLACE_FLOORF=0; AC_SUBST([REPLACE_FLOORF])
38383 + REPLACE_FLOORL=0; AC_SUBST([REPLACE_FLOORL])
38384 + REPLACE_FMA=0; AC_SUBST([REPLACE_FMA])
38385 + REPLACE_FMAF=0; AC_SUBST([REPLACE_FMAF])
38386 + REPLACE_FMAL=0; AC_SUBST([REPLACE_FMAL])
38387 + REPLACE_FMOD=0; AC_SUBST([REPLACE_FMOD])
38388 + REPLACE_FMODF=0; AC_SUBST([REPLACE_FMODF])
38389 + REPLACE_FMODL=0; AC_SUBST([REPLACE_FMODL])
38390 + REPLACE_FREXPF=0; AC_SUBST([REPLACE_FREXPF])
38391 + REPLACE_FREXP=0; AC_SUBST([REPLACE_FREXP])
38392 + REPLACE_FREXPL=0; AC_SUBST([REPLACE_FREXPL])
38393 + REPLACE_HUGE_VAL=0; AC_SUBST([REPLACE_HUGE_VAL])
38394 + REPLACE_HYPOT=0; AC_SUBST([REPLACE_HYPOT])
38395 + REPLACE_HYPOTF=0; AC_SUBST([REPLACE_HYPOTF])
38396 + REPLACE_HYPOTL=0; AC_SUBST([REPLACE_HYPOTL])
38397 + REPLACE_ILOGB=0; AC_SUBST([REPLACE_ILOGB])
38398 + REPLACE_ILOGBF=0; AC_SUBST([REPLACE_ILOGBF])
38399 + REPLACE_ILOGBL=0; AC_SUBST([REPLACE_ILOGBL])
38400 + REPLACE_ISFINITE=0; AC_SUBST([REPLACE_ISFINITE])
38401 + REPLACE_ISINF=0; AC_SUBST([REPLACE_ISINF])
38402 + REPLACE_ISNAN=0; AC_SUBST([REPLACE_ISNAN])
38403 + REPLACE_LDEXPL=0; AC_SUBST([REPLACE_LDEXPL])
38404 + REPLACE_LOG=0; AC_SUBST([REPLACE_LOG])
38405 + REPLACE_LOGF=0; AC_SUBST([REPLACE_LOGF])
38406 + REPLACE_LOGL=0; AC_SUBST([REPLACE_LOGL])
38407 + REPLACE_LOG10=0; AC_SUBST([REPLACE_LOG10])
38408 + REPLACE_LOG10F=0; AC_SUBST([REPLACE_LOG10F])
38409 + REPLACE_LOG10L=0; AC_SUBST([REPLACE_LOG10L])
38410 + REPLACE_LOG1P=0; AC_SUBST([REPLACE_LOG1P])
38411 + REPLACE_LOG1PF=0; AC_SUBST([REPLACE_LOG1PF])
38412 + REPLACE_LOG1PL=0; AC_SUBST([REPLACE_LOG1PL])
38413 + REPLACE_LOG2=0; AC_SUBST([REPLACE_LOG2])
38414 + REPLACE_LOG2F=0; AC_SUBST([REPLACE_LOG2F])
38415 + REPLACE_LOG2L=0; AC_SUBST([REPLACE_LOG2L])
38416 + REPLACE_LOGB=0; AC_SUBST([REPLACE_LOGB])
38417 + REPLACE_LOGBF=0; AC_SUBST([REPLACE_LOGBF])
38418 + REPLACE_LOGBL=0; AC_SUBST([REPLACE_LOGBL])
38419 + REPLACE_MODF=0; AC_SUBST([REPLACE_MODF])
38420 + REPLACE_MODFF=0; AC_SUBST([REPLACE_MODFF])
38421 + REPLACE_MODFL=0; AC_SUBST([REPLACE_MODFL])
38422 + REPLACE_NAN=0; AC_SUBST([REPLACE_NAN])
38423 + REPLACE_REMAINDER=0; AC_SUBST([REPLACE_REMAINDER])
38424 + REPLACE_REMAINDERF=0; AC_SUBST([REPLACE_REMAINDERF])
38425 + REPLACE_REMAINDERL=0; AC_SUBST([REPLACE_REMAINDERL])
38426 + REPLACE_RINTL=0; AC_SUBST([REPLACE_RINTL])
38427 + REPLACE_ROUND=0; AC_SUBST([REPLACE_ROUND])
38428 + REPLACE_ROUNDF=0; AC_SUBST([REPLACE_ROUNDF])
38429 + REPLACE_ROUNDL=0; AC_SUBST([REPLACE_ROUNDL])
38430 + REPLACE_SIGNBIT=0; AC_SUBST([REPLACE_SIGNBIT])
38431 + REPLACE_SIGNBIT_USING_BUILTINS=0; AC_SUBST([REPLACE_SIGNBIT_USING_BUILTINS])
38432 + REPLACE_SINF=0; AC_SUBST([REPLACE_SINF])
38433 + REPLACE_SINHF=0; AC_SUBST([REPLACE_SINHF])
38434 + REPLACE_SQRTF=0; AC_SUBST([REPLACE_SQRTF])
38435 + REPLACE_SQRTL=0; AC_SUBST([REPLACE_SQRTL])
38436 + REPLACE_TANF=0; AC_SUBST([REPLACE_TANF])
38437 + REPLACE_TANHF=0; AC_SUBST([REPLACE_TANHF])
38438 + REPLACE_TRUNC=0; AC_SUBST([REPLACE_TRUNC])
38439 + REPLACE_TRUNCF=0; AC_SUBST([REPLACE_TRUNCF])
38440 + REPLACE_TRUNCL=0; AC_SUBST([REPLACE_TRUNCL])
38441 ])
38442
38443 # gl_LONG_DOUBLE_VS_DOUBLE
38444
38445 diff --git a/autotools/m4/memchr.m4 b/autotools/m4/memchr.m4
38446 index 0be394d..c7489d8 100644
38447 --- a/autotools/m4/memchr.m4
38448 +++ b/autotools/m4/memchr.m4
38449 @@ -1,5 +1,5 @@
38450 -# memchr.m4 serial 14
38451 -dnl Copyright (C) 2002-2004, 2009-2019 Free Software Foundation, Inc.
38452 +# memchr.m4 serial 18
38453 +dnl Copyright (C) 2002-2004, 2009-2022 Free Software Foundation, Inc.
38454 dnl This file is free software; the Free Software Foundation
38455 dnl gives unlimited permission to copy and/or distribute it,
38456 dnl with or without modifications, as long as this notice is preserved.
38457 @@ -13,27 +13,18 @@ AC_DEFUN_ONCE([gl_FUNC_MEMCHR],
38458 AC_CHECK_HEADERS_ONCE([sys/mman.h])
38459 AC_CHECK_FUNCS_ONCE([mprotect])
38460
38461 - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
38462 - m4_ifdef([gl_FUNC_MEMCHR_OBSOLETE], [
38463 - dnl These days, we assume memchr is present. But if support for old
38464 - dnl platforms is desired:
38465 - AC_CHECK_FUNCS_ONCE([memchr])
38466 - if test $ac_cv_func_memchr = no; then
38467 - HAVE_MEMCHR=0
38468 - fi
38469 - ])
38470 - if test $HAVE_MEMCHR = 1; then
38471 - # Detect platform-specific bugs in some versions of glibc:
38472 - # memchr should not dereference anything with length 0
38473 - # https://bugzilla.redhat.com/show_bug.cgi?id=499689
38474 - # memchr should not dereference overestimated length after a match
38475 - # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
38476 - # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
38477 - # memchr should cast the second argument to 'unsigned char'.
38478 - # This bug exists in Android 4.3.
38479 - # Assume that memchr works on platforms that lack mprotect.
38480 - AC_CACHE_CHECK([whether memchr works], [gl_cv_func_memchr_works],
38481 - [AC_RUN_IFELSE([AC_LANG_PROGRAM([[
38482 + AC_REQUIRE([gl_STRING_H_DEFAULTS])
38483 + # Detect platform-specific bugs in some versions of glibc:
38484 + # memchr should not dereference anything with length 0
38485 + # https://bugzilla.redhat.com/show_bug.cgi?id=499689
38486 + # memchr should not dereference overestimated length after a match
38487 + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
38488 + # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
38489 + # memchr should cast the second argument to 'unsigned char'.
38490 + # This bug exists in Android 4.3.
38491 + # Assume that memchr works on platforms that lack mprotect.
38492 + AC_CACHE_CHECK([whether memchr works], [gl_cv_func_memchr_works],
38493 + [AC_RUN_IFELSE([AC_LANG_PROGRAM([[
38494 #include <string.h>
38495 #if HAVE_SYS_MMAN_H
38496 # include <fcntl.h>
38497 @@ -68,6 +59,7 @@ AC_DEFUN_ONCE([gl_FUNC_MEMCHR],
38498 #endif
38499 if (fence)
38500 {
38501 + /* Test against bugs on glibc systems. */
38502 if (memchr (fence, 0, 0))
38503 result |= 1;
38504 strcpy (fence - 9, "12345678");
38505 @@ -75,6 +67,9 @@ AC_DEFUN_ONCE([gl_FUNC_MEMCHR],
38506 result |= 2;
38507 if (memchr (fence - 1, 0, 3) != fence - 1)
38508 result |= 4;
38509 + /* Test against bug on AIX 7.2. */
38510 + if (memchr (fence - 4, '6', 16) != fence - 4)
38511 + result |= 8;
38512 }
38513 /* Test against bug on Android 4.3. */
38514 {
38515 @@ -83,27 +78,26 @@ AC_DEFUN_ONCE([gl_FUNC_MEMCHR],
38516 input[1] = 'b';
38517 input[2] = 'c';
38518 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
38519 - result |= 8;
38520 + result |= 16;
38521 }
38522 return result;
38523 ]])],
38524 - [gl_cv_func_memchr_works=yes],
38525 - [gl_cv_func_memchr_works=no],
38526 - [case "$host_os" in
38527 - # Guess no on Android.
38528 - linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
38529 - # Guess yes on native Windows.
38530 - mingw*) gl_cv_func_memchr_works="guessing yes" ;;
38531 - # Be pessimistic for now.
38532 - *) gl_cv_func_memchr_works="guessing no" ;;
38533 - esac
38534 - ])
38535 - ])
38536 - case "$gl_cv_func_memchr_works" in
38537 - *yes) ;;
38538 - *) REPLACE_MEMCHR=1 ;;
38539 - esac
38540 - fi
38541 + [gl_cv_func_memchr_works=yes],
38542 + [gl_cv_func_memchr_works=no],
38543 + [case "$host_os" in
38544 + # Guess no on Android.
38545 + linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
38546 + # Guess yes on native Windows.
38547 + mingw*) gl_cv_func_memchr_works="guessing yes" ;;
38548 + # If we don't know, obey --enable-cross-guesses.
38549 + *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
38550 + esac
38551 + ])
38552 + ])
38553 + case "$gl_cv_func_memchr_works" in
38554 + *yes) ;;
38555 + *) REPLACE_MEMCHR=1 ;;
38556 + esac
38557 ])
38558
38559 # Prerequisites of lib/memchr.c.
38560
38561 diff --git a/autotools/m4/mempcpy.m4 b/autotools/m4/mempcpy.m4
38562 index b6090ee..1107eb4 100644
38563 --- a/autotools/m4/mempcpy.m4
38564 +++ b/autotools/m4/mempcpy.m4
38565 @@ -1,5 +1,5 @@
38566 -# mempcpy.m4 serial 11
38567 -dnl Copyright (C) 2003-2004, 2006-2007, 2009-2019 Free Software Foundation,
38568 +# mempcpy.m4 serial 12
38569 +dnl Copyright (C) 2003-2004, 2006-2007, 2009-2022 Free Software Foundation,
38570 dnl Inc.
38571 dnl This file is free software; the Free Software Foundation
38572 dnl gives unlimited permission to copy and/or distribute it,
38573 @@ -13,7 +13,7 @@ AC_DEFUN([gl_FUNC_MEMPCPY],
38574 dnl The mempcpy() declaration in lib/string.in.h uses 'restrict'.
38575 AC_REQUIRE([AC_C_RESTRICT])
38576
38577 - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
38578 + AC_REQUIRE([gl_STRING_H_DEFAULTS])
38579 AC_CHECK_FUNCS([mempcpy])
38580 if test $ac_cv_func_mempcpy = no; then
38581 HAVE_MEMPCPY=0
38582
38583 diff --git a/autotools/m4/memrchr.m4 b/autotools/m4/memrchr.m4
38584 index e907590..ec5e208 100644
38585 --- a/autotools/m4/memrchr.m4
38586 +++ b/autotools/m4/memrchr.m4
38587 @@ -1,5 +1,5 @@
38588 -# memrchr.m4 serial 10
38589 -dnl Copyright (C) 2002-2003, 2005-2007, 2009-2019 Free Software Foundation,
38590 +# memrchr.m4 serial 11
38591 +dnl Copyright (C) 2002-2003, 2005-2007, 2009-2022 Free Software Foundation,
38592 dnl Inc.
38593 dnl This file is free software; the Free Software Foundation
38594 dnl gives unlimited permission to copy and/or distribute it,
38595 @@ -10,7 +10,7 @@ AC_DEFUN([gl_FUNC_MEMRCHR],
38596 dnl Persuade glibc <string.h> to declare memrchr().
38597 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
38598
38599 - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
38600 + AC_REQUIRE([gl_STRING_H_DEFAULTS])
38601 AC_CHECK_DECLS_ONCE([memrchr])
38602 if test $ac_cv_have_decl_memrchr = no; then
38603 HAVE_DECL_MEMRCHR=0
38604
38605 diff --git a/autotools/m4/minmax.m4 b/autotools/m4/minmax.m4
38606 new file mode 100644
38607 index 0000000..b976739
38608 --- /dev/null
38609 +++ b/autotools/m4/minmax.m4
38610 @@ -0,0 +1,44 @@
38611 +# minmax.m4 serial 4
38612 +dnl Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc.
38613 +dnl This file is free software; the Free Software Foundation
38614 +dnl gives unlimited permission to copy and/or distribute it,
38615 +dnl with or without modifications, as long as this notice is preserved.
38616 +
38617 +AC_PREREQ([2.53])
38618 +
38619 +AC_DEFUN([gl_MINMAX],
38620 +[
38621 + AC_REQUIRE([gl_PREREQ_MINMAX])
38622 +])
38623 +
38624 +# Prerequisites of lib/minmax.h.
38625 +AC_DEFUN([gl_PREREQ_MINMAX],
38626 +[
38627 + gl_MINMAX_IN_HEADER([limits.h])
38628 + gl_MINMAX_IN_HEADER([sys/param.h])
38629 +])
38630 +
38631 +dnl gl_MINMAX_IN_HEADER(HEADER)
38632 +dnl The parameter has to be a literal header name; it cannot be macro,
38633 +dnl nor a shell variable. (Because autoheader collects only AC_DEFINE
38634 +dnl invocations with a literal macro name.)
38635 +AC_DEFUN([gl_MINMAX_IN_HEADER],
38636 +[
38637 + m4_pushdef([header], AS_TR_SH([$1]))
38638 + m4_pushdef([HEADER], AS_TR_CPP([$1]))
38639 + AC_CACHE_CHECK([whether <$1> defines MIN and MAX],
38640 + [gl_cv_minmax_in_]header,
38641 + [AC_COMPILE_IFELSE(
38642 + [AC_LANG_PROGRAM(
38643 + [[#include <$1>
38644 + int x = MIN (42, 17);]],
38645 + [[]])],
38646 + [gl_cv_minmax_in_]header[=yes],
38647 + [gl_cv_minmax_in_]header[=no])])
38648 + if test $gl_cv_minmax_in_[]header = yes; then
38649 + AC_DEFINE([HAVE_MINMAX_IN_]HEADER, 1,
38650 + [Define to 1 if <$1> defines the MIN and MAX macros.])
38651 + fi
38652 + m4_popdef([HEADER])
38653 + m4_popdef([header])
38654 +])
38655
38656 diff --git a/autotools/m4/mkdir.m4 b/autotools/m4/mkdir.m4
38657 index 4cd9590..8b78ce9 100644
38658 --- a/autotools/m4/mkdir.m4
38659 +++ b/autotools/m4/mkdir.m4
38660 @@ -1,6 +1,6 @@
38661 -# serial 14
38662 +# serial 17
38663
38664 -# Copyright (C) 2001, 2003-2004, 2006, 2008-2019 Free Software Foundation, Inc.
38665 +# Copyright (C) 2001, 2003-2004, 2006, 2008-2022 Free Software Foundation, Inc.
38666 # This file is free software; the Free Software Foundation
38667 # gives unlimited permission to copy and/or distribute it,
38668 # with or without modifications, as long as this notice is preserved.
38669 @@ -16,33 +16,34 @@ AC_DEFUN([gl_FUNC_MKDIR],
38670 AC_CACHE_CHECK([whether mkdir handles trailing slash],
38671 [gl_cv_func_mkdir_trailing_slash_works],
38672 [rm -rf conftest.dir
38673 - AC_RUN_IFELSE([AC_LANG_PROGRAM([[
38674 -# include <sys/types.h>
38675 -# include <sys/stat.h>
38676 -]], [return mkdir ("conftest.dir/", 0700);])],
38677 - [gl_cv_func_mkdir_trailing_slash_works=yes],
38678 - [gl_cv_func_mkdir_trailing_slash_works=no],
38679 - [case "$host_os" in
38680 - # Guess yes on Linux systems.
38681 - linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
38682 - # Guess yes on glibc systems.
38683 - *-gnu* | gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
38684 - # Guess yes on MSVC, no on mingw.
38685 - mingw*) AC_EGREP_CPP([Known], [
38686 + AC_RUN_IFELSE(
38687 + [AC_LANG_PROGRAM([[
38688 + #include <sys/types.h>
38689 + #include <sys/stat.h>
38690 + ]GL_MDA_DEFINES],
38691 + [[return mkdir ("conftest.dir/", 0700);]])],
38692 + [gl_cv_func_mkdir_trailing_slash_works=yes],
38693 + [gl_cv_func_mkdir_trailing_slash_works=no],
38694 + [case "$host_os" in
38695 + # Guess yes on Linux systems.
38696 + linux-* | linux) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
38697 + # Guess yes on glibc systems.
38698 + *-gnu* | gnu*) gl_cv_func_mkdir_trailing_slash_works="guessing yes" ;;
38699 + # Guess yes on MSVC, no on mingw.
38700 + mingw*) AC_EGREP_CPP([Known], [
38701 #ifdef _MSC_VER
38702 Known
38703 #endif
38704 - ],
38705 - [gl_cv_func_mkdir_trailing_slash_works="guessing yes"],
38706 - [gl_cv_func_mkdir_trailing_slash_works="guessing no"])
38707 - ;;
38708 - # If we don't know, assume the worst.
38709 - *) gl_cv_func_mkdir_trailing_slash_works="guessing no" ;;
38710 - esac
38711 - ])
38712 - rm -rf conftest.dir
38713 - ]
38714 - )
38715 + ],
38716 + [gl_cv_func_mkdir_trailing_slash_works="guessing yes"],
38717 + [gl_cv_func_mkdir_trailing_slash_works="guessing no"])
38718 + ;;
38719 + # If we don't know, obey --enable-cross-guesses.
38720 + *) gl_cv_func_mkdir_trailing_slash_works="$gl_cross_guess_normal" ;;
38721 + esac
38722 + ])
38723 + rm -rf conftest.dir
38724 + ])
38725 case "$gl_cv_func_mkdir_trailing_slash_works" in
38726 *yes) ;;
38727 *)
38728 @@ -53,22 +54,26 @@ AC_DEFUN([gl_FUNC_MKDIR],
38729 AC_CACHE_CHECK([whether mkdir handles trailing dot],
38730 [gl_cv_func_mkdir_trailing_dot_works],
38731 [rm -rf conftest.dir
38732 - AC_RUN_IFELSE([AC_LANG_PROGRAM([[
38733 -# include <sys/types.h>
38734 -# include <sys/stat.h>
38735 -]], [return !mkdir ("conftest.dir/./", 0700);])],
38736 - [gl_cv_func_mkdir_trailing_dot_works=yes],
38737 - [gl_cv_func_mkdir_trailing_dot_works=no],
38738 - [case "$host_os" in
38739 - # Guess yes on glibc systems.
38740 - *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
38741 - # Guess no on native Windows.
38742 - mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
38743 - # If we don't know, assume the worst.
38744 - *) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
38745 - esac
38746 - ])
38747 - rm -rf conftest.dir
38748 + AC_RUN_IFELSE(
38749 + [AC_LANG_PROGRAM([[
38750 + #include <sys/types.h>
38751 + #include <sys/stat.h>
38752 + ]GL_MDA_DEFINES],
38753 + [[return !mkdir ("conftest.dir/./", 0700);]])],
38754 + [gl_cv_func_mkdir_trailing_dot_works=yes],
38755 + [gl_cv_func_mkdir_trailing_dot_works=no],
38756 + [case "$host_os" in
38757 + # Guess yes on glibc systems.
38758 + *-gnu* | gnu*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
38759 + # Guess yes on musl systems.
38760 + *-musl*) gl_cv_func_mkdir_trailing_dot_works="guessing yes" ;;
38761 + # Guess no on native Windows.
38762 + mingw*) gl_cv_func_mkdir_trailing_dot_works="guessing no" ;;
38763 + # If we don't know, obey --enable-cross-guesses.
38764 + *) gl_cv_func_mkdir_trailing_dot_works="$gl_cross_guess_normal" ;;
38765 + esac
38766 + ])
38767 + rm -rf conftest.dir
38768 ]
38769 )
38770 case "$gl_cv_func_mkdir_trailing_dot_works" in
38771
38772 diff --git a/autotools/m4/mkdirat.m4 b/autotools/m4/mkdirat.m4
38773 index 7671993..77a5cbf 100644
38774 --- a/autotools/m4/mkdirat.m4
38775 +++ b/autotools/m4/mkdirat.m4
38776 @@ -1,5 +1,5 @@
38777 # mkdirat.m4 serial 1
38778 -dnl Copyright (C) 2004-2019 Free Software Foundation, Inc.
38779 +dnl Copyright (C) 2004-2022 Free Software Foundation, Inc.
38780 dnl This file is free software; the Free Software Foundation
38781 dnl gives unlimited permission to copy and/or distribute it,
38782 dnl with or without modifications, as long as this notice is preserved.
38783
38784 diff --git a/autotools/m4/mmap-anon.m4 b/autotools/m4/mmap-anon.m4
38785 index 50c3808..a4580ff 100644
38786 --- a/autotools/m4/mmap-anon.m4
38787 +++ b/autotools/m4/mmap-anon.m4
38788 @@ -1,5 +1,5 @@
38789 -# mmap-anon.m4 serial 10
38790 -dnl Copyright (C) 2005, 2007, 2009-2019 Free Software Foundation, Inc.
38791 +# mmap-anon.m4 serial 12
38792 +dnl Copyright (C) 2005, 2007, 2009-2022 Free Software Foundation, Inc.
38793 dnl This file is free software; the Free Software Foundation
38794 dnl gives unlimited permission to copy and/or distribute it,
38795 dnl with or without modifications, as long as this notice is preserved.
38796 @@ -9,11 +9,11 @@ dnl with or without modifications, as long as this notice is preserved.
38797 # - On Linux, AIX, OSF/1, Solaris, Cygwin, Interix, Haiku, both MAP_ANONYMOUS
38798 # and MAP_ANON exist and have the same value.
38799 # - On HP-UX, only MAP_ANONYMOUS exists.
38800 -# - On Mac OS X, FreeBSD, NetBSD, OpenBSD, only MAP_ANON exists.
38801 +# - On Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, only MAP_ANON exists.
38802 # - On IRIX, neither exists, and a file descriptor opened to /dev/zero must be
38803 # used.
38804
38805 -AC_DEFUN([gl_FUNC_MMAP_ANON],
38806 +AC_DEFUN_ONCE([gl_FUNC_MMAP_ANON],
38807 [
38808 dnl Persuade glibc <sys/mman.h> to define MAP_ANONYMOUS.
38809 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
38810
38811 diff --git a/autotools/m4/mode_t.m4 b/autotools/m4/mode_t.m4
38812 index ba840dc..e08d27a 100644
38813 --- a/autotools/m4/mode_t.m4
38814 +++ b/autotools/m4/mode_t.m4
38815 @@ -1,5 +1,5 @@
38816 # mode_t.m4 serial 2
38817 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
38818 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
38819 dnl This file is free software; the Free Software Foundation
38820 dnl gives unlimited permission to copy and/or distribute it,
38821 dnl with or without modifications, as long as this notice is preserved.
38822
38823 diff --git a/autotools/m4/msvc-inval.m4 b/autotools/m4/msvc-inval.m4
38824 index 4b95876..b32cf6e 100644
38825 --- a/autotools/m4/msvc-inval.m4
38826 +++ b/autotools/m4/msvc-inval.m4
38827 @@ -1,5 +1,5 @@
38828 # msvc-inval.m4 serial 1
38829 -dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
38830 +dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
38831 dnl This file is free software; the Free Software Foundation
38832 dnl gives unlimited permission to copy and/or distribute it,
38833 dnl with or without modifications, as long as this notice is preserved.
38834
38835 diff --git a/autotools/m4/msvc-nothrow.m4 b/autotools/m4/msvc-nothrow.m4
38836 index 7e73b40..16ceb1f 100644
38837 --- a/autotools/m4/msvc-nothrow.m4
38838 +++ b/autotools/m4/msvc-nothrow.m4
38839 @@ -1,5 +1,5 @@
38840 # msvc-nothrow.m4 serial 1
38841 -dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
38842 +dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
38843 dnl This file is free software; the Free Software Foundation
38844 dnl gives unlimited permission to copy and/or distribute it,
38845 dnl with or without modifications, as long as this notice is preserved.
38846
38847 diff --git a/autotools/m4/multiarch.m4 b/autotools/m4/multiarch.m4
38848 index d48316e..5d94276 100644
38849 --- a/autotools/m4/multiarch.m4
38850 +++ b/autotools/m4/multiarch.m4
38851 @@ -1,5 +1,5 @@
38852 -# multiarch.m4 serial 7
38853 -dnl Copyright (C) 2008-2019 Free Software Foundation, Inc.
38854 +# multiarch.m4 serial 9
38855 +dnl Copyright (C) 2008-2022 Free Software Foundation, Inc.
38856 dnl This file is free software; the Free Software Foundation
38857 dnl gives unlimited permission to copy and/or distribute it,
38858 dnl with or without modifications, as long as this notice is preserved.
38859 @@ -21,37 +21,40 @@ dnl with or without modifications, as long as this notice is preserved.
38860 AC_DEFUN_ONCE([gl_MULTIARCH],
38861 [
38862 dnl Code similar to autoconf-2.63 AC_C_BIGENDIAN.
38863 - gl_cv_c_multiarch=no
38864 - AC_COMPILE_IFELSE(
38865 - [AC_LANG_SOURCE(
38866 - [[#ifndef __APPLE_CC__
38867 - not a universal capable compiler
38868 - #endif
38869 - typedef int dummy;
38870 - ]])],
38871 - [
38872 - dnl Check for potential -arch flags. It is not universal unless
38873 - dnl there are at least two -arch flags with different values.
38874 - arch=
38875 - prev=
38876 - for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
38877 - if test -n "$prev"; then
38878 - case $word in
38879 - i?86 | x86_64 | ppc | ppc64)
38880 - if test -z "$arch" || test "$arch" = "$word"; then
38881 - arch="$word"
38882 - else
38883 - gl_cv_c_multiarch=yes
38884 - fi
38885 - ;;
38886 - esac
38887 - prev=
38888 - else
38889 - if test "x$word" = "x-arch"; then
38890 - prev=arch
38891 - fi
38892 - fi
38893 - done
38894 + AC_CACHE_CHECK([whether the compiler produces multi-arch binaries],
38895 + [gl_cv_c_multiarch],
38896 + [gl_cv_c_multiarch=no
38897 + AC_COMPILE_IFELSE(
38898 + [AC_LANG_SOURCE(
38899 + [[#ifndef __APPLE_CC__
38900 + not a universal capable compiler
38901 + #endif
38902 + typedef int dummy;
38903 + ]])],
38904 + [
38905 + dnl Check for potential -arch flags. It is not universal unless
38906 + dnl there are at least two -arch flags with different values.
38907 + arch=
38908 + prev=
38909 + for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
38910 + if test -n "$prev"; then
38911 + case $word in
38912 + i?86 | x86_64 | ppc | ppc64 | arm | arm64)
38913 + if test -z "$arch" || test "$arch" = "$word"; then
38914 + arch="$word"
38915 + else
38916 + gl_cv_c_multiarch=yes
38917 + fi
38918 + ;;
38919 + esac
38920 + prev=
38921 + else
38922 + if test "x$word" = "x-arch"; then
38923 + prev=arch
38924 + fi
38925 + fi
38926 + done
38927 + ])
38928 ])
38929 if test $gl_cv_c_multiarch = yes; then
38930 APPLE_UNIVERSAL_BUILD=1
38931
38932 diff --git a/autotools/m4/nocrash.m4 b/autotools/m4/nocrash.m4
38933 index 4d9f022..91f00c1 100644
38934 --- a/autotools/m4/nocrash.m4
38935 +++ b/autotools/m4/nocrash.m4
38936 @@ -1,5 +1,5 @@
38937 # nocrash.m4 serial 5
38938 -dnl Copyright (C) 2005, 2009-2019 Free Software Foundation, Inc.
38939 +dnl Copyright (C) 2005, 2009-2022 Free Software Foundation, Inc.
38940 dnl This file is free software; the Free Software Foundation
38941 dnl gives unlimited permission to copy and/or distribute it,
38942 dnl with or without modifications, as long as this notice is preserved.
38943 @@ -53,7 +53,7 @@ nocrash_init (void)
38944 /* Allocate a port on which the thread shall listen for exceptions. */
38945 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
38946 == KERN_SUCCESS) {
38947 - /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
38948 + /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
38949 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
38950 MACH_MSG_TYPE_MAKE_SEND)
38951 == KERN_SUCCESS) {
38952 @@ -72,7 +72,7 @@ nocrash_init (void)
38953 for a particular thread. This has the effect that when our exception
38954 port gets the message, the thread specific exception port has already
38955 been asked, and we don't need to bother about it.
38956 - See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
38957 + See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
38958 task_set_exception_ports (self, mask, our_exception_port,
38959 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
38960 }
38961
38962 diff --git a/autotools/m4/off_t.m4 b/autotools/m4/off_t.m4
38963 index 711a2d4..0890ada 100644
38964 --- a/autotools/m4/off_t.m4
38965 +++ b/autotools/m4/off_t.m4
38966 @@ -1,5 +1,5 @@
38967 # off_t.m4 serial 1
38968 -dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
38969 +dnl Copyright (C) 2012-2022 Free Software Foundation, Inc.
38970 dnl This file is free software; the Free Software Foundation
38971 dnl gives unlimited permission to copy and/or distribute it,
38972 dnl with or without modifications, as long as this notice is preserved.
38973
38974 diff --git a/autotools/m4/open-cloexec.m4 b/autotools/m4/open-cloexec.m4
38975 index 52498d9..16cd5ec 100644
38976 --- a/autotools/m4/open-cloexec.m4
38977 +++ b/autotools/m4/open-cloexec.m4
38978 @@ -1,6 +1,6 @@
38979 # Test whether O_CLOEXEC is defined.
38980
38981 -dnl Copyright 2017-2019 Free Software Foundation, Inc.
38982 +dnl Copyright 2017-2022 Free Software Foundation, Inc.
38983 dnl This file is free software; the Free Software Foundation
38984 dnl gives unlimited permission to copy and/or distribute it,
38985 dnl with or without modifications, as long as this notice is preserved.
38986
38987 diff --git a/autotools/m4/open-slash.m4 b/autotools/m4/open-slash.m4
38988 new file mode 100644
38989 index 0000000..4fbf491
38990 --- /dev/null
38991 +++ b/autotools/m4/open-slash.m4
38992 @@ -0,0 +1,60 @@
38993 +# open-slash.m4 serial 2
38994 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
38995 +dnl This file is free software; the Free Software Foundation
38996 +dnl gives unlimited permission to copy and/or distribute it,
38997 +dnl with or without modifications, as long as this notice is preserved.
38998 +
38999 +dnl Tests whether open() and creat() recognize a trailing slash.
39000 +dnl Sets gl_cv_func_open_slash.
39001 +AC_DEFUN([gl_OPEN_TRAILING_SLASH_BUG],
39002 +[
39003 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
39004 + dnl open("foo/") should not create a file when the file name has a
39005 + dnl trailing slash. FreeBSD only has the problem on symlinks.
39006 + AC_CHECK_FUNCS_ONCE([lstat])
39007 + AC_CACHE_CHECK([whether open recognizes a trailing slash],
39008 + [gl_cv_func_open_slash],
39009 + [# Assume that if we have lstat, we can also check symlinks.
39010 + if test $ac_cv_func_lstat = yes; then
39011 + touch conftest.tmp
39012 + ln -s conftest.tmp conftest.lnk
39013 + fi
39014 + AC_RUN_IFELSE(
39015 + [AC_LANG_SOURCE([[
39016 +#include <fcntl.h>
39017 +#if HAVE_UNISTD_H
39018 +# include <unistd.h>
39019 +#endif
39020 +]GL_MDA_DEFINES[
39021 +int main ()
39022 +{
39023 + int result = 0;
39024 +#if HAVE_LSTAT
39025 + if (open ("conftest.lnk/", O_RDONLY) != -1)
39026 + result |= 1;
39027 +#endif
39028 + if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
39029 + result |= 2;
39030 + return result;
39031 +}]])],
39032 + [gl_cv_func_open_slash=yes],
39033 + [gl_cv_func_open_slash=no],
39034 + [
39035 +changequote(,)dnl
39036 + case "$host_os" in
39037 + freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
39038 + gl_cv_func_open_slash="guessing no" ;;
39039 + *)
39040 + gl_cv_func_open_slash="guessing yes" ;;
39041 + esac
39042 +changequote([,])dnl
39043 + ])
39044 + rm -f conftest.sl conftest.tmp conftest.lnk
39045 + ])
39046 + case "$gl_cv_func_open_slash" in
39047 + *no)
39048 + AC_DEFINE([OPEN_TRAILING_SLASH_BUG], [1],
39049 + [Define to 1 if open() fails to recognize a trailing slash.])
39050 + ;;
39051 + esac
39052 +])
39053
39054 diff --git a/autotools/m4/open.m4 b/autotools/m4/open.m4
39055 index 5d73f4d..f82fd6c 100644
39056 --- a/autotools/m4/open.m4
39057 +++ b/autotools/m4/open.m4
39058 @@ -1,5 +1,5 @@
39059 # open.m4 serial 15
39060 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
39061 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
39062 dnl This file is free software; the Free Software Foundation
39063 dnl gives unlimited permission to copy and/or distribute it,
39064 dnl with or without modifications, as long as this notice is preserved.
39065 @@ -19,48 +19,9 @@ AC_DEFUN([gl_FUNC_OPEN],
39066 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
39067 REPLACE_OPEN=1
39068 fi
39069 - AC_CACHE_CHECK([whether open recognizes a trailing slash],
39070 - [gl_cv_func_open_slash],
39071 - [# Assume that if we have lstat, we can also check symlinks.
39072 - if test $ac_cv_func_lstat = yes; then
39073 - touch conftest.tmp
39074 - ln -s conftest.tmp conftest.lnk
39075 - fi
39076 - AC_RUN_IFELSE(
39077 - [AC_LANG_SOURCE([[
39078 -#include <fcntl.h>
39079 -#if HAVE_UNISTD_H
39080 -# include <unistd.h>
39081 -#endif
39082 -int main ()
39083 -{
39084 - int result = 0;
39085 -#if HAVE_LSTAT
39086 - if (open ("conftest.lnk/", O_RDONLY) != -1)
39087 - result |= 1;
39088 -#endif
39089 - if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
39090 - result |= 2;
39091 - return result;
39092 -}]])],
39093 - [gl_cv_func_open_slash=yes],
39094 - [gl_cv_func_open_slash=no],
39095 - [
39096 -changequote(,)dnl
39097 - case "$host_os" in
39098 - freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
39099 - gl_cv_func_open_slash="guessing no" ;;
39100 - *)
39101 - gl_cv_func_open_slash="guessing yes" ;;
39102 - esac
39103 -changequote([,])dnl
39104 - ])
39105 - rm -f conftest.sl conftest.tmp conftest.lnk
39106 - ])
39107 + gl_OPEN_TRAILING_SLASH_BUG
39108 case "$gl_cv_func_open_slash" in
39109 *no)
39110 - AC_DEFINE([OPEN_TRAILING_SLASH_BUG], [1],
39111 - [Define to 1 if open() fails to recognize a trailing slash.])
39112 REPLACE_OPEN=1
39113 ;;
39114 esac
39115
39116 diff --git a/autotools/m4/openat.m4 b/autotools/m4/openat.m4
39117 index 005a2b4..de74799 100644
39118 --- a/autotools/m4/openat.m4
39119 +++ b/autotools/m4/openat.m4
39120 @@ -1,7 +1,7 @@
39121 # serial 46
39122 # See if we need to use our replacement for Solaris' openat et al functions.
39123
39124 -dnl Copyright (C) 2004-2019 Free Software Foundation, Inc.
39125 +dnl Copyright (C) 2004-2022 Free Software Foundation, Inc.
39126 dnl This file is free software; the Free Software Foundation
39127 dnl gives unlimited permission to copy and/or distribute it,
39128 dnl with or without modifications, as long as this notice is preserved.
39129
39130 diff --git a/autotools/m4/opendir.m4 b/autotools/m4/opendir.m4
39131 index 8f0d804..7816dc5 100644
39132 --- a/autotools/m4/opendir.m4
39133 +++ b/autotools/m4/opendir.m4
39134 @@ -1,5 +1,5 @@
39135 # opendir.m4 serial 5
39136 -dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
39137 +dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
39138 dnl This file is free software; the Free Software Foundation
39139 dnl gives unlimited permission to copy and/or distribute it,
39140 dnl with or without modifications, as long as this notice is preserved.
39141
39142 diff --git a/autotools/m4/pathmax.m4 b/autotools/m4/pathmax.m4
39143 index 0770aca..44add99 100644
39144 --- a/autotools/m4/pathmax.m4
39145 +++ b/autotools/m4/pathmax.m4
39146 @@ -1,5 +1,5 @@
39147 # pathmax.m4 serial 11
39148 -dnl Copyright (C) 2002-2003, 2005-2006, 2009-2019 Free Software Foundation,
39149 +dnl Copyright (C) 2002-2003, 2005-2006, 2009-2022 Free Software Foundation,
39150 dnl Inc.
39151 dnl This file is free software; the Free Software Foundation
39152 dnl gives unlimited permission to copy and/or distribute it,
39153
39154 diff --git a/autotools/m4/pid_t.m4 b/autotools/m4/pid_t.m4
39155 new file mode 100644
39156 index 0000000..cb26f36
39157 --- /dev/null
39158 +++ b/autotools/m4/pid_t.m4
39159 @@ -0,0 +1,38 @@
39160 +# pid_t.m4 serial 4
39161 +dnl Copyright (C) 2020-2022 Free Software Foundation, Inc.
39162 +dnl This file is free software; the Free Software Foundation
39163 +dnl gives unlimited permission to copy and/or distribute it,
39164 +dnl with or without modifications, as long as this notice is preserved.
39165 +
39166 +# The following implementation works around a problem in autoconf <= 2.69.
39167 +m4_version_prereq([2.70], [], [
39168 +
39169 +dnl Define pid_t if the headers don't define it.
39170 +AC_DEFUN([AC_TYPE_PID_T],
39171 +[
39172 + AC_CHECK_TYPE([pid_t],
39173 + [],
39174 + [dnl On 64-bit native Windows, define it to the equivalent of 'intptr_t'
39175 + dnl (= 'long long' = '__int64'), because that is the return type
39176 + dnl of the _spawnv* functions
39177 + dnl <https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/spawnvp-wspawnvp>
39178 + dnl and the argument type of the _cwait function
39179 + dnl <https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/cwait>.
39180 + dnl Otherwise (on 32-bit Windows and on old Unix platforms), define it
39181 + dnl to 'int'.
39182 + AC_COMPILE_IFELSE(
39183 + [AC_LANG_PROGRAM([[
39184 + #if defined _WIN64 && !defined __CYGWIN__
39185 + LLP64
39186 + #endif
39187 + ]])
39188 + ],
39189 + [gl_pid_type='int'],
39190 + [gl_pid_type='__int64'])
39191 + AC_DEFINE_UNQUOTED([pid_t], [$gl_pid_type],
39192 + [Define as a signed integer type capable of holding a process identifier.])
39193 + ],
39194 + [AC_INCLUDES_DEFAULT])
39195 +])
39196 +
39197 +])# m4_version_prereq 2.70
39198
39199 diff --git a/autotools/m4/unistd-safer.m4 b/autotools/m4/pipe.m4
39200 similarity index 53%
39201 copy from autotools/m4/unistd-safer.m4
39202 copy to autotools/m4/pipe.m4
39203 index 5e2a1be..62871c6 100644
39204 --- a/autotools/m4/unistd-safer.m4
39205 +++ b/autotools/m4/pipe.m4
39206 @@ -1,10 +1,15 @@
39207 -#serial 9
39208 -dnl Copyright (C) 2002, 2005-2006, 2009-2019 Free Software Foundation, Inc.
39209 +# pipe.m4 serial 2
39210 +dnl Copyright (C) 2010-2022 Free Software Foundation, Inc.
39211 dnl This file is free software; the Free Software Foundation
39212 dnl gives unlimited permission to copy and/or distribute it,
39213 dnl with or without modifications, as long as this notice is preserved.
39214
39215 -AC_DEFUN([gl_UNISTD_SAFER],
39216 +AC_DEFUN([gl_FUNC_PIPE],
39217 [
39218 + AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
39219 +
39220 AC_CHECK_FUNCS_ONCE([pipe])
39221 + if test $ac_cv_func_pipe != yes; then
39222 + HAVE_PIPE=0
39223 + fi
39224 ])
39225
39226 diff --git a/autotools/m4/printf-frexp.m4 b/autotools/m4/printf-frexp.m4
39227 index 4d4aae5..0628b5a 100644
39228 --- a/autotools/m4/printf-frexp.m4
39229 +++ b/autotools/m4/printf-frexp.m4
39230 @@ -1,5 +1,5 @@
39231 # printf-frexp.m4 serial 5
39232 -dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
39233 +dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
39234 dnl This file is free software; the Free Software Foundation
39235 dnl gives unlimited permission to copy and/or distribute it,
39236 dnl with or without modifications, as long as this notice is preserved.
39237
39238 diff --git a/autotools/m4/printf-frexpl.m4 b/autotools/m4/printf-frexpl.m4
39239 index 6835612..137c871 100644
39240 --- a/autotools/m4/printf-frexpl.m4
39241 +++ b/autotools/m4/printf-frexpl.m4
39242 @@ -1,5 +1,5 @@
39243 # printf-frexpl.m4 serial 10
39244 -dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
39245 +dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
39246 dnl This file is free software; the Free Software Foundation
39247 dnl gives unlimited permission to copy and/or distribute it,
39248 dnl with or without modifications, as long as this notice is preserved.
39249
39250 diff --git a/autotools/m4/printf.m4 b/autotools/m4/printf.m4
39251 index cbf6ae4..667452e 100644
39252 --- a/autotools/m4/printf.m4
39253 +++ b/autotools/m4/printf.m4
39254 @@ -1,5 +1,5 @@
39255 -# printf.m4 serial 60
39256 -dnl Copyright (C) 2003, 2007-2019 Free Software Foundation, Inc.
39257 +# printf.m4 serial 73
39258 +dnl Copyright (C) 2003, 2007-2022 Free Software Foundation, Inc.
39259 dnl This file is free software; the Free Software Foundation
39260 dnl gives unlimited permission to copy and/or distribute it,
39261 dnl with or without modifications, as long as this notice is preserved.
39262 @@ -62,9 +62,12 @@ int main ()
39263 changequote(,)dnl
39264 # Guess yes on glibc systems.
39265 *-gnu* | gnu*) gl_cv_func_printf_sizes_c99="guessing yes";;
39266 + # Guess yes on musl systems.
39267 + *-musl*) gl_cv_func_printf_sizes_c99="guessing yes";;
39268 # Guess yes on FreeBSD >= 5.
39269 freebsd[1-4].*) gl_cv_func_printf_sizes_c99="guessing no";;
39270 freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
39271 + midnightbsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
39272 # Guess yes on Mac OS X >= 10.3.
39273 darwin[1-6].*) gl_cv_func_printf_sizes_c99="guessing no";;
39274 darwin*) gl_cv_func_printf_sizes_c99="guessing yes";;
39275 @@ -91,8 +94,8 @@ changequote([,])dnl
39276 [gl_cv_func_printf_sizes_c99="guessing yes"],
39277 [gl_cv_func_printf_sizes_c99="guessing no"])
39278 ;;
39279 - # If we don't know, assume the worst.
39280 - *) gl_cv_func_printf_sizes_c99="guessing no";;
39281 + # If we don't know, obey --enable-cross-guesses.
39282 + *) gl_cv_func_printf_sizes_c99="$gl_cross_guess_normal";;
39283 esac
39284 ])
39285 ])
39286 @@ -240,9 +243,12 @@ int main ()
39287 changequote(,)dnl
39288 # Guess yes on glibc systems.
39289 *-gnu* | gnu*) gl_cv_func_printf_infinite="guessing yes";;
39290 + # Guess yes on musl systems.
39291 + *-musl*) gl_cv_func_printf_infinite="guessing yes";;
39292 # Guess yes on FreeBSD >= 6.
39293 freebsd[1-5].*) gl_cv_func_printf_infinite="guessing no";;
39294 freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
39295 + midnightbsd*) gl_cv_func_printf_infinite="guessing yes";;
39296 # Guess yes on Mac OS X >= 10.3.
39297 darwin[1-6].*) gl_cv_func_printf_infinite="guessing no";;
39298 darwin*) gl_cv_func_printf_infinite="guessing yes";;
39299 @@ -253,6 +259,9 @@ changequote(,)dnl
39300 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
39301 gl_cv_func_printf_infinite="guessing no";;
39302 netbsd*) gl_cv_func_printf_infinite="guessing yes";;
39303 + # Guess yes on OpenBSD >= 6.0.
39304 + openbsd[1-5].*) gl_cv_func_printf_infinite="guessing no";;
39305 + openbsd*) gl_cv_func_printf_infinite="guessing yes";;
39306 # Guess yes on BeOS.
39307 beos*) gl_cv_func_printf_infinite="guessing yes";;
39308 # Guess no on Android.
39309 @@ -267,8 +276,8 @@ changequote([,])dnl
39310 [gl_cv_func_printf_infinite="guessing yes"],
39311 [gl_cv_func_printf_infinite="guessing no"])
39312 ;;
39313 - # If we don't know, assume the worst.
39314 - *) gl_cv_func_printf_infinite="guessing no";;
39315 + # If we don't know, obey --enable-cross-guesses.
39316 + *) gl_cv_func_printf_infinite="$gl_cross_guess_normal";;
39317 esac
39318 ])
39319 ])
39320 @@ -457,12 +466,18 @@ int main ()
39321 changequote(,)dnl
39322 # Guess yes on glibc systems.
39323 *-gnu* | gnu*) gl_cv_func_printf_infinite_long_double="guessing yes";;
39324 + # Guess yes on musl systems.
39325 + *-musl*) gl_cv_func_printf_infinite_long_double="guessing yes";;
39326 # Guess yes on FreeBSD >= 6.
39327 freebsd[1-5].*) gl_cv_func_printf_infinite_long_double="guessing no";;
39328 freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
39329 + midnightbsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
39330 # Guess yes on HP-UX >= 11.
39331 hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
39332 hpux*) gl_cv_func_printf_infinite_long_double="guessing yes";;
39333 + # Guess yes on OpenBSD >= 6.0.
39334 + openbsd[1-5].*) gl_cv_func_printf_infinite_long_double="guessing no";;
39335 + openbsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
39336 # Guess no on Android.
39337 linux*-android*) gl_cv_func_printf_infinite_long_double="guessing no";;
39338 changequote([,])dnl
39339 @@ -475,8 +490,8 @@ changequote([,])dnl
39340 [gl_cv_func_printf_infinite_long_double="guessing yes"],
39341 [gl_cv_func_printf_infinite_long_double="guessing no"])
39342 ;;
39343 - # If we don't know, assume the worst.
39344 - *) gl_cv_func_printf_infinite_long_double="guessing no";;
39345 + # If we don't know, obey --enable-cross-guesses.
39346 + *) gl_cv_func_printf_infinite_long_double="$gl_cross_guess_normal";;
39347 esac
39348 ;;
39349 esac
39350 @@ -522,7 +537,7 @@ int main ()
39351 && strcmp (buf, "-0X6.488P-1 33") != 0
39352 && strcmp (buf, "-0XC.91P-2 33") != 0))
39353 result |= 2;
39354 - /* This catches a FreeBSD 6.1 bug: it doesn't round. */
39355 + /* This catches a FreeBSD 13.0 bug: it doesn't round. */
39356 if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
39357 || (strcmp (buf, "0x1.83p+0 33") != 0
39358 && strcmp (buf, "0x3.05p-1 33") != 0
39359 @@ -575,12 +590,14 @@ int main ()
39360 [gl_cv_func_printf_directive_a="guessing yes"],
39361 [gl_cv_func_printf_directive_a="guessing no"])
39362 ;;
39363 + # Guess yes on musl systems.
39364 + *-musl*) gl_cv_func_printf_directive_a="guessing yes";;
39365 # Guess no on Android.
39366 linux*-android*) gl_cv_func_printf_directive_a="guessing no";;
39367 # Guess no on native Windows.
39368 mingw*) gl_cv_func_printf_directive_a="guessing no";;
39369 - # If we don't know, assume the worst.
39370 - *) gl_cv_func_printf_directive_a="guessing no";;
39371 + # If we don't know, obey --enable-cross-guesses.
39372 + *) gl_cv_func_printf_directive_a="$gl_cross_guess_normal";;
39373 esac
39374 ])
39375 ])
39376 @@ -625,12 +642,18 @@ int main ()
39377 changequote(,)dnl
39378 # Guess yes on glibc systems.
39379 *-gnu* | gnu*) gl_cv_func_printf_directive_f="guessing yes";;
39380 + # Guess yes on musl systems.
39381 + *-musl*) gl_cv_func_printf_directive_f="guessing yes";;
39382 # Guess yes on FreeBSD >= 6.
39383 freebsd[1-5].*) gl_cv_func_printf_directive_f="guessing no";;
39384 freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
39385 + midnightbsd*) gl_cv_func_printf_directive_f="guessing yes";;
39386 # Guess yes on Mac OS X >= 10.3.
39387 darwin[1-6].*) gl_cv_func_printf_directive_f="guessing no";;
39388 darwin*) gl_cv_func_printf_directive_f="guessing yes";;
39389 + # Guess yes on OpenBSD >= 6.0.
39390 + openbsd[1-5].*) gl_cv_func_printf_directive_f="guessing no";;
39391 + openbsd*) gl_cv_func_printf_directive_f="guessing yes";;
39392 # Guess yes on Solaris >= 2.10.
39393 solaris2.[1-9][0-9]*) gl_cv_func_printf_directive_f="guessing yes";;
39394 solaris*) gl_cv_func_printf_directive_f="guessing no";;
39395 @@ -646,8 +669,8 @@ changequote([,])dnl
39396 [gl_cv_func_printf_directive_f="guessing yes"],
39397 [gl_cv_func_printf_directive_f="guessing no"])
39398 ;;
39399 - # If we don't know, assume the worst.
39400 - *) gl_cv_func_printf_directive_f="guessing no";;
39401 + # If we don't know, obey --enable-cross-guesses.
39402 + *) gl_cv_func_printf_directive_f="$gl_cross_guess_normal";;
39403 esac
39404 ])
39405 ])
39406 @@ -670,7 +693,10 @@ AC_DEFUN([gl_PRINTF_DIRECTIVE_N],
39407 #include <stdlib.h>
39408 #include <string.h>
39409 #ifdef _MSC_VER
39410 -/* See page about "Parameter Validation" on msdn.microsoft.com. */
39411 +#include <inttypes.h>
39412 +/* See page about "Parameter Validation" on msdn.microsoft.com.
39413 + <https://docs.microsoft.com/en-us/cpp/c-runtime-library/parameter-validation>
39414 + <https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/set-invalid-parameter-handler-set-thread-local-invalid-parameter-handler> */
39415 static void cdecl
39416 invalid_parameter_handler (const wchar_t *expression,
39417 const wchar_t *function,
39418 @@ -701,6 +727,16 @@ int main ()
39419 [gl_cv_func_printf_directive_n=yes],
39420 [gl_cv_func_printf_directive_n=no],
39421 [case "$host_os" in
39422 + # Guess no on glibc when _FORTIFY_SOURCE >= 2.
39423 + *-gnu* | gnu*) AC_COMPILE_IFELSE(
39424 + [AC_LANG_SOURCE(
39425 + [[#if _FORTIFY_SOURCE >= 2
39426 + error fail
39427 + #endif
39428 + ]])],
39429 + [gl_cv_func_printf_directive_n="guessing yes"],
39430 + [gl_cv_func_printf_directive_n="guessing no"])
39431 + ;;
39432 # Guess no on Android.
39433 linux*-android*) gl_cv_func_printf_directive_n="guessing no";;
39434 # Guess no on native Windows.
39435 @@ -727,13 +763,7 @@ AC_DEFUN([gl_PRINTF_DIRECTIVE_LS],
39436 [
39437 AC_RUN_IFELSE(
39438 [AC_LANG_SOURCE([[
39439 -/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
39440 - <wchar.h>.
39441 - BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39442 - included before <wchar.h>. */
39443 -#include <stddef.h>
39444 #include <stdio.h>
39445 -#include <time.h>
39446 #include <wchar.h>
39447 #include <string.h>
39448 int main ()
39449 @@ -781,7 +811,9 @@ int main ()
39450 [
39451 changequote(,)dnl
39452 case "$host_os" in
39453 - openbsd*) gl_cv_func_printf_directive_ls="guessing no";;
39454 + # Guess yes on OpenBSD >= 6.0.
39455 + openbsd[1-5].*) gl_cv_func_printf_directive_ls="guessing no";;
39456 + openbsd*) gl_cv_func_printf_directive_ls="guessing yes";;
39457 irix*) gl_cv_func_printf_directive_ls="guessing no";;
39458 solaris*) gl_cv_func_printf_directive_ls="guessing no";;
39459 cygwin*) gl_cv_func_printf_directive_ls="guessing no";;
39460 @@ -960,14 +992,16 @@ changequote(,)dnl
39461 case "$host_os" in
39462 # Guess yes on glibc systems.
39463 *-gnu* | gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
39464 + # Guess yes on musl systems.
39465 + *-musl*) gl_cv_func_printf_flag_zero="guessing yes";;
39466 # Guess yes on BeOS.
39467 beos*) gl_cv_func_printf_flag_zero="guessing yes";;
39468 # Guess no on Android.
39469 linux*-android*) gl_cv_func_printf_flag_zero="guessing no";;
39470 # Guess no on native Windows.
39471 mingw*) gl_cv_func_printf_flag_zero="guessing no";;
39472 - # If we don't know, assume the worst.
39473 - *) gl_cv_func_printf_flag_zero="guessing no";;
39474 + # If we don't know, obey --enable-cross-guesses.
39475 + *) gl_cv_func_printf_flag_zero="$gl_cross_guess_normal";;
39476 esac
39477 changequote([,])dnl
39478 ])
39479 @@ -1047,9 +1081,8 @@ AC_DEFUN([gl_PRINTF_ENOMEM],
39480 gl_cv_func_printf_enomem="guessing no"
39481 if test "$cross_compiling" = no; then
39482 if test $APPLE_UNIVERSAL_BUILD = 0; then
39483 - AC_LANG_CONFTEST([AC_LANG_SOURCE([
39484 + AC_LANG_CONFTEST([AC_LANG_SOURCE([[
39485 ]GL_NOCRASH[
39486 -changequote(,)dnl
39487 #include <stdio.h>
39488 #include <sys/types.h>
39489 #include <sys/time.h>
39490 @@ -1094,8 +1127,7 @@ int main()
39491 ret = printf ("%.5000000f", 1.0);
39492 return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
39493 }
39494 -changequote([,])dnl
39495 - ])])
39496 + ]])])
39497 if AC_TRY_EVAL([ac_link]) && test -s conftest$ac_exeext; then
39498 (./conftest 2>&AS_MESSAGE_LOG_FD
39499 result=$?
39500 @@ -1144,8 +1176,8 @@ changequote(,)dnl
39501 haiku*) gl_cv_func_printf_enomem="guessing yes";;
39502 # Guess no on Android.
39503 linux*-android*) gl_cv_func_printf_enomem="guessing no";;
39504 - # If we don't know, assume the worst.
39505 - *) gl_cv_func_printf_enomem="guessing no";;
39506 + # If we don't know, obey --enable-cross-guesses.
39507 + *) gl_cv_func_printf_enomem="$gl_cross_guess_normal";;
39508 esac
39509 changequote([,])dnl
39510 fi
39511 @@ -1164,7 +1196,7 @@ dnl Test whether the string produced by the snprintf function is always NUL
39512 dnl terminated. (ISO C99, POSIX:2001)
39513 dnl Result is gl_cv_func_snprintf_truncation_c99.
39514
39515 -AC_DEFUN([gl_SNPRINTF_TRUNCATION_C99],
39516 +AC_DEFUN_ONCE([gl_SNPRINTF_TRUNCATION_C99],
39517 [
39518 AC_REQUIRE([AC_PROG_CC])
39519 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
39520 @@ -1206,9 +1238,12 @@ changequote(,)dnl
39521 case "$host_os" in
39522 # Guess yes on glibc systems.
39523 *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
39524 + # Guess yes on musl systems.
39525 + *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
39526 # Guess yes on FreeBSD >= 5.
39527 freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
39528 freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
39529 + midnightbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
39530 # Guess yes on Mac OS X >= 10.3.
39531 darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
39532 darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
39533 @@ -1241,8 +1276,8 @@ changequote(,)dnl
39534 linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
39535 # Guess no on native Windows.
39536 mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";;
39537 - # If we don't know, assume the worst.
39538 - *) gl_cv_func_snprintf_truncation_c99="guessing no";;
39539 + # If we don't know, obey --enable-cross-guesses.
39540 + *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
39541 esac
39542 changequote([,])dnl
39543 ])
39544 @@ -1308,9 +1343,12 @@ int main ()
39545 changequote(,)dnl
39546 # Guess yes on glibc systems.
39547 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
39548 + # Guess yes on musl systems.
39549 + *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";;
39550 # Guess yes on FreeBSD >= 5.
39551 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
39552 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
39553 + midnightbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
39554 # Guess yes on Mac OS X >= 10.3.
39555 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
39556 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
39557 @@ -1342,8 +1380,8 @@ changequote([,])dnl
39558 [gl_cv_func_snprintf_retval_c99="guessing yes"],
39559 [gl_cv_func_snprintf_retval_c99="guessing no"])
39560 ;;
39561 - # If we don't know, assume the worst.
39562 - *) gl_cv_func_snprintf_retval_c99="guessing no";;
39563 + # If we don't know, obey --enable-cross-guesses.
39564 + *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
39565 esac
39566 ])
39567 ])
39568 @@ -1396,13 +1434,24 @@ int main ()
39569 [gl_cv_func_snprintf_directive_n=yes],
39570 [gl_cv_func_snprintf_directive_n=no],
39571 [
39572 -changequote(,)dnl
39573 case "$host_os" in
39574 - # Guess yes on glibc systems.
39575 - *-gnu* | gnu*) gl_cv_func_snprintf_directive_n="guessing yes";;
39576 + # Guess no on glibc when _FORTIFY_SOURCE >= 2.
39577 + *-gnu* | gnu*) AC_COMPILE_IFELSE(
39578 + [AC_LANG_SOURCE(
39579 + [[#if _FORTIFY_SOURCE >= 2
39580 + error fail
39581 + #endif
39582 + ]])],
39583 + [gl_cv_func_snprintf_directive_n="guessing yes"],
39584 + [gl_cv_func_snprintf_directive_n="guessing no"])
39585 + ;;
39586 +changequote(,)dnl
39587 + # Guess yes on musl systems.
39588 + *-musl*) gl_cv_func_snprintf_directive_n="guessing yes";;
39589 # Guess yes on FreeBSD >= 5.
39590 freebsd[1-4].*) gl_cv_func_snprintf_directive_n="guessing no";;
39591 freebsd* | kfreebsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
39592 + midnightbsd*) gl_cv_func_snprintf_directive_n="guessing yes";;
39593 # Guess yes on Mac OS X >= 10.3.
39594 darwin[1-6].*) gl_cv_func_snprintf_directive_n="guessing no";;
39595 darwin*) gl_cv_func_snprintf_directive_n="guessing yes";;
39596 @@ -1428,10 +1477,10 @@ changequote(,)dnl
39597 linux*-android*) gl_cv_func_snprintf_directive_n="guessing no";;
39598 # Guess no on native Windows.
39599 mingw*) gl_cv_func_snprintf_directive_n="guessing no";;
39600 - # If we don't know, assume the worst.
39601 - *) gl_cv_func_snprintf_directive_n="guessing no";;
39602 - esac
39603 + # If we don't know, obey --enable-cross-guesses.
39604 + *) gl_cv_func_snprintf_directive_n="$gl_cross_guess_normal";;
39605 changequote([,])dnl
39606 + esac
39607 ])
39608 ])
39609 ])
39610 @@ -1554,9 +1603,12 @@ changequote(,)dnl
39611 case "$host_os" in
39612 # Guess yes on glibc systems.
39613 *-gnu* | gnu*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
39614 + # Guess yes on musl systems.
39615 + *-musl*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
39616 # Guess yes on FreeBSD >= 5.
39617 freebsd[1-4].*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
39618 freebsd* | kfreebsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
39619 + midnightbsd*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
39620 # Guess yes on Mac OS X >= 10.3.
39621 darwin[1-6].*) gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
39622 darwin*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
39623 @@ -1581,8 +1633,8 @@ changequote(,)dnl
39624 linux*-android*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
39625 # Guess yes on native Windows.
39626 mingw* | pw*) gl_cv_func_vsnprintf_zerosize_c99="guessing yes";;
39627 - # If we don't know, assume the worst.
39628 - *) gl_cv_func_vsnprintf_zerosize_c99="guessing no";;
39629 + # If we don't know, obey --enable-cross-guesses.
39630 + *) gl_cv_func_vsnprintf_zerosize_c99="$gl_cross_guess_normal";;
39631 esac
39632 changequote([,])dnl
39633 ])
39634 @@ -1638,9 +1690,12 @@ dnl
39635 dnl 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
39636 dnl glibc 2.5 . . . . . . . . . . . . . . . . . . . .
39637 dnl glibc 2.3.6 . . . . # . . . . . . . . . . . . . . .
39638 +dnl FreeBSD 13.0 . . . . # . . . . . . . . # . . . . . .
39639 dnl FreeBSD 5.4, 6.1 . . . . # . . . . . . # . # . . . . . .
39640 +dnl Mac OS X 10.13.5 . . . # # . # . . . . . . . . . . # . .
39641 dnl Mac OS X 10.5.8 . . . # # . . . . . . # . . . . . . . .
39642 dnl Mac OS X 10.3.9 . . . . # . . . . . . # . # . . . . . .
39643 +dnl OpenBSD 6.0, 6.7 . . . . # . . . . . . . . # . . . . . .
39644 dnl OpenBSD 3.9, 4.0 . . # # # # . # . # . # . # . . . . . .
39645 dnl Cygwin 1.7.0 (2009) . . . # . . . ? . . . . . ? . . . . . .
39646 dnl Cygwin 1.5.25 (2008) . . . # # . . # . . . . . # . . . . . .
39647 @@ -1660,6 +1715,7 @@ dnl HP-UX 10.20 # . # . # # . ? . . # # . . .
39648 dnl IRIX 6.5 # . # # # # . # . . . # . . . . # . . .
39649 dnl OSF/1 5.1 # . # # # # . . . . . # . . . . # . . #
39650 dnl OSF/1 4.0d # . # # # # . . . . . # . . # # # # # #
39651 +dnl NetBSD 9.0 . . . . # . . . . . . . . . . . . . . .
39652 dnl NetBSD 5.0 . . . # # . . . . . . # . # . . . . . .
39653 dnl NetBSD 4.0 . ? ? ? ? ? . ? . ? ? ? ? ? . . . ? ? ?
39654 dnl NetBSD 3.0 . . . . # # . ? # # ? # . # . . . . . .
39655
39656 diff --git a/autotools/m4/rawmemchr.m4 b/autotools/m4/rawmemchr.m4
39657 new file mode 100644
39658 index 0000000..dae4193
39659 --- /dev/null
39660 +++ b/autotools/m4/rawmemchr.m4
39661 @@ -0,0 +1,20 @@
39662 +# rawmemchr.m4 serial 3
39663 +dnl Copyright (C) 2003, 2007-2022 Free Software Foundation, Inc.
39664 +dnl This file is free software; the Free Software Foundation
39665 +dnl gives unlimited permission to copy and/or distribute it,
39666 +dnl with or without modifications, as long as this notice is preserved.
39667 +
39668 +AC_DEFUN([gl_FUNC_RAWMEMCHR],
39669 +[
39670 + dnl Persuade glibc <string.h> to declare rawmemchr().
39671 + AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
39672 +
39673 + AC_REQUIRE([gl_STRING_H_DEFAULTS])
39674 + AC_CHECK_FUNCS([rawmemchr])
39675 + if test $ac_cv_func_rawmemchr = no; then
39676 + HAVE_RAWMEMCHR=0
39677 + fi
39678 +])
39679 +
39680 +# Prerequisites of lib/strchrnul.c.
39681 +AC_DEFUN([gl_PREREQ_RAWMEMCHR], [:])
39682
39683 diff --git a/autotools/m4/readlink.m4 b/autotools/m4/readlink.m4
39684 index 2d76815..d1dd521 100644
39685 --- a/autotools/m4/readlink.m4
39686 +++ b/autotools/m4/readlink.m4
39687 @@ -1,5 +1,5 @@
39688 -# readlink.m4 serial 14
39689 -dnl Copyright (C) 2003, 2007, 2009-2019 Free Software Foundation, Inc.
39690 +# readlink.m4 serial 16
39691 +dnl Copyright (C) 2003, 2007, 2009-2022 Free Software Foundation, Inc.
39692 dnl This file is free software; the Free Software Foundation
39693 dnl gives unlimited permission to copy and/or distribute it,
39694 dnl with or without modifications, as long as this notice is preserved.
39695 @@ -23,7 +23,7 @@ AC_DEFUN([gl_FUNC_READLINK],
39696 dnl Solaris 9 ignores trailing slash.
39697 dnl FreeBSD 7.2 dereferences only one level of links with trailing slash.
39698 AC_CACHE_CHECK([whether readlink handles trailing slash correctly],
39699 - [gl_cv_func_readlink_works],
39700 + [gl_cv_func_readlink_trailing_slash],
39701 [# We have readlink, so assume ln -s works.
39702 ln -s conftest.no-such conftest.link
39703 ln -s conftest.link conftest.lnk2
39704 @@ -32,18 +32,22 @@ AC_DEFUN([gl_FUNC_READLINK],
39705 [[#include <unistd.h>
39706 ]], [[char buf[20];
39707 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;]])],
39708 - [gl_cv_func_readlink_works=yes], [gl_cv_func_readlink_works=no],
39709 + [gl_cv_func_readlink_trailing_slash=yes],
39710 + [gl_cv_func_readlink_trailing_slash=no],
39711 [case "$host_os" in
39712 - # Guess yes on Linux systems.
39713 - linux-* | linux) gl_cv_func_readlink_works="guessing yes" ;;
39714 - # Guess yes on glibc systems.
39715 - *-gnu* | gnu*) gl_cv_func_readlink_works="guessing yes" ;;
39716 - # If we don't know, assume the worst.
39717 - *) gl_cv_func_readlink_works="guessing no" ;;
39718 + # Guess yes on Linux or glibc systems.
39719 + linux-* | linux | *-gnu* | gnu*)
39720 + gl_cv_func_readlink_trailing_slash="guessing yes" ;;
39721 + # Guess no on AIX or HP-UX.
39722 + aix* | hpux*)
39723 + gl_cv_func_readlink_trailing_slash="guessing no" ;;
39724 + # If we don't know, obey --enable-cross-guesses.
39725 + *)
39726 + gl_cv_func_readlink_trailing_slash="$gl_cross_guess_normal" ;;
39727 esac
39728 ])
39729 rm -f conftest.link conftest.lnk2])
39730 - case "$gl_cv_func_readlink_works" in
39731 + case "$gl_cv_func_readlink_trailing_slash" in
39732 *yes)
39733 if test "$gl_cv_decl_readlink_works" != yes; then
39734 REPLACE_READLINK=1
39735 @@ -55,6 +59,43 @@ AC_DEFUN([gl_FUNC_READLINK],
39736 REPLACE_READLINK=1
39737 ;;
39738 esac
39739 +
39740 + AC_CACHE_CHECK([whether readlink truncates results correctly],
39741 + [gl_cv_func_readlink_truncate],
39742 + [# We have readlink, so assume ln -s works.
39743 + ln -s ab conftest.link
39744 + AC_RUN_IFELSE(
39745 + [AC_LANG_PROGRAM(
39746 + [[#include <unistd.h>
39747 +]], [[char c;
39748 + return readlink ("conftest.link", &c, 1) != 1;]])],
39749 + [gl_cv_func_readlink_truncate=yes],
39750 + [gl_cv_func_readlink_truncate=no],
39751 + [case "$host_os" in
39752 + # Guess yes on Linux or glibc systems.
39753 + linux-* | linux | *-gnu* | gnu*)
39754 + gl_cv_func_readlink_truncate="guessing yes" ;;
39755 + # Guess no on AIX or HP-UX.
39756 + aix* | hpux*)
39757 + gl_cv_func_readlink_truncate="guessing no" ;;
39758 + # If we don't know, obey --enable-cross-guesses.
39759 + *)
39760 + gl_cv_func_readlink_truncate="$gl_cross_guess_normal" ;;
39761 + esac
39762 + ])
39763 + rm -f conftest.link conftest.lnk2])
39764 + case $gl_cv_func_readlink_truncate in
39765 + *yes)
39766 + if test "$gl_cv_decl_readlink_works" != yes; then
39767 + REPLACE_READLINK=1
39768 + fi
39769 + ;;
39770 + *)
39771 + AC_DEFINE([READLINK_TRUNCATE_BUG], [1], [Define to 1 if readlink
39772 + sets errno instead of truncating a too-long link.])
39773 + REPLACE_READLINK=1
39774 + ;;
39775 + esac
39776 fi
39777 ])
39778
39779
39780 diff --git a/autotools/m4/readlinkat.m4 b/autotools/m4/readlinkat.m4
39781 index b63f213..63c5205 100644
39782 --- a/autotools/m4/readlinkat.m4
39783 +++ b/autotools/m4/readlinkat.m4
39784 @@ -1,7 +1,7 @@
39785 -# serial 5
39786 +# serial 6
39787 # See if we need to provide readlinkat replacement.
39788
39789 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
39790 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
39791 dnl This file is free software; the Free Software Foundation
39792 dnl gives unlimited permission to copy and/or distribute it,
39793 dnl with or without modifications, as long as this notice is preserved.
39794 @@ -26,13 +26,10 @@ AC_DEFUN([gl_FUNC_READLINKAT],
39795 ssize_t readlinkat (int, char const *, char *, size_t);]])],
39796 [gl_cv_decl_readlinkat_works=yes],
39797 [gl_cv_decl_readlinkat_works=no])])
39798 - # Assume readinkat has the same trailing slash bug as readlink,
39799 - # as is the case on Mac Os X 10.10
39800 - case "$gl_cv_func_readlink_works" in
39801 - *yes)
39802 - if test "$gl_cv_decl_readlinkat_works" != yes; then
39803 - REPLACE_READLINKAT=1
39804 - fi
39805 + # Assume readlinkat has the same bugs as readlink,
39806 + # as is the case on OS X 10.10 with trailing slashes.
39807 + case $gl_cv_decl_readlinkat_works,$gl_cv_func_readlink_trailing_slash,$gl_cv_func_readlink_truncate in
39808 + *yes,*yes,*yes)
39809 ;;
39810 *)
39811 REPLACE_READLINKAT=1
39812
39813 diff --git a/autotools/m4/realloc.m4 b/autotools/m4/realloc.m4
39814 index 1281a35..86e57c2 100644
39815 --- a/autotools/m4/realloc.m4
39816 +++ b/autotools/m4/realloc.m4
39817 @@ -1,29 +1,21 @@
39818 -# realloc.m4 serial 15
39819 -dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
39820 +# realloc.m4 serial 26
39821 +dnl Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
39822 dnl This file is free software; the Free Software Foundation
39823 dnl gives unlimited permission to copy and/or distribute it,
39824 dnl with or without modifications, as long as this notice is preserved.
39825
39826 -m4_version_prereq([2.70], [] ,[
39827 -
39828 # This is adapted with modifications from upstream Autoconf here:
39829 -# https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=04be2b7a29d65d9a08e64e8e56e594c91749598c
39830 +# https://git.savannah.gnu.org/cgit/autoconf.git/tree/lib/autoconf/functions.m4?id=v2.70#n1455
39831 AC_DEFUN([_AC_FUNC_REALLOC_IF],
39832 [
39833 - AC_REQUIRE([AC_HEADER_STDC])dnl
39834 AC_REQUIRE([AC_CANONICAL_HOST])dnl for cross-compiles
39835 - AC_CHECK_HEADERS([stdlib.h])
39836 - AC_CACHE_CHECK([for GNU libc compatible realloc],
39837 + AC_CACHE_CHECK([whether realloc (0, 0) returns nonnull],
39838 [ac_cv_func_realloc_0_nonnull],
39839 [AC_RUN_IFELSE(
39840 [AC_LANG_PROGRAM(
39841 - [[#if defined STDC_HEADERS || defined HAVE_STDLIB_H
39842 - # include <stdlib.h>
39843 - #else
39844 - char *realloc ();
39845 - #endif
39846 + [[#include <stdlib.h>
39847 ]],
39848 - [[char *p = realloc (0, 0);
39849 + [[void *p = realloc (0, 0);
39850 int result = !p;
39851 free (p);
39852 return result;]])
39853 @@ -32,48 +24,40 @@ AC_DEFUN([_AC_FUNC_REALLOC_IF],
39854 [ac_cv_func_realloc_0_nonnull=no],
39855 [case "$host_os" in
39856 # Guess yes on platforms where we know the result.
39857 - *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
39858 - | hpux* | solaris* | cygwin* | mingw*)
39859 - ac_cv_func_realloc_0_nonnull=yes ;;
39860 - # If we don't know, assume the worst.
39861 - *) ac_cv_func_realloc_0_nonnull=no ;;
39862 + *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
39863 + | gnu* | *-musl* | midnightbsd* \
39864 + | hpux* | solaris* | cygwin* | mingw* | msys* )
39865 + ac_cv_func_realloc_0_nonnull="guessing yes" ;;
39866 + # If we don't know, obey --enable-cross-guesses.
39867 + *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;;
39868 esac
39869 ])
39870 ])
39871 - AS_IF([test $ac_cv_func_realloc_0_nonnull = yes], [$1], [$2])
39872 + AS_CASE([$ac_cv_func_realloc_0_nonnull], [*yes], [$1], [$2])
39873 ])# AC_FUNC_REALLOC
39874
39875 -])
39876 -
39877 # gl_FUNC_REALLOC_GNU
39878 # -------------------
39879 -# Test whether 'realloc (0, 0)' is handled like in GNU libc, and replace
39880 -# realloc if it is not.
39881 +# Replace realloc if it is not compatible with GNU libc.
39882 AC_DEFUN([gl_FUNC_REALLOC_GNU],
39883 [
39884 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
39885 - dnl _AC_FUNC_REALLOC_IF is defined in Autoconf.
39886 - _AC_FUNC_REALLOC_IF(
39887 - [AC_DEFINE([HAVE_REALLOC_GNU], [1],
39888 - [Define to 1 if your system has a GNU libc compatible 'realloc'
39889 - function, and to 0 otherwise.])],
39890 - [AC_DEFINE([HAVE_REALLOC_GNU], [0])
39891 - REPLACE_REALLOC=1
39892 - ])
39893 + AC_REQUIRE([gl_FUNC_REALLOC_POSIX])
39894 + if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then
39895 + _AC_FUNC_REALLOC_IF([], [REPLACE_REALLOC_FOR_REALLOC_GNU=1])
39896 + fi
39897 ])# gl_FUNC_REALLOC_GNU
39898
39899 # gl_FUNC_REALLOC_POSIX
39900 # ---------------------
39901 # Test whether 'realloc' is POSIX compliant (sets errno to ENOMEM when it
39902 -# fails), and replace realloc if it is not.
39903 +# fails, and doesn't mess up with ptrdiff_t overflow),
39904 +# and replace realloc if it is not.
39905 AC_DEFUN([gl_FUNC_REALLOC_POSIX],
39906 [
39907 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
39908 - AC_REQUIRE([gl_CHECK_MALLOC_POSIX])
39909 - if test $gl_cv_func_malloc_posix = yes; then
39910 - AC_DEFINE([HAVE_REALLOC_POSIX], [1],
39911 - [Define if the 'realloc' function is POSIX compliant.])
39912 - else
39913 - REPLACE_REALLOC=1
39914 + AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
39915 + if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
39916 + REPLACE_REALLOC_FOR_REALLOC_POSIX=1
39917 fi
39918 ])
39919
39920 diff --git a/autotools/m4/reallocarray.m4 b/autotools/m4/reallocarray.m4
39921 new file mode 100644
39922 index 0000000..f39ab6e
39923 --- /dev/null
39924 +++ b/autotools/m4/reallocarray.m4
39925 @@ -0,0 +1,23 @@
39926 +# reallocarray.m4 serial 3
39927 +dnl Copyright (C) 2017-2022 Free Software Foundation, Inc.
39928 +dnl This file is free software; the Free Software Foundation
39929 +dnl gives unlimited permission to copy and/or distribute it,
39930 +dnl with or without modifications, as long as this notice is preserved.
39931 +
39932 +AC_DEFUN([gl_FUNC_REALLOCARRAY],
39933 +[
39934 + dnl Persuade glibc <stdlib.h> to declare reallocarray.
39935 + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
39936 +
39937 + AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
39938 + AC_REQUIRE([gl_CHECK_MALLOC_PTRDIFF])
39939 + AC_CHECK_FUNCS([reallocarray])
39940 + if test "$ac_cv_func_reallocarray" = no; then
39941 + HAVE_REALLOCARRAY=0
39942 + elif test "$gl_cv_malloc_ptrdiff" = no; then
39943 + REPLACE_REALLOCARRAY=1
39944 + fi
39945 +])
39946 +
39947 +# Prerequisites of lib/reallocarray.c.
39948 +AC_DEFUN([gl_PREREQ_REALLOCARRAY], [:])
39949
39950 diff --git a/autotools/m4/rename.m4 b/autotools/m4/rename.m4
39951 index 7318e75..9f1a565 100644
39952 --- a/autotools/m4/rename.m4
39953 +++ b/autotools/m4/rename.m4
39954 @@ -1,6 +1,6 @@
39955 -# serial 31
39956 +# serial 33
39957
39958 -# Copyright (C) 2001, 2003, 2005-2006, 2009-2019 Free Software Foundation, Inc.
39959 +# Copyright (C) 2001, 2003, 2005-2006, 2009-2022 Free Software Foundation, Inc.
39960 # This file is free software; the Free Software Foundation
39961 # gives unlimited permission to copy and/or distribute it,
39962 # with or without modifications, as long as this notice is preserved.
39963 @@ -61,8 +61,8 @@ AC_DEFUN([gl_FUNC_RENAME],
39964 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
39965 # Guess no on native Windows.
39966 mingw*) gl_cv_func_rename_slash_dst_works="guessing no" ;;
39967 - # If we don't know, assume the worst.
39968 - *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
39969 + # If we don't know, obey --enable-cross-guesses.
39970 + *) gl_cv_func_rename_slash_dst_works="$gl_cross_guess_normal" ;;
39971 esac
39972 ])
39973 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
39974 @@ -117,8 +117,8 @@ AC_DEFUN([gl_FUNC_RENAME],
39975 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
39976 # Guess yes on native Windows.
39977 mingw*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
39978 - # If we don't know, assume the worst.
39979 - *) gl_cv_func_rename_slash_src_works="guessing no" ;;
39980 + # If we don't know, obey --enable-cross-guesses.
39981 + *) gl_cv_func_rename_slash_src_works="$gl_cross_guess_normal" ;;
39982 esac
39983 ])
39984 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
39985 @@ -140,53 +140,58 @@ AC_DEFUN([gl_FUNC_RENAME],
39986 AC_CACHE_CHECK([whether rename manages hard links correctly],
39987 [gl_cv_func_rename_link_works],
39988 [if test $ac_cv_func_link = yes; then
39989 - rm -rf conftest.f conftest.f1 conftest.f2
39990 - if touch conftest.f conftest.f2 && ln conftest.f conftest.f1 &&
39991 - set x `ls -i conftest.f conftest.f1` && test "$2" = "$4"; then
39992 - AC_RUN_IFELSE(
39993 - [AC_LANG_PROGRAM([[
39994 -# include <errno.h>
39995 -# include <stdio.h>
39996 -# include <stdlib.h>
39997 -# include <unistd.h>
39998 - ]],
39999 - [[int result = 0;
40000 - if (rename ("conftest.f", "conftest.f1"))
40001 - result |= 1;
40002 - if (unlink ("conftest.f1"))
40003 - result |= 2;
40004 + if test $cross_compiling != yes; then
40005 + rm -rf conftest.f conftest.f1 conftest.f2
40006 + if touch conftest.f conftest.f2 && ln conftest.f conftest.f1 &&
40007 + set x `ls -i conftest.f conftest.f1` && test "$2" = "$4"; then
40008 + AC_RUN_IFELSE(
40009 + [AC_LANG_PROGRAM([[
40010 +# include <errno.h>
40011 +# include <stdio.h>
40012 +# include <stdlib.h>
40013 +# include <unistd.h>
40014 + ]GL_MDA_DEFINES],
40015 + [[int result = 0;
40016 + if (rename ("conftest.f", "conftest.f1"))
40017 + result |= 1;
40018 + if (unlink ("conftest.f1"))
40019 + result |= 2;
40020
40021 - /* Allow either the POSIX-required behavior, where the
40022 - previous rename kept conftest.f, or the (better) NetBSD
40023 - behavior, where it removed conftest.f. */
40024 - if (rename ("conftest.f", "conftest.f") != 0
40025 - && errno != ENOENT)
40026 - result |= 4;
40027 + /* Allow either the POSIX-required behavior, where the
40028 + previous rename kept conftest.f, or the (better) NetBSD
40029 + behavior, where it removed conftest.f. */
40030 + if (rename ("conftest.f", "conftest.f") != 0
40031 + && errno != ENOENT)
40032 + result |= 4;
40033
40034 - if (rename ("conftest.f1", "conftest.f1") == 0)
40035 - result |= 8;
40036 - if (rename ("conftest.f2", "conftest.f2") != 0)
40037 - result |= 16;
40038 - return result;
40039 - ]])],
40040 - [gl_cv_func_rename_link_works=yes],
40041 - [gl_cv_func_rename_link_works=no],
40042 - dnl When crosscompiling, assume rename is broken.
40043 - [case "$host_os" in
40044 - # Guess yes on Linux systems.
40045 - linux-* | linux) gl_cv_func_rename_link_works="guessing yes" ;;
40046 - # Guess yes on glibc systems.
40047 - *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
40048 - # Guess yes on native Windows.
40049 - mingw*) gl_cv_func_rename_link_works="guessing yes" ;;
40050 - # If we don't know, assume the worst.
40051 - *) gl_cv_func_rename_link_works="guessing no" ;;
40052 - esac
40053 - ])
40054 + if (rename ("conftest.f1", "conftest.f1") == 0)
40055 + result |= 8;
40056 + if (rename ("conftest.f2", "conftest.f2") != 0)
40057 + result |= 16;
40058 + return result;
40059 + ]])],
40060 + [gl_cv_func_rename_link_works=yes],
40061 + [gl_cv_func_rename_link_works=no],
40062 + [dnl We don't get here.
40063 + :
40064 + ])
40065 + else
40066 + gl_cv_func_rename_link_works="guessing no"
40067 + fi
40068 + rm -rf conftest.f conftest.f1 conftest.f2
40069 else
40070 - gl_cv_func_rename_link_works="guessing no"
40071 + dnl When crosscompiling, assume rename is broken.
40072 + case "$host_os" in
40073 + # Guess yes on Linux systems.
40074 + linux-* | linux) gl_cv_func_rename_link_works="guessing yes" ;;
40075 + # Guess yes on glibc systems.
40076 + *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
40077 + # Guess yes on native Windows.
40078 + mingw*) gl_cv_func_rename_link_works="guessing yes" ;;
40079 + # If we don't know, obey --enable-cross-guesses.
40080 + *) gl_cv_func_rename_link_works="$gl_cross_guess_normal" ;;
40081 + esac
40082 fi
40083 - rm -rf conftest.f conftest.f1 conftest.f2
40084 else
40085 gl_cv_func_rename_link_works=yes
40086 fi
40087 @@ -232,8 +237,8 @@ AC_DEFUN([gl_FUNC_RENAME],
40088 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
40089 # Guess no on native Windows.
40090 mingw*) gl_cv_func_rename_dest_works="guessing no" ;;
40091 - # If we don't know, assume the worst.
40092 - *) gl_cv_func_rename_dest_works="guessing no" ;;
40093 + # If we don't know, obey --enable-cross-guesses.
40094 + *) gl_cv_func_rename_dest_works="$gl_cross_guess_normal" ;;
40095 esac
40096 ])
40097 rm -rf conftest.f conftest.d1 conftest.d2
40098
40099 diff --git a/autotools/m4/renameat.m4 b/autotools/m4/renameat.m4
40100 index fdbaeaf..e8f40d5 100644
40101 --- a/autotools/m4/renameat.m4
40102 +++ b/autotools/m4/renameat.m4
40103 @@ -1,7 +1,7 @@
40104 # serial 3
40105 # See if we need to provide renameat replacement.
40106
40107 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
40108 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
40109 dnl This file is free software; the Free Software Foundation
40110 dnl gives unlimited permission to copy and/or distribute it,
40111 dnl with or without modifications, as long as this notice is preserved.
40112
40113 diff --git a/autotools/m4/rmdir.m4 b/autotools/m4/rmdir.m4
40114 index 5d32caa..5488027 100644
40115 --- a/autotools/m4/rmdir.m4
40116 +++ b/autotools/m4/rmdir.m4
40117 @@ -1,5 +1,5 @@
40118 -# rmdir.m4 serial 16
40119 -dnl Copyright (C) 2002, 2005, 2009-2019 Free Software Foundation, Inc.
40120 +# rmdir.m4 serial 18
40121 +dnl Copyright (C) 2002, 2005, 2009-2022 Free Software Foundation, Inc.
40122 dnl This file is free software; the Free Software Foundation
40123 dnl gives unlimited permission to copy and/or distribute it,
40124 dnl with or without modifications, as long as this notice is preserved.
40125 @@ -22,15 +22,16 @@ AC_DEFUN([gl_FUNC_RMDIR],
40126 #else /* on Windows with MSVC */
40127 # include <direct.h>
40128 #endif
40129 -]], [[int result = 0;
40130 - if (!rmdir ("conftest.file/"))
40131 - result |= 1;
40132 - else if (errno != ENOTDIR)
40133 - result |= 2;
40134 - if (!rmdir ("conftest.dir/./"))
40135 - result |= 4;
40136 - return result;
40137 - ]])],
40138 + ]GL_MDA_DEFINES],
40139 + [[int result = 0;
40140 + if (!rmdir ("conftest.file/"))
40141 + result |= 1;
40142 + else if (errno != ENOTDIR)
40143 + result |= 2;
40144 + if (!rmdir ("conftest.dir/./"))
40145 + result |= 4;
40146 + return result;
40147 + ]])],
40148 [gl_cv_func_rmdir_works=yes], [gl_cv_func_rmdir_works=no],
40149 [case "$host_os" in
40150 # Guess yes on Linux systems.
40151 @@ -39,8 +40,8 @@ AC_DEFUN([gl_FUNC_RMDIR],
40152 *-gnu* | gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
40153 # Guess no on native Windows.
40154 mingw*) gl_cv_func_rmdir_works="guessing no" ;;
40155 - # If we don't know, assume the worst.
40156 - *) gl_cv_func_rmdir_works="guessing no" ;;
40157 + # If we don't know, obey --enable-cross-guesses.
40158 + *) gl_cv_func_rmdir_works="$gl_cross_guess_normal" ;;
40159 esac
40160 ])
40161 rm -rf conftest.dir conftest.file])
40162
40163 diff --git a/autotools/m4/save-cwd.m4 b/autotools/m4/save-cwd.m4
40164 index 816fd70..90073ee 100644
40165 --- a/autotools/m4/save-cwd.m4
40166 +++ b/autotools/m4/save-cwd.m4
40167 @@ -1,5 +1,5 @@
40168 # serial 10
40169 -dnl Copyright (C) 2002-2006, 2009-2019 Free Software Foundation, Inc.
40170 +dnl Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc.
40171 dnl This file is free software; the Free Software Foundation
40172 dnl gives unlimited permission to copy and/or distribute it,
40173 dnl with or without modifications, as long as this notice is preserved.
40174
40175 diff --git a/autotools/m4/signbit.m4 b/autotools/m4/signbit.m4
40176 index bf5bce5..8a4114d 100644
40177 --- a/autotools/m4/signbit.m4
40178 +++ b/autotools/m4/signbit.m4
40179 @@ -1,5 +1,5 @@
40180 -# signbit.m4 serial 16
40181 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
40182 +# signbit.m4 serial 20
40183 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
40184 dnl This file is free software; the Free Software Foundation
40185 dnl gives unlimited permission to copy and/or distribute it,
40186 dnl with or without modifications, as long as this notice is preserved.
40187 @@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
40188 AC_DEFUN([gl_SIGNBIT],
40189 [
40190 AC_REQUIRE([gl_MATH_H_DEFAULTS])
40191 - AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
40192 + AC_REQUIRE([AC_CANONICAL_HOST])
40193 AC_CACHE_CHECK([for signbit macro], [gl_cv_func_signbit],
40194 [
40195 AC_RUN_IFELSE(
40196 @@ -31,22 +31,25 @@ AC_DEFUN([gl_SIGNBIT],
40197 [case "$host_os" in
40198 # Guess yes on glibc systems.
40199 *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;;
40200 + # Guess yes on musl systems.
40201 + *-musl*) gl_cv_func_signbit="guessing yes" ;;
40202 # Guess yes on native Windows.
40203 mingw*) gl_cv_func_signbit="guessing yes" ;;
40204 - # If we don't know, assume the worst.
40205 - *) gl_cv_func_signbit="guessing no" ;;
40206 + # If we don't know, obey --enable-cross-guesses.
40207 + *) gl_cv_func_signbit="$gl_cross_guess_normal" ;;
40208 esac
40209 ])
40210 ])
40211 - dnl GCC 4.0 and newer provides three built-ins for signbit.
40212 + dnl GCC >= 4.0 and clang provide three built-ins for signbit.
40213 dnl They can be used without warnings, also in C++, regardless of <math.h>.
40214 dnl But they may expand to calls to functions, which may or may not be in
40215 dnl libc.
40216 - AC_CACHE_CHECK([for signbit compiler built-ins], [gl_cv_func_signbit_gcc],
40217 + AC_CACHE_CHECK([for signbit compiler built-ins],
40218 + [gl_cv_func_signbit_builtins],
40219 [
40220 AC_RUN_IFELSE(
40221 [AC_LANG_SOURCE([[
40222 -#if __GNUC__ >= 4
40223 +#if (__GNUC__ >= 4) || (__clang_major__ >= 4)
40224 # define signbit(x) \
40225 (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
40226 sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
40227 @@ -57,28 +60,30 @@ AC_DEFUN([gl_SIGNBIT],
40228 #include <string.h>
40229 ]gl_SIGNBIT_TEST_PROGRAM
40230 ])],
40231 - [gl_cv_func_signbit_gcc=yes],
40232 - [gl_cv_func_signbit_gcc=no],
40233 + [gl_cv_func_signbit_builtins=yes],
40234 + [gl_cv_func_signbit_builtins=no],
40235 [case "$host_os" in
40236 # Guess yes on glibc systems.
40237 - *-gnu* | gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
40238 + *-gnu* | gnu*) gl_cv_func_signbit_builtins="guessing yes" ;;
40239 + # Guess yes on musl systems.
40240 + *-musl*) gl_cv_func_signbit_builtins="guessing yes" ;;
40241 # Guess yes on mingw, no on MSVC.
40242 mingw*) if test -n "$GCC"; then
40243 - gl_cv_func_signbit_gcc="guessing yes"
40244 + gl_cv_func_signbit_builtins="guessing yes"
40245 else
40246 - gl_cv_func_signbit_gcc="guessing no"
40247 + gl_cv_func_signbit_builtins="guessing no"
40248 fi
40249 ;;
40250 - # If we don't know, assume the worst.
40251 - *) gl_cv_func_signbit_gcc="guessing no" ;;
40252 + # If we don't know, obey --enable-cross-guesses.
40253 + *) gl_cv_func_signbit_builtins="$gl_cross_guess_normal" ;;
40254 esac
40255 ])
40256 ])
40257 dnl Use the compiler built-ins whenever possible, because they are more
40258 dnl efficient than the system library functions (if they exist).
40259 - case "$gl_cv_func_signbit_gcc" in
40260 + case "$gl_cv_func_signbit_builtins" in
40261 *yes)
40262 - REPLACE_SIGNBIT_USING_GCC=1
40263 + REPLACE_SIGNBIT_USING_BUILTINS=1
40264 ;;
40265 *)
40266 case "$gl_cv_func_signbit" in
40267 @@ -86,79 +91,90 @@ AC_DEFUN([gl_SIGNBIT],
40268 *)
40269 dnl REPLACE_SIGNBIT=1 makes sure the signbit[fdl] functions get built.
40270 REPLACE_SIGNBIT=1
40271 - gl_FLOAT_SIGN_LOCATION
40272 - gl_DOUBLE_SIGN_LOCATION
40273 - gl_LONG_DOUBLE_SIGN_LOCATION
40274 - if test "$gl_cv_cc_float_signbit" = unknown; then
40275 - dnl Test whether copysignf() is declared.
40276 - AC_CHECK_DECLS([copysignf], , , [[#include <math.h>]])
40277 - if test "$ac_cv_have_decl_copysignf" = yes; then
40278 - dnl Test whether copysignf() can be used without libm.
40279 - AC_CACHE_CHECK([whether copysignf can be used without linking with libm],
40280 - [gl_cv_func_copysignf_no_libm],
40281 - [
40282 - AC_LINK_IFELSE(
40283 - [AC_LANG_PROGRAM(
40284 - [[#include <math.h>
40285 - float x, y;]],
40286 - [[return copysignf (x, y) < 0;]])],
40287 - [gl_cv_func_copysignf_no_libm=yes],
40288 - [gl_cv_func_copysignf_no_libm=no])
40289 - ])
40290 - if test $gl_cv_func_copysignf_no_libm = yes; then
40291 - AC_DEFINE([HAVE_COPYSIGNF_IN_LIBC], [1],
40292 - [Define if the copysignf function is declared in <math.h> and available in libc.])
40293 - fi
40294 - fi
40295 - fi
40296 - if test "$gl_cv_cc_double_signbit" = unknown; then
40297 - dnl Test whether copysign() is declared.
40298 - AC_CHECK_DECLS([copysign], , , [[#include <math.h>]])
40299 - if test "$ac_cv_have_decl_copysign" = yes; then
40300 - dnl Test whether copysign() can be used without libm.
40301 - AC_CACHE_CHECK([whether copysign can be used without linking with libm],
40302 - [gl_cv_func_copysign_no_libm],
40303 - [
40304 - AC_LINK_IFELSE(
40305 - [AC_LANG_PROGRAM(
40306 - [[#include <math.h>
40307 - double x, y;]],
40308 - [[return copysign (x, y) < 0;]])],
40309 - [gl_cv_func_copysign_no_libm=yes],
40310 - [gl_cv_func_copysign_no_libm=no])
40311 - ])
40312 - if test $gl_cv_func_copysign_no_libm = yes; then
40313 - AC_DEFINE([HAVE_COPYSIGN_IN_LIBC], [1],
40314 - [Define if the copysign function is declared in <math.h> and available in libc.])
40315 - fi
40316 - fi
40317 - fi
40318 - if test "$gl_cv_cc_long_double_signbit" = unknown; then
40319 - dnl Test whether copysignl() is declared.
40320 - AC_CHECK_DECLS([copysignl], , , [[#include <math.h>]])
40321 - if test "$ac_cv_have_decl_copysignl" = yes; then
40322 - dnl Test whether copysignl() can be used without libm.
40323 - AC_CACHE_CHECK([whether copysignl can be used without linking with libm],
40324 - [gl_cv_func_copysignl_no_libm],
40325 - [
40326 - AC_LINK_IFELSE(
40327 - [AC_LANG_PROGRAM(
40328 - [[#include <math.h>
40329 - long double x, y;]],
40330 - [[return copysignl (x, y) < 0;]])],
40331 - [gl_cv_func_copysignl_no_libm=yes],
40332 - [gl_cv_func_copysignl_no_libm=no])
40333 - ])
40334 - if test $gl_cv_func_copysignl_no_libm = yes; then
40335 - AC_DEFINE([HAVE_COPYSIGNL_IN_LIBC], [1],
40336 - [Define if the copysignl function is declared in <math.h> and available in libc.])
40337 - fi
40338 - fi
40339 - fi
40340 ;;
40341 esac
40342 ;;
40343 esac
40344 + dnl On Solaris 10, with CC in C++ mode, signbit is not available although
40345 + dnl is with cc in C mode. This cannot be worked around by defining
40346 + dnl _XOPEN_SOURCE=600, because the latter does not work in C++ mode on
40347 + dnl Solaris 11.0. Therefore use the replacement functions on Solaris.
40348 + case "$host_os" in
40349 + solaris*)
40350 + REPLACE_SIGNBIT=1
40351 + ;;
40352 + esac
40353 + if test $REPLACE_SIGNBIT = 1; then
40354 + gl_FLOAT_SIGN_LOCATION
40355 + gl_DOUBLE_SIGN_LOCATION
40356 + gl_LONG_DOUBLE_SIGN_LOCATION
40357 + if test "$gl_cv_cc_float_signbit" = unknown; then
40358 + dnl Test whether copysignf() is declared.
40359 + AC_CHECK_DECLS([copysignf], , , [[#include <math.h>]])
40360 + if test "$ac_cv_have_decl_copysignf" = yes; then
40361 + dnl Test whether copysignf() can be used without libm.
40362 + AC_CACHE_CHECK([whether copysignf can be used without linking with libm],
40363 + [gl_cv_func_copysignf_no_libm],
40364 + [
40365 + AC_LINK_IFELSE(
40366 + [AC_LANG_PROGRAM(
40367 + [[#include <math.h>
40368 + float x, y;]],
40369 + [[return copysignf (x, y) < 0;]])],
40370 + [gl_cv_func_copysignf_no_libm=yes],
40371 + [gl_cv_func_copysignf_no_libm=no])
40372 + ])
40373 + if test $gl_cv_func_copysignf_no_libm = yes; then
40374 + AC_DEFINE([HAVE_COPYSIGNF_IN_LIBC], [1],
40375 + [Define if the copysignf function is declared in <math.h> and available in libc.])
40376 + fi
40377 + fi
40378 + fi
40379 + if test "$gl_cv_cc_double_signbit" = unknown; then
40380 + dnl Test whether copysign() is declared.
40381 + AC_CHECK_DECLS([copysign], , , [[#include <math.h>]])
40382 + if test "$ac_cv_have_decl_copysign" = yes; then
40383 + dnl Test whether copysign() can be used without libm.
40384 + AC_CACHE_CHECK([whether copysign can be used without linking with libm],
40385 + [gl_cv_func_copysign_no_libm],
40386 + [
40387 + AC_LINK_IFELSE(
40388 + [AC_LANG_PROGRAM(
40389 + [[#include <math.h>
40390 + double x, y;]],
40391 + [[return copysign (x, y) < 0;]])],
40392 + [gl_cv_func_copysign_no_libm=yes],
40393 + [gl_cv_func_copysign_no_libm=no])
40394 + ])
40395 + if test $gl_cv_func_copysign_no_libm = yes; then
40396 + AC_DEFINE([HAVE_COPYSIGN_IN_LIBC], [1],
40397 + [Define if the copysign function is declared in <math.h> and available in libc.])
40398 + fi
40399 + fi
40400 + fi
40401 + if test "$gl_cv_cc_long_double_signbit" = unknown; then
40402 + dnl Test whether copysignl() is declared.
40403 + AC_CHECK_DECLS([copysignl], , , [[#include <math.h>]])
40404 + if test "$ac_cv_have_decl_copysignl" = yes; then
40405 + dnl Test whether copysignl() can be used without libm.
40406 + AC_CACHE_CHECK([whether copysignl can be used without linking with libm],
40407 + [gl_cv_func_copysignl_no_libm],
40408 + [
40409 + AC_LINK_IFELSE(
40410 + [AC_LANG_PROGRAM(
40411 + [[#include <math.h>
40412 + long double x, y;]],
40413 + [[return copysignl (x, y) < 0;]])],
40414 + [gl_cv_func_copysignl_no_libm=yes],
40415 + [gl_cv_func_copysignl_no_libm=no])
40416 + ])
40417 + if test $gl_cv_func_copysignl_no_libm = yes; then
40418 + AC_DEFINE([HAVE_COPYSIGNL_IN_LIBC], [1],
40419 + [Define if the copysignl function is declared in <math.h> and available in libc.])
40420 + fi
40421 + fi
40422 + fi
40423 + fi
40424 ])
40425
40426 AC_DEFUN([gl_SIGNBIT_TEST_PROGRAM], [[
40427
40428 diff --git a/autotools/m4/size_max.m4 b/autotools/m4/size_max.m4
40429 index ab79052..1d6abae 100644
40430 --- a/autotools/m4/size_max.m4
40431 +++ b/autotools/m4/size_max.m4
40432 @@ -1,5 +1,5 @@
40433 -# size_max.m4 serial 11
40434 -dnl Copyright (C) 2003, 2005-2006, 2008-2019 Free Software Foundation, Inc.
40435 +# size_max.m4 serial 12
40436 +dnl Copyright (C) 2003, 2005-2006, 2008-2022 Free Software Foundation, Inc.
40437 dnl This file is free software; the Free Software Foundation
40438 dnl gives unlimited permission to copy and/or distribute it,
40439 dnl with or without modifications, as long as this notice is preserved.
40440 @@ -13,7 +13,7 @@ AC_DEFUN([gl_SIZE_MAX],
40441 AC_CHECK_HEADERS([stdint.h])
40442 dnl First test whether the system already has SIZE_MAX.
40443 AC_CACHE_CHECK([for SIZE_MAX], [gl_cv_size_max], [
40444 - gl_cv_size_max=
40445 + gl_cv_size_max=no
40446 AC_EGREP_CPP([Found it], [
40447 #include <limits.h>
40448 #if HAVE_STDINT_H
40449 @@ -23,7 +23,7 @@ AC_DEFUN([gl_SIZE_MAX],
40450 Found it
40451 #endif
40452 ], [gl_cv_size_max=yes])
40453 - if test -z "$gl_cv_size_max"; then
40454 + if test $gl_cv_size_max != yes; then
40455 dnl Define it ourselves. Here we assume that the type 'size_t' is not wider
40456 dnl than the type 'unsigned long'. Try hard to find a definition that can
40457 dnl be used in a preprocessor #if, i.e. doesn't contain a cast.
40458
40459 diff --git a/autotools/m4/ssize_t.m4 b/autotools/m4/ssize_t.m4
40460 index 38bcee1..03b2b89 100644
40461 --- a/autotools/m4/ssize_t.m4
40462 +++ b/autotools/m4/ssize_t.m4
40463 @@ -1,5 +1,5 @@
40464 # ssize_t.m4 serial 5 (gettext-0.18.2)
40465 -dnl Copyright (C) 2001-2003, 2006, 2010-2019 Free Software Foundation, Inc.
40466 +dnl Copyright (C) 2001-2003, 2006, 2010-2022 Free Software Foundation, Inc.
40467 dnl This file is free software; the Free Software Foundation
40468 dnl gives unlimited permission to copy and/or distribute it,
40469 dnl with or without modifications, as long as this notice is preserved.
40470
40471 diff --git a/autotools/m4/stat-time.m4 b/autotools/m4/stat-time.m4
40472 index 1685788..342857d 100644
40473 --- a/autotools/m4/stat-time.m4
40474 +++ b/autotools/m4/stat-time.m4
40475 @@ -1,6 +1,6 @@
40476 # Checks for stat-related time functions.
40477
40478 -# Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2019 Free Software
40479 +# Copyright (C) 1998-1999, 2001, 2003, 2005-2007, 2009-2022 Free Software
40480 # Foundation, Inc.
40481
40482 # This file is free software; the Free Software Foundation
40483
40484 diff --git a/autotools/m4/stat.m4 b/autotools/m4/stat.m4
40485 index 60040d1..916eb88 100644
40486 --- a/autotools/m4/stat.m4
40487 +++ b/autotools/m4/stat.m4
40488 @@ -1,6 +1,6 @@
40489 -# serial 15
40490 +# serial 18
40491
40492 -# Copyright (C) 2009-2019 Free Software Foundation, Inc.
40493 +# Copyright (C) 2009-2022 Free Software Foundation, Inc.
40494 #
40495 # This file is free software; the Free Software Foundation
40496 # gives unlimited permission to copy and/or distribute it,
40497 @@ -47,8 +47,8 @@ AC_DEFUN([gl_FUNC_STAT],
40498 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
40499 # Guess yes on glibc systems.
40500 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
40501 - # If we don't know, assume the worst.
40502 - *) gl_cv_func_stat_file_slash="guessing no" ;;
40503 + # If we don't know, obey --enable-cross-guesses.
40504 + *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
40505 esac
40506 ])
40507 rm -f conftest.tmp conftest.lnk])
40508 @@ -69,6 +69,17 @@ AC_DEFUN([gl_FUNC_STAT],
40509
40510 # Prerequisites of lib/stat.c and lib/stat-w32.c.
40511 AC_DEFUN([gl_PREREQ_STAT], [
40512 - AC_REQUIRE([gl_HEADER_SYS_STAT_H])
40513 + AC_REQUIRE([gl_SYS_STAT_H])
40514 + AC_REQUIRE([gl_PREREQ_STAT_W32])
40515 :
40516 ])
40517 +
40518 +# Prerequisites of lib/stat-w32.c.
40519 +AC_DEFUN([gl_PREREQ_STAT_W32], [
40520 + AC_REQUIRE([AC_CANONICAL_HOST])
40521 + case "$host_os" in
40522 + mingw*)
40523 + AC_CHECK_HEADERS([sdkddkver.h])
40524 + ;;
40525 + esac
40526 +])
40527
40528 diff --git a/autotools/m4/std-gnu11.m4 b/autotools/m4/std-gnu11.m4
40529 new file mode 100644
40530 index 0000000..5ca1860
40531 --- /dev/null
40532 +++ b/autotools/m4/std-gnu11.m4
40533 @@ -0,0 +1,829 @@
40534 +# Prefer GNU C11 and C++11 to earlier versions. -*- coding: utf-8 -*-
40535 +
40536 +# This implementation is taken from GNU Autoconf lib/autoconf/c.m4
40537 +# commit 017d5ddd82854911f0119691d91ea8a1438824d6
40538 +# dated Sun Apr 3 13:57:17 2016 -0700
40539 +# This implementation will be obsolete once we can assume Autoconf 2.70
40540 +# or later is installed everywhere a Gnulib program might be developed.
40541 +
40542 +m4_version_prereq([2.70], [], [
40543 +
40544 +
40545 +# Copyright (C) 2001-2022 Free Software Foundation, Inc.
40546 +
40547 +# This program is free software; you can redistribute it and/or modify
40548 +# it under the terms of the GNU General Public License as published by
40549 +# the Free Software Foundation, either version 3 of the License, or
40550 +# (at your option) any later version.
40551 +#
40552 +# This program is distributed in the hope that it will be useful,
40553 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
40554 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40555 +# GNU General Public License for more details.
40556 +#
40557 +# You should have received a copy of the GNU General Public License
40558 +# along with this program. If not, see <https://www.gnu.org/licenses/>.
40559 +
40560 +# Written by David MacKenzie, with help from
40561 +# Akim Demaille, Paul Eggert,
40562 +# François Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor,
40563 +# Roland McGrath, Noah Friedman, david d zuhn, and many others.
40564 +
40565 +
40566 +# AC_PROG_CC([COMPILER ...])
40567 +# --------------------------
40568 +# COMPILER ... is a space separated list of C compilers to search for.
40569 +# This just gives the user an opportunity to specify an alternative
40570 +# search list for the C compiler.
40571 +AC_DEFUN_ONCE([AC_PROG_CC],
40572 +[AC_LANG_PUSH(C)dnl
40573 +AC_ARG_VAR([CC], [C compiler command])dnl
40574 +AC_ARG_VAR([CFLAGS], [C compiler flags])dnl
40575 +_AC_ARG_VAR_LDFLAGS()dnl
40576 +_AC_ARG_VAR_LIBS()dnl
40577 +_AC_ARG_VAR_CPPFLAGS()dnl
40578 +m4_ifval([$1],
40579 + [AC_CHECK_TOOLS(CC, [$1])],
40580 +[AC_CHECK_TOOL(CC, gcc)
40581 +if test -z "$CC"; then
40582 + dnl Here we want:
40583 + dnl AC_CHECK_TOOL(CC, cc)
40584 + dnl but without the check for a tool without the prefix.
40585 + dnl Until the check is removed from there, copy the code:
40586 + if test -n "$ac_tool_prefix"; then
40587 + AC_CHECK_PROG(CC, [${ac_tool_prefix}cc], [${ac_tool_prefix}cc])
40588 + fi
40589 +fi
40590 +if test -z "$CC"; then
40591 + AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
40592 +fi
40593 +if test -z "$CC"; then
40594 + AC_CHECK_TOOLS(CC, cl.exe)
40595 +fi
40596 +if test -z "$CC"; then
40597 + AC_CHECK_TOOL(CC, clang)
40598 +fi
40599 +])
40600 +
40601 +test -z "$CC" && AC_MSG_FAILURE([no acceptable C compiler found in \$PATH])
40602 +
40603 +# Provide some information about the compiler.
40604 +_AS_ECHO_LOG([checking for _AC_LANG compiler version])
40605 +set X $ac_compile
40606 +ac_compiler=$[2]
40607 +for ac_option in --version -v -V -qversion -version; do
40608 + _AC_DO_LIMIT([$ac_compiler $ac_option >&AS_MESSAGE_LOG_FD])
40609 +done
40610 +
40611 +m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl
40612 +m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl
40613 +_AC_LANG_COMPILER_GNU
40614 +if test $ac_compiler_gnu = yes; then
40615 + GCC=yes
40616 +else
40617 + GCC=
40618 +fi
40619 +_AC_PROG_CC_G
40620 +dnl
40621 +dnl Set ac_prog_cc_stdc to the supported C version.
40622 +dnl Also set the documented variable ac_cv_prog_cc_stdc;
40623 +dnl its name was chosen when it was cached, but it is no longer cached.
40624 +_AC_PROG_CC_C11([ac_prog_cc_stdc=c11
40625 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11],
40626 + [_AC_PROG_CC_C99([ac_prog_cc_stdc=c99
40627 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99],
40628 + [_AC_PROG_CC_C89([ac_prog_cc_stdc=c89
40629 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89],
40630 + [ac_prog_cc_stdc=no
40631 + ac_cv_prog_cc_stdc=no])])])
40632 +dnl
40633 +AC_LANG_POP(C)dnl
40634 +])# AC_PROG_CC
40635 +
40636 +
40637 +
40638 +# AC_PROG_CXX([LIST-OF-COMPILERS])
40639 +# --------------------------------
40640 +# LIST-OF-COMPILERS is a space separated list of C++ compilers to search
40641 +# for (if not specified, a default list is used). This just gives the
40642 +# user an opportunity to specify an alternative search list for the C++
40643 +# compiler.
40644 +# aCC HP-UX C++ compiler much better than `CC', so test before.
40645 +# FCC Fujitsu C++ compiler
40646 +# KCC KAI C++ compiler
40647 +# RCC Rational C++
40648 +# xlC_r AIX C Set++ (with support for reentrant code)
40649 +# xlC AIX C Set++
40650 +AC_DEFUN([AC_PROG_CXX],
40651 +[AC_LANG_PUSH(C++)dnl
40652 +AC_ARG_VAR([CXX], [C++ compiler command])dnl
40653 +AC_ARG_VAR([CXXFLAGS], [C++ compiler flags])dnl
40654 +_AC_ARG_VAR_LDFLAGS()dnl
40655 +_AC_ARG_VAR_LIBS()dnl
40656 +_AC_ARG_VAR_CPPFLAGS()dnl
40657 +_AC_ARG_VAR_PRECIOUS([CCC])dnl
40658 +if test -z "$CXX"; then
40659 + if test -n "$CCC"; then
40660 + CXX=$CCC
40661 + else
40662 + AC_CHECK_TOOLS(CXX,
40663 + [m4_default([$1],
40664 + [g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++])],
40665 + g++)
40666 + fi
40667 +fi
40668 +# Provide some information about the compiler.
40669 +_AS_ECHO_LOG([checking for _AC_LANG compiler version])
40670 +set X $ac_compile
40671 +ac_compiler=$[2]
40672 +for ac_option in --version -v -V -qversion; do
40673 + _AC_DO_LIMIT([$ac_compiler $ac_option >&AS_MESSAGE_LOG_FD])
40674 +done
40675 +
40676 +m4_expand_once([_AC_COMPILER_EXEEXT])[]dnl
40677 +m4_expand_once([_AC_COMPILER_OBJEXT])[]dnl
40678 +_AC_LANG_COMPILER_GNU
40679 +if test $ac_compiler_gnu = yes; then
40680 + GXX=yes
40681 +else
40682 + GXX=
40683 +fi
40684 +_AC_PROG_CXX_G
40685 +_AC_PROG_CXX_CXX11([ac_prog_cxx_stdcxx=cxx11
40686 + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
40687 + ac_cv_prog_cxx_cxx98=$ac_cv_prog_cxx_cxx11],
40688 + [_AC_PROG_CXX_CXX98([ac_prog_cxx_stdcxx=cxx98
40689 + ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98],
40690 + [ac_prog_cxx_stdcxx=no
40691 + ac_cv_prog_cxx_stdcxx=no])])
40692 +AC_LANG_POP(C++)dnl
40693 +])# AC_PROG_CXX
40694 +
40695 +
40696 +# _AC_C_STD_TRY(STANDARD, TEST-PROLOGUE, TEST-BODY, OPTION-LIST,
40697 +# ACTION-IF-AVAILABLE, ACTION-IF-UNAVAILABLE)
40698 +# --------------------------------------------------------------
40699 +# Check whether the C compiler accepts features of STANDARD (e.g `c89', `c99')
40700 +# by trying to compile a program of TEST-PROLOGUE and TEST-BODY. If this fails,
40701 +# try again with each compiler option in the space-separated OPTION-LIST; if one
40702 +# helps, append it to CC. If eventually successful, run ACTION-IF-AVAILABLE,
40703 +# else ACTION-IF-UNAVAILABLE.
40704 +AC_DEFUN([_AC_C_STD_TRY],
40705 +[AC_MSG_CHECKING([for $CC option to enable ]m4_translit($1, [c], [C])[ features])
40706 +AC_CACHE_VAL(ac_cv_prog_cc_$1,
40707 +[ac_cv_prog_cc_$1=no
40708 +ac_save_CC=$CC
40709 +AC_LANG_CONFTEST([AC_LANG_PROGRAM([$2], [$3])])
40710 +for ac_arg in '' $4
40711 +do
40712 + CC="$ac_save_CC $ac_arg"
40713 + _AC_COMPILE_IFELSE([], [ac_cv_prog_cc_$1=$ac_arg])
40714 + test "x$ac_cv_prog_cc_$1" != "xno" && break
40715 +done
40716 +rm -f conftest.$ac_ext
40717 +CC=$ac_save_CC
40718 +])# AC_CACHE_VAL
40719 +ac_prog_cc_stdc_options=
40720 +case "x$ac_cv_prog_cc_$1" in
40721 + x)
40722 + AC_MSG_RESULT([none needed]) ;;
40723 + xno)
40724 + AC_MSG_RESULT([unsupported]) ;;
40725 + *)
40726 + ac_prog_cc_stdc_options=" $ac_cv_prog_cc_$1"
40727 + CC=$CC$ac_prog_cc_stdc_options
40728 + AC_MSG_RESULT([$ac_cv_prog_cc_$1]) ;;
40729 +esac
40730 +AS_IF([test "x$ac_cv_prog_cc_$1" != xno], [$5], [$6])
40731 +])# _AC_C_STD_TRY
40732 +
40733 +# _AC_C_C99_TEST_HEADER
40734 +# ---------------------
40735 +# A C header suitable for testing for C99.
40736 +AC_DEFUN([_AC_C_C99_TEST_HEADER],
40737 +[[#include <stdarg.h>
40738 +#include <stdbool.h>
40739 +#include <stddef.h>
40740 +#include <stdlib.h>
40741 +#include <wchar.h>
40742 +#include <stdio.h>
40743 +
40744 +// Check varargs macros. These examples are taken from C99 6.10.3.5.
40745 +#define debug(...) fprintf (stderr, __VA_ARGS__)
40746 +#define showlist(...) puts (#__VA_ARGS__)
40747 +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
40748 +static void
40749 +test_varargs_macros (void)
40750 +{
40751 + int x = 1234;
40752 + int y = 5678;
40753 + debug ("Flag");
40754 + debug ("X = %d\n", x);
40755 + showlist (The first, second, and third items.);
40756 + report (x>y, "x is %d but y is %d", x, y);
40757 +}
40758 +
40759 +// Check long long types.
40760 +#define BIG64 18446744073709551615ull
40761 +#define BIG32 4294967295ul
40762 +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
40763 +#if !BIG_OK
40764 + your preprocessor is broken;
40765 +#endif
40766 +#if BIG_OK
40767 +#else
40768 + your preprocessor is broken;
40769 +#endif
40770 +static long long int bignum = -9223372036854775807LL;
40771 +static unsigned long long int ubignum = BIG64;
40772 +
40773 +struct incomplete_array
40774 +{
40775 + int datasize;
40776 + double data[];
40777 +};
40778 +
40779 +struct named_init {
40780 + int number;
40781 + const wchar_t *name;
40782 + double average;
40783 +};
40784 +
40785 +typedef const char *ccp;
40786 +
40787 +static inline int
40788 +test_restrict (ccp restrict text)
40789 +{
40790 + // See if C++-style comments work.
40791 + // Iterate through items via the restricted pointer.
40792 + // Also check for declarations in for loops.
40793 + for (unsigned int i = 0; *(text+i) != '\0'; ++i)
40794 + continue;
40795 + return 0;
40796 +}
40797 +
40798 +// Check varargs and va_copy.
40799 +static bool
40800 +test_varargs (const char *format, ...)
40801 +{
40802 + va_list args;
40803 + va_start (args, format);
40804 + va_list args_copy;
40805 + va_copy (args_copy, args);
40806 +
40807 + const char *str = "";
40808 + int number = 0;
40809 + float fnumber = 0;
40810 +
40811 + while (*format)
40812 + {
40813 + switch (*format++)
40814 + {
40815 + case 's': // string
40816 + str = va_arg (args_copy, const char *);
40817 + break;
40818 + case 'd': // int
40819 + number = va_arg (args_copy, int);
40820 + break;
40821 + case 'f': // float
40822 + fnumber = va_arg (args_copy, double);
40823 + break;
40824 + default:
40825 + break;
40826 + }
40827 + }
40828 + va_end (args_copy);
40829 + va_end (args);
40830 +
40831 + return *str && number && fnumber;
40832 +}]])# _AC_C_C99_TEST_HEADER
40833 +
40834 +# _AC_C_C99_TEST_BODY
40835 +# -------------------
40836 +# A C body suitable for testing for C99, assuming the corresponding header.
40837 +AC_DEFUN([_AC_C_C99_TEST_BODY],
40838 +[[
40839 + // Check bool.
40840 + _Bool success = false;
40841 +
40842 + // Check restrict.
40843 + if (test_restrict ("String literal") == 0)
40844 + success = true;
40845 + char *restrict newvar = "Another string";
40846 +
40847 + // Check varargs.
40848 + success &= test_varargs ("s, d' f .", "string", 65, 34.234);
40849 + test_varargs_macros ();
40850 +
40851 + // Check flexible array members.
40852 + struct incomplete_array *ia =
40853 + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
40854 + ia->datasize = 10;
40855 + for (int i = 0; i < ia->datasize; ++i)
40856 + ia->data[i] = i * 1.234;
40857 +
40858 + // Check named initializers.
40859 + struct named_init ni = {
40860 + .number = 34,
40861 + .name = L"Test wide string",
40862 + .average = 543.34343,
40863 + };
40864 +
40865 + ni.number = 58;
40866 +
40867 + int dynamic_array[ni.number];
40868 + dynamic_array[ni.number - 1] = 543;
40869 +
40870 + // work around unused variable warnings
40871 + return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
40872 + || dynamic_array[ni.number - 1] != 543);
40873 +]])
40874 +
40875 +# _AC_PROG_CC_C99 ([ACTION-IF-AVAILABLE], [ACTION-IF-UNAVAILABLE])
40876 +# ----------------------------------------------------------------
40877 +# If the C compiler is not in ISO C99 mode by default, try to add an
40878 +# option to output variable CC to make it so. This macro tries
40879 +# various options that select ISO C99 on some system or another. It
40880 +# considers the compiler to be in ISO C99 mode if it handles _Bool,
40881 +# // comments, flexible array members, inline, long long int, mixed
40882 +# code and declarations, named initialization of structs, restrict,
40883 +# va_copy, varargs macros, variable declarations in for loops and
40884 +# variable length arrays.
40885 +AC_DEFUN([_AC_PROG_CC_C99],
40886 +[_AC_C_STD_TRY([c99],
40887 +[_AC_C_C99_TEST_HEADER],
40888 +[_AC_C_C99_TEST_BODY],
40889 +dnl Try
40890 +dnl GCC -std=gnu99 (unused restrictive modes: -std=c99 -std=iso9899:1999)
40891 +dnl IBM XL C -qlanglvl=extc1x (V12.1; does not pass C11 test)
40892 +dnl IBM XL C -qlanglvl=extc99
40893 +dnl (pre-V12.1; unused restrictive mode: -qlanglvl=stdc99)
40894 +dnl HP cc -AC99
40895 +dnl Intel ICC -std=c99, -c99 (deprecated)
40896 +dnl IRIX -c99
40897 +dnl Solaris -D_STDC_C99=
40898 +dnl cc's -xc99 option uses linker magic to define the external
40899 +dnl symbol __xpg4 as if by "int __xpg4 = 1;", which enables C99
40900 +dnl behavior for C library functions. This is not wanted here,
40901 +dnl because it means that a single module compiled with -xc99
40902 +dnl alters C runtime behavior for the entire program, not for
40903 +dnl just the module. Instead, define the (private) symbol
40904 +dnl _STDC_C99, which suppresses a bogus failure in <stdbool.h>.
40905 +dnl The resulting compiler passes the test case here, and that's
40906 +dnl good enough. For more, please see the thread starting at:
40907 +dnl https://lists.gnu.org/r/autoconf/2010-12/msg00059.html
40908 +dnl Tru64 -c99
40909 +dnl with extended modes being tried first.
40910 +[[-std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99]], [$1], [$2])[]dnl
40911 +])# _AC_PROG_CC_C99
40912 +
40913 +
40914 +# _AC_PROG_CC_C11 ([ACTION-IF-AVAILABLE], [ACTION-IF-UNAVAILABLE])
40915 +# ----------------------------------------------------------------
40916 +# If the C compiler is not in ISO C11 mode by default, try to add an
40917 +# option to output variable CC to make it so. This macro tries
40918 +# various options that select ISO C11 on some system or another. It
40919 +# considers the compiler to be in ISO C11 mode if it handles _Alignas,
40920 +# _Alignof, _Noreturn, _Static_assert, UTF-8 string literals,
40921 +# duplicate typedefs, and anonymous structures and unions.
40922 +AC_DEFUN([_AC_PROG_CC_C11],
40923 +[_AC_C_STD_TRY([c11],
40924 +[_AC_C_C99_TEST_HEADER[
40925 +// Check _Alignas.
40926 +char _Alignas (double) aligned_as_double;
40927 +char _Alignas (0) no_special_alignment;
40928 +extern char aligned_as_int;
40929 +char _Alignas (0) _Alignas (int) aligned_as_int;
40930 +
40931 +// Check _Alignof.
40932 +enum
40933 +{
40934 + int_alignment = _Alignof (int),
40935 + int_array_alignment = _Alignof (int[100]),
40936 + char_alignment = _Alignof (char)
40937 +};
40938 +_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
40939 +
40940 +// Check _Noreturn.
40941 +int _Noreturn does_not_return (void) { for (;;) continue; }
40942 +
40943 +// Check _Static_assert.
40944 +struct test_static_assert
40945 +{
40946 + int x;
40947 + _Static_assert (sizeof (int) <= sizeof (long int),
40948 + "_Static_assert does not work in struct");
40949 + long int y;
40950 +};
40951 +
40952 +// Check UTF-8 literals.
40953 +#define u8 syntax error!
40954 +char const utf8_literal[] = u8"happens to be ASCII" "another string";
40955 +
40956 +// Check duplicate typedefs.
40957 +typedef long *long_ptr;
40958 +typedef long int *long_ptr;
40959 +typedef long_ptr long_ptr;
40960 +
40961 +// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
40962 +struct anonymous
40963 +{
40964 + union {
40965 + struct { int i; int j; };
40966 + struct { int k; long int l; } w;
40967 + };
40968 + int m;
40969 +} v1;
40970 +]],
40971 +[_AC_C_C99_TEST_BODY[
40972 + v1.i = 2;
40973 + v1.w.k = 5;
40974 + _Static_assert ((offsetof (struct anonymous, i)
40975 + == offsetof (struct anonymous, w.k)),
40976 + "Anonymous union alignment botch");
40977 +]],
40978 +dnl Try
40979 +dnl GCC -std=gnu11 (unused restrictive mode: -std=c11)
40980 +dnl with extended modes being tried first.
40981 +dnl
40982 +dnl Do not try -qlanglvl=extc1x, because IBM XL C V12.1 (the latest version as
40983 +dnl of September 2012) does not pass the C11 test. For now, try extc1x when
40984 +dnl compiling the C99 test instead, since it enables _Static_assert and
40985 +dnl _Noreturn, which is a win. If -qlanglvl=extc11 or -qlanglvl=extc1x passes
40986 +dnl the C11 test in some future version of IBM XL C, we'll add it here,
40987 +dnl preferably extc11.
40988 +[[-std=gnu11]], [$1], [$2])[]dnl
40989 +])# _AC_PROG_CC_C11
40990 +
40991 +
40992 +# AC_PROG_CC_C89
40993 +# --------------
40994 +# Do not use AU_ALIAS here and in AC_PROG_CC_C99 and AC_PROG_CC_STDC,
40995 +# as that'd be incompatible with how Automake redefines AC_PROG_CC. See
40996 +# <https://lists.gnu.org/r/autoconf/2012-10/msg00048.html>.
40997 +AU_DEFUN([AC_PROG_CC_C89],
40998 + [AC_REQUIRE([AC_PROG_CC])],
40999 + [$0 is obsolete; use AC_PROG_CC]
41000 +)
41001 +
41002 +# AC_PROG_CC_C99
41003 +# --------------
41004 +AU_DEFUN([AC_PROG_CC_C99],
41005 + [AC_REQUIRE([AC_PROG_CC])],
41006 + [$0 is obsolete; use AC_PROG_CC]
41007 +)
41008 +
41009 +# AC_PROG_CC_STDC
41010 +# ---------------
41011 +AU_DEFUN([AC_PROG_CC_STDC],
41012 + [AC_REQUIRE([AC_PROG_CC])],
41013 + [$0 is obsolete; use AC_PROG_CC]
41014 +)
41015 +
41016 +
41017 +# AC_C_PROTOTYPES
41018 +# ---------------
41019 +# Check if the C compiler supports prototypes, included if it needs
41020 +# options.
41021 +AC_DEFUN([AC_C_PROTOTYPES],
41022 +[AC_REQUIRE([AC_PROG_CC])dnl
41023 +if test "$ac_prog_cc_stdc" != no; then
41024 + AC_DEFINE(PROTOTYPES, 1,
41025 + [Define to 1 if the C compiler supports function prototypes.])
41026 + AC_DEFINE(__PROTOTYPES, 1,
41027 + [Define like PROTOTYPES; this can be used by system headers.])
41028 +fi
41029 +])# AC_C_PROTOTYPES
41030 +
41031 +
41032 +# _AC_CXX_STD_TRY(STANDARD, TEST-PROLOGUE, TEST-BODY, OPTION-LIST,
41033 +# ACTION-IF-AVAILABLE, ACTION-IF-UNAVAILABLE)
41034 +# ----------------------------------------------------------------
41035 +# Check whether the C++ compiler accepts features of STANDARD (e.g
41036 +# `cxx98', `cxx11') by trying to compile a program of TEST-PROLOGUE
41037 +# and TEST-BODY. If this fails, try again with each compiler option
41038 +# in the space-separated OPTION-LIST; if one helps, append it to CXX.
41039 +# If eventually successful, run ACTION-IF-AVAILABLE, else
41040 +# ACTION-IF-UNAVAILABLE.
41041 +AC_DEFUN([_AC_CXX_STD_TRY],
41042 +[AC_MSG_CHECKING([for $CXX option to enable ]m4_translit(m4_translit($1, [x], [+]), [a-z], [A-Z])[ features])
41043 +AC_LANG_PUSH(C++)dnl
41044 +AC_CACHE_VAL(ac_cv_prog_cxx_$1,
41045 +[ac_cv_prog_cxx_$1=no
41046 +ac_save_CXX=$CXX
41047 +AC_LANG_CONFTEST([AC_LANG_PROGRAM([$2], [$3])])
41048 +for ac_arg in '' $4
41049 +do
41050 + CXX="$ac_save_CXX $ac_arg"
41051 + _AC_COMPILE_IFELSE([], [ac_cv_prog_cxx_$1=$ac_arg])
41052 + test "x$ac_cv_prog_cxx_$1" != "xno" && break
41053 +done
41054 +rm -f conftest.$ac_ext
41055 +CXX=$ac_save_CXX
41056 +])# AC_CACHE_VAL
41057 +ac_prog_cxx_stdcxx_options=
41058 +case "x$ac_cv_prog_cxx_$1" in
41059 + x)
41060 + AC_MSG_RESULT([none needed]) ;;
41061 + xno)
41062 + AC_MSG_RESULT([unsupported]) ;;
41063 + *)
41064 + ac_prog_cxx_stdcxx_options=" $ac_cv_prog_cxx_$1"
41065 + CXX=$CXX$ac_prog_cxx_stdcxx_options
41066 + AC_MSG_RESULT([$ac_cv_prog_cxx_$1]) ;;
41067 +esac
41068 +AC_LANG_POP(C++)dnl
41069 +AS_IF([test "x$ac_cv_prog_cxx_$1" != xno], [$5], [$6])
41070 +])# _AC_CXX_STD_TRY
41071 +
41072 +# _AC_CXX_CXX98_TEST_HEADER
41073 +# -------------------------
41074 +# A C++ header suitable for testing for CXX98.
41075 +AC_DEFUN([_AC_CXX_CXX98_TEST_HEADER],
41076 +[[
41077 +#include <algorithm>
41078 +#include <cstdlib>
41079 +#include <fstream>
41080 +#include <iomanip>
41081 +#include <iostream>
41082 +#include <list>
41083 +#include <map>
41084 +#include <set>
41085 +#include <sstream>
41086 +#include <stdexcept>
41087 +#include <string>
41088 +#include <utility>
41089 +#include <vector>
41090 +
41091 +namespace test {
41092 + typedef std::vector<std::string> string_vec;
41093 + typedef std::pair<int,bool> map_value;
41094 + typedef std::map<std::string,map_value> map_type;
41095 + typedef std::set<int> set_type;
41096 +
41097 + template<typename T>
41098 + class printer {
41099 + public:
41100 + printer(std::ostringstream& os): os(os) {}
41101 + void operator() (T elem) { os << elem << std::endl; }
41102 + private:
41103 + std::ostringstream& os;
41104 + };
41105 +}
41106 +]])# _AC_CXX_CXX98_TEST_HEADER
41107 +
41108 +# _AC_CXX_CXX98_TEST_BODY
41109 +# -----------------------
41110 +# A C++ body suitable for testing for CXX98, assuming the corresponding header.
41111 +AC_DEFUN([_AC_CXX_CXX98_TEST_BODY],
41112 +[[
41113 +
41114 +try {
41115 + // Basic string.
41116 + std::string teststr("ASCII text");
41117 + teststr += " string";
41118 +
41119 + // Simple vector.
41120 + test::string_vec testvec;
41121 + testvec.push_back(teststr);
41122 + testvec.push_back("foo");
41123 + testvec.push_back("bar");
41124 + if (testvec.size() != 3) {
41125 + throw std::runtime_error("vector size is not 1");
41126 + }
41127 +
41128 + // Dump vector into stringstream and obtain string.
41129 + std::ostringstream os;
41130 + for (test::string_vec::const_iterator i = testvec.begin();
41131 + i != testvec.end(); ++i) {
41132 + if (i + 1 != testvec.end()) {
41133 + os << teststr << '\n';
41134 + }
41135 + }
41136 + // Check algorithms work.
41137 + std::for_each(testvec.begin(), testvec.end(), test::printer<std::string>(os));
41138 + std::string os_out = os.str();
41139 +
41140 + // Test pair and map.
41141 + test::map_type testmap;
41142 + testmap.insert(std::make_pair(std::string("key"),
41143 + std::make_pair(53,false)));
41144 +
41145 + // Test set.
41146 + int values[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
41147 + test::set_type testset(values, values + sizeof(values)/sizeof(values[0]));
41148 + std::list<int> testlist(testset.begin(), testset.end());
41149 + std::copy(testset.begin(), testset.end(), std::back_inserter(testlist));
41150 +} catch (const std::exception& e) {
41151 + std::cerr << "Caught exception: " << e.what() << std::endl;
41152 +
41153 + // Test fstream
41154 + std::ofstream of("test.txt");
41155 + of << "Test ASCII text\n" << std::flush;
41156 + of << "N= " << std::hex << std::setw(8) << std::left << 534 << std::endl;
41157 + of.close();
41158 +}
41159 +std::exit(0);
41160 +]])
41161 +
41162 +# _AC_CXX_CXX11_TEST_HEADER
41163 +# -------------------------
41164 +# A C++ header suitable for testing for CXX11.
41165 +AC_DEFUN([_AC_CXX_CXX11_TEST_HEADER],
41166 +[[
41167 +#include <deque>
41168 +#include <functional>
41169 +#include <memory>
41170 +#include <tuple>
41171 +#include <array>
41172 +#include <regex>
41173 +#include <iostream>
41174 +
41175 +namespace cxx11test
41176 +{
41177 + typedef std::shared_ptr<std::string> sptr;
41178 + typedef std::weak_ptr<std::string> wptr;
41179 +
41180 + typedef std::tuple<std::string,int,double> tp;
41181 + typedef std::array<int, 20> int_array;
41182 +
41183 + constexpr int get_val() { return 20; }
41184 +
41185 + struct testinit
41186 + {
41187 + int i;
41188 + double d;
41189 + };
41190 +
41191 + class delegate {
41192 + public:
41193 + delegate(int n) : n(n) {}
41194 + delegate(): delegate(2354) {}
41195 +
41196 + virtual int getval() { return this->n; };
41197 + protected:
41198 + int n;
41199 + };
41200 +
41201 + class overridden : public delegate {
41202 + public:
41203 + overridden(int n): delegate(n) {}
41204 + virtual int getval() override final { return this->n * 2; }
41205 + };
41206 +
41207 + class nocopy {
41208 + public:
41209 + nocopy(int i): i(i) {}
41210 + nocopy() = default;
41211 + nocopy(const nocopy&) = delete;
41212 + nocopy & operator=(const nocopy&) = delete;
41213 + private:
41214 + int i;
41215 + };
41216 +}
41217 +]])# _AC_CXX_CXX11_TEST_HEADER
41218 +
41219 +# _AC_CXX_CXX11_TEST_BODY
41220 +# -----------------------
41221 +# A C++ body suitable for testing for CXX11, assuming the corresponding header.
41222 +AC_DEFUN([_AC_CXX_CXX11_TEST_BODY],
41223 +[[
41224 +{
41225 + // Test auto and decltype
41226 + std::deque<int> d;
41227 + d.push_front(43);
41228 + d.push_front(484);
41229 + d.push_front(3);
41230 + d.push_front(844);
41231 + int total = 0;
41232 + for (auto i = d.begin(); i != d.end(); ++i) { total += *i; }
41233 +
41234 + auto a1 = 6538;
41235 + auto a2 = 48573953.4;
41236 + auto a3 = "String literal";
41237 +
41238 + decltype(a2) a4 = 34895.034;
41239 +}
41240 +{
41241 + // Test constexpr
41242 + short sa[cxx11test::get_val()] = { 0 };
41243 +}
41244 +{
41245 + // Test initializer lists
41246 + cxx11test::testinit il = { 4323, 435234.23544 };
41247 +}
41248 +{
41249 + // Test range-based for and lambda
41250 + cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
41251 + for (int &x : array) { x += 23; }
41252 + std::for_each(array.begin(), array.end(), [](int v1){ std::cout << v1; });
41253 +}
41254 +{
41255 + using cxx11test::sptr;
41256 + using cxx11test::wptr;
41257 +
41258 + sptr sp(new std::string("ASCII string"));
41259 + wptr wp(sp);
41260 + sptr sp2(wp);
41261 +}
41262 +{
41263 + cxx11test::tp tuple("test", 54, 45.53434);
41264 + double d = std::get<2>(tuple);
41265 + std::string s;
41266 + int i;
41267 + std::tie(s,i,d) = tuple;
41268 +}
41269 +{
41270 + static std::regex filename_regex("^_?([a-z0-9_.]+-)+[a-z0-9]+$");
41271 + std::string testmatch("Test if this string matches");
41272 + bool match = std::regex_search(testmatch, filename_regex);
41273 +}
41274 +{
41275 + cxx11test::int_array array = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
41276 + cxx11test::int_array::size_type size = array.size();
41277 +}
41278 +{
41279 + // Test constructor delegation
41280 + cxx11test::delegate d1;
41281 + cxx11test::delegate d2();
41282 + cxx11test::delegate d3(45);
41283 +}
41284 +{
41285 + // Test override and final
41286 + cxx11test::overridden o1(55464);
41287 +}
41288 +{
41289 + // Test nullptr
41290 + char *c = nullptr;
41291 +}
41292 +{
41293 + // Test template brackets
41294 + std::vector<std::pair<int,char*>> v1;
41295 +}
41296 +{
41297 + // Unicode literals
41298 + char const *utf8 = u8"UTF-8 string \u2500";
41299 + char16_t const *utf16 = u"UTF-8 string \u2500";
41300 + char32_t const *utf32 = U"UTF-32 string \u2500";
41301 +}
41302 +]])
41303 +
41304 +# _AC_PROG_CXX_CXX98 ([ACTION-IF-AVAILABLE], [ACTION-IF-UNAVAILABLE])
41305 +# -------------------------------------------------------------------
41306 +
41307 +# If the C++ compiler is not in ISO C++98 mode by default, try to add
41308 +# an option to output variable CXX to make it so. This macro tries
41309 +# various options that select ISO C++98 on some system or another. It
41310 +# considers the compiler to be in ISO C++98 mode if it handles basic
41311 +# features of the std namespace including: string, containers (list,
41312 +# map, set, vector), streams (fstreams, iostreams, stringstreams,
41313 +# iomanip), pair, exceptions and algorithms.
41314 +
41315 +
41316 +AC_DEFUN([_AC_PROG_CXX_CXX98],
41317 +[_AC_CXX_STD_TRY([cxx98],
41318 +[_AC_CXX_CXX98_TEST_HEADER],
41319 +[_AC_CXX_CXX98_TEST_BODY],
41320 +dnl Try
41321 +dnl GCC -std=gnu++98 (unused restrictive mode: -std=c++98)
41322 +dnl IBM XL C -qlanglvl=extended
41323 +dnl HP aC++ -AA
41324 +dnl Intel ICC -std=gnu++98
41325 +dnl Solaris N/A (default)
41326 +dnl Tru64 N/A (default, but -std gnu could be used)
41327 +dnl with extended modes being tried first.
41328 +[[-std=gnu++98 -std=c++98 -qlanglvl=extended -AA]], [$1], [$2])[]dnl
41329 +])# _AC_PROG_CXX_CXX98
41330 +
41331 +# _AC_PROG_CXX_CXX11 ([ACTION-IF-AVAILABLE], [ACTION-IF-UNAVAILABLE])
41332 +# -------------------------------------------------------------------
41333 +# If the C++ compiler is not in ISO CXX11 mode by default, try to add
41334 +# an option to output variable CXX to make it so. This macro tries
41335 +# various options that select ISO C++11 on some system or another. It
41336 +# considers the compiler to be in ISO C++11 mode if it handles all the
41337 +# tests from the C++98 checks, plus the following: Language features
41338 +# (auto, constexpr, decltype, default/deleted constructors, delegate
41339 +# constructors, final, initializer lists, lambda functions, nullptr,
41340 +# override, range-based for loops, template brackets without spaces,
41341 +# unicode literals) and library features (array, memory (shared_ptr,
41342 +# weak_ptr), regex and tuple types).
41343 +AC_DEFUN([_AC_PROG_CXX_CXX11],
41344 +[_AC_CXX_STD_TRY([cxx11],
41345 +[_AC_CXX_CXX11_TEST_HEADER
41346 +_AC_CXX_CXX98_TEST_HEADER],
41347 +[_AC_CXX_CXX11_TEST_BODY
41348 +_AC_CXX_CXX98_TEST_BODY],
41349 +dnl Try
41350 +dnl GCC -std=gnu++11 (unused restrictive mode: -std=c++11) [and 0x variants]
41351 +dnl IBM XL C -qlanglvl=extended0x
41352 +dnl (pre-V12.1; unused restrictive mode: -qlanglvl=stdcxx11)
41353 +dnl HP aC++ -AA
41354 +dnl Intel ICC -std=c++11 -std=c++0x
41355 +dnl Solaris N/A (no support)
41356 +dnl Tru64 N/A (no support)
41357 +dnl with extended modes being tried first.
41358 +[[-std=gnu++11 -std=c++11 -std=gnu++0x -std=c++0x -qlanglvl=extended0x -AA]], [$1], [$2])[]dnl
41359 +])# _AC_PROG_CXX_CXX11
41360 +
41361 +
41362 +])# m4_version_prereq
41363
41364 diff --git a/autotools/m4/stdalign.m4 b/autotools/m4/stdalign.m4
41365 new file mode 100644
41366 index 0000000..78577cb
41367 --- /dev/null
41368 +++ b/autotools/m4/stdalign.m4
41369 @@ -0,0 +1,56 @@
41370 +# Check for stdalign.h that conforms to C11.
41371 +
41372 +dnl Copyright 2011-2022 Free Software Foundation, Inc.
41373 +dnl This file is free software; the Free Software Foundation
41374 +dnl gives unlimited permission to copy and/or distribute it,
41375 +dnl with or without modifications, as long as this notice is preserved.
41376 +
41377 +# Prepare for substituting <stdalign.h> if it is not supported.
41378 +
41379 +AC_DEFUN([gl_STDALIGN_H],
41380 +[
41381 + AC_CACHE_CHECK([for working stdalign.h],
41382 + [gl_cv_header_working_stdalign_h],
41383 + [AC_COMPILE_IFELSE(
41384 + [AC_LANG_PROGRAM(
41385 + [[#include <stdint.h>
41386 + #include <stdalign.h>
41387 + #include <stddef.h>
41388 +
41389 + /* Test that alignof yields a result consistent with offsetof.
41390 + This catches GCC bug 52023
41391 + <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
41392 + #ifdef __cplusplus
41393 + template <class t> struct alignof_helper { char a; t b; };
41394 + # define ao(type) offsetof (alignof_helper<type>, b)
41395 + #else
41396 + # define ao(type) offsetof (struct { char a; type b; }, b)
41397 + #endif
41398 + char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
41399 + char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
41400 + char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
41401 +
41402 + /* Test _Alignas only on platforms where gnulib can help. */
41403 + #if \
41404 + ((defined __cplusplus && 201103 <= __cplusplus) \
41405 + || (__TINYC__ && defined __attribute__) \
41406 + || (defined __APPLE__ && defined __MACH__ \
41407 + ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
41408 + : __GNUC__) \
41409 + || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
41410 + || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
41411 + || 1300 <= _MSC_VER)
41412 + struct alignas_test { char c; char alignas (8) alignas_8; };
41413 + char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
41414 + ? 1 : -1];
41415 + #endif
41416 + ]])],
41417 + [gl_cv_header_working_stdalign_h=yes],
41418 + [gl_cv_header_working_stdalign_h=no])])
41419 +
41420 + if test $gl_cv_header_working_stdalign_h = yes; then
41421 + GL_GENERATE_STDALIGN_H=false
41422 + else
41423 + GL_GENERATE_STDALIGN_H=true
41424 + fi
41425 +])
41426
41427 diff --git a/autotools/m4/stdbool.m4 b/autotools/m4/stdbool.m4
41428 index acb8522..3e6c400 100644
41429 --- a/autotools/m4/stdbool.m4
41430 +++ b/autotools/m4/stdbool.m4
41431 @@ -1,27 +1,39 @@
41432 # Check for stdbool.h that conforms to C99.
41433
41434 -dnl Copyright (C) 2002-2006, 2009-2019 Free Software Foundation, Inc.
41435 +dnl Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc.
41436 dnl This file is free software; the Free Software Foundation
41437 dnl gives unlimited permission to copy and/or distribute it,
41438 dnl with or without modifications, as long as this notice is preserved.
41439
41440 -#serial 7
41441 +#serial 9
41442
41443 # Prepare for substituting <stdbool.h> if it is not supported.
41444
41445 -AC_DEFUN([AM_STDBOOL_H],
41446 +AC_DEFUN([gl_STDBOOL_H],
41447 [
41448 AC_REQUIRE([AC_CHECK_HEADER_STDBOOL])
41449 + AC_REQUIRE([AC_CANONICAL_HOST])
41450
41451 - # Define two additional variables used in the Makefile substitution.
41452 -
41453 + dnl On some platforms, <stdbool.h> does not exist or does not conform to C99.
41454 + dnl On Solaris 10 with CC=cc CXX=CC, <stdbool.h> exists but is not usable
41455 + dnl in C++ mode (and no <cstdbool> exists). In this case, we use our
41456 + dnl replacement, also in C mode (for binary compatibility between C and C++).
41457 if test "$ac_cv_header_stdbool_h" = yes; then
41458 - STDBOOL_H=''
41459 + case "$host_os" in
41460 + solaris*)
41461 + if test -z "$GCC"; then
41462 + GL_GENERATE_STDBOOL_H=true
41463 + else
41464 + GL_GENERATE_STDBOOL_H=false
41465 + fi
41466 + ;;
41467 + *)
41468 + GL_GENERATE_STDBOOL_H=false
41469 + ;;
41470 + esac
41471 else
41472 - STDBOOL_H='stdbool.h'
41473 + GL_GENERATE_STDBOOL_H=true
41474 fi
41475 - AC_SUBST([STDBOOL_H])
41476 - AM_CONDITIONAL([GL_GENERATE_STDBOOL_H], [test -n "$STDBOOL_H"])
41477
41478 if test "$ac_cv_type__Bool" = yes; then
41479 HAVE__BOOL=1
41480 @@ -31,9 +43,6 @@ AC_DEFUN([AM_STDBOOL_H],
41481 AC_SUBST([HAVE__BOOL])
41482 ])
41483
41484 -# AM_STDBOOL_H will be renamed to gl_STDBOOL_H in the future.
41485 -AC_DEFUN([gl_STDBOOL_H], [AM_STDBOOL_H])
41486 -
41487 # This version of the macro is needed in autoconf <= 2.68.
41488
41489 AC_DEFUN([AC_CHECK_HEADER_STDBOOL],
41490
41491 diff --git a/autotools/m4/stddef_h.m4 b/autotools/m4/stddef_h.m4
41492 index 979e3cf..abfd203 100644
41493 --- a/autotools/m4/stddef_h.m4
41494 +++ b/autotools/m4/stddef_h.m4
41495 @@ -1,15 +1,20 @@
41496 -dnl A placeholder for <stddef.h>, for platforms that have issues.
41497 -# stddef_h.m4 serial 6
41498 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
41499 +# stddef_h.m4 serial 12
41500 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
41501 dnl This file is free software; the Free Software Foundation
41502 dnl gives unlimited permission to copy and/or distribute it,
41503 dnl with or without modifications, as long as this notice is preserved.
41504
41505 -AC_DEFUN([gl_STDDEF_H],
41506 +dnl A placeholder for <stddef.h>, for platforms that have issues.
41507 +
41508 +AC_DEFUN_ONCE([gl_STDDEF_H],
41509 [
41510 AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
41511 AC_REQUIRE([gt_TYPE_WCHAR_T])
41512 - STDDEF_H=
41513 +
41514 + dnl Persuade OpenBSD <stddef.h> to declare max_align_t.
41515 + AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
41516 +
41517 + GL_GENERATE_STDDEF_H=false
41518
41519 dnl Test whether the type max_align_t exists and whether its alignment
41520 dnl "is as great as is supported by the implementation in all contexts".
41521 @@ -19,22 +24,29 @@ AC_DEFUN([gl_STDDEF_H],
41522 [AC_LANG_PROGRAM(
41523 [[#include <stddef.h>
41524 unsigned int s = sizeof (max_align_t);
41525 - #if defined __GNUC__ || defined __IBM__ALIGNOF__
41526 + #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
41527 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
41528 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
41529 #endif
41530 + typedef struct { char a; max_align_t b; } max_helper;
41531 + typedef struct { char a; long b; } long_helper;
41532 + typedef struct { char a; double b; } double_helper;
41533 + typedef struct { char a; long double b; } long_double_helper;
41534 + int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
41535 + int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
41536 + int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
41537 ]])],
41538 [gl_cv_type_max_align_t=yes],
41539 [gl_cv_type_max_align_t=no])
41540 ])
41541 if test $gl_cv_type_max_align_t = no; then
41542 HAVE_MAX_ALIGN_T=0
41543 - STDDEF_H=stddef.h
41544 + GL_GENERATE_STDDEF_H=true
41545 fi
41546
41547 if test $gt_cv_c_wchar_t = no; then
41548 HAVE_WCHAR_T=0
41549 - STDDEF_H=stddef.h
41550 + GL_GENERATE_STDDEF_H=true
41551 fi
41552
41553 AC_CACHE_CHECK([whether NULL can be used in arbitrary expressions],
41554 @@ -46,23 +58,36 @@ AC_DEFUN([gl_STDDEF_H],
41555 [gl_cv_decl_null_works=no])])
41556 if test $gl_cv_decl_null_works = no; then
41557 REPLACE_NULL=1
41558 - STDDEF_H=stddef.h
41559 + GL_GENERATE_STDDEF_H=true
41560 fi
41561
41562 - AC_SUBST([STDDEF_H])
41563 - AM_CONDITIONAL([GL_GENERATE_STDDEF_H], [test -n "$STDDEF_H"])
41564 - if test -n "$STDDEF_H"; then
41565 + if $GL_GENERATE_STDDEF_H; then
41566 gl_NEXT_HEADERS([stddef.h])
41567 fi
41568 ])
41569
41570 +# gl_STDDEF_MODULE_INDICATOR([modulename])
41571 +# sets the shell variable that indicates the presence of the given module
41572 +# to a C preprocessor expression that will evaluate to 1.
41573 +# This macro invocation must not occur in macros that are AC_REQUIREd.
41574 AC_DEFUN([gl_STDDEF_MODULE_INDICATOR],
41575 [
41576 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
41577 - AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
41578 + dnl Ensure to expand the default settings once only.
41579 + gl_STDDEF_H_REQUIRE_DEFAULTS
41580 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
41581 ])
41582
41583 +# Initializes the default values for AC_SUBSTed shell variables.
41584 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
41585 +# outside of macros or in macros that are not AC_REQUIREd.
41586 +AC_DEFUN([gl_STDDEF_H_REQUIRE_DEFAULTS],
41587 +[
41588 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_STDDEF_H_MODULE_INDICATOR_DEFAULTS], [
41589 + ])
41590 + m4_require(GL_MODULE_INDICATOR_PREFIX[_STDDEF_H_MODULE_INDICATOR_DEFAULTS])
41591 + AC_REQUIRE([gl_STDDEF_H_DEFAULTS])
41592 +])
41593 +
41594 AC_DEFUN([gl_STDDEF_H_DEFAULTS],
41595 [
41596 dnl Assume proper GNU behavior unless another module says otherwise.
41597
41598 diff --git a/autotools/m4/stdint.m4 b/autotools/m4/stdint.m4
41599 index 11d8e8e..c3f0894 100644
41600 --- a/autotools/m4/stdint.m4
41601 +++ b/autotools/m4/stdint.m4
41602 @@ -1,5 +1,5 @@
41603 -# stdint.m4 serial 53
41604 -dnl Copyright (C) 2001-2019 Free Software Foundation, Inc.
41605 +# stdint.m4 serial 61
41606 +dnl Copyright (C) 2001-2022 Free Software Foundation, Inc.
41607 dnl This file is free software; the Free Software Foundation
41608 dnl gives unlimited permission to copy and/or distribute it,
41609 dnl with or without modifications, as long as this notice is preserved.
41610 @@ -17,21 +17,12 @@ AC_DEFUN_ONCE([gl_STDINT_H],
41611 AC_REQUIRE([gl_LIMITS_H])
41612 AC_REQUIRE([gt_TYPE_WINT_T])
41613
41614 - dnl Check for long long int and unsigned long long int.
41615 - AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
41616 - if test $ac_cv_type_long_long_int = yes; then
41617 - HAVE_LONG_LONG_INT=1
41618 - else
41619 - HAVE_LONG_LONG_INT=0
41620 - fi
41621 - AC_SUBST([HAVE_LONG_LONG_INT])
41622 - AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT])
41623 - if test $ac_cv_type_unsigned_long_long_int = yes; then
41624 - HAVE_UNSIGNED_LONG_LONG_INT=1
41625 - else
41626 - HAVE_UNSIGNED_LONG_LONG_INT=0
41627 - fi
41628 - AC_SUBST([HAVE_UNSIGNED_LONG_LONG_INT])
41629 + dnl For backward compatibility. Some packages may still be testing these
41630 + dnl macros.
41631 + AC_DEFINE([HAVE_LONG_LONG_INT], [1],
41632 + [Define to 1 if the system has the type 'long long int'.])
41633 + AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1],
41634 + [Define to 1 if the system has the type 'unsigned long long int'.])
41635
41636 dnl Check for <wchar.h>, in the same way as gl_WCHAR_H does.
41637 AC_CHECK_HEADERS_ONCE([wchar.h])
41638 @@ -43,7 +34,7 @@ AC_DEFUN_ONCE([gl_STDINT_H],
41639 AC_SUBST([HAVE_WCHAR_H])
41640
41641 dnl Check for <inttypes.h>.
41642 - dnl AC_INCLUDES_DEFAULT defines $ac_cv_header_inttypes_h.
41643 + AC_CHECK_HEADERS_ONCE([inttypes.h])
41644 if test $ac_cv_header_inttypes_h = yes; then
41645 HAVE_INTTYPES_H=1
41646 else
41647 @@ -52,7 +43,7 @@ AC_DEFUN_ONCE([gl_STDINT_H],
41648 AC_SUBST([HAVE_INTTYPES_H])
41649
41650 dnl Check for <sys/types.h>.
41651 - dnl AC_INCLUDES_DEFAULT defines $ac_cv_header_sys_types_h.
41652 + AC_CHECK_HEADERS_ONCE([sys/types.h])
41653 if test $ac_cv_header_sys_types_h = yes; then
41654 HAVE_SYS_TYPES_H=1
41655 else
41656 @@ -161,7 +152,7 @@ uintmax_t j = UINTMAX_MAX;
41657 /* Check that SIZE_MAX has the correct type, if possible. */
41658 #if 201112 <= __STDC_VERSION__
41659 int k = _Generic (SIZE_MAX, size_t: 0);
41660 -#elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
41661 +#elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
41662 || (0x5110 <= __SUNPRO_C && !__STDC__))
41663 extern size_t k;
41664 extern __typeof__ (SIZE_MAX) k;
41665 @@ -179,7 +170,7 @@ struct s {
41666 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
41667 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
41668 ? 1 : -1;
41669 - /* Detect bug in FreeBSD 6.0 / ia64. */
41670 + /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */
41671 int check_SIG_ATOMIC:
41672 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
41673 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
41674 @@ -305,15 +296,16 @@ static const char *macro_values[] =
41675 HAVE_C99_STDINT_H=0
41676 HAVE_SYS_BITYPES_H=0
41677 HAVE_SYS_INTTYPES_H=0
41678 - STDINT_H=stdint.h
41679 + GL_GENERATE_STDINT_H=true
41680 case "$gl_cv_header_working_stdint_h" in
41681 *yes)
41682 HAVE_C99_STDINT_H=1
41683 dnl Now see whether the system <stdint.h> works without
41684 dnl __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS defined.
41685 - AC_CACHE_CHECK([whether stdint.h predates C++11],
41686 - [gl_cv_header_stdint_predates_cxx11_h],
41687 - [gl_cv_header_stdint_predates_cxx11_h=yes
41688 + dnl If not, there would be problems when stdint.h is included from C++.
41689 + AC_CACHE_CHECK([whether stdint.h works without ISO C predefines],
41690 + [gl_cv_header_stdint_without_STDC_macros],
41691 + [gl_cv_header_stdint_without_STDC_macros=no
41692 AC_COMPILE_IFELSE([
41693 AC_LANG_PROGRAM([[
41694 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
41695 @@ -324,13 +316,14 @@ gl_STDINT_INCLUDES
41696 intmax_t im = INTMAX_MAX;
41697 int32_t i32 = INT32_C (0x7fffffff);
41698 ]])],
41699 - [gl_cv_header_stdint_predates_cxx11_h=no])])
41700 + [gl_cv_header_stdint_without_STDC_macros=yes])
41701 + ])
41702
41703 - if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
41704 + if test $gl_cv_header_stdint_without_STDC_macros = no; then
41705 AC_DEFINE([__STDC_CONSTANT_MACROS], [1],
41706 - [Define to 1 if the system <stdint.h> predates C++11.])
41707 + [Define to 1 if the system <stdint.h> predates C++11.])
41708 AC_DEFINE([__STDC_LIMIT_MACROS], [1],
41709 - [Define to 1 if the system <stdint.h> predates C++11.])
41710 + [Define to 1 if the system <stdint.h> predates C++11.])
41711 fi
41712 AC_CACHE_CHECK([whether stdint.h has UINTMAX_WIDTH etc.],
41713 [gl_cv_header_stdint_width],
41714 @@ -348,7 +341,7 @@ int32_t i32 = INT32_C (0x7fffffff);
41715 ]])],
41716 [gl_cv_header_stdint_width=yes])])
41717 if test "$gl_cv_header_stdint_width" = yes; then
41718 - STDINT_H=
41719 + GL_GENERATE_STDINT_H=false
41720 fi
41721 ;;
41722 *)
41723 @@ -371,8 +364,6 @@ int32_t i32 = INT32_C (0x7fffffff);
41724 AC_SUBST([HAVE_C99_STDINT_H])
41725 AC_SUBST([HAVE_SYS_BITYPES_H])
41726 AC_SUBST([HAVE_SYS_INTTYPES_H])
41727 - AC_SUBST([STDINT_H])
41728 - AM_CONDITIONAL([GL_GENERATE_STDINT_H], [test -n "$STDINT_H"])
41729 ])
41730
41731 dnl gl_STDINT_BITSIZEOF(TYPES, INCLUDES)
41732 @@ -500,13 +491,9 @@ AC_DEFUN([gl_INTEGER_TYPE_SUFFIX],
41733 dnl gl_STDINT_INCLUDES
41734 AC_DEFUN([gl_STDINT_INCLUDES],
41735 [[
41736 - /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
41737 - included before <wchar.h>. */
41738 #include <stddef.h>
41739 #include <signal.h>
41740 #if HAVE_WCHAR_H
41741 - # include <stdio.h>
41742 - # include <time.h>
41743 # include <wchar.h>
41744 #endif
41745 ]])
41746 @@ -538,7 +525,7 @@ AC_DEFUN([gl_STDINT_TYPE_PROPERTIES],
41747 dnl requirement that wint_t is "unchanged by default argument promotions".
41748 dnl In this case gnulib's <wchar.h> and <wctype.h> override wint_t.
41749 dnl Set the variable BITSIZEOF_WINT_T accordingly.
41750 - if test $GNULIB_OVERRIDES_WINT_T = 1; then
41751 + if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
41752 BITSIZEOF_WINT_T=32
41753 fi
41754 ])
41755
41756 diff --git a/autotools/m4/stdint_h.m4 b/autotools/m4/stdint_h.m4
41757 index 6d5f1af..b8684b6 100644
41758 --- a/autotools/m4/stdint_h.m4
41759 +++ b/autotools/m4/stdint_h.m4
41760 @@ -1,5 +1,5 @@
41761 # stdint_h.m4 serial 9
41762 -dnl Copyright (C) 1997-2004, 2006, 2008-2019 Free Software Foundation, Inc.
41763 +dnl Copyright (C) 1997-2004, 2006, 2008-2022 Free Software Foundation, Inc.
41764 dnl This file is free software; the Free Software Foundation
41765 dnl gives unlimited permission to copy and/or distribute it,
41766 dnl with or without modifications, as long as this notice is preserved.
41767
41768 diff --git a/autotools/m4/stdio_h.m4 b/autotools/m4/stdio_h.m4
41769 index 6c9c104..42e9607 100644
41770 --- a/autotools/m4/stdio_h.m4
41771 +++ b/autotools/m4/stdio_h.m4
41772 @@ -1,11 +1,12 @@
41773 -# stdio_h.m4 serial 49
41774 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
41775 +# stdio_h.m4 serial 59
41776 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
41777 dnl This file is free software; the Free Software Foundation
41778 dnl gives unlimited permission to copy and/or distribute it,
41779 dnl with or without modifications, as long as this notice is preserved.
41780
41781 -AC_DEFUN([gl_STDIO_H],
41782 +AC_DEFUN_ONCE([gl_STDIO_H],
41783 [
41784 + AC_REQUIRE([gl_STDIO_H_DEFAULTS])
41785 AH_VERBATIM([MINGW_ANSI_STDIO],
41786 [/* Use GNU style printf and scanf. */
41787 #ifndef __USE_MINGW_ANSI_STDIO
41788 @@ -13,7 +14,6 @@ AC_DEFUN([gl_STDIO_H],
41789 #endif
41790 ])
41791 AC_DEFINE([__USE_MINGW_ANSI_STDIO])
41792 - AC_REQUIRE([gl_STDIO_H_DEFAULTS])
41793 gl_NEXT_HEADERS([stdio.h])
41794
41795 dnl Determine whether __USE_MINGW_ANSI_STDIO makes printf and
41796 @@ -40,64 +40,32 @@ AC_DEFUN([gl_STDIO_H],
41797 attribute "__gnu_printf__" instead of "__printf__"])
41798 fi
41799
41800 - dnl No need to create extra modules for these functions. Everyone who uses
41801 - dnl <stdio.h> likely needs them.
41802 - GNULIB_FSCANF=1
41803 - gl_MODULE_INDICATOR([fscanf])
41804 - GNULIB_SCANF=1
41805 - gl_MODULE_INDICATOR([scanf])
41806 - GNULIB_FGETC=1
41807 - GNULIB_GETC=1
41808 - GNULIB_GETCHAR=1
41809 - GNULIB_FGETS=1
41810 - GNULIB_FREAD=1
41811 - dnl This ifdef is necessary to avoid an error "missing file lib/stdio-read.c"
41812 - dnl "expected source file, required through AC_LIBSOURCES, not found". It is
41813 - dnl also an optimization, to avoid performing a configure check whose result
41814 - dnl is not used. But it does not make the test of GNULIB_STDIO_H_NONBLOCKING
41815 - dnl or GNULIB_NONBLOCKING redundant.
41816 + dnl This ifdef is an optimization, to avoid performing a configure check whose
41817 + dnl result is not used. But it does not make the test of
41818 + dnl GNULIB_STDIO_H_NONBLOCKING or GNULIB_NONBLOCKING redundant.
41819 m4_ifdef([gl_NONBLOCKING_IO], [
41820 gl_NONBLOCKING_IO
41821 if test $gl_cv_have_nonblocking != yes; then
41822 REPLACE_STDIO_READ_FUNCS=1
41823 - AC_LIBOBJ([stdio-read])
41824 fi
41825 ])
41826
41827 - dnl No need to create extra modules for these functions. Everyone who uses
41828 - dnl <stdio.h> likely needs them.
41829 - GNULIB_FPRINTF=1
41830 - GNULIB_PRINTF=1
41831 - GNULIB_VFPRINTF=1
41832 - GNULIB_VPRINTF=1
41833 - GNULIB_FPUTC=1
41834 - GNULIB_PUTC=1
41835 - GNULIB_PUTCHAR=1
41836 - GNULIB_FPUTS=1
41837 - GNULIB_PUTS=1
41838 - GNULIB_FWRITE=1
41839 - dnl This ifdef is necessary to avoid an error "missing file lib/stdio-write.c"
41840 - dnl "expected source file, required through AC_LIBSOURCES, not found". It is
41841 - dnl also an optimization, to avoid performing a configure check whose result
41842 - dnl is not used. But it does not make the test of GNULIB_STDIO_H_SIGPIPE or
41843 - dnl GNULIB_SIGPIPE redundant.
41844 + dnl This ifdef is an optimization, to avoid performing a configure check whose
41845 + dnl result is not used. But it does not make the test of
41846 + dnl GNULIB_STDIO_H_SIGPIPE or GNULIB_SIGPIPE redundant.
41847 m4_ifdef([gl_SIGNAL_SIGPIPE], [
41848 gl_SIGNAL_SIGPIPE
41849 if test $gl_cv_header_signal_h_SIGPIPE != yes; then
41850 REPLACE_STDIO_WRITE_FUNCS=1
41851 - AC_LIBOBJ([stdio-write])
41852 fi
41853 ])
41854 - dnl This ifdef is necessary to avoid an error "missing file lib/stdio-write.c"
41855 - dnl "expected source file, required through AC_LIBSOURCES, not found". It is
41856 - dnl also an optimization, to avoid performing a configure check whose result
41857 - dnl is not used. But it does not make the test of GNULIB_STDIO_H_NONBLOCKING
41858 - dnl or GNULIB_NONBLOCKING redundant.
41859 + dnl This ifdef is an optimization, to avoid performing a configure check whose
41860 + dnl result is not used. But it does not make the test of
41861 + dnl GNULIB_STDIO_H_NONBLOCKING or GNULIB_NONBLOCKING redundant.
41862 m4_ifdef([gl_NONBLOCKING_IO], [
41863 gl_NONBLOCKING_IO
41864 if test $gl_cv_have_nonblocking != yes; then
41865 REPLACE_STDIO_WRITE_FUNCS=1
41866 - AC_LIBOBJ([stdio-write])
41867 fi
41868 ])
41869
41870 @@ -107,73 +75,104 @@ AC_DEFUN([gl_STDIO_H],
41871 gl_WARN_ON_USE_PREPARE([[#include <stdio.h>
41872 ]], [dprintf fpurge fseeko ftello getdelim getline gets pclose popen
41873 renameat snprintf tmpfile vdprintf vsnprintf])
41874 +
41875 + AC_REQUIRE([AC_C_RESTRICT])
41876 +
41877 + AC_CHECK_DECLS_ONCE([fcloseall])
41878 + if test $ac_cv_have_decl_fcloseall = no; then
41879 + HAVE_DECL_FCLOSEALL=0
41880 + fi
41881 ])
41882
41883 +# gl_STDIO_MODULE_INDICATOR([modulename])
41884 +# sets the shell variable that indicates the presence of the given module
41885 +# to a C preprocessor expression that will evaluate to 1.
41886 +# This macro invocation must not occur in macros that are AC_REQUIREd.
41887 AC_DEFUN([gl_STDIO_MODULE_INDICATOR],
41888 [
41889 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
41890 - AC_REQUIRE([gl_STDIO_H_DEFAULTS])
41891 + dnl Ensure to expand the default settings once only.
41892 + gl_STDIO_H_REQUIRE_DEFAULTS
41893 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
41894 dnl Define it also as a C macro, for the benefit of the unit tests.
41895 gl_MODULE_INDICATOR_FOR_TESTS([$1])
41896 ])
41897
41898 +# Initializes the default values for AC_SUBSTed shell variables.
41899 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
41900 +# outside of macros or in macros that are not AC_REQUIREd.
41901 +AC_DEFUN([gl_STDIO_H_REQUIRE_DEFAULTS],
41902 +[
41903 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_STDIO_H_MODULE_INDICATOR_DEFAULTS], [
41904 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_DPRINTF])
41905 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCLOSE])
41906 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FDOPEN])
41907 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FFLUSH])
41908 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FGETC])
41909 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FGETS])
41910 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FOPEN])
41911 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FOPEN_GNU])
41912 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPRINTF])
41913 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPRINTF_POSIX])
41914 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPURGE])
41915 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPUTC])
41916 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FPUTS])
41917 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FREAD])
41918 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FREOPEN])
41919 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSCANF])
41920 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSEEK])
41921 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSEEKO])
41922 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FTELL])
41923 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FTELLO])
41924 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FWRITE])
41925 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETC])
41926 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETCHAR])
41927 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETDELIM])
41928 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETLINE])
41929 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OBSTACK_PRINTF])
41930 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OBSTACK_PRINTF_POSIX])
41931 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PCLOSE])
41932 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PERROR])
41933 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_POPEN])
41934 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PRINTF])
41935 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PRINTF_POSIX])
41936 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PUTC])
41937 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PUTCHAR])
41938 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PUTS])
41939 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REMOVE])
41940 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RENAME])
41941 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RENAMEAT])
41942 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SCANF])
41943 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SNPRINTF])
41944 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SPRINTF_POSIX])
41945 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STDIO_H_NONBLOCKING])
41946 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STDIO_H_SIGPIPE])
41947 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TMPFILE])
41948 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VASPRINTF])
41949 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VFSCANF])
41950 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSCANF])
41951 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VDPRINTF])
41952 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VFPRINTF])
41953 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VFPRINTF_POSIX])
41954 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VPRINTF])
41955 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VPRINTF_POSIX])
41956 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSNPRINTF])
41957 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_VSPRINTF_POSIX])
41958 + dnl Support Microsoft deprecated alias function names by default.
41959 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FCLOSEALL], [1])
41960 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FDOPEN], [1])
41961 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FILENO], [1])
41962 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_GETW], [1])
41963 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_PUTW], [1])
41964 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_TEMPNAM], [1])
41965 + ])
41966 + m4_require(GL_MODULE_INDICATOR_PREFIX[_STDIO_H_MODULE_INDICATOR_DEFAULTS])
41967 + AC_REQUIRE([gl_STDIO_H_DEFAULTS])
41968 +])
41969 +
41970 AC_DEFUN([gl_STDIO_H_DEFAULTS],
41971 [
41972 - GNULIB_DPRINTF=0; AC_SUBST([GNULIB_DPRINTF])
41973 - GNULIB_FCLOSE=0; AC_SUBST([GNULIB_FCLOSE])
41974 - GNULIB_FDOPEN=0; AC_SUBST([GNULIB_FDOPEN])
41975 - GNULIB_FFLUSH=0; AC_SUBST([GNULIB_FFLUSH])
41976 - GNULIB_FGETC=0; AC_SUBST([GNULIB_FGETC])
41977 - GNULIB_FGETS=0; AC_SUBST([GNULIB_FGETS])
41978 - GNULIB_FOPEN=0; AC_SUBST([GNULIB_FOPEN])
41979 - GNULIB_FPRINTF=0; AC_SUBST([GNULIB_FPRINTF])
41980 - GNULIB_FPRINTF_POSIX=0; AC_SUBST([GNULIB_FPRINTF_POSIX])
41981 - GNULIB_FPURGE=0; AC_SUBST([GNULIB_FPURGE])
41982 - GNULIB_FPUTC=0; AC_SUBST([GNULIB_FPUTC])
41983 - GNULIB_FPUTS=0; AC_SUBST([GNULIB_FPUTS])
41984 - GNULIB_FREAD=0; AC_SUBST([GNULIB_FREAD])
41985 - GNULIB_FREOPEN=0; AC_SUBST([GNULIB_FREOPEN])
41986 - GNULIB_FSCANF=0; AC_SUBST([GNULIB_FSCANF])
41987 - GNULIB_FSEEK=0; AC_SUBST([GNULIB_FSEEK])
41988 - GNULIB_FSEEKO=0; AC_SUBST([GNULIB_FSEEKO])
41989 - GNULIB_FTELL=0; AC_SUBST([GNULIB_FTELL])
41990 - GNULIB_FTELLO=0; AC_SUBST([GNULIB_FTELLO])
41991 - GNULIB_FWRITE=0; AC_SUBST([GNULIB_FWRITE])
41992 - GNULIB_GETC=0; AC_SUBST([GNULIB_GETC])
41993 - GNULIB_GETCHAR=0; AC_SUBST([GNULIB_GETCHAR])
41994 - GNULIB_GETDELIM=0; AC_SUBST([GNULIB_GETDELIM])
41995 - GNULIB_GETLINE=0; AC_SUBST([GNULIB_GETLINE])
41996 - GNULIB_OBSTACK_PRINTF=0; AC_SUBST([GNULIB_OBSTACK_PRINTF])
41997 - GNULIB_OBSTACK_PRINTF_POSIX=0; AC_SUBST([GNULIB_OBSTACK_PRINTF_POSIX])
41998 - GNULIB_PCLOSE=0; AC_SUBST([GNULIB_PCLOSE])
41999 - GNULIB_PERROR=0; AC_SUBST([GNULIB_PERROR])
42000 - GNULIB_POPEN=0; AC_SUBST([GNULIB_POPEN])
42001 - GNULIB_PRINTF=0; AC_SUBST([GNULIB_PRINTF])
42002 - GNULIB_PRINTF_POSIX=0; AC_SUBST([GNULIB_PRINTF_POSIX])
42003 - GNULIB_PUTC=0; AC_SUBST([GNULIB_PUTC])
42004 - GNULIB_PUTCHAR=0; AC_SUBST([GNULIB_PUTCHAR])
42005 - GNULIB_PUTS=0; AC_SUBST([GNULIB_PUTS])
42006 - GNULIB_REMOVE=0; AC_SUBST([GNULIB_REMOVE])
42007 - GNULIB_RENAME=0; AC_SUBST([GNULIB_RENAME])
42008 - GNULIB_RENAMEAT=0; AC_SUBST([GNULIB_RENAMEAT])
42009 - GNULIB_SCANF=0; AC_SUBST([GNULIB_SCANF])
42010 - GNULIB_SNPRINTF=0; AC_SUBST([GNULIB_SNPRINTF])
42011 - GNULIB_SPRINTF_POSIX=0; AC_SUBST([GNULIB_SPRINTF_POSIX])
42012 - GNULIB_STDIO_H_NONBLOCKING=0; AC_SUBST([GNULIB_STDIO_H_NONBLOCKING])
42013 - GNULIB_STDIO_H_SIGPIPE=0; AC_SUBST([GNULIB_STDIO_H_SIGPIPE])
42014 - GNULIB_TMPFILE=0; AC_SUBST([GNULIB_TMPFILE])
42015 - GNULIB_VASPRINTF=0; AC_SUBST([GNULIB_VASPRINTF])
42016 - GNULIB_VFSCANF=0; AC_SUBST([GNULIB_VFSCANF])
42017 - GNULIB_VSCANF=0; AC_SUBST([GNULIB_VSCANF])
42018 - GNULIB_VDPRINTF=0; AC_SUBST([GNULIB_VDPRINTF])
42019 - GNULIB_VFPRINTF=0; AC_SUBST([GNULIB_VFPRINTF])
42020 - GNULIB_VFPRINTF_POSIX=0; AC_SUBST([GNULIB_VFPRINTF_POSIX])
42021 - GNULIB_VPRINTF=0; AC_SUBST([GNULIB_VPRINTF])
42022 - GNULIB_VPRINTF_POSIX=0; AC_SUBST([GNULIB_VPRINTF_POSIX])
42023 - GNULIB_VSNPRINTF=0; AC_SUBST([GNULIB_VSNPRINTF])
42024 - GNULIB_VSPRINTF_POSIX=0; AC_SUBST([GNULIB_VSPRINTF_POSIX])
42025 dnl Assume proper GNU behavior unless another module says otherwise.
42026 + HAVE_DECL_FCLOSEALL=1; AC_SUBST([HAVE_DECL_FCLOSEALL])
42027 HAVE_DECL_FPURGE=1; AC_SUBST([HAVE_DECL_FPURGE])
42028 HAVE_DECL_FSEEKO=1; AC_SUBST([HAVE_DECL_FSEEKO])
42029 HAVE_DECL_FTELLO=1; AC_SUBST([HAVE_DECL_FTELLO])
42030 @@ -195,6 +194,7 @@ AC_DEFUN([gl_STDIO_H_DEFAULTS],
42031 REPLACE_FDOPEN=0; AC_SUBST([REPLACE_FDOPEN])
42032 REPLACE_FFLUSH=0; AC_SUBST([REPLACE_FFLUSH])
42033 REPLACE_FOPEN=0; AC_SUBST([REPLACE_FOPEN])
42034 + REPLACE_FOPEN_FOR_FOPEN_GNU=0; AC_SUBST([REPLACE_FOPEN_FOR_FOPEN_GNU])
42035 REPLACE_FPRINTF=0; AC_SUBST([REPLACE_FPRINTF])
42036 REPLACE_FPURGE=0; AC_SUBST([REPLACE_FPURGE])
42037 REPLACE_FREOPEN=0; AC_SUBST([REPLACE_FREOPEN])
42038
42039 diff --git a/autotools/m4/stdlib_h.m4 b/autotools/m4/stdlib_h.m4
42040 index 6121602..9e20969 100644
42041 --- a/autotools/m4/stdlib_h.m4
42042 +++ b/autotools/m4/stdlib_h.m4
42043 @@ -1,10 +1,10 @@
42044 -# stdlib_h.m4 serial 48
42045 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
42046 +# stdlib_h.m4 serial 66
42047 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
42048 dnl This file is free software; the Free Software Foundation
42049 dnl gives unlimited permission to copy and/or distribute it,
42050 dnl with or without modifications, as long as this notice is preserved.
42051
42052 -AC_DEFUN([gl_STDLIB_H],
42053 +AC_DEFUN_ONCE([gl_STDLIB_H],
42054 [
42055 AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
42056 gl_NEXT_HEADERS([stdlib.h])
42057 @@ -22,63 +22,113 @@ AC_DEFUN([gl_STDLIB_H],
42058 #if HAVE_RANDOM_H
42059 # include <random.h>
42060 #endif
42061 - ]], [_Exit atoll canonicalize_file_name getloadavg getsubopt grantpt
42062 + ]], [_Exit aligned_alloc atoll canonicalize_file_name free
42063 + getloadavg getsubopt grantpt
42064 initstate initstate_r mbtowc mkdtemp mkostemp mkostemps mkstemp mkstemps
42065 - posix_openpt ptsname ptsname_r qsort_r random random_r reallocarray
42066 - realpath rpmatch secure_getenv setenv setstate setstate_r srandom
42067 - srandom_r strtod strtold strtoll strtoull unlockpt unsetenv])
42068 + posix_memalign posix_openpt ptsname ptsname_r qsort_r
42069 + random random_r reallocarray realpath rpmatch secure_getenv setenv
42070 + setstate setstate_r srandom srandom_r
42071 + strtod strtol strtold strtoll strtoul strtoull unlockpt unsetenv])
42072 +
42073 + AC_REQUIRE([AC_C_RESTRICT])
42074 +
42075 + AC_CHECK_DECLS_ONCE([ecvt])
42076 + if test $ac_cv_have_decl_ecvt = no; then
42077 + HAVE_DECL_ECVT=0
42078 + fi
42079 + AC_CHECK_DECLS_ONCE([fcvt])
42080 + if test $ac_cv_have_decl_fcvt = no; then
42081 + HAVE_DECL_FCVT=0
42082 + fi
42083 + AC_CHECK_DECLS_ONCE([gcvt])
42084 + if test $ac_cv_have_decl_gcvt = no; then
42085 + HAVE_DECL_GCVT=0
42086 + fi
42087 ])
42088
42089 +# gl_STDLIB_MODULE_INDICATOR([modulename])
42090 +# sets the shell variable that indicates the presence of the given module
42091 +# to a C preprocessor expression that will evaluate to 1.
42092 +# This macro invocation must not occur in macros that are AC_REQUIREd.
42093 AC_DEFUN([gl_STDLIB_MODULE_INDICATOR],
42094 [
42095 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
42096 - AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
42097 + dnl Ensure to expand the default settings once only.
42098 + gl_STDLIB_H_REQUIRE_DEFAULTS
42099 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
42100 dnl Define it also as a C macro, for the benefit of the unit tests.
42101 gl_MODULE_INDICATOR_FOR_TESTS([$1])
42102 ])
42103
42104 +# Initializes the default values for AC_SUBSTed shell variables.
42105 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
42106 +# outside of macros or in macros that are not AC_REQUIREd.
42107 +AC_DEFUN([gl_STDLIB_H_REQUIRE_DEFAULTS],
42108 +[
42109 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_STDLIB_H_MODULE_INDICATOR_DEFAULTS], [
42110 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB__EXIT])
42111 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ALIGNED_ALLOC])
42112 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ATOLL])
42113 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CALLOC_GNU])
42114 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CALLOC_POSIX])
42115 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CANONICALIZE_FILE_NAME])
42116 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FREE_POSIX])
42117 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETLOADAVG])
42118 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETSUBOPT])
42119 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GRANTPT])
42120 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MALLOC_GNU])
42121 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MALLOC_POSIX])
42122 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBTOWC])
42123 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKDTEMP])
42124 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKOSTEMP])
42125 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKOSTEMPS])
42126 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKSTEMP])
42127 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKSTEMPS])
42128 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_POSIX_MEMALIGN])
42129 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_POSIX_OPENPT])
42130 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PTSNAME])
42131 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PTSNAME_R])
42132 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PUTENV])
42133 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_QSORT_R])
42134 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RANDOM])
42135 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RANDOM_R])
42136 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALLOCARRAY])
42137 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALLOC_GNU])
42138 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALLOC_POSIX])
42139 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_REALPATH])
42140 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RPMATCH])
42141 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SECURE_GETENV])
42142 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETENV])
42143 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOD])
42144 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOL])
42145 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOLD])
42146 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOLL])
42147 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOUL])
42148 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOULL])
42149 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SYSTEM_POSIX])
42150 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNLOCKPT])
42151 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNSETENV])
42152 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCTOMB])
42153 + dnl Support Microsoft deprecated alias function names by default.
42154 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_ECVT], [1])
42155 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_FCVT], [1])
42156 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_GCVT], [1])
42157 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_MKTEMP], [1])
42158 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_PUTENV], [1])
42159 + ])
42160 + m4_require(GL_MODULE_INDICATOR_PREFIX[_STDLIB_H_MODULE_INDICATOR_DEFAULTS])
42161 + AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
42162 +])
42163 +
42164 AC_DEFUN([gl_STDLIB_H_DEFAULTS],
42165 [
42166 - GNULIB__EXIT=0; AC_SUBST([GNULIB__EXIT])
42167 - GNULIB_ATOLL=0; AC_SUBST([GNULIB_ATOLL])
42168 - GNULIB_CALLOC_POSIX=0; AC_SUBST([GNULIB_CALLOC_POSIX])
42169 - GNULIB_CANONICALIZE_FILE_NAME=0; AC_SUBST([GNULIB_CANONICALIZE_FILE_NAME])
42170 - GNULIB_GETLOADAVG=0; AC_SUBST([GNULIB_GETLOADAVG])
42171 - GNULIB_GETSUBOPT=0; AC_SUBST([GNULIB_GETSUBOPT])
42172 - GNULIB_GRANTPT=0; AC_SUBST([GNULIB_GRANTPT])
42173 - GNULIB_MALLOC_POSIX=0; AC_SUBST([GNULIB_MALLOC_POSIX])
42174 - GNULIB_MBTOWC=0; AC_SUBST([GNULIB_MBTOWC])
42175 - GNULIB_MKDTEMP=0; AC_SUBST([GNULIB_MKDTEMP])
42176 - GNULIB_MKOSTEMP=0; AC_SUBST([GNULIB_MKOSTEMP])
42177 - GNULIB_MKOSTEMPS=0; AC_SUBST([GNULIB_MKOSTEMPS])
42178 - GNULIB_MKSTEMP=0; AC_SUBST([GNULIB_MKSTEMP])
42179 - GNULIB_MKSTEMPS=0; AC_SUBST([GNULIB_MKSTEMPS])
42180 - GNULIB_POSIX_OPENPT=0; AC_SUBST([GNULIB_POSIX_OPENPT])
42181 - GNULIB_PTSNAME=0; AC_SUBST([GNULIB_PTSNAME])
42182 - GNULIB_PTSNAME_R=0; AC_SUBST([GNULIB_PTSNAME_R])
42183 - GNULIB_PUTENV=0; AC_SUBST([GNULIB_PUTENV])
42184 - GNULIB_QSORT_R=0; AC_SUBST([GNULIB_QSORT_R])
42185 - GNULIB_RANDOM=0; AC_SUBST([GNULIB_RANDOM])
42186 - GNULIB_RANDOM_R=0; AC_SUBST([GNULIB_RANDOM_R])
42187 - GNULIB_REALLOCARRAY=0; AC_SUBST([GNULIB_REALLOCARRAY])
42188 - GNULIB_REALLOC_POSIX=0; AC_SUBST([GNULIB_REALLOC_POSIX])
42189 - GNULIB_REALPATH=0; AC_SUBST([GNULIB_REALPATH])
42190 - GNULIB_RPMATCH=0; AC_SUBST([GNULIB_RPMATCH])
42191 - GNULIB_SECURE_GETENV=0; AC_SUBST([GNULIB_SECURE_GETENV])
42192 - GNULIB_SETENV=0; AC_SUBST([GNULIB_SETENV])
42193 - GNULIB_STRTOD=0; AC_SUBST([GNULIB_STRTOD])
42194 - GNULIB_STRTOLD=0; AC_SUBST([GNULIB_STRTOLD])
42195 - GNULIB_STRTOLL=0; AC_SUBST([GNULIB_STRTOLL])
42196 - GNULIB_STRTOULL=0; AC_SUBST([GNULIB_STRTOULL])
42197 - GNULIB_SYSTEM_POSIX=0; AC_SUBST([GNULIB_SYSTEM_POSIX])
42198 - GNULIB_UNLOCKPT=0; AC_SUBST([GNULIB_UNLOCKPT])
42199 - GNULIB_UNSETENV=0; AC_SUBST([GNULIB_UNSETENV])
42200 - GNULIB_WCTOMB=0; AC_SUBST([GNULIB_WCTOMB])
42201 dnl Assume proper GNU behavior unless another module says otherwise.
42202 HAVE__EXIT=1; AC_SUBST([HAVE__EXIT])
42203 + HAVE_ALIGNED_ALLOC=1; AC_SUBST([HAVE_ALIGNED_ALLOC])
42204 HAVE_ATOLL=1; AC_SUBST([HAVE_ATOLL])
42205 HAVE_CANONICALIZE_FILE_NAME=1; AC_SUBST([HAVE_CANONICALIZE_FILE_NAME])
42206 + HAVE_DECL_ECVT=1; AC_SUBST([HAVE_DECL_ECVT])
42207 + HAVE_DECL_FCVT=1; AC_SUBST([HAVE_DECL_FCVT])
42208 + HAVE_DECL_GCVT=1; AC_SUBST([HAVE_DECL_GCVT])
42209 HAVE_DECL_GETLOADAVG=1; AC_SUBST([HAVE_DECL_GETLOADAVG])
42210 HAVE_GETSUBOPT=1; AC_SUBST([HAVE_GETSUBOPT])
42211 HAVE_GRANTPT=1; AC_SUBST([HAVE_GRANTPT])
42212 @@ -90,6 +140,7 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS],
42213 HAVE_MKOSTEMPS=1; AC_SUBST([HAVE_MKOSTEMPS])
42214 HAVE_MKSTEMP=1; AC_SUBST([HAVE_MKSTEMP])
42215 HAVE_MKSTEMPS=1; AC_SUBST([HAVE_MKSTEMPS])
42216 + HAVE_POSIX_MEMALIGN=1; AC_SUBST([HAVE_POSIX_MEMALIGN])
42217 HAVE_POSIX_OPENPT=1; AC_SUBST([HAVE_POSIX_OPENPT])
42218 HAVE_PTSNAME=1; AC_SUBST([HAVE_PTSNAME])
42219 HAVE_PTSNAME_R=1; AC_SUBST([HAVE_PTSNAME_R])
42220 @@ -106,31 +157,44 @@ AC_DEFUN([gl_STDLIB_H_DEFAULTS],
42221 HAVE_SETSTATE=1; AC_SUBST([HAVE_SETSTATE])
42222 HAVE_DECL_SETSTATE=1; AC_SUBST([HAVE_DECL_SETSTATE])
42223 HAVE_STRTOD=1; AC_SUBST([HAVE_STRTOD])
42224 + HAVE_STRTOL=1; AC_SUBST([HAVE_STRTOL])
42225 HAVE_STRTOLD=1; AC_SUBST([HAVE_STRTOLD])
42226 HAVE_STRTOLL=1; AC_SUBST([HAVE_STRTOLL])
42227 + HAVE_STRTOUL=1; AC_SUBST([HAVE_STRTOUL])
42228 HAVE_STRTOULL=1; AC_SUBST([HAVE_STRTOULL])
42229 HAVE_STRUCT_RANDOM_DATA=1; AC_SUBST([HAVE_STRUCT_RANDOM_DATA])
42230 HAVE_SYS_LOADAVG_H=0; AC_SUBST([HAVE_SYS_LOADAVG_H])
42231 HAVE_UNLOCKPT=1; AC_SUBST([HAVE_UNLOCKPT])
42232 HAVE_DECL_UNSETENV=1; AC_SUBST([HAVE_DECL_UNSETENV])
42233 - REPLACE_CALLOC=0; AC_SUBST([REPLACE_CALLOC])
42234 + REPLACE_ALIGNED_ALLOC=0; AC_SUBST([REPLACE_ALIGNED_ALLOC])
42235 + REPLACE_CALLOC_FOR_CALLOC_GNU=0; AC_SUBST([REPLACE_CALLOC_FOR_CALLOC_GNU])
42236 + REPLACE_CALLOC_FOR_CALLOC_POSIX=0; AC_SUBST([REPLACE_CALLOC_FOR_CALLOC_POSIX])
42237 REPLACE_CANONICALIZE_FILE_NAME=0; AC_SUBST([REPLACE_CANONICALIZE_FILE_NAME])
42238 + REPLACE_FREE=0; AC_SUBST([REPLACE_FREE])
42239 REPLACE_INITSTATE=0; AC_SUBST([REPLACE_INITSTATE])
42240 - REPLACE_MALLOC=0; AC_SUBST([REPLACE_MALLOC])
42241 + REPLACE_MALLOC_FOR_MALLOC_GNU=0; AC_SUBST([REPLACE_MALLOC_FOR_MALLOC_GNU])
42242 + REPLACE_MALLOC_FOR_MALLOC_POSIX=0; AC_SUBST([REPLACE_MALLOC_FOR_MALLOC_POSIX])
42243 REPLACE_MBTOWC=0; AC_SUBST([REPLACE_MBTOWC])
42244 REPLACE_MKSTEMP=0; AC_SUBST([REPLACE_MKSTEMP])
42245 + REPLACE_POSIX_MEMALIGN=0; AC_SUBST([REPLACE_POSIX_MEMALIGN])
42246 REPLACE_PTSNAME=0; AC_SUBST([REPLACE_PTSNAME])
42247 REPLACE_PTSNAME_R=0; AC_SUBST([REPLACE_PTSNAME_R])
42248 REPLACE_PUTENV=0; AC_SUBST([REPLACE_PUTENV])
42249 REPLACE_QSORT_R=0; AC_SUBST([REPLACE_QSORT_R])
42250 REPLACE_RANDOM=0; AC_SUBST([REPLACE_RANDOM])
42251 REPLACE_RANDOM_R=0; AC_SUBST([REPLACE_RANDOM_R])
42252 - REPLACE_REALLOC=0; AC_SUBST([REPLACE_REALLOC])
42253 + REPLACE_REALLOC_FOR_REALLOC_GNU=0; AC_SUBST([REPLACE_REALLOC_FOR_REALLOC_GNU])
42254 + REPLACE_REALLOC_FOR_REALLOC_POSIX=0; AC_SUBST([REPLACE_REALLOC_FOR_REALLOC_POSIX])
42255 + REPLACE_REALLOCARRAY=0; AC_SUBST([REPLACE_REALLOCARRAY])
42256 REPLACE_REALPATH=0; AC_SUBST([REPLACE_REALPATH])
42257 REPLACE_SETENV=0; AC_SUBST([REPLACE_SETENV])
42258 REPLACE_SETSTATE=0; AC_SUBST([REPLACE_SETSTATE])
42259 REPLACE_STRTOD=0; AC_SUBST([REPLACE_STRTOD])
42260 + REPLACE_STRTOL=0; AC_SUBST([REPLACE_STRTOL])
42261 REPLACE_STRTOLD=0; AC_SUBST([REPLACE_STRTOLD])
42262 + REPLACE_STRTOLL=0; AC_SUBST([REPLACE_STRTOLL])
42263 + REPLACE_STRTOUL=0; AC_SUBST([REPLACE_STRTOUL])
42264 + REPLACE_STRTOULL=0; AC_SUBST([REPLACE_STRTOULL])
42265 REPLACE_UNSETENV=0; AC_SUBST([REPLACE_UNSETENV])
42266 REPLACE_WCTOMB=0; AC_SUBST([REPLACE_WCTOMB])
42267 ])
42268
42269 diff --git a/autotools/m4/strcase.m4 b/autotools/m4/strcase.m4
42270 index 9baef78..d1ffaba 100644
42271 --- a/autotools/m4/strcase.m4
42272 +++ b/autotools/m4/strcase.m4
42273 @@ -1,5 +1,5 @@
42274 -# strcase.m4 serial 11
42275 -dnl Copyright (C) 2002, 2005-2019 Free Software Foundation, Inc.
42276 +# strcase.m4 serial 12
42277 +dnl Copyright (C) 2002, 2005-2022 Free Software Foundation, Inc.
42278 dnl This file is free software; the Free Software Foundation
42279 dnl gives unlimited permission to copy and/or distribute it,
42280 dnl with or without modifications, as long as this notice is preserved.
42281 @@ -12,7 +12,7 @@ AC_DEFUN([gl_STRCASE],
42282
42283 AC_DEFUN([gl_FUNC_STRCASECMP],
42284 [
42285 - AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
42286 + AC_REQUIRE([gl_STRINGS_H_DEFAULTS])
42287 AC_CHECK_FUNCS([strcasecmp])
42288 if test $ac_cv_func_strcasecmp = no; then
42289 HAVE_STRCASECMP=0
42290 @@ -21,7 +21,7 @@ AC_DEFUN([gl_FUNC_STRCASECMP],
42291
42292 AC_DEFUN([gl_FUNC_STRNCASECMP],
42293 [
42294 - AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
42295 + AC_REQUIRE([gl_STRINGS_H_DEFAULTS])
42296 AC_CHECK_FUNCS([strncasecmp])
42297 if test $ac_cv_func_strncasecmp = yes; then
42298 HAVE_STRNCASECMP=1
42299
42300 diff --git a/autotools/m4/strcasestr.m4 b/autotools/m4/strcasestr.m4
42301 index 45abdbd..6344b7e 100644
42302 --- a/autotools/m4/strcasestr.m4
42303 +++ b/autotools/m4/strcasestr.m4
42304 @@ -1,5 +1,5 @@
42305 -# strcasestr.m4 serial 24
42306 -dnl Copyright (C) 2005, 2007-2019 Free Software Foundation, Inc.
42307 +# strcasestr.m4 serial 28
42308 +dnl Copyright (C) 2005, 2007-2022 Free Software Foundation, Inc.
42309 dnl This file is free software; the Free Software Foundation
42310 dnl gives unlimited permission to copy and/or distribute it,
42311 dnl with or without modifications, as long as this notice is preserved.
42312 @@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
42313 dnl Check that strcasestr is present and works.
42314 AC_DEFUN([gl_FUNC_STRCASESTR_SIMPLE],
42315 [
42316 - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
42317 + AC_REQUIRE([gl_STRING_H_DEFAULTS])
42318
42319 dnl Persuade glibc <string.h> to declare strcasestr().
42320 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
42321 @@ -17,7 +17,7 @@ AC_DEFUN([gl_FUNC_STRCASESTR_SIMPLE],
42322 if test $ac_cv_func_strcasestr = no; then
42323 HAVE_STRCASESTR=0
42324 else
42325 - if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
42326 + if test $REPLACE_MEMCHR = 1; then
42327 REPLACE_STRCASESTR=1
42328 else
42329 dnl Detect https://sourceware.org/bugzilla/show_bug.cgi?id=12092
42330 @@ -26,7 +26,7 @@ AC_DEFUN([gl_FUNC_STRCASESTR_SIMPLE],
42331 [gl_cv_func_strcasestr_works_always],
42332 [AC_RUN_IFELSE(
42333 [AC_LANG_PROGRAM([[
42334 -#include <string.h> /* for strcasestr */
42335 +#include <string.h> /* for __GNU_LIBRARY__, strcasestr */
42336 #ifdef __GNU_LIBRARY__
42337 #include <features.h>
42338 #if __GLIBC__ == 2 && __GLIBC_MINOR__ == 28
42339 @@ -48,6 +48,7 @@ AC_DEFUN([gl_FUNC_STRCASESTR_SIMPLE],
42340 dnl linear.
42341 AC_EGREP_CPP([Lucky user],
42342 [
42343 +#include <string.h> /* for __GNU_LIBRARY__ */
42344 #ifdef __GNU_LIBRARY__
42345 #include <features.h>
42346 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
42347 @@ -64,7 +65,7 @@ AC_DEFUN([gl_FUNC_STRCASESTR_SIMPLE],
42348 #endif
42349 ],
42350 [gl_cv_func_strcasestr_works_always="guessing yes"],
42351 - [gl_cv_func_strcasestr_works_always="guessing no"])
42352 + [gl_cv_func_strcasestr_works_always="$gl_cross_guess_normal"])
42353 ])
42354 ])
42355 case "$gl_cv_func_strcasestr_works_always" in
42356 @@ -136,7 +137,7 @@ static void quit (int sig) { _exit (sig + 128); }
42357 #endif
42358 ],
42359 [gl_cv_func_strcasestr_linear="guessing yes"],
42360 - [gl_cv_func_strcasestr_linear="guessing no"])
42361 + [gl_cv_func_strcasestr_linear="$gl_cross_guess_normal"])
42362 ])
42363 ])
42364 case "$gl_cv_func_strcasestr_linear" in
42365
42366 diff --git a/autotools/m4/strdup.m4 b/autotools/m4/strdup.m4
42367 index 82d7420..da8899d 100644
42368 --- a/autotools/m4/strdup.m4
42369 +++ b/autotools/m4/strdup.m4
42370 @@ -1,6 +1,6 @@
42371 -# strdup.m4 serial 13
42372 +# strdup.m4 serial 15
42373
42374 -dnl Copyright (C) 2002-2019 Free Software Foundation, Inc.
42375 +dnl Copyright (C) 2002-2022 Free Software Foundation, Inc.
42376
42377 dnl This file is free software; the Free Software Foundation
42378 dnl gives unlimited permission to copy and/or distribute it,
42379 @@ -8,8 +8,7 @@ dnl with or without modifications, as long as this notice is preserved.
42380
42381 AC_DEFUN([gl_FUNC_STRDUP],
42382 [
42383 - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
42384 - AC_CHECK_FUNCS_ONCE([strdup])
42385 + AC_REQUIRE([gl_STRING_H_DEFAULTS])
42386 AC_CHECK_DECLS_ONCE([strdup])
42387 if test $ac_cv_have_decl_strdup = no; then
42388 HAVE_DECL_STRDUP=0
42389 @@ -18,13 +17,10 @@ AC_DEFUN([gl_FUNC_STRDUP],
42390
42391 AC_DEFUN([gl_FUNC_STRDUP_POSIX],
42392 [
42393 - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
42394 + AC_REQUIRE([gl_STRING_H_DEFAULTS])
42395 AC_REQUIRE([gl_CHECK_MALLOC_POSIX])
42396 - AC_CHECK_FUNCS_ONCE([strdup])
42397 - if test $ac_cv_func_strdup = yes; then
42398 - if test $gl_cv_func_malloc_posix != yes; then
42399 - REPLACE_STRDUP=1
42400 - fi
42401 + if test $gl_cv_func_malloc_posix != yes; then
42402 + REPLACE_STRDUP=1
42403 fi
42404 AC_CHECK_DECLS_ONCE([strdup])
42405 if test $ac_cv_have_decl_strdup = no; then
42406
42407 diff --git a/autotools/m4/strerror.m4 b/autotools/m4/strerror.m4
42408 index b452f7f..4716649 100644
42409 --- a/autotools/m4/strerror.m4
42410 +++ b/autotools/m4/strerror.m4
42411 @@ -1,19 +1,19 @@
42412 -# strerror.m4 serial 19
42413 -dnl Copyright (C) 2002, 2007-2019 Free Software Foundation, Inc.
42414 +# strerror.m4 serial 23
42415 +dnl Copyright (C) 2002, 2007-2022 Free Software Foundation, Inc.
42416 dnl This file is free software; the Free Software Foundation
42417 dnl gives unlimited permission to copy and/or distribute it,
42418 dnl with or without modifications, as long as this notice is preserved.
42419
42420 AC_DEFUN([gl_FUNC_STRERROR],
42421 [
42422 - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
42423 + AC_REQUIRE([gl_STRING_H_DEFAULTS])
42424 AC_REQUIRE([gl_HEADER_ERRNO_H])
42425 AC_REQUIRE([gl_FUNC_STRERROR_0])
42426 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
42427 m4_ifdef([gl_FUNC_STRERROR_R_WORKS], [
42428 AC_REQUIRE([gl_FUNC_STRERROR_R_WORKS])
42429 ])
42430 - if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
42431 + if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
42432 AC_CACHE_CHECK([for working strerror function],
42433 [gl_cv_func_working_strerror],
42434 [AC_RUN_IFELSE(
42435 @@ -26,8 +26,10 @@ AC_DEFUN([gl_FUNC_STRERROR],
42436 [case "$host_os" in
42437 # Guess yes on glibc systems.
42438 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
42439 - # If we don't know, assume the worst.
42440 - *) gl_cv_func_working_strerror="guessing no" ;;
42441 + # Guess yes on musl systems.
42442 + *-musl*) gl_cv_func_working_strerror="guessing yes" ;;
42443 + # If we don't know, obey --enable-cross-guesses.
42444 + *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
42445 esac
42446 ])
42447 ])
42448 @@ -80,10 +82,12 @@ AC_DEFUN([gl_FUNC_STRERROR_0],
42449 [case "$host_os" in
42450 # Guess yes on glibc systems.
42451 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
42452 + # Guess yes on musl systems.
42453 + *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;;
42454 # Guess yes on native Windows.
42455 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
42456 - # If we don't know, assume the worst.
42457 - *) gl_cv_func_strerror_0_works="guessing no" ;;
42458 + # If we don't know, obey --enable-cross-guesses.
42459 + *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
42460 esac
42461 ])
42462 ])
42463
42464 diff --git a/autotools/m4/string_h.m4 b/autotools/m4/string_h.m4
42465 index 0c0e3a7..9e09b96 100644
42466 --- a/autotools/m4/string_h.m4
42467 +++ b/autotools/m4/string_h.m4
42468 @@ -1,25 +1,19 @@
42469 # Configure a GNU-like replacement for <string.h>.
42470
42471 -# Copyright (C) 2007-2019 Free Software Foundation, Inc.
42472 +# Copyright (C) 2007-2022 Free Software Foundation, Inc.
42473 # This file is free software; the Free Software Foundation
42474 # gives unlimited permission to copy and/or distribute it,
42475 # with or without modifications, as long as this notice is preserved.
42476
42477 -# serial 22
42478 +# serial 34
42479
42480 # Written by Paul Eggert.
42481
42482 -AC_DEFUN([gl_HEADER_STRING_H],
42483 +AC_DEFUN_ONCE([gl_STRING_H],
42484 [
42485 - dnl Use AC_REQUIRE here, so that the default behavior below is expanded
42486 - dnl once only, before all statements that occur in other macros.
42487 - AC_REQUIRE([gl_HEADER_STRING_H_BODY])
42488 -])
42489 -
42490 -AC_DEFUN([gl_HEADER_STRING_H_BODY],
42491 -[
42492 - AC_REQUIRE([AC_C_RESTRICT])
42493 - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
42494 + dnl Ensure to expand the default settings once only, before all statements
42495 + dnl that occur in other macros.
42496 + AC_REQUIRE([gl_STRING_H_DEFAULTS])
42497 gl_NEXT_HEADERS([string.h])
42498
42499 dnl Check for declarations of anything we want to poison if the
42500 @@ -29,64 +23,88 @@ AC_DEFUN([gl_HEADER_STRING_H_BODY],
42501 ]],
42502 [ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul
42503 strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r
42504 - strerror_r strsignal strverscmp])
42505 + strerror_r strerrorname_np sigabbrev_np sigdescr_np strsignal strverscmp])
42506 +
42507 + AC_REQUIRE([AC_C_RESTRICT])
42508 ])
42509
42510 +# gl_STRING_MODULE_INDICATOR([modulename])
42511 +# sets the shell variable that indicates the presence of the given module
42512 +# to a C preprocessor expression that will evaluate to 1.
42513 +# This macro invocation must not occur in macros that are AC_REQUIREd.
42514 AC_DEFUN([gl_STRING_MODULE_INDICATOR],
42515 [
42516 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
42517 - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
42518 + dnl Ensure to expand the default settings once only.
42519 + gl_STRING_H_REQUIRE_DEFAULTS
42520 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
42521 dnl Define it also as a C macro, for the benefit of the unit tests.
42522 gl_MODULE_INDICATOR_FOR_TESTS([$1])
42523 ])
42524
42525 -AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS],
42526 +# Initializes the default values for AC_SUBSTed shell variables.
42527 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
42528 +# outside of macros or in macros that are not AC_REQUIREd.
42529 +AC_DEFUN([gl_STRING_H_REQUIRE_DEFAULTS],
42530 +[
42531 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_STRING_H_MODULE_INDICATOR_DEFAULTS], [
42532 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXPLICIT_BZERO])
42533 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FFSL])
42534 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FFSLL])
42535 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MEMCHR])
42536 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MEMMEM])
42537 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MEMPCPY])
42538 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MEMRCHR])
42539 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RAWMEMCHR])
42540 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STPCPY])
42541 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STPNCPY])
42542 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRCHRNUL])
42543 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRDUP])
42544 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNCAT])
42545 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNDUP])
42546 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRNLEN])
42547 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRPBRK])
42548 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRSEP])
42549 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRSTR])
42550 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRCASESTR])
42551 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRTOK_R])
42552 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSLEN])
42553 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSNLEN])
42554 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSCHR])
42555 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSRCHR])
42556 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSSTR])
42557 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSCASECMP])
42558 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSNCASECMP])
42559 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSPCASECMP])
42560 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSCASESTR])
42561 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSCSPN])
42562 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSPBRK])
42563 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSSPN])
42564 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSSEP])
42565 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSTOK_R])
42566 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRERROR])
42567 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRERROR_R])
42568 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRERRORNAME_NP])
42569 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SIGABBREV_NP])
42570 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SIGDESCR_NP])
42571 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRSIGNAL])
42572 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRVERSCMP])
42573 + dnl Support Microsoft deprecated alias function names by default.
42574 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_MEMCCPY], [1])
42575 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_STRDUP], [1])
42576 + ])
42577 + m4_require(GL_MODULE_INDICATOR_PREFIX[_STRING_H_MODULE_INDICATOR_DEFAULTS])
42578 + dnl Make sure the shell variable for GNULIB_FREE_POSIX is initialized.
42579 + gl_STDLIB_H_REQUIRE_DEFAULTS
42580 + AC_REQUIRE([gl_STRING_H_DEFAULTS])
42581 +])
42582 +
42583 +AC_DEFUN([gl_STRING_H_DEFAULTS],
42584 [
42585 - GNULIB_EXPLICIT_BZERO=0; AC_SUBST([GNULIB_EXPLICIT_BZERO])
42586 - GNULIB_FFSL=0; AC_SUBST([GNULIB_FFSL])
42587 - GNULIB_FFSLL=0; AC_SUBST([GNULIB_FFSLL])
42588 - GNULIB_MEMCHR=0; AC_SUBST([GNULIB_MEMCHR])
42589 - GNULIB_MEMMEM=0; AC_SUBST([GNULIB_MEMMEM])
42590 - GNULIB_MEMPCPY=0; AC_SUBST([GNULIB_MEMPCPY])
42591 - GNULIB_MEMRCHR=0; AC_SUBST([GNULIB_MEMRCHR])
42592 - GNULIB_RAWMEMCHR=0; AC_SUBST([GNULIB_RAWMEMCHR])
42593 - GNULIB_STPCPY=0; AC_SUBST([GNULIB_STPCPY])
42594 - GNULIB_STPNCPY=0; AC_SUBST([GNULIB_STPNCPY])
42595 - GNULIB_STRCHRNUL=0; AC_SUBST([GNULIB_STRCHRNUL])
42596 - GNULIB_STRDUP=0; AC_SUBST([GNULIB_STRDUP])
42597 - GNULIB_STRNCAT=0; AC_SUBST([GNULIB_STRNCAT])
42598 - GNULIB_STRNDUP=0; AC_SUBST([GNULIB_STRNDUP])
42599 - GNULIB_STRNLEN=0; AC_SUBST([GNULIB_STRNLEN])
42600 - GNULIB_STRPBRK=0; AC_SUBST([GNULIB_STRPBRK])
42601 - GNULIB_STRSEP=0; AC_SUBST([GNULIB_STRSEP])
42602 - GNULIB_STRSTR=0; AC_SUBST([GNULIB_STRSTR])
42603 - GNULIB_STRCASESTR=0; AC_SUBST([GNULIB_STRCASESTR])
42604 - GNULIB_STRTOK_R=0; AC_SUBST([GNULIB_STRTOK_R])
42605 - GNULIB_MBSLEN=0; AC_SUBST([GNULIB_MBSLEN])
42606 - GNULIB_MBSNLEN=0; AC_SUBST([GNULIB_MBSNLEN])
42607 - GNULIB_MBSCHR=0; AC_SUBST([GNULIB_MBSCHR])
42608 - GNULIB_MBSRCHR=0; AC_SUBST([GNULIB_MBSRCHR])
42609 - GNULIB_MBSSTR=0; AC_SUBST([GNULIB_MBSSTR])
42610 - GNULIB_MBSCASECMP=0; AC_SUBST([GNULIB_MBSCASECMP])
42611 - GNULIB_MBSNCASECMP=0; AC_SUBST([GNULIB_MBSNCASECMP])
42612 - GNULIB_MBSPCASECMP=0; AC_SUBST([GNULIB_MBSPCASECMP])
42613 - GNULIB_MBSCASESTR=0; AC_SUBST([GNULIB_MBSCASESTR])
42614 - GNULIB_MBSCSPN=0; AC_SUBST([GNULIB_MBSCSPN])
42615 - GNULIB_MBSPBRK=0; AC_SUBST([GNULIB_MBSPBRK])
42616 - GNULIB_MBSSPN=0; AC_SUBST([GNULIB_MBSSPN])
42617 - GNULIB_MBSSEP=0; AC_SUBST([GNULIB_MBSSEP])
42618 - GNULIB_MBSTOK_R=0; AC_SUBST([GNULIB_MBSTOK_R])
42619 - GNULIB_STRERROR=0; AC_SUBST([GNULIB_STRERROR])
42620 - GNULIB_STRERROR_R=0; AC_SUBST([GNULIB_STRERROR_R])
42621 - GNULIB_STRSIGNAL=0; AC_SUBST([GNULIB_STRSIGNAL])
42622 - GNULIB_STRVERSCMP=0; AC_SUBST([GNULIB_STRVERSCMP])
42623 - HAVE_MBSLEN=0; AC_SUBST([HAVE_MBSLEN])
42624 + HAVE_MBSLEN=0; AC_SUBST([HAVE_MBSLEN])
42625 dnl Assume proper GNU behavior unless another module says otherwise.
42626 HAVE_EXPLICIT_BZERO=1; AC_SUBST([HAVE_EXPLICIT_BZERO])
42627 HAVE_FFSL=1; AC_SUBST([HAVE_FFSL])
42628 HAVE_FFSLL=1; AC_SUBST([HAVE_FFSLL])
42629 - HAVE_MEMCHR=1; AC_SUBST([HAVE_MEMCHR])
42630 HAVE_DECL_MEMMEM=1; AC_SUBST([HAVE_DECL_MEMMEM])
42631 HAVE_MEMPCPY=1; AC_SUBST([HAVE_MEMPCPY])
42632 HAVE_DECL_MEMRCHR=1; AC_SUBST([HAVE_DECL_MEMRCHR])
42633 @@ -102,8 +120,12 @@ AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS],
42634 HAVE_STRCASESTR=1; AC_SUBST([HAVE_STRCASESTR])
42635 HAVE_DECL_STRTOK_R=1; AC_SUBST([HAVE_DECL_STRTOK_R])
42636 HAVE_DECL_STRERROR_R=1; AC_SUBST([HAVE_DECL_STRERROR_R])
42637 + HAVE_STRERRORNAME_NP=1; AC_SUBST([HAVE_STRERRORNAME_NP])
42638 + HAVE_SIGABBREV_NP=1; AC_SUBST([HAVE_SIGABBREV_NP])
42639 + HAVE_SIGDESCR_NP=1; AC_SUBST([HAVE_SIGDESCR_NP])
42640 HAVE_DECL_STRSIGNAL=1; AC_SUBST([HAVE_DECL_STRSIGNAL])
42641 HAVE_STRVERSCMP=1; AC_SUBST([HAVE_STRVERSCMP])
42642 + REPLACE_FFSLL=0; AC_SUBST([REPLACE_FFSLL])
42643 REPLACE_MEMCHR=0; AC_SUBST([REPLACE_MEMCHR])
42644 REPLACE_MEMMEM=0; AC_SUBST([REPLACE_MEMMEM])
42645 REPLACE_STPNCPY=0; AC_SUBST([REPLACE_STPNCPY])
42646 @@ -117,6 +139,7 @@ AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS],
42647 REPLACE_STRTOK_R=0; AC_SUBST([REPLACE_STRTOK_R])
42648 REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR])
42649 REPLACE_STRERROR_R=0; AC_SUBST([REPLACE_STRERROR_R])
42650 + REPLACE_STRERRORNAME_NP=0; AC_SUBST([REPLACE_STRERRORNAME_NP])
42651 REPLACE_STRSIGNAL=0; AC_SUBST([REPLACE_STRSIGNAL])
42652 UNDEFINE_STRTOK_R=0; AC_SUBST([UNDEFINE_STRTOK_R])
42653 ])
42654
42655 diff --git a/autotools/m4/strings_h.m4 b/autotools/m4/strings_h.m4
42656 index 76128cf..6965b7c 100644
42657 --- a/autotools/m4/strings_h.m4
42658 +++ b/autotools/m4/strings_h.m4
42659 @@ -1,21 +1,16 @@
42660 # Configure a replacement for <strings.h>.
42661 -# serial 6
42662 +# serial 9
42663
42664 -# Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
42665 +# Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
42666 # This file is free software; the Free Software Foundation
42667 # gives unlimited permission to copy and/or distribute it,
42668 # with or without modifications, as long as this notice is preserved.
42669
42670 -AC_DEFUN([gl_HEADER_STRINGS_H],
42671 +AC_DEFUN_ONCE([gl_STRINGS_H],
42672 [
42673 - dnl Use AC_REQUIRE here, so that the default behavior below is expanded
42674 - dnl once only, before all statements that occur in other macros.
42675 - AC_REQUIRE([gl_HEADER_STRINGS_H_BODY])
42676 -])
42677 -
42678 -AC_DEFUN([gl_HEADER_STRINGS_H_BODY],
42679 -[
42680 - AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
42681 + dnl Ensure to expand the default settings once only, before all statements
42682 + dnl that occur in other macros.
42683 + AC_REQUIRE([gl_STRINGS_H_DEFAULTS])
42684
42685 gl_CHECK_NEXT_HEADERS([strings.h])
42686 if test $ac_cv_header_strings_h = yes; then
42687 @@ -35,16 +30,31 @@ AC_DEFUN([gl_HEADER_STRINGS_H_BODY],
42688 ]], [ffs strcasecmp strncasecmp])
42689 ])
42690
42691 +# gl_STRINGS_MODULE_INDICATOR([modulename])
42692 +# sets the shell variable that indicates the presence of the given module
42693 +# to a C preprocessor expression that will evaluate to 1.
42694 +# This macro invocation must not occur in macros that are AC_REQUIREd.
42695 AC_DEFUN([gl_STRINGS_MODULE_INDICATOR],
42696 [
42697 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
42698 - AC_REQUIRE([gl_HEADER_STRINGS_H_DEFAULTS])
42699 + dnl Ensure to expand the default settings once only.
42700 + gl_STRINGS_H_REQUIRE_DEFAULTS
42701 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
42702 ])
42703
42704 -AC_DEFUN([gl_HEADER_STRINGS_H_DEFAULTS],
42705 +# Initializes the default values for AC_SUBSTed shell variables.
42706 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
42707 +# outside of macros or in macros that are not AC_REQUIREd.
42708 +AC_DEFUN([gl_STRINGS_H_REQUIRE_DEFAULTS],
42709 +[
42710 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_STRINGS_H_MODULE_INDICATOR_DEFAULTS], [
42711 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FFS])
42712 + ])
42713 + m4_require(GL_MODULE_INDICATOR_PREFIX[_STRINGS_H_MODULE_INDICATOR_DEFAULTS])
42714 + AC_REQUIRE([gl_STRINGS_H_DEFAULTS])
42715 +])
42716 +
42717 +AC_DEFUN([gl_STRINGS_H_DEFAULTS],
42718 [
42719 - GNULIB_FFS=0; AC_SUBST([GNULIB_FFS])
42720 dnl Assume proper GNU behavior unless another module says otherwise.
42721 HAVE_FFS=1; AC_SUBST([HAVE_FFS])
42722 HAVE_STRCASECMP=1; AC_SUBST([HAVE_STRCASECMP])
42723
42724 diff --git a/autotools/m4/strncat.m4 b/autotools/m4/strncat.m4
42725 index 7de5697..627280c 100644
42726 --- a/autotools/m4/strncat.m4
42727 +++ b/autotools/m4/strncat.m4
42728 @@ -1,12 +1,12 @@
42729 -# strncat.m4 serial 4
42730 -dnl Copyright (C) 2002-2004, 2009-2019 Free Software Foundation, Inc.
42731 +# strncat.m4 serial 6
42732 +dnl Copyright (C) 2002-2004, 2009-2022 Free Software Foundation, Inc.
42733 dnl This file is free software; the Free Software Foundation
42734 dnl gives unlimited permission to copy and/or distribute it,
42735 dnl with or without modifications, as long as this notice is preserved.
42736
42737 AC_DEFUN_ONCE([gl_FUNC_STRNCAT],
42738 [
42739 - AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
42740 + AC_REQUIRE([gl_STRING_H_DEFAULTS])
42741 AC_REQUIRE([AC_PROG_CC])
42742 AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
42743
42744 @@ -31,7 +31,8 @@ AC_DEFUN_ONCE([gl_FUNC_STRNCAT],
42745 # define MAP_FILE 0
42746 # endif
42747 #endif
42748 -]], [[
42749 +]GL_MDA_DEFINES],
42750 +[[
42751 char *fence = NULL;
42752 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
42753 # if HAVE_MAP_ANONYMOUS
42754
42755 diff --git a/autotools/m4/symlink.m4 b/autotools/m4/symlink.m4
42756 index 508e94d..5be2bab 100644
42757 --- a/autotools/m4/symlink.m4
42758 +++ b/autotools/m4/symlink.m4
42759 @@ -1,7 +1,7 @@
42760 -# serial 8
42761 +# serial 9
42762 # See if we need to provide symlink replacement.
42763
42764 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
42765 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
42766 dnl This file is free software; the Free Software Foundation
42767 dnl gives unlimited permission to copy and/or distribute it,
42768 dnl with or without modifications, as long as this notice is preserved.
42769 @@ -40,8 +40,8 @@ AC_DEFUN([gl_FUNC_SYMLINK],
42770 linux-* | linux) gl_cv_func_symlink_works="guessing yes" ;;
42771 # Guess yes on glibc systems.
42772 *-gnu* | gnu*) gl_cv_func_symlink_works="guessing yes" ;;
42773 - # If we don't know, assume the worst.
42774 - *) gl_cv_func_symlink_works="guessing no" ;;
42775 + # If we don't know, obey --enable-cross-guesses.
42776 + *) gl_cv_func_symlink_works="$gl_cross_guess_normal" ;;
42777 esac
42778 ])
42779 rm -f conftest.f conftest.link conftest.lnk2])
42780
42781 diff --git a/autotools/m4/symlinkat.m4 b/autotools/m4/symlinkat.m4
42782 index 99ff258..4d7b823 100644
42783 --- a/autotools/m4/symlinkat.m4
42784 +++ b/autotools/m4/symlinkat.m4
42785 @@ -1,7 +1,7 @@
42786 -# serial 9
42787 +# serial 10
42788 # See if we need to provide symlinkat replacement.
42789
42790 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
42791 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
42792 dnl This file is free software; the Free Software Foundation
42793 dnl gives unlimited permission to copy and/or distribute it,
42794 dnl with or without modifications, as long as this notice is preserved.
42795 @@ -41,8 +41,8 @@ AC_DEFUN([gl_FUNC_SYMLINKAT],
42796 linux-* | linux) gl_cv_func_symlinkat_works="guessing yes" ;;
42797 # Guess yes on glibc systems.
42798 *-gnu* | gnu*) gl_cv_func_symlinkat_works="guessing yes" ;;
42799 - # If we don't know, assume the worst.
42800 - *) gl_cv_func_symlinkat_works="guessing no" ;;
42801 + # If we don't know, obey --enable-cross-guesses.
42802 + *) gl_cv_func_symlinkat_works="$gl_cross_guess_normal" ;;
42803 esac
42804 ])
42805 rm -f conftest.f conftest.link conftest.lnk2])
42806
42807 diff --git a/autotools/m4/sys_socket_h.m4 b/autotools/m4/sys_socket_h.m4
42808 index 1ea7b0b..ba3ae68 100644
42809 --- a/autotools/m4/sys_socket_h.m4
42810 +++ b/autotools/m4/sys_socket_h.m4
42811 @@ -1,12 +1,12 @@
42812 -# sys_socket_h.m4 serial 23
42813 -dnl Copyright (C) 2005-2019 Free Software Foundation, Inc.
42814 +# sys_socket_h.m4 serial 29
42815 +dnl Copyright (C) 2005-2022 Free Software Foundation, Inc.
42816 dnl This file is free software; the Free Software Foundation
42817 dnl gives unlimited permission to copy and/or distribute it,
42818 dnl with or without modifications, as long as this notice is preserved.
42819
42820 dnl From Simon Josefsson.
42821
42822 -AC_DEFUN([gl_HEADER_SYS_SOCKET],
42823 +AC_DEFUN_ONCE([gl_SYS_SOCKET_H],
42824 [
42825 AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS])
42826 AC_REQUIRE([AC_CANONICAL_HOST])
42827 @@ -22,6 +22,7 @@ AC_DEFUN([gl_HEADER_SYS_SOCKET],
42828 ;;
42829 esac
42830
42831 + GL_GENERATE_SYS_SOCKET_H=false
42832 AC_CACHE_CHECK([whether <sys/socket.h> is self-contained],
42833 [gl_cv_header_sys_socket_h_selfcontained],
42834 [
42835 @@ -44,7 +45,7 @@ AC_DEFUN([gl_HEADER_SYS_SOCKET],
42836 [gl_cv_header_sys_socket_h_shut=no])
42837 ])
42838 if test $gl_cv_header_sys_socket_h_shut = no; then
42839 - SYS_SOCKET_H='sys/socket.h'
42840 + GL_GENERATE_SYS_SOCKET_H=true
42841 fi
42842 fi
42843 fi
42844 @@ -83,7 +84,7 @@ AC_DEFUN([gl_HEADER_SYS_SOCKET],
42845 fi
42846 if test $HAVE_STRUCT_SOCKADDR_STORAGE = 0 || test $HAVE_SA_FAMILY_T = 0 \
42847 || test $HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY = 0; then
42848 - SYS_SOCKET_H='sys/socket.h'
42849 + GL_GENERATE_SYS_SOCKET_H=true
42850 fi
42851 gl_PREREQ_SYS_H_WINSOCK2
42852
42853 @@ -95,6 +96,8 @@ AC_DEFUN([gl_HEADER_SYS_SOCKET],
42854 #include <sys/socket.h>
42855 ]], [socket connect accept bind getpeername getsockname getsockopt
42856 listen recv send recvfrom sendto setsockopt shutdown accept4])
42857 +
42858 + AC_REQUIRE([AC_C_RESTRICT])
42859 ])
42860
42861 AC_DEFUN([gl_PREREQ_SYS_H_SOCKET],
42862 @@ -104,17 +107,11 @@ AC_DEFUN([gl_PREREQ_SYS_H_SOCKET],
42863 gl_CHECK_NEXT_HEADERS([sys/socket.h])
42864 if test $ac_cv_header_sys_socket_h = yes; then
42865 HAVE_SYS_SOCKET_H=1
42866 - HAVE_WS2TCPIP_H=0
42867 else
42868 HAVE_SYS_SOCKET_H=0
42869 - if test $ac_cv_header_ws2tcpip_h = yes; then
42870 - HAVE_WS2TCPIP_H=1
42871 - else
42872 - HAVE_WS2TCPIP_H=0
42873 - fi
42874 fi
42875 AC_SUBST([HAVE_SYS_SOCKET_H])
42876 - AC_SUBST([HAVE_WS2TCPIP_H])
42877 + gl_PREREQ_SYS_H_WS2TCPIP
42878 ])
42879
42880 # Common prerequisites of the <sys/socket.h> replacement and of the
42881 @@ -142,32 +139,65 @@ AC_DEFUN([gl_PREREQ_SYS_H_WINSOCK2],
42882 AC_SUBST([HAVE_WINSOCK2_H])
42883 ])
42884
42885 +# Common prerequisites of the <sys/socket.h> replacement and of the
42886 +# <arpa/inet.h> replacement.
42887 +# Sets and substitutes HAVE_WS2TCPIP_H.
42888 +AC_DEFUN([gl_PREREQ_SYS_H_WS2TCPIP],
42889 +[
42890 + AC_REQUIRE([gl_CHECK_SOCKET_HEADERS])
42891 + if test $ac_cv_header_sys_socket_h = yes; then
42892 + HAVE_WS2TCPIP_H=0
42893 + else
42894 + if test $ac_cv_header_ws2tcpip_h = yes; then
42895 + HAVE_WS2TCPIP_H=1
42896 + else
42897 + HAVE_WS2TCPIP_H=0
42898 + fi
42899 + fi
42900 + AC_SUBST([HAVE_WS2TCPIP_H])
42901 +])
42902 +
42903 +# gl_SYS_SOCKET_MODULE_INDICATOR([modulename])
42904 +# sets the shell variable that indicates the presence of the given module
42905 +# to a C preprocessor expression that will evaluate to 1.
42906 +# This macro invocation must not occur in macros that are AC_REQUIREd.
42907 AC_DEFUN([gl_SYS_SOCKET_MODULE_INDICATOR],
42908 [
42909 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
42910 - AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS])
42911 + dnl Ensure to expand the default settings once only.
42912 + gl_SYS_SOCKET_H_REQUIRE_DEFAULTS
42913 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
42914 dnl Define it also as a C macro, for the benefit of the unit tests.
42915 gl_MODULE_INDICATOR_FOR_TESTS([$1])
42916 ])
42917
42918 +# Initializes the default values for AC_SUBSTed shell variables.
42919 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
42920 +# outside of macros or in macros that are not AC_REQUIREd.
42921 +AC_DEFUN([gl_SYS_SOCKET_H_REQUIRE_DEFAULTS],
42922 +[
42923 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_SOCKET_H_MODULE_INDICATOR_DEFAULTS], [
42924 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SOCKET])
42925 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CONNECT])
42926 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ACCEPT])
42927 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_BIND])
42928 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPEERNAME])
42929 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETSOCKNAME])
42930 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETSOCKOPT])
42931 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LISTEN])
42932 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RECV])
42933 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SEND])
42934 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RECVFROM])
42935 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SENDTO])
42936 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETSOCKOPT])
42937 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SHUTDOWN])
42938 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ACCEPT4])
42939 + ])
42940 + m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_SOCKET_H_MODULE_INDICATOR_DEFAULTS])
42941 + AC_REQUIRE([gl_SYS_SOCKET_H_DEFAULTS])
42942 +])
42943 +
42944 AC_DEFUN([gl_SYS_SOCKET_H_DEFAULTS],
42945 [
42946 - GNULIB_SOCKET=0; AC_SUBST([GNULIB_SOCKET])
42947 - GNULIB_CONNECT=0; AC_SUBST([GNULIB_CONNECT])
42948 - GNULIB_ACCEPT=0; AC_SUBST([GNULIB_ACCEPT])
42949 - GNULIB_BIND=0; AC_SUBST([GNULIB_BIND])
42950 - GNULIB_GETPEERNAME=0; AC_SUBST([GNULIB_GETPEERNAME])
42951 - GNULIB_GETSOCKNAME=0; AC_SUBST([GNULIB_GETSOCKNAME])
42952 - GNULIB_GETSOCKOPT=0; AC_SUBST([GNULIB_GETSOCKOPT])
42953 - GNULIB_LISTEN=0; AC_SUBST([GNULIB_LISTEN])
42954 - GNULIB_RECV=0; AC_SUBST([GNULIB_RECV])
42955 - GNULIB_SEND=0; AC_SUBST([GNULIB_SEND])
42956 - GNULIB_RECVFROM=0; AC_SUBST([GNULIB_RECVFROM])
42957 - GNULIB_SENDTO=0; AC_SUBST([GNULIB_SENDTO])
42958 - GNULIB_SETSOCKOPT=0; AC_SUBST([GNULIB_SETSOCKOPT])
42959 - GNULIB_SHUTDOWN=0; AC_SUBST([GNULIB_SHUTDOWN])
42960 - GNULIB_ACCEPT4=0; AC_SUBST([GNULIB_ACCEPT4])
42961 HAVE_STRUCT_SOCKADDR_STORAGE=1; AC_SUBST([HAVE_STRUCT_SOCKADDR_STORAGE])
42962 HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY=1;
42963 AC_SUBST([HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY])
42964
42965 diff --git a/autotools/m4/sys_stat_h.m4 b/autotools/m4/sys_stat_h.m4
42966 index 361ac3f..b5a9789 100644
42967 --- a/autotools/m4/sys_stat_h.m4
42968 +++ b/autotools/m4/sys_stat_h.m4
42969 @@ -1,5 +1,5 @@
42970 -# sys_stat_h.m4 serial 31 -*- Autoconf -*-
42971 -dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
42972 +# sys_stat_h.m4 serial 41 -*- Autoconf -*-
42973 +dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
42974 dnl This file is free software; the Free Software Foundation
42975 dnl gives unlimited permission to copy and/or distribute it,
42976 dnl with or without modifications, as long as this notice is preserved.
42977 @@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
42978 dnl From Eric Blake.
42979 dnl Provide a GNU-like <sys/stat.h>.
42980
42981 -AC_DEFUN([gl_HEADER_SYS_STAT_H],
42982 +AC_DEFUN_ONCE([gl_SYS_STAT_H],
42983 [
42984 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
42985
42986 @@ -46,40 +46,64 @@ AC_DEFUN([gl_HEADER_SYS_STAT_H],
42987 dnl Check for declarations of anything we want to poison if the
42988 dnl corresponding gnulib module is not in use.
42989 gl_WARN_ON_USE_PREPARE([[#include <sys/stat.h>
42990 - ]], [fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat
42991 - mknod mknodat stat utimensat])
42992 -]) # gl_HEADER_SYS_STAT_H
42993 + ]], [fchmodat fstat fstatat futimens getumask lchmod lstat
42994 + mkdirat mkfifo mkfifoat mknod mknodat stat utimensat])
42995
42996 + AC_REQUIRE([AC_C_RESTRICT])
42997 +])
42998 +
42999 +# gl_SYS_STAT_MODULE_INDICATOR([modulename])
43000 +# sets the shell variable that indicates the presence of the given module
43001 +# to a C preprocessor expression that will evaluate to 1.
43002 +# This macro invocation must not occur in macros that are AC_REQUIREd.
43003 AC_DEFUN([gl_SYS_STAT_MODULE_INDICATOR],
43004 [
43005 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
43006 - AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
43007 + dnl Ensure to expand the default settings once only.
43008 + gl_SYS_STAT_H_REQUIRE_DEFAULTS
43009 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
43010 dnl Define it also as a C macro, for the benefit of the unit tests.
43011 gl_MODULE_INDICATOR_FOR_TESTS([$1])
43012 ])
43013
43014 +# Initializes the default values for AC_SUBSTed shell variables.
43015 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
43016 +# outside of macros or in macros that are not AC_REQUIREd.
43017 +AC_DEFUN([gl_SYS_STAT_H_REQUIRE_DEFAULTS],
43018 +[
43019 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_STAT_H_MODULE_INDICATOR_DEFAULTS], [
43020 + gl_UNISTD_H_REQUIRE_DEFAULTS dnl for REPLACE_FCHDIR
43021 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCHMODAT])
43022 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSTAT])
43023 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSTATAT])
43024 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FUTIMENS])
43025 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETUMASK])
43026 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LCHMOD])
43027 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LSTAT])
43028 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKDIR])
43029 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKDIRAT])
43030 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKFIFO])
43031 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKFIFOAT])
43032 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKNOD])
43033 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKNODAT])
43034 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STAT])
43035 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UTIMENSAT])
43036 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_OVERRIDES_STRUCT_STAT])
43037 + dnl Support Microsoft deprecated alias function names by default.
43038 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CHMOD], [1])
43039 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_MKDIR], [1])
43040 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_UMASK], [1])
43041 + ])
43042 + m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_STAT_H_MODULE_INDICATOR_DEFAULTS])
43043 + AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
43044 +])
43045 +
43046 AC_DEFUN([gl_SYS_STAT_H_DEFAULTS],
43047 [
43048 - AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) dnl for REPLACE_FCHDIR
43049 - GNULIB_FCHMODAT=0; AC_SUBST([GNULIB_FCHMODAT])
43050 - GNULIB_FSTAT=0; AC_SUBST([GNULIB_FSTAT])
43051 - GNULIB_FSTATAT=0; AC_SUBST([GNULIB_FSTATAT])
43052 - GNULIB_FUTIMENS=0; AC_SUBST([GNULIB_FUTIMENS])
43053 - GNULIB_LCHMOD=0; AC_SUBST([GNULIB_LCHMOD])
43054 - GNULIB_LSTAT=0; AC_SUBST([GNULIB_LSTAT])
43055 - GNULIB_MKDIRAT=0; AC_SUBST([GNULIB_MKDIRAT])
43056 - GNULIB_MKFIFO=0; AC_SUBST([GNULIB_MKFIFO])
43057 - GNULIB_MKFIFOAT=0; AC_SUBST([GNULIB_MKFIFOAT])
43058 - GNULIB_MKNOD=0; AC_SUBST([GNULIB_MKNOD])
43059 - GNULIB_MKNODAT=0; AC_SUBST([GNULIB_MKNODAT])
43060 - GNULIB_STAT=0; AC_SUBST([GNULIB_STAT])
43061 - GNULIB_UTIMENSAT=0; AC_SUBST([GNULIB_UTIMENSAT])
43062 - GNULIB_OVERRIDES_STRUCT_STAT=0; AC_SUBST([GNULIB_OVERRIDES_STRUCT_STAT])
43063 dnl Assume proper GNU behavior unless another module says otherwise.
43064 HAVE_FCHMODAT=1; AC_SUBST([HAVE_FCHMODAT])
43065 HAVE_FSTATAT=1; AC_SUBST([HAVE_FSTATAT])
43066 HAVE_FUTIMENS=1; AC_SUBST([HAVE_FUTIMENS])
43067 + HAVE_GETUMASK=1; AC_SUBST([HAVE_GETUMASK])
43068 HAVE_LCHMOD=1; AC_SUBST([HAVE_LCHMOD])
43069 HAVE_LSTAT=1; AC_SUBST([HAVE_LSTAT])
43070 HAVE_MKDIRAT=1; AC_SUBST([HAVE_MKDIRAT])
43071 @@ -88,13 +112,16 @@ AC_DEFUN([gl_SYS_STAT_H_DEFAULTS],
43072 HAVE_MKNOD=1; AC_SUBST([HAVE_MKNOD])
43073 HAVE_MKNODAT=1; AC_SUBST([HAVE_MKNODAT])
43074 HAVE_UTIMENSAT=1; AC_SUBST([HAVE_UTIMENSAT])
43075 + REPLACE_FCHMODAT=0; AC_SUBST([REPLACE_FCHMODAT])
43076 REPLACE_FSTAT=0; AC_SUBST([REPLACE_FSTAT])
43077 REPLACE_FSTATAT=0; AC_SUBST([REPLACE_FSTATAT])
43078 REPLACE_FUTIMENS=0; AC_SUBST([REPLACE_FUTIMENS])
43079 REPLACE_LSTAT=0; AC_SUBST([REPLACE_LSTAT])
43080 REPLACE_MKDIR=0; AC_SUBST([REPLACE_MKDIR])
43081 REPLACE_MKFIFO=0; AC_SUBST([REPLACE_MKFIFO])
43082 + REPLACE_MKFIFOAT=0; AC_SUBST([REPLACE_MKFIFOAT])
43083 REPLACE_MKNOD=0; AC_SUBST([REPLACE_MKNOD])
43084 + REPLACE_MKNODAT=0; AC_SUBST([REPLACE_MKNODAT])
43085 REPLACE_STAT=0; AC_SUBST([REPLACE_STAT])
43086 REPLACE_UTIMENSAT=0; AC_SUBST([REPLACE_UTIMENSAT])
43087 ])
43088
43089 diff --git a/autotools/m4/sys_time_h.m4 b/autotools/m4/sys_time_h.m4
43090 index 3d9233a..bc5e2b1 100644
43091 --- a/autotools/m4/sys_time_h.m4
43092 +++ b/autotools/m4/sys_time_h.m4
43093 @@ -1,25 +1,20 @@
43094 # Configure a replacement for <sys/time.h>.
43095 -# serial 9
43096 +# serial 12
43097
43098 -# Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
43099 +# Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
43100 # This file is free software; the Free Software Foundation
43101 # gives unlimited permission to copy and/or distribute it,
43102 # with or without modifications, as long as this notice is preserved.
43103
43104 # Written by Paul Eggert and Martin Lambers.
43105
43106 -AC_DEFUN([gl_HEADER_SYS_TIME_H],
43107 +AC_DEFUN_ONCE([gl_SYS_TIME_H],
43108 [
43109 dnl Use AC_REQUIRE here, so that the REPLACE_GETTIMEOFDAY=0 statement
43110 dnl below is expanded once only, before all REPLACE_GETTIMEOFDAY=1
43111 dnl statements that occur in other macros.
43112 - AC_REQUIRE([gl_HEADER_SYS_TIME_H_BODY])
43113 -])
43114 -
43115 -AC_DEFUN([gl_HEADER_SYS_TIME_H_BODY],
43116 -[
43117 + AC_REQUIRE([gl_SYS_TIME_H_DEFAULTS])
43118 AC_REQUIRE([AC_C_RESTRICT])
43119 - AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS])
43120 AC_CHECK_HEADERS_ONCE([sys/time.h])
43121 gl_CHECK_NEXT_HEADERS([sys/time.h])
43122
43123 @@ -89,18 +84,33 @@ AC_DEFUN([gl_HEADER_SYS_TIME_H_BODY],
43124 ]], [gettimeofday])
43125 ])
43126
43127 +# gl_SYS_TIME_MODULE_INDICATOR([modulename])
43128 +# sets the shell variable that indicates the presence of the given module
43129 +# to a C preprocessor expression that will evaluate to 1.
43130 +# This macro invocation must not occur in macros that are AC_REQUIREd.
43131 AC_DEFUN([gl_SYS_TIME_MODULE_INDICATOR],
43132 [
43133 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
43134 - AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS])
43135 + dnl Ensure to expand the default settings once only.
43136 + gl_SYS_TIME_H_REQUIRE_DEFAULTS
43137 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
43138 dnl Define it also as a C macro, for the benefit of the unit tests.
43139 gl_MODULE_INDICATOR_FOR_TESTS([$1])
43140 ])
43141
43142 -AC_DEFUN([gl_HEADER_SYS_TIME_H_DEFAULTS],
43143 +# Initializes the default values for AC_SUBSTed shell variables.
43144 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
43145 +# outside of macros or in macros that are not AC_REQUIREd.
43146 +AC_DEFUN([gl_SYS_TIME_H_REQUIRE_DEFAULTS],
43147 +[
43148 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_TIME_H_MODULE_INDICATOR_DEFAULTS], [
43149 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETTIMEOFDAY])
43150 + ])
43151 + m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_TIME_H_MODULE_INDICATOR_DEFAULTS])
43152 + AC_REQUIRE([gl_SYS_TIME_H_DEFAULTS])
43153 +])
43154 +
43155 +AC_DEFUN([gl_SYS_TIME_H_DEFAULTS],
43156 [
43157 - GNULIB_GETTIMEOFDAY=0; AC_SUBST([GNULIB_GETTIMEOFDAY])
43158 dnl Assume POSIX behavior unless another module says otherwise.
43159 HAVE_GETTIMEOFDAY=1; AC_SUBST([HAVE_GETTIMEOFDAY])
43160 HAVE_STRUCT_TIMEVAL=1; AC_SUBST([HAVE_STRUCT_TIMEVAL])
43161
43162 diff --git a/autotools/m4/sys_types_h.m4 b/autotools/m4/sys_types_h.m4
43163 index be06559..a5bef22 100644
43164 --- a/autotools/m4/sys_types_h.m4
43165 +++ b/autotools/m4/sys_types_h.m4
43166 @@ -1,15 +1,16 @@
43167 -# sys_types_h.m4 serial 9
43168 -dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
43169 +# sys_types_h.m4 serial 13
43170 +dnl Copyright (C) 2011-2022 Free Software Foundation, Inc.
43171 dnl This file is free software; the Free Software Foundation
43172 dnl gives unlimited permission to copy and/or distribute it,
43173 dnl with or without modifications, as long as this notice is preserved.
43174
43175 AC_DEFUN_ONCE([gl_SYS_TYPES_H],
43176 [
43177 + AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS])
43178 +
43179 dnl Use sane struct stat types in OpenVMS 8.2 and later.
43180 AC_DEFINE([_USE_STD_STAT], 1, [For standard stat data types on VMS.])
43181
43182 - AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS])
43183 gl_NEXT_HEADERS([sys/types.h])
43184
43185 dnl Ensure the type pid_t gets defined.
43186 @@ -30,31 +31,40 @@ AC_DEFUN_ONCE([gl_SYS_TYPES_H],
43187 AC_SUBST([WINDOWS_STAT_INODES])
43188 ])
43189
43190 +# Initializes the default values for AC_SUBSTed shell variables.
43191 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
43192 +# outside of macros or in macros that are not AC_REQUIREd.
43193 +AC_DEFUN([gl_SYS_TYPES_H_REQUIRE_DEFAULTS],
43194 +[
43195 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_TYPE_H_MODULE_INDICATOR_DEFAULTS], [
43196 + ])
43197 + m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_TYPE_H_MODULE_INDICATOR_DEFAULTS])
43198 + AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS])
43199 +])
43200 +
43201 AC_DEFUN([gl_SYS_TYPES_H_DEFAULTS],
43202 [
43203 ])
43204
43205 # This works around a buggy version in autoconf <= 2.69.
43206 # See <https://lists.gnu.org/r/autoconf/2016-08/msg00014.html>
43207 +# The 2.70 version isn't quoted properly, so override it too.
43208
43209 -m4_version_prereq([2.70], [], [
43210 -
43211 -# This is taken from the following Autoconf patch:
43212 -# https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=e17a30e987d7ee695fb4294a82d987ec3dc9b974
43213 +m4_version_prereq([2.70.1], [], [
43214
43215 m4_undefine([AC_HEADER_MAJOR])
43216 AC_DEFUN([AC_HEADER_MAJOR],
43217 [AC_CHECK_HEADERS_ONCE([sys/types.h])
43218 AC_CHECK_HEADER([sys/mkdev.h],
43219 - [AC_DEFINE([MAJOR_IN_MKDEV], [1],
43220 - [Define to 1 if `major', `minor', and `makedev' are declared in
43221 - <mkdev.h>.])])
43222 + [AC_DEFINE([MAJOR_IN_MKDEV], [1],
43223 + [Define to 1 if `major', `minor', and `makedev' are
43224 + declared in <mkdev.h>.])])
43225 if test $ac_cv_header_sys_mkdev_h = no; then
43226 AC_CHECK_HEADER([sys/sysmacros.h],
43227 - [AC_DEFINE([MAJOR_IN_SYSMACROS], [1],
43228 - [Define to 1 if `major', `minor', and `makedev' are declared in
43229 - <sysmacros.h>.])])
43230 + [AC_DEFINE([MAJOR_IN_SYSMACROS], [1],
43231 + [Define to 1 if `major', `minor', and `makedev'
43232 + are declared in <sysmacros.h>.])])
43233 fi
43234 -])
43235 +])# AC_HEADER_MAJOR
43236
43237 ])
43238
43239 diff --git a/autotools/m4/time_h.m4 b/autotools/m4/time_h.m4
43240 index f08f29b..98d7b6e 100644
43241 --- a/autotools/m4/time_h.m4
43242 +++ b/autotools/m4/time_h.m4
43243 @@ -1,8 +1,8 @@
43244 # Configure a more-standard replacement for <time.h>.
43245
43246 -# Copyright (C) 2000-2001, 2003-2007, 2009-2019 Free Software Foundation, Inc.
43247 +# Copyright (C) 2000-2001, 2003-2007, 2009-2022 Free Software Foundation, Inc.
43248
43249 -# serial 11
43250 +# serial 19
43251
43252 # This file is free software; the Free Software Foundation
43253 # gives unlimited permission to copy and/or distribute it,
43254 @@ -10,19 +10,32 @@
43255
43256 # Written by Paul Eggert and Jim Meyering.
43257
43258 -AC_DEFUN([gl_HEADER_TIME_H],
43259 +AC_DEFUN_ONCE([gl_TIME_H],
43260 [
43261 - dnl Use AC_REQUIRE here, so that the default behavior below is expanded
43262 - dnl once only, before all statements that occur in other macros.
43263 - AC_REQUIRE([gl_HEADER_TIME_H_BODY])
43264 -])
43265 + dnl Ensure to expand the default settings once only, before all statements
43266 + dnl that occur in other macros.
43267 + AC_REQUIRE([gl_TIME_H_DEFAULTS])
43268
43269 -AC_DEFUN([gl_HEADER_TIME_H_BODY],
43270 -[
43271 - AC_REQUIRE([AC_C_RESTRICT])
43272 - AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS])
43273 gl_NEXT_HEADERS([time.h])
43274 AC_REQUIRE([gl_CHECK_TYPE_STRUCT_TIMESPEC])
43275 +
43276 + AC_REQUIRE([AC_C_RESTRICT])
43277 +
43278 + AC_CACHE_CHECK([for TIME_UTC in <time.h>],
43279 + [gl_cv_time_h_has_TIME_UTC],
43280 + [AC_COMPILE_IFELSE(
43281 + [AC_LANG_PROGRAM(
43282 + [[#include <time.h>
43283 + ]],
43284 + [[static int x = TIME_UTC; x++;]])],
43285 + [gl_cv_time_h_has_TIME_UTC=yes],
43286 + [gl_cv_time_h_has_TIME_UTC=no])])
43287 + if test $gl_cv_time_h_has_TIME_UTC = yes; then
43288 + TIME_H_DEFINES_TIME_UTC=1
43289 + else
43290 + TIME_H_DEFINES_TIME_UTC=0
43291 + fi
43292 + AC_SUBST([TIME_H_DEFINES_TIME_UTC])
43293 ])
43294
43295 dnl Check whether 'struct timespec' is declared
43296 @@ -93,33 +106,53 @@ AC_DEFUN([gl_CHECK_TYPE_STRUCT_TIMESPEC],
43297 AC_SUBST([UNISTD_H_DEFINES_STRUCT_TIMESPEC])
43298 ])
43299
43300 +# gl_TIME_MODULE_INDICATOR([modulename])
43301 +# sets the shell variable that indicates the presence of the given module
43302 +# to a C preprocessor expression that will evaluate to 1.
43303 +# This macro invocation must not occur in macros that are AC_REQUIREd.
43304 AC_DEFUN([gl_TIME_MODULE_INDICATOR],
43305 [
43306 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
43307 - AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS])
43308 + dnl Ensure to expand the default settings once only.
43309 + gl_TIME_H_REQUIRE_DEFAULTS
43310 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
43311 dnl Define it also as a C macro, for the benefit of the unit tests.
43312 gl_MODULE_INDICATOR_FOR_TESTS([$1])
43313 ])
43314
43315 -AC_DEFUN([gl_HEADER_TIME_H_DEFAULTS],
43316 +# Initializes the default values for AC_SUBSTed shell variables.
43317 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
43318 +# outside of macros or in macros that are not AC_REQUIREd.
43319 +AC_DEFUN([gl_TIME_H_REQUIRE_DEFAULTS],
43320 +[
43321 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_TIME_H_MODULE_INDICATOR_DEFAULTS], [
43322 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CTIME])
43323 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MKTIME])
43324 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LOCALTIME])
43325 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_NANOSLEEP])
43326 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRFTIME])
43327 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_STRPTIME])
43328 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMEGM])
43329 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMESPEC_GET])
43330 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIMESPEC_GETRES])
43331 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_R])
43332 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TIME_RZ])
43333 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TZSET])
43334 + dnl Support Microsoft deprecated alias function names by default.
43335 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_TZSET], [1])
43336 + ])
43337 + m4_require(GL_MODULE_INDICATOR_PREFIX[_TIME_H_MODULE_INDICATOR_DEFAULTS])
43338 + AC_REQUIRE([gl_TIME_H_DEFAULTS])
43339 +])
43340 +
43341 +AC_DEFUN([gl_TIME_H_DEFAULTS],
43342 [
43343 - GNULIB_CTIME=0; AC_SUBST([GNULIB_CTIME])
43344 - GNULIB_MKTIME=0; AC_SUBST([GNULIB_MKTIME])
43345 - GNULIB_LOCALTIME=0; AC_SUBST([GNULIB_LOCALTIME])
43346 - GNULIB_NANOSLEEP=0; AC_SUBST([GNULIB_NANOSLEEP])
43347 - GNULIB_STRFTIME=0; AC_SUBST([GNULIB_STRFTIME])
43348 - GNULIB_STRPTIME=0; AC_SUBST([GNULIB_STRPTIME])
43349 - GNULIB_TIMEGM=0; AC_SUBST([GNULIB_TIMEGM])
43350 - GNULIB_TIME_R=0; AC_SUBST([GNULIB_TIME_R])
43351 - GNULIB_TIME_RZ=0; AC_SUBST([GNULIB_TIME_RZ])
43352 - GNULIB_TZSET=0; AC_SUBST([GNULIB_TZSET])
43353 dnl Assume proper GNU behavior unless another module says otherwise.
43354 HAVE_DECL_LOCALTIME_R=1; AC_SUBST([HAVE_DECL_LOCALTIME_R])
43355 HAVE_NANOSLEEP=1; AC_SUBST([HAVE_NANOSLEEP])
43356 HAVE_STRPTIME=1; AC_SUBST([HAVE_STRPTIME])
43357 HAVE_TIMEGM=1; AC_SUBST([HAVE_TIMEGM])
43358 - HAVE_TZSET=1; AC_SUBST([HAVE_TZSET])
43359 + HAVE_TIMESPEC_GET=1; AC_SUBST([HAVE_TIMESPEC_GET])
43360 + HAVE_TIMESPEC_GETRES=1; AC_SUBST([HAVE_TIMESPEC_GETRES])
43361 dnl Even GNU libc does not have timezone_t yet.
43362 HAVE_TIMEZONE_T=0; AC_SUBST([HAVE_TIMEZONE_T])
43363 dnl If another module says to replace or to not replace, do that.
43364
43365 diff --git a/autotools/m4/timespec.m4 b/autotools/m4/timespec.m4
43366 index 3db9943..6a1afef 100644
43367 --- a/autotools/m4/timespec.m4
43368 +++ b/autotools/m4/timespec.m4
43369 @@ -1,6 +1,6 @@
43370 #serial 15
43371
43372 -# Copyright (C) 2000-2001, 2003-2007, 2009-2019 Free Software Foundation, Inc.
43373 +# Copyright (C) 2000-2001, 2003-2007, 2009-2022 Free Software Foundation, Inc.
43374
43375 # This file is free software; the Free Software Foundation
43376 # gives unlimited permission to copy and/or distribute it,
43377
43378 diff --git a/autotools/m4/unistd-safer.m4 b/autotools/m4/unistd-safer.m4
43379 index 5e2a1be..33158a4 100644
43380 --- a/autotools/m4/unistd-safer.m4
43381 +++ b/autotools/m4/unistd-safer.m4
43382 @@ -1,5 +1,5 @@
43383 #serial 9
43384 -dnl Copyright (C) 2002, 2005-2006, 2009-2019 Free Software Foundation, Inc.
43385 +dnl Copyright (C) 2002, 2005-2006, 2009-2022 Free Software Foundation, Inc.
43386 dnl This file is free software; the Free Software Foundation
43387 dnl gives unlimited permission to copy and/or distribute it,
43388 dnl with or without modifications, as long as this notice is preserved.
43389
43390 diff --git a/autotools/m4/unistd_h.m4 b/autotools/m4/unistd_h.m4
43391 index a04055d..4c66ccc 100644
43392 --- a/autotools/m4/unistd_h.m4
43393 +++ b/autotools/m4/unistd_h.m4
43394 @@ -1,15 +1,15 @@
43395 -# unistd_h.m4 serial 74
43396 -dnl Copyright (C) 2006-2019 Free Software Foundation, Inc.
43397 +# unistd_h.m4 serial 90
43398 +dnl Copyright (C) 2006-2022 Free Software Foundation, Inc.
43399 dnl This file is free software; the Free Software Foundation
43400 dnl gives unlimited permission to copy and/or distribute it,
43401 dnl with or without modifications, as long as this notice is preserved.
43402
43403 dnl Written by Simon Josefsson, Bruno Haible.
43404
43405 -AC_DEFUN([gl_UNISTD_H],
43406 +AC_DEFUN_ONCE([gl_UNISTD_H],
43407 [
43408 - dnl Use AC_REQUIRE here, so that the default behavior below is expanded
43409 - dnl once only, before all statements that occur in other macros.
43410 + dnl Ensure to expand the default settings once only, before all statements
43411 + dnl that occur in other macros.
43412 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
43413
43414 gl_CHECK_NEXT_HEADERS([unistd.h])
43415 @@ -41,157 +41,230 @@ AC_DEFUN([gl_UNISTD_H],
43416 # include <io.h>
43417 # endif
43418 #endif
43419 - ]], [chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat
43420 - fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups
43421 - gethostname getlogin getlogin_r getpagesize getpass
43422 + ]], [access chdir chown copy_file_range dup dup2 dup3 environ euidaccess
43423 + execl execle execlp execv execve execvp execvpe
43424 + faccessat fchdir
43425 + fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize
43426 + getentropy getgroups gethostname getlogin getlogin_r getpagesize getpass
43427 getusershell setusershell endusershell
43428 group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite
43429 readlink readlinkat rmdir sethostname sleep symlink symlinkat
43430 truncate ttyname_r unlink unlinkat usleep])
43431 +
43432 + AC_REQUIRE([AC_C_RESTRICT])
43433 +
43434 + AC_CHECK_DECLS_ONCE([execvpe])
43435 + if test $ac_cv_have_decl_execvpe = no; then
43436 + HAVE_DECL_EXECVPE=0
43437 + fi
43438 ])
43439
43440 +# gl_UNISTD_MODULE_INDICATOR([modulename])
43441 +# sets the shell variable that indicates the presence of the given module
43442 +# to a C preprocessor expression that will evaluate to 1.
43443 +# This macro invocation must not occur in macros that are AC_REQUIREd.
43444 AC_DEFUN([gl_UNISTD_MODULE_INDICATOR],
43445 [
43446 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
43447 - AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
43448 + dnl Ensure to expand the default settings once only.
43449 + gl_UNISTD_H_REQUIRE_DEFAULTS
43450 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
43451 dnl Define it also as a C macro, for the benefit of the unit tests.
43452 gl_MODULE_INDICATOR_FOR_TESTS([$1])
43453 ])
43454
43455 +# Initializes the default values for AC_SUBSTed shell variables.
43456 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
43457 +# outside of macros or in macros that are not AC_REQUIREd.
43458 +AC_DEFUN([gl_UNISTD_H_REQUIRE_DEFAULTS],
43459 +[
43460 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_UNISTD_H_MODULE_INDICATOR_DEFAULTS], [
43461 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ACCESS])
43462 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CHDIR])
43463 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CHOWN])
43464 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_CLOSE])
43465 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_COPY_FILE_RANGE])
43466 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_DUP])
43467 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_DUP2])
43468 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_DUP3])
43469 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ENVIRON])
43470 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EUIDACCESS])
43471 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECL])
43472 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECLE])
43473 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECLP])
43474 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECV])
43475 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECVE])
43476 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECVP])
43477 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_EXECVPE])
43478 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FACCESSAT])
43479 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCHDIR])
43480 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FCHOWNAT])
43481 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FDATASYNC])
43482 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FSYNC])
43483 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_FTRUNCATE])
43484 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETCWD])
43485 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETDOMAINNAME])
43486 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETDTABLESIZE])
43487 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETENTROPY])
43488 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETGROUPS])
43489 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETHOSTNAME])
43490 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETLOGIN])
43491 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETLOGIN_R])
43492 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETOPT_POSIX])
43493 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPAGESIZE])
43494 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPASS])
43495 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETPASS_GNU])
43496 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GETUSERSHELL])
43497 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_GROUP_MEMBER])
43498 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_ISATTY])
43499 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LCHOWN])
43500 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LINK])
43501 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LINKAT])
43502 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_LSEEK])
43503 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PIPE])
43504 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PIPE2])
43505 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PREAD])
43506 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_PWRITE])
43507 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_READ])
43508 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_READLINK])
43509 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_READLINKAT])
43510 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_RMDIR])
43511 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SETHOSTNAME])
43512 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SLEEP])
43513 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SYMLINK])
43514 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_SYMLINKAT])
43515 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TRUNCATE])
43516 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_TTYNAME_R])
43517 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT])
43518 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_NONBLOCKING])
43519 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_SIGPIPE])
43520 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNLINK])
43521 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNLINKAT])
43522 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_USLEEP])
43523 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WRITE])
43524 + dnl Support Microsoft deprecated alias function names by default.
43525 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_ACCESS], [1])
43526 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CHDIR], [1])
43527 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_CLOSE], [1])
43528 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_DUP], [1])
43529 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_DUP2], [1])
43530 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECL], [1])
43531 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECLE], [1])
43532 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECLP], [1])
43533 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECV], [1])
43534 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECVE], [1])
43535 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECVP], [1])
43536 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_EXECVPE], [1])
43537 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_GETCWD], [1])
43538 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_GETPID], [1])
43539 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_ISATTY], [1])
43540 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_LSEEK], [1])
43541 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_READ], [1])
43542 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_RMDIR], [1])
43543 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_SWAB], [1])
43544 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_UNLINK], [1])
43545 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_WRITE], [1])
43546 + ])
43547 + m4_require(GL_MODULE_INDICATOR_PREFIX[_UNISTD_H_MODULE_INDICATOR_DEFAULTS])
43548 + AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
43549 +])
43550 +
43551 AC_DEFUN([gl_UNISTD_H_DEFAULTS],
43552 [
43553 - GNULIB_CHDIR=0; AC_SUBST([GNULIB_CHDIR])
43554 - GNULIB_CHOWN=0; AC_SUBST([GNULIB_CHOWN])
43555 - GNULIB_CLOSE=0; AC_SUBST([GNULIB_CLOSE])
43556 - GNULIB_DUP=0; AC_SUBST([GNULIB_DUP])
43557 - GNULIB_DUP2=0; AC_SUBST([GNULIB_DUP2])
43558 - GNULIB_DUP3=0; AC_SUBST([GNULIB_DUP3])
43559 - GNULIB_ENVIRON=0; AC_SUBST([GNULIB_ENVIRON])
43560 - GNULIB_EUIDACCESS=0; AC_SUBST([GNULIB_EUIDACCESS])
43561 - GNULIB_FACCESSAT=0; AC_SUBST([GNULIB_FACCESSAT])
43562 - GNULIB_FCHDIR=0; AC_SUBST([GNULIB_FCHDIR])
43563 - GNULIB_FCHOWNAT=0; AC_SUBST([GNULIB_FCHOWNAT])
43564 - GNULIB_FDATASYNC=0; AC_SUBST([GNULIB_FDATASYNC])
43565 - GNULIB_FSYNC=0; AC_SUBST([GNULIB_FSYNC])
43566 - GNULIB_FTRUNCATE=0; AC_SUBST([GNULIB_FTRUNCATE])
43567 - GNULIB_GETCWD=0; AC_SUBST([GNULIB_GETCWD])
43568 - GNULIB_GETDOMAINNAME=0; AC_SUBST([GNULIB_GETDOMAINNAME])
43569 - GNULIB_GETDTABLESIZE=0; AC_SUBST([GNULIB_GETDTABLESIZE])
43570 - GNULIB_GETGROUPS=0; AC_SUBST([GNULIB_GETGROUPS])
43571 - GNULIB_GETHOSTNAME=0; AC_SUBST([GNULIB_GETHOSTNAME])
43572 - GNULIB_GETLOGIN=0; AC_SUBST([GNULIB_GETLOGIN])
43573 - GNULIB_GETLOGIN_R=0; AC_SUBST([GNULIB_GETLOGIN_R])
43574 - GNULIB_GETPAGESIZE=0; AC_SUBST([GNULIB_GETPAGESIZE])
43575 - GNULIB_GETPASS=0; AC_SUBST([GNULIB_GETPASS])
43576 - GNULIB_GETUSERSHELL=0; AC_SUBST([GNULIB_GETUSERSHELL])
43577 - GNULIB_GROUP_MEMBER=0; AC_SUBST([GNULIB_GROUP_MEMBER])
43578 - GNULIB_ISATTY=0; AC_SUBST([GNULIB_ISATTY])
43579 - GNULIB_LCHOWN=0; AC_SUBST([GNULIB_LCHOWN])
43580 - GNULIB_LINK=0; AC_SUBST([GNULIB_LINK])
43581 - GNULIB_LINKAT=0; AC_SUBST([GNULIB_LINKAT])
43582 - GNULIB_LSEEK=0; AC_SUBST([GNULIB_LSEEK])
43583 - GNULIB_PIPE=0; AC_SUBST([GNULIB_PIPE])
43584 - GNULIB_PIPE2=0; AC_SUBST([GNULIB_PIPE2])
43585 - GNULIB_PREAD=0; AC_SUBST([GNULIB_PREAD])
43586 - GNULIB_PWRITE=0; AC_SUBST([GNULIB_PWRITE])
43587 - GNULIB_READ=0; AC_SUBST([GNULIB_READ])
43588 - GNULIB_READLINK=0; AC_SUBST([GNULIB_READLINK])
43589 - GNULIB_READLINKAT=0; AC_SUBST([GNULIB_READLINKAT])
43590 - GNULIB_RMDIR=0; AC_SUBST([GNULIB_RMDIR])
43591 - GNULIB_SETHOSTNAME=0; AC_SUBST([GNULIB_SETHOSTNAME])
43592 - GNULIB_SLEEP=0; AC_SUBST([GNULIB_SLEEP])
43593 - GNULIB_SYMLINK=0; AC_SUBST([GNULIB_SYMLINK])
43594 - GNULIB_SYMLINKAT=0; AC_SUBST([GNULIB_SYMLINKAT])
43595 - GNULIB_TRUNCATE=0; AC_SUBST([GNULIB_TRUNCATE])
43596 - GNULIB_TTYNAME_R=0; AC_SUBST([GNULIB_TTYNAME_R])
43597 - GNULIB_UNISTD_H_NONBLOCKING=0; AC_SUBST([GNULIB_UNISTD_H_NONBLOCKING])
43598 - GNULIB_UNISTD_H_SIGPIPE=0; AC_SUBST([GNULIB_UNISTD_H_SIGPIPE])
43599 - GNULIB_UNLINK=0; AC_SUBST([GNULIB_UNLINK])
43600 - GNULIB_UNLINKAT=0; AC_SUBST([GNULIB_UNLINKAT])
43601 - GNULIB_USLEEP=0; AC_SUBST([GNULIB_USLEEP])
43602 - GNULIB_WRITE=0; AC_SUBST([GNULIB_WRITE])
43603 dnl Assume proper GNU behavior unless another module says otherwise.
43604 - HAVE_CHOWN=1; AC_SUBST([HAVE_CHOWN])
43605 - HAVE_DUP2=1; AC_SUBST([HAVE_DUP2])
43606 - HAVE_DUP3=1; AC_SUBST([HAVE_DUP3])
43607 - HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS])
43608 - HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT])
43609 - HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR])
43610 - HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT])
43611 - HAVE_FDATASYNC=1; AC_SUBST([HAVE_FDATASYNC])
43612 - HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC])
43613 - HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE])
43614 - HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE])
43615 - HAVE_GETGROUPS=1; AC_SUBST([HAVE_GETGROUPS])
43616 - HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME])
43617 - HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN])
43618 - HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE])
43619 - HAVE_GETPASS=1; AC_SUBST([HAVE_GETPASS])
43620 - HAVE_GROUP_MEMBER=1; AC_SUBST([HAVE_GROUP_MEMBER])
43621 - HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN])
43622 - HAVE_LINK=1; AC_SUBST([HAVE_LINK])
43623 - HAVE_LINKAT=1; AC_SUBST([HAVE_LINKAT])
43624 - HAVE_PIPE=1; AC_SUBST([HAVE_PIPE])
43625 - HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2])
43626 - HAVE_PREAD=1; AC_SUBST([HAVE_PREAD])
43627 - HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE])
43628 - HAVE_READLINK=1; AC_SUBST([HAVE_READLINK])
43629 - HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT])
43630 - HAVE_SETHOSTNAME=1; AC_SUBST([HAVE_SETHOSTNAME])
43631 - HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP])
43632 - HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK])
43633 - HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT])
43634 - HAVE_UNLINKAT=1; AC_SUBST([HAVE_UNLINKAT])
43635 - HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP])
43636 - HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON])
43637 - HAVE_DECL_FCHDIR=1; AC_SUBST([HAVE_DECL_FCHDIR])
43638 - HAVE_DECL_FDATASYNC=1; AC_SUBST([HAVE_DECL_FDATASYNC])
43639 - HAVE_DECL_GETDOMAINNAME=1; AC_SUBST([HAVE_DECL_GETDOMAINNAME])
43640 - HAVE_DECL_GETLOGIN=1; AC_SUBST([HAVE_DECL_GETLOGIN])
43641 - HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
43642 - HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE])
43643 - HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL])
43644 - HAVE_DECL_SETHOSTNAME=1; AC_SUBST([HAVE_DECL_SETHOSTNAME])
43645 - HAVE_DECL_TRUNCATE=1; AC_SUBST([HAVE_DECL_TRUNCATE])
43646 - HAVE_DECL_TTYNAME_R=1; AC_SUBST([HAVE_DECL_TTYNAME_R])
43647 - HAVE_OS_H=0; AC_SUBST([HAVE_OS_H])
43648 - HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H])
43649 - REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN])
43650 - REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE])
43651 - REPLACE_DUP=0; AC_SUBST([REPLACE_DUP])
43652 - REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2])
43653 - REPLACE_FACCESSAT=0; AC_SUBST([REPLACE_FACCESSAT])
43654 - REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT])
43655 - REPLACE_FTRUNCATE=0; AC_SUBST([REPLACE_FTRUNCATE])
43656 - REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD])
43657 - REPLACE_GETDOMAINNAME=0; AC_SUBST([REPLACE_GETDOMAINNAME])
43658 - REPLACE_GETDTABLESIZE=0; AC_SUBST([REPLACE_GETDTABLESIZE])
43659 - REPLACE_GETLOGIN_R=0; AC_SUBST([REPLACE_GETLOGIN_R])
43660 - REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS])
43661 - REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE])
43662 - REPLACE_GETPASS=0; AC_SUBST([REPLACE_GETPASS])
43663 - REPLACE_ISATTY=0; AC_SUBST([REPLACE_ISATTY])
43664 - REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN])
43665 - REPLACE_LINK=0; AC_SUBST([REPLACE_LINK])
43666 - REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT])
43667 - REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK])
43668 - REPLACE_PREAD=0; AC_SUBST([REPLACE_PREAD])
43669 - REPLACE_PWRITE=0; AC_SUBST([REPLACE_PWRITE])
43670 - REPLACE_READ=0; AC_SUBST([REPLACE_READ])
43671 - REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK])
43672 - REPLACE_READLINKAT=0; AC_SUBST([REPLACE_READLINKAT])
43673 - REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR])
43674 - REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP])
43675 - REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK])
43676 - REPLACE_SYMLINKAT=0; AC_SUBST([REPLACE_SYMLINKAT])
43677 - REPLACE_TRUNCATE=0; AC_SUBST([REPLACE_TRUNCATE])
43678 - REPLACE_TTYNAME_R=0; AC_SUBST([REPLACE_TTYNAME_R])
43679 - REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK])
43680 - REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT])
43681 - REPLACE_USLEEP=0; AC_SUBST([REPLACE_USLEEP])
43682 - REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE])
43683 - UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H])
43684 + HAVE_CHOWN=1; AC_SUBST([HAVE_CHOWN])
43685 + HAVE_COPY_FILE_RANGE=1; AC_SUBST([HAVE_COPY_FILE_RANGE])
43686 + HAVE_DUP3=1; AC_SUBST([HAVE_DUP3])
43687 + HAVE_EUIDACCESS=1; AC_SUBST([HAVE_EUIDACCESS])
43688 + HAVE_EXECVPE=1; AC_SUBST([HAVE_EXECVPE])
43689 + HAVE_FACCESSAT=1; AC_SUBST([HAVE_FACCESSAT])
43690 + HAVE_FCHDIR=1; AC_SUBST([HAVE_FCHDIR])
43691 + HAVE_FCHOWNAT=1; AC_SUBST([HAVE_FCHOWNAT])
43692 + HAVE_FDATASYNC=1; AC_SUBST([HAVE_FDATASYNC])
43693 + HAVE_FSYNC=1; AC_SUBST([HAVE_FSYNC])
43694 + HAVE_FTRUNCATE=1; AC_SUBST([HAVE_FTRUNCATE])
43695 + HAVE_GETDTABLESIZE=1; AC_SUBST([HAVE_GETDTABLESIZE])
43696 + HAVE_GETENTROPY=1; AC_SUBST([HAVE_GETENTROPY])
43697 + HAVE_GETGROUPS=1; AC_SUBST([HAVE_GETGROUPS])
43698 + HAVE_GETHOSTNAME=1; AC_SUBST([HAVE_GETHOSTNAME])
43699 + HAVE_GETLOGIN=1; AC_SUBST([HAVE_GETLOGIN])
43700 + HAVE_GETPAGESIZE=1; AC_SUBST([HAVE_GETPAGESIZE])
43701 + HAVE_GETPASS=1; AC_SUBST([HAVE_GETPASS])
43702 + HAVE_GROUP_MEMBER=1; AC_SUBST([HAVE_GROUP_MEMBER])
43703 + HAVE_LCHOWN=1; AC_SUBST([HAVE_LCHOWN])
43704 + HAVE_LINK=1; AC_SUBST([HAVE_LINK])
43705 + HAVE_LINKAT=1; AC_SUBST([HAVE_LINKAT])
43706 + HAVE_PIPE=1; AC_SUBST([HAVE_PIPE])
43707 + HAVE_PIPE2=1; AC_SUBST([HAVE_PIPE2])
43708 + HAVE_PREAD=1; AC_SUBST([HAVE_PREAD])
43709 + HAVE_PWRITE=1; AC_SUBST([HAVE_PWRITE])
43710 + HAVE_READLINK=1; AC_SUBST([HAVE_READLINK])
43711 + HAVE_READLINKAT=1; AC_SUBST([HAVE_READLINKAT])
43712 + HAVE_SETHOSTNAME=1; AC_SUBST([HAVE_SETHOSTNAME])
43713 + HAVE_SLEEP=1; AC_SUBST([HAVE_SLEEP])
43714 + HAVE_SYMLINK=1; AC_SUBST([HAVE_SYMLINK])
43715 + HAVE_SYMLINKAT=1; AC_SUBST([HAVE_SYMLINKAT])
43716 + HAVE_UNLINKAT=1; AC_SUBST([HAVE_UNLINKAT])
43717 + HAVE_USLEEP=1; AC_SUBST([HAVE_USLEEP])
43718 + HAVE_DECL_ENVIRON=1; AC_SUBST([HAVE_DECL_ENVIRON])
43719 + HAVE_DECL_EXECVPE=1; AC_SUBST([HAVE_DECL_EXECVPE])
43720 + HAVE_DECL_FCHDIR=1; AC_SUBST([HAVE_DECL_FCHDIR])
43721 + HAVE_DECL_FDATASYNC=1; AC_SUBST([HAVE_DECL_FDATASYNC])
43722 + HAVE_DECL_GETDOMAINNAME=1; AC_SUBST([HAVE_DECL_GETDOMAINNAME])
43723 + HAVE_DECL_GETLOGIN=1; AC_SUBST([HAVE_DECL_GETLOGIN])
43724 + HAVE_DECL_GETLOGIN_R=1; AC_SUBST([HAVE_DECL_GETLOGIN_R])
43725 + HAVE_DECL_GETPAGESIZE=1; AC_SUBST([HAVE_DECL_GETPAGESIZE])
43726 + HAVE_DECL_GETUSERSHELL=1; AC_SUBST([HAVE_DECL_GETUSERSHELL])
43727 + HAVE_DECL_SETHOSTNAME=1; AC_SUBST([HAVE_DECL_SETHOSTNAME])
43728 + HAVE_DECL_TRUNCATE=1; AC_SUBST([HAVE_DECL_TRUNCATE])
43729 + HAVE_DECL_TTYNAME_R=1; AC_SUBST([HAVE_DECL_TTYNAME_R])
43730 + HAVE_OS_H=0; AC_SUBST([HAVE_OS_H])
43731 + HAVE_SYS_PARAM_H=0; AC_SUBST([HAVE_SYS_PARAM_H])
43732 + REPLACE_ACCESS=0; AC_SUBST([REPLACE_ACCESS])
43733 + REPLACE_CHOWN=0; AC_SUBST([REPLACE_CHOWN])
43734 + REPLACE_CLOSE=0; AC_SUBST([REPLACE_CLOSE])
43735 + REPLACE_COPY_FILE_RANGE=0; AC_SUBST([REPLACE_COPY_FILE_RANGE])
43736 + REPLACE_DUP=0; AC_SUBST([REPLACE_DUP])
43737 + REPLACE_DUP2=0; AC_SUBST([REPLACE_DUP2])
43738 + REPLACE_EXECL=0; AC_SUBST([REPLACE_EXECL])
43739 + REPLACE_EXECLE=0; AC_SUBST([REPLACE_EXECLE])
43740 + REPLACE_EXECLP=0; AC_SUBST([REPLACE_EXECLP])
43741 + REPLACE_EXECV=0; AC_SUBST([REPLACE_EXECV])
43742 + REPLACE_EXECVE=0; AC_SUBST([REPLACE_EXECVE])
43743 + REPLACE_EXECVP=0; AC_SUBST([REPLACE_EXECVP])
43744 + REPLACE_EXECVPE=0; AC_SUBST([REPLACE_EXECVPE])
43745 + REPLACE_FACCESSAT=0; AC_SUBST([REPLACE_FACCESSAT])
43746 + REPLACE_FCHOWNAT=0; AC_SUBST([REPLACE_FCHOWNAT])
43747 + REPLACE_FTRUNCATE=0; AC_SUBST([REPLACE_FTRUNCATE])
43748 + REPLACE_GETCWD=0; AC_SUBST([REPLACE_GETCWD])
43749 + REPLACE_GETDOMAINNAME=0; AC_SUBST([REPLACE_GETDOMAINNAME])
43750 + REPLACE_GETDTABLESIZE=0; AC_SUBST([REPLACE_GETDTABLESIZE])
43751 + REPLACE_GETLOGIN_R=0; AC_SUBST([REPLACE_GETLOGIN_R])
43752 + REPLACE_GETGROUPS=0; AC_SUBST([REPLACE_GETGROUPS])
43753 + REPLACE_GETPAGESIZE=0; AC_SUBST([REPLACE_GETPAGESIZE])
43754 + REPLACE_GETPASS=0; AC_SUBST([REPLACE_GETPASS])
43755 + REPLACE_GETPASS_FOR_GETPASS_GNU=0; AC_SUBST([REPLACE_GETPASS_FOR_GETPASS_GNU])
43756 + REPLACE_ISATTY=0; AC_SUBST([REPLACE_ISATTY])
43757 + REPLACE_LCHOWN=0; AC_SUBST([REPLACE_LCHOWN])
43758 + REPLACE_LINK=0; AC_SUBST([REPLACE_LINK])
43759 + REPLACE_LINKAT=0; AC_SUBST([REPLACE_LINKAT])
43760 + REPLACE_LSEEK=0; AC_SUBST([REPLACE_LSEEK])
43761 + REPLACE_PREAD=0; AC_SUBST([REPLACE_PREAD])
43762 + REPLACE_PWRITE=0; AC_SUBST([REPLACE_PWRITE])
43763 + REPLACE_READ=0; AC_SUBST([REPLACE_READ])
43764 + REPLACE_READLINK=0; AC_SUBST([REPLACE_READLINK])
43765 + REPLACE_READLINKAT=0; AC_SUBST([REPLACE_READLINKAT])
43766 + REPLACE_RMDIR=0; AC_SUBST([REPLACE_RMDIR])
43767 + REPLACE_SLEEP=0; AC_SUBST([REPLACE_SLEEP])
43768 + REPLACE_SYMLINK=0; AC_SUBST([REPLACE_SYMLINK])
43769 + REPLACE_SYMLINKAT=0; AC_SUBST([REPLACE_SYMLINKAT])
43770 + REPLACE_TRUNCATE=0; AC_SUBST([REPLACE_TRUNCATE])
43771 + REPLACE_TTYNAME_R=0; AC_SUBST([REPLACE_TTYNAME_R])
43772 + REPLACE_UNLINK=0; AC_SUBST([REPLACE_UNLINK])
43773 + REPLACE_UNLINKAT=0; AC_SUBST([REPLACE_UNLINKAT])
43774 + REPLACE_USLEEP=0; AC_SUBST([REPLACE_USLEEP])
43775 + REPLACE_WRITE=0; AC_SUBST([REPLACE_WRITE])
43776 + UNISTD_H_HAVE_SYS_RANDOM_H=0; AC_SUBST([UNISTD_H_HAVE_SYS_RANDOM_H])
43777 + UNISTD_H_HAVE_WINSOCK2_H=0; AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H])
43778 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
43779 AC_SUBST([UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS])
43780 ])
43781
43782 diff --git a/autotools/m4/unlink.m4 b/autotools/m4/unlink.m4
43783 index 69fd1af..e25b567 100644
43784 --- a/autotools/m4/unlink.m4
43785 +++ b/autotools/m4/unlink.m4
43786 @@ -1,5 +1,5 @@
43787 -# unlink.m4 serial 13
43788 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
43789 +# unlink.m4 serial 15
43790 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
43791 dnl This file is free software; the Free Software Foundation
43792 dnl gives unlimited permission to copy and/or distribute it,
43793 dnl with or without modifications, as long as this notice is preserved.
43794 @@ -26,7 +26,7 @@ AC_DEFUN([gl_FUNC_UNLINK],
43795 # include <io.h>
43796 #endif
43797 #include <errno.h>
43798 - ]],
43799 + ]GL_MDA_DEFINES],
43800 [[int result = 0;
43801 if (!unlink ("conftest.file/"))
43802 result |= 1;
43803 @@ -49,8 +49,8 @@ AC_DEFUN([gl_FUNC_UNLINK],
43804 *-gnu*) gl_cv_func_unlink_honors_slashes="guessing yes" ;;
43805 # Guess no on native Windows.
43806 mingw*) gl_cv_func_unlink_honors_slashes="guessing no" ;;
43807 - # If we don't know, assume the worst.
43808 - *) gl_cv_func_unlink_honors_slashes="guessing no" ;;
43809 + # If we don't know, obey --enable-cross-guesses.
43810 + *) gl_cv_func_unlink_honors_slashes="$gl_cross_guess_normal" ;;
43811 esac
43812 ])
43813 rm -f conftest.file conftest.lnk])
43814 @@ -98,6 +98,7 @@ AC_DEFUN([gl_FUNC_UNLINK],
43815 # include <direct.h>
43816 # include <io.h>
43817 #endif
43818 + ]GL_MDA_DEFINES[
43819 int main ()
43820 {
43821 int result = 0;
43822 @@ -110,8 +111,8 @@ AC_DEFUN([gl_FUNC_UNLINK],
43823 ]])],
43824 [gl_cv_func_unlink_parent_fails=yes],
43825 [gl_cv_func_unlink_parent_fails=no],
43826 - [# If we don't know, assume the worst.
43827 - gl_cv_func_unlink_parent_fails="guessing no"
43828 + [# If we don't know, obey --enable-cross-guesses.
43829 + gl_cv_func_unlink_parent_fails="$gl_cross_guess_normal"
43830 ])
43831 unset GL_SUBDIR_FOR_UNLINK
43832 rm -rf "$tmp"
43833
43834 diff --git a/autotools/m4/unlinkat.m4 b/autotools/m4/unlinkat.m4
43835 index 8a1e275..55af07d 100644
43836 --- a/autotools/m4/unlinkat.m4
43837 +++ b/autotools/m4/unlinkat.m4
43838 @@ -1,5 +1,5 @@
43839 # unlinkat.m4 serial 2
43840 -dnl Copyright (C) 2004-2019 Free Software Foundation, Inc.
43841 +dnl Copyright (C) 2004-2022 Free Software Foundation, Inc.
43842 dnl This file is free software; the Free Software Foundation
43843 dnl gives unlimited permission to copy and/or distribute it,
43844 dnl with or without modifications, as long as this notice is preserved.
43845
43846 diff --git a/autotools/m4/utime.m4 b/autotools/m4/utime.m4
43847 index ddd4ee1..d73e8aa 100644
43848 --- a/autotools/m4/utime.m4
43849 +++ b/autotools/m4/utime.m4
43850 @@ -1,5 +1,5 @@
43851 -# utime.m4 serial 1
43852 -dnl Copyright (C) 2017-2019 Free Software Foundation, Inc.
43853 +# utime.m4 serial 4
43854 +dnl Copyright (C) 2017-2022 Free Software Foundation, Inc.
43855 dnl This file is free software; the Free Software Foundation
43856 dnl gives unlimited permission to copy and/or distribute it,
43857 dnl with or without modifications, as long as this notice is preserved.
43858 @@ -8,18 +8,68 @@ AC_DEFUN([gl_FUNC_UTIME],
43859 [
43860 AC_REQUIRE([gl_UTIME_H_DEFAULTS])
43861 AC_REQUIRE([AC_CANONICAL_HOST])
43862 - AC_CHECK_FUNCS_ONCE([utime])
43863 - if test $ac_cv_func_utime = no; then
43864 - HAVE_UTIME=0
43865 - else
43866 - case "$host_os" in
43867 - mingw*)
43868 - dnl On this platform, the original utime() or _utime() produces
43869 - dnl timestamps that are affected by the time zone.
43870 - REPLACE_UTIME=1
43871 - ;;
43872 - esac
43873 - fi
43874 + AC_CHECK_FUNCS_ONCE([lstat])
43875 + case "$host_os" in
43876 + mingw*)
43877 + dnl On this platform, the original utime() or _utime() produces
43878 + dnl timestamps that are affected by the time zone.
43879 + dnl Use the function name 'rpl_utime' always, in order to avoid a
43880 + dnl possible conflict with the function name 'utime' from oldnames.lib
43881 + dnl (MSVC) or liboldnames.a (mingw).
43882 + REPLACE_UTIME=1
43883 + ;;
43884 + *)
43885 + AC_CHECK_FUNCS([utime])
43886 + if test $ac_cv_func_utime = no; then
43887 + HAVE_UTIME=0
43888 + else
43889 + dnl On macOS 10.13, utime("link-to-file/", NULL) mistakenly succeeds.
43890 + AC_CACHE_CHECK([whether utime handles trailing slashes on files],
43891 + [gl_cv_func_utime_file_slash],
43892 + [touch conftest.tmp
43893 + # Assume that if we have lstat, we can also check symlinks.
43894 + if test $ac_cv_func_lstat = yes; then
43895 + ln -s conftest.tmp conftest.lnk
43896 + fi
43897 + AC_RUN_IFELSE(
43898 + [AC_LANG_PROGRAM(
43899 + [[#include <stddef.h>
43900 + #include <utime.h>
43901 + ]],
43902 + [[int result = 0;
43903 + if (!utime ("conftest.tmp/", NULL))
43904 + result |= 1;
43905 + #if HAVE_LSTAT
43906 + if (!utime ("conftest.lnk/", NULL))
43907 + result |= 2;
43908 + #endif
43909 + return result;
43910 + ]])],
43911 + [gl_cv_func_utime_file_slash=yes],
43912 + [gl_cv_func_utime_file_slash=no],
43913 + [case "$host_os" in
43914 + # Guess yes on Linux systems.
43915 + linux-* | linux) gl_cv_func_utime_file_slash="guessing yes" ;;
43916 + # Guess yes on glibc systems.
43917 + *-gnu* | gnu*) gl_cv_func_utime_file_slash="guessing yes" ;;
43918 + # Guess no on macOS.
43919 + darwin*) gl_cv_func_utime_file_slash="guessing no" ;;
43920 + # If we don't know, obey --enable-cross-guesses.
43921 + *) gl_cv_func_utime_file_slash="$gl_cross_guess_normal" ;;
43922 + esac
43923 + ])
43924 + rm -f conftest.tmp conftest.lnk
43925 + ])
43926 + case $gl_cv_func_stat_file_slash in
43927 + *no)
43928 + REPLACE_UTIME=1
43929 + AC_DEFINE([REPLACE_FUNC_UTIME_FILE], [1],
43930 + [Define to 1 if utime needs help when passed a file name with a trailing slash])
43931 + ;;
43932 + esac
43933 + fi
43934 + ;;
43935 + esac
43936 ])
43937
43938 # Prerequisites of lib/utime.c.
43939
43940 diff --git a/autotools/m4/utime_h.m4 b/autotools/m4/utime_h.m4
43941 index b0950d0..739ef11 100644
43942 --- a/autotools/m4/utime_h.m4
43943 +++ b/autotools/m4/utime_h.m4
43944 @@ -1,15 +1,15 @@
43945 -# utime_h.m4 serial 3
43946 -dnl Copyright (C) 2017-2019 Free Software Foundation, Inc.
43947 +# utime_h.m4 serial 8
43948 +dnl Copyright (C) 2017-2022 Free Software Foundation, Inc.
43949 dnl This file is free software; the Free Software Foundation
43950 dnl gives unlimited permission to copy and/or distribute it,
43951 dnl with or without modifications, as long as this notice is preserved.
43952
43953 dnl From Bruno Haible.
43954
43955 -AC_DEFUN([gl_UTIME_H],
43956 +AC_DEFUN_ONCE([gl_UTIME_H],
43957 [
43958 - AC_REQUIRE([AC_CANONICAL_HOST])
43959 AC_REQUIRE([gl_UTIME_H_DEFAULTS])
43960 + AC_REQUIRE([AC_CANONICAL_HOST])
43961 m4_ifdef([gl_ANSI_CXX], [AC_REQUIRE([gl_ANSI_CXX])])
43962 AC_CHECK_HEADERS_ONCE([utime.h])
43963 gl_CHECK_NEXT_HEADERS([utime.h])
43964 @@ -21,28 +21,6 @@ AC_DEFUN([gl_UTIME_H],
43965 fi
43966 AC_SUBST([HAVE_UTIME_H])
43967
43968 - m4_ifdef([gl_POSIXCHECK],
43969 - [UTIME_H=utime.h],
43970 - [UTIME_H=''
43971 - if m4_ifdef([gl_ANSI_CXX], [test "$CXX" != no], [false]); then
43972 - dnl Override <utime.h> always, to support the C++ GNULIB_NAMESPACE.
43973 - UTIME_H=utime.h
43974 - else
43975 - if test $ac_cv_header_utime_h != yes; then
43976 - dnl Provide a substitute <utime.h> file.
43977 - UTIME_H=utime.h
43978 - else
43979 - case "$host_os" in
43980 - mingw*) dnl Need special handling of 'struct utimbuf'.
43981 - UTIME_H=utime.h
43982 - ;;
43983 - esac
43984 - fi
43985 - fi
43986 - ])
43987 - AC_SUBST([UTIME_H])
43988 - AM_CONDITIONAL([GL_GENERATE_UTIME_H], [test -n "$UTIME_H"])
43989 -
43990 dnl Check for declarations of anything we want to poison if the
43991 dnl corresponding gnulib module is not in use.
43992 gl_WARN_ON_USE_PREPARE([[#include <utime.h>
43993 @@ -50,18 +28,35 @@ AC_DEFUN([gl_UTIME_H],
43994 [utime])
43995 ])
43996
43997 +# gl_UTIME_MODULE_INDICATOR([modulename])
43998 +# sets the shell variable that indicates the presence of the given module
43999 +# to a C preprocessor expression that will evaluate to 1.
44000 +# This macro invocation must not occur in macros that are AC_REQUIREd.
44001 AC_DEFUN([gl_UTIME_MODULE_INDICATOR],
44002 [
44003 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
44004 - AC_REQUIRE([gl_UTIME_H_DEFAULTS])
44005 + dnl Ensure to expand the default settings once only.
44006 + gl_UTIME_H_REQUIRE_DEFAULTS
44007 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
44008 dnl Define it also as a C macro, for the benefit of the unit tests.
44009 gl_MODULE_INDICATOR_FOR_TESTS([$1])
44010 ])
44011
44012 +# Initializes the default values for AC_SUBSTed shell variables.
44013 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
44014 +# outside of macros or in macros that are not AC_REQUIREd.
44015 +AC_DEFUN([gl_UTIME_H_REQUIRE_DEFAULTS],
44016 +[
44017 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_UTIME_H_MODULE_INDICATOR_DEFAULTS], [
44018 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UTIME])
44019 + dnl Support Microsoft deprecated alias function names by default.
44020 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_UTIME], [1])
44021 + ])
44022 + m4_require(GL_MODULE_INDICATOR_PREFIX[_UTIME_H_MODULE_INDICATOR_DEFAULTS])
44023 + AC_REQUIRE([gl_UTIME_H_DEFAULTS])
44024 +])
44025 +
44026 AC_DEFUN([gl_UTIME_H_DEFAULTS],
44027 [
44028 - GNULIB_UTIME=0; AC_SUBST([GNULIB_UTIME])
44029 dnl Assume POSIX behavior unless another module says otherwise.
44030 HAVE_UTIME=1; AC_SUBST([HAVE_UTIME])
44031 REPLACE_UTIME=0; AC_SUBST([REPLACE_UTIME])
44032
44033 diff --git a/autotools/m4/utimens.m4 b/autotools/m4/utimens.m4
44034 index dda86b0..62aec78 100644
44035 --- a/autotools/m4/utimens.m4
44036 +++ b/autotools/m4/utimens.m4
44037 @@ -1,9 +1,9 @@
44038 -dnl Copyright (C) 2003-2019 Free Software Foundation, Inc.
44039 +dnl Copyright (C) 2003-2022 Free Software Foundation, Inc.
44040 dnl This file is free software; the Free Software Foundation
44041 dnl gives unlimited permission to copy and/or distribute it,
44042 dnl with or without modifications, as long as this notice is preserved.
44043
44044 -dnl serial 9
44045 +dnl serial 11
44046
44047 AC_DEFUN([gl_UTIMENS],
44048 [
44049 @@ -24,7 +24,8 @@ AC_DEFUN([gl_UTIMENS],
44050 #include <stddef.h>
44051 #include <sys/times.h>
44052 #include <fcntl.h>
44053 -]], [[ int fd = open ("conftest.file", O_RDWR);
44054 +]GL_MDA_DEFINES],
44055 + [[int fd = open ("conftest.file", O_RDWR);
44056 if (fd < 0) return 1;
44057 if (futimesat (fd, NULL, NULL)) return 2;
44058 ]])],
44059 @@ -35,8 +36,8 @@ AC_DEFUN([gl_UTIMENS],
44060 linux-* | linux) gl_cv_func_futimesat_works="guessing yes" ;;
44061 # Guess yes on glibc systems.
44062 *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;;
44063 - # If we don't know, assume the worst.
44064 - *) gl_cv_func_futimesat_works="guessing no" ;;
44065 + # If we don't know, obey --enable-cross-guesses.
44066 + *) gl_cv_func_futimesat_works="$gl_cross_guess_normal" ;;
44067 esac
44068 ])
44069 rm -f conftest.file])
44070
44071 diff --git a/autotools/m4/utimensat.m4 b/autotools/m4/utimensat.m4
44072 index 5628f8e..3abdb86 100644
44073 --- a/autotools/m4/utimensat.m4
44074 +++ b/autotools/m4/utimensat.m4
44075 @@ -1,7 +1,7 @@
44076 -# serial 6
44077 +# serial 9
44078 # See if we need to provide utimensat replacement.
44079
44080 -dnl Copyright (C) 2009-2019 Free Software Foundation, Inc.
44081 +dnl Copyright (C) 2009-2022 Free Software Foundation, Inc.
44082 dnl This file is free software; the Free Software Foundation
44083 dnl gives unlimited permission to copy and/or distribute it,
44084 dnl with or without modifications, as long as this notice is preserved.
44085 @@ -12,6 +12,7 @@ AC_DEFUN([gl_FUNC_UTIMENSAT],
44086 [
44087 AC_REQUIRE([gl_SYS_STAT_H_DEFAULTS])
44088 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
44089 + AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
44090 AC_CHECK_FUNCS_ONCE([utimensat])
44091 if test $ac_cv_func_utimensat = no; then
44092 HAVE_UTIMENSAT=0
44093 @@ -23,14 +24,24 @@ AC_DEFUN([gl_FUNC_UTIMENSAT],
44094 #include <fcntl.h>
44095 #include <sys/stat.h>
44096 #include <unistd.h>
44097 -]], [[int result = 0;
44098 +]GL_MDA_DEFINES],
44099 + [[int result = 0;
44100 const char *f = "conftest.file";
44101 if (close (creat (f, 0600)))
44102 return 1;
44103 + /* Test whether a trailing slash is handled correctly.
44104 + This fails on AIX 7.2. */
44105 + {
44106 + struct timespec ts[2];
44107 + ts[0].tv_sec = 345183300; ts[0].tv_nsec = 0;
44108 + ts[1] = ts[0];
44109 + if (utimensat (AT_FDCWD, "conftest.file/", ts, 0) == 0)
44110 + result |= 2;
44111 + }
44112 /* Test whether the AT_SYMLINK_NOFOLLOW flag is supported. */
44113 {
44114 if (utimensat (AT_FDCWD, f, NULL, AT_SYMLINK_NOFOLLOW))
44115 - result |= 2;
44116 + result |= 4;
44117 }
44118 /* Test whether UTIME_NOW and UTIME_OMIT work. */
44119 {
44120 @@ -40,7 +51,7 @@ AC_DEFUN([gl_FUNC_UTIMENSAT],
44121 ts[1].tv_sec = 1;
44122 ts[1].tv_nsec = UTIME_NOW;
44123 if (utimensat (AT_FDCWD, f, ts, 0))
44124 - result |= 4;
44125 + result |= 8;
44126 }
44127 sleep (1);
44128 {
44129 @@ -51,19 +62,44 @@ AC_DEFUN([gl_FUNC_UTIMENSAT],
44130 ts[1].tv_sec = 1;
44131 ts[1].tv_nsec = UTIME_OMIT;
44132 if (utimensat (AT_FDCWD, f, ts, 0))
44133 - result |= 8;
44134 - if (stat (f, &st))
44135 result |= 16;
44136 - else if (st.st_ctime < st.st_atime)
44137 + if (stat (f, &st))
44138 result |= 32;
44139 + else if (st.st_ctime < st.st_atime)
44140 + result |= 64;
44141 }
44142 return result;
44143 ]])],
44144 [gl_cv_func_utimensat_works=yes],
44145 - [gl_cv_func_utimensat_works=no],
44146 - [gl_cv_func_utimensat_works="guessing yes"])])
44147 - if test "$gl_cv_func_utimensat_works" = no; then
44148 - REPLACE_UTIMENSAT=1
44149 - fi
44150 + [case $? in
44151 + 2) gl_cv_func_utimensat_works='nearly' ;;
44152 + *) gl_cv_func_utimensat_works=no ;;
44153 + esac
44154 + ],
44155 + [case "$host_os" in
44156 + # Guess yes on Linux or glibc systems.
44157 + linux-* | linux | *-gnu* | gnu*)
44158 + gl_cv_func_utimensat_works="guessing yes" ;;
44159 + # Guess 'nearly' on AIX.
44160 + aix*)
44161 + gl_cv_func_utimensat_works="guessing nearly" ;;
44162 + # If we don't know, obey --enable-cross-guesses.
44163 + *)
44164 + gl_cv_func_utimensat_works="$gl_cross_guess_normal" ;;
44165 + esac
44166 + ])
44167 + ])
44168 + case "$gl_cv_func_utimensat_works" in
44169 + *yes)
44170 + ;;
44171 + *nearly)
44172 + AC_DEFINE([HAVE_NEARLY_WORKING_UTIMENSAT], [1],
44173 + [Define to 1 if utimensat works, except for the trailing slash handling.])
44174 + REPLACE_UTIMENSAT=1
44175 + ;;
44176 + *)
44177 + REPLACE_UTIMENSAT=1
44178 + ;;
44179 + esac
44180 fi
44181 ])
44182
44183 diff --git a/autotools/m4/utimes.m4 b/autotools/m4/utimes.m4
44184 index 7209b6d..bf22161 100644
44185 --- a/autotools/m4/utimes.m4
44186 +++ b/autotools/m4/utimes.m4
44187 @@ -1,7 +1,7 @@
44188 # Detect some bugs in glibc's implementation of utimes.
44189 -# serial 5
44190 +# serial 8
44191
44192 -dnl Copyright (C) 2003-2005, 2009-2019 Free Software Foundation, Inc.
44193 +dnl Copyright (C) 2003-2005, 2009-2022 Free Software Foundation, Inc.
44194 dnl This file is free software; the Free Software Foundation
44195 dnl gives unlimited permission to copy and/or distribute it,
44196 dnl with or without modifications, as long as this notice is preserved.
44197 @@ -34,6 +34,7 @@ AC_DEFUN([gl_FUNC_UTIMES],
44198 #include <stdio.h>
44199 #include <utime.h>
44200 #include <errno.h>
44201 +]GL_MDA_DEFINES[
44202
44203 static int
44204 inorder (time_t a, time_t b, time_t c)
44205 @@ -143,9 +144,11 @@ main ()
44206 [gl_cv_func_working_utimes=yes],
44207 [gl_cv_func_working_utimes=no],
44208 [case "$host_os" in
44209 - # Guess no on native Windows.
44210 - mingw*) gl_cv_func_working_utimes="guessing no" ;;
44211 - *) gl_cv_func_working_utimes="guessing no" ;;
44212 + # Guess yes on musl systems.
44213 + *-musl*) gl_cv_func_working_utimes="guessing yes" ;;
44214 + # Guess no on native Windows.
44215 + mingw*) gl_cv_func_working_utimes="guessing no" ;;
44216 + *) gl_cv_func_working_utimes="$gl_cross_guess_normal" ;;
44217 esac
44218 ])
44219 ])
44220
44221 diff --git a/autotools/m4/vararrays.m4 b/autotools/m4/vararrays.m4
44222 new file mode 100644
44223 index 0000000..28e22a4
44224 --- /dev/null
44225 +++ b/autotools/m4/vararrays.m4
44226 @@ -0,0 +1,72 @@
44227 +# Check for variable-length arrays.
44228 +
44229 +# serial 6
44230 +
44231 +# From Paul Eggert
44232 +
44233 +# Copyright (C) 2001, 2009-2022 Free Software Foundation, Inc.
44234 +# This file is free software; the Free Software Foundation
44235 +# gives unlimited permission to copy and/or distribute it,
44236 +# with or without modifications, as long as this notice is preserved.
44237 +
44238 +m4_version_prereq([2.70], [], [
44239 +
44240 +# AC_C_VARARRAYS
44241 +# --------------
44242 +# Check whether the C compiler supports variable-length arrays.
44243 +AC_DEFUN([AC_C_VARARRAYS],
44244 +[
44245 + AC_CACHE_CHECK([for variable-length arrays],
44246 + ac_cv_c_vararrays,
44247 + [AC_EGREP_CPP([defined],
44248 + [#ifdef __STDC_NO_VLA__
44249 + defined
44250 + #endif
44251 + ],
44252 + [ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'],
44253 + [AC_COMPILE_IFELSE(
44254 + [AC_LANG_PROGRAM(
44255 + [[/* Test for VLA support. This test is partly inspired
44256 + from examples in the C standard. Use at least two VLA
44257 + functions to detect the GCC 3.4.3 bug described in:
44258 + https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
44259 + */
44260 + #ifdef __STDC_NO_VLA__
44261 + syntax error;
44262 + #else
44263 + extern int n;
44264 + int B[100];
44265 + int fvla (int m, int C[m][m]);
44266 +
44267 + int
44268 + simple (int count, int all[static count])
44269 + {
44270 + return all[count - 1];
44271 + }
44272 +
44273 + int
44274 + fvla (int m, int C[m][m])
44275 + {
44276 + typedef int VLA[m][m];
44277 + VLA x;
44278 + int D[m];
44279 + static int (*q)[m] = &B;
44280 + int (*s)[n] = q;
44281 + return C && &x[0][0] == &D[0] && &D[0] == s[0];
44282 + }
44283 + #endif
44284 + ]])],
44285 + [ac_cv_c_vararrays=yes],
44286 + [ac_cv_c_vararrays=no])])])
44287 + if test "$ac_cv_c_vararrays" = yes; then
44288 + dnl This is for compatibility with Autoconf 2.61-2.69.
44289 + AC_DEFINE([HAVE_C_VARARRAYS], 1,
44290 + [Define to 1 if C supports variable-length arrays.])
44291 + elif test "$ac_cv_c_vararrays" = no; then
44292 + AC_DEFINE([__STDC_NO_VLA__], 1,
44293 + [Define to 1 if C does not support variable-length arrays, and
44294 + if the compiler does not already define this.])
44295 + fi
44296 +])
44297 +
44298 +])
44299
44300 diff --git a/autotools/m4/vasnprintf.m4 b/autotools/m4/vasnprintf.m4
44301 index b763a3d..afdece7 100644
44302 --- a/autotools/m4/vasnprintf.m4
44303 +++ b/autotools/m4/vasnprintf.m4
44304 @@ -1,5 +1,5 @@
44305 -# vasnprintf.m4 serial 36
44306 -dnl Copyright (C) 2002-2004, 2006-2019 Free Software Foundation, Inc.
44307 +# vasnprintf.m4 serial 38
44308 +dnl Copyright (C) 2002-2004, 2006-2022 Free Software Foundation, Inc.
44309 dnl This file is free software; the Free Software Foundation
44310 dnl gives unlimited permission to copy and/or distribute it,
44311 dnl with or without modifications, as long as this notice is preserved.
44312 @@ -32,7 +32,6 @@ AC_DEFUN([gl_REPLACE_VASNPRINTF],
44313 # Prerequisites of lib/printf-args.h, lib/printf-args.c.
44314 AC_DEFUN([gl_PREREQ_PRINTF_ARGS],
44315 [
44316 - AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
44317 AC_REQUIRE([gt_TYPE_WCHAR_T])
44318 AC_REQUIRE([gt_TYPE_WINT_T])
44319 ])
44320 @@ -41,7 +40,6 @@ AC_DEFUN([gl_PREREQ_PRINTF_ARGS],
44321 AC_DEFUN([gl_PREREQ_PRINTF_PARSE],
44322 [
44323 AC_REQUIRE([gl_FEATURES_H])
44324 - AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
44325 AC_REQUIRE([gt_TYPE_WCHAR_T])
44326 AC_REQUIRE([gt_TYPE_WINT_T])
44327 AC_REQUIRE([AC_TYPE_SIZE_T])
44328 @@ -56,7 +54,6 @@ AC_DEFUN([gl_PREREQ_PRINTF_PARSE],
44329 AC_DEFUN_ONCE([gl_PREREQ_VASNPRINTF],
44330 [
44331 AC_REQUIRE([AC_FUNC_ALLOCA])
44332 - AC_REQUIRE([AC_TYPE_LONG_LONG_INT])
44333 AC_REQUIRE([gt_TYPE_WCHAR_T])
44334 AC_REQUIRE([gt_TYPE_WINT_T])
44335 AC_CHECK_FUNCS([snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb])
44336 @@ -77,6 +74,16 @@ AC_DEFUN_ONCE([gl_PREREQ_VASNPRINTF],
44337 if the buffer had been large enough.])
44338 ;;
44339 esac
44340 + dnl Additionally, the use of %n can be eliminated by assuming that snprintf
44341 + dnl always produces NUL-terminated strings (no truncation).
44342 + AC_REQUIRE([gl_SNPRINTF_TRUNCATION_C99])
44343 + case "$gl_cv_func_snprintf_truncation_c99" in
44344 + *yes)
44345 + AC_DEFINE([HAVE_SNPRINTF_TRUNCATION_C99], [1],
44346 + [Define if the string produced by the snprintf function is always NUL
44347 + terminated.])
44348 + ;;
44349 + esac
44350 ])
44351
44352 # Extra prerequisites of lib/vasnprintf.c for supporting 'long double'
44353
44354 diff --git a/autotools/m4/vasprintf-posix.m4 b/autotools/m4/vasprintf-posix.m4
44355 index 3b8de2a..122b221 100644
44356 --- a/autotools/m4/vasprintf-posix.m4
44357 +++ b/autotools/m4/vasprintf-posix.m4
44358 @@ -1,5 +1,5 @@
44359 # vasprintf-posix.m4 serial 13
44360 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
44361 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
44362 dnl This file is free software; the Free Software Foundation
44363 dnl gives unlimited permission to copy and/or distribute it,
44364 dnl with or without modifications, as long as this notice is preserved.
44365
44366 diff --git a/autotools/m4/vasprintf.m4 b/autotools/m4/vasprintf.m4
44367 index cd96229..b92977b 100644
44368 --- a/autotools/m4/vasprintf.m4
44369 +++ b/autotools/m4/vasprintf.m4
44370 @@ -1,5 +1,5 @@
44371 # vasprintf.m4 serial 6
44372 -dnl Copyright (C) 2002-2003, 2006-2007, 2009-2019 Free Software Foundation,
44373 +dnl Copyright (C) 2002-2003, 2006-2007, 2009-2022 Free Software Foundation,
44374 dnl Inc.
44375 dnl This file is free software; the Free Software Foundation
44376 dnl gives unlimited permission to copy and/or distribute it,
44377
44378 diff --git a/autotools/m4/warn-on-use.m4 b/autotools/m4/warn-on-use.m4
44379 index 7ebe2d3..d43355a 100644
44380 --- a/autotools/m4/warn-on-use.m4
44381 +++ b/autotools/m4/warn-on-use.m4
44382 @@ -1,5 +1,5 @@
44383 -# warn-on-use.m4 serial 6
44384 -dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
44385 +# warn-on-use.m4 serial 9
44386 +dnl Copyright (C) 2010-2022 Free Software Foundation, Inc.
44387 dnl This file is free software; the Free Software Foundation
44388 dnl gives unlimited permission to copy and/or distribute it,
44389 dnl with or without modifications, as long as this notice is preserved.
44390 @@ -30,17 +30,15 @@ AC_DEFUN([gl_WARN_ON_USE_PREPARE],
44391 [AH_TEMPLATE([HAVE_RAW_DECL_]AS_TR_CPP(m4_defn([gl_decl])),
44392 [Define to 1 if ]m4_defn([gl_decl])[ is declared even after
44393 undefining macros.])])dnl
44394 -dnl FIXME: gl_Symbol must be used unquoted until we can assume
44395 -dnl autoconf 2.64 or newer.
44396 for gl_func in m4_flatten([$2]); do
44397 AS_VAR_PUSHDEF([gl_Symbol], [gl_cv_have_raw_decl_$gl_func])dnl
44398 AC_CACHE_CHECK([whether $gl_func is declared without a macro],
44399 - gl_Symbol,
44400 + [gl_Symbol],
44401 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$1],
44402 -[@%:@undef $gl_func
44403 - (void) $gl_func;])],
44404 - [AS_VAR_SET(gl_Symbol, [yes])], [AS_VAR_SET(gl_Symbol, [no])])])
44405 - AS_VAR_IF(gl_Symbol, [yes],
44406 +[[#undef $gl_func
44407 + (void) $gl_func;]])],
44408 + [AS_VAR_SET([gl_Symbol], [yes])], [AS_VAR_SET([gl_Symbol], [no])])])
44409 + AS_VAR_IF([gl_Symbol], [yes],
44410 [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_RAW_DECL_$gl_func]), [1])
44411 dnl shortcut - if the raw declaration exists, then set a cache
44412 dnl variable to allow skipping any later AC_CHECK_DECL efforts
44413
44414 diff --git a/autotools/m4/wchar_h.m4 b/autotools/m4/wchar_h.m4
44415 index cd20e7a..4baba1a 100644
44416 --- a/autotools/m4/wchar_h.m4
44417 +++ b/autotools/m4/wchar_h.m4
44418 @@ -1,15 +1,15 @@
44419 dnl A placeholder for ISO C99 <wchar.h>, for platforms that have issues.
44420
44421 -dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
44422 +dnl Copyright (C) 2007-2022 Free Software Foundation, Inc.
44423 dnl This file is free software; the Free Software Foundation
44424 dnl gives unlimited permission to copy and/or distribute it,
44425 dnl with or without modifications, as long as this notice is preserved.
44426
44427 dnl Written by Eric Blake.
44428
44429 -# wchar_h.m4 serial 43
44430 +# wchar_h.m4 serial 55
44431
44432 -AC_DEFUN([gl_WCHAR_H],
44433 +AC_DEFUN_ONCE([gl_WCHAR_H],
44434 [
44435 AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
44436 AC_REQUIRE([gl_WCHAR_H_INLINE_OK])
44437 @@ -40,23 +40,24 @@ AC_DEFUN([gl_WCHAR_H],
44438 dnl Check for declarations of anything we want to poison if the
44439 dnl corresponding gnulib module is not in use.
44440 gl_WARN_ON_USE_PREPARE([[
44441 -/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44442 - <wchar.h>.
44443 - BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44444 - included before <wchar.h>. */
44445 -#if !(defined __GLIBC__ && !defined __UCLIBC__)
44446 -# include <stddef.h>
44447 -# include <stdio.h>
44448 -# include <time.h>
44449 -#endif
44450 -#include <wchar.h>
44451 + #include <wchar.h>
44452 ]],
44453 [btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb
44454 - wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset
44455 + wcsrtombs wcsnrtombs wcwidth
44456 + wmemchr wmemcmp wmemcpy wmemmove wmempcpy wmemset
44457 wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp
44458 wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr
44459 wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth wcsftime
44460 ])
44461 +
44462 + AC_REQUIRE([AC_C_RESTRICT])
44463 +
44464 + AC_CHECK_DECLS([wcsdup], [], [], [[
44465 + #include <wchar.h>
44466 + ]])
44467 + if test $ac_cv_have_decl_wcsdup = no; then
44468 + HAVE_DECL_WCSDUP=0
44469 + fi
44470 ])
44471
44472 dnl Check whether <wchar.h> is usable at all.
44473 @@ -67,56 +68,49 @@ AC_DEFUN([gl_WCHAR_H_INLINE_OK],
44474 dnl and <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42440>. In summary,
44475 dnl glibc version 2.5 or older, together with gcc version 4.3 or newer and
44476 dnl the option -std=c99 or -std=gnu99, leads to a broken <wchar.h>.
44477 + AC_REQUIRE([AC_CANONICAL_HOST])
44478 AC_CACHE_CHECK([whether <wchar.h> uses 'inline' correctly],
44479 [gl_cv_header_wchar_h_correct_inline],
44480 [gl_cv_header_wchar_h_correct_inline=yes
44481 - AC_LANG_CONFTEST([
44482 - AC_LANG_SOURCE([[#define wcstod renamed_wcstod
44483 -/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44484 - <wchar.h>.
44485 - BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44486 - included before <wchar.h>. */
44487 -#include <stddef.h>
44488 -#include <stdio.h>
44489 -#include <time.h>
44490 -#include <wchar.h>
44491 -extern int zero (void);
44492 -int main () { return zero(); }
44493 -]])])
44494 - dnl Do not rename the object file from conftest.$ac_objext to
44495 - dnl conftest1.$ac_objext, as this will cause the link to fail on
44496 - dnl z/OS when using the XPLINK object format (due to duplicate
44497 - dnl CSECT names). Instead, temporarily redefine $ac_compile so
44498 - dnl that the object file has the latter name from the start.
44499 - save_ac_compile="$ac_compile"
44500 - ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
44501 - if echo '#include "conftest.c"' >conftest1.c &&
44502 - AC_TRY_EVAL([ac_compile]); then
44503 - AC_LANG_CONFTEST([
44504 - AC_LANG_SOURCE([[#define wcstod renamed_wcstod
44505 -/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44506 - <wchar.h>.
44507 - BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44508 - included before <wchar.h>. */
44509 -#include <stddef.h>
44510 -#include <stdio.h>
44511 -#include <time.h>
44512 -#include <wchar.h>
44513 -int zero (void) { return 0; }
44514 -]])])
44515 - dnl See note above about renaming object files.
44516 - ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
44517 - if echo '#include "conftest.c"' >conftest2.c &&
44518 - AC_TRY_EVAL([ac_compile]); then
44519 - if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&AS_MESSAGE_LOG_FD 2>&1; then
44520 - :
44521 - else
44522 - gl_cv_header_wchar_h_correct_inline=no
44523 + case "$host_os" in
44524 + *-gnu* | gnu*)
44525 + AC_LANG_CONFTEST([
44526 + AC_LANG_SOURCE([[
44527 + #define wcstod renamed_wcstod
44528 + #include <wchar.h>
44529 + extern int zero (void);
44530 + int main () { return zero(); }
44531 + ]])])
44532 + dnl Do not rename the object file from conftest.$ac_objext to
44533 + dnl conftest1.$ac_objext, as this will cause the link to fail on
44534 + dnl z/OS when using the XPLINK object format (due to duplicate
44535 + dnl CSECT names). Instead, temporarily redefine $ac_compile so
44536 + dnl that the object file has the latter name from the start.
44537 + save_ac_compile="$ac_compile"
44538 + ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
44539 + if echo '#include "conftest.c"' >conftest1.c \
44540 + && AC_TRY_EVAL([ac_compile]); then
44541 + AC_LANG_CONFTEST([
44542 + AC_LANG_SOURCE([[
44543 + #define wcstod renamed_wcstod
44544 + #include <wchar.h>
44545 + int zero (void) { return 0; }
44546 + ]])])
44547 + dnl See note above about renaming object files.
44548 + ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
44549 + if echo '#include "conftest.c"' >conftest2.c \
44550 + && AC_TRY_EVAL([ac_compile]); then
44551 + if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&AS_MESSAGE_LOG_FD 2>&1; then
44552 + :
44553 + else
44554 + gl_cv_header_wchar_h_correct_inline=no
44555 + fi
44556 + fi
44557 fi
44558 - fi
44559 - fi
44560 - ac_compile="$save_ac_compile"
44561 - rm -f conftest[12].c conftest[12].$ac_objext conftest$ac_exeext
44562 + ac_compile="$save_ac_compile"
44563 + rm -f conftest[12].c conftest[12].$ac_objext conftest$ac_exeext
44564 + ;;
44565 + esac
44566 ])
44567 if test $gl_cv_header_wchar_h_correct_inline = no; then
44568 AC_MSG_ERROR([<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
44569 @@ -131,57 +125,77 @@ Configuration aborted.])
44570 fi
44571 ])
44572
44573 +# gl_WCHAR_MODULE_INDICATOR([modulename])
44574 +# sets the shell variable that indicates the presence of the given module
44575 +# to a C preprocessor expression that will evaluate to 1.
44576 +# This macro invocation must not occur in macros that are AC_REQUIREd.
44577 AC_DEFUN([gl_WCHAR_MODULE_INDICATOR],
44578 [
44579 - dnl Use AC_REQUIRE here, so that the default settings are expanded once only.
44580 - AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
44581 + dnl Ensure to expand the default settings once only.
44582 + gl_WCHAR_H_REQUIRE_DEFAULTS
44583 gl_MODULE_INDICATOR_SET_VARIABLE([$1])
44584 dnl Define it also as a C macro, for the benefit of the unit tests.
44585 gl_MODULE_INDICATOR_FOR_TESTS([$1])
44586 ])
44587
44588 +# Initializes the default values for AC_SUBSTed shell variables.
44589 +# This macro must not be AC_REQUIREd. It must only be invoked, and only
44590 +# outside of macros or in macros that are not AC_REQUIREd.
44591 +AC_DEFUN([gl_WCHAR_H_REQUIRE_DEFAULTS],
44592 +[
44593 + m4_defun(GL_MODULE_INDICATOR_PREFIX[_WCHAR_H_MODULE_INDICATOR_DEFAULTS], [
44594 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_BTOWC])
44595 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCTOB])
44596 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSINIT])
44597 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBRTOWC])
44598 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBRLEN])
44599 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSRTOWCS])
44600 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MBSNRTOWCS])
44601 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCRTOMB])
44602 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSRTOMBS])
44603 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNRTOMBS])
44604 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCWIDTH])
44605 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMCHR])
44606 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMCMP])
44607 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMCPY])
44608 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMMOVE])
44609 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMPCPY])
44610 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WMEMSET])
44611 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSLEN])
44612 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNLEN])
44613 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCPY])
44614 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCPCPY])
44615 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCPY])
44616 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCPNCPY])
44617 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCAT])
44618 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCAT])
44619 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCMP])
44620 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCMP])
44621 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCASECMP])
44622 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSNCASECMP])
44623 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCOLL])
44624 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSXFRM])
44625 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSDUP])
44626 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCHR])
44627 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSRCHR])
44628 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSCSPN])
44629 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSSPN])
44630 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSPBRK])
44631 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSSTR])
44632 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSTOK])
44633 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSWIDTH])
44634 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_WCSFTIME])
44635 + dnl Support Microsoft deprecated alias function names by default.
44636 + gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_MDA_WCSDUP], [1])
44637 + ])
44638 + m4_require(GL_MODULE_INDICATOR_PREFIX[_WCHAR_H_MODULE_INDICATOR_DEFAULTS])
44639 + dnl Make sure the shell variable for GNULIB_FREE_POSIX is initialized.
44640 + gl_STDLIB_H_REQUIRE_DEFAULTS
44641 + AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
44642 +])
44643 +
44644 AC_DEFUN([gl_WCHAR_H_DEFAULTS],
44645 [
44646 - GNULIB_BTOWC=0; AC_SUBST([GNULIB_BTOWC])
44647 - GNULIB_WCTOB=0; AC_SUBST([GNULIB_WCTOB])
44648 - GNULIB_MBSINIT=0; AC_SUBST([GNULIB_MBSINIT])
44649 - GNULIB_MBRTOWC=0; AC_SUBST([GNULIB_MBRTOWC])
44650 - GNULIB_MBRLEN=0; AC_SUBST([GNULIB_MBRLEN])
44651 - GNULIB_MBSRTOWCS=0; AC_SUBST([GNULIB_MBSRTOWCS])
44652 - GNULIB_MBSNRTOWCS=0; AC_SUBST([GNULIB_MBSNRTOWCS])
44653 - GNULIB_WCRTOMB=0; AC_SUBST([GNULIB_WCRTOMB])
44654 - GNULIB_WCSRTOMBS=0; AC_SUBST([GNULIB_WCSRTOMBS])
44655 - GNULIB_WCSNRTOMBS=0; AC_SUBST([GNULIB_WCSNRTOMBS])
44656 - GNULIB_WCWIDTH=0; AC_SUBST([GNULIB_WCWIDTH])
44657 - GNULIB_WMEMCHR=0; AC_SUBST([GNULIB_WMEMCHR])
44658 - GNULIB_WMEMCMP=0; AC_SUBST([GNULIB_WMEMCMP])
44659 - GNULIB_WMEMCPY=0; AC_SUBST([GNULIB_WMEMCPY])
44660 - GNULIB_WMEMMOVE=0; AC_SUBST([GNULIB_WMEMMOVE])
44661 - GNULIB_WMEMSET=0; AC_SUBST([GNULIB_WMEMSET])
44662 - GNULIB_WCSLEN=0; AC_SUBST([GNULIB_WCSLEN])
44663 - GNULIB_WCSNLEN=0; AC_SUBST([GNULIB_WCSNLEN])
44664 - GNULIB_WCSCPY=0; AC_SUBST([GNULIB_WCSCPY])
44665 - GNULIB_WCPCPY=0; AC_SUBST([GNULIB_WCPCPY])
44666 - GNULIB_WCSNCPY=0; AC_SUBST([GNULIB_WCSNCPY])
44667 - GNULIB_WCPNCPY=0; AC_SUBST([GNULIB_WCPNCPY])
44668 - GNULIB_WCSCAT=0; AC_SUBST([GNULIB_WCSCAT])
44669 - GNULIB_WCSNCAT=0; AC_SUBST([GNULIB_WCSNCAT])
44670 - GNULIB_WCSCMP=0; AC_SUBST([GNULIB_WCSCMP])
44671 - GNULIB_WCSNCMP=0; AC_SUBST([GNULIB_WCSNCMP])
44672 - GNULIB_WCSCASECMP=0; AC_SUBST([GNULIB_WCSCASECMP])
44673 - GNULIB_WCSNCASECMP=0; AC_SUBST([GNULIB_WCSNCASECMP])
44674 - GNULIB_WCSCOLL=0; AC_SUBST([GNULIB_WCSCOLL])
44675 - GNULIB_WCSXFRM=0; AC_SUBST([GNULIB_WCSXFRM])
44676 - GNULIB_WCSDUP=0; AC_SUBST([GNULIB_WCSDUP])
44677 - GNULIB_WCSCHR=0; AC_SUBST([GNULIB_WCSCHR])
44678 - GNULIB_WCSRCHR=0; AC_SUBST([GNULIB_WCSRCHR])
44679 - GNULIB_WCSCSPN=0; AC_SUBST([GNULIB_WCSCSPN])
44680 - GNULIB_WCSSPN=0; AC_SUBST([GNULIB_WCSSPN])
44681 - GNULIB_WCSPBRK=0; AC_SUBST([GNULIB_WCSPBRK])
44682 - GNULIB_WCSSTR=0; AC_SUBST([GNULIB_WCSSTR])
44683 - GNULIB_WCSTOK=0; AC_SUBST([GNULIB_WCSTOK])
44684 - GNULIB_WCSWIDTH=0; AC_SUBST([GNULIB_WCSWIDTH])
44685 - GNULIB_WCSFTIME=0; AC_SUBST([GNULIB_WCSFTIME])
44686 dnl Assume proper GNU behavior unless another module says otherwise.
44687 HAVE_BTOWC=1; AC_SUBST([HAVE_BTOWC])
44688 HAVE_MBSINIT=1; AC_SUBST([HAVE_MBSINIT])
44689 @@ -196,6 +210,7 @@ AC_DEFUN([gl_WCHAR_H_DEFAULTS],
44690 HAVE_WMEMCMP=1; AC_SUBST([HAVE_WMEMCMP])
44691 HAVE_WMEMCPY=1; AC_SUBST([HAVE_WMEMCPY])
44692 HAVE_WMEMMOVE=1; AC_SUBST([HAVE_WMEMMOVE])
44693 + HAVE_WMEMPCPY=1; AC_SUBST([HAVE_WMEMPCPY])
44694 HAVE_WMEMSET=1; AC_SUBST([HAVE_WMEMSET])
44695 HAVE_WCSLEN=1; AC_SUBST([HAVE_WCSLEN])
44696 HAVE_WCSNLEN=1; AC_SUBST([HAVE_WCSNLEN])
44697 @@ -222,6 +237,7 @@ AC_DEFUN([gl_WCHAR_H_DEFAULTS],
44698 HAVE_WCSWIDTH=1; AC_SUBST([HAVE_WCSWIDTH])
44699 HAVE_WCSFTIME=1; AC_SUBST([HAVE_WCSFTIME])
44700 HAVE_DECL_WCTOB=1; AC_SUBST([HAVE_DECL_WCTOB])
44701 + HAVE_DECL_WCSDUP=1; AC_SUBST([HAVE_DECL_WCSDUP])
44702 HAVE_DECL_WCWIDTH=1; AC_SUBST([HAVE_DECL_WCWIDTH])
44703 REPLACE_MBSTATE_T=0; AC_SUBST([REPLACE_MBSTATE_T])
44704 REPLACE_BTOWC=0; AC_SUBST([REPLACE_BTOWC])
44705 @@ -237,4 +253,5 @@ AC_DEFUN([gl_WCHAR_H_DEFAULTS],
44706 REPLACE_WCWIDTH=0; AC_SUBST([REPLACE_WCWIDTH])
44707 REPLACE_WCSWIDTH=0; AC_SUBST([REPLACE_WCSWIDTH])
44708 REPLACE_WCSFTIME=0; AC_SUBST([REPLACE_WCSFTIME])
44709 + REPLACE_WCSTOK=0; AC_SUBST([REPLACE_WCSTOK])
44710 ])
44711
44712 diff --git a/autotools/m4/wchar_t.m4 b/autotools/m4/wchar_t.m4
44713 index 5db5815..268e3e5 100644
44714 --- a/autotools/m4/wchar_t.m4
44715 +++ b/autotools/m4/wchar_t.m4
44716 @@ -1,5 +1,5 @@
44717 # wchar_t.m4 serial 4 (gettext-0.18.2)
44718 -dnl Copyright (C) 2002-2003, 2008-2019 Free Software Foundation, Inc.
44719 +dnl Copyright (C) 2002-2003, 2008-2022 Free Software Foundation, Inc.
44720 dnl This file is free software; the Free Software Foundation
44721 dnl gives unlimited permission to copy and/or distribute it,
44722 dnl with or without modifications, as long as this notice is preserved.
44723
44724 diff --git a/autotools/m4/wint_t.m4 b/autotools/m4/wint_t.m4
44725 index 61e8a23..adc5866 100644
44726 --- a/autotools/m4/wint_t.m4
44727 +++ b/autotools/m4/wint_t.m4
44728 @@ -1,5 +1,5 @@
44729 -# wint_t.m4 serial 7
44730 -dnl Copyright (C) 2003, 2007-2019 Free Software Foundation, Inc.
44731 +# wint_t.m4 serial 11
44732 +dnl Copyright (C) 2003, 2007-2022 Free Software Foundation, Inc.
44733 dnl This file is free software; the Free Software Foundation
44734 dnl gives unlimited permission to copy and/or distribute it,
44735 dnl with or without modifications, as long as this notice is preserved.
44736 @@ -14,15 +14,7 @@ AC_DEFUN([gt_TYPE_WINT_T],
44737 AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t],
44738 [AC_COMPILE_IFELSE(
44739 [AC_LANG_PROGRAM(
44740 - [[
44741 -/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44742 - <wchar.h>.
44743 - BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
44744 - before <wchar.h>. */
44745 -#include <stddef.h>
44746 -#include <stdio.h>
44747 -#include <time.h>
44748 -#include <wchar.h>
44749 + [[#include <wchar.h>
44750 wint_t foo = (wchar_t)'\0';]],
44751 [[]])],
44752 [gt_cv_c_wint_t=yes],
44753 @@ -32,33 +24,24 @@ AC_DEFUN([gt_TYPE_WINT_T],
44754
44755 dnl Determine whether gnulib's <wchar.h> or <wctype.h> would, if present,
44756 dnl override 'wint_t'.
44757 - AC_CACHE_CHECK([whether wint_t is too small],
44758 - [gl_cv_type_wint_t_too_small],
44759 + AC_CACHE_CHECK([whether wint_t is large enough],
44760 + [gl_cv_type_wint_t_large_enough],
44761 [AC_COMPILE_IFELSE(
44762 - [AC_LANG_PROGRAM([[
44763 -/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
44764 - <wchar.h>.
44765 - BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44766 - included before <wchar.h>. */
44767 -#if !(defined __GLIBC__ && !defined __UCLIBC__)
44768 -# include <stddef.h>
44769 -# include <stdio.h>
44770 -# include <time.h>
44771 -#endif
44772 -#include <wchar.h>
44773 + [AC_LANG_PROGRAM(
44774 + [[#include <wchar.h>
44775 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
44776 - ]])],
44777 - [gl_cv_type_wint_t_too_small=no],
44778 - [gl_cv_type_wint_t_too_small=yes])])
44779 - if test $gl_cv_type_wint_t_too_small = yes; then
44780 - GNULIB_OVERRIDES_WINT_T=1
44781 + ]])],
44782 + [gl_cv_type_wint_t_large_enough=yes],
44783 + [gl_cv_type_wint_t_large_enough=no])])
44784 + if test $gl_cv_type_wint_t_large_enough = no; then
44785 + GNULIBHEADERS_OVERRIDE_WINT_T=1
44786 else
44787 - GNULIB_OVERRIDES_WINT_T=0
44788 + GNULIBHEADERS_OVERRIDE_WINT_T=0
44789 fi
44790 else
44791 - GNULIB_OVERRIDES_WINT_T=0
44792 + GNULIBHEADERS_OVERRIDE_WINT_T=0
44793 fi
44794 - AC_SUBST([GNULIB_OVERRIDES_WINT_T])
44795 + AC_SUBST([GNULIBHEADERS_OVERRIDE_WINT_T])
44796 ])
44797
44798 dnl Prerequisites of the 'wint_t' override.
44799
44800 diff --git a/autotools/m4/xalloc.m4 b/autotools/m4/xalloc.m4
44801 index dfff943..17a9c06 100644
44802 --- a/autotools/m4/xalloc.m4
44803 +++ b/autotools/m4/xalloc.m4
44804 @@ -1,5 +1,5 @@
44805 # xalloc.m4 serial 18
44806 -dnl Copyright (C) 2002-2006, 2009-2019 Free Software Foundation, Inc.
44807 +dnl Copyright (C) 2002-2006, 2009-2022 Free Software Foundation, Inc.
44808 dnl This file is free software; the Free Software Foundation
44809 dnl gives unlimited permission to copy and/or distribute it,
44810 dnl with or without modifications, as long as this notice is preserved.
44811
44812 diff --git a/autotools/m4/xsize.m4 b/autotools/m4/xsize.m4
44813 index f2898ba..0109049 100644
44814 --- a/autotools/m4/xsize.m4
44815 +++ b/autotools/m4/xsize.m4
44816 @@ -1,5 +1,5 @@
44817 # xsize.m4 serial 5
44818 -dnl Copyright (C) 2003-2004, 2008-2019 Free Software Foundation, Inc.
44819 +dnl Copyright (C) 2003-2004, 2008-2022 Free Software Foundation, Inc.
44820 dnl This file is free software; the Free Software Foundation
44821 dnl gives unlimited permission to copy and/or distribute it,
44822 dnl with or without modifications, as long as this notice is preserved.
44823
44824 diff --git a/autotools/m4/year2038.m4 b/autotools/m4/year2038.m4
44825 new file mode 100644
44826 index 0000000..06db589
44827 --- /dev/null
44828 +++ b/autotools/m4/year2038.m4
44829 @@ -0,0 +1,124 @@
44830 +# year2038.m4 serial 7
44831 +dnl Copyright (C) 2017-2022 Free Software Foundation, Inc.
44832 +dnl This file is free software; the Free Software Foundation
44833 +dnl gives unlimited permission to copy and/or distribute it,
44834 +dnl with or without modifications, as long as this notice is preserved.
44835 +
44836 +dnl Attempt to ensure that 'time_t' can go past the year 2038 and that
44837 +dnl the functions 'time', 'stat', etc. work with post-2038 timestamps.
44838 +
44839 +AC_DEFUN([gl_YEAR2038_EARLY],
44840 +[
44841 + AC_REQUIRE([AC_CANONICAL_HOST])
44842 + case "$host_os" in
44843 + mingw*)
44844 + AC_DEFINE([__MINGW_USE_VC2005_COMPAT], [1],
44845 + [For 64-bit time_t on 32-bit mingw.])
44846 + ;;
44847 + esac
44848 +])
44849 +
44850 +# gl_YEAR2038_TEST_INCLUDES
44851 +# -------------------------
44852 +AC_DEFUN([gl_YEAR2038_TEST_INCLUDES],
44853 +[[
44854 + #include <time.h>
44855 + /* Check that time_t can represent 2**32 - 1 correctly. */
44856 + #define LARGE_TIME_T \\
44857 + ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
44858 + int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
44859 + && LARGE_TIME_T % 65537 == 0)
44860 + ? 1 : -1];
44861 +]])
44862 +
44863 +# gl_YEAR2038_BODY(REQUIRE-YEAR2038-SAFE)
44864 +-----------------------------------------
44865 +AC_DEFUN([gl_YEAR2038_BODY],
44866 +[
44867 + AC_ARG_ENABLE([year2038],
44868 + [ --disable-year2038 omit support for timestamps past the year 2038])
44869 + AS_IF([test "$enable_year2038" != no],
44870 + [
44871 + dnl On many systems, time_t is already a 64-bit type.
44872 + dnl On those systems where time_t is still 32-bit, it requires kernel
44873 + dnl and libc support to make it 64-bit. For glibc 2.34 and later on Linux,
44874 + dnl defining _TIME_BITS=64 and _FILE_OFFSET_BITS=64 is needed on x86 and ARM.
44875 + dnl
44876 + dnl On native Windows, the system include files define types __time32_t
44877 + dnl and __time64_t. By default, time_t is an alias of
44878 + dnl - __time32_t on 32-bit mingw,
44879 + dnl - __time64_t on 64-bit mingw and on MSVC (since MSVC 8).
44880 + dnl But when compiling with -D__MINGW_USE_VC2005_COMPAT, time_t is an
44881 + dnl alias of __time64_t.
44882 + dnl And when compiling with -D_USE_32BIT_TIME_T, time_t is an alias of
44883 + dnl __time32_t.
44884 + AC_CACHE_CHECK([for time_t past the year 2038], [gl_cv_type_time_t_y2038],
44885 + [AC_COMPILE_IFELSE(
44886 + [AC_LANG_SOURCE([gl_YEAR2038_TEST_INCLUDES])],
44887 + [gl_cv_type_time_t_y2038=yes], [gl_cv_type_time_t_y2038=no])
44888 + ])
44889 + if test "$gl_cv_type_time_t_y2038" = no; then
44890 + AC_CACHE_CHECK([for 64-bit time_t with _TIME_BITS=64],
44891 + [gl_cv_type_time_t_bits_macro],
44892 + [AC_COMPILE_IFELSE(
44893 + [AC_LANG_SOURCE([[#define _TIME_BITS 64
44894 + #define _FILE_OFFSET_BITS 64
44895 + ]gl_YEAR2038_TEST_INCLUDES])],
44896 + [gl_cv_type_time_t_bits_macro=yes],
44897 + [gl_cv_type_time_t_bits_macro=no])
44898 + ])
44899 + if test "$gl_cv_type_time_t_bits_macro" = yes; then
44900 + AC_DEFINE([_TIME_BITS], [64],
44901 + [Number of bits in a timestamp, on hosts where this is settable.])
44902 + dnl AC_SYS_LARGFILE also defines this; it's OK if we do too.
44903 + AC_DEFINE([_FILE_OFFSET_BITS], [64],
44904 + [Number of bits in a file offset, on hosts where this is settable.])
44905 + gl_cv_type_time_t_y2038=yes
44906 + fi
44907 + fi
44908 + if test $gl_cv_type_time_t_y2038 = no; then
44909 + AC_COMPILE_IFELSE(
44910 + [AC_LANG_SOURCE(
44911 + [[#ifdef _USE_32BIT_TIME_T
44912 + int ok;
44913 + #else
44914 + error fail
44915 + #endif
44916 + ]])],
44917 + [AC_MSG_FAILURE(
44918 + [The 'time_t' type stops working after January 2038.
44919 + Remove _USE_32BIT_TIME_T from the compiler flags.])],
44920 + [# If not cross-compiling and $1 says we should check,
44921 + # and 'touch' works with a large timestamp, then evidently wider time_t
44922 + # is desired and supported, so fail and ask the builder to fix the
44923 + # problem. Otherwise, just warn the builder.
44924 + m4_ifval([$1],
44925 + [if test $cross_compiling = no \
44926 + && TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null; then
44927 + case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in
44928 + *'Feb 7 2106'* | *'Feb 7 17:10'*)
44929 + AC_MSG_FAILURE(
44930 + [The 'time_t' type stops working after January 2038,
44931 + and your system appears to support a wider 'time_t'.
44932 + Try configuring with 'CC="${CC} -m64"'.
44933 + To build with a 32-bit time_t anyway (not recommended),
44934 + configure with '--disable-year2038'.]);;
44935 + esac
44936 + rm -f conftest.time
44937 + fi])
44938 + if test "$gl_warned_about_y2038" != yes; then
44939 + AC_MSG_WARN(
44940 + [The 'time_t' type stops working after January 2038,
44941 + and this package needs a wider 'time_t' type
44942 + if there is any way to access timestamps after that.
44943 + Configure with 'CC="${CC} -m64"' perhaps?])
44944 + gl_warned_about_y2038=yes
44945 + fi
44946 + ])
44947 + fi])
44948 +])
44949 +
44950 +AC_DEFUN([gl_YEAR2038],
44951 +[
44952 + gl_YEAR2038_BODY([require-year2038-safe])
44953 +])
44954
44955 diff --git a/autotools/m4/zzgnulib.m4 b/autotools/m4/zzgnulib.m4
44956 new file mode 100644
44957 index 0000000..fd73a20
44958 --- /dev/null
44959 +++ b/autotools/m4/zzgnulib.m4
44960 @@ -0,0 +1,23 @@
44961 +# zzgnulib.m4 serial 1
44962 +dnl Copyright (C) 2020-2022 Free Software Foundation, Inc.
44963 +dnl This file is free software; the Free Software Foundation
44964 +dnl gives unlimited permission to copy and/or distribute it,
44965 +dnl with or without modifications, as long as this notice is preserved.
44966 +
44967 +dnl This file must be named something that sorts after all other
44968 +dnl package- or gnulib-provided .m4 files - at least for those packages
44969 +dnl that redefine AC_PROG_CC.
44970 +
44971 +dnl Redefine AC_PROG_CC so that it ends with invocations of gl_COMPILER_CLANG
44972 +dnl and gl_COMPILER_PREPARE_CHECK_DECL.
44973 +m4_define([AC_PROG_CC],
44974 + m4_defn([AC_PROG_CC])[
44975 +gl_COMPILER_CLANG
44976 +gl_COMPILER_PREPARE_CHECK_DECL
44977 +])
44978 +
44979 +# gl_ZZGNULIB
44980 +# -----------
44981 +# Witness macro that this file has been included. Needed to force
44982 +# Automake to include this file after all other gnulib .m4 files.
44983 +AC_DEFUN([gl_ZZGNULIB])