1 # -*- buffer-read-only: t -*- vi: set ro:
2 # DO NOT EDIT! GENERATED AUTOMATICALLY!
3 # DO NOT EDIT! GENERATED AUTOMATICALLY!
4 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
6 # This file is free software, distributed under the terms of the GNU
7 # General Public License. As a special exception to the GNU General
8 # Public License, this file may be distributed as part of a program
9 # that contains a configuration script generated by Autoconf, under
10 # the same distribution terms as the rest of that program.
12 # Generated by gnulib-tool.
14 # This file represents the compiled summary of the specification in
15 # gnulib-cache.m4. It lists the computed macro invocations that need
16 # to be invoked from configure.ac.
17 # In projects that use version control, this file can be treated like
21 # This macro should be invoked from ./configure.ac, in the section
22 # "Checks for programs", right after AC_PROG_CC, and certainly before
23 # any checks for libraries, header files, types and library functions.
26 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
27 m4_pattern_allow([^gl_ES$])dnl a valid locale name
28 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
29 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
30 AC_REQUIRE([gl_PROG_AR_RANLIB])
31 AC_REQUIRE([AM_PROG_CC_C_O])
32 # Code from module alloca:
33 # Code from module alloca-opt:
34 # Code from module alloca-opt-tests:
35 # Code from module announce-gen:
36 # Code from module argmatch:
37 # Code from module argmatch-tests:
38 # Code from module binary-io:
39 # Code from module binary-io-tests:
40 # Code from module bitrotate:
41 # Code from module bitrotate-tests:
42 # Code from module btowc:
43 # Code from module btowc-tests:
44 # Code from module c-ctype:
45 # Code from module c-ctype-tests:
46 # Code from module c-stack:
47 # Code from module c-stack-tests:
48 # Code from module c-strcase:
49 # Code from module c-strcase-tests:
50 # Code from module clock-time:
51 # Code from module config-h:
52 # Code from module configmake:
53 # Code from module diffseq:
54 # Code from module dirname:
55 # Code from module dirname-lgpl:
56 # Code from module dirname-tests:
57 # Code from module do-release-commit-and-tag:
58 # Code from module dosname:
59 # Code from module double-slash-root:
60 # Code from module dup2:
61 # Code from module dup2-tests:
62 # Code from module environ:
63 # Code from module environ-tests:
64 # Code from module errno:
65 # Code from module errno-tests:
66 # Code from module error:
67 # Code from module exclude:
68 # Code from module exclude-tests:
69 # Code from module exitfail:
70 # Code from module extensions:
71 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
72 # Code from module fcntl:
73 # Code from module fcntl-h:
74 # Code from module fcntl-h-tests:
75 # Code from module fcntl-tests:
76 # Code from module fdl:
77 # Code from module file-type:
78 # Code from module filenamecat:
79 # Code from module filenamecat-lgpl:
80 # Code from module filenamecat-tests:
81 # Code from module float:
82 # Code from module float-tests:
83 # Code from module fnmatch:
84 # Code from module fnmatch-gnu:
85 # Code from module fnmatch-tests:
86 # Code from module fpieee:
87 AC_REQUIRE([gl_FP_IEEE])
88 # Code from module fpucw:
89 # Code from module freopen:
90 # Code from module freopen-safer:
91 # Code from module freopen-safer-tests:
92 # Code from module freopen-tests:
93 # Code from module gendocs:
94 # Code from module getcwd-lgpl:
95 # Code from module getcwd-lgpl-tests:
96 # Code from module getdtablesize:
97 # Code from module getdtablesize-tests:
98 # Code from module getopt:
99 # Code from module getopt-gnu:
100 # Code from module getopt-posix:
101 # Code from module getopt-posix-tests:
102 # Code from module getpagesize:
103 # Code from module gettext-h:
104 # Code from module gettime:
105 # Code from module gettimeofday:
106 # Code from module gettimeofday-tests:
107 # Code from module git-version-gen:
108 # Code from module gitlog-to-changelog:
109 # Code from module gnu-make:
110 # Code from module gnu-web-doc-update:
111 # Code from module gnumakefile:
112 # Code from module gnupload:
113 # Code from module gperf:
114 # Code from module hard-locale:
115 # Code from module hash:
116 # Code from module hash-pjw:
117 # Code from module hash-tests:
118 # Code from module havelib:
119 # Code from module iconv:
120 # Code from module iconv-h:
121 # Code from module iconv-h-tests:
122 # Code from module iconv-tests:
123 # Code from module iconv_open:
124 # Code from module ignore-value:
125 # Code from module ignore-value-tests:
126 # Code from module include_next:
127 # Code from module inline:
128 # Code from module intprops:
129 # Code from module intprops-tests:
130 # Code from module inttostr:
131 # Code from module inttostr-tests:
132 # Code from module inttypes:
133 # Code from module inttypes-incomplete:
134 # Code from module inttypes-tests:
135 # Code from module iswblank:
136 # Code from module iswblank-tests:
137 # Code from module langinfo:
138 # Code from module langinfo-tests:
139 # Code from module largefile:
140 AC_REQUIRE([AC_SYS_LARGEFILE])
141 # Code from module libsigsegv:
142 # Code from module localcharset:
143 # Code from module locale:
144 # Code from module locale-tests:
145 # Code from module lstat:
146 # Code from module lstat-tests:
147 # Code from module maintainer-makefile:
148 # Code from module malloc-gnu:
149 # Code from module malloc-gnu-tests:
150 # Code from module malloc-posix:
151 # Code from module malloca:
152 # Code from module malloca-tests:
153 # Code from module manywarnings:
154 # Code from module mbchar:
155 # Code from module mbiter:
156 # Code from module mbrtowc:
157 # Code from module mbrtowc-tests:
158 # Code from module mbscasecmp:
159 # Code from module mbscasecmp-tests:
160 # Code from module mbsinit:
161 # Code from module mbsinit-tests:
162 # Code from module mbslen:
163 # Code from module mbsrtowcs:
164 # Code from module mbsrtowcs-tests:
165 # Code from module mbsstr:
166 # Code from module mbsstr-tests:
167 # Code from module mbtowc:
168 # Code from module mbuiter:
169 # Code from module memchr:
170 # Code from module memchr-tests:
171 # Code from module mkstemp:
172 # Code from module mktime:
173 # Code from module multiarch:
174 # Code from module nl_langinfo:
175 # Code from module nl_langinfo-tests:
176 # Code from module nocrash:
177 # Code from module open:
178 # Code from module open-tests:
179 # Code from module progname:
180 # Code from module propername:
181 # Code from module putenv:
182 # Code from module quote:
183 # Code from module quotearg:
184 # Code from module quotearg-simple:
185 # Code from module quotearg-simple-tests:
186 # Code from module readme-release:
187 # Code from module regex:
188 # Code from module same-inode:
189 # Code from module setenv:
190 # Code from module setenv-tests:
191 # Code from module setlocale:
192 # Code from module setlocale-tests:
193 # Code from module sh-quote:
194 # Code from module sigaction:
195 # Code from module sigaction-tests:
196 # Code from module signal:
197 # Code from module signal-tests:
198 # Code from module sigprocmask:
199 # Code from module sigprocmask-tests:
200 # Code from module size_max:
201 # Code from module sleep:
202 # Code from module sleep-tests:
203 # Code from module snippet/_Noreturn:
204 # Code from module snippet/arg-nonnull:
205 # Code from module snippet/c++defs:
206 # Code from module snippet/unused-parameter:
207 # Code from module snippet/warn-on-use:
208 # Code from module snprintf:
209 # Code from module snprintf-tests:
210 # Code from module ssize_t:
211 # Code from module stat:
212 # Code from module stat-macros:
213 # Code from module stat-tests:
214 # Code from module stat-time:
215 # Code from module stat-time-tests:
216 # Code from module stdarg:
217 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
218 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
219 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
220 dnl shouldn't hurt, though installers are on their own to set c99 mode.
221 AC_REQUIRE([AC_PROG_CC_STDC])
222 # Code from module stdbool:
223 # Code from module stdbool-tests:
224 # Code from module stddef:
225 # Code from module stddef-tests:
226 # Code from module stdint:
227 # Code from module stdint-tests:
228 # Code from module stdio:
229 # Code from module stdio-tests:
230 # Code from module stdlib:
231 # Code from module stdlib-tests:
232 # Code from module strcase:
233 # Code from module streq:
234 # Code from module strerror:
235 # Code from module strerror-override:
236 # Code from module strerror-tests:
237 # Code from module strftime:
238 # Code from module strftime-tests:
239 # Code from module striconv:
240 # Code from module striconv-tests:
241 # Code from module string:
242 # Code from module string-tests:
243 # Code from module strings:
244 # Code from module strings-tests:
245 # Code from module strndup:
246 # Code from module strnlen:
247 # Code from module strnlen-tests:
248 # Code from module strnlen1:
249 # Code from module strptime:
250 # Code from module strtoull:
251 # Code from module strtoumax:
252 # Code from module strtoumax-tests:
253 # Code from module symlink:
254 # Code from module symlink-tests:
255 # Code from module sys_stat:
256 # Code from module sys_stat-tests:
257 # Code from module sys_time:
258 # Code from module sys_time-tests:
259 # Code from module sys_wait:
260 # Code from module sys_wait-tests:
261 # Code from module tempname:
262 # Code from module time:
263 # Code from module time-tests:
264 # Code from module time_r:
265 # Code from module timespec:
266 # Code from module trim:
267 # Code from module unistd:
268 # Code from module unistd-tests:
269 # Code from module unistr/base:
270 # Code from module unistr/u8-mbtoucr:
271 # Code from module unistr/u8-mbtoucr-tests:
272 # Code from module unistr/u8-uctomb:
273 # Code from module unistr/u8-uctomb-tests:
274 # Code from module unitypes:
275 # Code from module uniwidth/base:
276 # Code from module uniwidth/width:
277 # Code from module uniwidth/width-tests:
278 # Code from module unlocked-io:
279 # Code from module unsetenv:
280 # Code from module unsetenv-tests:
281 # Code from module update-copyright:
282 # Code from module update-copyright-tests:
283 # Code from module useless-if-before-free:
284 # Code from module usleep:
285 # Code from module usleep-tests:
286 # Code from module vasnprintf:
287 # Code from module vasnprintf-tests:
288 # Code from module vc-list-files:
289 # Code from module vc-list-files-tests:
290 # Code from module verify:
291 # Code from module verify-tests:
292 # Code from module version-etc:
293 # Code from module version-etc-fsf:
294 # Code from module version-etc-tests:
295 # Code from module warnings:
296 # Code from module wchar:
297 # Code from module wchar-tests:
298 # Code from module wcrtomb:
299 # Code from module wcrtomb-tests:
300 # Code from module wctob:
301 # Code from module wctomb:
302 # Code from module wctype-h:
303 # Code from module wctype-h-tests:
304 # Code from module wcwidth:
305 # Code from module wcwidth-tests:
306 # Code from module xalloc:
307 # Code from module xalloc-die:
308 # Code from module xalloc-die-tests:
309 # Code from module xalloc-oversized:
310 # Code from module xfreopen:
311 # Code from module xsize:
312 # Code from module xstriconv:
313 # Code from module xstrndup:
314 # Code from module xstrtol:
315 # Code from module xstrtol-tests:
316 # Code from module xstrtoumax:
317 # Code from module xstrtoumax-tests:
320 # This macro should be invoked from ./configure.ac, in the section
321 # "Check for header files, types and library functions".
324 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
325 gl_cond_libtool=false
329 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
330 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
331 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
332 m4_pushdef([gl_LIBSOURCES_LIST], [])
333 m4_pushdef([gl_LIBSOURCES_DIR], [])
337 AC_REQUIRE([AC_C_INLINE])
339 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
343 gl_WCHAR_MODULE_INDICATOR([btowc])
349 gl_MODULE_INDICATOR([dirname])
353 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
356 gl_UNISTD_MODULE_INDICATOR([dup2])
359 if test $ac_cv_lib_error_at_line = no; then
363 m4_ifdef([AM_XGETTEXT_OPTION],
364 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
365 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
367 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
370 gl_FCNTL_MODULE_INDICATOR([fcntl])
373 gl_MODULE_INDICATOR([filenamecat])
374 gl_FILE_NAME_CONCAT_LGPL
375 gl_FUNC_FNMATCH_POSIX
376 if test -n "$FNMATCH_H"; then
381 if test -n "$FNMATCH_H"; then
386 if test $REPLACE_FREOPEN = 1; then
390 gl_STDIO_MODULE_INDICATOR([freopen])
391 gl_MODULE_INDICATOR([freopen-safer])
392 gl_FUNC_GETDTABLESIZE
393 if test $HAVE_GETDTABLESIZE = 0; then
394 AC_LIBOBJ([getdtablesize])
396 gl_UNISTD_MODULE_INDICATOR([getdtablesize])
398 if test $REPLACE_GETOPT = 1; then
403 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
405 if test $REPLACE_GETOPT = 1; then
411 AC_SUBST([LTLIBINTL])
414 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
415 AC_LIBOBJ([gettimeofday])
416 gl_PREREQ_GETTIMEOFDAY
418 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
420 # Autoconf 2.61a.99 and earlier don't support linking a file only
421 # in VPATH builds. But since GNUmakefile is for maintainer use
422 # only, it does not matter if we skip the link with older autoconf.
423 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
424 # builds, so use a shell variable to bypass this.
425 GNUmakefile=GNUmakefile
426 m4_if(m4_version_compare([2.61a.100],
427 m4_defn([m4_PACKAGE_VERSION])), [1], [],
428 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
429 [GNUmakefile=$GNUmakefile])])
432 m4_ifdef([gl_ICONV_MODULE_INDICATOR],
433 [gl_ICONV_MODULE_INDICATOR([iconv])])
436 if test $REPLACE_ICONV_OPEN = 1; then
437 AC_LIBOBJ([iconv_open])
439 if test $REPLACE_ICONV = 1; then
441 AC_LIBOBJ([iconv_close])
443 AC_REQUIRE([AC_C_INLINE])
447 gl_INTTYPES_INCOMPLETE
449 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
452 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
453 AC_LIBOBJ([iswblank])
456 gl_WCTYPE_MODULE_INDICATOR([iswblank])
460 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
461 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
463 if test $REPLACE_LSTAT = 1; then
467 gl_SYS_STAT_MODULE_INDICATOR([lstat])
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])
484 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
488 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
489 gl_STRING_MODULE_INDICATOR([mbscasecmp])
491 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
495 gl_WCHAR_MODULE_INDICATOR([mbsinit])
497 gl_STRING_MODULE_INDICATOR([mbslen])
499 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
500 AC_LIBOBJ([mbsrtowcs])
501 AC_LIBOBJ([mbsrtowcs-state])
504 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
505 gl_STRING_MODULE_INDICATOR([mbsstr])
507 if test $REPLACE_MBTOWC = 1; then
511 gl_STDLIB_MODULE_INDICATOR([mbtowc])
514 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
518 gl_STRING_MODULE_INDICATOR([memchr])
520 if test $HAVE_MKSTEMP = 0 || test $REPLACE_MKSTEMP = 1; then
524 gl_STDLIB_MODULE_INDICATOR([mkstemp])
526 if test $REPLACE_MKTIME = 1; then
530 gl_TIME_MODULE_INDICATOR([mktime])
533 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
534 AC_LIBOBJ([nl_langinfo])
536 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
538 if test $REPLACE_OPEN = 1; then
542 gl_FCNTL_MODULE_INDICATOR([open])
543 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
544 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
545 m4_ifdef([AM_XGETTEXT_OPTION],
546 [AM_][XGETTEXT_OPTION([--keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'])
547 AM_][XGETTEXT_OPTION([--keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'])])
551 if test $ac_use_included_regex = yes; then
556 if test $HAVE_SIGACTION = 0; then
557 AC_LIBOBJ([sigaction])
560 gl_SIGNAL_MODULE_INDICATOR([sigaction])
563 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
564 AC_LIBOBJ([sigprocmask])
565 gl_PREREQ_SIGPROCMASK
567 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
570 if test $REPLACE_STAT = 1; then
574 gl_SYS_STAT_MODULE_INDICATOR([stat])
584 if test $HAVE_STRCASECMP = 0; then
585 AC_LIBOBJ([strcasecmp])
588 if test $HAVE_STRNCASECMP = 0; then
589 AC_LIBOBJ([strncasecmp])
590 gl_PREREQ_STRNCASECMP
593 if test $REPLACE_STRERROR = 1; then
594 AC_LIBOBJ([strerror])
596 gl_MODULE_INDICATOR([strerror])
597 gl_STRING_MODULE_INDICATOR([strerror])
598 AC_REQUIRE([gl_HEADER_ERRNO_H])
599 AC_REQUIRE([gl_FUNC_STRERROR_0])
600 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
601 AC_LIBOBJ([strerror-override])
602 gl_PREREQ_SYS_H_WINSOCK2
605 if test $gl_cond_libtool = false; then
606 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
607 gl_libdeps="$gl_libdeps $LIBICONV"
612 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
615 gl_STRING_MODULE_INDICATOR([strndup])
617 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
621 gl_STRING_MODULE_INDICATOR([strnlen])
623 if test $HAVE_STRPTIME = 0; then
624 AC_LIBOBJ([strptime])
627 gl_TIME_MODULE_INDICATOR([strptime])
629 if test $HAVE_STRTOULL = 0; then
630 AC_LIBOBJ([strtoull])
633 gl_STDLIB_MODULE_INDICATOR([strtoull])
635 if test $ac_cv_func_strtoumax = no; then
636 AC_LIBOBJ([strtoumax])
639 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
649 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
653 gl_TIME_MODULE_INDICATOR([time_r])
656 gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h])
657 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
658 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
659 gl_MODULE_INDICATOR([unistr/u8-uctomb])
660 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
661 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
662 gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h])
663 gl_LIBUNISTRING_MODULE([0.9.4], [uniwidth/width])
664 gl_FUNC_GLIBC_UNLOCKED_IO
666 AC_SUBST([WARN_CFLAGS])
669 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
673 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
676 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
679 gl_WCHAR_MODULE_INDICATOR([wcwidth])
683 # End of code from modules
684 m4_ifval(gl_LIBSOURCES_LIST, [
685 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
686 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
687 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
688 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
692 m4_if(m4_sysval, [0], [],
693 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
695 m4_popdef([gl_LIBSOURCES_DIR])
696 m4_popdef([gl_LIBSOURCES_LIST])
697 m4_popdef([AC_LIBSOURCES])
698 m4_popdef([AC_REPLACE_FUNCS])
699 m4_popdef([AC_LIBOBJ])
700 AC_CONFIG_COMMANDS_PRE([
703 if test -n "$gl_LIBOBJS"; then
704 # Remove the extension.
705 sed_drop_objext='s/\.o$//;s/\.obj$//'
706 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
707 gl_libobjs="$gl_libobjs $i.$ac_objext"
708 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
711 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
712 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
716 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
717 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
718 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
719 m4_pushdef([gltests_LIBSOURCES_LIST], [])
720 m4_pushdef([gltests_LIBSOURCES_DIR], [])
722 gl_source_base='gnulib-tests'
724 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
726 AC_SUBST([gltests_WITNESS])
727 gl_module_indicator_condition=$gltests_WITNESS
728 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
734 gl_UNISTD_MODULE_INDICATOR([environ])
736 if test $REPLACE_FLOAT_LDBL = 1; then
740 if test $REPLACE_GETCWD = 1; then
741 AC_LIBOBJ([getcwd-lgpl])
743 gl_UNISTD_MODULE_INDICATOR([getcwd])
745 if test $REPLACE_GETPAGESIZE = 1; then
746 AC_LIBOBJ([getpagesize])
748 gl_UNISTD_MODULE_INDICATOR([getpagesize])
750 AC_CHECK_FUNCS_ONCE([newlocale])
763 dnl Check for prerequisites for memory fence checks.
765 AC_CHECK_HEADERS_ONCE([sys/mman.h])
766 AC_CHECK_FUNCS_ONCE([mprotect])
770 if test $REPLACE_PUTENV = 1; then
773 gl_STDLIB_MODULE_INDICATOR([putenv])
775 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
778 gl_STDLIB_MODULE_INDICATOR([setenv])
780 if test $REPLACE_SETLOCALE = 1; then
781 AC_LIBOBJ([setlocale])
784 gl_LOCALE_MODULE_INDICATOR([setlocale])
791 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
794 gl_UNISTD_MODULE_INDICATOR([sleep])
795 AC_CHECK_DECLS_ONCE([alarm])
797 gl_STDIO_MODULE_INDICATOR([snprintf])
798 gl_MODULE_INDICATOR([snprintf])
801 dnl Check for prerequisites for memory fence checks.
803 AC_CHECK_HEADERS_ONCE([sys/mman.h])
804 AC_CHECK_FUNCS_ONCE([mprotect])
806 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
809 gl_UNISTD_MODULE_INDICATOR([symlink])
811 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
812 AC_LIBOBJ([unsetenv])
815 gl_STDLIB_MODULE_INDICATOR([unsetenv])
816 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
817 AC_SUBST([abs_aux_dir])
819 if test $HAVE_USLEEP = 0 || test $REPLACE_USLEEP = 1; then
822 gl_UNISTD_MODULE_INDICATOR([usleep])
824 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
825 AC_SUBST([abs_aux_dir])
831 if test $HAVE_WCTOB = 0 || test $REPLACE_WCTOB = 1; then
835 gl_WCHAR_MODULE_INDICATOR([wctob])
837 if test $REPLACE_WCTOMB = 1; then
841 gl_STDLIB_MODULE_INDICATOR([wctomb])
843 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
844 m4_ifval(gltests_LIBSOURCES_LIST, [
845 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
846 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
847 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
848 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
852 m4_if(m4_sysval, [0], [],
853 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
855 m4_popdef([gltests_LIBSOURCES_DIR])
856 m4_popdef([gltests_LIBSOURCES_LIST])
857 m4_popdef([AC_LIBSOURCES])
858 m4_popdef([AC_REPLACE_FUNCS])
859 m4_popdef([AC_LIBOBJ])
860 AC_CONFIG_COMMANDS_PRE([
863 if test -n "$gltests_LIBOBJS"; then
864 # Remove the extension.
865 sed_drop_objext='s/\.o$//;s/\.obj$//'
866 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
867 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
868 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
871 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
872 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
874 LIBDIFFUTILS_LIBDEPS="$gl_libdeps"
875 AC_SUBST([LIBDIFFUTILS_LIBDEPS])
876 LIBDIFFUTILS_LTLIBDEPS="$gl_ltlibdeps"
877 AC_SUBST([LIBDIFFUTILS_LTLIBDEPS])
878 LIBTESTS_LIBDEPS="$gltests_libdeps"
879 AC_SUBST([LIBTESTS_LIBDEPS])
882 # Like AC_LIBOBJ, except that the module name goes
883 # into gl_LIBOBJS instead of into LIBOBJS.
884 AC_DEFUN([gl_LIBOBJ], [
885 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
886 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
889 # Like AC_REPLACE_FUNCS, except that the module name goes
890 # into gl_LIBOBJS instead of into LIBOBJS.
891 AC_DEFUN([gl_REPLACE_FUNCS], [
892 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
893 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
896 # Like AC_LIBSOURCES, except the directory where the source file is
897 # expected is derived from the gnulib-tool parameterization,
898 # and alloca is special cased (for the alloca-opt module).
899 # We could also entirely rely on EXTRA_lib..._SOURCES.
900 AC_DEFUN([gl_LIBSOURCES], [
901 m4_foreach([_gl_NAME], [$1], [
902 m4_if(_gl_NAME, [alloca.c], [], [
903 m4_define([gl_LIBSOURCES_DIR], [lib])
904 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
909 # Like AC_LIBOBJ, except that the module name goes
910 # into gltests_LIBOBJS instead of into LIBOBJS.
911 AC_DEFUN([gltests_LIBOBJ], [
912 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
913 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
916 # Like AC_REPLACE_FUNCS, except that the module name goes
917 # into gltests_LIBOBJS instead of into LIBOBJS.
918 AC_DEFUN([gltests_REPLACE_FUNCS], [
919 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
920 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
923 # Like AC_LIBSOURCES, except the directory where the source file is
924 # expected is derived from the gnulib-tool parameterization,
925 # and alloca is special cased (for the alloca-opt module).
926 # We could also entirely rely on EXTRA_lib..._SOURCES.
927 AC_DEFUN([gltests_LIBSOURCES], [
928 m4_foreach([_gl_NAME], [$1], [
929 m4_if(_gl_NAME, [alloca.c], [], [
930 m4_define([gltests_LIBSOURCES_DIR], [gnulib-tests])
931 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
936 # This macro records the list of files which have been installed by
937 # gnulib-tool and may be removed by future gnulib-tool invocations.
938 AC_DEFUN([gl_FILE_LIST], [
939 build-aux/announce-gen
940 build-aux/config.rpath
941 build-aux/do-release-commit-and-tag
943 build-aux/git-version-gen
944 build-aux/gitlog-to-changelog
945 build-aux/gnu-web-doc-update
947 build-aux/snippet/_Noreturn.h
948 build-aux/snippet/arg-nonnull.h
949 build-aux/snippet/c++defs.h
950 build-aux/snippet/unused-parameter.h
951 build-aux/snippet/warn-on-use.h
952 build-aux/update-copyright
953 build-aux/useless-if-before-free
954 build-aux/vc-list-files
989 lib/filenamecat-lgpl.c
1012 lib/iconv_open-aix.gperf
1013 lib/iconv_open-hpux.gperf
1014 lib/iconv_open-irix.gperf
1015 lib/iconv_open-osf.gperf
1016 lib/iconv_open-solaris.gperf
1032 lib/malloca.valgrind
1040 lib/mbsrtowcs-impl.h
1041 lib/mbsrtowcs-state.c
1050 lib/mktime-internal.h
1068 lib/regex_internal.c
1069 lib/regex_internal.h
1091 lib/strerror-override.c
1092 lib/strerror-override.h
1126 lib/unistr/u8-mbtoucr.c
1127 lib/unistr/u8-uctomb-aux.c
1128 lib/unistr/u8-uctomb.c
1132 lib/uniwidth/width.c
1135 lib/version-etc-fsf.c
1143 lib/xalloc-oversized.h
1166 m4/double-slash-root.m4
1208 m4/libunistring-base.m4
1246 m4/signalblocking.m4
1302 tests/test-alloca-opt.c
1303 tests/test-argmatch.c
1304 tests/test-binary-io.c
1305 tests/test-binary-io.sh
1306 tests/test-bitrotate.c
1308 tests/test-btowc1.sh
1309 tests/test-btowc2.sh
1310 tests/test-c-ctype.c
1311 tests/test-c-stack.c
1312 tests/test-c-stack.sh
1313 tests/test-c-stack2.sh
1314 tests/test-c-strcase.sh
1315 tests/test-c-strcasecmp.c
1316 tests/test-c-strncasecmp.c
1317 tests/test-dirname.c
1319 tests/test-environ.c
1321 tests/test-exclude.c
1322 tests/test-exclude1.sh
1323 tests/test-exclude2.sh
1324 tests/test-exclude3.sh
1325 tests/test-exclude4.sh
1326 tests/test-exclude5.sh
1327 tests/test-exclude6.sh
1328 tests/test-exclude7.sh
1329 tests/test-exclude8.sh
1330 tests/test-fcntl-h.c
1332 tests/test-filenamecat.c
1334 tests/test-fnmatch.c
1335 tests/test-freopen-safer.c
1336 tests/test-freopen.c
1337 tests/test-getcwd-lgpl.c
1338 tests/test-getdtablesize.c
1341 tests/test-getopt_long.h
1342 tests/test-gettimeofday.c
1344 tests/test-iconv-h.c
1346 tests/test-ignore-value.c
1347 tests/test-intprops.c
1348 tests/test-inttostr.c
1349 tests/test-inttypes.c
1350 tests/test-iswblank.c
1351 tests/test-langinfo.c
1355 tests/test-malloc-gnu.c
1356 tests/test-malloca.c
1357 tests/test-mbrtowc-w32-1.sh
1358 tests/test-mbrtowc-w32-2.sh
1359 tests/test-mbrtowc-w32-3.sh
1360 tests/test-mbrtowc-w32-4.sh
1361 tests/test-mbrtowc-w32-5.sh
1362 tests/test-mbrtowc-w32.c
1363 tests/test-mbrtowc.c
1364 tests/test-mbrtowc1.sh
1365 tests/test-mbrtowc2.sh
1366 tests/test-mbrtowc3.sh
1367 tests/test-mbrtowc4.sh
1368 tests/test-mbscasecmp.c
1369 tests/test-mbscasecmp.sh
1370 tests/test-mbsinit.c
1371 tests/test-mbsinit.sh
1372 tests/test-mbsrtowcs.c
1373 tests/test-mbsrtowcs1.sh
1374 tests/test-mbsrtowcs2.sh
1375 tests/test-mbsrtowcs3.sh
1376 tests/test-mbsrtowcs4.sh
1377 tests/test-mbsstr1.c
1378 tests/test-mbsstr2.c
1379 tests/test-mbsstr2.sh
1380 tests/test-mbsstr3.c
1381 tests/test-mbsstr3.sh
1383 tests/test-nl_langinfo.c
1384 tests/test-nl_langinfo.sh
1387 tests/test-quotearg-simple.c
1388 tests/test-quotearg.h
1390 tests/test-setlocale1.c
1391 tests/test-setlocale1.sh
1392 tests/test-setlocale2.c
1393 tests/test-setlocale2.sh
1394 tests/test-sigaction.c
1396 tests/test-sigprocmask.c
1398 tests/test-snprintf.c
1399 tests/test-stat-time.c
1402 tests/test-stdbool.c
1407 tests/test-strerror.c
1408 tests/test-strftime.c
1409 tests/test-striconv.c
1411 tests/test-strings.c
1412 tests/test-strnlen.c
1413 tests/test-strtoumax.c
1414 tests/test-symlink.c
1415 tests/test-symlink.h
1416 tests/test-sys_stat.c
1417 tests/test-sys_time.c
1418 tests/test-sys_wait.c
1419 tests/test-sys_wait.h
1422 tests/test-unsetenv.c
1423 tests/test-update-copyright.sh
1425 tests/test-vasnprintf.c
1426 tests/test-vc-list-files-cvs.sh
1427 tests/test-vc-list-files-git.sh
1429 tests/test-verify.sh
1430 tests/test-version-etc.c
1431 tests/test-version-etc.sh
1433 tests/test-wcrtomb-w32-1.sh
1434 tests/test-wcrtomb-w32-2.sh
1435 tests/test-wcrtomb-w32-3.sh
1436 tests/test-wcrtomb-w32-4.sh
1437 tests/test-wcrtomb-w32-5.sh
1438 tests/test-wcrtomb-w32.c
1439 tests/test-wcrtomb.c
1440 tests/test-wcrtomb.sh
1441 tests/test-wctype-h.c
1442 tests/test-wcwidth.c
1443 tests/test-xalloc-die.c
1444 tests/test-xalloc-die.sh
1445 tests/test-xstrtol.c
1446 tests/test-xstrtol.sh
1447 tests/test-xstrtoul.c
1448 tests/test-xstrtoumax.c
1449 tests/test-xstrtoumax.sh
1450 tests/unistr/test-u8-mbtoucr.c
1451 tests/unistr/test-u8-uctomb.c
1452 tests/uniwidth/test-uc_width.c
1453 tests/uniwidth/test-uc_width2.c
1454 tests/uniwidth/test-uc_width2.sh
1455 tests/zerosize-ptr.h
1456 tests=lib/argmatch.c
1457 tests=lib/argmatch.h
1458 tests=lib/asnprintf.c
1459 tests=lib/binary-io.h
1462 tests=lib/float.in.h
1464 tests=lib/getcwd-lgpl.c
1465 tests=lib/getpagesize.c
1466 tests=lib/hash-pjw.c
1467 tests=lib/hash-pjw.h
1468 tests=lib/locale.in.h
1469 tests=lib/printf-args.c
1470 tests=lib/printf-args.h
1471 tests=lib/printf-parse.c
1472 tests=lib/printf-parse.h
1474 tests=lib/same-inode.h
1476 tests=lib/setlocale.c
1477 tests=lib/size_max.h
1479 tests=lib/snprintf.c
1481 tests=lib/unsetenv.c
1483 tests=lib/vasnprintf.c
1484 tests=lib/vasnprintf.h
1486 tests=lib/wctomb-impl.h