1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2012 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 AC_REQUIRE([AM_PROG_CC_C_O])
42 # Code from module accept:
43 # Code from module alignof:
44 # Code from module alloca-opt:
45 # Code from module announce-gen:
46 # Code from module arpa_inet:
47 # Code from module autobuild:
49 # Code from module binary-io:
50 # Code from module bind:
51 # Code from module btowc:
52 # Code from module byteswap:
53 # Code from module c-ctype:
54 # Code from module c-strcase:
55 # Code from module c-strcaseeq:
56 # Code from module canonicalize-lgpl:
57 # Code from module ceil:
58 # Code from module chdir:
59 # Code from module close:
60 # Code from module configmake:
61 # Code from module connect:
62 # Code from module dirent:
63 # Code from module dirfd:
64 # Code from module dirname-lgpl:
65 # Code from module dosname:
66 # Code from module double-slash-root:
67 # Code from module duplocale:
68 # Code from module environ:
69 # Code from module errno:
70 # Code from module extensions:
71 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
72 # Code from module fcntl-h:
73 # Code from module fd-hook:
74 # Code from module float:
75 # Code from module flock:
76 # Code from module floor:
77 # Code from module fpieee:
78 AC_REQUIRE([gl_FP_IEEE])
79 # Code from module frexp:
80 # Code from module fstat:
81 # Code from module full-read:
82 # Code from module full-write:
83 # Code from module func:
84 # Code from module gendocs:
85 # Code from module getaddrinfo:
86 # Code from module getpeername:
87 # Code from module getsockname:
88 # Code from module getsockopt:
89 # Code from module gettext-h:
90 # Code from module git-version-gen:
91 # Code from module gitlog-to-changelog:
92 # Code from module gnu-web-doc-update:
93 # Code from module gnumakefile:
94 # Code from module gnupload:
95 # Code from module gperf:
96 # Code from module havelib:
97 # Code from module hostent:
98 # Code from module iconv:
99 # Code from module iconv-h:
100 # Code from module iconv_open:
101 # Code from module iconv_open-utf:
102 # Code from module include_next:
103 # Code from module inet_ntop:
104 # Code from module inet_pton:
105 # Code from module inline:
106 # Code from module isinf:
107 # Code from module isnan:
108 # Code from module isnand:
109 # Code from module isnand-nolibm:
110 # Code from module isnanf:
111 # Code from module isnanl:
112 # Code from module langinfo:
113 # Code from module largefile:
114 AC_REQUIRE([AC_SYS_LARGEFILE])
115 # Code from module ldexp:
116 # Code from module lib-symbol-versions:
117 # Code from module lib-symbol-visibility:
118 # Code from module libunistring:
119 # Code from module listen:
120 # Code from module localcharset:
121 # Code from module locale:
122 # Code from module log1p:
123 # Code from module lstat:
124 # Code from module maintainer-makefile:
125 # Code from module malloc-gnu:
126 # Code from module malloc-posix:
127 # Code from module malloca:
128 # Code from module math:
129 # Code from module mbrtowc:
130 # Code from module mbsinit:
131 # Code from module mbtowc:
132 # Code from module memchr:
133 # Code from module msvc-inval:
134 # Code from module msvc-nothrow:
135 # Code from module multiarch:
136 # Code from module netdb:
137 # Code from module netinet_in:
138 # Code from module nl_langinfo:
139 # Code from module nocrash:
140 # Code from module nproc:
141 # Code from module open:
142 # Code from module pathmax:
143 # Code from module pipe2:
144 # Code from module putenv:
145 # Code from module raise:
146 # Code from module read:
147 # Code from module readlink:
148 # Code from module recv:
149 # Code from module recvfrom:
150 # Code from module regex:
151 # Code from module rename:
152 # Code from module rmdir:
153 # Code from module safe-read:
154 # Code from module safe-write:
155 # Code from module same-inode:
156 # Code from module send:
157 # Code from module sendto:
158 # Code from module servent:
159 # Code from module setenv:
160 # Code from module setsockopt:
161 # Code from module shutdown:
162 # Code from module signal-h:
163 # Code from module size_max:
164 # Code from module snippet/_Noreturn:
165 # Code from module snippet/arg-nonnull:
166 # Code from module snippet/c++defs:
167 # Code from module snippet/unused-parameter:
168 # Code from module snippet/warn-on-use:
169 # Code from module snprintf:
170 # Code from module socket:
171 # Code from module socketlib:
172 # Code from module sockets:
173 # Code from module socklen:
174 # Code from module ssize_t:
175 # Code from module stat:
176 # Code from module stat-time:
177 # Code from module stdalign:
178 # Code from module stdbool:
179 # Code from module stddef:
180 # Code from module stdint:
181 # Code from module stdio:
182 # Code from module stdlib:
183 # Code from module strcase:
184 # Code from module streq:
185 # Code from module strftime:
186 # Code from module striconveh:
187 # Code from module string:
188 # Code from module strings:
189 # Code from module sys_file:
190 # Code from module sys_socket:
191 # Code from module sys_stat:
192 # Code from module sys_time:
193 # Code from module sys_types:
194 # Code from module sys_uio:
195 # Code from module time:
196 # Code from module time_r:
197 # Code from module trunc:
198 # Code from module unistd:
199 # Code from module unistr/base:
200 # Code from module unistr/u8-mbtouc:
201 # Code from module unistr/u8-mbtouc-unsafe:
202 # Code from module unistr/u8-mbtoucr:
203 # Code from module unistr/u8-prev:
204 # Code from module unistr/u8-uctomb:
205 # Code from module unitypes:
206 # Code from module useless-if-before-free:
207 # Code from module vasnprintf:
208 # Code from module vc-list-files:
209 # Code from module verify:
210 # Code from module vsnprintf:
211 # Code from module warnings:
212 # Code from module wchar:
213 # Code from module wcrtomb:
214 # Code from module wctype-h:
215 # Code from module write:
216 # Code from module xsize:
219 # This macro should be invoked from ./configure.ac, in the section
220 # "Check for header files, types and library functions".
223 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
226 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
227 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
228 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
229 m4_pushdef([gl_LIBSOURCES_LIST], [])
230 m4_pushdef([gl_LIBSOURCES_DIR], [])
233 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
234 if test "$ac_cv_header_winsock2_h" = yes; then
237 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
241 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
242 if test "$ac_cv_header_winsock2_h" = yes; then
245 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
247 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
251 gl_WCHAR_MODULE_INDICATOR([btowc])
254 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
255 AC_LIBOBJ([canonicalize-lgpl])
257 gl_MODULE_INDICATOR([canonicalize-lgpl])
258 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
259 gl_STDLIB_MODULE_INDICATOR([realpath])
261 if test $REPLACE_CEIL = 1; then
264 gl_MATH_MODULE_INDICATOR([ceil])
265 gl_UNISTD_MODULE_INDICATOR([chdir])
267 if test $REPLACE_CLOSE = 1; then
270 gl_UNISTD_MODULE_INDICATOR([close])
272 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
273 if test "$ac_cv_header_winsock2_h" = yes; then
276 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
279 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
283 gl_DIRENT_MODULE_INDICATOR([dirfd])
287 if test $REPLACE_DUPLOCALE = 1; then
288 AC_LIBOBJ([duplocale])
291 gl_LOCALE_MODULE_INDICATOR([duplocale])
293 gl_UNISTD_MODULE_INDICATOR([environ])
297 if test $REPLACE_FLOAT_LDBL = 1; then
300 if test $REPLACE_ITOLD = 1; then
304 if test $HAVE_FLOCK = 0; then
308 gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock])
310 if test $REPLACE_FLOOR = 1; then
313 gl_MATH_MODULE_INDICATOR([floor])
315 if test $gl_func_frexp != yes; then
318 gl_MATH_MODULE_INDICATOR([frexp])
320 if test $REPLACE_FSTAT = 1; then
324 gl_SYS_STAT_MODULE_INDICATOR([fstat])
327 if test $HAVE_GETADDRINFO = 0; then
328 AC_LIBOBJ([getaddrinfo])
330 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
331 AC_LIBOBJ([gai_strerror])
333 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
334 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
335 if test "$ac_cv_header_winsock2_h" = yes; then
336 AC_LIBOBJ([getpeername])
338 gl_SYS_SOCKET_MODULE_INDICATOR([getpeername])
339 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
340 if test "$ac_cv_header_winsock2_h" = yes; then
341 AC_LIBOBJ([getsockname])
343 gl_SYS_SOCKET_MODULE_INDICATOR([getsockname])
344 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
345 if test "$ac_cv_header_winsock2_h" = yes; then
346 AC_LIBOBJ([getsockopt])
348 gl_SYS_SOCKET_MODULE_INDICATOR([getsockopt])
350 AC_SUBST([LTLIBINTL])
351 # Autoconf 2.61a.99 and earlier don't support linking a file only
352 # in VPATH builds. But since GNUmakefile is for maintainer use
353 # only, it does not matter if we skip the link with older autoconf.
354 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
355 # builds, so use a shell variable to bypass this.
356 GNUmakefile=GNUmakefile
357 m4_if(m4_version_compare([2.61a.100],
358 m4_defn([m4_PACKAGE_VERSION])), [1], [],
359 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
360 [GNUmakefile=$GNUmakefile])])
363 m4_ifdef([gl_ICONV_MODULE_INDICATOR],
364 [gl_ICONV_MODULE_INDICATOR([iconv])])
367 if test $REPLACE_ICONV_OPEN = 1; then
368 AC_LIBOBJ([iconv_open])
370 if test $REPLACE_ICONV = 1; then
372 AC_LIBOBJ([iconv_close])
374 gl_FUNC_ICONV_OPEN_UTF
376 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
377 AC_LIBOBJ([inet_ntop])
380 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
382 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
383 AC_LIBOBJ([inet_pton])
386 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
389 if test $REPLACE_ISINF = 1; then
392 gl_MATH_MODULE_INDICATOR([isinf])
394 gl_MATH_MODULE_INDICATOR([isnan])
396 m4_ifdef([gl_ISNAN], [
397 AC_REQUIRE([gl_ISNAN])
399 if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
403 gl_MATH_MODULE_INDICATOR([isnand])
404 gl_FUNC_ISNAND_NO_LIBM
405 if test $gl_func_isnand_no_libm != yes; then
410 m4_ifdef([gl_ISNAN], [
411 AC_REQUIRE([gl_ISNAN])
413 if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
417 gl_MATH_MODULE_INDICATOR([isnanf])
419 m4_ifdef([gl_ISNAN], [
420 AC_REQUIRE([gl_ISNAN])
422 if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
426 gl_MATH_MODULE_INDICATOR([isnanl])
432 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
433 if test "$ac_cv_header_winsock2_h" = yes; then
436 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
438 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
439 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
441 gl_COMMON_DOUBLE_MATHFUNC([log1p])
443 if test $REPLACE_LSTAT = 1; then
447 gl_SYS_STAT_MODULE_INDICATOR([lstat])
448 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
449 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
451 if test $REPLACE_MALLOC = 1; then
454 gl_MODULE_INDICATOR([malloc-gnu])
456 if test $REPLACE_MALLOC = 1; then
459 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
463 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
467 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
469 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
473 gl_WCHAR_MODULE_INDICATOR([mbsinit])
475 if test $REPLACE_MBTOWC = 1; then
479 gl_STDLIB_MODULE_INDICATOR([mbtowc])
481 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
485 gl_STRING_MODULE_INDICATOR([memchr])
487 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
488 AC_LIBOBJ([msvc-inval])
491 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
492 AC_LIBOBJ([msvc-nothrow])
499 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
500 AC_LIBOBJ([nl_langinfo])
502 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
505 if test $REPLACE_OPEN = 1; then
509 gl_FCNTL_MODULE_INDICATOR([open])
512 gl_UNISTD_MODULE_INDICATOR([pipe2])
514 if test $REPLACE_PUTENV = 1; then
517 gl_STDLIB_MODULE_INDICATOR([putenv])
519 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
523 gl_SIGNAL_MODULE_INDICATOR([raise])
525 if test $REPLACE_READ = 1; then
529 gl_UNISTD_MODULE_INDICATOR([read])
531 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
532 AC_LIBOBJ([readlink])
535 gl_UNISTD_MODULE_INDICATOR([readlink])
536 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
537 if test "$ac_cv_header_winsock2_h" = yes; then
540 gl_SYS_SOCKET_MODULE_INDICATOR([recv])
541 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
542 if test "$ac_cv_header_winsock2_h" = yes; then
543 AC_LIBOBJ([recvfrom])
545 gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom])
547 if test $ac_use_included_regex = yes; then
552 if test $REPLACE_RENAME = 1; then
555 gl_STDIO_MODULE_INDICATOR([rename])
557 if test $REPLACE_RMDIR = 1; then
560 gl_UNISTD_MODULE_INDICATOR([rmdir])
563 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
564 if test "$ac_cv_header_winsock2_h" = yes; then
567 gl_SYS_SOCKET_MODULE_INDICATOR([send])
568 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
569 if test "$ac_cv_header_winsock2_h" = yes; then
572 gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
575 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
578 gl_STDLIB_MODULE_INDICATOR([setenv])
579 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
580 if test "$ac_cv_header_winsock2_h" = yes; then
581 AC_LIBOBJ([setsockopt])
583 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
584 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
585 if test "$ac_cv_header_winsock2_h" = yes; then
586 AC_LIBOBJ([shutdown])
588 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
592 gl_STDIO_MODULE_INDICATOR([snprintf])
593 gl_MODULE_INDICATOR([snprintf])
594 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
595 if test "$ac_cv_header_winsock2_h" = yes; then
598 # When this module is used, sockets may actually occur as file descriptors,
599 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
600 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
601 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
602 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
603 if test "$ac_cv_header_winsock2_h" = yes; then
604 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
605 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
607 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
613 if test $REPLACE_STAT = 1; then
617 gl_SYS_STAT_MODULE_INDICATOR([stat])
627 if test $HAVE_STRCASECMP = 0; then
628 AC_LIBOBJ([strcasecmp])
631 if test $HAVE_STRNCASECMP = 0; then
632 AC_LIBOBJ([strncasecmp])
633 gl_PREREQ_STRNCASECMP
636 if test $gl_cond_libtool = false; then
637 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
638 gl_libdeps="$gl_libdeps $LIBICONV"
656 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
660 gl_TIME_MODULE_INDICATOR([time_r])
662 if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then
665 gl_MATH_MODULE_INDICATOR([trunc])
667 gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h])
668 gl_MODULE_INDICATOR([unistr/u8-mbtouc])
669 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc])
670 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
671 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc-unsafe])
672 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
673 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
674 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev])
675 gl_MODULE_INDICATOR([unistr/u8-uctomb])
676 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
677 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
680 gl_STDIO_MODULE_INDICATOR([vsnprintf])
681 AC_SUBST([WARN_CFLAGS])
684 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
688 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
691 if test $REPLACE_WRITE = 1; then
695 gl_UNISTD_MODULE_INDICATOR([write])
697 # End of code from modules
698 m4_ifval(gl_LIBSOURCES_LIST, [
699 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
700 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
701 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
702 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
706 m4_if(m4_sysval, [0], [],
707 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
709 m4_popdef([gl_LIBSOURCES_DIR])
710 m4_popdef([gl_LIBSOURCES_LIST])
711 m4_popdef([AC_LIBSOURCES])
712 m4_popdef([AC_REPLACE_FUNCS])
713 m4_popdef([AC_LIBOBJ])
714 AC_CONFIG_COMMANDS_PRE([
717 if test -n "$gl_LIBOBJS"; then
718 # Remove the extension.
719 sed_drop_objext='s/\.o$//;s/\.obj$//'
720 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
721 gl_libobjs="$gl_libobjs $i.$ac_objext"
722 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
725 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
726 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
730 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
731 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
732 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
733 m4_pushdef([gltests_LIBSOURCES_LIST], [])
734 m4_pushdef([gltests_LIBSOURCES_DIR], [])
736 gl_source_base='tests'
738 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
740 AC_SUBST([gltests_WITNESS])
741 gl_module_indicator_condition=$gltests_WITNESS
742 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
743 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
744 m4_ifval(gltests_LIBSOURCES_LIST, [
745 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
746 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
747 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
748 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
752 m4_if(m4_sysval, [0], [],
753 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
755 m4_popdef([gltests_LIBSOURCES_DIR])
756 m4_popdef([gltests_LIBSOURCES_LIST])
757 m4_popdef([AC_LIBSOURCES])
758 m4_popdef([AC_REPLACE_FUNCS])
759 m4_popdef([AC_LIBOBJ])
760 AC_CONFIG_COMMANDS_PRE([
763 if test -n "$gltests_LIBOBJS"; then
764 # Remove the extension.
765 sed_drop_objext='s/\.o$//;s/\.obj$//'
766 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
767 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
768 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
771 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
772 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
776 # Like AC_LIBOBJ, except that the module name goes
777 # into gl_LIBOBJS instead of into LIBOBJS.
778 AC_DEFUN([gl_LIBOBJ], [
779 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
780 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
783 # Like AC_REPLACE_FUNCS, except that the module name goes
784 # into gl_LIBOBJS instead of into LIBOBJS.
785 AC_DEFUN([gl_REPLACE_FUNCS], [
786 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
787 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
790 # Like AC_LIBSOURCES, except the directory where the source file is
791 # expected is derived from the gnulib-tool parameterization,
792 # and alloca is special cased (for the alloca-opt module).
793 # We could also entirely rely on EXTRA_lib..._SOURCES.
794 AC_DEFUN([gl_LIBSOURCES], [
795 m4_foreach([_gl_NAME], [$1], [
796 m4_if(_gl_NAME, [alloca.c], [], [
797 m4_define([gl_LIBSOURCES_DIR], [lib])
798 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
803 # Like AC_LIBOBJ, except that the module name goes
804 # into gltests_LIBOBJS instead of into LIBOBJS.
805 AC_DEFUN([gltests_LIBOBJ], [
806 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
807 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
810 # Like AC_REPLACE_FUNCS, except that the module name goes
811 # into gltests_LIBOBJS instead of into LIBOBJS.
812 AC_DEFUN([gltests_REPLACE_FUNCS], [
813 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
814 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
817 # Like AC_LIBSOURCES, except the directory where the source file is
818 # expected is derived from the gnulib-tool parameterization,
819 # and alloca is special cased (for the alloca-opt module).
820 # We could also entirely rely on EXTRA_lib..._SOURCES.
821 AC_DEFUN([gltests_LIBSOURCES], [
822 m4_foreach([_gl_NAME], [$1], [
823 m4_if(_gl_NAME, [alloca.c], [], [
824 m4_define([gltests_LIBSOURCES_DIR], [tests])
825 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
830 # This macro records the list of files which have been installed by
831 # gnulib-tool and may be removed by future gnulib-tool invocations.
832 AC_DEFUN([gl_FILE_LIST], [
833 build-aux/announce-gen
834 build-aux/config.rpath
836 build-aux/git-version-gen
837 build-aux/gitlog-to-changelog
838 build-aux/gnu-web-doc-update
840 build-aux/snippet/_Noreturn.h
841 build-aux/snippet/arg-nonnull.h
842 build-aux/snippet/c++defs.h
843 build-aux/snippet/unused-parameter.h
844 build-aux/snippet/warn-on-use.h
845 build-aux/useless-if-before-free
846 build-aux/vc-list-files
864 lib/canonicalize-lgpl.c
899 lib/iconv_open-aix.gperf
900 lib/iconv_open-hpux.gperf
901 lib/iconv_open-irix.gperf
902 lib/iconv_open-osf.gperf
903 lib/iconv_open-solaris.gperf
916 lib/libunistring.valgrind
1010 lib/unistr/u8-mbtouc-aux.c
1011 lib/unistr/u8-mbtouc-unsafe-aux.c
1012 lib/unistr/u8-mbtouc-unsafe.c
1013 lib/unistr/u8-mbtouc.c
1014 lib/unistr/u8-mbtoucr.c
1015 lib/unistr/u8-prev.c
1016 lib/unistr/u8-uctomb-aux.c
1017 lib/unistr/u8-uctomb.c
1030 m4/absolute-header.m4
1038 m4/check-math-lib.m4
1045 m4/double-slash-root.m4
1069 m4/iconv_open-utf.m4
1084 m4/ld-version-script.m4
1089 m4/libunistring-base.m4