1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2011 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.ac, 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 # Code from module arg-nonnull:
30 # Code from module autobuild:
32 # Code from module c++defs:
33 # Code from module extensions:
34 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
35 # Code from module fdl-1.3:
36 # Code from module ftello:
37 AC_REQUIRE([AC_FUNC_FSEEKO])
38 # Code from module gendocs:
39 # Code from module getopt-gnu:
40 # Code from module getopt-posix:
41 # Code from module gettext-h:
42 # Code from module gnumakefile:
43 # Code from module include_next:
44 # Code from module lseek:
45 # Code from module maintainer-makefile:
46 # Code from module malloc-posix:
47 # Code from module manywarnings:
48 # Code from module multiarch:
49 # Code from module pmccabe2html:
50 # Code from module progname:
51 # Code from module read-file:
52 # Code from module realloc-posix:
53 # Code from module stdarg:
54 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
55 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
56 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
57 dnl shouldn't hurt, though installers are on their own to set c99 mode.
58 AC_REQUIRE([AC_PROG_CC_STDC])
59 # Code from module stddef:
60 # Code from module stdint:
61 # Code from module stdio:
62 # Code from module stdlib:
63 # Code from module sys_stat:
64 # Code from module time:
65 # Code from module unistd:
66 # Code from module update-copyright:
67 # Code from module useless-if-before-free:
68 # Code from module valgrind-tests:
69 # Code from module vc-list-files:
70 # Code from module version-etc:
71 # Code from module version-etc-fsf:
72 # Code from module warn-on-use:
73 # Code from module warnings:
76 # This macro should be invoked from ./configure.ac, in the section
77 # "Check for header files, types and library functions".
80 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
83 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
84 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
85 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
86 m4_pushdef([gl_LIBSOURCES_LIST], [])
87 m4_pushdef([gl_LIBSOURCES_DIR], [])
90 # Code from module arg-nonnull:
91 # Code from module autobuild:
92 # Code from module c++defs:
93 # Code from module extensions:
94 # Code from module fdl-1.3:
95 # Code from module ftello:
97 gl_STDIO_MODULE_INDICATOR([ftello])
98 # Code from module gendocs:
99 # Code from module getopt-gnu:
101 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
102 # Code from module getopt-posix:
104 # Code from module gettext-h:
106 AC_SUBST([LTLIBINTL])
107 # Code from module gnumakefile:
108 # Autoconf 2.61a.99 and earlier don't support linking a file only
109 # in VPATH builds. But since GNUmakefile is for maintainer use
110 # only, it does not matter if we skip the link with older autoconf.
111 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
112 # builds, so use a shell variable to bypass this.
113 GNUmakefile=GNUmakefile
114 m4_if(m4_version_compare([2.61a.100],
115 m4_defn([m4_PACKAGE_VERSION])), [1], [],
116 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
117 [GNUmakefile=$GNUmakefile])])
118 # Code from module include_next:
119 # Code from module lseek:
121 gl_UNISTD_MODULE_INDICATOR([lseek])
122 # Code from module maintainer-makefile:
123 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
124 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
125 # Code from module malloc-posix:
127 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
128 # Code from module manywarnings:
129 # Code from module multiarch:
131 # Code from module pmccabe2html:
132 AC_PATH_PROG([PMCCABE], [pmccabe], [false])
133 # Code from module progname:
134 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
135 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
136 # Code from module read-file:
138 # Code from module realloc-posix:
139 gl_FUNC_REALLOC_POSIX
140 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
141 # Code from module stdarg:
143 # Code from module stddef:
145 # Code from module stdint:
147 # Code from module stdio:
149 # Code from module stdlib:
151 # Code from module sys_stat:
154 # Code from module time:
156 # Code from module unistd:
158 # Code from module update-copyright:
159 # Code from module useless-if-before-free:
160 # Code from module valgrind-tests:
162 # Code from module vc-list-files:
163 # Code from module version-etc:
165 # Code from module version-etc-fsf:
166 # Code from module warn-on-use:
167 # Code from module warnings:
168 AC_SUBST([WARN_CFLAGS])
169 # End of code from modules
170 m4_ifval(gl_LIBSOURCES_LIST, [
171 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
172 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
173 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
174 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
178 m4_if(m4_sysval, [0], [],
179 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
181 m4_popdef([gl_LIBSOURCES_DIR])
182 m4_popdef([gl_LIBSOURCES_LIST])
183 m4_popdef([AC_LIBSOURCES])
184 m4_popdef([AC_REPLACE_FUNCS])
185 m4_popdef([AC_LIBOBJ])
186 AC_CONFIG_COMMANDS_PRE([
189 if test -n "$gl_LIBOBJS"; then
190 # Remove the extension.
191 sed_drop_objext='s/\.o$//;s/\.obj$//'
192 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
193 gl_libobjs="$gl_libobjs $i.$ac_objext"
194 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
197 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
198 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
202 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
203 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
204 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
205 m4_pushdef([gltests_LIBSOURCES_LIST], [])
206 m4_pushdef([gltests_LIBSOURCES_DIR], [])
208 gl_source_base='tests'
210 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
212 AC_SUBST([gltests_WITNESS])
213 gl_module_indicator_condition=$gltests_WITNESS
214 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
216 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
217 m4_ifval(gltests_LIBSOURCES_LIST, [
218 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
219 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
220 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
221 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
225 m4_if(m4_sysval, [0], [],
226 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
228 m4_popdef([gltests_LIBSOURCES_DIR])
229 m4_popdef([gltests_LIBSOURCES_LIST])
230 m4_popdef([AC_LIBSOURCES])
231 m4_popdef([AC_REPLACE_FUNCS])
232 m4_popdef([AC_LIBOBJ])
233 AC_CONFIG_COMMANDS_PRE([
236 if test -n "$gltests_LIBOBJS"; then
237 # Remove the extension.
238 sed_drop_objext='s/\.o$//;s/\.obj$//'
239 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
240 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
241 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
244 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
245 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
249 # Like AC_LIBOBJ, except that the module name goes
250 # into gl_LIBOBJS instead of into LIBOBJS.
251 AC_DEFUN([gl_LIBOBJ], [
252 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
253 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
256 # Like AC_REPLACE_FUNCS, except that the module name goes
257 # into gl_LIBOBJS instead of into LIBOBJS.
258 AC_DEFUN([gl_REPLACE_FUNCS], [
259 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
260 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
263 # Like AC_LIBSOURCES, except the directory where the source file is
264 # expected is derived from the gnulib-tool parameterization,
265 # and alloca is special cased (for the alloca-opt module).
266 # We could also entirely rely on EXTRA_lib..._SOURCES.
267 AC_DEFUN([gl_LIBSOURCES], [
268 m4_foreach([_gl_NAME], [$1], [
269 m4_if(_gl_NAME, [alloca.c], [], [
270 m4_define([gl_LIBSOURCES_DIR], [gl])
271 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
276 # Like AC_LIBOBJ, except that the module name goes
277 # into gltests_LIBOBJS instead of into LIBOBJS.
278 AC_DEFUN([gltests_LIBOBJ], [
279 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
280 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
283 # Like AC_REPLACE_FUNCS, except that the module name goes
284 # into gltests_LIBOBJS instead of into LIBOBJS.
285 AC_DEFUN([gltests_REPLACE_FUNCS], [
286 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
287 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
290 # Like AC_LIBSOURCES, except the directory where the source file is
291 # expected is derived from the gnulib-tool parameterization,
292 # and alloca is special cased (for the alloca-opt module).
293 # We could also entirely rely on EXTRA_lib..._SOURCES.
294 AC_DEFUN([gltests_LIBSOURCES], [
295 m4_foreach([_gl_NAME], [$1], [
296 m4_if(_gl_NAME, [alloca.c], [], [
297 m4_define([gltests_LIBSOURCES_DIR], [tests])
298 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
303 # This macro records the list of files which have been installed by
304 # gnulib-tool and may be removed by future gnulib-tool invocations.
305 AC_DEFUN([gl_FILE_LIST], [
306 build-aux/arg-nonnull.h
309 build-aux/pmccabe.css
310 build-aux/pmccabe2html
311 build-aux/update-copyright
312 build-aux/useless-if-before-free
313 build-aux/vc-list-files
314 build-aux/warn-on-use.h
339 lib/version-etc-fsf.c