summaryrefslogtreecommitdiffstats
path: root/gl/m4/gnulib-comp.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/gnulib-comp.m4')
-rw-r--r--gl/m4/gnulib-comp.m4866
1 files changed, 662 insertions, 204 deletions
diff --git a/gl/m4/gnulib-comp.m4 b/gl/m4/gnulib-comp.m4
index 9a4f5027..644b9169 100644
--- a/gl/m4/gnulib-comp.m4
+++ b/gl/m4/gnulib-comp.m4
@@ -1,9 +1,9 @@
1# DO NOT EDIT! GENERATED AUTOMATICALLY! 1# DO NOT EDIT! GENERATED AUTOMATICALLY!
2# Copyright (C) 2002-2013 Free Software Foundation, Inc. 2# Copyright (C) 2002-2023 Free Software Foundation, Inc.
3# 3#
4# This file is free software; you can redistribute it and/or modify 4# This file is free software; you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by 5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3 of the License, or 6# the Free Software Foundation, either version 3 of the License, or
7# (at your option) any later version. 7# (at your option) any later version.
8# 8#
9# This file is distributed in the hope that it will be useful, 9# This file is distributed in the hope that it will be useful,
@@ -12,7 +12,7 @@
12# GNU General Public License for more details. 12# GNU General Public License for more details.
13# 13#
14# You should have received a copy of the GNU General Public License 14# You should have received a copy of the GNU General Public License
15# along with this file. If not, see <http://www.gnu.org/licenses/>. 15# along with this file. If not, see <https://www.gnu.org/licenses/>.
16# 16#
17# As a special exception to the GNU General Public License, 17# As a special exception to the GNU General Public License,
18# this file may be distributed as part of a program that 18# this file may be distributed as part of a program that
@@ -37,50 +37,93 @@ AC_DEFUN([gl_EARLY],
37 m4_pattern_allow([^gl_ES$])dnl a valid locale name 37 m4_pattern_allow([^gl_ES$])dnl a valid locale name
38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable 38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable 39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
40
41 # Pre-early section.
42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
40 AC_REQUIRE([gl_PROG_AR_RANLIB]) 43 AC_REQUIRE([gl_PROG_AR_RANLIB])
41 AC_REQUIRE([AM_PROG_CC_C_O]) 44
45 # Code from module absolute-header:
42 # Code from module alloca-opt: 46 # Code from module alloca-opt:
43 # Code from module arpa_inet: 47 # Code from module arpa_inet:
48 # Code from module assert-h:
49 # Code from module attribute:
44 # Code from module base64: 50 # Code from module base64:
51 # Code from module basename-lgpl:
45 # Code from module btowc: 52 # Code from module btowc:
46 # Code from module configmake: 53 # Code from module builtin-expect:
54 # Code from module byteswap:
55 # Code from module c99:
56 # Code from module calloc-gnu:
57 # Code from module calloc-posix:
58 # Code from module cloexec:
59 # Code from module close:
60 # Code from module crypto/af_alg:
47 # Code from module crypto/sha1: 61 # Code from module crypto/sha1:
62 # Code from module crypto/sha1-buffer:
48 # Code from module dirname: 63 # Code from module dirname:
49 # Code from module dirname-lgpl: 64 # Code from module dirname-lgpl:
50 # Code from module dosname:
51 # Code from module double-slash-root: 65 # Code from module double-slash-root:
66 # Code from module dup2:
52 # Code from module environ: 67 # Code from module environ:
53 # Code from module errno: 68 # Code from module errno:
54 # Code from module error: 69 # Code from module error:
55 # Code from module exitfail: 70 # Code from module exitfail:
56 # Code from module extensions: 71 # Code from module extensions:
57 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
58 # Code from module extern-inline: 72 # Code from module extern-inline:
73 # Code from module fcntl:
74 # Code from module fcntl-h:
59 # Code from module fd-hook: 75 # Code from module fd-hook:
76 # Code from module fflush:
77 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
78 # Code from module filename:
60 # Code from module float: 79 # Code from module float:
61 # Code from module floorf: 80 # Code from module floorf:
81 # Code from module fopen:
82 # Code from module fopen-gnu:
83 # Code from module fpurge:
84 # Code from module freading:
85 # Code from module free-posix:
86 # Code from module fseek:
87 # Code from module fseeko:
88 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
89 # Code from module fstat:
62 # Code from module fsusage: 90 # Code from module fsusage:
63 # Code from module full-read: 91 # Code from module ftell:
92 # Code from module ftello:
93 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
94 # Code from module gen-header:
64 # Code from module getaddrinfo: 95 # Code from module getaddrinfo:
96 # Code from module getdelim:
97 # Code from module getdtablesize:
65 # Code from module gethostname: 98 # Code from module gethostname:
99 # Code from module getline:
66 # Code from module getloadavg: 100 # Code from module getloadavg:
67 # Code from module getopt-gnu: 101 # Code from module getopt-gnu:
68 # Code from module getopt-posix: 102 # Code from module getopt-posix:
103 # Code from module getprogname:
69 # Code from module gettext: 104 # Code from module gettext:
70 # Code from module gettext-h: 105 # Code from module gettext-h:
106 # Code from module glibc-internal/dynarray:
107 # Code from module hard-locale:
71 # Code from module havelib: 108 # Code from module havelib:
72 # Code from module hostent: 109 # Code from module hostent:
110 # Code from module ialloc:
73 # Code from module idpriv-droptemp: 111 # Code from module idpriv-droptemp:
112 # Code from module idx:
74 # Code from module include_next: 113 # Code from module include_next:
75 # Code from module inet_ntop: 114 # Code from module inet_ntop:
76 # Code from module intprops: 115 # Code from module intprops:
116 # Code from module inttypes-incomplete:
77 # Code from module langinfo: 117 # Code from module langinfo:
78 # Code from module largefile: 118 # Code from module largefile:
79 AC_REQUIRE([AC_SYS_LARGEFILE]) 119 AC_REQUIRE([AC_SYS_LARGEFILE])
120 # Code from module libc-config:
121 # Code from module limits-h:
80 # Code from module localcharset: 122 # Code from module localcharset:
81 # Code from module locale: 123 # Code from module locale:
82 # Code from module localeconv: 124 # Code from module localeconv:
83 # Code from module lock: 125 # Code from module lock:
126 # Code from module lseek:
84 # Code from module malloc-gnu: 127 # Code from module malloc-gnu:
85 # Code from module malloc-posix: 128 # Code from module malloc-posix:
86 # Code from module malloca: 129 # Code from module malloca:
@@ -89,6 +132,7 @@ AC_DEFUN([gl_EARLY],
89 # Code from module mbsinit: 132 # Code from module mbsinit:
90 # Code from module mbtowc: 133 # Code from module mbtowc:
91 # Code from module memchr: 134 # Code from module memchr:
135 # Code from module minmax:
92 # Code from module mktime: 136 # Code from module mktime:
93 # Code from module mktime-internal: 137 # Code from module mktime-internal:
94 # Code from module mountlist: 138 # Code from module mountlist:
@@ -99,11 +143,15 @@ AC_DEFUN([gl_EARLY],
99 # Code from module netinet_in: 143 # Code from module netinet_in:
100 # Code from module nl_langinfo: 144 # Code from module nl_langinfo:
101 # Code from module nocrash: 145 # Code from module nocrash:
102 # Code from module read: 146 # Code from module open:
147 # Code from module pathmax:
148 # Code from module realloc-gnu:
149 # Code from module realloc-posix:
150 # Code from module reallocarray:
103 # Code from module regex: 151 # Code from module regex:
104 # Code from module safe-read:
105 # Code from module servent: 152 # Code from module servent:
106 # Code from module setenv: 153 # Code from module setenv:
154 # Code from module setlocale-null:
107 # Code from module size_max: 155 # Code from module size_max:
108 # Code from module snippet/_Noreturn: 156 # Code from module snippet/_Noreturn:
109 # Code from module snippet/arg-nonnull: 157 # Code from module snippet/arg-nonnull:
@@ -114,8 +162,12 @@ AC_DEFUN([gl_EARLY],
114 # Code from module sockets: 162 # Code from module sockets:
115 # Code from module socklen: 163 # Code from module socklen:
116 # Code from module ssize_t: 164 # Code from module ssize_t:
165 # Code from module stat:
166 # Code from module stat-time:
167 # Code from module std-gnu11:
117 # Code from module stdalign: 168 # Code from module stdalign:
118 # Code from module stdbool: 169 # Code from module stdbool:
170 # Code from module stdckdint:
119 # Code from module stddef: 171 # Code from module stddef:
120 # Code from module stdint: 172 # Code from module stdint:
121 # Code from module stdio: 173 # Code from module stdio:
@@ -128,11 +180,10 @@ AC_DEFUN([gl_EARLY],
128 # Code from module strerror-override: 180 # Code from module strerror-override:
129 # Code from module string: 181 # Code from module string:
130 # Code from module strings: 182 # Code from module strings:
131 # Code from module strndup:
132 # Code from module strnlen:
133 # Code from module strsep: 183 # Code from module strsep:
134 # Code from module strstr-simple: 184 # Code from module strstr-simple:
135 # Code from module sys_socket: 185 # Code from module sys_socket:
186 # Code from module sys_stat:
136 # Code from module sys_types: 187 # Code from module sys_types:
137 # Code from module sys_uio: 188 # Code from module sys_uio:
138 # Code from module threadlib: 189 # Code from module threadlib:
@@ -141,7 +192,9 @@ AC_DEFUN([gl_EARLY],
141 # Code from module time_r: 192 # Code from module time_r:
142 # Code from module timegm: 193 # Code from module timegm:
143 # Code from module unistd: 194 # Code from module unistd:
195 # Code from module unlocked-io-internal:
144 # Code from module unsetenv: 196 # Code from module unsetenv:
197 # Code from module vararrays:
145 # Code from module vasnprintf: 198 # Code from module vasnprintf:
146 # Code from module vasprintf: 199 # Code from module vasprintf:
147 # Code from module verify: 200 # Code from module verify:
@@ -149,11 +202,14 @@ AC_DEFUN([gl_EARLY],
149 # Code from module wchar: 202 # Code from module wchar:
150 # Code from module wcrtomb: 203 # Code from module wcrtomb:
151 # Code from module wctype-h: 204 # Code from module wctype-h:
205 # Code from module windows-mutex:
206 # Code from module windows-once:
207 # Code from module windows-recmutex:
208 # Code from module windows-rwlock:
152 # Code from module xalloc: 209 # Code from module xalloc:
153 # Code from module xalloc-die: 210 # Code from module xalloc-die:
154 # Code from module xalloc-oversized: 211 # Code from module xalloc-oversized:
155 # Code from module xsize: 212 # Code from module xsize:
156 # Code from module xstrndup:
157]) 213])
158 214
159# This macro should be invoked from ./configure.ac, in the section 215# This macro should be invoked from ./configure.ac, in the section
@@ -170,154 +226,303 @@ AC_DEFUN([gl_INIT],
170 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) 226 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
171 m4_pushdef([gl_LIBSOURCES_LIST], []) 227 m4_pushdef([gl_LIBSOURCES_LIST], [])
172 m4_pushdef([gl_LIBSOURCES_DIR], []) 228 m4_pushdef([gl_LIBSOURCES_DIR], [])
229 m4_pushdef([GL_MACRO_PREFIX], [gl])
230 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
173 gl_COMMON 231 gl_COMMON
174 gl_source_base='gl' 232 gl_source_base='gl'
233 gl_source_base_prefix=
175 gl_FUNC_ALLOCA 234 gl_FUNC_ALLOCA
176 gl_HEADER_ARPA_INET 235 gl_CONDITIONAL_HEADER([alloca.h])
236 AC_PROG_MKDIR_P
237 gl_ARPA_INET_H
238 gl_ARPA_INET_H_REQUIRE_DEFAULTS
239 AC_PROG_MKDIR_P
240 gl_ASSERT_H
241 gl_CONDITIONAL_HEADER([assert.h])
177 AC_PROG_MKDIR_P 242 AC_PROG_MKDIR_P
178 gl_FUNC_BASE64 243 gl_FUNC_BASE64
179 gl_FUNC_BTOWC 244 gl_FUNC_BTOWC
180 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then 245 gl_CONDITIONAL([GL_COND_OBJ_BTOWC],
181 AC_LIBOBJ([btowc]) 246 [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1])
247 AM_COND_IF([GL_COND_OBJ_BTOWC], [
182 gl_PREREQ_BTOWC 248 gl_PREREQ_BTOWC
183 fi 249 ])
184 gl_WCHAR_MODULE_INDICATOR([btowc]) 250 gl_WCHAR_MODULE_INDICATOR([btowc])
185 gl_CONFIGMAKE_PREP 251 gl___BUILTIN_EXPECT
252 gl_BYTESWAP
253 gl_CONDITIONAL_HEADER([byteswap.h])
254 AC_PROG_MKDIR_P
255 gl_FUNC_CALLOC_GNU
256 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then
257 AC_LIBOBJ([calloc])
258 fi
259 gl_STDLIB_MODULE_INDICATOR([calloc-gnu])
260 gl_FUNC_CALLOC_POSIX
261 if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then
262 AC_LIBOBJ([calloc])
263 fi
264 gl_STDLIB_MODULE_INDICATOR([calloc-posix])
265 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
266 gl_FUNC_CLOSE
267 gl_CONDITIONAL([GL_COND_OBJ_CLOSE], [test $REPLACE_CLOSE = 1])
268 gl_UNISTD_MODULE_INDICATOR([close])
269 gl_AF_ALG
270 AC_REQUIRE([AC_C_RESTRICT])
186 gl_SHA1 271 gl_SHA1
187 gl_DIRNAME
188 gl_MODULE_INDICATOR([dirname]) 272 gl_MODULE_INDICATOR([dirname])
189 gl_DIRNAME_LGPL
190 gl_DOUBLE_SLASH_ROOT 273 gl_DOUBLE_SLASH_ROOT
274 gl_FUNC_DUP2
275 gl_CONDITIONAL([GL_COND_OBJ_DUP2], [test $REPLACE_DUP2 = 1])
276 AM_COND_IF([GL_COND_OBJ_DUP2], [
277 gl_PREREQ_DUP2
278 ])
279 gl_UNISTD_MODULE_INDICATOR([dup2])
191 gl_ENVIRON 280 gl_ENVIRON
192 gl_UNISTD_MODULE_INDICATOR([environ]) 281 gl_UNISTD_MODULE_INDICATOR([environ])
193 gl_HEADER_ERRNO_H 282 gl_HEADER_ERRNO_H
283 gl_CONDITIONAL_HEADER([errno.h])
284 AC_PROG_MKDIR_P
194 gl_ERROR 285 gl_ERROR
195 if test $ac_cv_lib_error_at_line = no; then 286 gl_CONDITIONAL([GL_COND_OBJ_ERROR], [test "$ac_cv_lib_error_at_line" = no])
196 AC_LIBOBJ([error]) 287 AM_COND_IF([GL_COND_OBJ_ERROR], [
197 gl_PREREQ_ERROR 288 gl_PREREQ_ERROR
198 fi 289 ])
199 m4_ifdef([AM_XGETTEXT_OPTION], 290 m4_ifdef([AM_XGETTEXT_OPTION],
200 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format]) 291 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
201 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])]) 292 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
202 AC_REQUIRE([gl_EXTERN_INLINE]) 293 AC_REQUIRE([gl_EXTERN_INLINE])
294 gl_FUNC_FCNTL
295 gl_CONDITIONAL([GL_COND_OBJ_FCNTL],
296 [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1])
297 gl_FCNTL_MODULE_INDICATOR([fcntl])
298 gl_FCNTL_H
299 gl_FCNTL_H_REQUIRE_DEFAULTS
300 AC_PROG_MKDIR_P
301 gl_FUNC_FFLUSH
302 gl_CONDITIONAL([GL_COND_OBJ_FFLUSH], [test $REPLACE_FFLUSH = 1])
303 AM_COND_IF([GL_COND_OBJ_FFLUSH], [
304 gl_PREREQ_FFLUSH
305 ])
306 gl_MODULE_INDICATOR([fflush])
307 gl_STDIO_MODULE_INDICATOR([fflush])
203 gl_FLOAT_H 308 gl_FLOAT_H
204 if test $REPLACE_FLOAT_LDBL = 1; then 309 gl_CONDITIONAL_HEADER([float.h])
205 AC_LIBOBJ([float]) 310 AC_PROG_MKDIR_P
206 fi 311 gl_CONDITIONAL([GL_COND_OBJ_FLOAT], [test $REPLACE_FLOAT_LDBL = 1])
207 if test $REPLACE_ITOLD = 1; then 312 gl_CONDITIONAL([GL_COND_OBJ_ITOLD], [test $REPLACE_ITOLD = 1])
208 AC_LIBOBJ([itold])
209 fi
210 gl_FUNC_FLOORF 313 gl_FUNC_FLOORF
211 if test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1; then 314 gl_CONDITIONAL([GL_COND_OBJ_FLOORF],
212 AC_LIBOBJ([floorf]) 315 [test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1])
213 fi
214 gl_MATH_MODULE_INDICATOR([floorf]) 316 gl_MATH_MODULE_INDICATOR([floorf])
317 gl_FUNC_FOPEN
318 if test $REPLACE_FOPEN = 1; then
319 AC_LIBOBJ([fopen])
320 gl_PREREQ_FOPEN
321 fi
322 gl_STDIO_MODULE_INDICATOR([fopen])
323 gl_FUNC_FOPEN_GNU
324 if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then
325 AC_LIBOBJ([fopen])
326 gl_PREREQ_FOPEN
327 fi
328 gl_MODULE_INDICATOR([fopen-gnu])
329 gl_STDIO_MODULE_INDICATOR([fopen-gnu])
330 gl_FUNC_FPURGE
331 gl_CONDITIONAL([GL_COND_OBJ_FPURGE],
332 [test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1])
333 gl_STDIO_MODULE_INDICATOR([fpurge])
334 gl_FUNC_FREADING
335 gl_FUNC_FREE
336 gl_CONDITIONAL([GL_COND_OBJ_FREE], [test $REPLACE_FREE = 1])
337 AM_COND_IF([GL_COND_OBJ_FREE], [
338 gl_PREREQ_FREE
339 ])
340 gl_STDLIB_MODULE_INDICATOR([free-posix])
341 gl_FUNC_FSEEK
342 gl_CONDITIONAL([GL_COND_OBJ_FSEEK], [test $REPLACE_FSEEK = 1])
343 gl_STDIO_MODULE_INDICATOR([fseek])
344 gl_FUNC_FSEEKO
345 gl_CONDITIONAL([GL_COND_OBJ_FSEEKO],
346 [test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1])
347 AM_COND_IF([GL_COND_OBJ_FSEEKO], [
348 gl_PREREQ_FSEEKO
349 ])
350 gl_STDIO_MODULE_INDICATOR([fseeko])
351 gl_FUNC_FSTAT
352 gl_CONDITIONAL([GL_COND_OBJ_FSTAT], [test $REPLACE_FSTAT = 1])
353 AM_COND_IF([GL_COND_OBJ_FSTAT], [
354 case "$host_os" in
355 mingw*)
356 AC_LIBOBJ([stat-w32])
357 ;;
358 esac
359 gl_PREREQ_FSTAT
360 ])
361 gl_SYS_STAT_MODULE_INDICATOR([fstat])
215 gl_FSUSAGE 362 gl_FSUSAGE
216 if test $gl_cv_fs_space = yes; then 363 gl_CONDITIONAL([GL_COND_OBJ_FSUSAGE], [test $gl_cv_fs_space = yes])
217 AC_LIBOBJ([fsusage]) 364 AM_COND_IF([GL_COND_OBJ_FSUSAGE], [
218 gl_PREREQ_FSUSAGE_EXTRA 365 gl_PREREQ_FSUSAGE_EXTRA
219 fi 366 ])
367 gl_FUNC_FTELL
368 gl_CONDITIONAL([GL_COND_OBJ_FTELL], [test $REPLACE_FTELL = 1])
369 gl_STDIO_MODULE_INDICATOR([ftell])
370 gl_FUNC_FTELLO
371 gl_CONDITIONAL([GL_COND_OBJ_FTELLO],
372 [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1])
373 AM_COND_IF([GL_COND_OBJ_FTELLO], [
374 gl_PREREQ_FTELLO
375 ])
376 gl_STDIO_MODULE_INDICATOR([ftello])
220 gl_GETADDRINFO 377 gl_GETADDRINFO
221 if test $HAVE_GETADDRINFO = 0; then 378 gl_CONDITIONAL([GL_COND_OBJ_GETADDRINFO],
222 AC_LIBOBJ([getaddrinfo]) 379 [test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1])
223 fi 380 gl_CONDITIONAL([GL_COND_OBJ_GAI_STRERROR],
224 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then 381 [test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1])
225 AC_LIBOBJ([gai_strerror])
226 fi
227 gl_NETDB_MODULE_INDICATOR([getaddrinfo]) 382 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
383 gl_FUNC_GETDELIM
384 gl_CONDITIONAL([GL_COND_OBJ_GETDELIM],
385 [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1])
386 AM_COND_IF([GL_COND_OBJ_GETDELIM], [
387 gl_PREREQ_GETDELIM
388 ])
389 gl_STDIO_MODULE_INDICATOR([getdelim])
390 gl_FUNC_GETDTABLESIZE
391 gl_CONDITIONAL([GL_COND_OBJ_GETDTABLESIZE],
392 [test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1])
393 AM_COND_IF([GL_COND_OBJ_GETDTABLESIZE], [
394 gl_PREREQ_GETDTABLESIZE
395 ])
396 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
228 gl_FUNC_GETHOSTNAME 397 gl_FUNC_GETHOSTNAME
229 if test $HAVE_GETHOSTNAME = 0; then 398 gl_CONDITIONAL([GL_COND_OBJ_GETHOSTNAME], [test $HAVE_GETHOSTNAME = 0])
230 AC_LIBOBJ([gethostname]) 399 AM_COND_IF([GL_COND_OBJ_GETHOSTNAME], [
231 gl_PREREQ_GETHOSTNAME 400 gl_PREREQ_GETHOSTNAME
232 fi 401 ])
233 gl_UNISTD_MODULE_INDICATOR([gethostname]) 402 gl_UNISTD_MODULE_INDICATOR([gethostname])
403 gl_FUNC_GETLINE
404 gl_CONDITIONAL([GL_COND_OBJ_GETLINE], [test $REPLACE_GETLINE = 1])
405 AM_COND_IF([GL_COND_OBJ_GETLINE], [
406 gl_PREREQ_GETLINE
407 ])
408 gl_STDIO_MODULE_INDICATOR([getline])
409 AC_REQUIRE([AC_CANONICAL_HOST])
234 gl_GETLOADAVG 410 gl_GETLOADAVG
235 if test $HAVE_GETLOADAVG = 0; then 411 gl_CONDITIONAL([GL_COND_OBJ_GETLOADAVG], [test $HAVE_GETLOADAVG = 0])
236 AC_LIBOBJ([getloadavg]) 412 AM_COND_IF([GL_COND_OBJ_GETLOADAVG], [
237 gl_PREREQ_GETLOADAVG 413 gl_PREREQ_GETLOADAVG
238 fi 414 ])
239 gl_STDLIB_MODULE_INDICATOR([getloadavg]) 415 gl_STDLIB_MODULE_INDICATOR([getloadavg])
240 gl_FUNC_GETOPT_GNU 416 gl_FUNC_GETOPT_GNU
241 if test $REPLACE_GETOPT = 1; then 417 dnl Because of the way gl_FUNC_GETOPT_GNU is implemented (the gl_getopt_required
242 AC_LIBOBJ([getopt]) 418 dnl mechanism), there is no need to do any AC_LIBOBJ or AC_SUBST here; they are
243 AC_LIBOBJ([getopt1]) 419 dnl done in the getopt-posix module.
244 gl_PREREQ_GETOPT
245 dnl Arrange for unistd.h to include getopt.h.
246 GNULIB_GL_UNISTD_H_GETOPT=1
247 fi
248 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
249 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
250 gl_FUNC_GETOPT_POSIX 420 gl_FUNC_GETOPT_POSIX
251 if test $REPLACE_GETOPT = 1; then 421 gl_CONDITIONAL_HEADER([getopt.h])
252 AC_LIBOBJ([getopt]) 422 gl_CONDITIONAL_HEADER([getopt-cdefs.h])
253 AC_LIBOBJ([getopt1]) 423 AC_PROG_MKDIR_P
254 gl_PREREQ_GETOPT 424 gl_CONDITIONAL([GL_COND_OBJ_GETOPT], [test $REPLACE_GETOPT = 1])
255 dnl Arrange for unistd.h to include getopt.h. 425 AM_COND_IF([GL_COND_OBJ_GETOPT], [
256 GNULIB_GL_UNISTD_H_GETOPT=1 426 dnl Define the substituted variable GNULIB_UNISTD_H_GETOPT to 1.
257 fi 427 gl_UNISTD_H_REQUIRE_DEFAULTS
258 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT]) 428 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT], [1])
429 ])
430 gl_UNISTD_MODULE_INDICATOR([getopt-posix])
431 gl_FUNC_GETPROGNAME
259 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac. 432 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
260 AM_GNU_GETTEXT_VERSION([0.18.1]) 433 AM_GNU_GETTEXT_VERSION([0.20])
261 AC_SUBST([LIBINTL]) 434 AC_SUBST([LIBINTL])
262 AC_SUBST([LTLIBINTL]) 435 AC_SUBST([LTLIBINTL])
436 AC_PROG_MKDIR_P
437 AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
438 LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
439 AC_SUBST([LIB_HARD_LOCALE])
440 AC_DEFUN([gl_HAVE_MODULE_HAVELIB])
263 gl_HOSTENT 441 gl_HOSTENT
264 gl_IDPRIV 442 gl_IDPRIV
265 gl_FUNC_INET_NTOP 443 gl_FUNC_INET_NTOP
266 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then 444 gl_CONDITIONAL([GL_COND_OBJ_INET_NTOP],
267 AC_LIBOBJ([inet_ntop]) 445 [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1])
446 AM_COND_IF([GL_COND_OBJ_INET_NTOP], [
268 gl_PREREQ_INET_NTOP 447 gl_PREREQ_INET_NTOP
269 fi 448 ])
270 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop]) 449 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
450 gl_INTTYPES_INCOMPLETE
451 gl_INTTYPES_H_REQUIRE_DEFAULTS
452 AC_PROG_MKDIR_P
271 gl_LANGINFO_H 453 gl_LANGINFO_H
454 gl_LANGINFO_H_REQUIRE_DEFAULTS
455 AC_PROG_MKDIR_P
272 AC_REQUIRE([gl_LARGEFILE]) 456 AC_REQUIRE([gl_LARGEFILE])
457 gl___INLINE
458 gl_LIMITS_H
459 gl_CONDITIONAL_HEADER([limits.h])
460 AC_PROG_MKDIR_P
273 gl_LOCALCHARSET 461 gl_LOCALCHARSET
274 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\"" 462 dnl For backward compatibility. Some packages still use this.
463 LOCALCHARSET_TESTS_ENVIRONMENT=
275 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) 464 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
276 gl_LOCALE_H 465 gl_LOCALE_H
466 gl_LOCALE_H_REQUIRE_DEFAULTS
467 AC_PROG_MKDIR_P
277 gl_FUNC_LOCALECONV 468 gl_FUNC_LOCALECONV
278 if test $REPLACE_LOCALECONV = 1; then 469 gl_CONDITIONAL([GL_COND_OBJ_LOCALECONV], [test $REPLACE_LOCALECONV = 1])
279 AC_LIBOBJ([localeconv]) 470 AM_COND_IF([GL_COND_OBJ_LOCALECONV], [
280 gl_PREREQ_LOCALECONV 471 gl_PREREQ_LOCALECONV
281 fi 472 ])
282 gl_LOCALE_MODULE_INDICATOR([localeconv]) 473 gl_LOCALE_MODULE_INDICATOR([localeconv])
283 gl_LOCK 474 gl_LOCK
284 gl_MODULE_INDICATOR([lock]) 475 gl_MODULE_INDICATOR([lock])
476 gl_FUNC_LSEEK
477 gl_CONDITIONAL([GL_COND_OBJ_LSEEK], [test $REPLACE_LSEEK = 1])
478 gl_UNISTD_MODULE_INDICATOR([lseek])
285 gl_FUNC_MALLOC_GNU 479 gl_FUNC_MALLOC_GNU
286 if test $REPLACE_MALLOC = 1; then 480 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
287 AC_LIBOBJ([malloc]) 481 AC_LIBOBJ([malloc])
288 fi 482 fi
289 gl_MODULE_INDICATOR([malloc-gnu]) 483 gl_STDLIB_MODULE_INDICATOR([malloc-gnu])
290 gl_FUNC_MALLOC_POSIX 484 AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
291 if test $REPLACE_MALLOC = 1; then 485 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
292 AC_LIBOBJ([malloc]) 486 AC_LIBOBJ([malloc])
293 fi 487 fi
294 gl_STDLIB_MODULE_INDICATOR([malloc-posix]) 488 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
295 gl_MALLOCA 489 gl_MALLOCA
296 gl_MATH_H 490 gl_MATH_H
491 gl_MATH_H_REQUIRE_DEFAULTS
492 AC_PROG_MKDIR_P
297 gl_FUNC_MBRTOWC 493 gl_FUNC_MBRTOWC
298 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then 494 gl_CONDITIONAL([GL_COND_OBJ_MBRTOWC],
299 AC_LIBOBJ([mbrtowc]) 495 [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1])
496 AM_COND_IF([GL_COND_OBJ_MBRTOWC], [
497 if test $REPLACE_MBSTATE_T = 1; then
498 AC_LIBOBJ([lc-charset-dispatch])
499 AC_LIBOBJ([mbtowc-lock])
500 gl_PREREQ_MBTOWC_LOCK
501 fi
300 gl_PREREQ_MBRTOWC 502 gl_PREREQ_MBRTOWC
301 fi 503 ])
302 gl_WCHAR_MODULE_INDICATOR([mbrtowc]) 504 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
303 gl_FUNC_MBSINIT 505 gl_FUNC_MBSINIT
304 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then 506 gl_CONDITIONAL([GL_COND_OBJ_MBSINIT],
305 AC_LIBOBJ([mbsinit]) 507 [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1])
508 AM_COND_IF([GL_COND_OBJ_MBSINIT], [
306 gl_PREREQ_MBSINIT 509 gl_PREREQ_MBSINIT
307 fi 510 ])
308 gl_WCHAR_MODULE_INDICATOR([mbsinit]) 511 gl_WCHAR_MODULE_INDICATOR([mbsinit])
309 gl_FUNC_MBTOWC 512 gl_FUNC_MBTOWC
310 if test $REPLACE_MBTOWC = 1; then 513 gl_CONDITIONAL([GL_COND_OBJ_MBTOWC],
311 AC_LIBOBJ([mbtowc]) 514 [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1])
515 AM_COND_IF([GL_COND_OBJ_MBTOWC], [
312 gl_PREREQ_MBTOWC 516 gl_PREREQ_MBTOWC
313 fi 517 ])
314 gl_STDLIB_MODULE_INDICATOR([mbtowc]) 518 gl_STDLIB_MODULE_INDICATOR([mbtowc])
315 gl_FUNC_MEMCHR 519 gl_FUNC_MEMCHR
316 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then 520 gl_CONDITIONAL([GL_COND_OBJ_MEMCHR], [test $REPLACE_MEMCHR = 1])
317 AC_LIBOBJ([memchr]) 521 AM_COND_IF([GL_COND_OBJ_MEMCHR], [
318 gl_PREREQ_MEMCHR 522 gl_PREREQ_MEMCHR
319 fi 523 ])
320 gl_STRING_MODULE_INDICATOR([memchr]) 524 gl_STRING_MODULE_INDICATOR([memchr])
525 gl_MINMAX
321 gl_FUNC_MKTIME 526 gl_FUNC_MKTIME
322 if test $REPLACE_MKTIME = 1; then 527 if test $REPLACE_MKTIME = 1; then
323 AC_LIBOBJ([mktime]) 528 AC_LIBOBJ([mktime])
@@ -325,73 +530,162 @@ AC_DEFUN([gl_INIT],
325 fi 530 fi
326 gl_TIME_MODULE_INDICATOR([mktime]) 531 gl_TIME_MODULE_INDICATOR([mktime])
327 gl_FUNC_MKTIME_INTERNAL 532 gl_FUNC_MKTIME_INTERNAL
328 if test $REPLACE_MKTIME = 1; then 533 if test $WANT_MKTIME_INTERNAL = 1; then
329 AC_LIBOBJ([mktime]) 534 AC_LIBOBJ([mktime])
330 gl_PREREQ_MKTIME 535 gl_PREREQ_MKTIME
331 fi 536 fi
332 gl_MOUNTLIST 537 gl_MOUNTLIST
333 if test $gl_cv_list_mounted_fs = yes; then 538 gl_CONDITIONAL([GL_COND_OBJ_MOUNTLIST], [test $gl_cv_list_mounted_fs = yes])
334 AC_LIBOBJ([mountlist]) 539 AM_COND_IF([GL_COND_OBJ_MOUNTLIST], [
335 gl_PREREQ_MOUNTLIST_EXTRA 540 gl_PREREQ_MOUNTLIST_EXTRA
336 fi 541 ])
337 gl_MSVC_INVAL 542 AC_REQUIRE([gl_MSVC_INVAL])
338 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 543 gl_CONDITIONAL([GL_COND_OBJ_MSVC_INVAL],
339 AC_LIBOBJ([msvc-inval]) 544 [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
340 fi 545 AC_REQUIRE([gl_MSVC_NOTHROW])
341 gl_MSVC_NOTHROW 546 gl_CONDITIONAL([GL_COND_OBJ_MSVC_NOTHROW],
342 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then 547 [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
343 AC_LIBOBJ([msvc-nothrow]) 548 gl_MODULE_INDICATOR([msvc-nothrow])
344 fi
345 gl_MULTIARCH 549 gl_MULTIARCH
346 gl_HEADER_NETDB 550 gl_NETDB_H
551 gl_NETDB_H_REQUIRE_DEFAULTS
552 AC_PROG_MKDIR_P
347 gl_HEADER_NETINET_IN 553 gl_HEADER_NETINET_IN
554 gl_CONDITIONAL_HEADER([netinet/in.h])
348 AC_PROG_MKDIR_P 555 AC_PROG_MKDIR_P
349 gl_FUNC_NL_LANGINFO 556 gl_FUNC_NL_LANGINFO
350 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then 557 gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO],
351 AC_LIBOBJ([nl_langinfo]) 558 [test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1])
559 gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO_LOCK],
560 [test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0])
561 if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
562 gl_PREREQ_NL_LANGINFO_LOCK
352 fi 563 fi
353 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo]) 564 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
354 gl_FUNC_READ 565 gl_FUNC_OPEN
355 if test $REPLACE_READ = 1; then 566 gl_CONDITIONAL([GL_COND_OBJ_OPEN], [test $REPLACE_OPEN = 1])
356 AC_LIBOBJ([read]) 567 AM_COND_IF([GL_COND_OBJ_OPEN], [
357 gl_PREREQ_READ 568 gl_PREREQ_OPEN
569 ])
570 gl_FCNTL_MODULE_INDICATOR([open])
571 gl_PATHMAX
572 gl_FUNC_REALLOC_GNU
573 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
574 AC_LIBOBJ([realloc])
575 fi
576 gl_STDLIB_MODULE_INDICATOR([realloc-gnu])
577 gl_FUNC_REALLOC_POSIX
578 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
579 AC_LIBOBJ([realloc])
358 fi 580 fi
359 gl_UNISTD_MODULE_INDICATOR([read]) 581 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
582 gl_FUNC_REALLOCARRAY
583 gl_CONDITIONAL([GL_COND_OBJ_REALLOCARRAY],
584 [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1])
585 AM_COND_IF([GL_COND_OBJ_REALLOCARRAY], [
586 gl_PREREQ_REALLOCARRAY
587 ])
588 gl_MODULE_INDICATOR([reallocarray])
589 gl_STDLIB_MODULE_INDICATOR([reallocarray])
360 gl_REGEX 590 gl_REGEX
361 if test $ac_use_included_regex = yes; then 591 gl_CONDITIONAL([GL_COND_OBJ_REGEX], [test $ac_use_included_regex = yes])
362 AC_LIBOBJ([regex]) 592 AM_COND_IF([GL_COND_OBJ_REGEX], [
363 gl_PREREQ_REGEX 593 gl_PREREQ_REGEX
364 fi 594 ])
365 gl_PREREQ_SAFE_READ
366 gl_SERVENT 595 gl_SERVENT
367 gl_FUNC_SETENV 596 gl_FUNC_SETENV
368 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then 597 gl_CONDITIONAL([GL_COND_OBJ_SETENV],
369 AC_LIBOBJ([setenv]) 598 [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1])
370 fi
371 gl_STDLIB_MODULE_INDICATOR([setenv]) 599 gl_STDLIB_MODULE_INDICATOR([setenv])
600 gl_FUNC_SETLOCALE_NULL
601 gl_CONDITIONAL([GL_COND_OBJ_SETLOCALE_LOCK],
602 [test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0])
603 AM_COND_IF([GL_COND_OBJ_SETLOCALE_LOCK], [
604 gl_PREREQ_SETLOCALE_LOCK
605 ])
606 gl_LOCALE_MODULE_INDICATOR([setlocale_null])
372 gl_SIZE_MAX 607 gl_SIZE_MAX
373 gl_FUNC_SNPRINTF 608 gl_FUNC_SNPRINTF
374 gl_STDIO_MODULE_INDICATOR([snprintf]) 609 gl_STDIO_MODULE_INDICATOR([snprintf])
375 gl_MODULE_INDICATOR([snprintf]) 610 gl_MODULE_INDICATOR([snprintf])
376 gl_SOCKETLIB 611 AC_REQUIRE([gl_SOCKETLIB])
377 gl_SOCKETS 612 AC_REQUIRE([gl_SOCKETS])
378 gl_TYPE_SOCKLEN_T 613 gl_TYPE_SOCKLEN_T
379 gt_TYPE_SSIZE_T 614 gt_TYPE_SSIZE_T
615 gl_FUNC_STAT
616 gl_CONDITIONAL([GL_COND_OBJ_STAT], [test $REPLACE_STAT = 1])
617 AM_COND_IF([GL_COND_OBJ_STAT], [
618 case "$host_os" in
619 mingw*)
620 AC_LIBOBJ([stat-w32])
621 ;;
622 esac
623 gl_PREREQ_STAT
624 ])
625 gl_SYS_STAT_MODULE_INDICATOR([stat])
626 gl_STAT_TIME
627 gl_STAT_BIRTHTIME
380 gl_STDALIGN_H 628 gl_STDALIGN_H
381 AM_STDBOOL_H 629 gl_CONDITIONAL_HEADER([stdalign.h])
630 AC_PROG_MKDIR_P
631 gl_C_BOOL
632 AC_CHECK_HEADERS_ONCE([stdckdint.h])
633 if test $ac_cv_header_stdckdint_h = yes; then
634 GL_GENERATE_STDCKDINT_H=false
635 else
636 GL_GENERATE_STDCKDINT_H=true
637 fi
638 gl_CONDITIONAL_HEADER([stdckdint.h])
639 AC_PROG_MKDIR_P
382 gl_STDDEF_H 640 gl_STDDEF_H
641 gl_STDDEF_H_REQUIRE_DEFAULTS
642 gl_CONDITIONAL_HEADER([stddef.h])
643 AC_PROG_MKDIR_P
383 gl_STDINT_H 644 gl_STDINT_H
645 gl_CONDITIONAL_HEADER([stdint.h])
646 dnl Because of gl_REPLACE_LIMITS_H:
647 gl_CONDITIONAL_HEADER([limits.h])
648 AC_PROG_MKDIR_P
384 gl_STDIO_H 649 gl_STDIO_H
650 gl_STDIO_H_REQUIRE_DEFAULTS
651 AC_PROG_MKDIR_P
652 gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1])
653 gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1])
654 dnl No need to create extra modules for these functions. Everyone who uses
655 dnl <stdio.h> likely needs them.
656 gl_STDIO_MODULE_INDICATOR([fscanf])
657 gl_MODULE_INDICATOR([fscanf])
658 gl_STDIO_MODULE_INDICATOR([scanf])
659 gl_MODULE_INDICATOR([scanf])
660 gl_STDIO_MODULE_INDICATOR([fgetc])
661 gl_STDIO_MODULE_INDICATOR([getc])
662 gl_STDIO_MODULE_INDICATOR([getchar])
663 gl_STDIO_MODULE_INDICATOR([fgets])
664 gl_STDIO_MODULE_INDICATOR([fread])
665 dnl No need to create extra modules for these functions. Everyone who uses
666 dnl <stdio.h> likely needs them.
667 gl_STDIO_MODULE_INDICATOR([fprintf])
668 gl_STDIO_MODULE_INDICATOR([printf])
669 gl_STDIO_MODULE_INDICATOR([vfprintf])
670 gl_STDIO_MODULE_INDICATOR([vprintf])
671 gl_STDIO_MODULE_INDICATOR([fputc])
672 gl_STDIO_MODULE_INDICATOR([putc])
673 gl_STDIO_MODULE_INDICATOR([putchar])
674 gl_STDIO_MODULE_INDICATOR([fputs])
675 gl_STDIO_MODULE_INDICATOR([puts])
676 gl_STDIO_MODULE_INDICATOR([fwrite])
385 gl_STDLIB_H 677 gl_STDLIB_H
678 gl_STDLIB_H_REQUIRE_DEFAULTS
679 AC_PROG_MKDIR_P
386 gl_STRCASE 680 gl_STRCASE
387 if test $HAVE_STRCASECMP = 0; then 681 gl_CONDITIONAL([GL_COND_OBJ_STRCASECMP], [test $HAVE_STRCASECMP = 0])
388 AC_LIBOBJ([strcasecmp]) 682 AM_COND_IF([GL_COND_OBJ_STRCASECMP], [
389 gl_PREREQ_STRCASECMP 683 gl_PREREQ_STRCASECMP
390 fi 684 ])
391 if test $HAVE_STRNCASECMP = 0; then 685 gl_CONDITIONAL([GL_COND_OBJ_STRNCASECMP], [test $HAVE_STRNCASECMP = 0])
392 AC_LIBOBJ([strncasecmp]) 686 AM_COND_IF([GL_COND_OBJ_STRNCASECMP], [
393 gl_PREREQ_STRNCASECMP 687 gl_PREREQ_STRNCASECMP
394 fi 688 ])
395 gl_FUNC_STRCASESTR 689 gl_FUNC_STRCASESTR
396 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then 690 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
397 AC_LIBOBJ([strcasestr]) 691 AC_LIBOBJ([strcasestr])
@@ -404,68 +698,76 @@ AC_DEFUN([gl_INIT],
404 fi 698 fi
405 gl_STRING_MODULE_INDICATOR([strcasestr]) 699 gl_STRING_MODULE_INDICATOR([strcasestr])
406 gl_FUNC_STRERROR 700 gl_FUNC_STRERROR
407 if test $REPLACE_STRERROR = 1; then 701 gl_CONDITIONAL([GL_COND_OBJ_STRERROR], [test $REPLACE_STRERROR = 1])
408 AC_LIBOBJ([strerror])
409 fi
410 gl_MODULE_INDICATOR([strerror]) 702 gl_MODULE_INDICATOR([strerror])
411 gl_STRING_MODULE_INDICATOR([strerror]) 703 gl_STRING_MODULE_INDICATOR([strerror])
412 AC_REQUIRE([gl_HEADER_ERRNO_H]) 704 AC_REQUIRE([gl_HEADER_ERRNO_H])
413 AC_REQUIRE([gl_FUNC_STRERROR_0]) 705 AC_REQUIRE([gl_FUNC_STRERROR_0])
414 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then 706 gl_CONDITIONAL([GL_COND_OBJ_STRERROR_OVERRIDE],
415 AC_LIBOBJ([strerror-override]) 707 [test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1])
708 AM_COND_IF([GL_COND_OBJ_STRERROR_OVERRIDE], [
416 gl_PREREQ_SYS_H_WINSOCK2 709 gl_PREREQ_SYS_H_WINSOCK2
417 fi 710 ])
418 gl_HEADER_STRING_H 711 gl_STRING_H
419 gl_HEADER_STRINGS_H 712 gl_STRING_H_REQUIRE_DEFAULTS
420 gl_FUNC_STRNDUP 713 AC_PROG_MKDIR_P
421 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then 714 gl_STRINGS_H
422 AC_LIBOBJ([strndup]) 715 gl_STRINGS_H_REQUIRE_DEFAULTS
423 fi 716 AC_PROG_MKDIR_P
424 gl_STRING_MODULE_INDICATOR([strndup])
425 gl_FUNC_STRNLEN
426 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
427 AC_LIBOBJ([strnlen])
428 gl_PREREQ_STRNLEN
429 fi
430 gl_STRING_MODULE_INDICATOR([strnlen])
431 gl_FUNC_STRSEP 717 gl_FUNC_STRSEP
432 if test $HAVE_STRSEP = 0; then 718 gl_CONDITIONAL([GL_COND_OBJ_STRSEP], [test $HAVE_STRSEP = 0])
433 AC_LIBOBJ([strsep]) 719 AM_COND_IF([GL_COND_OBJ_STRSEP], [
434 gl_PREREQ_STRSEP 720 gl_PREREQ_STRSEP
435 fi 721 ])
436 gl_STRING_MODULE_INDICATOR([strsep]) 722 gl_STRING_MODULE_INDICATOR([strsep])
437 gl_FUNC_STRSTR_SIMPLE 723 gl_FUNC_STRSTR_SIMPLE
438 if test $REPLACE_STRSTR = 1; then 724 if test $REPLACE_STRSTR = 1; then
439 AC_LIBOBJ([strstr]) 725 AC_LIBOBJ([strstr])
440 fi 726 fi
441 gl_STRING_MODULE_INDICATOR([strstr]) 727 gl_STRING_MODULE_INDICATOR([strstr])
442 gl_HEADER_SYS_SOCKET 728 gl_SYS_SOCKET_H
729 gl_SYS_SOCKET_H_REQUIRE_DEFAULTS
730 AC_PROG_MKDIR_P
731 gl_SYS_STAT_H
732 gl_SYS_STAT_H_REQUIRE_DEFAULTS
443 AC_PROG_MKDIR_P 733 AC_PROG_MKDIR_P
444 gl_SYS_TYPES_H 734 gl_SYS_TYPES_H
735 gl_SYS_TYPES_H_REQUIRE_DEFAULTS
736 AC_PROG_MKDIR_P
737 gl_SYS_UIO_H
738 gl_SYS_UIO_H_REQUIRE_DEFAULTS
445 AC_PROG_MKDIR_P 739 AC_PROG_MKDIR_P
446 gl_HEADER_SYS_UIO 740 AC_REQUIRE([gl_THREADLIB])
741 gl_TIME_H
742 gl_TIME_H_REQUIRE_DEFAULTS
447 AC_PROG_MKDIR_P 743 AC_PROG_MKDIR_P
448 gl_THREADLIB
449 gl_HEADER_TIME_H
450 gl_TIME_R 744 gl_TIME_R
451 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then 745 gl_CONDITIONAL([GL_COND_OBJ_TIME_R],
452 AC_LIBOBJ([time_r]) 746 [test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1])
747 AM_COND_IF([GL_COND_OBJ_TIME_R], [
453 gl_PREREQ_TIME_R 748 gl_PREREQ_TIME_R
454 fi 749 ])
455 gl_TIME_MODULE_INDICATOR([time_r]) 750 gl_TIME_MODULE_INDICATOR([time_r])
456 gl_FUNC_TIMEGM 751 gl_FUNC_TIMEGM
457 if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then 752 gl_CONDITIONAL([GL_COND_OBJ_TIMEGM],
458 AC_LIBOBJ([timegm]) 753 [test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1])
754 AM_COND_IF([GL_COND_OBJ_TIMEGM], [
459 gl_PREREQ_TIMEGM 755 gl_PREREQ_TIMEGM
460 fi 756 ])
461 gl_TIME_MODULE_INDICATOR([timegm]) 757 gl_TIME_MODULE_INDICATOR([timegm])
462 gl_UNISTD_H 758 gl_UNISTD_H
759 gl_UNISTD_H_REQUIRE_DEFAULTS
760 AC_PROG_MKDIR_P
761 gl_FUNC_GLIBC_UNLOCKED_IO
463 gl_FUNC_UNSETENV 762 gl_FUNC_UNSETENV
464 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then 763 gl_CONDITIONAL([GL_COND_OBJ_UNSETENV],
465 AC_LIBOBJ([unsetenv]) 764 [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1])
765 AM_COND_IF([GL_COND_OBJ_UNSETENV], [
466 gl_PREREQ_UNSETENV 766 gl_PREREQ_UNSETENV
467 fi 767 ])
468 gl_STDLIB_MODULE_INDICATOR([unsetenv]) 768 gl_STDLIB_MODULE_INDICATOR([unsetenv])
769 AC_C_VARARRAYS
770 AC_REQUIRE([AC_C_RESTRICT])
469 gl_FUNC_VASNPRINTF 771 gl_FUNC_VASNPRINTF
470 gl_FUNC_VASPRINTF 772 gl_FUNC_VASPRINTF
471 gl_STDIO_MODULE_INDICATOR([vasprintf]) 773 gl_STDIO_MODULE_INDICATOR([vasprintf])
@@ -475,16 +777,34 @@ AC_DEFUN([gl_INIT],
475 gl_FUNC_VSNPRINTF 777 gl_FUNC_VSNPRINTF
476 gl_STDIO_MODULE_INDICATOR([vsnprintf]) 778 gl_STDIO_MODULE_INDICATOR([vsnprintf])
477 gl_WCHAR_H 779 gl_WCHAR_H
780 gl_WCHAR_H_REQUIRE_DEFAULTS
781 AC_PROG_MKDIR_P
478 gl_FUNC_WCRTOMB 782 gl_FUNC_WCRTOMB
479 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then 783 gl_CONDITIONAL([GL_COND_OBJ_WCRTOMB],
480 AC_LIBOBJ([wcrtomb]) 784 [test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1])
785 AM_COND_IF([GL_COND_OBJ_WCRTOMB], [
481 gl_PREREQ_WCRTOMB 786 gl_PREREQ_WCRTOMB
482 fi 787 ])
483 gl_WCHAR_MODULE_INDICATOR([wcrtomb]) 788 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
484 gl_WCTYPE_H 789 gl_WCTYPE_H
790 gl_WCTYPE_H_REQUIRE_DEFAULTS
791 AC_PROG_MKDIR_P
792 AC_REQUIRE([AC_CANONICAL_HOST])
793 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_MUTEX],
794 [case "$host_os" in mingw*) true;; *) false;; esac])
795 AC_REQUIRE([AC_CANONICAL_HOST])
796 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_ONCE],
797 [case "$host_os" in mingw*) true;; *) false;; esac])
798 AC_REQUIRE([AC_CANONICAL_HOST])
799 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_RECMUTEX],
800 [case "$host_os" in mingw*) true;; *) false;; esac])
801 AC_REQUIRE([AC_CANONICAL_HOST])
802 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_RWLOCK],
803 [case "$host_os" in mingw*) true;; *) false;; esac])
485 gl_XALLOC 804 gl_XALLOC
805 gl_MODULE_INDICATOR([xalloc])
806 gl_MODULE_INDICATOR([xalloc-die])
486 gl_XSIZE 807 gl_XSIZE
487 gl_XSTRNDUP
488 # End of code from modules 808 # End of code from modules
489 m4_ifval(gl_LIBSOURCES_LIST, [ 809 m4_ifval(gl_LIBSOURCES_LIST, [
490 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || 810 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
@@ -497,6 +817,8 @@ AC_DEFUN([gl_INIT],
497 m4_if(m4_sysval, [0], [], 817 m4_if(m4_sysval, [0], [],
498 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 818 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
499 ]) 819 ])
820 m4_popdef([GL_MODULE_INDICATOR_PREFIX])
821 m4_popdef([GL_MACRO_PREFIX])
500 m4_popdef([gl_LIBSOURCES_DIR]) 822 m4_popdef([gl_LIBSOURCES_DIR])
501 m4_popdef([gl_LIBSOURCES_LIST]) 823 m4_popdef([gl_LIBSOURCES_LIST])
502 m4_popdef([AC_LIBSOURCES]) 824 m4_popdef([AC_LIBSOURCES])
@@ -505,16 +827,28 @@ AC_DEFUN([gl_INIT],
505 AC_CONFIG_COMMANDS_PRE([ 827 AC_CONFIG_COMMANDS_PRE([
506 gl_libobjs= 828 gl_libobjs=
507 gl_ltlibobjs= 829 gl_ltlibobjs=
830 gl_libobjdeps=
508 if test -n "$gl_LIBOBJS"; then 831 if test -n "$gl_LIBOBJS"; then
509 # Remove the extension. 832 # Remove the extension.
833changequote(,)dnl
510 sed_drop_objext='s/\.o$//;s/\.obj$//' 834 sed_drop_objext='s/\.o$//;s/\.obj$//'
835 sed_dirname1='s,//*,/,g'
836 sed_dirname2='s,\(.\)/$,\1,'
837 sed_dirname3='s,^[^/]*$,.,'
838 sed_dirname4='s,\(.\)/[^/]*$,\1,'
839 sed_basename1='s,.*/,,'
840changequote([, ])dnl
511 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 841 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
512 gl_libobjs="$gl_libobjs $i.$ac_objext" 842 gl_libobjs="$gl_libobjs $i.$ac_objext"
513 gl_ltlibobjs="$gl_ltlibobjs $i.lo" 843 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
844 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
845 i_base=`echo "$i" | sed -e "$sed_basename1"`
846 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
514 done 847 done
515 fi 848 fi
516 AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) 849 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
517 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) 850 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
851 AC_SUBST([gl_LIBOBJDEPS], [$gl_libobjdeps])
518 ]) 852 ])
519 gltests_libdeps= 853 gltests_libdeps=
520 gltests_ltlibdeps= 854 gltests_ltlibdeps=
@@ -523,8 +857,11 @@ AC_DEFUN([gl_INIT],
523 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) 857 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
524 m4_pushdef([gltests_LIBSOURCES_LIST], []) 858 m4_pushdef([gltests_LIBSOURCES_LIST], [])
525 m4_pushdef([gltests_LIBSOURCES_DIR], []) 859 m4_pushdef([gltests_LIBSOURCES_DIR], [])
860 m4_pushdef([GL_MACRO_PREFIX], [gltests])
861 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
526 gl_COMMON 862 gl_COMMON
527 gl_source_base='tests' 863 gl_source_base='tests'
864 gl_source_base_prefix=
528changequote(,)dnl 865changequote(,)dnl
529 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 866 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
530changequote([, ])dnl 867changequote([, ])dnl
@@ -543,6 +880,8 @@ changequote([, ])dnl
543 m4_if(m4_sysval, [0], [], 880 m4_if(m4_sysval, [0], [],
544 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) 881 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
545 ]) 882 ])
883 m4_popdef([GL_MODULE_INDICATOR_PREFIX])
884 m4_popdef([GL_MACRO_PREFIX])
546 m4_popdef([gltests_LIBSOURCES_DIR]) 885 m4_popdef([gltests_LIBSOURCES_DIR])
547 m4_popdef([gltests_LIBSOURCES_LIST]) 886 m4_popdef([gltests_LIBSOURCES_LIST])
548 m4_popdef([AC_LIBSOURCES]) 887 m4_popdef([AC_LIBSOURCES])
@@ -551,17 +890,30 @@ changequote([, ])dnl
551 AC_CONFIG_COMMANDS_PRE([ 890 AC_CONFIG_COMMANDS_PRE([
552 gltests_libobjs= 891 gltests_libobjs=
553 gltests_ltlibobjs= 892 gltests_ltlibobjs=
893 gltests_libobjdeps=
554 if test -n "$gltests_LIBOBJS"; then 894 if test -n "$gltests_LIBOBJS"; then
555 # Remove the extension. 895 # Remove the extension.
896changequote(,)dnl
556 sed_drop_objext='s/\.o$//;s/\.obj$//' 897 sed_drop_objext='s/\.o$//;s/\.obj$//'
898 sed_dirname1='s,//*,/,g'
899 sed_dirname2='s,\(.\)/$,\1,'
900 sed_dirname3='s,^[^/]*$,.,'
901 sed_dirname4='s,\(.\)/[^/]*$,\1,'
902 sed_basename1='s,.*/,,'
903changequote([, ])dnl
557 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do 904 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
558 gltests_libobjs="$gltests_libobjs $i.$ac_objext" 905 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
559 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" 906 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
907 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
908 i_base=`echo "$i" | sed -e "$sed_basename1"`
909 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
560 done 910 done
561 fi 911 fi
562 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) 912 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
563 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) 913 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
914 AC_SUBST([gltests_LIBOBJDEPS], [$gltests_libobjdeps])
564 ]) 915 ])
916 AC_REQUIRE([gl_CC_GNULIB_WARNINGS])
565 LIBGNU_LIBDEPS="$gl_libdeps" 917 LIBGNU_LIBDEPS="$gl_libdeps"
566 AC_SUBST([LIBGNU_LIBDEPS]) 918 AC_SUBST([LIBGNU_LIBDEPS])
567 LIBGNU_LTLIBDEPS="$gl_ltlibdeps" 919 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
@@ -626,75 +978,130 @@ AC_DEFUN([gltests_LIBSOURCES], [
626# gnulib-tool and may be removed by future gnulib-tool invocations. 978# gnulib-tool and may be removed by future gnulib-tool invocations.
627AC_DEFUN([gl_FILE_LIST], [ 979AC_DEFUN([gl_FILE_LIST], [
628 build-aux/config.rpath 980 build-aux/config.rpath
629 build-aux/snippet/_Noreturn.h 981 lib/_Noreturn.h
630 build-aux/snippet/arg-nonnull.h 982 lib/af_alg.c
631 build-aux/snippet/c++defs.h 983 lib/af_alg.h
632 build-aux/snippet/warn-on-use.h
633 lib/alloca.in.h 984 lib/alloca.in.h
985 lib/arg-nonnull.h
634 lib/arpa_inet.in.h 986 lib/arpa_inet.in.h
635 lib/asnprintf.c 987 lib/asnprintf.c
636 lib/asprintf.c 988 lib/asprintf.c
989 lib/assert.in.h
990 lib/attribute.h
637 lib/base64.c 991 lib/base64.c
638 lib/base64.h 992 lib/base64.h
639 lib/basename-lgpl.c 993 lib/basename-lgpl.c
994 lib/basename-lgpl.h
640 lib/basename.c 995 lib/basename.c
641 lib/btowc.c 996 lib/btowc.c
642 lib/config.charset 997 lib/byteswap.in.h
998 lib/c++defs.h
999 lib/calloc.c
1000 lib/cdefs.h
1001 lib/cloexec.c
1002 lib/cloexec.h
1003 lib/close.c
643 lib/dirname-lgpl.c 1004 lib/dirname-lgpl.c
644 lib/dirname.c 1005 lib/dirname.c
645 lib/dirname.h 1006 lib/dirname.h
646 lib/dosname.h 1007 lib/dup2.c
1008 lib/dynarray.h
647 lib/errno.in.h 1009 lib/errno.in.h
648 lib/error.c 1010 lib/error.c
649 lib/error.h 1011 lib/error.h
650 lib/exitfail.c 1012 lib/exitfail.c
651 lib/exitfail.h 1013 lib/exitfail.h
1014 lib/fcntl.c
1015 lib/fcntl.in.h
652 lib/fd-hook.c 1016 lib/fd-hook.c
653 lib/fd-hook.h 1017 lib/fd-hook.h
1018 lib/fflush.c
1019 lib/filename.h
654 lib/float+.h 1020 lib/float+.h
655 lib/float.c 1021 lib/float.c
656 lib/float.in.h 1022 lib/float.in.h
657 lib/floor.c 1023 lib/floor.c
658 lib/floorf.c 1024 lib/floorf.c
1025 lib/fopen.c
1026 lib/fpurge.c
1027 lib/freading.c
1028 lib/freading.h
1029 lib/free.c
1030 lib/fseek.c
1031 lib/fseeko.c
1032 lib/fstat.c
659 lib/fsusage.c 1033 lib/fsusage.c
660 lib/fsusage.h 1034 lib/fsusage.h
661 lib/full-read.c 1035 lib/ftell.c
662 lib/full-read.h 1036 lib/ftello.c
663 lib/full-write.c
664 lib/gai_strerror.c 1037 lib/gai_strerror.c
665 lib/getaddrinfo.c 1038 lib/getaddrinfo.c
1039 lib/getdelim.c
1040 lib/getdtablesize.c
666 lib/gethostname.c 1041 lib/gethostname.c
1042 lib/getline.c
667 lib/getloadavg.c 1043 lib/getloadavg.c
1044 lib/getopt-cdefs.in.h
1045 lib/getopt-core.h
1046 lib/getopt-ext.h
1047 lib/getopt-pfx-core.h
1048 lib/getopt-pfx-ext.h
668 lib/getopt.c 1049 lib/getopt.c
669 lib/getopt.in.h 1050 lib/getopt.in.h
670 lib/getopt1.c 1051 lib/getopt1.c
671 lib/getopt_int.h 1052 lib/getopt_int.h
1053 lib/getprogname.c
1054 lib/getprogname.h
672 lib/gettext.h 1055 lib/gettext.h
1056 lib/gl_openssl.h
673 lib/glthread/lock.c 1057 lib/glthread/lock.c
674 lib/glthread/lock.h 1058 lib/glthread/lock.h
675 lib/glthread/threadlib.c 1059 lib/glthread/threadlib.c
1060 lib/hard-locale.c
1061 lib/hard-locale.h
1062 lib/ialloc.c
1063 lib/ialloc.h
676 lib/idpriv-droptemp.c 1064 lib/idpriv-droptemp.c
677 lib/idpriv.h 1065 lib/idpriv.h
1066 lib/idx.h
678 lib/inet_ntop.c 1067 lib/inet_ntop.c
1068 lib/intprops-internal.h
679 lib/intprops.h 1069 lib/intprops.h
1070 lib/inttypes.in.h
680 lib/itold.c 1071 lib/itold.c
681 lib/langinfo.in.h 1072 lib/langinfo.in.h
1073 lib/lc-charset-dispatch.c
1074 lib/lc-charset-dispatch.h
1075 lib/libc-config.h
1076 lib/limits.in.h
682 lib/localcharset.c 1077 lib/localcharset.c
683 lib/localcharset.h 1078 lib/localcharset.h
684 lib/locale.in.h 1079 lib/locale.in.h
685 lib/localeconv.c 1080 lib/localeconv.c
1081 lib/lseek.c
686 lib/malloc.c 1082 lib/malloc.c
1083 lib/malloc/dynarray-skeleton.c
1084 lib/malloc/dynarray.h
1085 lib/malloc/dynarray_at_failure.c
1086 lib/malloc/dynarray_emplace_enlarge.c
1087 lib/malloc/dynarray_finalize.c
1088 lib/malloc/dynarray_resize.c
1089 lib/malloc/dynarray_resize_clear.c
687 lib/malloca.c 1090 lib/malloca.c
688 lib/malloca.h 1091 lib/malloca.h
689 lib/malloca.valgrind
690 lib/math.c 1092 lib/math.c
691 lib/math.in.h 1093 lib/math.in.h
1094 lib/mbrtowc-impl-utf8.h
1095 lib/mbrtowc-impl.h
692 lib/mbrtowc.c 1096 lib/mbrtowc.c
693 lib/mbsinit.c 1097 lib/mbsinit.c
694 lib/mbtowc-impl.h 1098 lib/mbtowc-impl.h
1099 lib/mbtowc-lock.c
1100 lib/mbtowc-lock.h
695 lib/mbtowc.c 1101 lib/mbtowc.c
696 lib/memchr.c 1102 lib/memchr.c
697 lib/memchr.valgrind 1103 lib/memchr.valgrind
1104 lib/minmax.h
698 lib/mktime-internal.h 1105 lib/mktime-internal.h
699 lib/mktime.c 1106 lib/mktime.c
700 lib/mountlist.c 1107 lib/mountlist.c
@@ -705,33 +1112,45 @@ AC_DEFUN([gl_FILE_LIST], [
705 lib/msvc-nothrow.h 1112 lib/msvc-nothrow.h
706 lib/netdb.in.h 1113 lib/netdb.in.h
707 lib/netinet_in.in.h 1114 lib/netinet_in.in.h
1115 lib/nl_langinfo-lock.c
708 lib/nl_langinfo.c 1116 lib/nl_langinfo.c
1117 lib/open.c
1118 lib/pathmax.h
709 lib/printf-args.c 1119 lib/printf-args.c
710 lib/printf-args.h 1120 lib/printf-args.h
711 lib/printf-parse.c 1121 lib/printf-parse.c
712 lib/printf-parse.h 1122 lib/printf-parse.h
713 lib/read.c 1123 lib/realloc.c
714 lib/ref-add.sin 1124 lib/reallocarray.c
715 lib/ref-del.sin
716 lib/regcomp.c 1125 lib/regcomp.c
717 lib/regex.c 1126 lib/regex.c
718 lib/regex.h 1127 lib/regex.h
719 lib/regex_internal.c 1128 lib/regex_internal.c
720 lib/regex_internal.h 1129 lib/regex_internal.h
721 lib/regexec.c 1130 lib/regexec.c
722 lib/safe-read.c
723 lib/safe-read.h
724 lib/setenv.c 1131 lib/setenv.c
1132 lib/setlocale-lock.c
1133 lib/setlocale_null.c
1134 lib/setlocale_null.h
1135 lib/sha1-stream.c
725 lib/sha1.c 1136 lib/sha1.c
726 lib/sha1.h 1137 lib/sha1.h
727 lib/size_max.h 1138 lib/size_max.h
728 lib/snprintf.c 1139 lib/snprintf.c
729 lib/sockets.c 1140 lib/sockets.c
730 lib/sockets.h 1141 lib/sockets.h
1142 lib/stat-time.c
1143 lib/stat-time.h
1144 lib/stat-w32.c
1145 lib/stat-w32.h
1146 lib/stat.c
731 lib/stdalign.in.h 1147 lib/stdalign.in.h
732 lib/stdbool.in.h 1148 lib/stdckdint.in.h
733 lib/stddef.in.h 1149 lib/stddef.in.h
734 lib/stdint.in.h 1150 lib/stdint.in.h
1151 lib/stdio-impl.h
1152 lib/stdio-read.c
1153 lib/stdio-write.c
735 lib/stdio.in.h 1154 lib/stdio.in.h
736 lib/stdlib.in.h 1155 lib/stdlib.in.h
737 lib/str-two-way.h 1156 lib/str-two-way.h
@@ -745,12 +1164,12 @@ AC_DEFUN([gl_FILE_LIST], [
745 lib/strings.in.h 1164 lib/strings.in.h
746 lib/stripslash.c 1165 lib/stripslash.c
747 lib/strncasecmp.c 1166 lib/strncasecmp.c
748 lib/strndup.c
749 lib/strnlen.c
750 lib/strsep.c 1167 lib/strsep.c
751 lib/strstr.c 1168 lib/strstr.c
1169 lib/sys-limits.h
752 lib/sys_socket.c 1170 lib/sys_socket.c
753 lib/sys_socket.in.h 1171 lib/sys_socket.in.h
1172 lib/sys_stat.in.h
754 lib/sys_types.in.h 1173 lib/sys_types.in.h
755 lib/sys_uio.in.h 1174 lib/sys_uio.in.h
756 lib/time.in.h 1175 lib/time.in.h
@@ -758,6 +1177,7 @@ AC_DEFUN([gl_FILE_LIST], [
758 lib/timegm.c 1177 lib/timegm.c
759 lib/unistd.c 1178 lib/unistd.c
760 lib/unistd.in.h 1179 lib/unistd.in.h
1180 lib/unlocked-io.h
761 lib/unsetenv.c 1181 lib/unsetenv.c
762 lib/vasnprintf.c 1182 lib/vasnprintf.c
763 lib/vasnprintf.h 1183 lib/vasnprintf.h
@@ -765,27 +1185,43 @@ AC_DEFUN([gl_FILE_LIST], [
765 lib/verify.h 1185 lib/verify.h
766 lib/vsnprintf.c 1186 lib/vsnprintf.c
767 lib/w32sock.h 1187 lib/w32sock.h
1188 lib/warn-on-use.h
768 lib/wchar.in.h 1189 lib/wchar.in.h
769 lib/wcrtomb.c 1190 lib/wcrtomb.c
770 lib/wctype-h.c 1191 lib/wctype-h.c
771 lib/wctype.in.h 1192 lib/wctype.in.h
1193 lib/windows-initguard.h
1194 lib/windows-mutex.c
1195 lib/windows-mutex.h
1196 lib/windows-once.c
1197 lib/windows-once.h
1198 lib/windows-recmutex.c
1199 lib/windows-recmutex.h
1200 lib/windows-rwlock.c
1201 lib/windows-rwlock.h
772 lib/xalloc-die.c 1202 lib/xalloc-die.c
773 lib/xalloc-oversized.h 1203 lib/xalloc-oversized.h
774 lib/xalloc.h 1204 lib/xalloc.h
775 lib/xmalloc.c 1205 lib/xmalloc.c
776 lib/xsize.c 1206 lib/xsize.c
777 lib/xsize.h 1207 lib/xsize.h
778 lib/xstrndup.c
779 lib/xstrndup.h
780 m4/00gnulib.m4 1208 m4/00gnulib.m4
1209 m4/__inline.m4
1210 m4/absolute-header.m4
1211 m4/af_alg.m4
781 m4/alloca.m4 1212 m4/alloca.m4
782 m4/arpa_inet_h.m4 1213 m4/arpa_inet_h.m4
1214 m4/assert_h.m4
783 m4/base64.m4 1215 m4/base64.m4
784 m4/btowc.m4 1216 m4/btowc.m4
1217 m4/builtin-expect.m4
1218 m4/byteswap.m4
1219 m4/c-bool.m4
1220 m4/calloc.m4
1221 m4/close.m4
785 m4/codeset.m4 1222 m4/codeset.m4
786 m4/configmake.m4
787 m4/dirname.m4
788 m4/double-slash-root.m4 1223 m4/double-slash-root.m4
1224 m4/dup2.m4
789 m4/eealloc.m4 1225 m4/eealloc.m4
790 m4/environ.m4 1226 m4/environ.m4
791 m4/errno_h.m4 1227 m4/errno_h.m4
@@ -794,37 +1230,50 @@ AC_DEFUN([gl_FILE_LIST], [
794 m4/extensions.m4 1230 m4/extensions.m4
795 m4/extern-inline.m4 1231 m4/extern-inline.m4
796 m4/fcntl-o.m4 1232 m4/fcntl-o.m4
1233 m4/fcntl.m4
1234 m4/fcntl_h.m4
1235 m4/fflush.m4
797 m4/float_h.m4 1236 m4/float_h.m4
798 m4/floorf.m4 1237 m4/floorf.m4
1238 m4/fopen.m4
1239 m4/fpurge.m4
1240 m4/freading.m4
1241 m4/free.m4
1242 m4/fseek.m4
1243 m4/fseeko.m4
1244 m4/fstat.m4
799 m4/fstypename.m4 1245 m4/fstypename.m4
800 m4/fsusage.m4 1246 m4/fsusage.m4
1247 m4/ftell.m4
1248 m4/ftello.m4
801 m4/getaddrinfo.m4 1249 m4/getaddrinfo.m4
1250 m4/getdelim.m4
1251 m4/getdtablesize.m4
802 m4/gethostname.m4 1252 m4/gethostname.m4
1253 m4/getline.m4
803 m4/getloadavg.m4 1254 m4/getloadavg.m4
804 m4/getopt.m4 1255 m4/getopt.m4
1256 m4/getprogname.m4
805 m4/gettext.m4 1257 m4/gettext.m4
806 m4/glibc2.m4 1258 m4/gl-openssl.m4
807 m4/glibc21.m4
808 m4/gnulib-common.m4 1259 m4/gnulib-common.m4
1260 m4/host-cpu-c-abi.m4
809 m4/hostent.m4 1261 m4/hostent.m4
810 m4/iconv.m4 1262 m4/iconv.m4
811 m4/idpriv.m4 1263 m4/idpriv.m4
812 m4/include_next.m4 1264 m4/include_next.m4
813 m4/inet_ntop.m4 1265 m4/inet_ntop.m4
814 m4/intdiv0.m4 1266 m4/intl-thread-locale.m4
815 m4/intl.m4
816 m4/intldir.m4
817 m4/intlmacosx.m4 1267 m4/intlmacosx.m4
818 m4/intmax.m4
819 m4/intmax_t.m4 1268 m4/intmax_t.m4
820 m4/inttypes-pri.m4 1269 m4/inttypes.m4
821 m4/inttypes_h.m4 1270 m4/inttypes_h.m4
822 m4/langinfo_h.m4 1271 m4/langinfo_h.m4
823 m4/largefile.m4 1272 m4/largefile.m4
824 m4/lcmessage.m4
825 m4/lib-ld.m4 1273 m4/lib-ld.m4
826 m4/lib-link.m4 1274 m4/lib-link.m4
827 m4/lib-prefix.m4 1275 m4/lib-prefix.m4
1276 m4/limits-h.m4
828 m4/localcharset.m4 1277 m4/localcharset.m4
829 m4/locale-fr.m4 1278 m4/locale-fr.m4
830 m4/locale-ja.m4 1279 m4/locale-ja.m4
@@ -832,8 +1281,7 @@ AC_DEFUN([gl_FILE_LIST], [
832 m4/locale_h.m4 1281 m4/locale_h.m4
833 m4/localeconv.m4 1282 m4/localeconv.m4
834 m4/lock.m4 1283 m4/lock.m4
835 m4/longlong.m4 1284 m4/lseek.m4
836 m4/ls-mntd-fs.m4
837 m4/malloc.m4 1285 m4/malloc.m4
838 m4/malloca.m4 1286 m4/malloca.m4
839 m4/math_h.m4 1287 m4/math_h.m4
@@ -842,8 +1290,10 @@ AC_DEFUN([gl_FILE_LIST], [
842 m4/mbstate_t.m4 1290 m4/mbstate_t.m4
843 m4/mbtowc.m4 1291 m4/mbtowc.m4
844 m4/memchr.m4 1292 m4/memchr.m4
1293 m4/minmax.m4
845 m4/mktime.m4 1294 m4/mktime.m4
846 m4/mmap-anon.m4 1295 m4/mmap-anon.m4
1296 m4/mode_t.m4
847 m4/mountlist.m4 1297 m4/mountlist.m4
848 m4/msvc-inval.m4 1298 m4/msvc-inval.m4
849 m4/msvc-nothrow.m4 1299 m4/msvc-nothrow.m4
@@ -854,16 +1304,21 @@ AC_DEFUN([gl_FILE_LIST], [
854 m4/nls.m4 1304 m4/nls.m4
855 m4/nocrash.m4 1305 m4/nocrash.m4
856 m4/off_t.m4 1306 m4/off_t.m4
857 m4/onceonly.m4 1307 m4/open-cloexec.m4
1308 m4/open-slash.m4
1309 m4/open.m4
1310 m4/pathmax.m4
1311 m4/pid_t.m4
858 m4/po.m4 1312 m4/po.m4
859 m4/printf-posix.m4
860 m4/printf.m4 1313 m4/printf.m4
861 m4/progtest.m4 1314 m4/progtest.m4
862 m4/read.m4 1315 m4/pthread_rwlock_rdlock.m4
1316 m4/realloc.m4
1317 m4/reallocarray.m4
863 m4/regex.m4 1318 m4/regex.m4
864 m4/safe-read.m4
865 m4/servent.m4 1319 m4/servent.m4
866 m4/setenv.m4 1320 m4/setenv.m4
1321 m4/setlocale_null.m4
867 m4/sha1.m4 1322 m4/sha1.m4
868 m4/size_max.m4 1323 m4/size_max.m4
869 m4/snprintf.m4 1324 m4/snprintf.m4
@@ -872,8 +1327,10 @@ AC_DEFUN([gl_FILE_LIST], [
872 m4/socklen.m4 1327 m4/socklen.m4
873 m4/sockpfaf.m4 1328 m4/sockpfaf.m4
874 m4/ssize_t.m4 1329 m4/ssize_t.m4
1330 m4/stat-time.m4
1331 m4/stat.m4
1332 m4/std-gnu11.m4
875 m4/stdalign.m4 1333 m4/stdalign.m4
876 m4/stdbool.m4
877 m4/stddef_h.m4 1334 m4/stddef_h.m4
878 m4/stdint.m4 1335 m4/stdint.m4
879 m4/stdint_h.m4 1336 m4/stdint_h.m4
@@ -884,19 +1341,20 @@ AC_DEFUN([gl_FILE_LIST], [
884 m4/strerror.m4 1341 m4/strerror.m4
885 m4/string_h.m4 1342 m4/string_h.m4
886 m4/strings_h.m4 1343 m4/strings_h.m4
887 m4/strndup.m4
888 m4/strnlen.m4
889 m4/strsep.m4 1344 m4/strsep.m4
890 m4/strstr.m4 1345 m4/strstr.m4
891 m4/sys_socket_h.m4 1346 m4/sys_socket_h.m4
1347 m4/sys_stat_h.m4
892 m4/sys_types_h.m4 1348 m4/sys_types_h.m4
893 m4/sys_uio_h.m4 1349 m4/sys_uio_h.m4
894 m4/threadlib.m4 1350 m4/threadlib.m4
895 m4/time_h.m4 1351 m4/time_h.m4
896 m4/time_r.m4 1352 m4/time_r.m4
897 m4/timegm.m4 1353 m4/timegm.m4
898 m4/uintmax_t.m4 1354 m4/ungetc.m4
899 m4/unistd_h.m4 1355 m4/unistd_h.m4
1356 m4/unlocked-io.m4
1357 m4/vararrays.m4
900 m4/vasnprintf.m4 1358 m4/vasnprintf.m4
901 m4/vasprintf.m4 1359 m4/vasprintf.m4
902 m4/visibility.m4 1360 m4/visibility.m4
@@ -909,5 +1367,5 @@ AC_DEFUN([gl_FILE_LIST], [
909 m4/wint_t.m4 1367 m4/wint_t.m4
910 m4/xalloc.m4 1368 m4/xalloc.m4
911 m4/xsize.m4 1369 m4/xsize.m4
912 m4/xstrndup.m4 1370 m4/zzgnulib.m4
913]) 1371])