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 allocator:
30 # Code from module arg-nonnull:
31 # Code from module c++defs:
32 # Code from module careadlinkat:
33 # Code from module crypto/md5:
34 # Code from module crypto/sha1:
35 # Code from module dosname:
36 # Code from module dtoastr:
37 # Code from module extensions:
38 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
39 # Code from module filemode:
40 # Code from module getloadavg:
41 # Code from module getopt-gnu:
42 # Code from module getopt-posix:
43 # Code from module gettext-h:
44 # Code from module ignore-value:
45 # Code from module include_next:
46 # Code from module intprops:
47 # Code from module inttypes-incomplete:
48 # Code from module lstat:
49 # Code from module mktime:
50 # Code from module multiarch:
51 # Code from module readlink:
52 # Code from module socklen:
53 # Code from module ssize_t:
54 # Code from module stat:
55 # Code from module stdarg:
56 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
57 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
58 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
59 dnl shouldn't hurt, though installers are on their own to set c99 mode.
60 AC_REQUIRE([AC_PROG_CC_STDC])
61 # Code from module stdbool:
62 # Code from module stddef:
63 # Code from module stdint:
64 # Code from module stdio:
65 # Code from module stdlib:
66 # Code from module strftime:
67 # Code from module strtoull:
68 # Code from module strtoumax:
69 # Code from module symlink:
70 # Code from module sys_stat:
71 # Code from module time:
72 # Code from module time_r:
73 # Code from module unistd:
74 # Code from module verify:
75 # Code from module warn-on-use:
78 # This macro should be invoked from ./configure.in, in the section
79 # "Check for header files, types and library functions".
82 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
87 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
88 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
89 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
90 m4_pushdef([gl_LIBSOURCES_LIST], [])
91 m4_pushdef([gl_LIBSOURCES_DIR], [])
94 AC_CHECK_FUNCS_ONCE([readlinkat])
97 AC_REQUIRE([gl_C99_STRTOLD])
100 if test $HAVE_GETLOADAVG = 0; then
101 AC_LIBOBJ([getloadavg])
104 gl_STDLIB_MODULE_INDICATOR([getloadavg])
106 if test $REPLACE_GETOPT = 1; then
111 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
113 if test $REPLACE_GETOPT = 1; then
118 AC_REQUIRE([AC_C_INLINE])
119 gl_INTTYPES_INCOMPLETE
121 if test $REPLACE_LSTAT = 1; then
125 gl_SYS_STAT_MODULE_INDICATOR([lstat])
127 if test $REPLACE_MKTIME = 1; then
131 gl_TIME_MODULE_INDICATOR([mktime])
134 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
135 AC_LIBOBJ([readlink])
138 gl_UNISTD_MODULE_INDICATOR([readlink])
149 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
150 AC_LIBOBJ([strtoumax])
153 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
155 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
158 gl_UNISTD_MODULE_INDICATOR([symlink])
163 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
167 gl_TIME_MODULE_INDICATOR([time_r])
169 gl_gnulib_enabled_dosname=false
170 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
171 gl_gnulib_enabled_stat=false
172 gl_gnulib_enabled_strtoull=false
173 gl_gnulib_enabled_verify=false
174 func_gl_gnulib_m4code_dosname ()
176 if ! $gl_gnulib_enabled_dosname; then
177 gl_gnulib_enabled_dosname=true
180 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
182 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
184 AC_SUBST([LTLIBINTL])
185 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
188 func_gl_gnulib_m4code_stat ()
190 if ! $gl_gnulib_enabled_stat; then
192 if test $REPLACE_STAT = 1; then
196 gl_SYS_STAT_MODULE_INDICATOR([stat])
197 gl_gnulib_enabled_stat=true
199 func_gl_gnulib_m4code_dosname
203 func_gl_gnulib_m4code_strtoull ()
205 if ! $gl_gnulib_enabled_strtoull; then
207 if test $HAVE_STRTOULL = 0; then
208 AC_LIBOBJ([strtoull])
211 gl_STDLIB_MODULE_INDICATOR([strtoull])
212 gl_gnulib_enabled_strtoull=true
215 func_gl_gnulib_m4code_verify ()
217 if ! $gl_gnulib_enabled_verify; then
218 gl_gnulib_enabled_verify=true
221 if test $REPLACE_GETOPT = 1; then
222 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
224 if test $REPLACE_LSTAT = 1; then
225 func_gl_gnulib_m4code_dosname
227 if test $REPLACE_LSTAT = 1; then
228 func_gl_gnulib_m4code_stat
230 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
231 func_gl_gnulib_m4code_stat
233 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
234 func_gl_gnulib_m4code_verify
236 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
237 func_gl_gnulib_m4code_strtoull
239 m4_pattern_allow([^gl_GNULIB_ENABLED_])
240 AM_CONDITIONAL([gl_GNULIB_ENABLED_dosname], [$gl_gnulib_enabled_dosname])
241 AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36])
242 AM_CONDITIONAL([gl_GNULIB_ENABLED_stat], [$gl_gnulib_enabled_stat])
243 AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoull], [$gl_gnulib_enabled_strtoull])
244 AM_CONDITIONAL([gl_GNULIB_ENABLED_verify], [$gl_gnulib_enabled_verify])
245 # End of code from modules
246 m4_ifval(gl_LIBSOURCES_LIST, [
247 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
248 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
249 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
250 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
254 m4_if(m4_sysval, [0], [],
255 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
257 m4_popdef([gl_LIBSOURCES_DIR])
258 m4_popdef([gl_LIBSOURCES_LIST])
259 m4_popdef([AC_LIBSOURCES])
260 m4_popdef([AC_REPLACE_FUNCS])
261 m4_popdef([AC_LIBOBJ])
262 AC_CONFIG_COMMANDS_PRE([
265 if test -n "$gl_LIBOBJS"; then
266 # Remove the extension.
267 sed_drop_objext='s/\.o$//;s/\.obj$//'
268 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
269 gl_libobjs="$gl_libobjs $i.$ac_objext"
270 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
273 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
274 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
278 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
279 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
280 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
281 m4_pushdef([gltests_LIBSOURCES_LIST], [])
282 m4_pushdef([gltests_LIBSOURCES_DIR], [])
284 gl_source_base='tests'
286 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
288 AC_SUBST([gltests_WITNESS])
289 gl_module_indicator_condition=$gltests_WITNESS
290 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
291 m4_pattern_allow([^gl_GNULIB_ENABLED_])
292 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
293 m4_ifval(gltests_LIBSOURCES_LIST, [
294 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
295 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
296 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
297 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
301 m4_if(m4_sysval, [0], [],
302 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
304 m4_popdef([gltests_LIBSOURCES_DIR])
305 m4_popdef([gltests_LIBSOURCES_LIST])
306 m4_popdef([AC_LIBSOURCES])
307 m4_popdef([AC_REPLACE_FUNCS])
308 m4_popdef([AC_LIBOBJ])
309 AC_CONFIG_COMMANDS_PRE([
312 if test -n "$gltests_LIBOBJS"; then
313 # Remove the extension.
314 sed_drop_objext='s/\.o$//;s/\.obj$//'
315 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
316 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
317 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
320 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
321 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
323 LIBGNU_LIBDEPS="$gl_libdeps"
324 AC_SUBST([LIBGNU_LIBDEPS])
325 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
326 AC_SUBST([LIBGNU_LTLIBDEPS])
329 # Like AC_LIBOBJ, except that the module name goes
330 # into gl_LIBOBJS instead of into LIBOBJS.
331 AC_DEFUN([gl_LIBOBJ], [
332 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
333 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
336 # Like AC_REPLACE_FUNCS, except that the module name goes
337 # into gl_LIBOBJS instead of into LIBOBJS.
338 AC_DEFUN([gl_REPLACE_FUNCS], [
339 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
340 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
343 # Like AC_LIBSOURCES, except the directory where the source file is
344 # expected is derived from the gnulib-tool parameterization,
345 # and alloca is special cased (for the alloca-opt module).
346 # We could also entirely rely on EXTRA_lib..._SOURCES.
347 AC_DEFUN([gl_LIBSOURCES], [
348 m4_foreach([_gl_NAME], [$1], [
349 m4_if(_gl_NAME, [alloca.c], [], [
350 m4_define([gl_LIBSOURCES_DIR], [lib])
351 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
356 # Like AC_LIBOBJ, except that the module name goes
357 # into gltests_LIBOBJS instead of into LIBOBJS.
358 AC_DEFUN([gltests_LIBOBJ], [
359 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
360 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
363 # Like AC_REPLACE_FUNCS, except that the module name goes
364 # into gltests_LIBOBJS instead of into LIBOBJS.
365 AC_DEFUN([gltests_REPLACE_FUNCS], [
366 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
367 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
370 # Like AC_LIBSOURCES, except the directory where the source file is
371 # expected is derived from the gnulib-tool parameterization,
372 # and alloca is special cased (for the alloca-opt module).
373 # We could also entirely rely on EXTRA_lib..._SOURCES.
374 AC_DEFUN([gltests_LIBSOURCES], [
375 m4_foreach([_gl_NAME], [$1], [
376 m4_if(_gl_NAME, [alloca.c], [], [
377 m4_define([gltests_LIBSOURCES_DIR], [tests])
378 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
383 # This macro records the list of files which have been installed by
384 # gnulib-tool and may be removed by future gnulib-tool invocations.
385 AC_DEFUN([gl_FILE_LIST], [
386 build-aux/arg-nonnull.h
388 build-aux/warn-on-use.h
411 lib/mktime-internal.h