1
# DO NOT EDIT! GENERATED AUTOMATICALLY!
2
# Copyright (C) 2002-2010 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.ac, 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:
30
# Code from module alloca-opt:
31
# Code from module arg-nonnull:
32
# Code from module argp:
33
# Code from module btowc:
34
# Code from module c++defs:
35
# Code from module configmake:
36
# Code from module dirname-lgpl:
37
# Code from module double-slash-root:
38
# Code from module errno:
39
# Code from module error:
40
# Code from module extensions:
41
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
42
# Code from module float:
43
# Code from module fnmatch:
44
# Code from module getdelim:
45
# Code from module getline:
46
# Code from module getopt-gnu:
47
# Code from module getopt-posix:
48
# Code from module gettext:
49
# Code from module gettext-h:
50
# Code from module havelib:
51
# Code from module include_next:
52
# Code from module intprops:
53
# Code from module langinfo:
54
# Code from module localcharset:
55
# Code from module malloc-gnu:
56
# Code from module malloc-posix:
57
# Code from module mbrtowc:
58
# Code from module mbsinit:
59
# Code from module mbsrtowcs:
60
# Code from module memchr:
61
# Code from module mempcpy:
62
# Code from module multiarch:
63
# Code from module nl_langinfo:
64
# Code from module progname:
65
# Code from module rawmemchr:
66
# Code from module realloc-posix:
67
# Code from module regex:
68
# Code from module size_max:
69
# Code from module sleep:
70
# Code from module ssize_t:
71
# Code from module stdbool:
72
# Code from module stddef:
73
# Code from module stdint:
74
# Code from module stdio:
75
# Code from module stdlib:
76
# Code from module strcase:
77
# Code from module strchrnul:
78
# Code from module streq:
79
# Code from module strerror:
80
# Code from module string:
81
# Code from module strings:
82
# Code from module strndup:
83
# Code from module strnlen:
84
# Code from module strnlen1:
85
# Code from module sys_wait:
86
# Code from module sysexits:
87
# Code from module unistd:
88
# Code from module vasnprintf:
89
# Code from module verify:
90
# Code from module vsnprintf:
91
# Code from module warn-on-use:
92
# Code from module wchar:
93
# Code from module wcrtomb:
94
# Code from module wctype:
95
# Code from module xsize:
98
# This macro should be invoked from ./configure.ac, in the section
99
# "Check for header files, types and library functions".
102
AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
103
gl_cond_libtool=false
107
m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
108
m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
109
m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
110
m4_pushdef([gl_LIBSOURCES_LIST], [])
111
m4_pushdef([gl_LIBSOURCES_DIR], [])
113
gl_source_base='grub-core/gnulib'
114
# Code from module alloca:
115
# Code from module alloca-opt:
117
# Code from module arg-nonnull:
118
# Code from module argp:
120
m4_ifdef([AM_XGETTEXT_OPTION],
121
[AM_][XGETTEXT_OPTION([--flag=argp_error:2:c-format])
122
AM_][XGETTEXT_OPTION([--flag=argp_failure:4:c-format])])
123
# Code from module btowc:
125
gl_WCHAR_MODULE_INDICATOR([btowc])
126
# Code from module c++defs:
127
# Code from module configmake:
128
# Code from module dirname-lgpl:
130
# Code from module double-slash-root:
132
# Code from module errno:
134
# Code from module error:
136
m4_ifdef([AM_XGETTEXT_OPTION],
137
[AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
138
AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
139
# Code from module extensions:
140
# Code from module float:
142
# Code from module fnmatch:
143
gl_FUNC_FNMATCH_POSIX
144
# Code from module getdelim:
146
gl_STDIO_MODULE_INDICATOR([getdelim])
147
# Code from module getline:
149
gl_STDIO_MODULE_INDICATOR([getline])
150
# Code from module getopt-gnu:
152
gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
153
# Code from module getopt-posix:
155
# Code from module gettext:
156
dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
157
AM_GNU_GETTEXT_VERSION([0.18.1])
158
# Code from module gettext-h:
160
AC_SUBST([LTLIBINTL])
161
# Code from module havelib:
162
# Code from module include_next:
163
# Code from module intprops:
164
# Code from module langinfo:
166
# Code from module localcharset:
168
LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
169
AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
170
# Code from module malloc-gnu:
172
gl_MODULE_INDICATOR([malloc-gnu])
173
# Code from module malloc-posix:
175
gl_STDLIB_MODULE_INDICATOR([malloc-posix])
176
# Code from module mbrtowc:
178
gl_WCHAR_MODULE_INDICATOR([mbrtowc])
179
# Code from module mbsinit:
181
gl_WCHAR_MODULE_INDICATOR([mbsinit])
182
# Code from module mbsrtowcs:
184
gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
185
# Code from module memchr:
187
gl_STRING_MODULE_INDICATOR([memchr])
188
# Code from module mempcpy:
190
gl_STRING_MODULE_INDICATOR([mempcpy])
191
# Code from module multiarch:
193
# Code from module nl_langinfo:
195
gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
196
# Code from module progname:
197
AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
198
AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
199
# Code from module rawmemchr:
201
gl_STRING_MODULE_INDICATOR([rawmemchr])
202
# Code from module realloc-posix:
203
gl_FUNC_REALLOC_POSIX
204
gl_STDLIB_MODULE_INDICATOR([realloc-posix])
205
# Code from module regex:
207
# Code from module size_max:
209
# Code from module sleep:
211
gl_UNISTD_MODULE_INDICATOR([sleep])
212
# Code from module ssize_t:
214
# Code from module stdbool:
216
# Code from module stddef:
218
# Code from module stdint:
220
# Code from module stdio:
222
# Code from module stdlib:
224
# Code from module strcase:
226
# Code from module strchrnul:
228
gl_STRING_MODULE_INDICATOR([strchrnul])
229
# Code from module streq:
230
# Code from module strerror:
232
gl_STRING_MODULE_INDICATOR([strerror])
233
# Code from module string:
235
# Code from module strings:
237
# Code from module strndup:
239
gl_STRING_MODULE_INDICATOR([strndup])
240
# Code from module strnlen:
242
gl_STRING_MODULE_INDICATOR([strnlen])
243
# Code from module strnlen1:
244
# Code from module sys_wait:
247
# Code from module sysexits:
249
# Code from module unistd:
251
# Code from module vasnprintf:
253
# Code from module verify:
254
# Code from module vsnprintf:
256
gl_STDIO_MODULE_INDICATOR([vsnprintf])
257
# Code from module warn-on-use:
258
# Code from module wchar:
260
# Code from module wcrtomb:
262
gl_WCHAR_MODULE_INDICATOR([wcrtomb])
263
# Code from module wctype:
265
# Code from module xsize:
267
# End of code from modules
268
m4_ifval(gl_LIBSOURCES_LIST, [
269
m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
270
for gl_file in ]gl_LIBSOURCES_LIST[ ; do
271
if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
272
echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
276
m4_if(m4_sysval, [0], [],
277
[AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
279
m4_popdef([gl_LIBSOURCES_DIR])
280
m4_popdef([gl_LIBSOURCES_LIST])
281
m4_popdef([AC_LIBSOURCES])
282
m4_popdef([AC_REPLACE_FUNCS])
283
m4_popdef([AC_LIBOBJ])
284
AC_CONFIG_COMMANDS_PRE([
287
if test -n "$gl_LIBOBJS"; then
288
# Remove the extension.
289
sed_drop_objext='s/\.o$//;s/\.obj$//'
290
for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
291
gl_libobjs="$gl_libobjs $i.$ac_objext"
292
gl_ltlibobjs="$gl_ltlibobjs $i.lo"
295
AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
296
AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
300
m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
301
m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
302
m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
303
m4_pushdef([gltests_LIBSOURCES_LIST], [])
304
m4_pushdef([gltests_LIBSOURCES_DIR], [])
306
gl_source_base='tests'
308
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
310
AC_SUBST([gltests_WITNESS])
311
gl_module_indicator_condition=$gltests_WITNESS
312
m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
313
m4_popdef([gl_MODULE_INDICATOR_CONDITION])
314
m4_ifval(gltests_LIBSOURCES_LIST, [
315
m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
316
for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
317
if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
318
echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
322
m4_if(m4_sysval, [0], [],
323
[AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
325
m4_popdef([gltests_LIBSOURCES_DIR])
326
m4_popdef([gltests_LIBSOURCES_LIST])
327
m4_popdef([AC_LIBSOURCES])
328
m4_popdef([AC_REPLACE_FUNCS])
329
m4_popdef([AC_LIBOBJ])
330
AC_CONFIG_COMMANDS_PRE([
333
if test -n "$gltests_LIBOBJS"; then
334
# Remove the extension.
335
sed_drop_objext='s/\.o$//;s/\.obj$//'
336
for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
337
gltests_libobjs="$gltests_libobjs $i.$ac_objext"
338
gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
341
AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
342
AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
344
LIBGNU_LIBDEPS="$gl_libdeps"
345
AC_SUBST([LIBGNU_LIBDEPS])
346
LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
347
AC_SUBST([LIBGNU_LTLIBDEPS])
350
# Like AC_LIBOBJ, except that the module name goes
351
# into gl_LIBOBJS instead of into LIBOBJS.
352
AC_DEFUN([gl_LIBOBJ], [
353
AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
354
gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
357
# Like AC_REPLACE_FUNCS, except that the module name goes
358
# into gl_LIBOBJS instead of into LIBOBJS.
359
AC_DEFUN([gl_REPLACE_FUNCS], [
360
m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
361
AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
364
# Like AC_LIBSOURCES, except the directory where the source file is
365
# expected is derived from the gnulib-tool parameterization,
366
# and alloca is special cased (for the alloca-opt module).
367
# We could also entirely rely on EXTRA_lib..._SOURCES.
368
AC_DEFUN([gl_LIBSOURCES], [
369
m4_foreach([_gl_NAME], [$1], [
370
m4_if(_gl_NAME, [alloca.c], [], [
371
m4_define([gl_LIBSOURCES_DIR], [grub-core/gnulib])
372
m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
377
# Like AC_LIBOBJ, except that the module name goes
378
# into gltests_LIBOBJS instead of into LIBOBJS.
379
AC_DEFUN([gltests_LIBOBJ], [
380
AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
381
gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
384
# Like AC_REPLACE_FUNCS, except that the module name goes
385
# into gltests_LIBOBJS instead of into LIBOBJS.
386
AC_DEFUN([gltests_REPLACE_FUNCS], [
387
m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
388
AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
391
# Like AC_LIBSOURCES, except the directory where the source file is
392
# expected is derived from the gnulib-tool parameterization,
393
# and alloca is special cased (for the alloca-opt module).
394
# We could also entirely rely on EXTRA_lib..._SOURCES.
395
AC_DEFUN([gltests_LIBSOURCES], [
396
m4_foreach([_gl_NAME], [$1], [
397
m4_if(_gl_NAME, [alloca.c], [], [
398
m4_define([gltests_LIBSOURCES_DIR], [tests])
399
m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
404
# This macro records the list of files which have been installed by
405
# gnulib-tool and may be removed by future gnulib-tool invocations.
406
AC_DEFUN([gl_FILE_LIST], [
407
build-aux/arg-nonnull.h
409
build-aux/config.rpath
410
build-aux/warn-on-use.h
454
lib/mbsrtowcs-state.c
467
lib/rawmemchr.valgrind
487
lib/strchrnul.valgrind
517
m4/double-slash-root.m4