1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2024 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 alignasof:
47 # Code from module alloca-opt:
48 # Code from module arpa_inet:
49 # Code from module assert-h:
50 # Code from module attribute:
51 # Code from module base64:
52 # Code from module basename-lgpl:
53 # Code from module btowc:
54 # Code from module builtin-expect:
55 # Code from module byteswap:
56 # Code from module c99:
57 # Code from module calloc-gnu:
58 # Code from module calloc-posix:
59 # Code from module cloexec:
60 # Code from module close:
61 # Code from module crypto/af_alg:
62 # Code from module crypto/sha256:
63 # Code from module crypto/sha256-buffer:
64 # Code from module dirname:
65 # Code from module dirname-lgpl:
66 # Code from module double-slash-root:
67 # Code from module dup2:
68 # Code from module environ:
69 # Code from module errno:
70 # Code from module error:
71 # Code from module error-h:
72 # Code from module exitfail:
73 # Code from module extensions:
74 # Code from module extern-inline:
75 # Code from module fcntl:
76 # Code from module fcntl-h:
77 # Code from module fd-hook:
78 # Code from module fflush:
79 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
80 # Code from module filename:
81 # Code from module float:
82 # Code from module floorf:
83 # Code from module fopen:
84 # Code from module fopen-gnu:
85 # Code from module fpurge:
86 # Code from module freading:
87 # Code from module free-posix:
88 # Code from module fseek:
89 # Code from module fseeko:
90 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
91 # Code from module fstat:
92 # Code from module fsusage:
93 # Code from module ftell:
94 # Code from module ftello:
95 AC_REQUIRE([gl_SET_LARGEFILE_SOURCE])
96 # Code from module gen-header:
97 # Code from module getaddrinfo:
98 # Code from module getdelim:
99 # Code from module getdtablesize:
100 # Code from module gethostname:
101 # Code from module getline:
102 # Code from module getloadavg:
103 # Code from module getopt-gnu:
104 # Code from module getopt-posix:
105 # Code from module getprogname:
106 # Code from module gettext-h:
107 # Code from module glibc-internal/dynarray:
108 # Code from module hard-locale:
109 # Code from module hostent:
110 # Code from module ialloc:
111 # Code from module idpriv-droptemp:
112 # Code from module idx:
113 # Code from module include_next:
114 # Code from module inet_ntop:
115 # Code from module intprops:
116 # Code from module inttypes-incomplete:
117 # Code from module iswblank:
118 # Code from module iswctype:
119 # Code from module iswdigit:
120 # Code from module iswpunct:
121 # Code from module iswxdigit:
122 # Code from module langinfo:
123 # Code from module largefile:
124 AC_REQUIRE([AC_SYS_LARGEFILE])
125 # Code from module libc-config:
126 # Code from module limits-h:
127 # Code from module localcharset:
128 # Code from module locale:
129 # Code from module localeconv:
130 # Code from module lock:
131 # Code from module lseek:
132 # Code from module malloc-gnu:
133 # Code from module malloc-posix:
134 # Code from module malloca:
135 # Code from module math:
136 # Code from module mbrtowc:
137 # Code from module mbsinit:
138 # Code from module mbszero:
139 # Code from module mbtowc:
140 # Code from module memchr:
141 # Code from module minmax:
142 # Code from module mktime:
143 # Code from module mktime-internal:
144 # Code from module mountlist:
145 # Code from module msvc-inval:
146 # Code from module msvc-nothrow:
147 # Code from module multiarch:
148 # Code from module netdb:
149 # Code from module netinet_in:
150 # Code from module nl_langinfo:
151 # Code from module nocrash:
152 # Code from module open:
153 # Code from module pathmax:
154 # Code from module realloc-gnu:
155 # Code from module realloc-posix:
156 # Code from module reallocarray:
157 # Code from module regex:
158 # Code from module servent:
159 # Code from module setenv:
160 # Code from module setlocale-null:
161 # Code from module setlocale-null-unlocked:
162 # Code from module size_max:
163 # Code from module snippet/_Noreturn:
164 # Code from module snippet/arg-nonnull:
165 # Code from module snippet/c++defs:
166 # Code from module snippet/warn-on-use:
167 # Code from module snprintf:
168 # Code from module socketlib:
169 # Code from module sockets:
170 # Code from module socklen:
171 # Code from module ssize_t:
172 # Code from module stat:
173 # Code from module stat-time:
174 # Code from module std-gnu11:
175 # Code from module stdbool:
176 # Code from module stdckdint:
177 # Code from module stddef:
178 # Code from module stdint:
179 # Code from module stdio:
181 # Code from module stdlib:
182 # Code from module strcase:
183 # Code from module strcasestr:
184 # Code from module strcasestr-simple:
185 # Code from module streq:
186 # Code from module strerror:
187 # Code from module strerror-override:
188 # Code from module string:
189 # Code from module strings:
190 # Code from module strsep:
191 # Code from module strstr-simple:
192 # Code from module sys_socket:
193 # Code from module sys_stat:
194 # Code from module sys_types:
195 # Code from module sys_uio:
196 # Code from module threadlib:
198 # Code from module time-h:
199 # Code from module time_r:
200 # Code from module timegm:
201 # Code from module unistd:
202 # Code from module unlocked-io-internal:
203 # Code from module unsetenv:
204 # Code from module vararrays:
205 # Code from module vasnprintf:
206 # Code from module vasprintf:
207 # Code from module verify:
208 # Code from module vsnprintf:
209 # Code from module wchar:
210 # Code from module wcrtomb:
211 # Code from module wctype:
212 # Code from module wctype-h:
213 # Code from module windows-mutex:
214 # Code from module windows-once:
215 # Code from module windows-recmutex:
216 # Code from module windows-rwlock:
217 # Code from module xalloc:
218 # Code from module xalloc-die:
219 # Code from module xalloc-oversized:
220 # Code from module xsize:
223 # This macro should be invoked from ./configure.ac, in the section
224 # "Check for header files, types and library functions".
227 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
228 gl_cond_libtool=false
232 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
233 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
234 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
235 m4_pushdef([gl_LIBSOURCES_LIST], [])
236 m4_pushdef([gl_LIBSOURCES_DIR], [])
237 m4_pushdef([GL_MACRO_PREFIX], [gl])
238 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
241 gl_source_base_prefix=
244 gl_CONDITIONAL_HEADER([alloca.h])
247 gl_ARPA_INET_H_REQUIRE_DEFAULTS
250 gl_CONDITIONAL_HEADER([assert.h])
254 gl_CONDITIONAL([GL_COND_OBJ_BTOWC],
255 [test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1])
256 AM_COND_IF([GL_COND_OBJ_BTOWC], [
259 gl_WCHAR_MODULE_INDICATOR([btowc])
262 gl_CONDITIONAL_HEADER([byteswap.h])
265 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then
268 gl_STDLIB_MODULE_INDICATOR([calloc-gnu])
270 if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then
273 gl_STDLIB_MODULE_INDICATOR([calloc-posix])
274 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
276 gl_CONDITIONAL([GL_COND_OBJ_CLOSE], [test $REPLACE_CLOSE = 1])
277 gl_UNISTD_MODULE_INDICATOR([close])
279 AC_REQUIRE([AC_C_RESTRICT])
281 gl_MODULE_INDICATOR([dirname])
284 gl_CONDITIONAL([GL_COND_OBJ_DUP2], [test $REPLACE_DUP2 = 1])
285 AM_COND_IF([GL_COND_OBJ_DUP2], [
288 gl_UNISTD_MODULE_INDICATOR([dup2])
290 gl_UNISTD_MODULE_INDICATOR([environ])
292 gl_CONDITIONAL_HEADER([errno.h])
294 AC_REQUIRE([gl_ERROR_H])
296 gl_CONDITIONAL([GL_COND_OBJ_ERROR], [test $COMPILE_ERROR_C = 1])
297 AM_COND_IF([GL_COND_OBJ_ERROR], [
300 m4_ifdef([AM_XGETTEXT_OPTION],
301 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
302 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
305 AC_REQUIRE([gl_EXTERN_INLINE])
307 gl_CONDITIONAL([GL_COND_OBJ_FCNTL],
308 [test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1])
309 gl_FCNTL_MODULE_INDICATOR([fcntl])
311 gl_FCNTL_H_REQUIRE_DEFAULTS
314 gl_CONDITIONAL([GL_COND_OBJ_FFLUSH], [test $REPLACE_FFLUSH = 1])
315 AM_COND_IF([GL_COND_OBJ_FFLUSH], [
318 gl_MODULE_INDICATOR([fflush])
319 gl_STDIO_MODULE_INDICATOR([fflush])
321 gl_CONDITIONAL_HEADER([float.h])
323 gl_CONDITIONAL([GL_COND_OBJ_FLOAT], [test $REPLACE_FLOAT_LDBL = 1])
324 gl_CONDITIONAL([GL_COND_OBJ_ITOLD], [test $REPLACE_ITOLD = 1])
326 gl_CONDITIONAL([GL_COND_OBJ_FLOORF],
327 [test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1])
328 gl_MATH_MODULE_INDICATOR([floorf])
330 if test $REPLACE_FOPEN = 1; then
334 gl_STDIO_MODULE_INDICATOR([fopen])
336 if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then
340 gl_MODULE_INDICATOR([fopen-gnu])
341 gl_STDIO_MODULE_INDICATOR([fopen-gnu])
343 gl_CONDITIONAL([GL_COND_OBJ_FPURGE],
344 [test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1])
345 gl_STDIO_MODULE_INDICATOR([fpurge])
348 gl_CONDITIONAL([GL_COND_OBJ_FREE], [test $REPLACE_FREE = 1])
349 AM_COND_IF([GL_COND_OBJ_FREE], [
352 gl_STDLIB_MODULE_INDICATOR([free-posix])
354 gl_CONDITIONAL([GL_COND_OBJ_FSEEK], [test $REPLACE_FSEEK = 1])
355 gl_STDIO_MODULE_INDICATOR([fseek])
357 gl_CONDITIONAL([GL_COND_OBJ_FSEEKO],
358 [test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1])
359 AM_COND_IF([GL_COND_OBJ_FSEEKO], [
362 gl_STDIO_MODULE_INDICATOR([fseeko])
364 gl_CONDITIONAL([GL_COND_OBJ_FSTAT], [test $REPLACE_FSTAT = 1])
365 AM_COND_IF([GL_COND_OBJ_FSTAT], [
368 AC_LIBOBJ([stat-w32])
373 gl_SYS_STAT_MODULE_INDICATOR([fstat])
375 gl_CONDITIONAL([GL_COND_OBJ_FSUSAGE], [test $gl_cv_fs_space = yes])
376 AM_COND_IF([GL_COND_OBJ_FSUSAGE], [
377 gl_PREREQ_FSUSAGE_EXTRA
380 gl_CONDITIONAL([GL_COND_OBJ_FTELL], [test $REPLACE_FTELL = 1])
381 gl_STDIO_MODULE_INDICATOR([ftell])
383 gl_CONDITIONAL([GL_COND_OBJ_FTELLO],
384 [test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1])
385 AM_COND_IF([GL_COND_OBJ_FTELLO], [
388 gl_STDIO_MODULE_INDICATOR([ftello])
390 gl_CONDITIONAL([GL_COND_OBJ_GETADDRINFO],
391 [test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1])
392 gl_CONDITIONAL([GL_COND_OBJ_GAI_STRERROR],
393 [test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1])
394 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
396 gl_CONDITIONAL([GL_COND_OBJ_GETDELIM],
397 [test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1])
398 AM_COND_IF([GL_COND_OBJ_GETDELIM], [
401 gl_STDIO_MODULE_INDICATOR([getdelim])
402 gl_FUNC_GETDTABLESIZE
403 gl_CONDITIONAL([GL_COND_OBJ_GETDTABLESIZE],
404 [test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1])
405 AM_COND_IF([GL_COND_OBJ_GETDTABLESIZE], [
406 gl_PREREQ_GETDTABLESIZE
408 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
410 gl_CONDITIONAL([GL_COND_OBJ_GETHOSTNAME], [test $HAVE_GETHOSTNAME = 0])
411 AM_COND_IF([GL_COND_OBJ_GETHOSTNAME], [
412 gl_PREREQ_GETHOSTNAME
414 gl_UNISTD_MODULE_INDICATOR([gethostname])
416 gl_CONDITIONAL([GL_COND_OBJ_GETLINE], [test $REPLACE_GETLINE = 1])
417 AM_COND_IF([GL_COND_OBJ_GETLINE], [
420 gl_STDIO_MODULE_INDICATOR([getline])
421 AC_REQUIRE([AC_CANONICAL_HOST])
423 gl_CONDITIONAL([GL_COND_OBJ_GETLOADAVG],
424 [test $HAVE_GETLOADAVG = 0 || test $REPLACE_GETLOADAVG = 1])
425 AM_COND_IF([GL_COND_OBJ_GETLOADAVG], [
428 gl_STDLIB_MODULE_INDICATOR([getloadavg])
430 dnl Because of the way gl_FUNC_GETOPT_GNU is implemented (the gl_getopt_required
431 dnl mechanism), there is no need to do any AC_LIBOBJ or AC_SUBST here; they are
432 dnl done in the getopt-posix module.
434 gl_CONDITIONAL_HEADER([getopt.h])
435 gl_CONDITIONAL_HEADER([getopt-cdefs.h])
437 gl_CONDITIONAL([GL_COND_OBJ_GETOPT], [test $REPLACE_GETOPT = 1])
438 AM_COND_IF([GL_COND_OBJ_GETOPT], [
439 dnl Define the substituted variable GNULIB_UNISTD_H_GETOPT to 1.
440 gl_UNISTD_H_REQUIRE_DEFAULTS
441 gl_MODULE_INDICATOR_INIT_VARIABLE([GNULIB_UNISTD_H_GETOPT], [1])
443 gl_UNISTD_MODULE_INDICATOR([getopt-posix])
445 gl_CONDITIONAL([GL_COND_OBJ_GETPROGNAME],
446 [test $HAVE_GETPROGNAME = 0 || test $REPLACE_GETPROGNAME = 1])
447 AM_COND_IF([GL_COND_OBJ_GETPROGNAME], [
448 gl_PREREQ_GETPROGNAME
450 gl_STDLIB_MODULE_INDICATOR([getprogname])
452 AC_SUBST([LTLIBINTL])
454 AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
455 HARD_LOCALE_LIB="$SETLOCALE_NULL_LIB"
456 AC_SUBST([HARD_LOCALE_LIB])
457 dnl For backward compatibility.
458 LIB_HARD_LOCALE="$HARD_LOCALE_LIB"
459 AC_SUBST([LIB_HARD_LOCALE])
463 gl_CONDITIONAL([GL_COND_OBJ_INET_NTOP],
464 [test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1])
465 AM_COND_IF([GL_COND_OBJ_INET_NTOP], [
468 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
469 gl_INTTYPES_INCOMPLETE
470 gl_INTTYPES_H_REQUIRE_DEFAULTS
473 gl_CONDITIONAL([GL_COND_OBJ_ISWBLANK],
474 [! { test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; } && { test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; }])
475 gl_WCTYPE_MODULE_INDICATOR([iswblank])
477 gl_CONDITIONAL([GL_COND_OBJ_ISWCTYPE],
478 [test $HAVE_WCTYPE_T = 0 || test $GNULIBHEADERS_OVERRIDE_WINT_T = 1 || test $REPLACE_WCTYPE = 1])
479 gl_WCTYPE_MODULE_INDICATOR([iswctype])
481 gl_CONDITIONAL([GL_COND_OBJ_ISWDIGIT],
482 [! { test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; } && test $REPLACE_ISWDIGIT = 1])
483 gl_WCTYPE_MODULE_INDICATOR([iswdigit])
485 gl_CONDITIONAL([GL_COND_OBJ_ISWPUNCT],
486 [! { test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; } && test $REPLACE_ISWPUNCT = 1])
487 gl_WCTYPE_MODULE_INDICATOR([iswpunct])
489 gl_CONDITIONAL([GL_COND_OBJ_ISWXDIGIT],
490 [! { test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; } && test $REPLACE_ISWXDIGIT = 1])
491 gl_WCTYPE_MODULE_INDICATOR([iswxdigit])
493 gl_LANGINFO_H_REQUIRE_DEFAULTS
495 AC_REQUIRE([gl_LARGEFILE])
498 gl_CONDITIONAL_HEADER([limits.h])
501 dnl For backward compatibility. Some packages still use this.
502 LOCALCHARSET_TESTS_ENVIRONMENT=
503 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
505 gl_LOCALE_H_REQUIRE_DEFAULTS
508 gl_CONDITIONAL([GL_COND_OBJ_LOCALECONV], [test $REPLACE_LOCALECONV = 1])
509 AM_COND_IF([GL_COND_OBJ_LOCALECONV], [
512 gl_LOCALE_MODULE_INDICATOR([localeconv])
514 gl_MODULE_INDICATOR([lock])
516 gl_CONDITIONAL([GL_COND_OBJ_LSEEK], [test $REPLACE_LSEEK = 1])
517 gl_UNISTD_MODULE_INDICATOR([lseek])
519 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
522 gl_STDLIB_MODULE_INDICATOR([malloc-gnu])
523 AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
524 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
527 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
530 gl_MATH_H_REQUIRE_DEFAULTS
533 gl_CONDITIONAL([GL_COND_OBJ_MBRTOWC],
534 [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1])
535 AM_COND_IF([GL_COND_OBJ_MBRTOWC], [
536 if test $REPLACE_MBSTATE_T = 1; then
537 AC_LIBOBJ([lc-charset-dispatch])
538 AC_LIBOBJ([mbtowc-lock])
539 gl_PREREQ_MBTOWC_LOCK
543 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
545 gl_CONDITIONAL([GL_COND_OBJ_MBSINIT],
546 [test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1])
547 AM_COND_IF([GL_COND_OBJ_MBSINIT], [
550 gl_WCHAR_MODULE_INDICATOR([mbsinit])
551 AC_REQUIRE([AC_TYPE_MBSTATE_T])
554 gl_WCHAR_MODULE_INDICATOR([mbszero])
556 gl_CONDITIONAL([GL_COND_OBJ_MBTOWC],
557 [test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1])
558 AM_COND_IF([GL_COND_OBJ_MBTOWC], [
561 gl_STDLIB_MODULE_INDICATOR([mbtowc])
563 gl_CONDITIONAL([GL_COND_OBJ_MEMCHR], [test $REPLACE_MEMCHR = 1])
564 AM_COND_IF([GL_COND_OBJ_MEMCHR], [
567 gl_STRING_MODULE_INDICATOR([memchr])
570 if test $REPLACE_MKTIME = 1; then
574 gl_TIME_MODULE_INDICATOR([mktime])
575 gl_FUNC_MKTIME_INTERNAL
576 if test $WANT_MKTIME_INTERNAL = 1; then
581 gl_CONDITIONAL([GL_COND_OBJ_MOUNTLIST], [test $gl_cv_list_mounted_fs = yes])
582 AM_COND_IF([GL_COND_OBJ_MOUNTLIST], [
583 gl_PREREQ_MOUNTLIST_EXTRA
585 AC_REQUIRE([gl_MSVC_INVAL])
586 gl_CONDITIONAL([GL_COND_OBJ_MSVC_INVAL],
587 [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
588 AC_REQUIRE([gl_MSVC_NOTHROW])
589 gl_CONDITIONAL([GL_COND_OBJ_MSVC_NOTHROW],
590 [test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1])
591 gl_MODULE_INDICATOR([msvc-nothrow])
594 gl_NETDB_H_REQUIRE_DEFAULTS
597 gl_CONDITIONAL_HEADER([netinet/in.h])
600 gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO],
601 [test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1])
602 gl_CONDITIONAL([GL_COND_OBJ_NL_LANGINFO_LOCK],
603 [test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0])
604 if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
605 gl_PREREQ_NL_LANGINFO_LOCK
607 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
609 gl_CONDITIONAL([GL_COND_OBJ_OPEN], [test $REPLACE_OPEN = 1])
610 AM_COND_IF([GL_COND_OBJ_OPEN], [
613 gl_FCNTL_MODULE_INDICATOR([open])
616 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
619 gl_STDLIB_MODULE_INDICATOR([realloc-gnu])
620 gl_FUNC_REALLOC_POSIX
621 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
624 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
626 gl_CONDITIONAL([GL_COND_OBJ_REALLOCARRAY],
627 [test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1])
628 AM_COND_IF([GL_COND_OBJ_REALLOCARRAY], [
629 gl_PREREQ_REALLOCARRAY
631 gl_MODULE_INDICATOR([reallocarray])
632 gl_STDLIB_MODULE_INDICATOR([reallocarray])
634 gl_CONDITIONAL([GL_COND_OBJ_REGEX], [test $ac_use_included_regex = yes])
635 AM_COND_IF([GL_COND_OBJ_REGEX], [
640 gl_CONDITIONAL([GL_COND_OBJ_SETENV],
641 [test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1])
642 gl_STDLIB_MODULE_INDICATOR([setenv])
643 gl_FUNC_SETLOCALE_NULL
644 gl_CONDITIONAL([GL_COND_OBJ_SETLOCALE_LOCK],
645 [test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0])
646 AM_COND_IF([GL_COND_OBJ_SETLOCALE_LOCK], [
647 gl_PREREQ_SETLOCALE_LOCK
649 gl_LOCALE_MODULE_INDICATOR([setlocale_null])
652 gl_STDIO_MODULE_INDICATOR([snprintf])
653 gl_MODULE_INDICATOR([snprintf])
654 AC_REQUIRE([gl_SOCKETLIB])
655 AC_REQUIRE([gl_SOCKETS])
659 gl_CONDITIONAL([GL_COND_OBJ_STAT], [test $REPLACE_STAT = 1])
660 AM_COND_IF([GL_COND_OBJ_STAT], [
663 AC_LIBOBJ([stat-w32])
668 gl_SYS_STAT_MODULE_INDICATOR([stat])
672 AC_CHECK_HEADERS_ONCE([stdckdint.h])
673 if test $ac_cv_header_stdckdint_h = yes; then
674 GL_GENERATE_STDCKDINT_H=false
676 GL_GENERATE_STDCKDINT_H=true
678 gl_CONDITIONAL_HEADER([stdckdint.h])
681 gl_STDDEF_H_REQUIRE_DEFAULTS
682 gl_CONDITIONAL_HEADER([stddef.h])
685 gl_CONDITIONAL_HEADER([stdint.h])
686 dnl Because of gl_REPLACE_LIMITS_H:
687 gl_CONDITIONAL_HEADER([limits.h])
690 gl_STDIO_H_REQUIRE_DEFAULTS
692 gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1])
693 gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1])
694 dnl No need to create extra modules for these functions. Everyone who uses
695 dnl <stdio.h> likely needs them.
696 gl_STDIO_MODULE_INDICATOR([fscanf])
697 gl_MODULE_INDICATOR([fscanf])
698 gl_STDIO_MODULE_INDICATOR([scanf])
699 gl_MODULE_INDICATOR([scanf])
700 gl_STDIO_MODULE_INDICATOR([fgetc])
701 gl_STDIO_MODULE_INDICATOR([getc])
702 gl_STDIO_MODULE_INDICATOR([getchar])
703 gl_STDIO_MODULE_INDICATOR([fgets])
704 gl_STDIO_MODULE_INDICATOR([fread])
705 dnl No need to create extra modules for these functions. Everyone who uses
706 dnl <stdio.h> likely needs them.
707 gl_STDIO_MODULE_INDICATOR([fprintf])
708 gl_STDIO_MODULE_INDICATOR([printf])
709 gl_STDIO_MODULE_INDICATOR([vfprintf])
710 gl_STDIO_MODULE_INDICATOR([vprintf])
711 gl_STDIO_MODULE_INDICATOR([fputc])
712 gl_STDIO_MODULE_INDICATOR([putc])
713 gl_STDIO_MODULE_INDICATOR([putchar])
714 gl_STDIO_MODULE_INDICATOR([fputs])
715 gl_STDIO_MODULE_INDICATOR([puts])
716 gl_STDIO_MODULE_INDICATOR([fwrite])
718 gl_STDLIB_H_REQUIRE_DEFAULTS
721 gl_CONDITIONAL([GL_COND_OBJ_STRCASECMP], [test $HAVE_STRCASECMP = 0])
722 AM_COND_IF([GL_COND_OBJ_STRCASECMP], [
725 gl_CONDITIONAL([GL_COND_OBJ_STRNCASECMP], [test $HAVE_STRNCASECMP = 0])
726 AM_COND_IF([GL_COND_OBJ_STRNCASECMP], [
727 gl_PREREQ_STRNCASECMP
730 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
731 AC_LIBOBJ([strcasestr])
734 gl_FUNC_STRCASESTR_SIMPLE
735 if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
736 AC_LIBOBJ([strcasestr])
739 gl_STRING_MODULE_INDICATOR([strcasestr])
741 gl_CONDITIONAL([GL_COND_OBJ_STRERROR], [test $REPLACE_STRERROR = 1])
742 gl_MODULE_INDICATOR([strerror])
743 gl_STRING_MODULE_INDICATOR([strerror])
744 AC_REQUIRE([gl_HEADER_ERRNO_H])
745 AC_REQUIRE([gl_FUNC_STRERROR_0])
746 gl_CONDITIONAL([GL_COND_OBJ_STRERROR_OVERRIDE],
747 [test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1])
748 AM_COND_IF([GL_COND_OBJ_STRERROR_OVERRIDE], [
749 gl_PREREQ_SYS_H_WINSOCK2
752 gl_STRING_H_REQUIRE_DEFAULTS
755 gl_STRINGS_H_REQUIRE_DEFAULTS
758 gl_CONDITIONAL([GL_COND_OBJ_STRSEP], [test $HAVE_STRSEP = 0])
759 AM_COND_IF([GL_COND_OBJ_STRSEP], [
762 gl_STRING_MODULE_INDICATOR([strsep])
763 gl_FUNC_STRSTR_SIMPLE
764 if test $REPLACE_STRSTR = 1; then
767 gl_STRING_MODULE_INDICATOR([strstr])
769 gl_SYS_SOCKET_H_REQUIRE_DEFAULTS
772 gl_SYS_STAT_H_REQUIRE_DEFAULTS
775 gl_SYS_TYPES_H_REQUIRE_DEFAULTS
778 gl_SYS_UIO_H_REQUIRE_DEFAULTS
780 AC_REQUIRE([gl_THREADLIB])
782 gl_TIME_H_REQUIRE_DEFAULTS
785 gl_CONDITIONAL([GL_COND_OBJ_TIME_R],
786 [test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1])
787 AM_COND_IF([GL_COND_OBJ_TIME_R], [
790 gl_TIME_MODULE_INDICATOR([time_r])
792 gl_CONDITIONAL([GL_COND_OBJ_TIMEGM],
793 [test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1])
794 AM_COND_IF([GL_COND_OBJ_TIMEGM], [
797 gl_TIME_MODULE_INDICATOR([timegm])
799 gl_UNISTD_H_REQUIRE_DEFAULTS
801 gl_FUNC_GLIBC_UNLOCKED_IO
803 gl_CONDITIONAL([GL_COND_OBJ_UNSETENV],
804 [test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1])
805 AM_COND_IF([GL_COND_OBJ_UNSETENV], [
808 gl_STDLIB_MODULE_INDICATOR([unsetenv])
810 AC_REQUIRE([AC_C_RESTRICT])
813 gl_STDIO_MODULE_INDICATOR([vasprintf])
814 m4_ifdef([AM_XGETTEXT_OPTION],
815 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
816 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
818 gl_STDIO_MODULE_INDICATOR([vsnprintf])
820 gl_WCHAR_H_REQUIRE_DEFAULTS
823 gl_CONDITIONAL([GL_COND_OBJ_WCRTOMB],
824 [test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1])
825 AM_COND_IF([GL_COND_OBJ_WCRTOMB], [
828 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
830 gl_CONDITIONAL([GL_COND_OBJ_WCTYPE], [test $HAVE_WCTYPE = 0 || test $REPLACE_WCTYPE = 1])
831 gl_WCTYPE_MODULE_INDICATOR([wctype])
833 gl_WCTYPE_H_REQUIRE_DEFAULTS
835 AC_REQUIRE([AC_CANONICAL_HOST])
836 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_MUTEX],
837 [case "$host_os" in mingw* | windows*) true;; *) false;; esac])
838 AC_REQUIRE([AC_CANONICAL_HOST])
839 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_ONCE],
840 [case "$host_os" in mingw* | windows*) true;; *) false;; esac])
841 AC_REQUIRE([AC_CANONICAL_HOST])
842 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_RECMUTEX],
843 [case "$host_os" in mingw* | windows*) true;; *) false;; esac])
844 AC_REQUIRE([AC_CANONICAL_HOST])
845 gl_CONDITIONAL([GL_COND_OBJ_WINDOWS_RWLOCK],
846 [case "$host_os" in mingw* | windows*) true;; *) false;; esac])
848 gl_MODULE_INDICATOR([xalloc])
849 gl_MODULE_INDICATOR([xalloc-die])
851 # End of code from modules
852 m4_ifval(gl_LIBSOURCES_LIST, [
853 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
854 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
855 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
856 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
860 m4_if(m4_sysval, [0], [],
861 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
863 m4_popdef([GL_MODULE_INDICATOR_PREFIX])
864 m4_popdef([GL_MACRO_PREFIX])
865 m4_popdef([gl_LIBSOURCES_DIR])
866 m4_popdef([gl_LIBSOURCES_LIST])
867 m4_popdef([AC_LIBSOURCES])
868 m4_popdef([AC_REPLACE_FUNCS])
869 m4_popdef([AC_LIBOBJ])
870 AC_CONFIG_COMMANDS_PRE([
874 if test -n "$gl_LIBOBJS"; then
875 # Remove the extension.
877 sed_drop_objext='s/\.o$//;s/\.obj$//'
878 sed_dirname1='s,//*,/,g'
879 sed_dirname2='s,\(.\)/$,\1,'
880 sed_dirname3='s,^[^/]*$,.,'
881 sed_dirname4='s,\(.\)/[^/]*$,\1,'
882 sed_basename1='s,.*/,,'
884 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
885 gl_libobjs="$gl_libobjs $i.$ac_objext"
886 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
887 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
888 i_base=`echo "$i" | sed -e "$sed_basename1"`
889 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
892 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
893 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
894 AC_SUBST([gl_LIBOBJDEPS], [$gl_libobjdeps])
898 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
899 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
900 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
901 m4_pushdef([gltests_LIBSOURCES_LIST], [])
902 m4_pushdef([gltests_LIBSOURCES_DIR], [])
903 m4_pushdef([GL_MACRO_PREFIX], [gltests])
904 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
906 gl_source_base='tests'
907 gl_source_base_prefix=
909 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
911 AC_SUBST([gltests_WITNESS])
912 gl_module_indicator_condition=$gltests_WITNESS
913 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
914 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
915 m4_ifval(gltests_LIBSOURCES_LIST, [
916 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
917 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
918 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
919 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
923 m4_if(m4_sysval, [0], [],
924 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
926 m4_popdef([GL_MODULE_INDICATOR_PREFIX])
927 m4_popdef([GL_MACRO_PREFIX])
928 m4_popdef([gltests_LIBSOURCES_DIR])
929 m4_popdef([gltests_LIBSOURCES_LIST])
930 m4_popdef([AC_LIBSOURCES])
931 m4_popdef([AC_REPLACE_FUNCS])
932 m4_popdef([AC_LIBOBJ])
933 AC_CONFIG_COMMANDS_PRE([
937 if test -n "$gltests_LIBOBJS"; then
938 # Remove the extension.
940 sed_drop_objext='s/\.o$//;s/\.obj$//'
941 sed_dirname1='s,//*,/,g'
942 sed_dirname2='s,\(.\)/$,\1,'
943 sed_dirname3='s,^[^/]*$,.,'
944 sed_dirname4='s,\(.\)/[^/]*$,\1,'
945 sed_basename1='s,.*/,,'
947 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
948 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
949 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
950 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
951 i_base=`echo "$i" | sed -e "$sed_basename1"`
952 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
955 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
956 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
957 AC_SUBST([gltests_LIBOBJDEPS], [$gltests_libobjdeps])
959 AC_REQUIRE([gl_CC_GNULIB_WARNINGS])
960 LIBGNU_LIBDEPS="$gl_libdeps"
961 AC_SUBST([LIBGNU_LIBDEPS])
962 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
963 AC_SUBST([LIBGNU_LTLIBDEPS])
966 # Like AC_LIBOBJ, except that the module name goes
967 # into gl_LIBOBJS instead of into LIBOBJS.
968 AC_DEFUN([gl_LIBOBJ], [
969 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
970 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
973 # Like AC_REPLACE_FUNCS, except that the module name goes
974 # into gl_LIBOBJS instead of into LIBOBJS.
975 AC_DEFUN([gl_REPLACE_FUNCS], [
976 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
977 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
980 # Like AC_LIBSOURCES, except the directory where the source file is
981 # expected is derived from the gnulib-tool parameterization,
982 # and alloca is special cased (for the alloca-opt module).
983 # We could also entirely rely on EXTRA_lib..._SOURCES.
984 AC_DEFUN([gl_LIBSOURCES], [
985 m4_foreach([_gl_NAME], [$1], [
986 m4_if(_gl_NAME, [alloca.c], [], [
987 m4_define([gl_LIBSOURCES_DIR], [gl])
988 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
993 # Like AC_LIBOBJ, except that the module name goes
994 # into gltests_LIBOBJS instead of into LIBOBJS.
995 AC_DEFUN([gltests_LIBOBJ], [
996 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
997 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
1000 # Like AC_REPLACE_FUNCS, except that the module name goes
1001 # into gltests_LIBOBJS instead of into LIBOBJS.
1002 AC_DEFUN([gltests_REPLACE_FUNCS], [
1003 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1004 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
1007 # Like AC_LIBSOURCES, except the directory where the source file is
1008 # expected is derived from the gnulib-tool parameterization,
1009 # and alloca is special cased (for the alloca-opt module).
1010 # We could also entirely rely on EXTRA_lib..._SOURCES.
1011 AC_DEFUN([gltests_LIBSOURCES], [
1012 m4_foreach([_gl_NAME], [$1], [
1013 m4_if(_gl_NAME, [alloca.c], [], [
1014 m4_define([gltests_LIBSOURCES_DIR], [tests])
1015 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
1020 # This macro records the list of files which have been installed by
1021 # gnulib-tool and may be removed by future gnulib-tool invocations.
1022 AC_DEFUN([gl_FILE_LIST], [
1086 lib/getopt-cdefs.in.h
1089 lib/getopt-pfx-core.h
1090 lib/getopt-pfx-ext.h
1101 lib/glthread/threadlib.c
1106 lib/idpriv-droptemp.c
1110 lib/intprops-internal.h
1121 lib/lc-charset-dispatch.c
1122 lib/lc-charset-dispatch.h
1131 lib/malloc/dynarray-skeleton.c
1132 lib/malloc/dynarray.h
1133 lib/malloc/dynarray_at_failure.c
1134 lib/malloc/dynarray_emplace_enlarge.c
1135 lib/malloc/dynarray_finalize.c
1136 lib/malloc/dynarray_resize.c
1137 lib/malloc/dynarray_resize_clear.c
1142 lib/mbrtowc-impl-utf8.h
1154 lib/mktime-internal.h
1164 lib/nl_langinfo-lock.c
1177 lib/regex_internal.c
1178 lib/regex_internal.h
1181 lib/setlocale-lock.c
1182 lib/setlocale_null-unlocked.c
1183 lib/setlocale_null.c
1184 lib/setlocale_null.h
1209 lib/strerror-override.c
1210 lib/strerror-override.h
1244 lib/windows-initguard.h
1249 lib/windows-recmutex.c
1250 lib/windows-recmutex.h
1251 lib/windows-rwlock.c
1252 lib/windows-rwlock.h
1254 lib/xalloc-oversized.h
1261 m4/absolute-header.m4
1268 m4/builtin-expect.m4
1274 m4/double-slash-root.m4
1363 m4/pthread_rwlock_rdlock.m4
1369 m4/setlocale_null.m4