1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2010 Free Software Foundation, Inc.
4 # This file is free software, distributed under the terms of the GNU
5 # General Public License. As a special exception to the GNU General
6 # Public License, this file may be distributed as part of a program
7 # that contains a configuration script generated by Autoconf, under
8 # the same distribution terms as the rest of that program.
10 # Generated by gnulib-tool.
12 # This file represents the compiled summary of the specification in
13 # gnulib-cache.m4. It lists the computed macro invocations that need
14 # to be invoked from configure.ac.
15 # In projects that use version control, this file can be treated like
19 # This macro should be invoked from ./configure.in, in the section
20 # "Checks for programs", right after AC_PROG_CC, and certainly before
21 # any checks for libraries, header files, types and library functions.
24 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
25 m4_pattern_allow([^gl_ES$])dnl a valid locale name
26 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
27 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
28 AC_REQUIRE([AC_PROG_RANLIB])
29 AC_REQUIRE([AM_PROG_CC_C_O])
30 # Code from module alignof:
31 # Code from module alloca-opt:
32 # Code from module arg-nonnull:
33 # Code from module arpa_inet:
34 # Code from module base64:
35 # Code from module btowc:
36 # Code from module c++defs:
37 # Code from module c-ctype:
38 # Code from module configmake:
39 # Code from module environ:
40 # Code from module errno:
41 # Code from module extensions:
42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43 # Code from module float:
44 # Code from module fseeko:
45 AC_REQUIRE([AC_FUNC_FSEEKO])
46 # Code from module fsusage:
47 # Code from module ftello:
48 AC_REQUIRE([AC_FUNC_FSEEKO])
49 # Code from module ftruncate:
50 # Code from module full-read:
51 # Code from module full-write:
52 # Code from module getaddrinfo:
53 # Code from module getopt-gnu:
54 # Code from module getopt-posix:
55 # Code from module gettext-h:
56 # Code from module gettimeofday:
57 # Code from module havelib:
58 # Code from module hostent:
59 # Code from module include_next:
60 # Code from module inet_ntop:
61 # Code from module inet_pton:
62 # Code from module langinfo:
63 # Code from module localcharset:
64 # Code from module lock:
65 # Code from module lseek:
66 # Code from module lstat:
67 # Code from module malloc-gnu:
68 # Code from module malloc-posix:
69 # Code from module mbrtowc:
70 # Code from module mbsinit:
71 # Code from module memchr:
72 # Code from module mkdtemp:
73 # Code from module multiarch:
74 # Code from module netdb:
75 # Code from module netinet_in:
76 # Code from module nl_langinfo:
77 # Code from module physmem:
78 # Code from module regex:
79 # Code from module safe-read:
80 # Code from module safe-write:
81 # Code from module servent:
82 # Code from module size_max:
83 # Code from module snprintf:
84 # Code from module socklen:
85 # Code from module ssize_t:
86 # Code from module stat:
87 # Code from module stdbool:
88 # Code from module stddef:
89 # Code from module stdint:
90 # Code from module stdio:
91 # Code from module stdlib:
92 # Code from module streq:
93 # Code from module string:
94 # Code from module sys_socket:
95 # Code from module sys_stat:
96 # Code from module sys_time:
97 # Code from module tempname:
98 # Code from module threadlib:
100 # Code from module time:
101 # Code from module unistd:
102 # Code from module vasnprintf:
103 # Code from module verify:
104 # Code from module warn-on-use:
105 # Code from module wchar:
106 # Code from module wcrtomb:
107 # Code from module wctype:
108 # Code from module write:
109 # Code from module xsize:
112 # This macro should be invoked from ./configure.in, in the section
113 # "Check for header files, types and library functions".
116 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
118 gl_m4_base='config/gnulib'
119 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
120 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
121 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
122 m4_pushdef([gl_LIBSOURCES_LIST], [])
123 m4_pushdef([gl_LIBSOURCES_DIR], [])
125 gl_source_base='gnulib'
126 # Code from module alignof:
127 # Code from module alloca-opt:
129 # Code from module arg-nonnull:
130 # Code from module arpa_inet:
133 # Code from module base64:
135 # Code from module btowc:
137 gl_WCHAR_MODULE_INDICATOR([btowc])
138 # Code from module c++defs:
139 # Code from module c-ctype:
140 # Code from module configmake:
141 # Code from module environ:
143 gl_UNISTD_MODULE_INDICATOR([environ])
144 # Code from module errno:
146 # Code from module extensions:
147 # Code from module float:
149 # Code from module fseeko:
151 gl_STDIO_MODULE_INDICATOR([fseeko])
152 # Code from module fsusage:
154 # Code from module ftello:
156 gl_STDIO_MODULE_INDICATOR([ftello])
157 # Code from module ftruncate:
159 gl_UNISTD_MODULE_INDICATOR([ftruncate])
160 # Code from module full-read:
161 # Code from module full-write:
162 # Code from module getaddrinfo:
164 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
165 # Code from module getopt-gnu:
167 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
168 # Code from module getopt-posix:
170 # Code from module gettext-h:
172 AC_SUBST([LTLIBINTL])
173 # Code from module gettimeofday:
175 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
176 # Code from module havelib:
177 # Code from module hostent:
179 # Code from module include_next:
180 # Code from module inet_ntop:
182 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
183 # Code from module inet_pton:
185 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
186 # Code from module langinfo:
188 # Code from module localcharset:
190 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
191 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
192 # Code from module lock:
194 # Code from module lseek:
196 gl_UNISTD_MODULE_INDICATOR([lseek])
197 # Code from module lstat:
199 gl_SYS_STAT_MODULE_INDICATOR([lstat])
200 # Code from module malloc-gnu:
202 gl_MODULE_INDICATOR([malloc-gnu])
203 # Code from module malloc-posix:
205 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
206 # Code from module mbrtowc:
208 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
209 # Code from module mbsinit:
211 gl_WCHAR_MODULE_INDICATOR([mbsinit])
212 # Code from module memchr:
214 gl_STRING_MODULE_INDICATOR([memchr])
215 # Code from module mkdtemp:
217 gl_STDLIB_MODULE_INDICATOR([mkdtemp])
218 # Code from module multiarch:
220 # Code from module netdb:
222 # Code from module netinet_in:
225 # Code from module nl_langinfo:
227 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
228 # Code from module physmem:
230 # Code from module regex:
232 # Code from module safe-read:
234 # Code from module safe-write:
236 # Code from module servent:
238 # Code from module size_max:
240 # Code from module snprintf:
242 gl_STDIO_MODULE_INDICATOR([snprintf])
243 # Code from module socklen:
245 # Code from module ssize_t:
247 # Code from module stat:
249 gl_SYS_STAT_MODULE_INDICATOR([stat])
250 # Code from module stdbool:
252 # Code from module stddef:
254 # Code from module stdint:
256 # Code from module stdio:
258 # Code from module stdlib:
260 # Code from module streq:
261 # Code from module string:
263 # Code from module sys_socket:
266 # Code from module sys_stat:
269 # Code from module sys_time:
272 # Code from module tempname:
274 # Code from module threadlib:
276 # Code from module time:
278 # Code from module unistd:
280 # Code from module vasnprintf:
282 # Code from module verify:
283 # Code from module warn-on-use:
284 # Code from module wchar:
286 # Code from module wcrtomb:
288 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
289 # Code from module wctype:
291 # Code from module write:
293 gl_UNISTD_MODULE_INDICATOR([write])
294 # Code from module xsize:
296 # End of code from modules
297 m4_ifval(gl_LIBSOURCES_LIST, [
298 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
299 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
300 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
301 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
305 m4_if(m4_sysval, [0], [],
306 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
308 m4_popdef([gl_LIBSOURCES_DIR])
309 m4_popdef([gl_LIBSOURCES_LIST])
310 m4_popdef([AC_LIBSOURCES])
311 m4_popdef([AC_REPLACE_FUNCS])
312 m4_popdef([AC_LIBOBJ])
313 AC_CONFIG_COMMANDS_PRE([
316 if test -n "$gl_LIBOBJS"; then
317 # Remove the extension.
318 sed_drop_objext='s/\.o$//;s/\.obj$//'
319 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
320 gl_libobjs="$gl_libobjs $i.$ac_objext"
321 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
324 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
325 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
329 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
330 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
331 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
332 m4_pushdef([gltests_LIBSOURCES_LIST], [])
333 m4_pushdef([gltests_LIBSOURCES_DIR], [])
335 gl_source_base='tests'
337 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
339 AC_SUBST([gltests_WITNESS])
340 gl_module_indicator_condition=$gltests_WITNESS
341 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
342 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
343 m4_ifval(gltests_LIBSOURCES_LIST, [
344 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
345 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
346 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
347 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
351 m4_if(m4_sysval, [0], [],
352 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
354 m4_popdef([gltests_LIBSOURCES_DIR])
355 m4_popdef([gltests_LIBSOURCES_LIST])
356 m4_popdef([AC_LIBSOURCES])
357 m4_popdef([AC_REPLACE_FUNCS])
358 m4_popdef([AC_LIBOBJ])
359 AC_CONFIG_COMMANDS_PRE([
362 if test -n "$gltests_LIBOBJS"; then
363 # Remove the extension.
364 sed_drop_objext='s/\.o$//;s/\.obj$//'
365 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
366 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
367 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
370 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
371 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
375 # Like AC_LIBOBJ, except that the module name goes
376 # into gl_LIBOBJS instead of into LIBOBJS.
377 AC_DEFUN([gl_LIBOBJ], [
378 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
379 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
382 # Like AC_REPLACE_FUNCS, except that the module name goes
383 # into gl_LIBOBJS instead of into LIBOBJS.
384 AC_DEFUN([gl_REPLACE_FUNCS], [
385 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
386 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
389 # Like AC_LIBSOURCES, except the directory where the source file is
390 # expected is derived from the gnulib-tool parameterization,
391 # and alloca is special cased (for the alloca-opt module).
392 # We could also entirely rely on EXTRA_lib..._SOURCES.
393 AC_DEFUN([gl_LIBSOURCES], [
394 m4_foreach([_gl_NAME], [$1], [
395 m4_if(_gl_NAME, [alloca.c], [], [
396 m4_define([gl_LIBSOURCES_DIR], [gnulib])
397 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
402 # Like AC_LIBOBJ, except that the module name goes
403 # into gltests_LIBOBJS instead of into LIBOBJS.
404 AC_DEFUN([gltests_LIBOBJ], [
405 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
406 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
409 # Like AC_REPLACE_FUNCS, except that the module name goes
410 # into gltests_LIBOBJS instead of into LIBOBJS.
411 AC_DEFUN([gltests_REPLACE_FUNCS], [
412 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
413 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
416 # Like AC_LIBSOURCES, except the directory where the source file is
417 # expected is derived from the gnulib-tool parameterization,
418 # and alloca is special cased (for the alloca-opt module).
419 # We could also entirely rely on EXTRA_lib..._SOURCES.
420 AC_DEFUN([gltests_LIBSOURCES], [
421 m4_foreach([_gl_NAME], [$1], [
422 m4_if(_gl_NAME, [alloca.c], [], [
423 m4_define([gltests_LIBSOURCES_DIR], [tests])
424 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
429 # This macro records the list of files which have been installed by
430 # gnulib-tool and may be removed by future gnulib-tool invocations.
431 AC_DEFUN([gl_FILE_LIST], [
432 build-aux/arg-nonnull.h
434 build-aux/config.rpath
435 build-aux/warn-on-use.h
468 lib/glthread/threadlib.c