1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2021 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 AC_REQUIRE([AM_PROG_CC_C_O])
46 # Code from module absolute-header:
47 # Code from module alloca:
48 # Code from module alloca-opt:
49 # Code from module arpa_inet:
50 # Code from module assure:
51 # Code from module at-internal:
52 # Code from module attribute:
53 # Code from module basename-lgpl:
54 # Code from module btowc:
55 # Code from module builtin-expect:
56 # Code from module c99:
57 # Code from module canonicalize-lgpl:
58 # Code from module chdir:
59 # Code from module chdir-long:
60 # Code from module clock-time:
61 # Code from module cloexec:
62 # Code from module close:
63 # Code from module closedir:
64 # Code from module count-one-bits:
65 # Code from module ctype:
66 # Code from module d-ino:
67 # Code from module d-type:
68 # Code from module dirent:
69 # Code from module dirfd:
70 # Code from module dirname-lgpl:
71 # Code from module double-slash-root:
72 # Code from module dup:
73 # Code from module dup2:
74 # Code from module eloop-threshold:
75 # Code from module environ:
76 # Code from module errno:
77 # Code from module error:
78 # Code from module exitfail:
79 # Code from module extensions:
80 # Code from module extern-inline:
81 # Code from module fchdir:
82 # Code from module fcntl:
83 # Code from module fcntl-h:
84 # Code from module fd-hook:
85 # Code from module fd-safer-flag:
86 # Code from module fdopendir:
87 # Code from module filename:
88 # Code from module filenamecat-lgpl:
89 # Code from module flexmember:
90 # Code from module float:
91 # Code from module fnmatch:
92 # Code from module fnmatch-gnu:
93 # Code from module fnmatch-h:
94 # Code from module fpieee:
95 AC_REQUIRE([gl_FP_IEEE])
96 # Code from module fpucw:
97 # Code from module free-posix:
98 # Code from module frexp:
99 # Code from module frexpl:
100 # Code from module fstat:
101 # Code from module fstatat:
102 # Code from module getcwd:
103 # Code from module getcwd-lgpl:
104 # Code from module getdtablesize:
105 # Code from module getlogin_r:
106 # Code from module getprogname:
107 # Code from module getrandom:
108 # Code from module gettext-h:
109 # Code from module gettimeofday:
110 # Code from module gitlog-to-changelog:
111 # Code from module glob:
112 # Code from module glob-h:
113 # Code from module hard-locale:
114 # Code from module idx:
115 # Code from module include_next:
116 # Code from module inet_ntop:
117 # Code from module intprops:
118 # Code from module inttypes:
119 # Code from module inttypes-incomplete:
120 # Code from module isblank:
121 # Code from module isnand-nolibm:
122 # Code from module isnanl-nolibm:
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 lock:
130 # Code from module lstat:
131 # Code from module malloc-posix:
132 # Code from module malloca:
133 # Code from module math:
134 # Code from module mbrtowc:
135 # Code from module mbsinit:
136 # Code from module mbsrtowcs:
137 # Code from module mbtowc:
138 # Code from module memchr:
139 # Code from module memmem:
140 # Code from module memmem-simple:
141 # Code from module mempcpy:
142 # Code from module memrchr:
143 # Code from module minmax:
144 # Code from module mkdir:
145 # Code from module mkdtemp:
146 # Code from module mkostemp:
147 # Code from module msvc-inval:
148 # Code from module msvc-nothrow:
149 # Code from module multiarch:
150 # Code from module netinet_in:
151 # Code from module nocrash:
152 # Code from module open:
153 # Code from module openat:
154 # Code from module openat-die:
155 # Code from module openat-h:
156 # Code from module opendir:
157 # Code from module pathmax:
158 # Code from module pipe-posix:
159 # Code from module rawmemchr:
160 # Code from module readdir:
161 # Code from module readlink:
162 # Code from module realloc-posix:
163 # Code from module rename:
164 # Code from module rewinddir:
165 # Code from module rmdir:
166 # Code from module same-inode:
167 # Code from module save-cwd:
168 # Code from module scratch_buffer:
169 # Code from module setenv:
170 # Code from module setlocale-null:
171 # Code from module signal-h:
172 # Code from module snippet/_Noreturn:
173 # Code from module snippet/arg-nonnull:
174 # Code from module snippet/c++defs:
175 # Code from module snippet/warn-on-use:
176 # Code from module socklen:
177 # Code from module ssize_t:
178 # Code from module stat:
179 # Code from module stat-time:
180 # Code from module std-gnu11:
181 # Code from module stdalign:
182 # Code from module stdbool:
183 # Code from module stddef:
184 # Code from module stdint:
185 # Code from module stdio:
186 # Code from module stdlib:
187 # Code from module strchrnul:
188 # Code from module strdup-posix:
189 # Code from module streq:
190 # Code from module strerror:
191 # Code from module strerror-override:
192 # Code from module strerror_r-posix:
193 # Code from module string:
194 # Code from module strnlen:
195 # Code from module strnlen1:
196 # Code from module strstr:
197 # Code from module strstr-simple:
198 # Code from module strtok_r:
199 # Code from module sys_random:
200 # Code from module sys_socket:
201 # Code from module sys_stat:
202 # Code from module sys_time:
203 # Code from module sys_types:
204 # Code from module sys_uio:
205 # Code from module tempname:
206 # Code from module threadlib:
208 # Code from module time:
209 # Code from module time_r:
210 # Code from module unistd:
211 # Code from module unistd-safer:
212 # Code from module unsetenv:
213 # Code from module update-copyright:
214 # Code from module verify:
215 # Code from module wchar:
216 # Code from module wctype-h:
217 # Code from module windows-mutex:
218 # Code from module windows-once:
219 # Code from module windows-recmutex:
220 # Code from module windows-rwlock:
221 # Code from module wmemchr:
222 # Code from module wmempcpy:
223 # Code from module xalloc-oversized:
226 # This macro should be invoked from ./configure.ac, in the section
227 # "Check for header files, types and library functions".
230 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
231 gl_cond_libtool=false
234 gl_m4_base='import/m4'
235 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
236 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
237 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
238 m4_pushdef([gl_LIBSOURCES_LIST], [])
239 m4_pushdef([gl_LIBSOURCES_DIR], [])
241 gl_source_base='import'
245 AC_REQUIRE([AC_CANONICAL_HOST])
247 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
251 gl_WCHAR_MODULE_INDICATOR([btowc])
254 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
255 AC_LIBOBJ([canonicalize-lgpl])
257 gl_MODULE_INDICATOR([canonicalize-lgpl])
258 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
259 gl_STDLIB_MODULE_INDICATOR([realpath])
260 gl_UNISTD_MODULE_INDICATOR([chdir])
262 if test $gl_cv_have_unlimited_file_name_length = no; then
263 AC_LIBOBJ([chdir-long])
267 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
269 if test $REPLACE_CLOSE = 1; then
272 gl_UNISTD_MODULE_INDICATOR([close])
274 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
275 AC_LIBOBJ([closedir])
277 gl_DIRENT_MODULE_INDICATOR([closedir])
279 gl_CHECK_TYPE_STRUCT_DIRENT_D_INO
280 gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE
283 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
284 || test $REPLACE_DIRFD = 1; then
288 gl_DIRENT_MODULE_INDICATOR([dirfd])
291 if test $REPLACE_DUP = 1; then
295 gl_UNISTD_MODULE_INDICATOR([dup])
297 if test $REPLACE_DUP2 = 1; then
301 gl_UNISTD_MODULE_INDICATOR([dup2])
303 gl_UNISTD_MODULE_INDICATOR([environ])
306 if test $ac_cv_lib_error_at_line = no; then
310 m4_ifdef([AM_XGETTEXT_OPTION],
311 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
312 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
313 AC_REQUIRE([gl_EXTERN_INLINE])
315 gl_UNISTD_MODULE_INDICATOR([fchdir])
317 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
320 gl_FCNTL_MODULE_INDICATOR([fcntl])
322 gl_MODULE_INDICATOR([fd-safer-flag])
324 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
325 AC_LIBOBJ([fdopendir])
327 gl_DIRENT_MODULE_INDICATOR([fdopendir])
328 gl_MODULE_INDICATOR([fdopendir])
329 gl_FILE_NAME_CONCAT_LGPL
330 AC_C_FLEXIBLE_ARRAY_MEMBER
332 if test $REPLACE_FLOAT_LDBL = 1; then
335 if test $REPLACE_ITOLD = 1; then
338 gl_FUNC_FNMATCH_POSIX
339 if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
343 gl_FNMATCH_MODULE_INDICATOR([fnmatch])
345 if test $HAVE_FNMATCH = 0 || test $REPLACE_FNMATCH = 1; then
349 gl_MODULE_INDICATOR([fnmatch-gnu])
352 if test $REPLACE_FREE = 1; then
356 gl_STDLIB_MODULE_INDICATOR([free-posix])
357 AC_REQUIRE([gl_FUNC_FREXP])
358 if test $gl_func_frexp != yes; then
361 gl_MATH_MODULE_INDICATOR([frexp])
362 AC_REQUIRE([gl_FUNC_FREXPL])
363 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
366 gl_MATH_MODULE_INDICATOR([frexpl])
368 if test $REPLACE_FSTAT = 1; then
372 AC_LIBOBJ([stat-w32])
377 gl_SYS_STAT_MODULE_INDICATOR([fstat])
379 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
382 gl_SYS_STAT_MODULE_INDICATOR([fstatat])
384 if test $REPLACE_GETCWD = 1; then
388 gl_MODULE_INDICATOR([getcwd])
389 gl_UNISTD_MODULE_INDICATOR([getcwd])
391 if test $REPLACE_GETCWD = 1; then
392 AC_LIBOBJ([getcwd-lgpl])
394 gl_UNISTD_MODULE_INDICATOR([getcwd])
395 gl_FUNC_GETDTABLESIZE
396 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
397 AC_LIBOBJ([getdtablesize])
398 gl_PREREQ_GETDTABLESIZE
400 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
402 if test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1; then
403 AC_LIBOBJ([getlogin_r])
406 gl_UNISTD_MODULE_INDICATOR([getlogin_r])
407 AC_REQUIRE([gl_LIB_GETLOGIN])
409 AC_REQUIRE([AC_CANONICAL_HOST])
411 if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
412 AC_LIBOBJ([getrandom])
414 gl_SYS_RANDOM_MODULE_INDICATOR([getrandom])
416 AC_SUBST([LTLIBINTL])
418 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
419 AC_LIBOBJ([gettimeofday])
420 gl_PREREQ_GETTIMEOFDAY
422 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
424 if test $HAVE_GLOB = 0 || test $REPLACE_GLOB = 1; then
426 AC_LIBOBJ([globfree])
429 if test $HAVE_GLOB_PATTERN_P = 0 || test $REPLACE_GLOB_PATTERN_P = 1; then
430 AC_LIBOBJ([glob_pattern_p])
432 gl_GLOB_MODULE_INDICATOR([glob])
434 AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
435 LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
436 AC_SUBST([LIB_HARD_LOCALE])
438 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
439 AC_LIBOBJ([inet_ntop])
442 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
444 gl_INTTYPES_INCOMPLETE
446 if test $HAVE_ISBLANK = 0; then
449 gl_MODULE_INDICATOR([isblank])
450 gl_CTYPE_MODULE_INDICATOR([isblank])
451 gl_FUNC_ISNAND_NO_LIBM
452 if test $gl_func_isnand_no_libm != yes; then
456 gl_FUNC_ISNANL_NO_LIBM
457 if test $gl_func_isnanl_no_libm != yes; then
461 AC_REQUIRE([gl_LARGEFILE])
465 dnl For backward compatibility. Some packages still use this.
466 LOCALCHARSET_TESTS_ENVIRONMENT=
467 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
470 gl_MODULE_INDICATOR([lock])
472 if test $REPLACE_LSTAT = 1; then
476 gl_SYS_STAT_MODULE_INDICATOR([lstat])
478 if test $REPLACE_MALLOC = 1; then
481 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
485 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
487 if test $REPLACE_MBSTATE_T = 1; then
488 AC_LIBOBJ([lc-charset-dispatch])
489 AC_LIBOBJ([mbtowc-lock])
490 gl_PREREQ_MBTOWC_LOCK
494 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
496 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
500 gl_WCHAR_MODULE_INDICATOR([mbsinit])
502 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
503 AC_LIBOBJ([mbsrtowcs])
504 AC_LIBOBJ([mbsrtowcs-state])
507 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
509 if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
513 gl_STDLIB_MODULE_INDICATOR([mbtowc])
515 if test $REPLACE_MEMCHR = 1; then
519 gl_STRING_MODULE_INDICATOR([memchr])
521 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
524 gl_FUNC_MEMMEM_SIMPLE
525 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
528 gl_STRING_MODULE_INDICATOR([memmem])
530 if test $HAVE_MEMPCPY = 0; then
534 gl_STRING_MODULE_INDICATOR([mempcpy])
536 if test $ac_cv_func_memrchr = no; then
540 gl_STRING_MODULE_INDICATOR([memrchr])
543 if test $REPLACE_MKDIR = 1; then
546 gl_SYS_STAT_MODULE_INDICATOR([mkdir])
548 if test $HAVE_MKDTEMP = 0; then
552 gl_STDLIB_MODULE_INDICATOR([mkdtemp])
554 if test $HAVE_MKOSTEMP = 0; then
555 AC_LIBOBJ([mkostemp])
558 gl_MODULE_INDICATOR([mkostemp])
559 gl_STDLIB_MODULE_INDICATOR([mkostemp])
560 AC_REQUIRE([gl_MSVC_INVAL])
561 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
562 AC_LIBOBJ([msvc-inval])
564 AC_REQUIRE([gl_MSVC_NOTHROW])
565 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
566 AC_LIBOBJ([msvc-nothrow])
568 gl_MODULE_INDICATOR([msvc-nothrow])
573 if test $REPLACE_OPEN = 1; then
577 gl_FCNTL_MODULE_INDICATOR([open])
579 if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
583 gl_MODULE_INDICATOR([openat]) dnl for lib/getcwd.c
584 gl_FCNTL_MODULE_INDICATOR([openat])
586 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
589 gl_DIRENT_MODULE_INDICATOR([opendir])
592 if test $HAVE_PIPE = 0; then
595 gl_UNISTD_MODULE_INDICATOR([pipe])
597 if test $HAVE_RAWMEMCHR = 0; then
598 AC_LIBOBJ([rawmemchr])
601 gl_STRING_MODULE_INDICATOR([rawmemchr])
603 if test $HAVE_READDIR = 0; then
606 gl_DIRENT_MODULE_INDICATOR([readdir])
608 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
609 AC_LIBOBJ([readlink])
612 gl_UNISTD_MODULE_INDICATOR([readlink])
613 gl_FUNC_REALLOC_POSIX
614 if test $REPLACE_REALLOC = 1; then
617 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
619 if test $REPLACE_RENAME = 1; then
622 gl_STDIO_MODULE_INDICATOR([rename])
624 if test $HAVE_REWINDDIR = 0; then
625 AC_LIBOBJ([rewinddir])
627 gl_DIRENT_MODULE_INDICATOR([rewinddir])
629 if test $REPLACE_RMDIR = 1; then
632 gl_UNISTD_MODULE_INDICATOR([rmdir])
635 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
638 gl_STDLIB_MODULE_INDICATOR([setenv])
639 gl_FUNC_SETLOCALE_NULL
640 if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
641 AC_LIBOBJ([setlocale-lock])
642 gl_PREREQ_SETLOCALE_LOCK
644 gl_LOCALE_MODULE_INDICATOR([setlocale_null])
649 if test $REPLACE_STAT = 1; then
653 AC_LIBOBJ([stat-w32])
658 gl_SYS_STAT_MODULE_INDICATOR([stat])
668 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
669 AC_LIBOBJ([strchrnul])
672 gl_STRING_MODULE_INDICATOR([strchrnul])
674 if test $REPLACE_STRDUP = 1; then
678 gl_STRING_MODULE_INDICATOR([strdup])
680 if test $REPLACE_STRERROR = 1; then
681 AC_LIBOBJ([strerror])
683 gl_MODULE_INDICATOR([strerror])
684 gl_STRING_MODULE_INDICATOR([strerror])
685 AC_REQUIRE([gl_HEADER_ERRNO_H])
686 AC_REQUIRE([gl_FUNC_STRERROR_0])
687 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
688 AC_LIBOBJ([strerror-override])
689 gl_PREREQ_SYS_H_WINSOCK2
692 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
693 AC_LIBOBJ([strerror_r])
696 gl_STRING_MODULE_INDICATOR([strerror_r])
697 dnl For the modules argp, error.
698 gl_MODULE_INDICATOR([strerror_r-posix])
701 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
705 gl_STRING_MODULE_INDICATOR([strnlen])
707 if test $REPLACE_STRSTR = 1; then
710 gl_FUNC_STRSTR_SIMPLE
711 if test $REPLACE_STRSTR = 1; then
714 gl_STRING_MODULE_INDICATOR([strstr])
716 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
717 AC_LIBOBJ([strtok_r])
720 gl_STRING_MODULE_INDICATOR([strtok_r])
723 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
734 gl_MODULE_INDICATOR([tempname])
735 AC_REQUIRE([gl_THREADLIB])
738 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
742 gl_TIME_MODULE_INDICATOR([time_r])
746 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
747 AC_LIBOBJ([unsetenv])
750 gl_STDLIB_MODULE_INDICATOR([unsetenv])
753 AC_REQUIRE([AC_CANONICAL_HOST])
756 AC_LIBOBJ([windows-mutex])
759 AC_REQUIRE([AC_CANONICAL_HOST])
762 AC_LIBOBJ([windows-once])
765 AC_REQUIRE([AC_CANONICAL_HOST])
768 AC_LIBOBJ([windows-recmutex])
771 AC_REQUIRE([AC_CANONICAL_HOST])
774 AC_LIBOBJ([windows-rwlock])
778 if test $HAVE_WMEMCHR = 0; then
781 gl_WCHAR_MODULE_INDICATOR([wmemchr])
783 if test $HAVE_WMEMPCPY = 0; then
784 AC_LIBOBJ([wmempcpy])
786 gl_WCHAR_MODULE_INDICATOR([wmempcpy])
787 # End of code from modules
788 m4_ifval(gl_LIBSOURCES_LIST, [
789 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
790 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
791 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
792 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
796 m4_if(m4_sysval, [0], [],
797 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
799 m4_popdef([gl_LIBSOURCES_DIR])
800 m4_popdef([gl_LIBSOURCES_LIST])
801 m4_popdef([AC_LIBSOURCES])
802 m4_popdef([AC_REPLACE_FUNCS])
803 m4_popdef([AC_LIBOBJ])
804 AC_CONFIG_COMMANDS_PRE([
807 if test -n "$gl_LIBOBJS"; then
808 # Remove the extension.
809 sed_drop_objext='s/\.o$//;s/\.obj$//'
810 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
811 gl_libobjs="$gl_libobjs $i.$ac_objext"
812 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
815 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
816 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
820 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
821 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
822 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
823 m4_pushdef([gltests_LIBSOURCES_LIST], [])
824 m4_pushdef([gltests_LIBSOURCES_DIR], [])
826 gl_source_base='tests'
828 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
830 AC_SUBST([gltests_WITNESS])
831 gl_module_indicator_condition=$gltests_WITNESS
832 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
833 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
834 m4_ifval(gltests_LIBSOURCES_LIST, [
835 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
836 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
837 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
838 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
842 m4_if(m4_sysval, [0], [],
843 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
845 m4_popdef([gltests_LIBSOURCES_DIR])
846 m4_popdef([gltests_LIBSOURCES_LIST])
847 m4_popdef([AC_LIBSOURCES])
848 m4_popdef([AC_REPLACE_FUNCS])
849 m4_popdef([AC_LIBOBJ])
850 AC_CONFIG_COMMANDS_PRE([
853 if test -n "$gltests_LIBOBJS"; then
854 # Remove the extension.
855 sed_drop_objext='s/\.o$//;s/\.obj$//'
856 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
857 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
858 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
861 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
862 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
864 LIBGNU_LIBDEPS="$gl_libdeps"
865 AC_SUBST([LIBGNU_LIBDEPS])
866 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
867 AC_SUBST([LIBGNU_LTLIBDEPS])
870 # Like AC_LIBOBJ, except that the module name goes
871 # into gl_LIBOBJS instead of into LIBOBJS.
872 AC_DEFUN([gl_LIBOBJ], [
873 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
874 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
877 # Like AC_REPLACE_FUNCS, except that the module name goes
878 # into gl_LIBOBJS instead of into LIBOBJS.
879 AC_DEFUN([gl_REPLACE_FUNCS], [
880 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
881 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
884 # Like AC_LIBSOURCES, except the directory where the source file is
885 # expected is derived from the gnulib-tool parameterization,
886 # and alloca is special cased (for the alloca-opt module).
887 # We could also entirely rely on EXTRA_lib..._SOURCES.
888 AC_DEFUN([gl_LIBSOURCES], [
889 m4_foreach([_gl_NAME], [$1], [
890 m4_if(_gl_NAME, [alloca.c], [], [
891 m4_define([gl_LIBSOURCES_DIR], [import])
892 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
897 # Like AC_LIBOBJ, except that the module name goes
898 # into gltests_LIBOBJS instead of into LIBOBJS.
899 AC_DEFUN([gltests_LIBOBJ], [
900 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
901 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
904 # Like AC_REPLACE_FUNCS, except that the module name goes
905 # into gltests_LIBOBJS instead of into LIBOBJS.
906 AC_DEFUN([gltests_REPLACE_FUNCS], [
907 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
908 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
911 # Like AC_LIBSOURCES, except the directory where the source file is
912 # expected is derived from the gnulib-tool parameterization,
913 # and alloca is special cased (for the alloca-opt module).
914 # We could also entirely rely on EXTRA_lib..._SOURCES.
915 AC_DEFUN([gltests_LIBSOURCES], [
916 m4_foreach([_gl_NAME], [$1], [
917 m4_if(_gl_NAME, [alloca.c], [], [
918 m4_define([gltests_LIBSOURCES_DIR], [tests])
919 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
924 # This macro records the list of files which have been installed by
925 # gnulib-tool and may be removed by future gnulib-tool invocations.
926 AC_DEFUN([gl_FILE_LIST], [
927 build-aux/gitlog-to-changelog
928 build-aux/update-copyright
941 lib/canonicalize-lgpl.c
961 lib/eloop-threshold.h
976 lib/filenamecat-lgpl.c
1004 lib/glob_pattern_p.c
1008 lib/glthread/threadlib.c
1022 lib/lc-charset-dispatch.c
1023 lib/lc-charset-dispatch.h
1031 lib/malloc/scratch_buffer.h
1032 lib/malloc/scratch_buffer_dupfree.c
1033 lib/malloc/scratch_buffer_grow.c
1034 lib/malloc/scratch_buffer_grow_preserve.c
1035 lib/malloc/scratch_buffer_set_array_size.c
1040 lib/mbrtowc-impl-utf8.h
1044 lib/mbsrtowcs-impl.h
1045 lib/mbsrtowcs-state.c
1076 lib/rawmemchr.valgrind
1086 lib/scratch_buffer.h
1088 lib/setlocale-lock.c
1089 lib/setlocale_null.c
1090 lib/setlocale_null.h
1105 lib/strchrnul.valgrind
1108 lib/strerror-override.c
1109 lib/strerror-override.h
1140 lib/windows-initguard.h
1145 lib/windows-recmutex.c
1146 lib/windows-recmutex.h
1147 lib/windows-rwlock.c
1148 lib/windows-rwlock.h
1152 lib/xalloc-oversized.h
1155 m4/absolute-header.m4
1159 m4/builtin-expect.m4
1171 m4/double-slash-root.m4
1198 m4/getcwd-abort-bug.m4
1199 m4/getcwd-path-max.m4
1258 m4/pthread_rwlock_rdlock.m4
1268 m4/setlocale_null.m4