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 alphasort:
48 # Code from module argp:
49 # Code from module argp-tests:
50 # Code from module arpa_inet:
51 # Code from module arpa_inet-tests:
52 # Code from module base64:
53 # Code from module base64-tests:
54 # Code from module binary-io:
55 # Code from module binary-io-tests:
56 # Code from module bind:
57 # Code from module bind-tests:
58 # Code from module byteswap:
59 # Code from module byteswap-tests:
60 # Code from module c-ctype:
61 # Code from module c-ctype-tests:
62 # Code from module clock-time:
63 # Code from module close:
64 # Code from module close-tests:
65 # Code from module closedir:
66 # Code from module connect:
67 # Code from module connect-tests:
68 # Code from module dirent:
69 # Code from module dirent-tests:
70 # Code from module dirname-lgpl:
71 # Code from module dosname:
72 # Code from module double-slash-root:
73 # Code from module dup2:
74 # Code from module dup2-tests:
75 # Code from module environ:
76 # Code from module environ-tests:
77 # Code from module errno:
78 # Code from module errno-tests:
79 # Code from module error:
80 # Code from module extensions:
81 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
82 # Code from module fcntl-h:
83 # Code from module fcntl-h-tests:
84 # Code from module fd-hook:
85 # Code from module fdopen:
86 # Code from module fdopen-tests:
87 # Code from module fgetc-tests:
88 # Code from module filename:
89 # Code from module float:
90 # Code from module float-tests:
91 # Code from module fpieee:
92 AC_REQUIRE([gl_FP_IEEE])
93 # Code from module fpucw:
94 # Code from module fputc-tests:
95 # Code from module fread-tests:
96 # Code from module frexp-nolibm:
97 # Code from module frexp-nolibm-tests:
98 # Code from module frexpl-nolibm:
99 # Code from module frexpl-nolibm-tests:
100 # Code from module fseek:
101 # Code from module fseek-tests:
102 # Code from module fseeko:
103 AC_REQUIRE([AC_FUNC_FSEEKO])
104 # Code from module fseeko-tests:
105 # Code from module fseterr:
106 # Code from module fseterr-tests:
107 # Code from module fstat:
108 # Code from module fstat-tests:
109 # Code from module ftell:
110 # Code from module ftell-tests:
111 # Code from module ftello:
112 AC_REQUIRE([AC_FUNC_FSEEKO])
113 # Code from module ftello-tests:
114 # Code from module ftruncate:
115 # Code from module ftruncate-tests:
116 # Code from module func:
117 # Code from module func-tests:
118 # Code from module fwrite-tests:
119 # Code from module gendocs:
120 # Code from module getaddrinfo:
121 # Code from module getaddrinfo-tests:
122 # Code from module getcwd-lgpl:
123 # Code from module getcwd-lgpl-tests:
124 # Code from module getdelim:
125 # Code from module getdelim-tests:
126 # Code from module getline:
127 # Code from module getline-tests:
128 # Code from module getopt-gnu:
129 # Code from module getopt-posix:
130 # Code from module getopt-posix-tests:
131 # Code from module getpagesize:
132 # Code from module getpass:
133 # Code from module getpeername:
134 # Code from module getpeername-tests:
135 # Code from module getsubopt:
136 # Code from module gettext:
137 # Code from module gettext-h:
138 # Code from module gettime:
139 # Code from module gettimeofday:
140 # Code from module gettimeofday-tests:
141 # Code from module gnumakefile:
142 # Code from module havelib:
143 # Code from module hostent:
144 # Code from module ignore-value:
145 # Code from module ignore-value-tests:
146 # Code from module include_next:
147 # Code from module inet_ntop:
148 # Code from module inet_ntop-tests:
149 # Code from module inet_pton:
150 # Code from module inet_pton-tests:
151 # Code from module intprops:
152 # Code from module intprops-tests:
153 # Code from module inttypes:
154 # Code from module inttypes-incomplete:
155 # Code from module inttypes-tests:
156 # Code from module ioctl:
157 # Code from module ioctl-tests:
158 # Code from module isnand-nolibm:
159 # Code from module isnand-nolibm-tests:
160 # Code from module isnanf-nolibm:
161 # Code from module isnanf-nolibm-tests:
162 # Code from module isnanl-nolibm:
163 # Code from module isnanl-nolibm-tests:
164 # Code from module largefile:
165 AC_REQUIRE([AC_SYS_LARGEFILE])
166 # Code from module lib-msvc-compat:
167 # Code from module lib-symbol-versions:
168 # Code from module listen:
169 # Code from module listen-tests:
170 # Code from module lock:
171 # Code from module lseek:
172 # Code from module lstat:
173 # Code from module lstat-tests:
174 # Code from module maintainer-makefile:
175 # Code from module malloc-gnu:
176 # Code from module malloc-gnu-tests:
177 # Code from module malloc-posix:
178 # Code from module malloca:
179 # Code from module malloca-tests:
180 # Code from module manywarnings:
181 # Code from module math:
182 # Code from module math-tests:
183 # Code from module memchr:
184 # Code from module memchr-tests:
185 # Code from module memmem-simple:
186 # Code from module mempcpy:
187 # Code from module minmax:
188 # Code from module msvc-inval:
189 # Code from module msvc-nothrow:
190 # Code from module multiarch:
191 # Code from module netdb:
192 # Code from module netdb-tests:
193 # Code from module netinet_in:
194 # Code from module netinet_in-tests:
195 # Code from module nocrash:
196 # Code from module open:
197 # Code from module open-tests:
198 # Code from module opendir:
199 # Code from module pathmax:
200 # Code from module pathmax-tests:
201 # Code from module perror:
202 # Code from module perror-tests:
203 # Code from module pipe-posix:
204 # Code from module pipe-posix-tests:
205 # Code from module pmccabe2html:
206 # Code from module printf-frexp:
207 # Code from module printf-frexp-tests:
208 # Code from module printf-frexpl:
209 # Code from module printf-frexpl-tests:
210 # Code from module printf-safe:
211 # Code from module progname:
212 # Code from module putenv:
213 # Code from module rawmemchr:
214 # Code from module rawmemchr-tests:
215 # Code from module read-file:
216 # Code from module read-file-tests:
217 # Code from module readdir:
218 # Code from module realloc-posix:
219 # Code from module recv:
220 # Code from module recv-tests:
221 # Code from module recvfrom:
222 # Code from module recvfrom-tests:
223 # Code from module same-inode:
224 # Code from module scandir:
225 # Code from module select:
226 # Code from module select-tests:
227 # Code from module send:
228 # Code from module send-tests:
229 # Code from module sendto:
230 # Code from module sendto-tests:
231 # Code from module servent:
232 # Code from module setenv:
233 # Code from module setenv-tests:
234 # Code from module setsockopt:
235 # Code from module setsockopt-tests:
236 # Code from module shutdown:
237 # Code from module shutdown-tests:
238 # Code from module signal-h:
239 # Code from module signal-h-tests:
240 # Code from module signbit:
241 # Code from module signbit-tests:
242 # Code from module size_max:
243 # Code from module sleep:
244 # Code from module sleep-tests:
245 # Code from module snippet/_Noreturn:
246 # Code from module snippet/arg-nonnull:
247 # Code from module snippet/c++defs:
248 # Code from module snippet/warn-on-use:
249 # Code from module snprintf:
250 # Code from module snprintf-tests:
251 # Code from module socket:
252 # Code from module socketlib:
253 # Code from module sockets:
254 # Code from module sockets-tests:
255 # Code from module socklen:
256 # Code from module ssize_t:
257 # Code from module stat:
258 # Code from module stat-tests:
259 # Code from module stdalign:
260 # Code from module stdalign-tests:
261 # Code from module stdarg:
262 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
263 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
264 dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
265 dnl shouldn't hurt, though installers are on their own to set c99 mode.
267 # Code from module stdbool:
268 # Code from module stdbool-tests:
269 # Code from module stddef:
270 # Code from module stddef-tests:
271 # Code from module stdint:
272 # Code from module stdint-tests:
273 # Code from module stdio:
274 # Code from module stdio-tests:
275 # Code from module stdlib:
276 # Code from module stdlib-tests:
277 # Code from module strcase:
278 # Code from module strchrnul:
279 # Code from module strchrnul-tests:
280 # Code from module strdup-posix:
281 # Code from module strerror:
282 # Code from module strerror-override:
283 # Code from module strerror-tests:
284 # Code from module strerror_r-posix:
285 # Code from module strerror_r-posix-tests:
286 # Code from module string:
287 # Code from module string-tests:
288 # Code from module strings:
289 # Code from module strings-tests:
290 # Code from module strndup:
291 # Code from module strnlen:
292 # Code from module strnlen-tests:
293 # Code from module strtok_r:
294 # Code from module strverscmp:
295 # Code from module strverscmp-tests:
296 # Code from module symlink:
297 # Code from module symlink-tests:
298 # Code from module sys_ioctl:
299 # Code from module sys_ioctl-tests:
300 # Code from module sys_select:
301 # Code from module sys_select-tests:
302 # Code from module sys_socket:
303 # Code from module sys_socket-tests:
304 # Code from module sys_stat:
305 # Code from module sys_stat-tests:
306 # Code from module sys_time:
307 # Code from module sys_time-tests:
308 # Code from module sys_types:
309 # Code from module sys_types-tests:
310 # Code from module sys_uio:
311 # Code from module sys_uio-tests:
312 # Code from module sysexits:
313 # Code from module sysexits-tests:
314 # Code from module test-framework-sh:
315 # Code from module test-framework-sh-tests:
316 # Code from module threadlib:
318 # Code from module time:
319 # Code from module time-tests:
320 # Code from module time_r:
321 # Code from module timer-time:
322 # Code from module timespec:
323 # Code from module u64:
324 # Code from module u64-tests:
325 # Code from module unistd:
326 # Code from module unistd-tests:
327 # Code from module unsetenv:
328 # Code from module unsetenv-tests:
329 # Code from module useless-if-before-free:
330 # Code from module valgrind-tests:
331 # Code from module vasnprintf:
332 # Code from module vasnprintf-tests:
333 # Code from module vasprintf:
334 # Code from module vasprintf-tests:
335 # Code from module vc-list-files:
336 # Code from module vc-list-files-tests:
337 # Code from module verify:
338 # Code from module verify-tests:
339 # Code from module version-etc:
340 # Code from module version-etc-fsf:
341 # Code from module version-etc-tests:
342 # Code from module vfprintf-posix:
343 # Code from module vfprintf-posix-tests:
344 # Code from module vprintf-posix:
345 # Code from module vprintf-posix-tests:
346 # Code from module vsnprintf:
347 # Code from module vsnprintf-tests:
348 # Code from module warnings:
349 # Code from module wchar:
350 # Code from module wchar-tests:
351 # Code from module xsize:
354 # This macro should be invoked from ./configure.ac, in the section
355 # "Check for header files, types and library functions".
358 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
361 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
362 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
363 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
364 m4_pushdef([gl_LIBSOURCES_LIST], [])
365 m4_pushdef([gl_LIBSOURCES_DIR], [])
368 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
369 if test "$ac_cv_header_winsock2_h" = yes; then
372 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
374 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
379 if test $HAVE_ALPHASORT = 0; then
380 AC_LIBOBJ([alphasort])
383 gl_DIRENT_MODULE_INDICATOR([alphasort])
385 m4_ifdef([AM_XGETTEXT_OPTION],
386 [AM_][XGETTEXT_OPTION([--flag=argp_error:2:c-format])
387 AM_][XGETTEXT_OPTION([--flag=argp_failure:4:c-format])])
391 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
392 if test "$ac_cv_header_winsock2_h" = yes; then
395 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
399 if test $REPLACE_CLOSE = 1; then
402 gl_UNISTD_MODULE_INDICATOR([close])
404 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
405 AC_LIBOBJ([closedir])
407 gl_DIRENT_MODULE_INDICATOR([closedir])
408 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
409 if test "$ac_cv_header_winsock2_h" = yes; then
412 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
418 if test $ac_cv_lib_error_at_line = no; then
422 m4_ifdef([AM_XGETTEXT_OPTION],
423 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
424 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
426 if test $REPLACE_FLOAT_LDBL = 1; then
429 if test $REPLACE_ITOLD = 1; then
432 gl_FUNC_FREXP_NO_LIBM
433 if test $gl_func_frexp_no_libm != yes; then
436 gl_MATH_MODULE_INDICATOR([frexp])
437 gl_FUNC_FREXPL_NO_LIBM
438 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
441 gl_MATH_MODULE_INDICATOR([frexpl])
443 if test $REPLACE_FSEEK = 1; then
446 gl_STDIO_MODULE_INDICATOR([fseek])
448 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
451 gl_STDIO_MODULE_INDICATOR([fseeko])
453 if test $REPLACE_FSTAT = 1; then
457 gl_SYS_STAT_MODULE_INDICATOR([fstat])
459 if test $REPLACE_FTELL = 1; then
462 gl_STDIO_MODULE_INDICATOR([ftell])
464 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
467 gl_STDIO_MODULE_INDICATOR([ftello])
470 if test $HAVE_GETADDRINFO = 0; then
471 AC_LIBOBJ([getaddrinfo])
473 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
474 AC_LIBOBJ([gai_strerror])
476 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
478 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
479 AC_LIBOBJ([getdelim])
482 gl_STDIO_MODULE_INDICATOR([getdelim])
484 if test $REPLACE_GETLINE = 1; then
488 gl_STDIO_MODULE_INDICATOR([getline])
490 if test $REPLACE_GETOPT = 1; then
494 dnl Arrange for unistd.h to include getopt.h.
495 GNULIB_GL_UNISTD_H_GETOPT=1
497 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
498 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
500 if test $REPLACE_GETOPT = 1; then
504 dnl Arrange for unistd.h to include getopt.h.
505 GNULIB_GL_UNISTD_H_GETOPT=1
507 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
509 if test $HAVE_GETPASS = 0; then
513 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
514 if test "$ac_cv_header_winsock2_h" = yes; then
515 AC_LIBOBJ([getpeername])
517 gl_SYS_SOCKET_MODULE_INDICATOR([getpeername])
519 if test $HAVE_GETSUBOPT = 0; then
520 AC_LIBOBJ([getsubopt])
523 gl_STDLIB_MODULE_INDICATOR([getsubopt])
524 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
525 AM_GNU_GETTEXT_VERSION([0.18.1])
527 AC_SUBST([LTLIBINTL])
530 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
531 AC_LIBOBJ([gettimeofday])
532 gl_PREREQ_GETTIMEOFDAY
534 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
535 # Autoconf 2.61a.99 and earlier don't support linking a file only
536 # in VPATH builds. But since GNUmakefile is for maintainer use
537 # only, it does not matter if we skip the link with older autoconf.
538 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
539 # builds, so use a shell variable to bypass this.
540 GNUmakefile=GNUmakefile
541 m4_if(m4_version_compare([2.61a.100],
542 m4_defn([m4_PACKAGE_VERSION])), [1], [],
543 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
544 [GNUmakefile=$GNUmakefile])])
547 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
548 AC_LIBOBJ([inet_ntop])
551 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
553 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
554 AC_LIBOBJ([inet_pton])
557 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
558 gl_FUNC_ISNAND_NO_LIBM
559 if test $gl_func_isnand_no_libm != yes; then
563 gl_FUNC_ISNANF_NO_LIBM
564 if test $gl_func_isnanf_no_libm != yes; then
568 gl_FUNC_ISNANL_NO_LIBM
569 if test $gl_func_isnanl_no_libm != yes; then
575 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
576 if test "$ac_cv_header_winsock2_h" = yes; then
579 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
581 if test $REPLACE_LSEEK = 1; then
584 gl_UNISTD_MODULE_INDICATOR([lseek])
585 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
586 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
588 if test $REPLACE_MALLOC = 1; then
591 gl_MODULE_INDICATOR([malloc-gnu])
593 if test $REPLACE_MALLOC = 1; then
596 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
599 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
603 gl_STRING_MODULE_INDICATOR([memchr])
604 gl_FUNC_MEMMEM_SIMPLE
605 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
608 gl_STRING_MODULE_INDICATOR([memmem])
610 if test $HAVE_MEMPCPY = 0; then
614 gl_STRING_MODULE_INDICATOR([mempcpy])
617 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
618 AC_LIBOBJ([msvc-inval])
621 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
622 AC_LIBOBJ([msvc-nothrow])
629 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
632 gl_DIRENT_MODULE_INDICATOR([opendir])
633 AC_PATH_PROG([PMCCABE], [pmccabe], [false])
635 gl_FUNC_PRINTF_FREXPL
636 m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
637 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
638 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
640 if test $HAVE_RAWMEMCHR = 0; then
641 AC_LIBOBJ([rawmemchr])
644 gl_STRING_MODULE_INDICATOR([rawmemchr])
647 if test $HAVE_READDIR = 0; then
650 gl_DIRENT_MODULE_INDICATOR([readdir])
651 gl_FUNC_REALLOC_POSIX
652 if test $REPLACE_REALLOC = 1; then
655 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
656 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
657 if test "$ac_cv_header_winsock2_h" = yes; then
660 gl_SYS_SOCKET_MODULE_INDICATOR([recv])
661 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
662 if test "$ac_cv_header_winsock2_h" = yes; then
663 AC_LIBOBJ([recvfrom])
665 gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom])
667 if test $HAVE_SCANDIR = 0; then
671 gl_DIRENT_MODULE_INDICATOR([scandir])
673 if test $REPLACE_SELECT = 1; then
676 gl_SYS_SELECT_MODULE_INDICATOR([select])
677 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
678 if test "$ac_cv_header_winsock2_h" = yes; then
681 gl_SYS_SOCKET_MODULE_INDICATOR([send])
682 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
683 if test "$ac_cv_header_winsock2_h" = yes; then
686 gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
688 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
689 if test "$ac_cv_header_winsock2_h" = yes; then
690 AC_LIBOBJ([setsockopt])
692 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
693 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
694 if test "$ac_cv_header_winsock2_h" = yes; then
695 AC_LIBOBJ([shutdown])
697 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
700 if test $REPLACE_SIGNBIT = 1; then
701 AC_LIBOBJ([signbitf])
702 AC_LIBOBJ([signbitd])
703 AC_LIBOBJ([signbitl])
705 gl_MATH_MODULE_INDICATOR([signbit])
708 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
711 gl_UNISTD_MODULE_INDICATOR([sleep])
713 gl_STDIO_MODULE_INDICATOR([snprintf])
714 gl_MODULE_INDICATOR([snprintf])
715 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
716 if test "$ac_cv_header_winsock2_h" = yes; then
719 # When this module is used, sockets may actually occur as file descriptors,
720 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
721 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
722 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
723 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
724 if test "$ac_cv_header_winsock2_h" = yes; then
725 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
726 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
728 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
741 if test $HAVE_STRCASECMP = 0; then
742 AC_LIBOBJ([strcasecmp])
745 if test $HAVE_STRNCASECMP = 0; then
746 AC_LIBOBJ([strncasecmp])
747 gl_PREREQ_STRNCASECMP
750 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
751 AC_LIBOBJ([strchrnul])
754 gl_STRING_MODULE_INDICATOR([strchrnul])
756 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
760 gl_STRING_MODULE_INDICATOR([strdup])
762 if test $REPLACE_STRERROR = 1; then
763 AC_LIBOBJ([strerror])
765 gl_MODULE_INDICATOR([strerror])
766 gl_STRING_MODULE_INDICATOR([strerror])
767 AC_REQUIRE([gl_HEADER_ERRNO_H])
768 AC_REQUIRE([gl_FUNC_STRERROR_0])
769 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
770 AC_LIBOBJ([strerror-override])
771 gl_PREREQ_SYS_H_WINSOCK2
776 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
779 gl_STRING_MODULE_INDICATOR([strndup])
781 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
785 gl_STRING_MODULE_INDICATOR([strnlen])
787 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
788 AC_LIBOBJ([strtok_r])
791 gl_STRING_MODULE_INDICATOR([strtok_r])
793 if test $HAVE_STRVERSCMP = 0; then
794 AC_LIBOBJ([strverscmp])
797 gl_STRING_MODULE_INDICATOR([strverscmp])
814 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
818 gl_TIME_MODULE_INDICATOR([time_r])
821 AC_REQUIRE([AC_C_INLINE])
826 gl_STDIO_MODULE_INDICATOR([vasprintf])
827 m4_ifdef([AM_XGETTEXT_OPTION],
828 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
829 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
831 gl_FUNC_VFPRINTF_POSIX
832 gl_STDIO_MODULE_INDICATOR([vfprintf-posix])
833 gl_FUNC_VPRINTF_POSIX
834 gl_STDIO_MODULE_INDICATOR([vprintf-posix])
836 gl_STDIO_MODULE_INDICATOR([vsnprintf])
837 AC_SUBST([WARN_CFLAGS])
840 # End of code from modules
841 m4_ifval(gl_LIBSOURCES_LIST, [
842 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
843 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
844 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
845 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
849 m4_if(m4_sysval, [0], [],
850 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
852 m4_popdef([gl_LIBSOURCES_DIR])
853 m4_popdef([gl_LIBSOURCES_LIST])
854 m4_popdef([AC_LIBSOURCES])
855 m4_popdef([AC_REPLACE_FUNCS])
856 m4_popdef([AC_LIBOBJ])
857 AC_CONFIG_COMMANDS_PRE([
860 if test -n "$gl_LIBOBJS"; then
861 # Remove the extension.
862 sed_drop_objext='s/\.o$//;s/\.obj$//'
863 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
864 gl_libobjs="$gl_libobjs $i.$ac_objext"
865 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
868 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
869 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
873 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
874 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
875 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
876 m4_pushdef([gltests_LIBSOURCES_LIST], [])
877 m4_pushdef([gltests_LIBSOURCES_DIR], [])
879 gl_source_base='gl/tests'
881 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
883 AC_SUBST([gltests_WITNESS])
884 gl_module_indicator_condition=$gltests_WITNESS
885 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
887 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
891 gl_UNISTD_MODULE_INDICATOR([dup2])
893 gl_UNISTD_MODULE_INDICATOR([environ])
896 if test $REPLACE_FDOPEN = 1; then
900 gl_STDIO_MODULE_INDICATOR([fdopen])
906 if test $HAVE_FTRUNCATE = 0; then
907 AC_LIBOBJ([ftruncate])
910 gl_UNISTD_MODULE_INDICATOR([ftruncate])
912 if test $REPLACE_GETCWD = 1; then
913 AC_LIBOBJ([getcwd-lgpl])
915 gl_UNISTD_MODULE_INDICATOR([getcwd])
917 if test $REPLACE_GETPAGESIZE = 1; then
918 AC_LIBOBJ([getpagesize])
920 gl_UNISTD_MODULE_INDICATOR([getpagesize])
921 AC_REQUIRE([AC_C_INLINE])
925 gl_INTTYPES_INCOMPLETE
927 if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
930 gl_SYS_IOCTL_MODULE_INDICATOR([ioctl])
931 gl_DOUBLE_EXPONENT_LOCATION
932 gl_FLOAT_EXPONENT_LOCATION
933 gl_LONG_DOUBLE_EXPONENT_LOCATION
934 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
937 if test $REPLACE_LSTAT = 1; then
941 gl_SYS_STAT_MODULE_INDICATOR([lstat])
943 dnl Check for prerequisites for memory fence checks.
945 AC_CHECK_HEADERS_ONCE([sys/mman.h])
946 AC_CHECK_FUNCS_ONCE([mprotect])
948 if test $REPLACE_OPEN = 1; then
952 gl_FCNTL_MODULE_INDICATOR([open])
955 if test $REPLACE_PERROR = 1; then
958 gl_STRING_MODULE_INDICATOR([perror])
960 if test $HAVE_PIPE = 0; then
963 gl_UNISTD_MODULE_INDICATOR([pipe])
965 if test $REPLACE_PUTENV = 1; then
968 gl_STDLIB_MODULE_INDICATOR([putenv])
969 dnl Check for prerequisites for memory fence checks.
971 AC_CHECK_HEADERS_ONCE([sys/mman.h])
972 AC_CHECK_FUNCS_ONCE([mprotect])
973 AC_CHECK_HEADERS_ONCE([sys/wait.h])
975 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
978 gl_STDLIB_MODULE_INDICATOR([setenv])
979 AC_REQUIRE([gl_FLOAT_EXPONENT_LOCATION])
980 AC_REQUIRE([gl_DOUBLE_EXPONENT_LOCATION])
981 AC_REQUIRE([gl_LONG_DOUBLE_EXPONENT_LOCATION])
982 AC_CHECK_DECLS_ONCE([alarm])
984 if test $REPLACE_STAT = 1; then
988 gl_SYS_STAT_MODULE_INDICATOR([stat])
992 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
993 AC_LIBOBJ([strerror_r])
996 gl_STRING_MODULE_INDICATOR([strerror_r])
997 dnl Check for prerequisites for memory fence checks.
999 AC_CHECK_HEADERS_ONCE([sys/mman.h])
1000 AC_CHECK_FUNCS_ONCE([mprotect])
1002 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
1003 AC_LIBOBJ([symlink])
1005 gl_UNISTD_MODULE_INDICATOR([symlink])
1008 AC_CHECK_FUNCS_ONCE([shutdown])
1010 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
1011 AC_LIBOBJ([unsetenv])
1014 gl_STDLIB_MODULE_INDICATOR([unsetenv])
1016 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
1017 AC_SUBST([abs_aux_dir])
1018 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
1019 m4_ifval(gltests_LIBSOURCES_LIST, [
1020 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
1021 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
1022 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
1023 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
1027 m4_if(m4_sysval, [0], [],
1028 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1030 m4_popdef([gltests_LIBSOURCES_DIR])
1031 m4_popdef([gltests_LIBSOURCES_LIST])
1032 m4_popdef([AC_LIBSOURCES])
1033 m4_popdef([AC_REPLACE_FUNCS])
1034 m4_popdef([AC_LIBOBJ])
1035 AC_CONFIG_COMMANDS_PRE([
1038 if test -n "$gltests_LIBOBJS"; then
1039 # Remove the extension.
1040 sed_drop_objext='s/\.o$//;s/\.obj$//'
1041 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1042 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
1043 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
1046 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
1047 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
1049 LIBTESTS_LIBDEPS="$gltests_libdeps"
1050 AC_SUBST([LIBTESTS_LIBDEPS])
1053 # Like AC_LIBOBJ, except that the module name goes
1054 # into gl_LIBOBJS instead of into LIBOBJS.
1055 AC_DEFUN([gl_LIBOBJ], [
1056 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
1057 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
1060 # Like AC_REPLACE_FUNCS, except that the module name goes
1061 # into gl_LIBOBJS instead of into LIBOBJS.
1062 AC_DEFUN([gl_REPLACE_FUNCS], [
1063 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1064 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
1067 # Like AC_LIBSOURCES, except the directory where the source file is
1068 # expected is derived from the gnulib-tool parameterization,
1069 # and alloca is special cased (for the alloca-opt module).
1070 # We could also entirely rely on EXTRA_lib..._SOURCES.
1071 AC_DEFUN([gl_LIBSOURCES], [
1072 m4_foreach([_gl_NAME], [$1], [
1073 m4_if(_gl_NAME, [alloca.c], [], [
1074 m4_define([gl_LIBSOURCES_DIR], [gl])
1075 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
1080 # Like AC_LIBOBJ, except that the module name goes
1081 # into gltests_LIBOBJS instead of into LIBOBJS.
1082 AC_DEFUN([gltests_LIBOBJ], [
1083 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
1084 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
1087 # Like AC_REPLACE_FUNCS, except that the module name goes
1088 # into gltests_LIBOBJS instead of into LIBOBJS.
1089 AC_DEFUN([gltests_REPLACE_FUNCS], [
1090 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1091 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
1094 # Like AC_LIBSOURCES, except the directory where the source file is
1095 # expected is derived from the gnulib-tool parameterization,
1096 # and alloca is special cased (for the alloca-opt module).
1097 # We could also entirely rely on EXTRA_lib..._SOURCES.
1098 AC_DEFUN([gltests_LIBSOURCES], [
1099 m4_foreach([_gl_NAME], [$1], [
1100 m4_if(_gl_NAME, [alloca.c], [], [
1101 m4_define([gltests_LIBSOURCES_DIR], [gl/tests])
1102 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
1107 # This macro records the list of files which have been installed by
1108 # gnulib-tool and may be removed by future gnulib-tool invocations.
1109 AC_DEFUN([gl_FILE_LIST], [
1110 build-aux/config.rpath
1111 build-aux/gendocs.sh
1112 build-aux/pmccabe.css
1113 build-aux/pmccabe2html
1114 build-aux/snippet/_Noreturn.h
1115 build-aux/snippet/arg-nonnull.h
1116 build-aux/snippet/c++defs.h
1117 build-aux/snippet/warn-on-use.h
1118 build-aux/useless-if-before-free
1119 build-aux/vc-list-files
1120 doc/gendocs_template
1127 lib/argp-fmtstream.c
1128 lib/argp-fmtstream.h
1151 lib/dirent-private.h
1190 lib/glthread/threadlib.c
1229 lib/rawmemchr.valgrind
1263 lib/strchrnul.valgrind
1265 lib/strerror-override.c
1266 lib/strerror-override.h
1292 lib/version-etc-fsf.c
1314 m4/double-slash-root.m4
1373 m4/ld-version-script.m4
1466 m4/valgrind-tests.m4
1470 m4/vfprintf-posix.m4
1489 tests/test-alloca-opt.c
1490 tests/test-argp-2.sh
1492 tests/test-arpa_inet.c
1494 tests/test-binary-io.c
1495 tests/test-binary-io.sh
1497 tests/test-byteswap.c
1498 tests/test-c-ctype.c
1500 tests/test-connect.c
1503 tests/test-environ.c
1505 tests/test-fcntl-h.c
1509 tests/test-fprintf-posix.h
1517 tests/test-fseek2.sh
1519 tests/test-fseeko.sh
1520 tests/test-fseeko2.sh
1521 tests/test-fseeko3.c
1522 tests/test-fseeko3.sh
1523 tests/test-fseeko4.c
1524 tests/test-fseeko4.sh
1525 tests/test-fseterr.c
1529 tests/test-ftell2.sh
1532 tests/test-ftello.sh
1533 tests/test-ftello2.sh
1534 tests/test-ftello3.c
1535 tests/test-ftello4.c
1536 tests/test-ftello4.sh
1537 tests/test-ftruncate.c
1538 tests/test-ftruncate.sh
1541 tests/test-getaddrinfo.c
1542 tests/test-getcwd-lgpl.c
1543 tests/test-getdelim.c
1544 tests/test-getline.c
1547 tests/test-getopt_long.h
1548 tests/test-getpeername.c
1549 tests/test-gettimeofday.c
1550 tests/test-ignore-value.c
1551 tests/test-inet_ntop.c
1552 tests/test-inet_pton.c
1554 tests/test-intprops.c
1555 tests/test-inttypes.c
1557 tests/test-isnand-nolibm.c
1559 tests/test-isnanf-nolibm.c
1561 tests/test-isnanl-nolibm.c
1566 tests/test-malloc-gnu.c
1567 tests/test-malloca.c
1571 tests/test-netinet_in.c
1574 tests/test-pathmax.c
1576 tests/test-perror.sh
1577 tests/test-perror2.c
1579 tests/test-printf-frexp.c
1580 tests/test-printf-frexpl.c
1581 tests/test-printf-posix.h
1582 tests/test-printf-posix.output
1583 tests/test-rawmemchr.c
1584 tests/test-read-file.c
1586 tests/test-recvfrom.c
1587 tests/test-select-fd.c
1588 tests/test-select-in.sh
1589 tests/test-select-out.sh
1590 tests/test-select-stdin.c
1596 tests/test-setsockopt.c
1597 tests/test-shutdown.c
1598 tests/test-signal-h.c
1599 tests/test-signbit.c
1601 tests/test-snprintf.c
1602 tests/test-sockets.c
1605 tests/test-stdalign.c
1606 tests/test-stdbool.c
1611 tests/test-strchrnul.c
1612 tests/test-strerror.c
1613 tests/test-strerror_r.c
1615 tests/test-strings.c
1616 tests/test-strnlen.c
1617 tests/test-strverscmp.c
1618 tests/test-symlink.c
1619 tests/test-symlink.h
1620 tests/test-sys_ioctl.c
1621 tests/test-sys_select.c
1622 tests/test-sys_socket.c
1623 tests/test-sys_stat.c
1624 tests/test-sys_time.c
1625 tests/test-sys_types.c
1626 tests/test-sys_uio.c
1627 tests/test-sys_wait.h
1628 tests/test-sysexits.c
1632 tests/test-unsetenv.c
1633 tests/test-vasnprintf.c
1634 tests/test-vasprintf.c
1635 tests/test-vc-list-files-cvs.sh
1636 tests/test-vc-list-files-git.sh
1638 tests/test-verify.sh
1639 tests/test-version-etc.c
1640 tests/test-version-etc.sh
1641 tests/test-vfprintf-posix.c
1642 tests/test-vfprintf-posix.sh
1643 tests/test-vprintf-posix.c
1644 tests/test-vprintf-posix.sh
1645 tests/test-vsnprintf.c
1647 tests/zerosize-ptr.h
1648 tests=lib/binary-io.h
1650 tests=lib/fcntl.in.h
1652 tests=lib/ftruncate.c
1653 tests=lib/getcwd-lgpl.c
1654 tests=lib/getpagesize.c
1655 tests=lib/glthread/lock.c
1656 tests=lib/glthread/lock.h
1657 tests=lib/ignore-value.h
1658 tests=lib/inttypes.in.h
1663 tests=lib/malloca.valgrind
1669 tests=lib/same-inode.h
1672 tests=lib/strerror_r.c
1674 tests=lib/sys_ioctl.in.h
1675 tests=lib/unsetenv.c