1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2013 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 clock-time:
60 # Code from module close:
61 # Code from module configmake:
62 # Code from module connect:
63 # Code from module dirent:
64 # Code from module dirfd:
65 # Code from module dirname-lgpl:
66 # Code from module dosname:
67 # Code from module double-slash-root:
68 # Code from module duplocale:
69 # Code from module environ:
70 # Code from module errno:
71 # Code from module extensions:
72 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
73 # Code from module extern-inline:
74 # Code from module fcntl-h:
75 # Code from module fd-hook:
76 # Code from module float:
77 # Code from module flock:
78 # Code from module floor:
79 # Code from module fpieee:
80 AC_REQUIRE([gl_FP_IEEE])
81 # Code from module frexp:
82 # Code from module fstat:
83 # Code from module full-read:
84 # Code from module full-write:
85 # Code from module func:
86 # Code from module gendocs:
87 # Code from module getaddrinfo:
88 # Code from module getpeername:
89 # Code from module getsockname:
90 # Code from module getsockopt:
91 # Code from module gettext-h:
92 # Code from module git-version-gen:
93 # Code from module gitlog-to-changelog:
94 # Code from module gnu-web-doc-update:
95 # Code from module gnumakefile:
96 # Code from module gnupload:
97 # Code from module gperf:
98 # Code from module havelib:
99 # Code from module hostent:
100 # Code from module iconv:
101 # Code from module iconv-h:
102 # Code from module iconv_open:
103 # Code from module iconv_open-utf:
104 # Code from module include_next:
105 # Code from module inet_ntop:
106 # Code from module inet_pton:
107 # Code from module inline:
108 # Code from module isinf:
109 # Code from module isnan:
110 # Code from module isnand:
111 # Code from module isnand-nolibm:
112 # Code from module isnanf:
113 # Code from module isnanl:
114 # Code from module langinfo:
115 # Code from module largefile:
116 AC_REQUIRE([AC_SYS_LARGEFILE])
117 # Code from module ldexp:
118 # Code from module lib-symbol-versions:
119 # Code from module lib-symbol-visibility:
120 # Code from module libunistring:
121 # Code from module listen:
122 # Code from module localcharset:
123 # Code from module locale:
124 # Code from module localeconv:
125 # Code from module log:
126 # Code from module log1p:
127 # Code from module lstat:
128 # Code from module maintainer-makefile:
129 # Code from module malloc-gnu:
130 # Code from module malloc-posix:
131 # Code from module malloca:
132 # Code from module math:
133 # Code from module mbrtowc:
134 # Code from module mbsinit:
135 # Code from module mbtowc:
136 # Code from module memchr:
137 # Code from module msvc-inval:
138 # Code from module msvc-nothrow:
139 # Code from module multiarch:
140 # Code from module netdb:
141 # Code from module netinet_in:
142 # Code from module nl_langinfo:
143 # Code from module nocrash:
144 # Code from module nproc:
145 # Code from module open:
146 # Code from module pathmax:
147 # Code from module pipe2:
148 # Code from module putenv:
149 # Code from module raise:
150 # Code from module read:
151 # Code from module readlink:
152 # Code from module recv:
153 # Code from module recvfrom:
154 # Code from module regex:
155 # Code from module rename:
156 # Code from module rmdir:
157 # Code from module round:
158 # Code from module safe-read:
159 # Code from module safe-write:
160 # Code from module same-inode:
161 # Code from module send:
162 # Code from module sendto:
163 # Code from module servent:
164 # Code from module setenv:
165 # Code from module setsockopt:
166 # Code from module shutdown:
167 # Code from module signal-h:
168 # Code from module size_max:
169 # Code from module snippet/_Noreturn:
170 # Code from module snippet/arg-nonnull:
171 # Code from module snippet/c++defs:
172 # Code from module snippet/unused-parameter:
173 # Code from module snippet/warn-on-use:
174 # Code from module snprintf:
175 # Code from module socket:
176 # Code from module socketlib:
177 # Code from module sockets:
178 # Code from module socklen:
179 # Code from module ssize_t:
180 # Code from module stat:
181 # Code from module stat-time:
182 # Code from module stdalign:
183 # Code from module stdbool:
184 # Code from module stddef:
185 # Code from module stdint:
186 # Code from module stdio:
187 # Code from module stdlib:
188 # Code from module streq:
189 # Code from module strftime:
190 # Code from module striconveh:
191 # Code from module string:
192 # Code from module sys_file:
193 # Code from module sys_socket:
194 # Code from module sys_stat:
195 # Code from module sys_time:
196 # Code from module sys_types:
197 # Code from module sys_uio:
198 # Code from module time:
199 # Code from module time_r:
200 # Code from module trunc:
201 # Code from module unistd:
202 # Code from module unistr/base:
203 # Code from module unistr/u8-mbtouc:
204 # Code from module unistr/u8-mbtouc-unsafe:
205 # Code from module unistr/u8-mbtoucr:
206 # Code from module unistr/u8-prev:
207 # Code from module unistr/u8-uctomb:
208 # Code from module unitypes:
209 # Code from module useless-if-before-free:
210 # Code from module vasnprintf:
211 # Code from module vc-list-files:
212 # Code from module verify:
213 # Code from module vsnprintf:
214 # Code from module warnings:
215 # Code from module wchar:
216 # Code from module wcrtomb:
217 # Code from module wctype-h:
218 # Code from module write:
219 # Code from module xsize:
222 # This macro should be invoked from ./configure.ac, in the section
223 # "Check for header files, types and library functions".
226 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
229 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
230 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
231 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
232 m4_pushdef([gl_LIBSOURCES_LIST], [])
233 m4_pushdef([gl_LIBSOURCES_DIR], [])
236 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
237 if test "$ac_cv_header_winsock2_h" = yes; then
240 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
244 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
245 if test "$ac_cv_header_winsock2_h" = yes; then
248 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
250 if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
254 gl_WCHAR_MODULE_INDICATOR([btowc])
257 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
258 AC_LIBOBJ([canonicalize-lgpl])
260 gl_MODULE_INDICATOR([canonicalize-lgpl])
261 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
262 gl_STDLIB_MODULE_INDICATOR([realpath])
264 if test $REPLACE_CEIL = 1; then
267 gl_MATH_MODULE_INDICATOR([ceil])
268 gl_UNISTD_MODULE_INDICATOR([chdir])
271 if test $REPLACE_CLOSE = 1; then
274 gl_UNISTD_MODULE_INDICATOR([close])
276 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
277 if test "$ac_cv_header_winsock2_h" = yes; then
280 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
283 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
287 gl_DIRENT_MODULE_INDICATOR([dirfd])
291 if test $REPLACE_DUPLOCALE = 1; then
292 AC_LIBOBJ([duplocale])
295 gl_LOCALE_MODULE_INDICATOR([duplocale])
297 gl_UNISTD_MODULE_INDICATOR([environ])
299 AC_REQUIRE([gl_EXTERN_INLINE])
302 if test $REPLACE_FLOAT_LDBL = 1; then
305 if test $REPLACE_ITOLD = 1; then
309 if test $HAVE_FLOCK = 0; then
313 gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock])
315 if test $REPLACE_FLOOR = 1; then
318 gl_MATH_MODULE_INDICATOR([floor])
320 if test $gl_func_frexp != yes; then
323 gl_MATH_MODULE_INDICATOR([frexp])
325 if test $REPLACE_FSTAT = 1; then
329 gl_SYS_STAT_MODULE_INDICATOR([fstat])
332 if test $HAVE_GETADDRINFO = 0; then
333 AC_LIBOBJ([getaddrinfo])
335 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
336 AC_LIBOBJ([gai_strerror])
338 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
339 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
340 if test "$ac_cv_header_winsock2_h" = yes; then
341 AC_LIBOBJ([getpeername])
343 gl_SYS_SOCKET_MODULE_INDICATOR([getpeername])
344 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
345 if test "$ac_cv_header_winsock2_h" = yes; then
346 AC_LIBOBJ([getsockname])
348 gl_SYS_SOCKET_MODULE_INDICATOR([getsockname])
349 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
350 if test "$ac_cv_header_winsock2_h" = yes; then
351 AC_LIBOBJ([getsockopt])
353 gl_SYS_SOCKET_MODULE_INDICATOR([getsockopt])
355 AC_SUBST([LTLIBINTL])
356 # Autoconf 2.61a.99 and earlier don't support linking a file only
357 # in VPATH builds. But since GNUmakefile is for maintainer use
358 # only, it does not matter if we skip the link with older autoconf.
359 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
360 # builds, so use a shell variable to bypass this.
361 GNUmakefile=GNUmakefile
362 m4_if(m4_version_compare([2.61a.100],
363 m4_defn([m4_PACKAGE_VERSION])), [1], [],
364 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
365 [GNUmakefile=$GNUmakefile])])
368 m4_ifdef([gl_ICONV_MODULE_INDICATOR],
369 [gl_ICONV_MODULE_INDICATOR([iconv])])
372 if test $REPLACE_ICONV_OPEN = 1; then
373 AC_LIBOBJ([iconv_open])
375 if test $REPLACE_ICONV = 1; then
377 AC_LIBOBJ([iconv_close])
379 gl_FUNC_ICONV_OPEN_UTF
381 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
382 AC_LIBOBJ([inet_ntop])
385 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
387 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
388 AC_LIBOBJ([inet_pton])
391 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
394 if test $REPLACE_ISINF = 1; then
397 gl_MATH_MODULE_INDICATOR([isinf])
399 gl_MATH_MODULE_INDICATOR([isnan])
401 m4_ifdef([gl_ISNAN], [
402 AC_REQUIRE([gl_ISNAN])
404 if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
408 gl_MATH_MODULE_INDICATOR([isnand])
409 gl_FUNC_ISNAND_NO_LIBM
410 if test $gl_func_isnand_no_libm != yes; then
415 m4_ifdef([gl_ISNAN], [
416 AC_REQUIRE([gl_ISNAN])
418 if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
422 gl_MATH_MODULE_INDICATOR([isnanf])
424 m4_ifdef([gl_ISNAN], [
425 AC_REQUIRE([gl_ISNAN])
427 if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
431 gl_MATH_MODULE_INDICATOR([isnanl])
433 AC_REQUIRE([gl_LARGEFILE])
438 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
439 if test "$ac_cv_header_winsock2_h" = yes; then
442 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
444 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
445 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
448 if test $REPLACE_LOCALECONV = 1; then
449 AC_LIBOBJ([localeconv])
452 gl_LOCALE_MODULE_INDICATOR([localeconv])
453 AC_REQUIRE([gl_FUNC_LOG])
454 if test $REPLACE_LOG = 1; then
457 gl_MATH_MODULE_INDICATOR([log])
459 if test $HAVE_LOG1P = 0 || test $REPLACE_LOG1P = 1; then
462 gl_MATH_MODULE_INDICATOR([log1p])
464 if test $REPLACE_LSTAT = 1; then
468 gl_SYS_STAT_MODULE_INDICATOR([lstat])
469 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
470 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
472 if test $REPLACE_MALLOC = 1; then
475 gl_MODULE_INDICATOR([malloc-gnu])
477 if test $REPLACE_MALLOC = 1; then
480 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
484 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
488 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
490 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
494 gl_WCHAR_MODULE_INDICATOR([mbsinit])
496 if test $REPLACE_MBTOWC = 1; then
500 gl_STDLIB_MODULE_INDICATOR([mbtowc])
502 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
506 gl_STRING_MODULE_INDICATOR([memchr])
508 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
509 AC_LIBOBJ([msvc-inval])
512 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
513 AC_LIBOBJ([msvc-nothrow])
520 if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
521 AC_LIBOBJ([nl_langinfo])
523 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
526 if test $REPLACE_OPEN = 1; then
530 gl_FCNTL_MODULE_INDICATOR([open])
533 gl_UNISTD_MODULE_INDICATOR([pipe2])
535 if test $REPLACE_PUTENV = 1; then
539 gl_STDLIB_MODULE_INDICATOR([putenv])
541 if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
545 gl_SIGNAL_MODULE_INDICATOR([raise])
547 if test $REPLACE_READ = 1; then
551 gl_UNISTD_MODULE_INDICATOR([read])
553 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
554 AC_LIBOBJ([readlink])
557 gl_UNISTD_MODULE_INDICATOR([readlink])
558 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
559 if test "$ac_cv_header_winsock2_h" = yes; then
562 gl_SYS_SOCKET_MODULE_INDICATOR([recv])
563 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
564 if test "$ac_cv_header_winsock2_h" = yes; then
565 AC_LIBOBJ([recvfrom])
567 gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom])
569 if test $ac_use_included_regex = yes; then
574 if test $REPLACE_RENAME = 1; then
577 gl_STDIO_MODULE_INDICATOR([rename])
579 if test $REPLACE_RMDIR = 1; then
582 gl_UNISTD_MODULE_INDICATOR([rmdir])
584 if test $HAVE_ROUND = 0 || test $REPLACE_ROUND = 1; then
587 gl_MATH_MODULE_INDICATOR([round])
590 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
591 if test "$ac_cv_header_winsock2_h" = yes; then
594 gl_SYS_SOCKET_MODULE_INDICATOR([send])
595 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
596 if test "$ac_cv_header_winsock2_h" = yes; then
599 gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
602 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
605 gl_STDLIB_MODULE_INDICATOR([setenv])
606 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
607 if test "$ac_cv_header_winsock2_h" = yes; then
608 AC_LIBOBJ([setsockopt])
610 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
611 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
612 if test "$ac_cv_header_winsock2_h" = yes; then
613 AC_LIBOBJ([shutdown])
615 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
619 gl_STDIO_MODULE_INDICATOR([snprintf])
620 gl_MODULE_INDICATOR([snprintf])
621 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
622 if test "$ac_cv_header_winsock2_h" = yes; then
625 # When this module is used, sockets may actually occur as file descriptors,
626 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
627 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
628 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
629 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
630 if test "$ac_cv_header_winsock2_h" = yes; then
631 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
632 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
634 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
640 if test $REPLACE_STAT = 1; then
644 gl_SYS_STAT_MODULE_INDICATOR([stat])
654 if test $gl_cond_libtool = false; then
655 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
656 gl_libdeps="$gl_libdeps $LIBICONV"
673 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
677 gl_TIME_MODULE_INDICATOR([time_r])
679 if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then
682 gl_MATH_MODULE_INDICATOR([trunc])
684 gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h])
685 gl_MODULE_INDICATOR([unistr/u8-mbtouc])
686 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc])
687 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
688 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc-unsafe])
689 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
690 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
691 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev])
692 gl_MODULE_INDICATOR([unistr/u8-uctomb])
693 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
694 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
697 gl_STDIO_MODULE_INDICATOR([vsnprintf])
700 if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
704 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
707 if test $REPLACE_WRITE = 1; then
711 gl_UNISTD_MODULE_INDICATOR([write])
713 # End of code from modules
714 m4_ifval(gl_LIBSOURCES_LIST, [
715 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
716 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
717 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
718 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
722 m4_if(m4_sysval, [0], [],
723 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
725 m4_popdef([gl_LIBSOURCES_DIR])
726 m4_popdef([gl_LIBSOURCES_LIST])
727 m4_popdef([AC_LIBSOURCES])
728 m4_popdef([AC_REPLACE_FUNCS])
729 m4_popdef([AC_LIBOBJ])
730 AC_CONFIG_COMMANDS_PRE([
733 if test -n "$gl_LIBOBJS"; then
734 # Remove the extension.
735 sed_drop_objext='s/\.o$//;s/\.obj$//'
736 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
737 gl_libobjs="$gl_libobjs $i.$ac_objext"
738 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
741 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
742 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
746 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
747 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
748 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
749 m4_pushdef([gltests_LIBSOURCES_LIST], [])
750 m4_pushdef([gltests_LIBSOURCES_DIR], [])
752 gl_source_base='tests'
754 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
756 AC_SUBST([gltests_WITNESS])
757 gl_module_indicator_condition=$gltests_WITNESS
758 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
759 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
760 m4_ifval(gltests_LIBSOURCES_LIST, [
761 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
762 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
763 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
764 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
768 m4_if(m4_sysval, [0], [],
769 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
771 m4_popdef([gltests_LIBSOURCES_DIR])
772 m4_popdef([gltests_LIBSOURCES_LIST])
773 m4_popdef([AC_LIBSOURCES])
774 m4_popdef([AC_REPLACE_FUNCS])
775 m4_popdef([AC_LIBOBJ])
776 AC_CONFIG_COMMANDS_PRE([
779 if test -n "$gltests_LIBOBJS"; then
780 # Remove the extension.
781 sed_drop_objext='s/\.o$//;s/\.obj$//'
782 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
783 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
784 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
787 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
788 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
792 # Like AC_LIBOBJ, except that the module name goes
793 # into gl_LIBOBJS instead of into LIBOBJS.
794 AC_DEFUN([gl_LIBOBJ], [
795 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
796 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
799 # Like AC_REPLACE_FUNCS, except that the module name goes
800 # into gl_LIBOBJS instead of into LIBOBJS.
801 AC_DEFUN([gl_REPLACE_FUNCS], [
802 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
803 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
806 # Like AC_LIBSOURCES, except the directory where the source file is
807 # expected is derived from the gnulib-tool parameterization,
808 # and alloca is special cased (for the alloca-opt module).
809 # We could also entirely rely on EXTRA_lib..._SOURCES.
810 AC_DEFUN([gl_LIBSOURCES], [
811 m4_foreach([_gl_NAME], [$1], [
812 m4_if(_gl_NAME, [alloca.c], [], [
813 m4_define([gl_LIBSOURCES_DIR], [lib])
814 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
819 # Like AC_LIBOBJ, except that the module name goes
820 # into gltests_LIBOBJS instead of into LIBOBJS.
821 AC_DEFUN([gltests_LIBOBJ], [
822 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
823 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
826 # Like AC_REPLACE_FUNCS, except that the module name goes
827 # into gltests_LIBOBJS instead of into LIBOBJS.
828 AC_DEFUN([gltests_REPLACE_FUNCS], [
829 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
830 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
833 # Like AC_LIBSOURCES, except the directory where the source file is
834 # expected is derived from the gnulib-tool parameterization,
835 # and alloca is special cased (for the alloca-opt module).
836 # We could also entirely rely on EXTRA_lib..._SOURCES.
837 AC_DEFUN([gltests_LIBSOURCES], [
838 m4_foreach([_gl_NAME], [$1], [
839 m4_if(_gl_NAME, [alloca.c], [], [
840 m4_define([gltests_LIBSOURCES_DIR], [tests])
841 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
846 # This macro records the list of files which have been installed by
847 # gnulib-tool and may be removed by future gnulib-tool invocations.
848 AC_DEFUN([gl_FILE_LIST], [
849 build-aux/announce-gen
850 build-aux/config.rpath
852 build-aux/git-version-gen
853 build-aux/gitlog-to-changelog
854 build-aux/gnu-web-doc-update
856 build-aux/snippet/_Noreturn.h
857 build-aux/snippet/arg-nonnull.h
858 build-aux/snippet/c++defs.h
859 build-aux/snippet/unused-parameter.h
860 build-aux/snippet/warn-on-use.h
861 build-aux/useless-if-before-free
862 build-aux/vc-list-files
881 lib/canonicalize-lgpl.c
916 lib/iconv_open-aix.gperf
917 lib/iconv_open-hpux.gperf
918 lib/iconv_open-irix.gperf
919 lib/iconv_open-osf.gperf
920 lib/iconv_open-solaris.gperf
933 lib/libunistring.valgrind
1032 lib/unistr/u8-mbtouc-aux.c
1033 lib/unistr/u8-mbtouc-unsafe-aux.c
1034 lib/unistr/u8-mbtouc-unsafe.c
1035 lib/unistr/u8-mbtouc.c
1036 lib/unistr/u8-mbtoucr.c
1037 lib/unistr/u8-prev.c
1038 lib/unistr/u8-uctomb-aux.c
1039 lib/unistr/u8-uctomb.c
1054 m4/absolute-header.m4
1062 m4/check-math-lib.m4
1070 m4/double-slash-root.m4
1095 m4/iconv_open-utf.m4
1110 m4/ld-version-script.m4
1115 m4/libunistring-base.m4