1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2015 Free Software Foundation, Inc.
4 # This file is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This file is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this file. If not, see <http://www.gnu.org/licenses/>.
17 # As a special exception to the GNU General Public License,
18 # this file may be distributed as part of a program that
19 # contains a configuration script generated by Autoconf, under
20 # the same distribution terms as the rest of that program.
22 # Generated by gnulib-tool.
24 # This file represents the compiled summary of the specification in
25 # gnulib-cache.m4. It lists the computed macro invocations that need
26 # to be invoked from configure.ac.
27 # In projects that use version control, this file can be treated like
31 # This macro should be invoked from ./configure.ac, in the section
32 # "Checks for programs", right after AC_PROG_CC, and certainly before
33 # any checks for libraries, header files, types and library functions.
36 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
37 m4_pattern_allow([^gl_ES$])dnl a valid locale name
38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
40 AC_REQUIRE([gl_PROG_AR_RANLIB])
41 # Code from module absolute-header:
42 # Code from module alloca:
43 # Code from module alloca-opt:
44 # Code from module canonicalize-lgpl:
45 # Code from module chdir:
46 # Code from module configmake:
47 # Code from module dirent:
48 # Code from module dirfd:
49 # Code from module dirname-lgpl:
50 # Code from module dosname:
51 # Code from module double-slash-root:
52 # Code from module errno:
53 # Code from module extensions:
54 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
55 # Code from module extern-inline:
56 # Code from module float:
57 # Code from module fnmatch:
58 # Code from module fnmatch-gnu:
59 # Code from module fpieee:
60 AC_REQUIRE([gl_FP_IEEE])
61 # Code from module fpucw:
62 # Code from module frexp:
63 # Code from module frexpl:
64 # Code from module gettimeofday:
65 # Code from module include_next:
66 # Code from module inttypes:
67 # Code from module inttypes-incomplete:
68 # Code from module isnand-nolibm:
69 # Code from module isnanl-nolibm:
70 # Code from module largefile:
71 AC_REQUIRE([AC_SYS_LARGEFILE])
72 # Code from module localcharset:
73 # Code from module lstat:
74 # Code from module malloc-posix:
75 # Code from module malloca:
76 # Code from module math:
77 # Code from module mbrtowc:
78 # Code from module mbsinit:
79 # Code from module mbsrtowcs:
80 # Code from module memchr:
81 # Code from module memmem:
82 # Code from module memmem-simple:
83 # Code from module multiarch:
84 # Code from module nocrash:
85 # Code from module pathmax:
86 # Code from module rawmemchr:
87 # Code from module readlink:
88 # Code from module rename:
89 # Code from module rmdir:
90 # Code from module same-inode:
91 # Code from module signal-h:
92 # Code from module snippet/_Noreturn:
93 # Code from module snippet/arg-nonnull:
94 # Code from module snippet/c++defs:
95 # Code from module snippet/warn-on-use:
96 # Code from module ssize_t:
97 # Code from module stat:
98 # Code from module stdbool:
99 # Code from module stddef:
100 # Code from module stdint:
101 # Code from module stdio:
102 # Code from module stdlib:
103 # Code from module strchrnul:
104 # Code from module streq:
105 # Code from module string:
106 # Code from module strnlen1:
107 # Code from module strstr:
108 # Code from module strstr-simple:
109 # Code from module strtok_r:
110 # Code from module sys_stat:
111 # Code from module sys_time:
112 # Code from module sys_types:
113 # Code from module time:
114 # Code from module unistd:
115 # Code from module update-copyright:
116 # Code from module verify:
117 # Code from module wchar:
118 # Code from module wctype-h:
121 # This macro should be invoked from ./configure.ac, in the section
122 # "Check for header files, types and library functions".
125 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
126 gl_cond_libtool=false
129 gl_m4_base='import/m4'
130 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
131 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
132 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
133 m4_pushdef([gl_LIBSOURCES_LIST], [])
134 m4_pushdef([gl_LIBSOURCES_DIR], [])
136 gl_source_base='import'
139 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
140 AC_LIBOBJ([canonicalize-lgpl])
142 gl_MODULE_INDICATOR([canonicalize-lgpl])
143 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
144 gl_STDLIB_MODULE_INDICATOR([realpath])
145 gl_UNISTD_MODULE_INDICATOR([chdir])
149 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
153 gl_DIRENT_MODULE_INDICATOR([dirfd])
157 AC_REQUIRE([gl_EXTERN_INLINE])
159 if test $REPLACE_FLOAT_LDBL = 1; then
162 if test $REPLACE_ITOLD = 1; then
165 gl_FUNC_FNMATCH_POSIX
166 if test -n "$FNMATCH_H"; then
171 if test -n "$FNMATCH_H"; then
176 if test $gl_func_frexp != yes; then
179 gl_MATH_MODULE_INDICATOR([frexp])
181 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
184 gl_MATH_MODULE_INDICATOR([frexpl])
186 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
187 AC_LIBOBJ([gettimeofday])
188 gl_PREREQ_GETTIMEOFDAY
190 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
192 gl_INTTYPES_INCOMPLETE
193 gl_FUNC_ISNAND_NO_LIBM
194 if test $gl_func_isnand_no_libm != yes; then
198 gl_FUNC_ISNANL_NO_LIBM
199 if test $gl_func_isnanl_no_libm != yes; then
203 AC_REQUIRE([gl_LARGEFILE])
205 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
206 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
208 if test $REPLACE_LSTAT = 1; then
212 gl_SYS_STAT_MODULE_INDICATOR([lstat])
214 if test $REPLACE_MALLOC = 1; then
217 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
221 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
225 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
227 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
231 gl_WCHAR_MODULE_INDICATOR([mbsinit])
233 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
234 AC_LIBOBJ([mbsrtowcs])
235 AC_LIBOBJ([mbsrtowcs-state])
238 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
240 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
244 gl_STRING_MODULE_INDICATOR([memchr])
246 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
249 gl_FUNC_MEMMEM_SIMPLE
250 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
253 gl_STRING_MODULE_INDICATOR([memmem])
257 if test $HAVE_RAWMEMCHR = 0; then
258 AC_LIBOBJ([rawmemchr])
261 gl_STRING_MODULE_INDICATOR([rawmemchr])
263 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
264 AC_LIBOBJ([readlink])
267 gl_UNISTD_MODULE_INDICATOR([readlink])
269 if test $REPLACE_RENAME = 1; then
272 gl_STDIO_MODULE_INDICATOR([rename])
274 if test $REPLACE_RMDIR = 1; then
277 gl_UNISTD_MODULE_INDICATOR([rmdir])
281 if test $REPLACE_STAT = 1; then
285 gl_SYS_STAT_MODULE_INDICATOR([stat])
292 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
293 AC_LIBOBJ([strchrnul])
296 gl_STRING_MODULE_INDICATOR([strchrnul])
299 if test $REPLACE_STRSTR = 1; then
302 gl_FUNC_STRSTR_SIMPLE
303 if test $REPLACE_STRSTR = 1; then
306 gl_STRING_MODULE_INDICATOR([strstr])
308 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
309 AC_LIBOBJ([strtok_r])
312 gl_STRING_MODULE_INDICATOR([strtok_r])
323 # End of code from modules
324 m4_ifval(gl_LIBSOURCES_LIST, [
325 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
326 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
327 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
328 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
332 m4_if(m4_sysval, [0], [],
333 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
335 m4_popdef([gl_LIBSOURCES_DIR])
336 m4_popdef([gl_LIBSOURCES_LIST])
337 m4_popdef([AC_LIBSOURCES])
338 m4_popdef([AC_REPLACE_FUNCS])
339 m4_popdef([AC_LIBOBJ])
340 AC_CONFIG_COMMANDS_PRE([
343 if test -n "$gl_LIBOBJS"; then
344 # Remove the extension.
345 sed_drop_objext='s/\.o$//;s/\.obj$//'
346 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
347 gl_libobjs="$gl_libobjs $i.$ac_objext"
348 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
351 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
352 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
356 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
357 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
358 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
359 m4_pushdef([gltests_LIBSOURCES_LIST], [])
360 m4_pushdef([gltests_LIBSOURCES_DIR], [])
362 gl_source_base='tests'
364 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
366 AC_SUBST([gltests_WITNESS])
367 gl_module_indicator_condition=$gltests_WITNESS
368 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
369 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
370 m4_ifval(gltests_LIBSOURCES_LIST, [
371 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
372 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
373 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
374 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
378 m4_if(m4_sysval, [0], [],
379 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
381 m4_popdef([gltests_LIBSOURCES_DIR])
382 m4_popdef([gltests_LIBSOURCES_LIST])
383 m4_popdef([AC_LIBSOURCES])
384 m4_popdef([AC_REPLACE_FUNCS])
385 m4_popdef([AC_LIBOBJ])
386 AC_CONFIG_COMMANDS_PRE([
389 if test -n "$gltests_LIBOBJS"; then
390 # Remove the extension.
391 sed_drop_objext='s/\.o$//;s/\.obj$//'
392 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
393 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
394 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
397 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
398 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
400 LIBGNU_LIBDEPS="$gl_libdeps"
401 AC_SUBST([LIBGNU_LIBDEPS])
402 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
403 AC_SUBST([LIBGNU_LTLIBDEPS])
406 # Like AC_LIBOBJ, except that the module name goes
407 # into gl_LIBOBJS instead of into LIBOBJS.
408 AC_DEFUN([gl_LIBOBJ], [
409 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
410 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
413 # Like AC_REPLACE_FUNCS, except that the module name goes
414 # into gl_LIBOBJS instead of into LIBOBJS.
415 AC_DEFUN([gl_REPLACE_FUNCS], [
416 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
417 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
420 # Like AC_LIBSOURCES, except the directory where the source file is
421 # expected is derived from the gnulib-tool parameterization,
422 # and alloca is special cased (for the alloca-opt module).
423 # We could also entirely rely on EXTRA_lib..._SOURCES.
424 AC_DEFUN([gl_LIBSOURCES], [
425 m4_foreach([_gl_NAME], [$1], [
426 m4_if(_gl_NAME, [alloca.c], [], [
427 m4_define([gl_LIBSOURCES_DIR], [import])
428 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
433 # Like AC_LIBOBJ, except that the module name goes
434 # into gltests_LIBOBJS instead of into LIBOBJS.
435 AC_DEFUN([gltests_LIBOBJ], [
436 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
437 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
440 # Like AC_REPLACE_FUNCS, except that the module name goes
441 # into gltests_LIBOBJS instead of into LIBOBJS.
442 AC_DEFUN([gltests_REPLACE_FUNCS], [
443 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
444 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
447 # Like AC_LIBSOURCES, except the directory where the source file is
448 # expected is derived from the gnulib-tool parameterization,
449 # and alloca is special cased (for the alloca-opt module).
450 # We could also entirely rely on EXTRA_lib..._SOURCES.
451 AC_DEFUN([gltests_LIBSOURCES], [
452 m4_foreach([_gl_NAME], [$1], [
453 m4_if(_gl_NAME, [alloca.c], [], [
454 m4_define([gltests_LIBSOURCES_DIR], [tests])
455 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
460 # This macro records the list of files which have been installed by
461 # gnulib-tool and may be removed by future gnulib-tool invocations.
462 AC_DEFUN([gl_FILE_LIST], [
463 build-aux/snippet/_Noreturn.h
464 build-aux/snippet/arg-nonnull.h
465 build-aux/snippet/c++defs.h
466 build-aux/snippet/warn-on-use.h
467 build-aux/update-copyright
471 lib/canonicalize-lgpl.c
508 lib/mbsrtowcs-state.c
515 lib/rawmemchr.valgrind
531 lib/strchrnul.valgrind
550 m4/absolute-header.m4
558 m4/double-slash-root.m4