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 alloca-opt:
30 # Code from module allocator:
31 # Code from module arg-nonnull:
32 # Code from module c++defs:
33 # Code from module careadlinkat:
34 # Code from module crypto/md5:
35 # Code from module crypto/sha1:
36 # Code from module crypto/sha256:
37 # Code from module crypto/sha512:
38 # Code from module dosname:
39 # Code from module dtoastr:
40 # Code from module dup2:
41 # Code from module extensions:
42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43 # Code from module filemode:
44 # Code from module getloadavg:
45 # Code from module getopt-gnu:
46 # Code from module getopt-posix:
47 # Code from module gettext-h:
48 # Code from module ignore-value:
49 # Code from module include_next:
50 # Code from module intprops:
51 # Code from module inttypes-incomplete:
52 # Code from module lstat:
53 # Code from module mktime:
54 # Code from module multiarch:
55 # Code from module pthread_sigmask:
56 # Code from module readlink:
57 # Code from module signal:
58 # Code from module sigprocmask:
59 # Code from module socklen:
60 # Code from module ssize_t:
61 # Code from module stat:
62 # Code from module stdarg:
63 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
64 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
65 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
66 dnl shouldn't hurt, though installers are on their own to set c99 mode.
67 AC_REQUIRE([AC_PROG_CC_STDC])
68 # Code from module stdbool:
69 # Code from module stddef:
70 # Code from module stdint:
71 # Code from module stdio:
72 # Code from module stdlib:
73 # Code from module strftime:
74 # Code from module strtoull:
75 # Code from module strtoumax:
76 # Code from module symlink:
77 # Code from module sys_stat:
78 # Code from module time:
79 # Code from module time_r:
80 # Code from module u64:
81 # Code from module unistd:
82 # Code from module verify:
83 # Code from module warn-on-use:
86 # This macro should be invoked from ./configure.in, in the section
87 # "Check for header files, types and library functions".
90 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
95 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
96 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
97 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
98 m4_pushdef([gl_LIBSOURCES_LIST], [])
99 m4_pushdef([gl_LIBSOURCES_DIR], [])
103 AC_CHECK_FUNCS_ONCE([readlinkat])
108 AC_REQUIRE([gl_C99_STRTOLD])
110 gl_UNISTD_MODULE_INDICATOR([dup2])
113 if test $HAVE_GETLOADAVG = 0; then
114 AC_LIBOBJ([getloadavg])
117 gl_STDLIB_MODULE_INDICATOR([getloadavg])
119 if test $REPLACE_GETOPT = 1; then
124 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
126 if test $REPLACE_GETOPT = 1; then
131 AC_REQUIRE([AC_C_INLINE])
132 gl_INTTYPES_INCOMPLETE
134 if test $REPLACE_LSTAT = 1; then
138 gl_SYS_STAT_MODULE_INDICATOR([lstat])
140 if test $REPLACE_MKTIME = 1; then
144 gl_TIME_MODULE_INDICATOR([mktime])
146 gl_FUNC_PTHREAD_SIGMASK
147 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
148 AC_LIBOBJ([pthread_sigmask])
150 gl_SIGNAL_MODULE_INDICATOR([pthread_sigmask])
152 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
153 AC_LIBOBJ([readlink])
156 gl_UNISTD_MODULE_INDICATOR([readlink])
168 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
169 AC_LIBOBJ([strtoumax])
172 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
174 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
177 gl_UNISTD_MODULE_INDICATOR([symlink])
182 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
186 gl_TIME_MODULE_INDICATOR([time_r])
187 AC_REQUIRE([AC_C_INLINE])
189 gl_gnulib_enabled_dosname=false
190 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
191 gl_gnulib_enabled_sigprocmask=false
192 gl_gnulib_enabled_stat=false
193 gl_gnulib_enabled_strtoull=false
194 gl_gnulib_enabled_verify=false
195 func_gl_gnulib_m4code_dosname ()
197 if ! $gl_gnulib_enabled_dosname; then
198 gl_gnulib_enabled_dosname=true
201 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
203 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
205 AC_SUBST([LTLIBINTL])
206 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
209 func_gl_gnulib_m4code_sigprocmask ()
211 if ! $gl_gnulib_enabled_sigprocmask; then
213 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
214 AC_LIBOBJ([sigprocmask])
215 gl_PREREQ_SIGPROCMASK
217 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
218 gl_gnulib_enabled_sigprocmask=true
221 func_gl_gnulib_m4code_stat ()
223 if ! $gl_gnulib_enabled_stat; then
225 if test $REPLACE_STAT = 1; then
229 gl_SYS_STAT_MODULE_INDICATOR([stat])
230 gl_gnulib_enabled_stat=true
232 func_gl_gnulib_m4code_dosname
235 func_gl_gnulib_m4code_verify
239 func_gl_gnulib_m4code_strtoull ()
241 if ! $gl_gnulib_enabled_strtoull; then
243 if test $HAVE_STRTOULL = 0; then
244 AC_LIBOBJ([strtoull])
247 gl_STDLIB_MODULE_INDICATOR([strtoull])
248 gl_gnulib_enabled_strtoull=true
251 func_gl_gnulib_m4code_verify ()
253 if ! $gl_gnulib_enabled_verify; then
254 gl_gnulib_enabled_verify=true
257 if test $REPLACE_GETOPT = 1; then
258 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
260 if test $REPLACE_LSTAT = 1; then
261 func_gl_gnulib_m4code_dosname
263 if test $REPLACE_LSTAT = 1; then
264 func_gl_gnulib_m4code_stat
266 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
267 func_gl_gnulib_m4code_sigprocmask
269 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
270 func_gl_gnulib_m4code_stat
272 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
273 func_gl_gnulib_m4code_verify
275 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
276 func_gl_gnulib_m4code_strtoull
278 m4_pattern_allow([^gl_GNULIB_ENABLED_])
279 AM_CONDITIONAL([gl_GNULIB_ENABLED_dosname], [$gl_gnulib_enabled_dosname])
280 AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36])
281 AM_CONDITIONAL([gl_GNULIB_ENABLED_sigprocmask], [$gl_gnulib_enabled_sigprocmask])
282 AM_CONDITIONAL([gl_GNULIB_ENABLED_stat], [$gl_gnulib_enabled_stat])
283 AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoull], [$gl_gnulib_enabled_strtoull])
284 AM_CONDITIONAL([gl_GNULIB_ENABLED_verify], [$gl_gnulib_enabled_verify])
285 # End of code from modules
286 m4_ifval(gl_LIBSOURCES_LIST, [
287 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
288 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
289 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
290 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
294 m4_if(m4_sysval, [0], [],
295 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
297 m4_popdef([gl_LIBSOURCES_DIR])
298 m4_popdef([gl_LIBSOURCES_LIST])
299 m4_popdef([AC_LIBSOURCES])
300 m4_popdef([AC_REPLACE_FUNCS])
301 m4_popdef([AC_LIBOBJ])
302 AC_CONFIG_COMMANDS_PRE([
305 if test -n "$gl_LIBOBJS"; then
306 # Remove the extension.
307 sed_drop_objext='s/\.o$//;s/\.obj$//'
308 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
309 gl_libobjs="$gl_libobjs $i.$ac_objext"
310 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
313 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
314 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
318 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
319 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
320 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
321 m4_pushdef([gltests_LIBSOURCES_LIST], [])
322 m4_pushdef([gltests_LIBSOURCES_DIR], [])
324 gl_source_base='tests'
326 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
328 AC_SUBST([gltests_WITNESS])
329 gl_module_indicator_condition=$gltests_WITNESS
330 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
331 m4_pattern_allow([^gl_GNULIB_ENABLED_])
332 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
333 m4_ifval(gltests_LIBSOURCES_LIST, [
334 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
335 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
336 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
337 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
341 m4_if(m4_sysval, [0], [],
342 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
344 m4_popdef([gltests_LIBSOURCES_DIR])
345 m4_popdef([gltests_LIBSOURCES_LIST])
346 m4_popdef([AC_LIBSOURCES])
347 m4_popdef([AC_REPLACE_FUNCS])
348 m4_popdef([AC_LIBOBJ])
349 AC_CONFIG_COMMANDS_PRE([
352 if test -n "$gltests_LIBOBJS"; then
353 # Remove the extension.
354 sed_drop_objext='s/\.o$//;s/\.obj$//'
355 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
356 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
357 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
360 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
361 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
363 LIBGNU_LIBDEPS="$gl_libdeps"
364 AC_SUBST([LIBGNU_LIBDEPS])
365 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
366 AC_SUBST([LIBGNU_LTLIBDEPS])
369 # Like AC_LIBOBJ, except that the module name goes
370 # into gl_LIBOBJS instead of into LIBOBJS.
371 AC_DEFUN([gl_LIBOBJ], [
372 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
373 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
376 # Like AC_REPLACE_FUNCS, except that the module name goes
377 # into gl_LIBOBJS instead of into LIBOBJS.
378 AC_DEFUN([gl_REPLACE_FUNCS], [
379 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
380 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
383 # Like AC_LIBSOURCES, except the directory where the source file is
384 # expected is derived from the gnulib-tool parameterization,
385 # and alloca is special cased (for the alloca-opt module).
386 # We could also entirely rely on EXTRA_lib..._SOURCES.
387 AC_DEFUN([gl_LIBSOURCES], [
388 m4_foreach([_gl_NAME], [$1], [
389 m4_if(_gl_NAME, [alloca.c], [], [
390 m4_define([gl_LIBSOURCES_DIR], [lib])
391 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
396 # Like AC_LIBOBJ, except that the module name goes
397 # into gltests_LIBOBJS instead of into LIBOBJS.
398 AC_DEFUN([gltests_LIBOBJ], [
399 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
400 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
403 # Like AC_REPLACE_FUNCS, except that the module name goes
404 # into gltests_LIBOBJS instead of into LIBOBJS.
405 AC_DEFUN([gltests_REPLACE_FUNCS], [
406 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
407 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
410 # Like AC_LIBSOURCES, except the directory where the source file is
411 # expected is derived from the gnulib-tool parameterization,
412 # and alloca is special cased (for the alloca-opt module).
413 # We could also entirely rely on EXTRA_lib..._SOURCES.
414 AC_DEFUN([gltests_LIBSOURCES], [
415 m4_foreach([_gl_NAME], [$1], [
416 m4_if(_gl_NAME, [alloca.c], [], [
417 m4_define([gltests_LIBSOURCES_DIR], [tests])
418 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
423 # This macro records the list of files which have been installed by
424 # gnulib-tool and may be removed by future gnulib-tool invocations.
425 AC_DEFUN([gl_FILE_LIST], [
426 build-aux/arg-nonnull.h
428 build-aux/warn-on-use.h
453 lib/mktime-internal.h
455 lib/pthread_sigmask.c
502 m4/pthread_sigmask.m4