1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2016 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 <http://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 canonicalize-lgpl:
53 # Code from module chdir:
54 # Code from module chdir-long:
55 # Code from module cloexec:
56 # Code from module close:
57 # Code from module closedir:
58 # Code from module configmake:
59 # Code from module d-ino:
60 # Code from module d-type:
61 # Code from module dirent:
62 # Code from module dirfd:
63 # Code from module dirname-lgpl:
64 # Code from module dosname:
65 # Code from module double-slash-root:
66 # Code from module dup:
67 # Code from module dup2:
68 # Code from module environ:
69 # Code from module errno:
70 # Code from module error:
71 # Code from module exitfail:
72 # Code from module extensions:
73 # Code from module extern-inline:
74 # Code from module fchdir:
75 # Code from module fcntl:
76 # Code from module fcntl-h:
77 # Code from module fd-hook:
78 # Code from module fdopendir:
79 # Code from module filename:
80 # Code from module filenamecat-lgpl:
81 # Code from module flexmember:
82 # Code from module float:
83 # Code from module fnmatch:
84 # Code from module fnmatch-gnu:
85 # Code from module fpieee:
86 AC_REQUIRE([gl_FP_IEEE])
87 # Code from module fpucw:
88 # Code from module frexp:
89 # Code from module frexpl:
90 # Code from module fstat:
91 # Code from module fstatat:
92 # Code from module getcwd:
93 # Code from module getcwd-lgpl:
94 # Code from module getdtablesize:
95 # Code from module getlogin_r:
96 # Code from module getprogname:
97 # Code from module gettext-h:
98 # Code from module gettimeofday:
99 # Code from module glob:
100 # Code from module hard-locale:
101 # Code from module havelib:
102 # Code from module include_next:
103 # Code from module inet_ntop:
104 # Code from module intprops:
105 # Code from module inttypes:
106 # Code from module inttypes-incomplete:
107 # Code from module isnand-nolibm:
108 # Code from module isnanl-nolibm:
109 # Code from module largefile:
110 AC_REQUIRE([AC_SYS_LARGEFILE])
111 # Code from module limits-h:
112 # Code from module localcharset:
113 # Code from module lock:
114 # Code from module lstat:
115 # Code from module malloc-posix:
116 # Code from module malloca:
117 # Code from module math:
118 # Code from module mbrtowc:
119 # Code from module mbsinit:
120 # Code from module mbsrtowcs:
121 # Code from module memchr:
122 # Code from module memmem:
123 # Code from module memmem-simple:
124 # Code from module mempcpy:
125 # Code from module memrchr:
126 # Code from module mkdir:
127 # Code from module mkdtemp:
128 # Code from module mkostemp:
129 # Code from module msvc-inval:
130 # Code from module msvc-nothrow:
131 # Code from module multiarch:
132 # Code from module netinet_in:
133 # Code from module nocrash:
134 # Code from module open:
135 # Code from module openat:
136 # Code from module openat-die:
137 # Code from module openat-h:
138 # Code from module opendir:
139 # Code from module pathmax:
140 # Code from module rawmemchr:
141 # Code from module readdir:
142 # Code from module readlink:
143 # Code from module realloc-posix:
144 # Code from module rename:
145 # Code from module rewinddir:
146 # Code from module rmdir:
147 # Code from module same-inode:
148 # Code from module save-cwd:
149 # Code from module secure_getenv:
150 # Code from module setenv:
151 # Code from module signal-h:
152 # Code from module snippet/_Noreturn:
153 # Code from module snippet/arg-nonnull:
154 # Code from module snippet/c++defs:
155 # Code from module snippet/warn-on-use:
156 # Code from module socklen:
157 # Code from module ssize_t:
158 # Code from module stat:
159 # Code from module stdalign:
160 # Code from module stdbool:
161 # Code from module stddef:
162 # Code from module stdint:
163 # Code from module stdio:
164 # Code from module stdlib:
165 # Code from module strchrnul:
166 # Code from module strdup-posix:
167 # Code from module streq:
168 # Code from module strerror:
169 # Code from module strerror-override:
170 # Code from module strerror_r-posix:
171 # Code from module string:
172 # Code from module strnlen1:
173 # Code from module strstr:
174 # Code from module strstr-simple:
175 # Code from module strtok_r:
176 # Code from module sys_socket:
177 # Code from module sys_stat:
178 # Code from module sys_time:
179 # Code from module sys_types:
180 # Code from module sys_uio:
181 # Code from module tempname:
182 # Code from module threadlib:
184 # Code from module time:
185 # Code from module time_r:
186 # Code from module unistd:
187 # Code from module unistd-safer:
188 # Code from module unsetenv:
189 # Code from module update-copyright:
190 # Code from module verify:
191 # Code from module wchar:
192 # Code from module wctype-h:
195 # This macro should be invoked from ./configure.ac, in the section
196 # "Check for header files, types and library functions".
199 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
200 gl_cond_libtool=false
203 gl_m4_base='import/m4'
204 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
205 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
206 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
207 m4_pushdef([gl_LIBSOURCES_LIST], [])
208 m4_pushdef([gl_LIBSOURCES_DIR], [])
210 gl_source_base='import'
214 AC_LIBOBJ([openat-proc])
216 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
217 AC_LIBOBJ([canonicalize-lgpl])
219 gl_MODULE_INDICATOR([canonicalize-lgpl])
220 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
221 gl_STDLIB_MODULE_INDICATOR([realpath])
222 gl_UNISTD_MODULE_INDICATOR([chdir])
224 if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
225 AC_LIBOBJ([chdir-long])
228 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
230 if test $REPLACE_CLOSE = 1; then
233 gl_UNISTD_MODULE_INDICATOR([close])
235 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
236 AC_LIBOBJ([closedir])
238 gl_DIRENT_MODULE_INDICATOR([closedir])
240 gl_CHECK_TYPE_STRUCT_DIRENT_D_INO
241 gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE
244 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
245 || test $REPLACE_DIRFD = 1; then
249 gl_DIRENT_MODULE_INDICATOR([dirfd])
253 if test $REPLACE_DUP = 1; then
257 gl_UNISTD_MODULE_INDICATOR([dup])
259 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
263 gl_UNISTD_MODULE_INDICATOR([dup2])
265 gl_UNISTD_MODULE_INDICATOR([environ])
268 if test $ac_cv_lib_error_at_line = no; then
272 m4_ifdef([AM_XGETTEXT_OPTION],
273 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
274 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
275 AC_REQUIRE([gl_EXTERN_INLINE])
277 gl_UNISTD_MODULE_INDICATOR([fchdir])
279 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
282 gl_FCNTL_MODULE_INDICATOR([fcntl])
285 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
286 AC_LIBOBJ([fdopendir])
288 gl_DIRENT_MODULE_INDICATOR([fdopendir])
289 gl_MODULE_INDICATOR([fdopendir])
290 gl_FILE_NAME_CONCAT_LGPL
291 AC_C_FLEXIBLE_ARRAY_MEMBER
293 if test $REPLACE_FLOAT_LDBL = 1; then
296 if test $REPLACE_ITOLD = 1; then
299 gl_FUNC_FNMATCH_POSIX
300 if test -n "$FNMATCH_H"; then
305 if test -n "$FNMATCH_H"; then
310 if test $gl_func_frexp != yes; then
313 gl_MATH_MODULE_INDICATOR([frexp])
315 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
318 gl_MATH_MODULE_INDICATOR([frexpl])
320 if test $REPLACE_FSTAT = 1; then
324 gl_SYS_STAT_MODULE_INDICATOR([fstat])
326 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
329 gl_SYS_STAT_MODULE_INDICATOR([fstatat])
331 if test $REPLACE_GETCWD = 1; then
335 gl_MODULE_INDICATOR([getcwd])
336 gl_UNISTD_MODULE_INDICATOR([getcwd])
338 if test $REPLACE_GETCWD = 1; then
339 AC_LIBOBJ([getcwd-lgpl])
341 gl_UNISTD_MODULE_INDICATOR([getcwd])
342 gl_FUNC_GETDTABLESIZE
343 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
344 AC_LIBOBJ([getdtablesize])
345 gl_PREREQ_GETDTABLESIZE
347 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
349 if test $HAVE_GETLOGIN_R = 0 || test $REPLACE_GETLOGIN_R = 1; then
350 AC_LIBOBJ([getlogin_r])
353 gl_UNISTD_MODULE_INDICATOR([getlogin_r])
356 AC_SUBST([LTLIBINTL])
358 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
359 AC_LIBOBJ([gettimeofday])
360 gl_PREREQ_GETTIMEOFDAY
362 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
364 if test -n "$GLOB_H"; then
370 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
371 AC_LIBOBJ([inet_ntop])
374 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
376 gl_INTTYPES_INCOMPLETE
377 gl_FUNC_ISNAND_NO_LIBM
378 if test $gl_func_isnand_no_libm != yes; then
382 gl_FUNC_ISNANL_NO_LIBM
383 if test $gl_func_isnanl_no_libm != yes; then
387 AC_REQUIRE([gl_LARGEFILE])
390 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
391 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
393 gl_MODULE_INDICATOR([lock])
395 if test $REPLACE_LSTAT = 1; then
399 gl_SYS_STAT_MODULE_INDICATOR([lstat])
401 if test $REPLACE_MALLOC = 1; then
404 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
408 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
412 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
414 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
418 gl_WCHAR_MODULE_INDICATOR([mbsinit])
420 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
421 AC_LIBOBJ([mbsrtowcs])
422 AC_LIBOBJ([mbsrtowcs-state])
425 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
427 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
431 gl_STRING_MODULE_INDICATOR([memchr])
433 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
436 gl_FUNC_MEMMEM_SIMPLE
437 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
440 gl_STRING_MODULE_INDICATOR([memmem])
442 if test $HAVE_MEMPCPY = 0; then
446 gl_STRING_MODULE_INDICATOR([mempcpy])
448 if test $ac_cv_func_memrchr = no; then
452 gl_STRING_MODULE_INDICATOR([memrchr])
454 if test $REPLACE_MKDIR = 1; then
458 if test $HAVE_MKDTEMP = 0; then
462 gl_STDLIB_MODULE_INDICATOR([mkdtemp])
464 if test $HAVE_MKOSTEMP = 0; then
465 AC_LIBOBJ([mkostemp])
468 gl_MODULE_INDICATOR([mkostemp])
469 gl_STDLIB_MODULE_INDICATOR([mkostemp])
470 AC_REQUIRE([gl_MSVC_INVAL])
471 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
472 AC_LIBOBJ([msvc-inval])
474 AC_REQUIRE([gl_MSVC_NOTHROW])
475 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
476 AC_LIBOBJ([msvc-nothrow])
482 if test $REPLACE_OPEN = 1; then
486 gl_FCNTL_MODULE_INDICATOR([open])
488 if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
492 gl_MODULE_INDICATOR([openat]) dnl for lib/getcwd.c
493 gl_FCNTL_MODULE_INDICATOR([openat])
495 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
498 gl_DIRENT_MODULE_INDICATOR([opendir])
501 if test $HAVE_RAWMEMCHR = 0; then
502 AC_LIBOBJ([rawmemchr])
505 gl_STRING_MODULE_INDICATOR([rawmemchr])
507 if test $HAVE_READDIR = 0; then
510 gl_DIRENT_MODULE_INDICATOR([readdir])
512 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
513 AC_LIBOBJ([readlink])
516 gl_UNISTD_MODULE_INDICATOR([readlink])
517 gl_FUNC_REALLOC_POSIX
518 if test $REPLACE_REALLOC = 1; then
521 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
523 if test $REPLACE_RENAME = 1; then
526 gl_STDIO_MODULE_INDICATOR([rename])
528 if test $HAVE_REWINDDIR = 0; then
529 AC_LIBOBJ([rewinddir])
531 gl_DIRENT_MODULE_INDICATOR([rewinddir])
533 if test $REPLACE_RMDIR = 1; then
536 gl_UNISTD_MODULE_INDICATOR([rmdir])
538 gl_FUNC_SECURE_GETENV
539 if test $HAVE_SECURE_GETENV = 0; then
540 AC_LIBOBJ([secure_getenv])
541 gl_PREREQ_SECURE_GETENV
543 gl_STDLIB_MODULE_INDICATOR([secure_getenv])
545 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
548 gl_STDLIB_MODULE_INDICATOR([setenv])
553 if test $REPLACE_STAT = 1; then
557 gl_SYS_STAT_MODULE_INDICATOR([stat])
565 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
566 AC_LIBOBJ([strchrnul])
569 gl_STRING_MODULE_INDICATOR([strchrnul])
571 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
575 gl_STRING_MODULE_INDICATOR([strdup])
577 if test $REPLACE_STRERROR = 1; then
578 AC_LIBOBJ([strerror])
580 gl_MODULE_INDICATOR([strerror])
581 gl_STRING_MODULE_INDICATOR([strerror])
582 AC_REQUIRE([gl_HEADER_ERRNO_H])
583 AC_REQUIRE([gl_FUNC_STRERROR_0])
584 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
585 AC_LIBOBJ([strerror-override])
586 gl_PREREQ_SYS_H_WINSOCK2
589 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
590 AC_LIBOBJ([strerror_r])
593 gl_STRING_MODULE_INDICATOR([strerror_r])
596 if test $REPLACE_STRSTR = 1; then
599 gl_FUNC_STRSTR_SIMPLE
600 if test $REPLACE_STRSTR = 1; then
603 gl_STRING_MODULE_INDICATOR([strstr])
605 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
606 AC_LIBOBJ([strtok_r])
609 gl_STRING_MODULE_INDICATOR([strtok_r])
610 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
624 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
628 gl_TIME_MODULE_INDICATOR([time_r])
632 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
633 AC_LIBOBJ([unsetenv])
636 gl_STDLIB_MODULE_INDICATOR([unsetenv])
639 # End of code from modules
640 m4_ifval(gl_LIBSOURCES_LIST, [
641 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
642 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
643 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
644 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
648 m4_if(m4_sysval, [0], [],
649 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
651 m4_popdef([gl_LIBSOURCES_DIR])
652 m4_popdef([gl_LIBSOURCES_LIST])
653 m4_popdef([AC_LIBSOURCES])
654 m4_popdef([AC_REPLACE_FUNCS])
655 m4_popdef([AC_LIBOBJ])
656 AC_CONFIG_COMMANDS_PRE([
659 if test -n "$gl_LIBOBJS"; then
660 # Remove the extension.
661 sed_drop_objext='s/\.o$//;s/\.obj$//'
662 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
663 gl_libobjs="$gl_libobjs $i.$ac_objext"
664 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
667 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
668 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
672 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
673 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
674 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
675 m4_pushdef([gltests_LIBSOURCES_LIST], [])
676 m4_pushdef([gltests_LIBSOURCES_DIR], [])
678 gl_source_base='tests'
680 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
682 AC_SUBST([gltests_WITNESS])
683 gl_module_indicator_condition=$gltests_WITNESS
684 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
685 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
686 m4_ifval(gltests_LIBSOURCES_LIST, [
687 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
688 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
689 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
690 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
694 m4_if(m4_sysval, [0], [],
695 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
697 m4_popdef([gltests_LIBSOURCES_DIR])
698 m4_popdef([gltests_LIBSOURCES_LIST])
699 m4_popdef([AC_LIBSOURCES])
700 m4_popdef([AC_REPLACE_FUNCS])
701 m4_popdef([AC_LIBOBJ])
702 AC_CONFIG_COMMANDS_PRE([
705 if test -n "$gltests_LIBOBJS"; then
706 # Remove the extension.
707 sed_drop_objext='s/\.o$//;s/\.obj$//'
708 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
709 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
710 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
713 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
714 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
716 LIBGNU_LIBDEPS="$gl_libdeps"
717 AC_SUBST([LIBGNU_LIBDEPS])
718 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
719 AC_SUBST([LIBGNU_LTLIBDEPS])
722 # Like AC_LIBOBJ, except that the module name goes
723 # into gl_LIBOBJS instead of into LIBOBJS.
724 AC_DEFUN([gl_LIBOBJ], [
725 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
726 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
729 # Like AC_REPLACE_FUNCS, except that the module name goes
730 # into gl_LIBOBJS instead of into LIBOBJS.
731 AC_DEFUN([gl_REPLACE_FUNCS], [
732 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
733 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
736 # Like AC_LIBSOURCES, except the directory where the source file is
737 # expected is derived from the gnulib-tool parameterization,
738 # and alloca is special cased (for the alloca-opt module).
739 # We could also entirely rely on EXTRA_lib..._SOURCES.
740 AC_DEFUN([gl_LIBSOURCES], [
741 m4_foreach([_gl_NAME], [$1], [
742 m4_if(_gl_NAME, [alloca.c], [], [
743 m4_define([gl_LIBSOURCES_DIR], [import])
744 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
749 # Like AC_LIBOBJ, except that the module name goes
750 # into gltests_LIBOBJS instead of into LIBOBJS.
751 AC_DEFUN([gltests_LIBOBJ], [
752 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
753 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
756 # Like AC_REPLACE_FUNCS, except that the module name goes
757 # into gltests_LIBOBJS instead of into LIBOBJS.
758 AC_DEFUN([gltests_REPLACE_FUNCS], [
759 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
760 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
763 # Like AC_LIBSOURCES, except the directory where the source file is
764 # expected is derived from the gnulib-tool parameterization,
765 # and alloca is special cased (for the alloca-opt module).
766 # We could also entirely rely on EXTRA_lib..._SOURCES.
767 AC_DEFUN([gltests_LIBSOURCES], [
768 m4_foreach([_gl_NAME], [$1], [
769 m4_if(_gl_NAME, [alloca.c], [], [
770 m4_define([gltests_LIBSOURCES_DIR], [tests])
771 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
776 # This macro records the list of files which have been installed by
777 # gnulib-tool and may be removed by future gnulib-tool invocations.
778 AC_DEFUN([gl_FILE_LIST], [
779 build-aux/config.rpath
780 build-aux/snippet/_Noreturn.h
781 build-aux/snippet/arg-nonnull.h
782 build-aux/snippet/c++defs.h
783 build-aux/snippet/warn-on-use.h
784 build-aux/update-copyright
791 lib/canonicalize-lgpl.c
821 lib/filenamecat-lgpl.c
848 lib/glthread/threadlib.c
873 lib/mbsrtowcs-state.c
898 lib/rawmemchr.valgrind
922 lib/strchrnul.valgrind
925 lib/strerror-override.c
926 lib/strerror-override.h
955 m4/absolute-header.m4
969 m4/double-slash-root.m4
994 m4/getcwd-abort-bug.m4
995 m4/getcwd-path-max.m4