1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2013 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
40 AC_REQUIRE([gl_PROG_AR_RANLIB])
41 AC_REQUIRE([AM_PROG_CC_C_O])
42 # Code from module alloca-opt:
43 # Code from module announce-gen:
44 # Code from module argmatch:
45 # Code from module assert:
46 # Code from module binary-io:
47 # Code from module bitrotate:
48 # Code from module c-ctype:
49 # Code from module c-strcase:
50 # Code from module c-strcaseeq:
51 # Code from module calloc-posix:
52 # Code from module cloexec:
53 # Code from module close:
54 # Code from module close-stream:
55 # Code from module closeout:
56 # Code from module config-h:
57 # Code from module configmake:
58 # Code from module dirname:
59 # Code from module dirname-lgpl:
60 # Code from module do-release-commit-and-tag:
61 # Code from module dosname:
62 # Code from module double-slash-root:
63 # Code from module dup2:
64 # Code from module environ:
65 # Code from module errno:
66 # Code from module error:
67 # Code from module exitfail:
68 # Code from module extensions:
69 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
70 # Code from module extern-inline:
71 # Code from module fatal-signal:
72 # Code from module fcntl:
73 # Code from module fcntl-h:
74 # Code from module fd-hook:
75 # Code from module fd-safer-flag:
76 # Code from module fdl:
77 # Code from module float:
78 # Code from module fopen:
79 # Code from module fopen-safer:
80 # Code from module fpending:
81 # Code from module fpieee:
82 AC_REQUIRE([gl_FP_IEEE])
83 # Code from module fprintf-posix:
84 # Code from module fpucw:
85 # Code from module frexp-nolibm:
86 # Code from module frexpl-nolibm:
87 # Code from module fseterr:
88 # Code from module fstat:
89 # Code from module gendocs:
90 # Code from module getdelim:
91 # Code from module getdtablesize:
92 # Code from module getline:
93 # Code from module getopt-gnu:
94 # Code from module getopt-posix:
95 # Code from module gettext:
96 # Code from module gettext-h:
97 # Code from module git-version-gen:
98 # Code from module gitlog-to-changelog:
99 # Code from module gnu-web-doc-update:
100 # Code from module gnumakefile:
101 # Code from module gnupload:
102 # Code from module gpl-3.0:
103 # Code from module hash:
104 # Code from module havelib:
105 # Code from module include_next:
106 # Code from module intprops:
107 # Code from module inttypes:
108 # Code from module inttypes-incomplete:
109 # Code from module isnan:
110 # Code from module isnand:
111 # Code from module isnand-nolibm:
112 # Code from module isnanf:
113 # Code from module isnanf-nolibm:
114 # Code from module isnanl:
115 # Code from module isnanl-nolibm:
116 # Code from module iswblank:
117 # Code from module javacomp-script:
118 # Code from module javaexec-script:
119 # Code from module largefile:
120 AC_REQUIRE([AC_SYS_LARGEFILE])
121 # Code from module ldexp:
122 # Code from module ldexpl:
123 # Code from module localcharset:
124 # Code from module lock:
125 # Code from module maintainer-makefile:
126 # Code from module malloc-gnu:
127 # Code from module malloc-posix:
128 # Code from module math:
129 # Code from module mbchar:
130 # Code from module mbrtowc:
131 # Code from module mbschr:
132 # Code from module mbsinit:
133 # Code from module mbsrchr:
134 # Code from module mbswidth:
135 # Code from module mbuiter:
136 # Code from module memchr:
137 # Code from module msvc-inval:
138 # Code from module msvc-nothrow:
139 # Code from module multiarch:
140 # Code from module nocrash:
141 # Code from module obstack:
142 # Code from module obstack-printf:
143 # Code from module open:
144 # Code from module pathmax:
145 # Code from module perror:
146 # Code from module pipe2:
147 # Code from module pipe2-safer:
148 # Code from module posix_spawn-internal:
149 # Code from module posix_spawn_file_actions_addclose:
150 # Code from module posix_spawn_file_actions_adddup2:
151 # Code from module posix_spawn_file_actions_addopen:
152 # Code from module posix_spawn_file_actions_destroy:
153 # Code from module posix_spawn_file_actions_init:
154 # Code from module posix_spawnattr_destroy:
155 # Code from module posix_spawnattr_init:
156 # Code from module posix_spawnattr_setflags:
157 # Code from module posix_spawnattr_setsigmask:
158 # Code from module posix_spawnp:
159 # Code from module printf-frexp:
160 # Code from module printf-frexpl:
161 # Code from module printf-posix:
162 # Code from module printf-safe:
163 # Code from module progname:
164 # Code from module quote:
165 # Code from module quotearg:
166 # Code from module quotearg-simple:
167 # Code from module raise:
168 # Code from module rawmemchr:
169 # Code from module readme-release:
170 # Code from module realloc-posix:
171 # Code from module sched:
172 # Code from module sigaction:
173 # Code from module signal-h:
174 # Code from module signbit:
175 # Code from module sigprocmask:
176 # Code from module size_max:
177 # Code from module snippet/_Noreturn:
178 # Code from module snippet/arg-nonnull:
179 # Code from module snippet/c++defs:
180 # Code from module snippet/warn-on-use:
181 # Code from module snprintf:
182 # Code from module snprintf-posix:
183 # Code from module spawn:
184 # Code from module spawn-pipe:
185 # Code from module sprintf-posix:
186 # Code from module ssize_t:
187 # Code from module stat:
188 # Code from module stdbool:
189 # Code from module stddef:
190 # Code from module stdint:
191 # Code from module stdio:
192 # Code from module stdlib:
193 # Code from module stpcpy:
194 # Code from module strchrnul:
195 # Code from module strdup-posix:
196 # Code from module streq:
197 # Code from module strerror:
198 # Code from module strerror-override:
199 # Code from module strerror_r-posix:
200 # Code from module string:
201 # Code from module strndup:
202 # Code from module strnlen:
203 # Code from module strnlen1:
204 # Code from module strtoul:
205 # Code from module strverscmp:
206 # Code from module sys_stat:
207 # Code from module sys_types:
208 # Code from module sys_wait:
209 # Code from module threadlib:
211 # Code from module time:
212 # Code from module unistd:
213 # Code from module unistd-safer:
214 # Code from module unitypes:
215 # Code from module uniwidth/base:
216 # Code from module uniwidth/width:
217 # Code from module unlocked-io:
218 # Code from module unsetenv:
219 # Code from module update-copyright:
220 # Code from module useless-if-before-free:
221 # Code from module vasnprintf:
222 # Code from module vc-list-files:
223 # Code from module verify:
224 # Code from module vfprintf-posix:
225 # Code from module vsnprintf:
226 # Code from module vsnprintf-posix:
227 # Code from module vsprintf-posix:
228 # Code from module wait-process:
229 # Code from module waitpid:
230 # Code from module warnings:
231 # Code from module wchar:
232 # Code from module wctype-h:
233 # Code from module wcwidth:
234 # Code from module xalloc:
235 # Code from module xalloc-die:
236 # Code from module xalloc-oversized:
237 # Code from module xmemdup0:
238 # Code from module xsize:
239 # Code from module xstrndup:
242 # This macro should be invoked from ./configure.ac, in the section
243 # "Check for header files, types and library functions".
246 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
247 gl_cond_libtool=false
251 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
252 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
253 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
254 m4_pushdef([gl_LIBSOURCES_LIST], [])
255 m4_pushdef([gl_LIBSOURCES_DIR], [])
261 if test $REPLACE_CALLOC = 1; then
264 gl_STDLIB_MODULE_INDICATOR([calloc-posix])
265 gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
267 if test $REPLACE_CLOSE = 1; then
270 gl_UNISTD_MODULE_INDICATOR([close])
272 gl_MODULE_INDICATOR([close-stream])
277 gl_MODULE_INDICATOR([dirname])
281 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
285 gl_UNISTD_MODULE_INDICATOR([dup2])
287 gl_UNISTD_MODULE_INDICATOR([environ])
290 if test $ac_cv_lib_error_at_line = no; then
294 m4_ifdef([AM_XGETTEXT_OPTION],
295 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
296 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
297 AC_REQUIRE([gl_EXTERN_INLINE])
300 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
303 gl_FCNTL_MODULE_INDICATOR([fcntl])
305 gl_MODULE_INDICATOR([fd-safer-flag])
307 if test $REPLACE_FLOAT_LDBL = 1; then
310 if test $REPLACE_ITOLD = 1; then
314 if test $REPLACE_FOPEN = 1; then
318 gl_STDIO_MODULE_INDICATOR([fopen])
319 gl_MODULE_INDICATOR([fopen-safer])
321 if test $ac_cv_func___fpending = no; then
322 AC_LIBOBJ([fpending])
325 gl_FUNC_FPRINTF_POSIX
326 gl_STDIO_MODULE_INDICATOR([fprintf-posix])
327 gl_FUNC_FREXP_NO_LIBM
328 if test $gl_func_frexp_no_libm != yes; then
331 gl_MATH_MODULE_INDICATOR([frexp])
332 gl_FUNC_FREXPL_NO_LIBM
333 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
336 gl_MATH_MODULE_INDICATOR([frexpl])
338 if test $ac_cv_func___fseterr = no; then
342 if test $REPLACE_FSTAT = 1; then
346 gl_SYS_STAT_MODULE_INDICATOR([fstat])
348 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
349 AC_LIBOBJ([getdelim])
352 gl_STDIO_MODULE_INDICATOR([getdelim])
353 gl_FUNC_GETDTABLESIZE
354 if test $HAVE_GETDTABLESIZE = 0; then
355 AC_LIBOBJ([getdtablesize])
356 gl_PREREQ_GETDTABLESIZE
358 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
360 if test $REPLACE_GETLINE = 1; then
364 gl_STDIO_MODULE_INDICATOR([getline])
366 if test $REPLACE_GETOPT = 1; then
370 dnl Arrange for unistd.h to include getopt.h.
371 GNULIB_GL_UNISTD_H_GETOPT=1
373 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
374 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
376 if test $REPLACE_GETOPT = 1; then
380 dnl Arrange for unistd.h to include getopt.h.
381 GNULIB_GL_UNISTD_H_GETOPT=1
383 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
384 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
385 AM_GNU_GETTEXT_VERSION([0.18.1])
387 AC_SUBST([LTLIBINTL])
388 # Autoconf 2.61a.99 and earlier don't support linking a file only
389 # in VPATH builds. But since GNUmakefile is for maintainer use
390 # only, it does not matter if we skip the link with older autoconf.
391 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
392 # builds, so use a shell variable to bypass this.
393 GNUmakefile=GNUmakefile
394 m4_if(m4_version_compare([2.61a.100],
395 m4_defn([m4_PACKAGE_VERSION])), [1], [],
396 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
397 [GNUmakefile=$GNUmakefile])])
399 gl_INTTYPES_INCOMPLETE
401 gl_MATH_MODULE_INDICATOR([isnan])
403 m4_ifdef([gl_ISNAN], [
404 AC_REQUIRE([gl_ISNAN])
406 if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
410 gl_MATH_MODULE_INDICATOR([isnand])
411 gl_FUNC_ISNAND_NO_LIBM
412 if test $gl_func_isnand_no_libm != yes; then
417 m4_ifdef([gl_ISNAN], [
418 AC_REQUIRE([gl_ISNAN])
420 if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
424 gl_MATH_MODULE_INDICATOR([isnanf])
425 gl_FUNC_ISNANF_NO_LIBM
426 if test $gl_func_isnanf_no_libm != yes; then
431 m4_ifdef([gl_ISNAN], [
432 AC_REQUIRE([gl_ISNAN])
434 if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
438 gl_MATH_MODULE_INDICATOR([isnanl])
439 gl_FUNC_ISNANL_NO_LIBM
440 if test $gl_func_isnanl_no_libm != yes; then
445 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
448 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
449 AC_LIBOBJ([iswblank])
452 gl_WCTYPE_MODULE_INDICATOR([iswblank])
453 # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
454 AC_CONFIG_FILES([javacomp.sh:build-aux/javacomp.sh.in])
455 # You need to invoke gt_JAVAEXEC yourself, possibly with arguments.
456 AC_CONFIG_FILES([javaexec.sh:build-aux/javaexec.sh.in])
457 AC_REQUIRE([gl_LARGEFILE])
460 if test $HAVE_DECL_LDEXPL = 0 || test $gl_func_ldexpl = no; then
463 gl_MATH_MODULE_INDICATOR([ldexpl])
465 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
466 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
468 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
469 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
471 if test $REPLACE_MALLOC = 1; then
474 gl_MODULE_INDICATOR([malloc-gnu])
476 if test $REPLACE_MALLOC = 1; then
479 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
483 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
487 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
488 gl_STRING_MODULE_INDICATOR([mbschr])
490 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
494 gl_WCHAR_MODULE_INDICATOR([mbsinit])
495 gl_STRING_MODULE_INDICATOR([mbsrchr])
499 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
503 gl_STRING_MODULE_INDICATOR([memchr])
505 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
506 AC_LIBOBJ([msvc-inval])
509 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
510 AC_LIBOBJ([msvc-nothrow])
514 dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]).
515 gl_FUNC_OBSTACK_PRINTF
516 if test $ac_cv_func_obstack_printf = no || test $REPLACE_OBSTACK_PRINTF = 1; then
517 AC_LIBOBJ([obstack_printf])
519 gl_STDIO_MODULE_INDICATOR([obstack-printf])
521 if test $REPLACE_OPEN = 1; then
525 gl_FCNTL_MODULE_INDICATOR([open])
528 if test $REPLACE_PERROR = 1; then
531 gl_STRING_MODULE_INDICATOR([perror])
533 gl_UNISTD_MODULE_INDICATOR([pipe2])
534 gl_MODULE_INDICATOR([pipe2-safer])
535 gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE
536 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE = 1; then
537 AC_LIBOBJ([spawn_faction_addclose])
539 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addclose])
540 gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2
541 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2 = 1; then
542 AC_LIBOBJ([spawn_faction_adddup2])
544 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_adddup2])
545 gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN
546 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN = 1; then
547 AC_LIBOBJ([spawn_faction_addopen])
549 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_addopen])
551 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
552 AC_LIBOBJ([spawn_faction_destroy])
554 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_destroy])
556 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
557 AC_LIBOBJ([spawn_faction_init])
559 gl_SPAWN_MODULE_INDICATOR([posix_spawn_file_actions_init])
561 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
562 AC_LIBOBJ([spawnattr_destroy])
564 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_destroy])
566 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
567 AC_LIBOBJ([spawnattr_init])
569 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_init])
571 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
572 AC_LIBOBJ([spawnattr_setflags])
574 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setflags])
576 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
577 AC_LIBOBJ([spawnattr_setsigmask])
579 gl_SPAWN_MODULE_INDICATOR([posix_spawnattr_setsigmask])
581 if test $HAVE_POSIX_SPAWN = 0 || test $REPLACE_POSIX_SPAWN = 1; then
584 gl_PREREQ_POSIX_SPAWN_INTERNAL
586 gl_SPAWN_MODULE_INDICATOR([posix_spawnp])
588 gl_FUNC_PRINTF_FREXPL
590 gl_STDIO_MODULE_INDICATOR([printf-posix])
591 m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
592 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
593 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
597 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
601 gl_SIGNAL_MODULE_INDICATOR([raise])
603 if test $HAVE_RAWMEMCHR = 0; then
604 AC_LIBOBJ([rawmemchr])
607 gl_STRING_MODULE_INDICATOR([rawmemchr])
608 gl_FUNC_REALLOC_POSIX
609 if test $REPLACE_REALLOC = 1; then
612 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
615 if test $HAVE_SIGACTION = 0; then
616 AC_LIBOBJ([sigaction])
619 gl_SIGNAL_MODULE_INDICATOR([sigaction])
622 if test $REPLACE_SIGNBIT = 1; then
623 AC_LIBOBJ([signbitf])
624 AC_LIBOBJ([signbitd])
625 AC_LIBOBJ([signbitl])
627 gl_MATH_MODULE_INDICATOR([signbit])
629 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
630 AC_LIBOBJ([sigprocmask])
631 gl_PREREQ_SIGPROCMASK
633 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
636 gl_STDIO_MODULE_INDICATOR([snprintf])
637 gl_MODULE_INDICATOR([snprintf])
638 gl_FUNC_SNPRINTF_POSIX
641 gl_FUNC_SPRINTF_POSIX
642 gl_STDIO_MODULE_INDICATOR([sprintf-posix])
645 if test $REPLACE_STAT = 1; then
649 gl_SYS_STAT_MODULE_INDICATOR([stat])
656 if test $HAVE_STPCPY = 0; then
660 gl_STRING_MODULE_INDICATOR([stpcpy])
662 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
663 AC_LIBOBJ([strchrnul])
666 gl_STRING_MODULE_INDICATOR([strchrnul])
668 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
672 gl_STRING_MODULE_INDICATOR([strdup])
674 if test $REPLACE_STRERROR = 1; then
675 AC_LIBOBJ([strerror])
677 gl_MODULE_INDICATOR([strerror])
678 gl_STRING_MODULE_INDICATOR([strerror])
679 AC_REQUIRE([gl_HEADER_ERRNO_H])
680 AC_REQUIRE([gl_FUNC_STRERROR_0])
681 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
682 AC_LIBOBJ([strerror-override])
683 gl_PREREQ_SYS_H_WINSOCK2
686 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
687 AC_LIBOBJ([strerror_r])
690 gl_STRING_MODULE_INDICATOR([strerror_r])
693 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
696 gl_STRING_MODULE_INDICATOR([strndup])
698 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
702 gl_STRING_MODULE_INDICATOR([strnlen])
704 if test $ac_cv_func_strtoul = no; then
708 if test $HAVE_STRVERSCMP = 0; then
709 AC_LIBOBJ([strverscmp])
712 gl_STRING_MODULE_INDICATOR([strverscmp])
723 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
724 gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h])
725 gl_LIBUNISTRING_MODULE([0.9.4], [uniwidth/width])
726 gl_FUNC_GLIBC_UNLOCKED_IO
728 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
729 AC_LIBOBJ([unsetenv])
732 gl_STDLIB_MODULE_INDICATOR([unsetenv])
734 gl_FUNC_VFPRINTF_POSIX
735 gl_STDIO_MODULE_INDICATOR([vfprintf-posix])
737 gl_STDIO_MODULE_INDICATOR([vsnprintf])
738 gl_FUNC_VSNPRINTF_POSIX
739 gl_FUNC_VSPRINTF_POSIX
740 gl_STDIO_MODULE_INDICATOR([vsprintf-posix])
743 if test $HAVE_WAITPID = 0; then
746 gl_SYS_WAIT_MODULE_INDICATOR([waitpid])
750 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
753 gl_WCHAR_MODULE_INDICATOR([wcwidth])
755 AC_LIBOBJ([xmemdup0])
758 # End of code from modules
759 m4_ifval(gl_LIBSOURCES_LIST, [
760 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
761 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
762 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
763 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
767 m4_if(m4_sysval, [0], [],
768 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
770 m4_popdef([gl_LIBSOURCES_DIR])
771 m4_popdef([gl_LIBSOURCES_LIST])
772 m4_popdef([AC_LIBSOURCES])
773 m4_popdef([AC_REPLACE_FUNCS])
774 m4_popdef([AC_LIBOBJ])
775 AC_CONFIG_COMMANDS_PRE([
778 if test -n "$gl_LIBOBJS"; then
779 # Remove the extension.
780 sed_drop_objext='s/\.o$//;s/\.obj$//'
781 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
782 gl_libobjs="$gl_libobjs $i.$ac_objext"
783 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
786 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
787 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
791 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
792 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
793 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
794 m4_pushdef([gltests_LIBSOURCES_LIST], [])
795 m4_pushdef([gltests_LIBSOURCES_DIR], [])
797 gl_source_base='tests'
799 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
801 AC_SUBST([gltests_WITNESS])
802 gl_module_indicator_condition=$gltests_WITNESS
803 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
804 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
805 m4_ifval(gltests_LIBSOURCES_LIST, [
806 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
807 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
808 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
809 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
813 m4_if(m4_sysval, [0], [],
814 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
816 m4_popdef([gltests_LIBSOURCES_DIR])
817 m4_popdef([gltests_LIBSOURCES_LIST])
818 m4_popdef([AC_LIBSOURCES])
819 m4_popdef([AC_REPLACE_FUNCS])
820 m4_popdef([AC_LIBOBJ])
821 AC_CONFIG_COMMANDS_PRE([
824 if test -n "$gltests_LIBOBJS"; then
825 # Remove the extension.
826 sed_drop_objext='s/\.o$//;s/\.obj$//'
827 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
828 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
829 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
832 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
833 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
835 LIBBISON_LIBDEPS="$gl_libdeps"
836 AC_SUBST([LIBBISON_LIBDEPS])
837 LIBBISON_LTLIBDEPS="$gl_ltlibdeps"
838 AC_SUBST([LIBBISON_LTLIBDEPS])
841 # Like AC_LIBOBJ, except that the module name goes
842 # into gl_LIBOBJS instead of into LIBOBJS.
843 AC_DEFUN([gl_LIBOBJ], [
844 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
845 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
848 # Like AC_REPLACE_FUNCS, except that the module name goes
849 # into gl_LIBOBJS instead of into LIBOBJS.
850 AC_DEFUN([gl_REPLACE_FUNCS], [
851 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
852 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
855 # Like AC_LIBSOURCES, except the directory where the source file is
856 # expected is derived from the gnulib-tool parameterization,
857 # and alloca is special cased (for the alloca-opt module).
858 # We could also entirely rely on EXTRA_lib..._SOURCES.
859 AC_DEFUN([gl_LIBSOURCES], [
860 m4_foreach([_gl_NAME], [$1], [
861 m4_if(_gl_NAME, [alloca.c], [], [
862 m4_define([gl_LIBSOURCES_DIR], [lib])
863 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
868 # Like AC_LIBOBJ, except that the module name goes
869 # into gltests_LIBOBJS instead of into LIBOBJS.
870 AC_DEFUN([gltests_LIBOBJ], [
871 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
872 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
875 # Like AC_REPLACE_FUNCS, except that the module name goes
876 # into gltests_LIBOBJS instead of into LIBOBJS.
877 AC_DEFUN([gltests_REPLACE_FUNCS], [
878 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
879 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
882 # Like AC_LIBSOURCES, except the directory where the source file is
883 # expected is derived from the gnulib-tool parameterization,
884 # and alloca is special cased (for the alloca-opt module).
885 # We could also entirely rely on EXTRA_lib..._SOURCES.
886 AC_DEFUN([gltests_LIBSOURCES], [
887 m4_foreach([_gl_NAME], [$1], [
888 m4_if(_gl_NAME, [alloca.c], [], [
889 m4_define([gltests_LIBSOURCES_DIR], [tests])
890 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
895 # This macro records the list of files which have been installed by
896 # gnulib-tool and may be removed by future gnulib-tool invocations.
897 AC_DEFUN([gl_FILE_LIST], [
898 build-aux/announce-gen
899 build-aux/config.rpath
900 build-aux/do-release-commit-and-tag
902 build-aux/git-version-gen
903 build-aux/gitlog-to-changelog
904 build-aux/gnu-web-doc-update
906 build-aux/javacomp.sh.in
907 build-aux/javaexec.sh.in
908 build-aux/snippet/_Noreturn.h
909 build-aux/snippet/arg-nonnull.h
910 build-aux/snippet/c++defs.h
911 build-aux/snippet/warn-on-use.h
912 build-aux/update-copyright
913 build-aux/useless-if-before-free
914 build-aux/vc-list-files
987 lib/glthread/threadlib.c
1025 lib/obstack_printf.c
1048 lib/rawmemchr.valgrind
1066 lib/spawn_faction_addclose.c
1067 lib/spawn_faction_adddup2.c
1068 lib/spawn_faction_addopen.c
1069 lib/spawn_faction_destroy.c
1070 lib/spawn_faction_init.c
1072 lib/spawnattr_destroy.c
1073 lib/spawnattr_init.c
1074 lib/spawnattr_setflags.c
1075 lib/spawnattr_setsigmask.c
1090 lib/strchrnul.valgrind
1093 lib/strerror-override.c
1094 lib/strerror-override.h
1117 lib/uniwidth/width.c
1135 lib/xalloc-oversized.h
1146 m4/asm-underscore.m4
1156 m4/double-slash-root.m4
1212 m4/libunistring-base.m4
1235 m4/obstack-printf.m4
1245 m4/printf-posix-rpl.m4
1259 m4/signalblocking.m4
1262 m4/snprintf-posix.m4
1296 m4/vfprintf-posix.m4
1298 m4/vsnprintf-posix.m4
1300 m4/vsprintf-posix.m4