1
# DO NOT EDIT! GENERATED AUTOMATICALLY!
2
# Copyright (C) 2002-2014 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 announce-gen:
43
# Code from module c-ctype:
44
# Code from module c-strcase:
45
# Code from module c-strcaseeq:
46
# Code from module close-stream:
47
# Code from module closeout:
48
# Code from module configmake:
49
# Code from module dirname:
50
# Code from module dirname-lgpl:
51
# Code from module do-release-commit-and-tag:
52
# Code from module dosname:
53
# Code from module double-slash-root:
54
# Code from module errno:
55
# Code from module error:
56
# Code from module exitfail:
57
# Code from module extensions:
58
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
59
# Code from module extern-inline:
60
# Code from module fdl:
61
# Code from module fpending:
62
# Code from module gendocs:
63
# Code from module getopt-gnu:
64
# Code from module getopt-posix:
65
# Code from module gettext:
66
# Code from module gettext-h:
67
# Code from module gitlog-to-changelog:
68
# Code from module gnu-web-doc-update:
69
# Code from module gnumakefile:
70
# Code from module gnupload:
71
# Code from module havelib:
72
# Code from module include_next:
73
# Code from module intprops:
74
# Code from module localcharset:
75
# Code from module maintainer-makefile:
76
# Code from module malloc-posix:
77
# Code from module mbrtowc:
78
# Code from module mbsinit:
79
# Code from module mbsrtowcs:
80
# Code from module memchr:
81
# Code from module msvc-inval:
82
# Code from module msvc-nothrow:
83
# Code from module nocrash:
84
# Code from module non-recursive-gnulib-prefix-hack:
85
# Code from module progname:
86
# Code from module quotearg:
87
# Code from module quotearg-simple:
88
# Code from module readme-release:
89
# Code from module snippet/_Noreturn:
90
# Code from module snippet/arg-nonnull:
91
# Code from module snippet/c++defs:
92
# Code from module snippet/warn-on-use:
93
# Code from module ssize_t:
94
# Code from module stdbool:
95
# Code from module stddef:
96
# Code from module stdio:
97
# Code from module stdlib:
98
# Code from module streq:
99
# Code from module strerror:
100
# Code from module strerror-override:
101
# Code from module string:
102
# Code from module strndup:
103
# Code from module strnlen:
104
# Code from module strnlen1:
105
# Code from module sys_types:
106
# Code from module unistd:
107
# Code from module update-copyright:
108
# Code from module useless-if-before-free:
109
# Code from module vc-list-files:
110
# Code from module verify:
111
# Code from module wchar:
112
# Code from module wctype-h:
113
# Code from module xalloc:
114
# Code from module xalloc-die:
115
# Code from module xalloc-oversized:
116
# Code from module xstrndup:
119
# This macro should be invoked from ./configure.ac, in the section
120
# "Check for header files, types and library functions".
123
AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
124
gl_cond_libtool=false
128
m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
129
m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
130
m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
131
m4_pushdef([gl_LIBSOURCES_LIST], [])
132
m4_pushdef([gl_LIBSOURCES_DIR], [])
136
gl_MODULE_INDICATOR([close-stream])
140
gl_MODULE_INDICATOR([dirname])
145
if test $ac_cv_lib_error_at_line = no; then
149
m4_ifdef([AM_XGETTEXT_OPTION],
150
[AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
151
AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
152
AC_REQUIRE([gl_EXTERN_INLINE])
154
if test $gl_cv_func___fpending = no; then
155
AC_LIBOBJ([fpending])
159
if test $REPLACE_GETOPT = 1; then
163
dnl Arrange for unistd.h to include getopt.h.
164
GNULIB_GL_UNISTD_H_GETOPT=1
166
AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
167
gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
169
if test $REPLACE_GETOPT = 1; then
173
dnl Arrange for unistd.h to include getopt.h.
174
GNULIB_GL_UNISTD_H_GETOPT=1
176
AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
177
dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
178
AM_GNU_GETTEXT_VERSION([0.18.1])
180
AC_SUBST([LTLIBINTL])
181
# Autoconf 2.61a.99 and earlier don't support linking a file only
182
# in VPATH builds. But since GNUmakefile is for maintainer use
183
# only, it does not matter if we skip the link with older autoconf.
184
# Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
185
# builds, so use a shell variable to bypass this.
186
GNUmakefile=GNUmakefile
187
m4_if(m4_version_compare([2.61a.100],
188
m4_defn([m4_PACKAGE_VERSION])), [1], [],
189
[AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
190
[GNUmakefile=$GNUmakefile])])
192
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
193
AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
194
AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
195
[AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
196
AC_REQUIRE([AC_PROG_SED])
198
if test $REPLACE_MALLOC = 1; then
201
gl_STDLIB_MODULE_INDICATOR([malloc-posix])
203
if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
207
gl_WCHAR_MODULE_INDICATOR([mbrtowc])
209
if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
213
gl_WCHAR_MODULE_INDICATOR([mbsinit])
215
if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
216
AC_LIBOBJ([mbsrtowcs])
217
AC_LIBOBJ([mbsrtowcs-state])
220
gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
222
if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
226
gl_STRING_MODULE_INDICATOR([memchr])
228
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
229
AC_LIBOBJ([msvc-inval])
232
if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
233
AC_LIBOBJ([msvc-nothrow])
235
dnl Run our hack near the end, just before config.status creation.
236
dnl It must happen late, i.e., after gl_LIBOBJS has been finalized.
237
AC_CONFIG_COMMANDS_PRE([
238
gl_NON_RECURSIVE_GNULIB_PREFIX_HACK([lib])
240
AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
241
AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
249
if test $REPLACE_STRERROR = 1; then
250
AC_LIBOBJ([strerror])
252
gl_MODULE_INDICATOR([strerror])
253
gl_STRING_MODULE_INDICATOR([strerror])
254
AC_REQUIRE([gl_HEADER_ERRNO_H])
255
AC_REQUIRE([gl_FUNC_STRERROR_0])
256
if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
257
AC_LIBOBJ([strerror-override])
258
gl_PREREQ_SYS_H_WINSOCK2
262
if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
265
gl_STRING_MODULE_INDICATOR([strndup])
267
if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
271
gl_STRING_MODULE_INDICATOR([strnlen])
279
# End of code from modules
280
m4_ifval(gl_LIBSOURCES_LIST, [
281
m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
282
for gl_file in ]gl_LIBSOURCES_LIST[ ; do
283
if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
284
echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
288
m4_if(m4_sysval, [0], [],
289
[AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
291
m4_popdef([gl_LIBSOURCES_DIR])
292
m4_popdef([gl_LIBSOURCES_LIST])
293
m4_popdef([AC_LIBSOURCES])
294
m4_popdef([AC_REPLACE_FUNCS])
295
m4_popdef([AC_LIBOBJ])
296
AC_CONFIG_COMMANDS_PRE([
299
if test -n "$gl_LIBOBJS"; then
300
# Remove the extension.
301
sed_drop_objext='s/\.o$//;s/\.obj$//'
302
for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
303
gl_libobjs="$gl_libobjs $i.$ac_objext"
304
gl_ltlibobjs="$gl_ltlibobjs $i.lo"
307
AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
308
AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
312
m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
313
m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
314
m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
315
m4_pushdef([gltests_LIBSOURCES_LIST], [])
316
m4_pushdef([gltests_LIBSOURCES_DIR], [])
318
gl_source_base='tests'
320
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
322
AC_SUBST([gltests_WITNESS])
323
gl_module_indicator_condition=$gltests_WITNESS
324
m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
325
m4_popdef([gl_MODULE_INDICATOR_CONDITION])
326
m4_ifval(gltests_LIBSOURCES_LIST, [
327
m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
328
for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
329
if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
330
echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
334
m4_if(m4_sysval, [0], [],
335
[AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
337
m4_popdef([gltests_LIBSOURCES_DIR])
338
m4_popdef([gltests_LIBSOURCES_LIST])
339
m4_popdef([AC_LIBSOURCES])
340
m4_popdef([AC_REPLACE_FUNCS])
341
m4_popdef([AC_LIBOBJ])
342
AC_CONFIG_COMMANDS_PRE([
345
if test -n "$gltests_LIBOBJS"; then
346
# Remove the extension.
347
sed_drop_objext='s/\.o$//;s/\.obj$//'
348
for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
349
gltests_libobjs="$gltests_libobjs $i.$ac_objext"
350
gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
353
AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
354
AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
356
LIBHELLO_LIBDEPS="$gl_libdeps"
357
AC_SUBST([LIBHELLO_LIBDEPS])
358
LIBHELLO_LTLIBDEPS="$gl_ltlibdeps"
359
AC_SUBST([LIBHELLO_LTLIBDEPS])
362
# Like AC_LIBOBJ, except that the module name goes
363
# into gl_LIBOBJS instead of into LIBOBJS.
364
AC_DEFUN([gl_LIBOBJ], [
365
AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
366
gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
369
# Like AC_REPLACE_FUNCS, except that the module name goes
370
# into gl_LIBOBJS instead of into LIBOBJS.
371
AC_DEFUN([gl_REPLACE_FUNCS], [
372
m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
373
AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
376
# Like AC_LIBSOURCES, except the directory where the source file is
377
# expected is derived from the gnulib-tool parameterization,
378
# and alloca is special cased (for the alloca-opt module).
379
# We could also entirely rely on EXTRA_lib..._SOURCES.
380
AC_DEFUN([gl_LIBSOURCES], [
381
m4_foreach([_gl_NAME], [$1], [
382
m4_if(_gl_NAME, [alloca.c], [], [
383
m4_define([gl_LIBSOURCES_DIR], [lib])
384
m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
389
# Like AC_LIBOBJ, except that the module name goes
390
# into gltests_LIBOBJS instead of into LIBOBJS.
391
AC_DEFUN([gltests_LIBOBJ], [
392
AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
393
gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
396
# Like AC_REPLACE_FUNCS, except that the module name goes
397
# into gltests_LIBOBJS instead of into LIBOBJS.
398
AC_DEFUN([gltests_REPLACE_FUNCS], [
399
m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
400
AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
403
# Like AC_LIBSOURCES, except the directory where the source file is
404
# expected is derived from the gnulib-tool parameterization,
405
# and alloca is special cased (for the alloca-opt module).
406
# We could also entirely rely on EXTRA_lib..._SOURCES.
407
AC_DEFUN([gltests_LIBSOURCES], [
408
m4_foreach([_gl_NAME], [$1], [
409
m4_if(_gl_NAME, [alloca.c], [], [
410
m4_define([gltests_LIBSOURCES_DIR], [tests])
411
m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
416
# This macro records the list of files which have been installed by
417
# gnulib-tool and may be removed by future gnulib-tool invocations.
418
AC_DEFUN([gl_FILE_LIST], [
419
build-aux/announce-gen
420
build-aux/config.rpath
421
build-aux/do-release-commit-and-tag
423
build-aux/gitlog-to-changelog
424
build-aux/gnu-web-doc-update
426
build-aux/prefix-gnulib-mk
427
build-aux/snippet/_Noreturn.h
428
build-aux/snippet/arg-nonnull.h
429
build-aux/snippet/c++defs.h
430
build-aux/snippet/warn-on-use.h
431
build-aux/update-copyright
432
build-aux/useless-if-before-free
433
build-aux/vc-list-files
472
lib/mbsrtowcs-state.c
492
lib/strerror-override.c
493
lib/strerror-override.h
509
lib/xalloc-oversized.h
515
m4/absolute-header.m4
521
m4/double-slash-root.m4
563
m4/non-recursive-gnulib-prefix-hack.m4