1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2023 Free Software Foundation, Inc.
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
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
9 # This file is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this file. If not, see <https://www.gnu.org/licenses/>.
17 # As a special exception to the GNU General Public License,
18 # this file may be distributed as part of a program that
19 # contains a configuration script generated by Autoconf, under
20 # the same distribution terms as the rest of that program.
22 # Generated by gnulib-tool.
24 # This file represents the compiled summary of the specification in
25 # gnulib-cache.m4. It lists the computed macro invocations that need
26 # to be invoked from configure.ac.
27 # In projects that use version control, this file can be treated like
31 # This macro should be invoked from ./configure.ac, in the section
32 # "Checks for programs", right after AC_PROG_CC, and certainly before
33 # any checks for libraries, header files, types and library functions.
36 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
37 m4_pattern_allow([^gl_ES$])dnl a valid locale name
38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43 AC_REQUIRE([gl_PROG_AR_RANLIB])
45 # Code from module absolute-header:
46 # Code from module alloca-opt:
47 # Code from module arpa_inet:
48 # Code from module assert-h:
49 # Code from module attribute:
50 # Code from module base64:
51 # Code from module basename-lgpl:
52 # Code from module btowc:
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:
61 # Code from module crypto/sha256:
62 # Code from module crypto/sha256-buffer:
63 # Code from module dirname:
64 # Code from module dirname-lgpl:
65 # Code from module double-slash-root:
66 # Code from module dup2:
67 # Code from module environ:
68 # Code from module errno:
69 # Code from module error:
70 # Code from module exitfail:
71 # Code from module extensions:
72 # Code from module extern-inline:
73 # Code from module fcntl:
74 # Code from module fcntl-h:
75 # Code from module fd-hook:
76 # Code from module fflush:
77 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
78 # Code from module filename:
79 # Code from module float:
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:
90 # Code from module fsusage:
91 # Code from module ftell:
92 # Code from module ftello:
93 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
94 # Code from module gen-header:
95 # Code from module getaddrinfo:
96 # Code from module getdelim:
97 # Code from module getdtablesize:
98 # Code from module gethostname:
99 # Code from module getline:
100 # Code from module getloadavg:
101 # Code from module getopt-gnu:
102 # Code from module getopt-posix:
103 # Code from module getprogname:
104 # Code from module gettext-h:
105 # Code from module glibc-internal/dynarray:
106 # Code from module hard-locale:
107 # Code from module hostent:
108 # Code from module ialloc:
109 # Code from module idpriv-droptemp:
110 # Code from module idx:
111 # Code from module include_next:
112 # Code from module inet_ntop:
113 # Code from module intprops:
114 # Code from module inttypes-incomplete:
115 # Code from module langinfo:
116 # Code from module largefile:
117 AC_REQUIRE([AC_SYS_LARGEFILE])
118 # Code from module libc-config:
119 # Code from module limits-h:
120 # Code from module localcharset:
121 # Code from module locale:
122 # Code from module localeconv:
123 # Code from module lock:
124 # Code from module lseek:
125 # Code from module malloc-gnu:
126 # Code from module malloc-posix:
127 # Code from module malloca:
128 # Code from module math:
129 # Code from module mbrtowc:
130 # Code from module mbsinit:
131 # Code from module mbtowc:
132 # Code from module memchr:
133 # Code from module minmax:
134 # Code from module mktime:
135 # Code from module mktime-internal:
136 # Code from module mountlist:
137 # Code from module msvc-inval:
138 # Code from module msvc-nothrow:
139 # Code from module multiarch:
140 # Code from module netdb:
141 # Code from module netinet_in:
142 # Code from module nl_langinfo:
143 # Code from module nocrash:
144 # Code from module open:
145 # Code from module pathmax:
146 # Code from module realloc-gnu:
147 # Code from module realloc-posix:
148 # Code from module reallocarray:
149 # Code from module regex:
150 # Code from module servent:
151 # Code from module setenv:
152 # Code from module setlocale-null:
153 # Code from module size_max:
154 # Code from module snippet/_Noreturn:
155 # Code from module snippet/arg-nonnull:
156 # Code from module snippet/c++defs:
157 # Code from module snippet/warn-on-use:
158 # Code from module snprintf:
159 # Code from module socketlib:
160 # Code from module sockets:
161 # Code from module socklen:
162 # Code from module ssize_t:
163 # Code from module stat:
164 # Code from module stat-time:
165 # Code from module std-gnu11:
166 # Code from module stdalign:
167 # Code from module stdbool:
168 # Code from module stdckdint:
169 # Code from module stddef:
170 # Code from module stdint:
171 # Code from module stdio:
172 # Code from module stdlib:
173 # Code from module strcase:
174 # Code from module strcasestr:
175 # Code from module strcasestr-simple:
176 # Code from module streq:
177 # Code from module strerror:
178 # Code from module strerror-override:
179 # Code from module string:
180 # Code from module strings:
181 # Code from module strsep:
182 # Code from module strstr-simple:
183 # Code from module sys_socket:
184 # Code from module sys_stat:
185 # Code from module sys_types:
186 # Code from module sys_uio:
187 # Code from module threadlib:
189 # Code from module time:
190 # Code from module time_r:
191 # Code from module timegm:
192 # Code from module unistd:
193 # Code from module unlocked-io-internal:
194 # Code from module unsetenv:
195 # Code from module vararrays:
196 # Code from module vasnprintf:
197 # Code from module vasprintf:
198 # Code from module verify:
199 # Code from module vsnprintf:
200 # Code from module wchar:
201 # Code from module wcrtomb:
202 # Code from module wctype-h:
203 # Code from module windows-mutex:
204 # Code from module windows-once:
205 # Code from module windows-recmutex:
206 # Code from module windows-rwlock:
207 # Code from module xalloc:
208 # Code from module xalloc-die:
209 # Code from module xalloc-oversized:
210 # Code from module xsize:
213 # This macro should be invoked from ./configure.ac, in the section
214 # "Check for header files, types and library functions".
217 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
218 gl_cond_libtool=false
222 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
223 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
224 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
225 m4_pushdef([gl_LIBSOURCES_LIST], [])
226 m4_pushdef([gl_LIBSOURCES_DIR], [])
227 m4_pushdef([GL_MACRO_PREFIX], [gl])
228 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
231 gl_source_base_prefix=
233 gl_CONDITIONAL_HEADER([alloca.h])
236 gl_ARPA_INET_H_REQUIRE_DEFAULTS
239 gl_CONDITIONAL_HEADER([assert.h])
243 gl_CONDITIONAL([GL_COND_OBJ_BTOWC],
244 [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1])
245 AM_COND_IF([GL_COND_OBJ_BTOWC], [
248 gl_WCHAR_MODULE_INDICATOR([btowc])
251 gl_CONDITIONAL_HEADER([byteswap.h])
254 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then
257 gl_STDLIB_MODULE_INDICATOR([calloc-gnu])
259 if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then
262 gl_STDLIB_MODULE_INDICATOR([calloc-posix])
263 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
265 gl_CONDITIONAL([GL_COND_OBJ_CLOSE], [test $REPLACE_CLOSE = 1])
266 gl_UNISTD_MODULE_INDICATOR([close])
268 AC_REQUIRE([AC_C_RESTRICT])
270 gl_MODULE_INDICATOR([dirname])
273 gl_CONDITIONAL([GL_COND_OBJ_DUP2], [test $REPLACE_DUP2 = 1])
274 AM_COND_IF([GL_COND_OBJ_DUP2], [
277 gl_UNISTD_MODULE_INDICATOR([dup2])
279 gl_UNISTD_MODULE_INDICATOR([environ])
281 gl_CONDITIONAL_HEADER([errno.h])
284 gl_CONDITIONAL([GL_COND_OBJ_ERROR], [test "$ac_cv_lib_error_at_line" = no])
285 AM_COND_IF([GL_COND_OBJ_ERROR], [
288 m4_ifdef([AM_XGETTEXT_OPTION],
289 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
290 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
291 AC_REQUIRE([gl_EXTERN_INLINE])
293 gl_CONDITIONAL([GL_COND_OBJ_FCNTL],
294 [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1])
295 gl_FCNTL_MODULE_INDICATOR([fcntl])
297 gl_FCNTL_H_REQUIRE_DEFAULTS
300 gl_CONDITIONAL([GL_COND_OBJ_FFLUSH], [test $REPLACE_FFLUSH = 1])
301 AM_COND_IF([GL_COND_OBJ_FFLUSH], [
304 gl_MODULE_INDICATOR([fflush])
305 gl_STDIO_MODULE_INDICATOR([fflush])
307 gl_CONDITIONAL_HEADER([float.h])
309 gl_CONDITIONAL([GL_COND_OBJ_FLOAT], [test $REPLACE_FLOAT_LDBL = 1])
310 gl_CONDITIONAL([GL_COND_OBJ_ITOLD], [test $REPLACE_ITOLD = 1])
312 gl_CONDITIONAL([GL_COND_OBJ_FLOORF],
313 [test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1])
314 gl_MATH_MODULE_INDICATOR([floorf])
316 if test $REPLACE_FOPEN = 1; then
320 gl_STDIO_MODULE_INDICATOR([fopen])
322 if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then
326 gl_MODULE_INDICATOR([fopen-gnu])
327 gl_STDIO_MODULE_INDICATOR([fopen-gnu])
329 gl_CONDITIONAL([GL_COND_OBJ_FPURGE],
330 [test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1])
331 gl_STDIO_MODULE_INDICATOR([fpurge])
334 gl_CONDITIONAL([GL_COND_OBJ_FREE], [test $REPLACE_FREE = 1])
335 AM_COND_IF([GL_COND_OBJ_FREE], [
338 gl_STDLIB_MODULE_INDICATOR([free-posix])
340 gl_CONDITIONAL([GL_COND_OBJ_FSEEK], [test $REPLACE_FSEEK = 1])
341 gl_STDIO_MODULE_INDICATOR([fseek])
343 gl_CONDITIONAL([GL_COND_OBJ_FSEEKO],
344 [test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1])
345 AM_COND_IF([GL_COND_OBJ_FSEEKO], [
348 gl_STDIO_MODULE_INDICATOR([fseeko])
350 gl_CONDITIONAL([GL_COND_OBJ_FSTAT], [test $REPLACE_FSTAT = 1])
351 AM_COND_IF([GL_COND_OBJ_FSTAT], [
354 AC_LIBOBJ([stat-w32])
359 gl_SYS_STAT_MODULE_INDICATOR([fstat])
361 gl_CONDITIONAL([GL_COND_OBJ_FSUSAGE], [test $gl_cv_fs_space = yes])
362 AM_COND_IF([GL_COND_OBJ_FSUSAGE], [
363 gl_PREREQ_FSUSAGE_EXTRA
366 gl_CONDITIONAL([GL_COND_OBJ_FTELL], [test $REPLACE_FTELL = 1])
367 gl_STDIO_MODULE_INDICATOR([ftell])
369 gl_CONDITIONAL([GL_COND_OBJ_FTELLO],
370 [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1])
371 AM_COND_IF([GL_COND_OBJ_FTELLO], [
374 gl_STDIO_MODULE_INDICATOR([ftello])
376 gl_CONDITIONAL([GL_COND_OBJ_GETADDRINFO],
377 [test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1])
378 gl_CONDITIONAL([GL_COND_OBJ_GAI_STRERROR],
379 [test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1])
380 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
382 gl_CONDITIONAL([GL_COND_OBJ_GETDELIM],
383 [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1])
384 AM_COND_IF([GL_COND_OBJ_GETDELIM], [
387 gl_STDIO_MODULE_INDICATOR([getdelim])
388 gl_FUNC_GETDTABLESIZE
389 gl_CONDITIONAL([GL_COND_OBJ_GETDTABLESIZE],
390 [test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1])
391 AM_COND_IF([GL_COND_OBJ_GETDTABLESIZE], [
392 gl_PREREQ_GETDTABLESIZE
394 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
396 gl_CONDITIONAL([GL_COND_OBJ_GETHOSTNAME], [test $HAVE_GETHOSTNAME = 0])
397 AM_COND_IF([GL_COND_OBJ_GETHOSTNAME], [
398 gl_PREREQ_GETHOSTNAME
400 gl_UNISTD_MODULE_INDICATOR([gethostname])
402 gl_CONDITIONAL([GL_COND_OBJ_GETLINE], [test $REPLACE_GETLINE = 1])
403 AM_COND_IF([GL_COND_OBJ_GETLINE], [
406 gl_STDIO_MODULE_INDICATOR([getline])
407 AC_REQUIRE([AC_CANONICAL_HOST])
409 gl_CONDITIONAL([GL_COND_OBJ_GETLOADAVG], [test $HAVE_GETLOADAVG = 0])
410 AM_COND_IF([GL_COND_OBJ_GETLOADAVG], [
413 gl_STDLIB_MODULE_INDICATOR([getloadavg])
415 dnl Because of the way gl_FUNC_GETOPT_GNU is implemented (the gl_getopt_required
416 dnl mechanism), there is no need to do any AC_LIBOBJ or AC_SUBST here; they are
417 dnl done in the getopt-posix module.
419 gl_CONDITIONAL_HEADER([getopt.h])
420 gl_CONDITIONAL_HEADER([getopt-cdefs.h])
422 gl_CONDITIONAL([GL_COND_OBJ_GETOPT], [test $REPLACE_GETOPT = 1])
423 AM_COND_IF([GL_COND_OBJ_GETOPT], [
424 dnl Define the substituted variable GNULIB_UNISTD_H_GETOPT to 1.
425 gl_UNISTD_H_REQUIRE_DEFAULTS
426 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT], [1])
428 gl_UNISTD_MODULE_INDICATOR([getopt-posix])
431 AC_SUBST([LTLIBINTL])
433 AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
434 LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
435 AC_SUBST([LIB_HARD_LOCALE])
439 gl_CONDITIONAL([GL_COND_OBJ_INET_NTOP],
440 [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1])
441 AM_COND_IF([GL_COND_OBJ_INET_NTOP], [
444 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
445 gl_INTTYPES_INCOMPLETE
446 gl_INTTYPES_H_REQUIRE_DEFAULTS
449 gl_LANGINFO_H_REQUIRE_DEFAULTS
451 AC_REQUIRE([gl_LARGEFILE])
454 gl_CONDITIONAL_HEADER([limits.h])
457 dnl For backward compatibility. Some packages still use this.
458 LOCALCHARSET_TESTS_ENVIRONMENT=
459 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
461 gl_LOCALE_H_REQUIRE_DEFAULTS
464 gl_CONDITIONAL([GL_COND_OBJ_LOCALECONV], [test $REPLACE_LOCALECONV = 1])
465 AM_COND_IF([GL_COND_OBJ_LOCALECONV], [
468 gl_LOCALE_MODULE_INDICATOR([localeconv])
470 gl_MODULE_INDICATOR([lock])
472 gl_CONDITIONAL([GL_COND_OBJ_LSEEK], [test $REPLACE_LSEEK = 1])
473 gl_UNISTD_MODULE_INDICATOR([lseek])
475 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
478 gl_STDLIB_MODULE_INDICATOR([malloc-gnu])
479 AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
480 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
483 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
486 gl_MATH_H_REQUIRE_DEFAULTS
489 gl_CONDITIONAL([GL_COND_OBJ_MBRTOWC],
490 [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1])
491 AM_COND_IF([GL_COND_OBJ_MBRTOWC], [
492 if test $REPLACE_MBSTATE_T = 1; then
493 AC_LIBOBJ([lc-charset-dispatch])
494 AC_LIBOBJ([mbtowc-lock])
495 gl_PREREQ_MBTOWC_LOCK
499 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
501 gl_CONDITIONAL([GL_COND_OBJ_MBSINIT],
502 [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1])
503 AM_COND_IF([GL_COND_OBJ_MBSINIT], [
506 gl_WCHAR_MODULE_INDICATOR([mbsinit])
508 gl_CONDITIONAL([GL_COND_OBJ_MBTOWC],
509 [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1])
510 AM_COND_IF([GL_COND_OBJ_MBTOWC], [
513 gl_STDLIB_MODULE_INDICATOR([mbtowc])
515 gl_CONDITIONAL([GL_COND_OBJ_MEMCHR], [test $REPLACE_MEMCHR = 1])
516 AM_COND_IF([GL_COND_OBJ_MEMCHR], [
519 gl_STRING_MODULE_INDICATOR([memchr])
522 if test $REPLACE_MKTIME = 1; then
526 gl_TIME_MODULE_INDICATOR([mktime])
527 gl_FUNC_MKTIME_INTERNAL
528 if test $WANT_MKTIME_INTERNAL = 1; then
533 gl_CONDITIONAL([GL_COND_OBJ_MOUNTLIST], [test $gl_cv_list_mounted_fs = yes])
534 AM_COND_IF([GL_COND_OBJ_MOUNTLIST], [
535 gl_PREREQ_MOUNTLIST_EXTRA
537 AC_REQUIRE([gl_MSVC_INVAL])
538 gl_CONDITIONAL([GL_COND_OBJ_MSVC_INVAL],
539 [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
540 AC_REQUIRE([gl_MSVC_NOTHROW])
541 gl_CONDITIONAL([GL_COND_OBJ_MSVC_NOTHROW],
542 [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
543 gl_MODULE_INDICATOR([msvc-nothrow])
546 gl_NETDB_H_REQUIRE_DEFAULTS
549 gl_CONDITIONAL_HEADER([netinet/in.h])
552 gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO],
553 [test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1])
554 gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO_LOCK],
555 [test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0])
556 if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
557 gl_PREREQ_NL_LANGINFO_LOCK
559 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
561 gl_CONDITIONAL([GL_COND_OBJ_OPEN], [test $REPLACE_OPEN = 1])
562 AM_COND_IF([GL_COND_OBJ_OPEN], [
565 gl_FCNTL_MODULE_INDICATOR([open])
568 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
571 gl_STDLIB_MODULE_INDICATOR([realloc-gnu])
572 gl_FUNC_REALLOC_POSIX
573 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
576 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
578 gl_CONDITIONAL([GL_COND_OBJ_REALLOCARRAY],
579 [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1])
580 AM_COND_IF([GL_COND_OBJ_REALLOCARRAY], [
581 gl_PREREQ_REALLOCARRAY
583 gl_MODULE_INDICATOR([reallocarray])
584 gl_STDLIB_MODULE_INDICATOR([reallocarray])
586 gl_CONDITIONAL([GL_COND_OBJ_REGEX], [test $ac_use_included_regex = yes])
587 AM_COND_IF([GL_COND_OBJ_REGEX], [
592 gl_CONDITIONAL([GL_COND_OBJ_SETENV],
593 [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1])
594 gl_STDLIB_MODULE_INDICATOR([setenv])
595 gl_FUNC_SETLOCALE_NULL
596 gl_CONDITIONAL([GL_COND_OBJ_SETLOCALE_LOCK],
597 [test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0])
598 AM_COND_IF([GL_COND_OBJ_SETLOCALE_LOCK], [
599 gl_PREREQ_SETLOCALE_LOCK
601 gl_LOCALE_MODULE_INDICATOR([setlocale_null])
604 gl_STDIO_MODULE_INDICATOR([snprintf])
605 gl_MODULE_INDICATOR([snprintf])
606 AC_REQUIRE([gl_SOCKETLIB])
607 AC_REQUIRE([gl_SOCKETS])
611 gl_CONDITIONAL([GL_COND_OBJ_STAT], [test $REPLACE_STAT = 1])
612 AM_COND_IF([GL_COND_OBJ_STAT], [
615 AC_LIBOBJ([stat-w32])
620 gl_SYS_STAT_MODULE_INDICATOR([stat])
624 gl_CONDITIONAL_HEADER([stdalign.h])
627 AC_CHECK_HEADERS_ONCE([stdckdint.h])
628 if test $ac_cv_header_stdckdint_h = yes; then
629 GL_GENERATE_STDCKDINT_H=false
631 GL_GENERATE_STDCKDINT_H=true
633 gl_CONDITIONAL_HEADER([stdckdint.h])
636 gl_STDDEF_H_REQUIRE_DEFAULTS
637 gl_CONDITIONAL_HEADER([stddef.h])
640 gl_CONDITIONAL_HEADER([stdint.h])
641 dnl Because of gl_REPLACE_LIMITS_H:
642 gl_CONDITIONAL_HEADER([limits.h])
645 gl_STDIO_H_REQUIRE_DEFAULTS
647 gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1])
648 gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1])
649 dnl No need to create extra modules for these functions. Everyone who uses
650 dnl <stdio.h> likely needs them.
651 gl_STDIO_MODULE_INDICATOR([fscanf])
652 gl_MODULE_INDICATOR([fscanf])
653 gl_STDIO_MODULE_INDICATOR([scanf])
654 gl_MODULE_INDICATOR([scanf])
655 gl_STDIO_MODULE_INDICATOR([fgetc])
656 gl_STDIO_MODULE_INDICATOR([getc])
657 gl_STDIO_MODULE_INDICATOR([getchar])
658 gl_STDIO_MODULE_INDICATOR([fgets])
659 gl_STDIO_MODULE_INDICATOR([fread])
660 dnl No need to create extra modules for these functions. Everyone who uses
661 dnl <stdio.h> likely needs them.
662 gl_STDIO_MODULE_INDICATOR([fprintf])
663 gl_STDIO_MODULE_INDICATOR([printf])
664 gl_STDIO_MODULE_INDICATOR([vfprintf])
665 gl_STDIO_MODULE_INDICATOR([vprintf])
666 gl_STDIO_MODULE_INDICATOR([fputc])
667 gl_STDIO_MODULE_INDICATOR([putc])
668 gl_STDIO_MODULE_INDICATOR([putchar])
669 gl_STDIO_MODULE_INDICATOR([fputs])
670 gl_STDIO_MODULE_INDICATOR([puts])
671 gl_STDIO_MODULE_INDICATOR([fwrite])
673 gl_STDLIB_H_REQUIRE_DEFAULTS
676 gl_CONDITIONAL([GL_COND_OBJ_STRCASECMP], [test $HAVE_STRCASECMP = 0])
677 AM_COND_IF([GL_COND_OBJ_STRCASECMP], [
680 gl_CONDITIONAL([GL_COND_OBJ_STRNCASECMP], [test $HAVE_STRNCASECMP = 0])
681 AM_COND_IF([GL_COND_OBJ_STRNCASECMP], [
682 gl_PREREQ_STRNCASECMP
685 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
686 AC_LIBOBJ([strcasestr])
689 gl_FUNC_STRCASESTR_SIMPLE
690 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
691 AC_LIBOBJ([strcasestr])
694 gl_STRING_MODULE_INDICATOR([strcasestr])
696 gl_CONDITIONAL([GL_COND_OBJ_STRERROR], [test $REPLACE_STRERROR = 1])
697 gl_MODULE_INDICATOR([strerror])
698 gl_STRING_MODULE_INDICATOR([strerror])
699 AC_REQUIRE([gl_HEADER_ERRNO_H])
700 AC_REQUIRE([gl_FUNC_STRERROR_0])
701 gl_CONDITIONAL([GL_COND_OBJ_STRERROR_OVERRIDE],
702 [test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1])
703 AM_COND_IF([GL_COND_OBJ_STRERROR_OVERRIDE], [
704 gl_PREREQ_SYS_H_WINSOCK2
707 gl_STRING_H_REQUIRE_DEFAULTS
710 gl_STRINGS_H_REQUIRE_DEFAULTS
713 gl_CONDITIONAL([GL_COND_OBJ_STRSEP], [test $HAVE_STRSEP = 0])
714 AM_COND_IF([GL_COND_OBJ_STRSEP], [
717 gl_STRING_MODULE_INDICATOR([strsep])
718 gl_FUNC_STRSTR_SIMPLE
719 if test $REPLACE_STRSTR = 1; then
722 gl_STRING_MODULE_INDICATOR([strstr])
724 gl_SYS_SOCKET_H_REQUIRE_DEFAULTS
727 gl_SYS_STAT_H_REQUIRE_DEFAULTS
730 gl_SYS_TYPES_H_REQUIRE_DEFAULTS
733 gl_SYS_UIO_H_REQUIRE_DEFAULTS
735 AC_REQUIRE([gl_THREADLIB])
737 gl_TIME_H_REQUIRE_DEFAULTS
740 gl_CONDITIONAL([GL_COND_OBJ_TIME_R],
741 [test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1])
742 AM_COND_IF([GL_COND_OBJ_TIME_R], [
745 gl_TIME_MODULE_INDICATOR([time_r])
747 gl_CONDITIONAL([GL_COND_OBJ_TIMEGM],
748 [test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1])
749 AM_COND_IF([GL_COND_OBJ_TIMEGM], [
752 gl_TIME_MODULE_INDICATOR([timegm])
754 gl_UNISTD_H_REQUIRE_DEFAULTS
756 gl_FUNC_GLIBC_UNLOCKED_IO
758 gl_CONDITIONAL([GL_COND_OBJ_UNSETENV],
759 [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1])
760 AM_COND_IF([GL_COND_OBJ_UNSETENV], [
763 gl_STDLIB_MODULE_INDICATOR([unsetenv])
765 AC_REQUIRE([AC_C_RESTRICT])
768 gl_STDIO_MODULE_INDICATOR([vasprintf])
769 m4_ifdef([AM_XGETTEXT_OPTION],
770 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
771 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
773 gl_STDIO_MODULE_INDICATOR([vsnprintf])
775 gl_WCHAR_H_REQUIRE_DEFAULTS
778 gl_CONDITIONAL([GL_COND_OBJ_WCRTOMB],
779 [test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1])
780 AM_COND_IF([GL_COND_OBJ_WCRTOMB], [
783 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
785 gl_WCTYPE_H_REQUIRE_DEFAULTS
787 AC_REQUIRE([AC_CANONICAL_HOST])
788 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_MUTEX],
789 [case "$host_os" in mingw*) true;; *) false;; esac])
790 AC_REQUIRE([AC_CANONICAL_HOST])
791 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_ONCE],
792 [case "$host_os" in mingw*) true;; *) false;; esac])
793 AC_REQUIRE([AC_CANONICAL_HOST])
794 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_RECMUTEX],
795 [case "$host_os" in mingw*) true;; *) false;; esac])
796 AC_REQUIRE([AC_CANONICAL_HOST])
797 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_RWLOCK],
798 [case "$host_os" in mingw*) true;; *) false;; esac])
800 gl_MODULE_INDICATOR([xalloc])
801 gl_MODULE_INDICATOR([xalloc-die])
803 # End of code from modules
804 m4_ifval(gl_LIBSOURCES_LIST, [
805 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
806 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
807 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
808 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
812 m4_if(m4_sysval, [0], [],
813 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
815 m4_popdef([GL_MODULE_INDICATOR_PREFIX])
816 m4_popdef([GL_MACRO_PREFIX])
817 m4_popdef([gl_LIBSOURCES_DIR])
818 m4_popdef([gl_LIBSOURCES_LIST])
819 m4_popdef([AC_LIBSOURCES])
820 m4_popdef([AC_REPLACE_FUNCS])
821 m4_popdef([AC_LIBOBJ])
822 AC_CONFIG_COMMANDS_PRE([
826 if test -n "$gl_LIBOBJS"; then
827 # Remove the extension.
829 sed_drop_objext='s/\.o$//;s/\.obj$//'
830 sed_dirname1='s,//*,/,g'
831 sed_dirname2='s,\(.\)/$,\1,'
832 sed_dirname3='s,^[^/]*$,.,'
833 sed_dirname4='s,\(.\)/[^/]*$,\1,'
834 sed_basename1='s,.*/,,'
836 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
837 gl_libobjs="$gl_libobjs $i.$ac_objext"
838 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
839 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
840 i_base=`echo "$i" | sed -e "$sed_basename1"`
841 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
844 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
845 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
846 AC_SUBST([gl_LIBOBJDEPS], [$gl_libobjdeps])
850 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
851 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
852 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
853 m4_pushdef([gltests_LIBSOURCES_LIST], [])
854 m4_pushdef([gltests_LIBSOURCES_DIR], [])
855 m4_pushdef([GL_MACRO_PREFIX], [gltests])
856 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
858 gl_source_base='tests'
859 gl_source_base_prefix=
861 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
863 AC_SUBST([gltests_WITNESS])
864 gl_module_indicator_condition=$gltests_WITNESS
865 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
866 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
867 m4_ifval(gltests_LIBSOURCES_LIST, [
868 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
869 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
870 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
871 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
875 m4_if(m4_sysval, [0], [],
876 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
878 m4_popdef([GL_MODULE_INDICATOR_PREFIX])
879 m4_popdef([GL_MACRO_PREFIX])
880 m4_popdef([gltests_LIBSOURCES_DIR])
881 m4_popdef([gltests_LIBSOURCES_LIST])
882 m4_popdef([AC_LIBSOURCES])
883 m4_popdef([AC_REPLACE_FUNCS])
884 m4_popdef([AC_LIBOBJ])
885 AC_CONFIG_COMMANDS_PRE([
889 if test -n "$gltests_LIBOBJS"; then
890 # Remove the extension.
892 sed_drop_objext='s/\.o$//;s/\.obj$//'
893 sed_dirname1='s,//*,/,g'
894 sed_dirname2='s,\(.\)/$,\1,'
895 sed_dirname3='s,^[^/]*$,.,'
896 sed_dirname4='s,\(.\)/[^/]*$,\1,'
897 sed_basename1='s,.*/,,'
899 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
900 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
901 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
902 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
903 i_base=`echo "$i" | sed -e "$sed_basename1"`
904 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
907 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
908 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
909 AC_SUBST([gltests_LIBOBJDEPS], [$gltests_libobjdeps])
911 AC_REQUIRE([gl_CC_GNULIB_WARNINGS])
912 LIBGNU_LIBDEPS="$gl_libdeps"
913 AC_SUBST([LIBGNU_LIBDEPS])
914 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
915 AC_SUBST([LIBGNU_LTLIBDEPS])
918 # Like AC_LIBOBJ, except that the module name goes
919 # into gl_LIBOBJS instead of into LIBOBJS.
920 AC_DEFUN([gl_LIBOBJ], [
921 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
922 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
925 # Like AC_REPLACE_FUNCS, except that the module name goes
926 # into gl_LIBOBJS instead of into LIBOBJS.
927 AC_DEFUN([gl_REPLACE_FUNCS], [
928 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
929 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
932 # Like AC_LIBSOURCES, except the directory where the source file is
933 # expected is derived from the gnulib-tool parameterization,
934 # and alloca is special cased (for the alloca-opt module).
935 # We could also entirely rely on EXTRA_lib..._SOURCES.
936 AC_DEFUN([gl_LIBSOURCES], [
937 m4_foreach([_gl_NAME], [$1], [
938 m4_if(_gl_NAME, [alloca.c], [], [
939 m4_define([gl_LIBSOURCES_DIR], [gl])
940 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
945 # Like AC_LIBOBJ, except that the module name goes
946 # into gltests_LIBOBJS instead of into LIBOBJS.
947 AC_DEFUN([gltests_LIBOBJ], [
948 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
949 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
952 # Like AC_REPLACE_FUNCS, except that the module name goes
953 # into gltests_LIBOBJS instead of into LIBOBJS.
954 AC_DEFUN([gltests_REPLACE_FUNCS], [
955 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
956 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
959 # Like AC_LIBSOURCES, except the directory where the source file is
960 # expected is derived from the gnulib-tool parameterization,
961 # and alloca is special cased (for the alloca-opt module).
962 # We could also entirely rely on EXTRA_lib..._SOURCES.
963 AC_DEFUN([gltests_LIBSOURCES], [
964 m4_foreach([_gl_NAME], [$1], [
965 m4_if(_gl_NAME, [alloca.c], [], [
966 m4_define([gltests_LIBSOURCES_DIR], [tests])
967 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
972 # This macro records the list of files which have been installed by
973 # gnulib-tool and may be removed by future gnulib-tool invocations.
974 AC_DEFUN([gl_FILE_LIST], [
1038 lib/getopt-cdefs.in.h
1041 lib/getopt-pfx-core.h
1042 lib/getopt-pfx-ext.h
1053 lib/glthread/threadlib.c
1058 lib/idpriv-droptemp.c
1062 lib/intprops-internal.h
1067 lib/lc-charset-dispatch.c
1068 lib/lc-charset-dispatch.h
1077 lib/malloc/dynarray-skeleton.c
1078 lib/malloc/dynarray.h
1079 lib/malloc/dynarray_at_failure.c
1080 lib/malloc/dynarray_emplace_enlarge.c
1081 lib/malloc/dynarray_finalize.c
1082 lib/malloc/dynarray_resize.c
1083 lib/malloc/dynarray_resize_clear.c
1088 lib/mbrtowc-impl-utf8.h
1099 lib/mktime-internal.h
1109 lib/nl_langinfo-lock.c
1122 lib/regex_internal.c
1123 lib/regex_internal.h
1126 lib/setlocale-lock.c
1127 lib/setlocale_null.c
1128 lib/setlocale_null.h
1154 lib/strerror-override.c
1155 lib/strerror-override.h
1187 lib/windows-initguard.h
1192 lib/windows-recmutex.c
1193 lib/windows-recmutex.h
1194 lib/windows-rwlock.c
1195 lib/windows-rwlock.h
1197 lib/xalloc-oversized.h
1204 m4/absolute-header.m4
1211 m4/builtin-expect.m4
1217 m4/double-slash-root.m4
1298 m4/pthread_rwlock_rdlock.m4
1304 m4/setlocale_null.m4