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 accept-tests:
44 # Code from module alloca:
45 # Code from module alloca-opt:
46 # Code from module alloca-opt-tests:
47 # Code from module arpa_inet:
48 # Code from module arpa_inet-tests:
49 # Code from module autobuild:
51 # Code from module binary-io:
52 # Code from module binary-io-tests:
53 # Code from module bind:
54 # Code from module bind-tests:
55 # Code from module c-ctype:
56 # Code from module c-ctype-tests:
57 # Code from module clock-time:
58 # Code from module close:
59 # Code from module close-tests:
60 # Code from module connect:
61 # Code from module connect-tests:
62 # Code from module dosname:
63 # Code from module dup2:
64 # Code from module dup2-tests:
65 # Code from module errno:
66 # Code from module errno-tests:
67 # Code from module error:
68 # Code from module extensions:
69 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
70 # Code from module fcntl-h:
71 # Code from module fcntl-h-tests:
72 # Code from module fd-hook:
73 # Code from module fdl-1.3:
74 # Code from module fdopen:
75 # Code from module fdopen-tests:
76 # Code from module fgetc-tests:
77 # Code from module float:
78 # Code from module float-tests:
79 # Code from module fpieee:
80 AC_REQUIRE([gl_FP_IEEE])
81 # Code from module fpucw:
82 # Code from module fputc-tests:
83 # Code from module fread-tests:
84 # Code from module fseek:
85 # Code from module fseek-tests:
86 # Code from module fseeko:
87 AC_REQUIRE([AC_FUNC_FSEEKO])
88 # Code from module fseeko-tests:
89 # Code from module fstat:
90 # Code from module fstat-tests:
91 # Code from module ftell:
92 # Code from module ftell-tests:
93 # Code from module ftello:
94 AC_REQUIRE([AC_FUNC_FSEEKO])
95 # Code from module ftello-tests:
96 # Code from module ftruncate:
97 # Code from module ftruncate-tests:
98 # Code from module fwrite-tests:
99 # Code from module gendocs:
100 # Code from module getaddrinfo:
101 # Code from module getaddrinfo-tests:
102 # Code from module getcwd-lgpl:
103 # Code from module getcwd-lgpl-tests:
104 # Code from module getdelim:
105 # Code from module getdelim-tests:
106 # Code from module getline:
107 # Code from module getline-tests:
108 # Code from module getpagesize:
109 # Code from module getpass-gnu:
110 # Code from module gettext-h:
111 # Code from module gettime:
112 # Code from module gettimeofday:
113 # Code from module gettimeofday-tests:
114 # Code from module gnumakefile:
115 # Code from module gnupload:
116 # Code from module gpl-3.0:
117 # Code from module havelib:
118 # Code from module hostent:
119 # Code from module ignore-value:
120 # Code from module ignore-value-tests:
121 # Code from module include_next:
122 # Code from module inet_ntop:
123 # Code from module inet_ntop-tests:
124 # Code from module inet_pton:
125 # Code from module inet_pton-tests:
126 # Code from module intprops:
127 # Code from module intprops-tests:
128 # Code from module inttypes:
129 # Code from module inttypes-incomplete:
130 # Code from module inttypes-tests:
131 # Code from module ioctl:
132 # Code from module ioctl-tests:
133 # Code from module largefile:
134 AC_REQUIRE([AC_SYS_LARGEFILE])
135 # Code from module lgpl-2.1:
136 # Code from module listen:
137 # Code from module listen-tests:
138 # Code from module lock:
139 # Code from module lock-tests:
140 # Code from module lseek:
141 # Code from module lseek-tests:
142 # Code from module lstat:
143 # Code from module lstat-tests:
144 # Code from module maintainer-makefile:
145 # Code from module malloc-posix:
146 # Code from module manywarnings:
147 # Code from module memchr:
148 # Code from module memchr-tests:
149 # Code from module minmax:
150 # Code from module msvc-inval:
151 # Code from module msvc-nothrow:
152 # Code from module multiarch:
153 # Code from module netdb:
154 # Code from module netdb-tests:
155 # Code from module netinet_in:
156 # Code from module netinet_in-tests:
157 # Code from module open:
158 # Code from module open-tests:
159 # Code from module pathmax:
160 # Code from module pathmax-tests:
161 # Code from module perror:
162 # Code from module perror-tests:
163 # Code from module pipe-posix:
164 # Code from module pipe-posix-tests:
165 # Code from module pmccabe2html:
166 # Code from module progname:
167 # Code from module read-file:
168 # Code from module read-file-tests:
169 # Code from module readline:
170 # Code from module realloc-posix:
171 # Code from module recv:
172 # Code from module recv-tests:
173 # Code from module same-inode:
174 # Code from module select:
175 # Code from module select-tests:
176 # Code from module send:
177 # Code from module send-tests:
178 # Code from module servent:
179 # Code from module setsockopt:
180 # Code from module setsockopt-tests:
181 # Code from module shutdown:
182 # Code from module shutdown-tests:
183 # Code from module signal-h:
184 # Code from module signal-h-tests:
185 # Code from module size_max:
186 # Code from module snippet/_Noreturn:
187 # Code from module snippet/arg-nonnull:
188 # Code from module snippet/c++defs:
189 # Code from module snippet/warn-on-use:
190 # Code from module snprintf:
191 # Code from module snprintf-tests:
192 # Code from module socket:
193 # Code from module socketlib:
194 # Code from module sockets:
195 # Code from module sockets-tests:
196 # Code from module socklen:
197 # Code from module ssize_t:
198 # Code from module stat:
199 # Code from module stat-tests:
200 # Code from module stdalign:
201 # Code from module stdalign-tests:
202 # Code from module stdarg:
203 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
204 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
205 dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
206 dnl shouldn't hurt, though installers are on their own to set c99 mode.
208 # Code from module stdbool:
209 # Code from module stdbool-tests:
210 # Code from module stddef:
211 # Code from module stddef-tests:
212 # Code from module stdint:
213 # Code from module stdint-tests:
214 # Code from module stdio:
215 # Code from module stdio-tests:
216 # Code from module stdlib:
217 # Code from module stdlib-tests:
218 # Code from module strerror:
219 # Code from module strerror-override:
220 # Code from module strerror-tests:
221 # Code from module strerror_r-posix:
222 # Code from module strerror_r-posix-tests:
223 # Code from module string:
224 # Code from module string-tests:
225 # Code from module symlink:
226 # Code from module symlink-tests:
227 # Code from module sys_ioctl:
228 # Code from module sys_ioctl-tests:
229 # Code from module sys_select:
230 # Code from module sys_select-tests:
231 # Code from module sys_socket:
232 # Code from module sys_socket-tests:
233 # Code from module sys_stat:
234 # Code from module sys_stat-tests:
235 # Code from module sys_time:
236 # Code from module sys_time-tests:
237 # Code from module sys_types:
238 # Code from module sys_types-tests:
239 # Code from module sys_uio:
240 # Code from module sys_uio-tests:
241 # Code from module test-framework-sh:
242 # Code from module test-framework-sh-tests:
243 # Code from module thread:
244 # Code from module thread-tests:
245 # Code from module threadlib:
247 # Code from module time:
248 # Code from module time-tests:
249 # Code from module timespec:
250 # Code from module unistd:
251 # Code from module unistd-tests:
252 # Code from module update-copyright:
253 # Code from module update-copyright-tests:
254 # Code from module useless-if-before-free:
255 # Code from module valgrind-tests:
256 # Code from module vasnprintf:
257 # Code from module vasnprintf-tests:
258 # Code from module vc-list-files:
259 # Code from module vc-list-files-tests:
260 # Code from module verify:
261 # Code from module verify-tests:
262 # Code from module version-etc:
263 # Code from module version-etc-fsf:
264 # Code from module version-etc-tests:
265 # Code from module warnings:
266 # Code from module wchar:
267 # Code from module wchar-tests:
268 # Code from module xsize:
269 # Code from module yield:
272 # This macro should be invoked from ./configure.ac, in the section
273 # "Check for header files, types and library functions".
276 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
279 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
280 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
281 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
282 m4_pushdef([gl_LIBSOURCES_LIST], [])
283 m4_pushdef([gl_LIBSOURCES_DIR], [])
286 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
287 if test "$ac_cv_header_winsock2_h" = yes; then
290 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
292 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
298 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
299 if test "$ac_cv_header_winsock2_h" = yes; then
302 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
305 if test $REPLACE_CLOSE = 1; then
308 gl_UNISTD_MODULE_INDICATOR([close])
309 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
310 if test "$ac_cv_header_winsock2_h" = yes; then
313 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
316 if test $ac_cv_lib_error_at_line = no; then
320 m4_ifdef([AM_XGETTEXT_OPTION],
321 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
322 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
324 if test $REPLACE_FLOAT_LDBL = 1; then
327 if test $REPLACE_ITOLD = 1; then
331 if test $REPLACE_FSEEK = 1; then
334 gl_STDIO_MODULE_INDICATOR([fseek])
336 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
339 gl_STDIO_MODULE_INDICATOR([fseeko])
341 if test $REPLACE_FSTAT = 1; then
345 gl_SYS_STAT_MODULE_INDICATOR([fstat])
347 if test $REPLACE_FTELL = 1; then
350 gl_STDIO_MODULE_INDICATOR([ftell])
352 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
355 gl_STDIO_MODULE_INDICATOR([ftello])
357 if test $HAVE_GETADDRINFO = 0; then
358 AC_LIBOBJ([getaddrinfo])
360 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
361 AC_LIBOBJ([gai_strerror])
363 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
365 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
366 AC_LIBOBJ([getdelim])
369 gl_STDIO_MODULE_INDICATOR([getdelim])
371 if test $REPLACE_GETLINE = 1; then
375 gl_STDIO_MODULE_INDICATOR([getline])
377 if test $REPLACE_GETPASS = 1; then
382 AC_SUBST([LTLIBINTL])
385 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
386 AC_LIBOBJ([gettimeofday])
387 gl_PREREQ_GETTIMEOFDAY
389 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
390 # Autoconf 2.61a.99 and earlier don't support linking a file only
391 # in VPATH builds. But since GNUmakefile is for maintainer use
392 # only, it does not matter if we skip the link with older autoconf.
393 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
394 # builds, so use a shell variable to bypass this.
395 GNUmakefile=GNUmakefile
396 m4_if(m4_version_compare([2.61a.100],
397 m4_defn([m4_PACKAGE_VERSION])), [1], [],
398 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
399 [GNUmakefile=$GNUmakefile])])
402 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
403 AC_LIBOBJ([inet_ntop])
406 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
408 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
409 AC_LIBOBJ([inet_pton])
412 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
413 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
414 if test "$ac_cv_header_winsock2_h" = yes; then
417 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
420 if test $REPLACE_LSEEK = 1; then
423 gl_UNISTD_MODULE_INDICATOR([lseek])
424 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
425 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
427 if test $REPLACE_MALLOC = 1; then
430 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
432 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
436 gl_STRING_MODULE_INDICATOR([memchr])
439 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
440 AC_LIBOBJ([msvc-inval])
443 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
444 AC_LIBOBJ([msvc-nothrow])
451 if test $REPLACE_PERROR = 1; then
454 gl_STRING_MODULE_INDICATOR([perror])
455 AC_PATH_PROG([PMCCABE], [pmccabe], [false])
456 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
457 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
460 if test "$gl_cv_lib_readline" = no; then
461 AC_LIBOBJ([readline])
464 gl_FUNC_REALLOC_POSIX
465 if test $REPLACE_REALLOC = 1; then
468 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
469 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
470 if test "$ac_cv_header_winsock2_h" = yes; then
473 gl_SYS_SOCKET_MODULE_INDICATOR([recv])
475 if test $REPLACE_SELECT = 1; then
478 gl_SYS_SELECT_MODULE_INDICATOR([select])
479 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
480 if test "$ac_cv_header_winsock2_h" = yes; then
483 gl_SYS_SOCKET_MODULE_INDICATOR([send])
485 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
486 if test "$ac_cv_header_winsock2_h" = yes; then
487 AC_LIBOBJ([setsockopt])
489 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
490 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
491 if test "$ac_cv_header_winsock2_h" = yes; then
492 AC_LIBOBJ([shutdown])
494 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
498 gl_STDIO_MODULE_INDICATOR([snprintf])
499 gl_MODULE_INDICATOR([snprintf])
500 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
501 if test "$ac_cv_header_winsock2_h" = yes; then
504 # When this module is used, sockets may actually occur as file descriptors,
505 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
506 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
507 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
508 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
509 if test "$ac_cv_header_winsock2_h" = yes; then
510 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
511 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
513 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
526 if test $REPLACE_STRERROR = 1; then
527 AC_LIBOBJ([strerror])
529 gl_MODULE_INDICATOR([strerror])
530 gl_STRING_MODULE_INDICATOR([strerror])
531 AC_REQUIRE([gl_HEADER_ERRNO_H])
532 AC_REQUIRE([gl_FUNC_STRERROR_0])
533 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
534 AC_LIBOBJ([strerror-override])
535 gl_PREREQ_SYS_H_WINSOCK2
538 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
539 AC_LIBOBJ([strerror_r])
542 gl_STRING_MODULE_INDICATOR([strerror_r])
563 AC_SUBST([WARN_CFLAGS])
566 # End of code from modules
567 m4_ifval(gl_LIBSOURCES_LIST, [
568 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
569 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
570 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
571 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
575 m4_if(m4_sysval, [0], [],
576 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
578 m4_popdef([gl_LIBSOURCES_DIR])
579 m4_popdef([gl_LIBSOURCES_LIST])
580 m4_popdef([AC_LIBSOURCES])
581 m4_popdef([AC_REPLACE_FUNCS])
582 m4_popdef([AC_LIBOBJ])
583 AC_CONFIG_COMMANDS_PRE([
586 if test -n "$gl_LIBOBJS"; then
587 # Remove the extension.
588 sed_drop_objext='s/\.o$//;s/\.obj$//'
589 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
590 gl_libobjs="$gl_libobjs $i.$ac_objext"
591 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
594 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
595 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
599 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
600 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
601 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
602 m4_pushdef([gltests_LIBSOURCES_LIST], [])
603 m4_pushdef([gltests_LIBSOURCES_DIR], [])
605 gl_source_base='gl/tests'
607 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
609 AC_SUBST([gltests_WITNESS])
610 gl_module_indicator_condition=$gltests_WITNESS
611 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
613 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
617 gl_UNISTD_MODULE_INDICATOR([dup2])
620 if test $REPLACE_FDOPEN = 1; then
624 gl_STDIO_MODULE_INDICATOR([fdopen])
630 if test $HAVE_FTRUNCATE = 0; then
631 AC_LIBOBJ([ftruncate])
634 gl_UNISTD_MODULE_INDICATOR([ftruncate])
636 if test $REPLACE_GETCWD = 1; then
637 AC_LIBOBJ([getcwd-lgpl])
639 gl_UNISTD_MODULE_INDICATOR([getcwd])
641 if test $REPLACE_GETPAGESIZE = 1; then
642 AC_LIBOBJ([getpagesize])
644 gl_UNISTD_MODULE_INDICATOR([getpagesize])
645 AC_REQUIRE([AC_C_INLINE])
649 gl_INTTYPES_INCOMPLETE
651 if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
654 gl_SYS_IOCTL_MODULE_INDICATOR([ioctl])
656 if test $REPLACE_LSTAT = 1; then
660 gl_SYS_STAT_MODULE_INDICATOR([lstat])
661 dnl Check for prerequisites for memory fence checks.
663 AC_CHECK_HEADERS_ONCE([sys/mman.h])
664 AC_CHECK_FUNCS_ONCE([mprotect])
666 if test $REPLACE_OPEN = 1; then
670 gl_FCNTL_MODULE_INDICATOR([open])
673 if test $HAVE_PIPE = 0; then
676 gl_UNISTD_MODULE_INDICATOR([pipe])
677 AC_CHECK_HEADERS_ONCE([sys/wait.h])
679 if test $REPLACE_STAT = 1; then
683 gl_SYS_STAT_MODULE_INDICATOR([stat])
687 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
690 gl_UNISTD_MODULE_INDICATOR([symlink])
693 AC_CHECK_FUNCS_ONCE([shutdown])
695 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
696 AC_SUBST([abs_aux_dir])
698 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
699 AC_SUBST([abs_aux_dir])
701 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
702 m4_ifval(gltests_LIBSOURCES_LIST, [
703 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
704 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
705 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
706 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
710 m4_if(m4_sysval, [0], [],
711 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
713 m4_popdef([gltests_LIBSOURCES_DIR])
714 m4_popdef([gltests_LIBSOURCES_LIST])
715 m4_popdef([AC_LIBSOURCES])
716 m4_popdef([AC_REPLACE_FUNCS])
717 m4_popdef([AC_LIBOBJ])
718 AC_CONFIG_COMMANDS_PRE([
721 if test -n "$gltests_LIBOBJS"; then
722 # Remove the extension.
723 sed_drop_objext='s/\.o$//;s/\.obj$//'
724 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
725 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
726 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
729 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
730 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
732 LIBTESTS_LIBDEPS="$gltests_libdeps"
733 AC_SUBST([LIBTESTS_LIBDEPS])
736 # Like AC_LIBOBJ, except that the module name goes
737 # into gl_LIBOBJS instead of into LIBOBJS.
738 AC_DEFUN([gl_LIBOBJ], [
739 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
740 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
743 # Like AC_REPLACE_FUNCS, except that the module name goes
744 # into gl_LIBOBJS instead of into LIBOBJS.
745 AC_DEFUN([gl_REPLACE_FUNCS], [
746 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
747 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
750 # Like AC_LIBSOURCES, except the directory where the source file is
751 # expected is derived from the gnulib-tool parameterization,
752 # and alloca is special cased (for the alloca-opt module).
753 # We could also entirely rely on EXTRA_lib..._SOURCES.
754 AC_DEFUN([gl_LIBSOURCES], [
755 m4_foreach([_gl_NAME], [$1], [
756 m4_if(_gl_NAME, [alloca.c], [], [
757 m4_define([gl_LIBSOURCES_DIR], [gl])
758 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
763 # Like AC_LIBOBJ, except that the module name goes
764 # into gltests_LIBOBJS instead of into LIBOBJS.
765 AC_DEFUN([gltests_LIBOBJ], [
766 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
767 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
770 # Like AC_REPLACE_FUNCS, except that the module name goes
771 # into gltests_LIBOBJS instead of into LIBOBJS.
772 AC_DEFUN([gltests_REPLACE_FUNCS], [
773 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
774 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
777 # Like AC_LIBSOURCES, except the directory where the source file is
778 # expected is derived from the gnulib-tool parameterization,
779 # and alloca is special cased (for the alloca-opt module).
780 # We could also entirely rely on EXTRA_lib..._SOURCES.
781 AC_DEFUN([gltests_LIBSOURCES], [
782 m4_foreach([_gl_NAME], [$1], [
783 m4_if(_gl_NAME, [alloca.c], [], [
784 m4_define([gltests_LIBSOURCES_DIR], [gl/tests])
785 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
790 # This macro records the list of files which have been installed by
791 # gnulib-tool and may be removed by future gnulib-tool invocations.
792 AC_DEFUN([gl_FILE_LIST], [
793 build-aux/config.rpath
796 build-aux/pmccabe.css
797 build-aux/pmccabe2html
798 build-aux/snippet/_Noreturn.h
799 build-aux/snippet/arg-nonnull.h
800 build-aux/snippet/c++defs.h
801 build-aux/snippet/warn-on-use.h
802 build-aux/update-copyright
803 build-aux/useless-if-before-free
804 build-aux/vc-list-files
843 lib/glthread/threadlib.c
891 lib/strerror-override.c
892 lib/strerror-override.h
908 lib/version-etc-fsf.c
1018 m4/valgrind-tests.m4
1032 tests/test-alloca-opt.c
1033 tests/test-arpa_inet.c
1034 tests/test-binary-io.c
1035 tests/test-binary-io.sh
1037 tests/test-c-ctype.c
1039 tests/test-connect.c
1042 tests/test-fcntl-h.c
1050 tests/test-fseek2.sh
1052 tests/test-fseeko.sh
1053 tests/test-fseeko2.sh
1054 tests/test-fseeko3.c
1055 tests/test-fseeko3.sh
1056 tests/test-fseeko4.c
1057 tests/test-fseeko4.sh
1061 tests/test-ftell2.sh
1064 tests/test-ftello.sh
1065 tests/test-ftello2.sh
1066 tests/test-ftello3.c
1067 tests/test-ftello4.c
1068 tests/test-ftello4.sh
1069 tests/test-ftruncate.c
1070 tests/test-ftruncate.sh
1072 tests/test-getaddrinfo.c
1073 tests/test-getcwd-lgpl.c
1074 tests/test-getdelim.c
1075 tests/test-getline.c
1076 tests/test-gettimeofday.c
1077 tests/test-ignore-value.c
1078 tests/test-inet_ntop.c
1079 tests/test-inet_pton.c
1081 tests/test-intprops.c
1082 tests/test-inttypes.c
1092 tests/test-netinet_in.c
1095 tests/test-pathmax.c
1097 tests/test-perror.sh
1098 tests/test-perror2.c
1100 tests/test-read-file.c
1102 tests/test-select-fd.c
1103 tests/test-select-in.sh
1104 tests/test-select-out.sh
1105 tests/test-select-stdin.c
1109 tests/test-setsockopt.c
1110 tests/test-shutdown.c
1111 tests/test-signal-h.c
1112 tests/test-snprintf.c
1113 tests/test-sockets.c
1116 tests/test-stdalign.c
1117 tests/test-stdbool.c
1122 tests/test-strerror.c
1123 tests/test-strerror_r.c
1125 tests/test-symlink.c
1126 tests/test-symlink.h
1127 tests/test-sys_ioctl.c
1128 tests/test-sys_select.c
1129 tests/test-sys_socket.c
1130 tests/test-sys_stat.c
1131 tests/test-sys_time.c
1132 tests/test-sys_types.c
1133 tests/test-sys_uio.c
1134 tests/test-sys_wait.h
1135 tests/test-thread_create.c
1136 tests/test-thread_self.c
1139 tests/test-update-copyright.sh
1140 tests/test-vasnprintf.c
1141 tests/test-vc-list-files-cvs.sh
1142 tests/test-vc-list-files-git.sh
1144 tests/test-verify.sh
1145 tests/test-version-etc.c
1146 tests/test-version-etc.sh
1148 tests/zerosize-ptr.h
1149 tests=lib/binary-io.h
1152 tests=lib/fcntl.in.h
1155 tests=lib/ftruncate.c
1156 tests=lib/getcwd-lgpl.c
1157 tests=lib/getpagesize.c
1158 tests=lib/glthread/thread.c
1159 tests=lib/glthread/thread.h
1160 tests=lib/glthread/yield.h
1161 tests=lib/ignore-value.h
1162 tests=lib/inttypes.in.h
1168 tests=lib/same-inode.h
1171 tests=lib/sys_ioctl.in.h