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 careadlinkat:
32 # Code from module crypto/md5:
33 # Code from module crypto/sha1:
34 # Code from module crypto/sha256:
35 # Code from module crypto/sha512:
36 # Code from module dosname:
37 # Code from module dtoastr:
38 # Code from module dup2:
39 # Code from module extensions:
40 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
41 # Code from module filemode:
42 # Code from module getloadavg:
43 # Code from module getopt-gnu:
44 # Code from module getopt-posix:
45 # Code from module gettext-h:
46 # Code from module ignore-value:
47 # Code from module include_next:
48 # Code from module intprops:
49 # Code from module inttypes-incomplete:
50 # Code from module largefile:
51 # Code from module lstat:
52 # Code from module mktime:
53 # Code from module multiarch:
54 # Code from module nocrash:
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 snippet/_Noreturn:
60 # Code from module snippet/arg-nonnull:
61 # Code from module snippet/c++defs:
62 # Code from module snippet/warn-on-use:
63 # Code from module socklen:
64 # Code from module ssize_t:
65 # Code from module stat:
66 # Code from module stdarg:
67 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
68 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
69 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
70 dnl shouldn't hurt, though installers are on their own to set c99 mode.
71 AC_REQUIRE([AC_PROG_CC_STDC])
72 # Code from module stdbool:
73 # Code from module stddef:
74 # Code from module stdint:
75 # Code from module stdio:
76 # Code from module stdlib:
77 # Code from module strftime:
78 # Code from module strtoimax:
79 # Code from module strtoll:
80 # Code from module strtoull:
81 # Code from module strtoumax:
82 # Code from module symlink:
83 # Code from module sys_stat:
84 # Code from module time:
85 # Code from module time_r:
86 # Code from module u64:
87 # Code from module unistd:
88 # Code from module verify:
91 # This macro should be invoked from ./configure.in, in the section
92 # "Check for header files, types and library functions".
95 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
100 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
101 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
102 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
103 m4_pushdef([gl_LIBSOURCES_LIST], [])
104 m4_pushdef([gl_LIBSOURCES_DIR], [])
108 AC_CHECK_FUNCS_ONCE([readlinkat])
113 AC_REQUIRE([gl_C99_STRTOLD])
115 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
118 gl_UNISTD_MODULE_INDICATOR([dup2])
121 if test $HAVE_GETLOADAVG = 0; then
122 AC_LIBOBJ([getloadavg])
125 gl_STDLIB_MODULE_INDICATOR([getloadavg])
127 if test $REPLACE_GETOPT = 1; then
132 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
134 if test $REPLACE_GETOPT = 1; then
139 AC_REQUIRE([AC_C_INLINE])
140 gl_INTTYPES_INCOMPLETE
142 if test $REPLACE_LSTAT = 1; then
146 gl_SYS_STAT_MODULE_INDICATOR([lstat])
148 if test $REPLACE_MKTIME = 1; then
152 gl_TIME_MODULE_INDICATOR([mktime])
154 gl_FUNC_PTHREAD_SIGMASK
155 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
156 AC_LIBOBJ([pthread_sigmask])
157 gl_PREREQ_PTHREAD_SIGMASK
159 gl_SIGNAL_MODULE_INDICATOR([pthread_sigmask])
161 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
162 AC_LIBOBJ([readlink])
165 gl_UNISTD_MODULE_INDICATOR([readlink])
177 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then
178 AC_LIBOBJ([strtoimax])
181 gl_INTTYPES_MODULE_INDICATOR([strtoimax])
183 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
184 AC_LIBOBJ([strtoumax])
187 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
189 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
192 gl_UNISTD_MODULE_INDICATOR([symlink])
197 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
201 gl_TIME_MODULE_INDICATOR([time_r])
202 AC_REQUIRE([AC_C_INLINE])
204 gl_gnulib_enabled_dosname=false
205 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
206 gl_gnulib_enabled_sigprocmask=false
207 gl_gnulib_enabled_stat=false
208 gl_gnulib_enabled_strtoll=false
209 gl_gnulib_enabled_strtoull=false
210 gl_gnulib_enabled_verify=false
211 func_gl_gnulib_m4code_dosname ()
213 if ! $gl_gnulib_enabled_dosname; then
214 gl_gnulib_enabled_dosname=true
217 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
219 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
221 AC_SUBST([LTLIBINTL])
222 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
225 func_gl_gnulib_m4code_sigprocmask ()
227 if ! $gl_gnulib_enabled_sigprocmask; then
229 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
230 AC_LIBOBJ([sigprocmask])
231 gl_PREREQ_SIGPROCMASK
233 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
234 gl_gnulib_enabled_sigprocmask=true
237 func_gl_gnulib_m4code_stat ()
239 if ! $gl_gnulib_enabled_stat; then
241 if test $REPLACE_STAT = 1; then
245 gl_SYS_STAT_MODULE_INDICATOR([stat])
246 gl_gnulib_enabled_stat=true
248 func_gl_gnulib_m4code_dosname
251 func_gl_gnulib_m4code_verify
255 func_gl_gnulib_m4code_strtoll ()
257 if ! $gl_gnulib_enabled_strtoll; then
259 if test $HAVE_STRTOLL = 0; then
263 gl_STDLIB_MODULE_INDICATOR([strtoll])
264 gl_gnulib_enabled_strtoll=true
267 func_gl_gnulib_m4code_strtoull ()
269 if ! $gl_gnulib_enabled_strtoull; then
271 if test $HAVE_STRTOULL = 0; then
272 AC_LIBOBJ([strtoull])
275 gl_STDLIB_MODULE_INDICATOR([strtoull])
276 gl_gnulib_enabled_strtoull=true
279 func_gl_gnulib_m4code_verify ()
281 if ! $gl_gnulib_enabled_verify; then
282 gl_gnulib_enabled_verify=true
285 if test $REPLACE_GETOPT = 1; then
286 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
288 if test $REPLACE_LSTAT = 1; then
289 func_gl_gnulib_m4code_dosname
291 if test $REPLACE_LSTAT = 1; then
292 func_gl_gnulib_m4code_stat
294 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
295 func_gl_gnulib_m4code_sigprocmask
297 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
298 func_gl_gnulib_m4code_stat
300 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no; then
301 func_gl_gnulib_m4code_verify
303 if test "$ac_cv_have_decl_strtoimax" != yes && test $ac_cv_func_strtoimax = no && test $ac_cv_type_long_long_int = yes; then
304 func_gl_gnulib_m4code_strtoll
306 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
307 func_gl_gnulib_m4code_verify
309 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
310 func_gl_gnulib_m4code_strtoull
312 m4_pattern_allow([^gl_GNULIB_ENABLED_])
313 AM_CONDITIONAL([gl_GNULIB_ENABLED_dosname], [$gl_gnulib_enabled_dosname])
314 AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36])
315 AM_CONDITIONAL([gl_GNULIB_ENABLED_sigprocmask], [$gl_gnulib_enabled_sigprocmask])
316 AM_CONDITIONAL([gl_GNULIB_ENABLED_stat], [$gl_gnulib_enabled_stat])
317 AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoll], [$gl_gnulib_enabled_strtoll])
318 AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoull], [$gl_gnulib_enabled_strtoull])
319 AM_CONDITIONAL([gl_GNULIB_ENABLED_verify], [$gl_gnulib_enabled_verify])
320 # End of code from modules
321 m4_ifval(gl_LIBSOURCES_LIST, [
322 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
323 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
324 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
325 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
329 m4_if(m4_sysval, [0], [],
330 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
332 m4_popdef([gl_LIBSOURCES_DIR])
333 m4_popdef([gl_LIBSOURCES_LIST])
334 m4_popdef([AC_LIBSOURCES])
335 m4_popdef([AC_REPLACE_FUNCS])
336 m4_popdef([AC_LIBOBJ])
337 AC_CONFIG_COMMANDS_PRE([
340 if test -n "$gl_LIBOBJS"; then
341 # Remove the extension.
342 sed_drop_objext='s/\.o$//;s/\.obj$//'
343 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
344 gl_libobjs="$gl_libobjs $i.$ac_objext"
345 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
348 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
349 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
353 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
354 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
355 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
356 m4_pushdef([gltests_LIBSOURCES_LIST], [])
357 m4_pushdef([gltests_LIBSOURCES_DIR], [])
359 gl_source_base='tests'
361 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
363 AC_SUBST([gltests_WITNESS])
364 gl_module_indicator_condition=$gltests_WITNESS
365 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
366 m4_pattern_allow([^gl_GNULIB_ENABLED_])
367 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
368 m4_ifval(gltests_LIBSOURCES_LIST, [
369 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
370 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
371 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
372 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
376 m4_if(m4_sysval, [0], [],
377 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
379 m4_popdef([gltests_LIBSOURCES_DIR])
380 m4_popdef([gltests_LIBSOURCES_LIST])
381 m4_popdef([AC_LIBSOURCES])
382 m4_popdef([AC_REPLACE_FUNCS])
383 m4_popdef([AC_LIBOBJ])
384 AC_CONFIG_COMMANDS_PRE([
387 if test -n "$gltests_LIBOBJS"; then
388 # Remove the extension.
389 sed_drop_objext='s/\.o$//;s/\.obj$//'
390 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
391 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
392 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
395 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
396 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
398 LIBGNU_LIBDEPS="$gl_libdeps"
399 AC_SUBST([LIBGNU_LIBDEPS])
400 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
401 AC_SUBST([LIBGNU_LTLIBDEPS])
404 # Like AC_LIBOBJ, except that the module name goes
405 # into gl_LIBOBJS instead of into LIBOBJS.
406 AC_DEFUN([gl_LIBOBJ], [
407 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
408 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
411 # Like AC_REPLACE_FUNCS, except that the module name goes
412 # into gl_LIBOBJS instead of into LIBOBJS.
413 AC_DEFUN([gl_REPLACE_FUNCS], [
414 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
415 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
418 # Like AC_LIBSOURCES, except the directory where the source file is
419 # expected is derived from the gnulib-tool parameterization,
420 # and alloca is special cased (for the alloca-opt module).
421 # We could also entirely rely on EXTRA_lib..._SOURCES.
422 AC_DEFUN([gl_LIBSOURCES], [
423 m4_foreach([_gl_NAME], [$1], [
424 m4_if(_gl_NAME, [alloca.c], [], [
425 m4_define([gl_LIBSOURCES_DIR], [lib])
426 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
431 # Like AC_LIBOBJ, except that the module name goes
432 # into gltests_LIBOBJS instead of into LIBOBJS.
433 AC_DEFUN([gltests_LIBOBJ], [
434 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
435 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
438 # Like AC_REPLACE_FUNCS, except that the module name goes
439 # into gltests_LIBOBJS instead of into LIBOBJS.
440 AC_DEFUN([gltests_REPLACE_FUNCS], [
441 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
442 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
445 # Like AC_LIBSOURCES, except the directory where the source file is
446 # expected is derived from the gnulib-tool parameterization,
447 # and alloca is special cased (for the alloca-opt module).
448 # We could also entirely rely on EXTRA_lib..._SOURCES.
449 AC_DEFUN([gltests_LIBSOURCES], [
450 m4_foreach([_gl_NAME], [$1], [
451 m4_if(_gl_NAME, [alloca.c], [], [
452 m4_define([gltests_LIBSOURCES_DIR], [tests])
453 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
458 # This macro records the list of files which have been installed by
459 # gnulib-tool and may be removed by future gnulib-tool invocations.
460 AC_DEFUN([gl_FILE_LIST], [
461 build-aux/snippet/_Noreturn.h
462 build-aux/snippet/arg-nonnull.h
463 build-aux/snippet/c++defs.h
464 build-aux/snippet/warn-on-use.h
489 lib/mktime-internal.h
491 lib/pthread_sigmask.c
541 m4/pthread_sigmask.m4