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.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 # Code from module arg-nonnull:
30 # Code from module c++defs:
31 # Code from module dtoastr:
32 # Code from module extensions:
33 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
34 # Code from module getopt-gnu:
35 # Code from module getopt-posix:
36 # Code from module gettext-h:
37 # Code from module include_next:
38 # Code from module intprops:
39 # Code from module mktime:
40 # Code from module multiarch:
41 # Code from module stdbool:
42 # Code from module stddef:
43 # Code from module strftime:
44 # Code from module time:
45 # Code from module time_r:
46 # Code from module unistd:
47 # Code from module warn-on-use:
50 # This macro should be invoked from ./configure.in, in the section
51 # "Check for header files, types and library functions".
54 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
59 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
60 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
61 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
62 m4_pushdef([gl_LIBSOURCES_LIST], [])
63 m4_pushdef([gl_LIBSOURCES_DIR], [])
66 # Code from module arg-nonnull:
67 # Code from module c++defs:
68 # Code from module dtoastr:
69 AC_REQUIRE([gl_C99_STRTOLD])
70 # Code from module extensions:
71 # Code from module getopt-gnu:
73 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
74 # Code from module getopt-posix:
76 # Code from module gettext-h:
79 # Code from module include_next:
80 # Code from module intprops:
81 # Code from module mktime:
83 gl_TIME_MODULE_INDICATOR([mktime])
84 # Code from module multiarch:
86 # Code from module stdbool:
88 # Code from module stddef:
90 # Code from module strftime:
92 # Code from module time:
94 # Code from module time_r:
96 gl_TIME_MODULE_INDICATOR([time_r])
97 # Code from module unistd:
99 # Code from module warn-on-use:
100 # End of code from modules
101 m4_ifval(gl_LIBSOURCES_LIST, [
102 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
103 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
104 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
105 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
109 m4_if(m4_sysval, [0], [],
110 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
112 m4_popdef([gl_LIBSOURCES_DIR])
113 m4_popdef([gl_LIBSOURCES_LIST])
114 m4_popdef([AC_LIBSOURCES])
115 m4_popdef([AC_REPLACE_FUNCS])
116 m4_popdef([AC_LIBOBJ])
117 AC_CONFIG_COMMANDS_PRE([
120 if test -n "$gl_LIBOBJS"; then
121 # Remove the extension.
122 sed_drop_objext='s/\.o$//;s/\.obj$//'
123 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
124 gl_libobjs="$gl_libobjs $i.$ac_objext"
125 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
128 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
129 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
133 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
134 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
135 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
136 m4_pushdef([gltests_LIBSOURCES_LIST], [])
137 m4_pushdef([gltests_LIBSOURCES_DIR], [])
139 gl_source_base='tests'
141 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
143 AC_SUBST([gltests_WITNESS])
144 gl_module_indicator_condition=$gltests_WITNESS
145 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
146 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
147 m4_ifval(gltests_LIBSOURCES_LIST, [
148 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
149 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
150 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
151 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
155 m4_if(m4_sysval, [0], [],
156 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
158 m4_popdef([gltests_LIBSOURCES_DIR])
159 m4_popdef([gltests_LIBSOURCES_LIST])
160 m4_popdef([AC_LIBSOURCES])
161 m4_popdef([AC_REPLACE_FUNCS])
162 m4_popdef([AC_LIBOBJ])
163 AC_CONFIG_COMMANDS_PRE([
166 if test -n "$gltests_LIBOBJS"; then
167 # Remove the extension.
168 sed_drop_objext='s/\.o$//;s/\.obj$//'
169 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
170 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
171 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
174 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
175 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
177 LIBGNU_LIBDEPS="$gl_libdeps"
178 AC_SUBST([LIBGNU_LIBDEPS])
179 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
180 AC_SUBST([LIBGNU_LTLIBDEPS])
183 # Like AC_LIBOBJ, except that the module name goes
184 # into gl_LIBOBJS instead of into LIBOBJS.
185 AC_DEFUN([gl_LIBOBJ], [
186 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
187 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
190 # Like AC_REPLACE_FUNCS, except that the module name goes
191 # into gl_LIBOBJS instead of into LIBOBJS.
192 AC_DEFUN([gl_REPLACE_FUNCS], [
193 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
194 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
197 # Like AC_LIBSOURCES, except the directory where the source file is
198 # expected is derived from the gnulib-tool parameterization,
199 # and alloca is special cased (for the alloca-opt module).
200 # We could also entirely rely on EXTRA_lib..._SOURCES.
201 AC_DEFUN([gl_LIBSOURCES], [
202 m4_foreach([_gl_NAME], [$1], [
203 m4_if(_gl_NAME, [alloca.c], [], [
204 m4_define([gl_LIBSOURCES_DIR], [lib])
205 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
210 # Like AC_LIBOBJ, except that the module name goes
211 # into gltests_LIBOBJS instead of into LIBOBJS.
212 AC_DEFUN([gltests_LIBOBJ], [
213 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
214 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
217 # Like AC_REPLACE_FUNCS, except that the module name goes
218 # into gltests_LIBOBJS instead of into LIBOBJS.
219 AC_DEFUN([gltests_REPLACE_FUNCS], [
220 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
221 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
224 # Like AC_LIBSOURCES, except the directory where the source file is
225 # expected is derived from the gnulib-tool parameterization,
226 # and alloca is special cased (for the alloca-opt module).
227 # We could also entirely rely on EXTRA_lib..._SOURCES.
228 AC_DEFUN([gltests_LIBSOURCES], [
229 m4_foreach([_gl_NAME], [$1], [
230 m4_if(_gl_NAME, [alloca.c], [], [
231 m4_define([gltests_LIBSOURCES_DIR], [tests])
232 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
237 # This macro records the list of files which have been installed by
238 # gnulib-tool and may be removed by future gnulib-tool invocations.
239 AC_DEFUN([gl_FILE_LIST], [
240 build-aux/arg-nonnull.h
242 build-aux/warn-on-use.h
252 lib/mktime-internal.h