1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2018 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 <https://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
42 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43 AC_REQUIRE([gl_PROG_AR_RANLIB])
45 AC_REQUIRE([AM_PROG_CC_C_O])
46 # Code from module absolute-header:
47 # Code from module alloca-opt:
48 # Code from module errno:
49 # Code from module extensions:
50 # Code from module extern-inline:
51 # Code from module float:
52 # Code from module fpieee:
53 AC_REQUIRE([gl_FP_IEEE])
54 # Code from module fprintf-posix:
55 # Code from module fpucw:
56 # Code from module frexp-nolibm:
57 # Code from module frexpl-nolibm:
58 # Code from module fseterr:
59 # Code from module git-version-gen:
60 # Code from module havelib:
61 # Code from module host-cpu-c-abi:
62 # Code from module include_next:
63 # Code from module isnand-nolibm:
64 # Code from module isnanf-nolibm:
65 # Code from module isnanl-nolibm:
66 # Code from module limits-h:
67 # Code from module localcharset:
68 # Code from module math:
69 # Code from module memchr:
70 # Code from module multiarch:
71 # Code from module nocrash:
72 # Code from module non-recursive-gnulib-prefix-hack:
73 # Code from module printf-frexp:
74 # Code from module printf-frexpl:
75 # Code from module printf-safe:
76 # Code from module signbit:
77 # Code from module size_max:
78 # Code from module snippet/arg-nonnull:
79 # Code from module snippet/c++defs:
80 # Code from module snippet/warn-on-use:
81 # Code from module snprintf:
82 # Code from module ssize_t:
83 # Code from module stddef:
84 # Code from module stdint:
85 # Code from module stdio:
86 # Code from module streq:
87 # Code from module string:
88 # Code from module sys_types:
89 # Code from module unitypes:
90 # Code from module uniwidth/base:
91 # Code from module uniwidth/width:
92 # Code from module vasnprintf:
93 # Code from module verify:
94 # Code from module vsnprintf:
95 # Code from module wchar:
96 # Code from module wctype-h:
97 # Code from module wcwidth:
98 # Code from module xsize:
101 # This macro should be invoked from ./configure.ac, in the section
102 # "Check for header files, types and library functions".
105 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
106 gl_cond_libtool=false
109 gl_m4_base='gnulib_m4'
110 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
111 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
112 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
113 m4_pushdef([gl_LIBSOURCES_LIST], [])
114 m4_pushdef([gl_LIBSOURCES_DIR], [])
119 AC_REQUIRE([gl_EXTERN_INLINE])
121 if test $REPLACE_FLOAT_LDBL = 1; then
124 if test $REPLACE_ITOLD = 1; then
127 gl_FUNC_FPRINTF_POSIX
128 gl_STDIO_MODULE_INDICATOR([fprintf-posix])
129 gl_FUNC_FREXP_NO_LIBM
130 if test $gl_func_frexp_no_libm != yes; then
133 gl_MATH_MODULE_INDICATOR([frexp])
134 gl_FUNC_FREXPL_NO_LIBM
135 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
138 gl_MATH_MODULE_INDICATOR([frexpl])
140 if test $ac_cv_func___fseterr = no; then
143 AC_REQUIRE([gl_HOST_CPU_C_ABI])
144 gl_FUNC_ISNAND_NO_LIBM
145 if test $gl_func_isnand_no_libm != yes; then
149 gl_FUNC_ISNANF_NO_LIBM
150 if test $gl_func_isnanf_no_libm != yes; then
154 gl_FUNC_ISNANL_NO_LIBM
155 if test $gl_func_isnanl_no_libm != yes; then
161 dnl For backward compatibility. Some packages still use this.
162 LOCALCHARSET_TESTS_ENVIRONMENT=
163 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
166 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
170 gl_STRING_MODULE_INDICATOR([memchr])
172 dnl Run our hack near the end, just before config.status creation.
173 dnl It must happen late, i.e., after gl_LIBOBJS has been finalized.
174 AC_CONFIG_COMMANDS_PRE([
175 dnl Note we can't currently pass $gl_source_base instead of 'lib',
176 dnl because $gl_source_base is unset or the wrong value in the references
177 dnl generated in m4/non-recursive-gnulib-prefix-hack.m4
178 gl_NON_RECURSIVE_GNULIB_PREFIX_HACK([lib])
181 gl_FUNC_PRINTF_FREXPL
182 m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
184 if test $REPLACE_SIGNBIT = 1; then
185 AC_LIBOBJ([signbitf])
186 AC_LIBOBJ([signbitd])
187 AC_LIBOBJ([signbitl])
189 gl_MATH_MODULE_INDICATOR([signbit])
192 gl_STDIO_MODULE_INDICATOR([snprintf])
193 gl_MODULE_INDICATOR([snprintf])
201 gl_LIBUNISTRING_LIBHEADER([0.9.4], [unitypes.h])
202 gl_LIBUNISTRING_LIBHEADER([0.9.4], [uniwidth.h])
203 gl_LIBUNISTRING_MODULE([0.9.8], [uniwidth/width])
206 gl_STDIO_MODULE_INDICATOR([vsnprintf])
210 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
214 gl_WCHAR_MODULE_INDICATOR([wcwidth])
216 # End of code from modules
217 m4_ifval(gl_LIBSOURCES_LIST, [
218 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
219 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
220 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
221 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
225 m4_if(m4_sysval, [0], [],
226 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
228 m4_popdef([gl_LIBSOURCES_DIR])
229 m4_popdef([gl_LIBSOURCES_LIST])
230 m4_popdef([AC_LIBSOURCES])
231 m4_popdef([AC_REPLACE_FUNCS])
232 m4_popdef([AC_LIBOBJ])
233 AC_CONFIG_COMMANDS_PRE([
236 if test -n "$gl_LIBOBJS"; then
237 # Remove the extension.
238 sed_drop_objext='s/\.o$//;s/\.obj$//'
239 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
240 gl_libobjs="$gl_libobjs $i.$ac_objext"
241 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
244 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
245 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
249 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
250 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
251 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
252 m4_pushdef([gltests_LIBSOURCES_LIST], [])
253 m4_pushdef([gltests_LIBSOURCES_DIR], [])
255 gl_source_base='tests'
257 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
259 AC_SUBST([gltests_WITNESS])
260 gl_module_indicator_condition=$gltests_WITNESS
261 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
262 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
263 m4_ifval(gltests_LIBSOURCES_LIST, [
264 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
265 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
266 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
267 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
271 m4_if(m4_sysval, [0], [],
272 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
274 m4_popdef([gltests_LIBSOURCES_DIR])
275 m4_popdef([gltests_LIBSOURCES_LIST])
276 m4_popdef([AC_LIBSOURCES])
277 m4_popdef([AC_REPLACE_FUNCS])
278 m4_popdef([AC_LIBOBJ])
279 AC_CONFIG_COMMANDS_PRE([
282 if test -n "$gltests_LIBOBJS"; then
283 # Remove the extension.
284 sed_drop_objext='s/\.o$//;s/\.obj$//'
285 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
286 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
287 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
290 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
291 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
293 LIBGNU_LIBDEPS="$gl_libdeps"
294 AC_SUBST([LIBGNU_LIBDEPS])
295 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
296 AC_SUBST([LIBGNU_LTLIBDEPS])
299 # Like AC_LIBOBJ, except that the module name goes
300 # into gl_LIBOBJS instead of into LIBOBJS.
301 AC_DEFUN([gl_LIBOBJ], [
302 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
303 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
306 # Like AC_REPLACE_FUNCS, except that the module name goes
307 # into gl_LIBOBJS instead of into LIBOBJS.
308 AC_DEFUN([gl_REPLACE_FUNCS], [
309 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
310 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
313 # Like AC_LIBSOURCES, except the directory where the source file is
314 # expected is derived from the gnulib-tool parameterization,
315 # and alloca is special cased (for the alloca-opt module).
316 # We could also entirely rely on EXTRA_lib..._SOURCES.
317 AC_DEFUN([gl_LIBSOURCES], [
318 m4_foreach([_gl_NAME], [$1], [
319 m4_if(_gl_NAME, [alloca.c], [], [
320 m4_define([gl_LIBSOURCES_DIR], [lib])
321 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
326 # Like AC_LIBOBJ, except that the module name goes
327 # into gltests_LIBOBJS instead of into LIBOBJS.
328 AC_DEFUN([gltests_LIBOBJ], [
329 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
330 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
333 # Like AC_REPLACE_FUNCS, except that the module name goes
334 # into gltests_LIBOBJS instead of into LIBOBJS.
335 AC_DEFUN([gltests_REPLACE_FUNCS], [
336 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
337 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
340 # Like AC_LIBSOURCES, except the directory where the source file is
341 # expected is derived from the gnulib-tool parameterization,
342 # and alloca is special cased (for the alloca-opt module).
343 # We could also entirely rely on EXTRA_lib..._SOURCES.
344 AC_DEFUN([gltests_LIBSOURCES], [
345 m4_foreach([_gl_NAME], [$1], [
346 m4_if(_gl_NAME, [alloca.c], [], [
347 m4_define([gltests_LIBSOURCES_DIR], [tests])
348 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
353 # This macro records the list of files which have been installed by
354 # gnulib-tool and may be removed by future gnulib-tool invocations.
355 AC_DEFUN([gl_FILE_LIST], [
356 build-aux/config.rpath
357 build-aux/git-version-gen
358 build-aux/prefix-gnulib-mk
424 m4/absolute-header.m4
452 m4/libunistring-base.m4
461 m4/non-recursive-gnulib-prefix-hack.m4