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 gettext-runtime/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 allocator:
49 # Code from module ansi-c++-opt:
50 # Code from module areadlink:
51 # Code from module atexit:
52 # Code from module basename:
53 # Code from module c-ctype:
54 # Code from module c-strcase:
55 # Code from module canonicalize-lgpl:
56 # Code from module careadlinkat:
57 # Code from module closeout:
58 # Code from module configmake:
59 # Code from module csharpcomp-script:
60 # Code from module dosname:
61 # Code from module double-slash-root:
62 # Code from module environ:
63 # Code from module errno:
64 # Code from module error:
65 # Code from module extensions:
66 # Code from module extern-inline:
67 # Code from module fwriteerror:
68 # Code from module getopt-gnu:
69 # Code from module getopt-posix:
70 # Code from module gettext-h:
71 # Code from module gettext-runtime-misc:
72 # Code from module gettimeofday:
73 # Code from module gperf:
74 # Code from module havelib:
75 # Code from module iconv:
76 # Code from module iconv-h:
77 # Code from module iconv_open:
78 # Code from module include_next:
79 # Code from module inline:
80 # Code from module intprops:
81 # Code from module iswblank:
82 # Code from module java:
83 # Code from module javacomp-script:
84 # Code from module langinfo:
85 # Code from module largefile:
86 AC_REQUIRE([AC_SYS_LARGEFILE])
87 # Code from module localcharset:
88 # Code from module locale:
89 # Code from module localename:
90 # Code from module lock:
91 # Code from module lstat:
92 # Code from module malloca:
93 # Code from module mbchar:
94 # Code from module mbiter:
95 # Code from module mbrtowc:
96 # Code from module mbsinit:
97 # Code from module mbslen:
98 # Code from module mbsstr:
99 # Code from module mbuiter:
100 # Code from module memchr:
101 # Code from module memmove:
102 # Code from module msvc-inval:
103 # Code from module msvc-nothrow:
104 # Code from module multiarch:
105 # Code from module nocrash:
106 # Code from module pathmax:
107 # Code from module progname:
108 # Code from module propername:
109 # Code from module raise:
110 # Code from module readlink:
111 # Code from module relocatable-prog:
112 # Code from module relocatable-prog-wrapper:
113 # Code from module setlocale:
114 # Code from module signal-h:
115 # Code from module sigpipe:
116 # Code from module sigprocmask:
117 # Code from module snippet/_Noreturn:
118 # Code from module snippet/arg-nonnull:
119 # Code from module snippet/c++defs:
120 # Code from module snippet/unused-parameter:
121 # Code from module snippet/warn-on-use:
122 # Code from module ssize_t:
123 # Code from module stat:
124 # Code from module stdbool:
125 # Code from module stddef:
126 # Code from module stdint:
127 # Code from module stdio:
128 # Code from module stdlib:
129 # Code from module streq:
130 # Code from module strerror:
131 # Code from module strerror-override:
132 # Code from module striconv:
133 # Code from module string:
134 # Code from module strnlen:
135 # Code from module strnlen1:
136 # Code from module strtoul:
137 # Code from module sys_stat:
138 # Code from module sys_time:
139 # Code from module sys_types:
140 # Code from module threadlib:
142 # Code from module time:
143 # Code from module trim:
144 # Code from module unistd:
145 # Code from module unistr/base:
146 # Code from module unistr/u8-mbtoucr:
147 # Code from module unistr/u8-uctomb:
148 # Code from module unitypes:
149 # Code from module uniwidth/base:
150 # Code from module uniwidth/width:
151 # Code from module unlocked-io:
152 # Code from module verify:
153 # Code from module wchar:
154 # Code from module wctype-h:
155 # Code from module wcwidth:
156 # Code from module xalloc:
157 # Code from module xreadlink:
158 # Code from module xstriconv:
161 # This macro should be invoked from gettext-runtime/configure.ac, in the section
162 # "Check for header files, types and library functions".
165 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
166 gl_cond_libtool=false
169 gl_m4_base='gnulib-m4'
170 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
171 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
172 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
173 m4_pushdef([gl_LIBSOURCES_LIST], [])
174 m4_pushdef([gl_LIBSOURCES_DIR], [])
176 gl_source_base='gnulib-lib'
178 gl_PROG_ANSI_CXX([CXX], [ANSICXX])
180 if test $ac_cv_func_atexit = no; then
185 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
186 AC_LIBOBJ([canonicalize-lgpl])
188 gl_MODULE_INDICATOR([canonicalize-lgpl])
189 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
190 gl_STDLIB_MODULE_INDICATOR([realpath])
191 AC_CHECK_FUNCS_ONCE([readlinkat])
193 AC_REQUIRE([gt_CSHARPCOMP])
194 AC_CONFIG_FILES([csharpcomp.sh:../build-aux/csharpcomp.sh.in])
197 gl_UNISTD_MODULE_INDICATOR([environ])
200 if test $ac_cv_lib_error_at_line = no; then
204 m4_ifdef([AM_XGETTEXT_OPTION],
205 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
206 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
207 AC_REQUIRE([gl_EXTERN_INLINE])
208 gl_MODULE_INDICATOR([fwriteerror])
210 if test $REPLACE_GETOPT = 1; then
214 dnl Arrange for unistd.h to include getopt.h.
215 GNULIB_GL_UNISTD_H_GETOPT=1
217 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
218 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
220 if test $REPLACE_GETOPT = 1; then
224 dnl Arrange for unistd.h to include getopt.h.
225 GNULIB_GL_UNISTD_H_GETOPT=1
227 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
229 AC_SUBST([LTLIBINTL])
231 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
232 AC_LIBOBJ([gettimeofday])
233 gl_PREREQ_GETTIMEOFDAY
235 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
237 m4_ifdef([gl_ICONV_MODULE_INDICATOR],
238 [gl_ICONV_MODULE_INDICATOR([iconv])])
241 if test $REPLACE_ICONV_OPEN = 1; then
242 AC_LIBOBJ([iconv_open])
244 if test $REPLACE_ICONV = 1; then
246 AC_LIBOBJ([iconv_close])
250 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
253 if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
254 AC_LIBOBJ([iswblank])
257 gl_WCTYPE_MODULE_INDICATOR([iswblank])
259 # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
260 AC_CONFIG_FILES([javacomp.sh:../build-aux/javacomp.sh.in])
262 AC_REQUIRE([gl_LARGEFILE])
264 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
265 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
269 gl_MODULE_INDICATOR([lock])
271 if test $REPLACE_LSTAT = 1; then
275 gl_SYS_STAT_MODULE_INDICATOR([lstat])
280 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
284 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
286 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
290 gl_WCHAR_MODULE_INDICATOR([mbsinit])
292 gl_STRING_MODULE_INDICATOR([mbslen])
293 gl_STRING_MODULE_INDICATOR([mbsstr])
296 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
300 gl_STRING_MODULE_INDICATOR([memchr])
302 if test $ac_cv_func_memmove = no; then
307 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
308 AC_LIBOBJ([msvc-inval])
311 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
312 AC_LIBOBJ([msvc-nothrow])
316 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
317 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
318 m4_ifdef([AM_XGETTEXT_OPTION],
319 [AM_][XGETTEXT_OPTION([--keyword='proper_name:1,\"This is a proper name. See the gettext manual, section Names.\"'])
320 AM_][XGETTEXT_OPTION([--keyword='proper_name_utf8:1,\"This is a proper name. See the gettext manual, section Names.\"'])])
322 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
326 gl_SIGNAL_MODULE_INDICATOR([raise])
328 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
329 AC_LIBOBJ([readlink])
332 gl_UNISTD_MODULE_INDICATOR([readlink])
333 gl_RELOCATABLE([$gl_source_base])
334 if test $RELOCATABLE = yes; then
335 AC_LIBOBJ([progreloc])
336 AC_LIBOBJ([relocatable])
338 gl_FUNC_READLINK_SEPARATE
339 gl_CANONICALIZE_LGPL_SEPARATE
341 gl_RELOCATABLE_LIBRARY
342 gl_FUNC_SETENV_SEPARATE
344 if test $REPLACE_SETLOCALE = 1; then
345 AC_LIBOBJ([setlocale])
348 gl_LOCALE_MODULE_INDICATOR([setlocale])
351 dnl Define the C macro GNULIB_SIGPIPE to 1.
352 gl_MODULE_INDICATOR([sigpipe])
353 dnl Define the substituted variable GNULIB_SIGNAL_H_SIGPIPE to 1.
354 AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
355 GNULIB_SIGNAL_H_SIGPIPE=1
356 dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1.
357 AC_REQUIRE([gl_STDIO_H_DEFAULTS])
358 AC_REQUIRE([gl_ASM_SYMBOL_PREFIX])
359 GNULIB_STDIO_H_SIGPIPE=1
360 dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1.
361 AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
362 GNULIB_UNISTD_H_SIGPIPE=1
364 if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
365 AC_LIBOBJ([sigprocmask])
366 gl_PREREQ_SIGPROCMASK
368 gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
371 if test $REPLACE_STAT = 1; then
375 gl_SYS_STAT_MODULE_INDICATOR([stat])
382 if test $REPLACE_STRERROR = 1; then
383 AC_LIBOBJ([strerror])
385 gl_MODULE_INDICATOR([strerror])
386 gl_STRING_MODULE_INDICATOR([strerror])
387 AC_REQUIRE([gl_HEADER_ERRNO_H])
388 AC_REQUIRE([gl_FUNC_STRERROR_0])
389 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
390 AC_LIBOBJ([strerror-override])
391 gl_PREREQ_SYS_H_WINSOCK2
393 if test $gl_cond_libtool = false; then
394 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
395 gl_libdeps="$gl_libdeps $LIBICONV"
399 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
403 gl_STRING_MODULE_INDICATOR([strnlen])
405 if test $ac_cv_func_strtoul = no; then
417 gl_LIBUNISTRING_LIBHEADER([0.9.4], [unistr.h])
418 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
419 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
420 gl_MODULE_INDICATOR([unistr/u8-uctomb])
421 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
422 gl_LIBUNISTRING_LIBHEADER([0.9.4], [unitypes.h])
423 gl_LIBUNISTRING_LIBHEADER([0.9.4], [uniwidth.h])
424 gl_LIBUNISTRING_MODULE([0.9.6], [uniwidth/width])
425 gl_FUNC_GLIBC_UNLOCKED_IO
429 if test $HAVE_WCWIDTH = 0 || test $REPLACE_WCWIDTH = 1; then
432 gl_WCHAR_MODULE_INDICATOR([wcwidth])
433 # End of code from modules
434 m4_ifval(gl_LIBSOURCES_LIST, [
435 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
436 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
437 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
438 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
442 m4_if(m4_sysval, [0], [],
443 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
445 m4_popdef([gl_LIBSOURCES_DIR])
446 m4_popdef([gl_LIBSOURCES_LIST])
447 m4_popdef([AC_LIBSOURCES])
448 m4_popdef([AC_REPLACE_FUNCS])
449 m4_popdef([AC_LIBOBJ])
450 AC_CONFIG_COMMANDS_PRE([
453 if test -n "$gl_LIBOBJS"; then
454 # Remove the extension.
455 sed_drop_objext='s/\.o$//;s/\.obj$//'
456 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
457 gl_libobjs="$gl_libobjs $i.$ac_objext"
458 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
461 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
462 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
466 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
467 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
468 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
469 m4_pushdef([gltests_LIBSOURCES_LIST], [])
470 m4_pushdef([gltests_LIBSOURCES_DIR], [])
472 gl_source_base='tests'
474 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
476 AC_SUBST([gltests_WITNESS])
477 gl_module_indicator_condition=$gltests_WITNESS
478 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
479 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
480 m4_ifval(gltests_LIBSOURCES_LIST, [
481 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
482 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
483 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
484 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
488 m4_if(m4_sysval, [0], [],
489 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
491 m4_popdef([gltests_LIBSOURCES_DIR])
492 m4_popdef([gltests_LIBSOURCES_LIST])
493 m4_popdef([AC_LIBSOURCES])
494 m4_popdef([AC_REPLACE_FUNCS])
495 m4_popdef([AC_LIBOBJ])
496 AC_CONFIG_COMMANDS_PRE([
499 if test -n "$gltests_LIBOBJS"; then
500 # Remove the extension.
501 sed_drop_objext='s/\.o$//;s/\.obj$//'
502 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
503 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
504 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
507 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
508 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
510 LIBGRT_LIBDEPS="$gl_libdeps"
511 AC_SUBST([LIBGRT_LIBDEPS])
512 LIBGRT_LTLIBDEPS="$gl_ltlibdeps"
513 AC_SUBST([LIBGRT_LTLIBDEPS])
516 # Like AC_LIBOBJ, except that the module name goes
517 # into gl_LIBOBJS instead of into LIBOBJS.
518 AC_DEFUN([gl_LIBOBJ], [
519 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
520 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
523 # Like AC_REPLACE_FUNCS, except that the module name goes
524 # into gl_LIBOBJS instead of into LIBOBJS.
525 AC_DEFUN([gl_REPLACE_FUNCS], [
526 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
527 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
530 # Like AC_LIBSOURCES, except the directory where the source file is
531 # expected is derived from the gnulib-tool parameterization,
532 # and alloca is special cased (for the alloca-opt module).
533 # We could also entirely rely on EXTRA_lib..._SOURCES.
534 AC_DEFUN([gl_LIBSOURCES], [
535 m4_foreach([_gl_NAME], [$1], [
536 m4_if(_gl_NAME, [alloca.c], [], [
537 m4_define([gl_LIBSOURCES_DIR], [gnulib-lib])
538 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
543 # Like AC_LIBOBJ, except that the module name goes
544 # into gltests_LIBOBJS instead of into LIBOBJS.
545 AC_DEFUN([gltests_LIBOBJ], [
546 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
547 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
550 # Like AC_REPLACE_FUNCS, except that the module name goes
551 # into gltests_LIBOBJS instead of into LIBOBJS.
552 AC_DEFUN([gltests_REPLACE_FUNCS], [
553 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
554 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
557 # Like AC_LIBSOURCES, except the directory where the source file is
558 # expected is derived from the gnulib-tool parameterization,
559 # and alloca is special cased (for the alloca-opt module).
560 # We could also entirely rely on EXTRA_lib..._SOURCES.
561 AC_DEFUN([gltests_LIBSOURCES], [
562 m4_foreach([_gl_NAME], [$1], [
563 m4_if(_gl_NAME, [alloca.c], [], [
564 m4_define([gltests_LIBSOURCES_DIR], [tests])
565 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
570 # This macro records the list of files which have been installed by
571 # gnulib-tool and may be removed by future gnulib-tool invocations.
572 AC_DEFUN([gl_FILE_LIST], [
573 build-aux/config.libpath
574 build-aux/config.rpath
575 build-aux/csharpcomp.sh.in
576 build-aux/install-reloc
577 build-aux/javacomp.sh.in
578 build-aux/reloc-ldflags
579 build-aux/snippet/_Noreturn.h
580 build-aux/snippet/arg-nonnull.h
581 build-aux/snippet/c++defs.h
582 build-aux/snippet/unused-parameter.h
583 build-aux/snippet/warn-on-use.h
598 lib/canonicalize-lgpl.c
618 lib/glthread/threadlib.c
622 lib/iconv_open-aix.gperf
623 lib/iconv_open-hpux.gperf
624 lib/iconv_open-irix.gperf
625 lib/iconv_open-osf.gperf
626 lib/iconv_open-solaris.gperf
683 lib/strerror-override.c
684 lib/strerror-override.h
703 lib/unistr/u8-mbtoucr.c
704 lib/unistr/u8-uctomb-aux.c
705 lib/unistr/u8-uctomb.c
724 m4/absolute-header.m4
734 m4/double-slash-root.m4
761 m4/libunistring-base.m4
789 m4/relocatable-lib.m4