1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2012 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 dirname:
44 # Code from module dirname-lgpl:
45 # Code from module dosname:
46 # Code from module double-slash-root:
47 # Code from module environ:
48 # Code from module errno:
49 # Code from module error:
50 # Code from module exitfail:
51 # Code from module extensions:
52 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
53 # Code from module float:
54 # Code from module full-write:
55 # Code from module gettext-h:
56 # Code from module havelib:
57 # Code from module include_next:
58 # Code from module inline:
59 # Code from module intprops:
60 # Code from module lib-ignore:
61 # Code from module lock:
62 # Code from module malloc-posix:
63 # Code from module malloca:
64 # Code from module memchr:
65 # Code from module msvc-inval:
66 # Code from module msvc-nothrow:
67 # Code from module multiarch:
68 # Code from module raise:
69 # Code from module read:
70 # Code from module safe-read:
71 # Code from module safe-write:
72 # Code from module setenv:
73 # Code from module sigaction:
74 # Code from module signal:
75 # Code from module signal-h:
76 # Code from module sigprocmask:
77 # Code from module size_max:
78 # Code from module snippet/_Noreturn:
79 # Code from module snippet/arg-nonnull:
80 # Code from module snippet/c++defs:
81 # Code from module snippet/warn-on-use:
82 # Code from module snprintf:
83 # Code from module ssize_t:
84 # Code from module stdarg:
85 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
86 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
87 dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
88 dnl shouldn't hurt, though installers are on their own to set c99 mode.
90 # Code from module stdbool:
91 # Code from module stddef:
92 # Code from module stdint:
93 # Code from module stdio:
94 # Code from module stdlib:
95 # Code from module strerror:
96 # Code from module strerror-override:
97 # Code from module string:
98 # Code from module strndup:
99 # Code from module strnlen:
100 # Code from module strsignal:
101 # Code from module sys_select:
102 # Code from module sys_stat:
103 # Code from module sys_time:
104 # Code from module sys_wait:
105 # Code from module threadlib:
107 # Code from module time:
108 # Code from module tls:
109 # Code from module unistd:
110 # Code from module unsetenv:
111 # Code from module vasnprintf:
112 # Code from module vasprintf:
113 # Code from module verify:
114 # Code from module waitpid:
115 # Code from module wchar:
116 # Code from module write:
117 # Code from module xalloc:
118 # Code from module xalloc-die:
119 # Code from module xalloc-oversized:
120 # Code from module xsize:
121 # Code from module xstrndup:
122 # Code from module xvasprintf:
125 # This macro should be invoked from ./configure.ac, in the section
126 # "Check for header files, types and library functions".
129 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
131 gl_m4_base='gnulib/m4'
132 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
133 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
134 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
135 m4_pushdef([gl_LIBSOURCES_LIST], [])
136 m4_pushdef([gl_LIBSOURCES_DIR], [])
138 gl_source_base='gnulib/lib'
141 gl_MODULE_INDICATOR([dirname])
145 gl_UNISTD_MODULE_INDICATOR([environ])
148 if test $ac_cv_lib_error_at_line = no; then
152 m4_ifdef([AM_XGETTEXT_OPTION],
153 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
154 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
156 if test $REPLACE_FLOAT_LDBL = 1; then
159 if test $REPLACE_ITOLD = 1; then
163 AC_SUBST([LTLIBINTL])
165 gl_IGNORE_UNUSED_LIBRARIES
168 if test $REPLACE_MALLOC = 1; then
171 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
174 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
178 gl_STRING_MODULE_INDICATOR([memchr])
180 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
181 AC_LIBOBJ([msvc-inval])
184 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
185 AC_LIBOBJ([msvc-nothrow])
189 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
193 gl_SIGNAL_MODULE_INDICATOR([raise])
195 if test $REPLACE_READ = 1; then
199 gl_UNISTD_MODULE_INDICATOR([read])
203 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
206 gl_STDLIB_MODULE_INDICATOR([setenv])
208 if test $HAVE_SIGACTION = 0; then
209 AC_LIBOBJ([sigaction])
212 gl_SIGNAL_MODULE_INDICATOR([sigaction])
215 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
216 AC_LIBOBJ([sigprocmask])
217 gl_PREREQ_SIGPROCMASK
219 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
222 gl_STDIO_MODULE_INDICATOR([snprintf])
223 gl_MODULE_INDICATOR([snprintf])
232 if test $REPLACE_STRERROR = 1; then
233 AC_LIBOBJ([strerror])
235 gl_MODULE_INDICATOR([strerror])
236 gl_STRING_MODULE_INDICATOR([strerror])
237 AC_REQUIRE([gl_HEADER_ERRNO_H])
238 AC_REQUIRE([gl_FUNC_STRERROR_0])
239 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
240 AC_LIBOBJ([strerror-override])
241 gl_PREREQ_SYS_H_WINSOCK2
245 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
248 gl_STRING_MODULE_INDICATOR([strndup])
250 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
254 gl_STRING_MODULE_INDICATOR([strnlen])
256 if test $HAVE_STRSIGNAL = 0 || test $REPLACE_STRSIGNAL = 1; then
257 AC_LIBOBJ([strsignal])
260 gl_STRING_MODULE_INDICATOR([strsignal])
274 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
275 AC_LIBOBJ([unsetenv])
278 gl_STDLIB_MODULE_INDICATOR([unsetenv])
281 gl_STDIO_MODULE_INDICATOR([vasprintf])
282 m4_ifdef([AM_XGETTEXT_OPTION],
283 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
284 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
286 if test $HAVE_WAITPID = 0; then
289 gl_SYS_WAIT_MODULE_INDICATOR([waitpid])
292 if test $REPLACE_WRITE = 1; then
296 gl_UNISTD_MODULE_INDICATOR([write])
301 m4_ifdef([AM_XGETTEXT_OPTION],
302 [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
303 # End of code from modules
304 m4_ifval(gl_LIBSOURCES_LIST, [
305 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
306 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
307 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
308 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
312 m4_if(m4_sysval, [0], [],
313 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
315 m4_popdef([gl_LIBSOURCES_DIR])
316 m4_popdef([gl_LIBSOURCES_LIST])
317 m4_popdef([AC_LIBSOURCES])
318 m4_popdef([AC_REPLACE_FUNCS])
319 m4_popdef([AC_LIBOBJ])
320 AC_CONFIG_COMMANDS_PRE([
323 if test -n "$gl_LIBOBJS"; then
324 # Remove the extension.
325 sed_drop_objext='s/\.o$//;s/\.obj$//'
326 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
327 gl_libobjs="$gl_libobjs $i.$ac_objext"
328 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
331 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
332 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
336 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
337 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
338 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
339 m4_pushdef([gltests_LIBSOURCES_LIST], [])
340 m4_pushdef([gltests_LIBSOURCES_DIR], [])
342 gl_source_base='tests'
344 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
346 AC_SUBST([gltests_WITNESS])
347 gl_module_indicator_condition=$gltests_WITNESS
348 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
349 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
350 m4_ifval(gltests_LIBSOURCES_LIST, [
351 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
352 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
353 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
354 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
358 m4_if(m4_sysval, [0], [],
359 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
361 m4_popdef([gltests_LIBSOURCES_DIR])
362 m4_popdef([gltests_LIBSOURCES_LIST])
363 m4_popdef([AC_LIBSOURCES])
364 m4_popdef([AC_REPLACE_FUNCS])
365 m4_popdef([AC_LIBOBJ])
366 AC_CONFIG_COMMANDS_PRE([
369 if test -n "$gltests_LIBOBJS"; then
370 # Remove the extension.
371 sed_drop_objext='s/\.o$//;s/\.obj$//'
372 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
373 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
374 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
377 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
378 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
382 # Like AC_LIBOBJ, except that the module name goes
383 # into gl_LIBOBJS instead of into LIBOBJS.
384 AC_DEFUN([gl_LIBOBJ], [
385 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
386 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
389 # Like AC_REPLACE_FUNCS, except that the module name goes
390 # into gl_LIBOBJS instead of into LIBOBJS.
391 AC_DEFUN([gl_REPLACE_FUNCS], [
392 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
393 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
396 # Like AC_LIBSOURCES, except the directory where the source file is
397 # expected is derived from the gnulib-tool parameterization,
398 # and alloca is special cased (for the alloca-opt module).
399 # We could also entirely rely on EXTRA_lib..._SOURCES.
400 AC_DEFUN([gl_LIBSOURCES], [
401 m4_foreach([_gl_NAME], [$1], [
402 m4_if(_gl_NAME, [alloca.c], [], [
403 m4_define([gl_LIBSOURCES_DIR], [gnulib/lib])
404 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
409 # Like AC_LIBOBJ, except that the module name goes
410 # into gltests_LIBOBJS instead of into LIBOBJS.
411 AC_DEFUN([gltests_LIBOBJ], [
412 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
413 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
416 # Like AC_REPLACE_FUNCS, except that the module name goes
417 # into gltests_LIBOBJS instead of into LIBOBJS.
418 AC_DEFUN([gltests_REPLACE_FUNCS], [
419 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
420 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
423 # Like AC_LIBSOURCES, except the directory where the source file is
424 # expected is derived from the gnulib-tool parameterization,
425 # and alloca is special cased (for the alloca-opt module).
426 # We could also entirely rely on EXTRA_lib..._SOURCES.
427 AC_DEFUN([gltests_LIBSOURCES], [
428 m4_foreach([_gl_NAME], [$1], [
429 m4_if(_gl_NAME, [alloca.c], [], [
430 m4_define([gltests_LIBSOURCES_DIR], [tests])
431 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
436 # This macro records the list of files which have been installed by
437 # gnulib-tool and may be removed by future gnulib-tool invocations.
438 AC_DEFUN([gl_FILE_LIST], [
439 build-aux/config.rpath
440 build-aux/snippet/_Noreturn.h
441 build-aux/snippet/arg-nonnull.h
442 build-aux/snippet/c++defs.h
443 build-aux/snippet/warn-on-use.h
466 lib/glthread/threadlib.c
505 lib/strerror-override.c
506 lib/strerror-override.h
528 lib/xalloc-oversized.h
540 m4/double-slash-root.m4