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 # Code from module accept:
42 # Code from module accept-tests:
43 # Code from module alloca:
44 # Code from module alloca-opt:
45 # Code from module alloca-opt-tests:
46 # Code from module alphasort:
47 # Code from module argp:
48 # Code from module argp-tests:
49 # Code from module arpa_inet:
50 # Code from module arpa_inet-tests:
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 byteswap:
56 # Code from module byteswap-tests:
57 # Code from module c-ctype:
58 # Code from module c-ctype-tests:
59 # Code from module clock-time:
60 # Code from module close:
61 # Code from module close-tests:
62 # Code from module closedir:
63 # Code from module connect:
64 # Code from module connect-tests:
65 # Code from module dirent:
66 # Code from module dirent-tests:
67 # Code from module dirname-lgpl:
68 # Code from module dosname:
69 # Code from module double-slash-root:
70 # Code from module dup2:
71 # Code from module dup2-tests:
72 # Code from module environ:
73 # Code from module environ-tests:
74 # Code from module errno:
75 # Code from module errno-tests:
76 # Code from module error:
77 # Code from module extensions:
78 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
79 # Code from module fcntl-h:
80 # Code from module fcntl-h-tests:
81 # Code from module fd-hook:
82 # Code from module fdopen:
83 # Code from module fdopen-tests:
84 # Code from module fgetc-tests:
85 # Code from module filename:
86 # Code from module float:
87 # Code from module float-tests:
88 # Code from module fpieee:
89 AC_REQUIRE([gl_FP_IEEE])
90 # Code from module fpucw:
91 # Code from module fputc-tests:
92 # Code from module fread-tests:
93 # Code from module frexp-nolibm:
94 # Code from module frexp-nolibm-tests:
95 # Code from module frexpl-nolibm:
96 # Code from module frexpl-nolibm-tests:
97 # Code from module fseek:
98 # Code from module fseek-tests:
99 # Code from module fseeko:
100 AC_REQUIRE([AC_FUNC_FSEEKO])
101 # Code from module fseeko-tests:
102 # Code from module fseterr:
103 # Code from module fseterr-tests:
104 # Code from module fstat:
105 # Code from module fstat-tests:
106 # Code from module ftell:
107 # Code from module ftell-tests:
108 # Code from module ftello:
109 AC_REQUIRE([AC_FUNC_FSEEKO])
110 # Code from module ftello-tests:
111 # Code from module ftruncate:
112 # Code from module ftruncate-tests:
113 # Code from module func:
114 # Code from module func-tests:
115 # Code from module fwrite-tests:
116 # Code from module gendocs:
117 # Code from module getaddrinfo:
118 # Code from module getaddrinfo-tests:
119 # Code from module getcwd-lgpl:
120 # Code from module getcwd-lgpl-tests:
121 # Code from module getdelim:
122 # Code from module getdelim-tests:
123 # Code from module getline:
124 # Code from module getline-tests:
125 # Code from module getopt-gnu:
126 # Code from module getopt-posix:
127 # Code from module getopt-posix-tests:
128 # Code from module getpagesize:
129 # Code from module getpass:
130 # Code from module getpeername:
131 # Code from module getpeername-tests:
132 # Code from module getsubopt:
133 # Code from module gettext:
134 # Code from module gettext-h:
135 # Code from module gettime:
136 # Code from module gettimeofday:
137 # Code from module gettimeofday-tests:
138 # Code from module gnumakefile:
139 # Code from module havelib:
140 # Code from module hostent:
141 # Code from module ignore-value:
142 # Code from module ignore-value-tests:
143 # Code from module include_next:
144 # Code from module inet_ntop:
145 # Code from module inet_ntop-tests:
146 # Code from module inet_pton:
147 # Code from module inet_pton-tests:
148 # Code from module intprops:
149 # Code from module intprops-tests:
150 # Code from module inttypes:
151 # Code from module inttypes-incomplete:
152 # Code from module inttypes-tests:
153 # Code from module ioctl:
154 # Code from module ioctl-tests:
155 # Code from module isnand-nolibm:
156 # Code from module isnand-nolibm-tests:
157 # Code from module isnanf-nolibm:
158 # Code from module isnanf-nolibm-tests:
159 # Code from module isnanl-nolibm:
160 # Code from module isnanl-nolibm-tests:
161 # Code from module largefile:
162 AC_REQUIRE([AC_SYS_LARGEFILE])
163 # Code from module lib-msvc-compat:
164 # Code from module lib-symbol-versions:
165 # Code from module listen:
166 # Code from module listen-tests:
167 # Code from module lock:
168 # Code from module lseek:
169 # Code from module lstat:
170 # Code from module lstat-tests:
171 # Code from module maintainer-makefile:
172 # Code from module malloc-gnu:
173 # Code from module malloc-gnu-tests:
174 # Code from module malloc-posix:
175 # Code from module malloca:
176 # Code from module malloca-tests:
177 # Code from module manywarnings:
178 # Code from module math:
179 # Code from module math-tests:
180 # Code from module memchr:
181 # Code from module memchr-tests:
182 # Code from module memmem-simple:
183 # Code from module mempcpy:
184 # Code from module minmax:
185 # Code from module msvc-inval:
186 # Code from module msvc-nothrow:
187 # Code from module multiarch:
188 # Code from module netdb:
189 # Code from module netdb-tests:
190 # Code from module netinet_in:
191 # Code from module netinet_in-tests:
192 # Code from module nocrash:
193 # Code from module open:
194 # Code from module open-tests:
195 # Code from module opendir:
196 # Code from module pathmax:
197 # Code from module pathmax-tests:
198 # Code from module perror:
199 # Code from module perror-tests:
200 # Code from module pipe-posix:
201 # Code from module pipe-posix-tests:
202 # Code from module pmccabe2html:
203 # Code from module printf-frexp:
204 # Code from module printf-frexp-tests:
205 # Code from module printf-frexpl:
206 # Code from module printf-frexpl-tests:
207 # Code from module printf-safe:
208 # Code from module progname:
209 # Code from module putenv:
210 # Code from module rawmemchr:
211 # Code from module rawmemchr-tests:
212 # Code from module read-file:
213 # Code from module read-file-tests:
214 # Code from module readdir:
215 # Code from module realloc-posix:
216 # Code from module recv:
217 # Code from module recv-tests:
218 # Code from module recvfrom:
219 # Code from module recvfrom-tests:
220 # Code from module same-inode:
221 # Code from module scandir:
222 # Code from module select:
223 # Code from module select-tests:
224 # Code from module send:
225 # Code from module send-tests:
226 # Code from module sendto:
227 # Code from module sendto-tests:
228 # Code from module servent:
229 # Code from module setenv:
230 # Code from module setenv-tests:
231 # Code from module setsockopt:
232 # Code from module setsockopt-tests:
233 # Code from module shutdown:
234 # Code from module shutdown-tests:
235 # Code from module signal-h:
236 # Code from module signal-h-tests:
237 # Code from module signbit:
238 # Code from module signbit-tests:
239 # Code from module size_max:
240 # Code from module sleep:
241 # Code from module sleep-tests:
242 # Code from module snippet/_Noreturn:
243 # Code from module snippet/arg-nonnull:
244 # Code from module snippet/c++defs:
245 # Code from module snippet/warn-on-use:
246 # Code from module snprintf:
247 # Code from module snprintf-tests:
248 # Code from module socket:
249 # Code from module socketlib:
250 # Code from module sockets:
251 # Code from module sockets-tests:
252 # Code from module socklen:
253 # Code from module ssize_t:
254 # Code from module stat:
255 # Code from module stat-tests:
256 # Code from module stdalign:
257 # Code from module stdalign-tests:
258 # Code from module stdarg:
259 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
260 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
261 dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
262 dnl shouldn't hurt, though installers are on their own to set c99 mode.
264 # Code from module stdbool:
265 # Code from module stdbool-tests:
266 # Code from module stddef:
267 # Code from module stddef-tests:
268 # Code from module stdint:
269 # Code from module stdint-tests:
270 # Code from module stdio:
271 # Code from module stdio-tests:
272 # Code from module stdlib:
273 # Code from module stdlib-tests:
274 # Code from module strcase:
275 # Code from module strchrnul:
276 # Code from module strchrnul-tests:
277 # Code from module strdup-posix:
278 # Code from module strerror:
279 # Code from module strerror-override:
280 # Code from module strerror-tests:
281 # Code from module strerror_r-posix:
282 # Code from module strerror_r-posix-tests:
283 # Code from module string:
284 # Code from module string-tests:
285 # Code from module strings:
286 # Code from module strings-tests:
287 # Code from module strndup:
288 # Code from module strnlen:
289 # Code from module strnlen-tests:
290 # Code from module strverscmp:
291 # Code from module strverscmp-tests:
292 # Code from module symlink:
293 # Code from module symlink-tests:
294 # Code from module sys_ioctl:
295 # Code from module sys_ioctl-tests:
296 # Code from module sys_select:
297 # Code from module sys_select-tests:
298 # Code from module sys_socket:
299 # Code from module sys_socket-tests:
300 # Code from module sys_stat:
301 # Code from module sys_stat-tests:
302 # Code from module sys_time:
303 # Code from module sys_time-tests:
304 # Code from module sys_types:
305 # Code from module sys_types-tests:
306 # Code from module sys_uio:
307 # Code from module sys_uio-tests:
308 # Code from module sysexits:
309 # Code from module sysexits-tests:
310 # Code from module test-framework-sh:
311 # Code from module test-framework-sh-tests:
312 # Code from module threadlib:
314 # Code from module time:
315 # Code from module time-tests:
316 # Code from module time_r:
317 # Code from module timespec:
318 # Code from module u64:
319 # Code from module u64-tests:
320 # Code from module unistd:
321 # Code from module unistd-tests:
322 # Code from module unsetenv:
323 # Code from module unsetenv-tests:
324 # Code from module useless-if-before-free:
325 # Code from module valgrind-tests:
326 # Code from module vasnprintf:
327 # Code from module vasnprintf-tests:
328 # Code from module vasprintf:
329 # Code from module vasprintf-tests:
330 # Code from module vc-list-files:
331 # Code from module vc-list-files-tests:
332 # Code from module verify:
333 # Code from module verify-tests:
334 # Code from module version-etc:
335 # Code from module version-etc-fsf:
336 # Code from module version-etc-tests:
337 # Code from module vfprintf-posix:
338 # Code from module vfprintf-posix-tests:
339 # Code from module vprintf-posix:
340 # Code from module vprintf-posix-tests:
341 # Code from module vsnprintf:
342 # Code from module vsnprintf-tests:
343 # Code from module warnings:
344 # Code from module wchar:
345 # Code from module wchar-tests:
346 # Code from module xsize:
349 # This macro should be invoked from ./configure.ac, in the section
350 # "Check for header files, types and library functions".
353 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
356 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
357 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
358 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
359 m4_pushdef([gl_LIBSOURCES_LIST], [])
360 m4_pushdef([gl_LIBSOURCES_DIR], [])
363 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
364 if test "$ac_cv_header_winsock2_h" = yes; then
367 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
369 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
374 if test $HAVE_ALPHASORT = 0; then
375 AC_LIBOBJ([alphasort])
378 gl_DIRENT_MODULE_INDICATOR([alphasort])
380 m4_ifdef([AM_XGETTEXT_OPTION],
381 [AM_][XGETTEXT_OPTION([--flag=argp_error:2:c-format])
382 AM_][XGETTEXT_OPTION([--flag=argp_failure:4:c-format])])
385 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
386 if test "$ac_cv_header_winsock2_h" = yes; then
389 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
393 if test $REPLACE_CLOSE = 1; then
396 gl_UNISTD_MODULE_INDICATOR([close])
398 if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
399 AC_LIBOBJ([closedir])
401 gl_DIRENT_MODULE_INDICATOR([closedir])
402 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
403 if test "$ac_cv_header_winsock2_h" = yes; then
406 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
412 if test $ac_cv_lib_error_at_line = no; then
416 m4_ifdef([AM_XGETTEXT_OPTION],
417 [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
418 AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
420 if test $REPLACE_FLOAT_LDBL = 1; then
423 if test $REPLACE_ITOLD = 1; then
426 gl_FUNC_FREXP_NO_LIBM
427 if test $gl_func_frexp_no_libm != yes; then
430 gl_MATH_MODULE_INDICATOR([frexp])
431 gl_FUNC_FREXPL_NO_LIBM
432 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
435 gl_MATH_MODULE_INDICATOR([frexpl])
437 if test $REPLACE_FSEEK = 1; then
440 gl_STDIO_MODULE_INDICATOR([fseek])
442 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
445 gl_STDIO_MODULE_INDICATOR([fseeko])
447 if test $REPLACE_FSTAT = 1; then
451 gl_SYS_STAT_MODULE_INDICATOR([fstat])
453 if test $REPLACE_FTELL = 1; then
456 gl_STDIO_MODULE_INDICATOR([ftell])
458 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
461 gl_STDIO_MODULE_INDICATOR([ftello])
464 if test $HAVE_GETADDRINFO = 0; then
465 AC_LIBOBJ([getaddrinfo])
467 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
468 AC_LIBOBJ([gai_strerror])
470 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
472 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
473 AC_LIBOBJ([getdelim])
476 gl_STDIO_MODULE_INDICATOR([getdelim])
478 if test $REPLACE_GETLINE = 1; then
482 gl_STDIO_MODULE_INDICATOR([getline])
484 if test $REPLACE_GETOPT = 1; then
488 dnl Arrange for unistd.h to include getopt.h.
489 GNULIB_GL_UNISTD_H_GETOPT=1
491 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
492 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
494 if test $REPLACE_GETOPT = 1; then
498 dnl Arrange for unistd.h to include getopt.h.
499 GNULIB_GL_UNISTD_H_GETOPT=1
501 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
503 if test $HAVE_GETPASS = 0; then
507 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
508 if test "$ac_cv_header_winsock2_h" = yes; then
509 AC_LIBOBJ([getpeername])
511 gl_SYS_SOCKET_MODULE_INDICATOR([getpeername])
513 if test $HAVE_GETSUBOPT = 0; then
514 AC_LIBOBJ([getsubopt])
517 gl_STDLIB_MODULE_INDICATOR([getsubopt])
518 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
519 AM_GNU_GETTEXT_VERSION([0.18.1])
521 AC_SUBST([LTLIBINTL])
524 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
525 AC_LIBOBJ([gettimeofday])
526 gl_PREREQ_GETTIMEOFDAY
528 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
529 # Autoconf 2.61a.99 and earlier don't support linking a file only
530 # in VPATH builds. But since GNUmakefile is for maintainer use
531 # only, it does not matter if we skip the link with older autoconf.
532 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
533 # builds, so use a shell variable to bypass this.
534 GNUmakefile=GNUmakefile
535 m4_if(m4_version_compare([2.61a.100],
536 m4_defn([m4_PACKAGE_VERSION])), [1], [],
537 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
538 [GNUmakefile=$GNUmakefile])])
541 if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
542 AC_LIBOBJ([inet_ntop])
545 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
547 if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_NTOP = 1; then
548 AC_LIBOBJ([inet_pton])
551 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
552 gl_FUNC_ISNAND_NO_LIBM
553 if test $gl_func_isnand_no_libm != yes; then
557 gl_FUNC_ISNANF_NO_LIBM
558 if test $gl_func_isnanf_no_libm != yes; then
562 gl_FUNC_ISNANL_NO_LIBM
563 if test $gl_func_isnanl_no_libm != yes; then
569 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
570 if test "$ac_cv_header_winsock2_h" = yes; then
573 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
575 if test $REPLACE_LSEEK = 1; then
578 gl_UNISTD_MODULE_INDICATOR([lseek])
579 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
580 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
582 if test $REPLACE_MALLOC = 1; then
585 gl_MODULE_INDICATOR([malloc-gnu])
587 if test $REPLACE_MALLOC = 1; then
590 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
593 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
597 gl_STRING_MODULE_INDICATOR([memchr])
598 gl_FUNC_MEMMEM_SIMPLE
599 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
602 gl_STRING_MODULE_INDICATOR([memmem])
604 if test $HAVE_MEMPCPY = 0; then
608 gl_STRING_MODULE_INDICATOR([mempcpy])
611 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
612 AC_LIBOBJ([msvc-inval])
615 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
616 AC_LIBOBJ([msvc-nothrow])
623 if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
626 gl_DIRENT_MODULE_INDICATOR([opendir])
627 AC_PATH_PROG([PMCCABE], [pmccabe], [false])
629 gl_FUNC_PRINTF_FREXPL
630 m4_divert_text([INIT_PREPARE], [gl_printf_safe=yes])
631 AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
632 AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
634 if test $HAVE_RAWMEMCHR = 0; then
635 AC_LIBOBJ([rawmemchr])
638 gl_STRING_MODULE_INDICATOR([rawmemchr])
641 if test $HAVE_READDIR = 0; then
644 gl_DIRENT_MODULE_INDICATOR([readdir])
645 gl_FUNC_REALLOC_POSIX
646 if test $REPLACE_REALLOC = 1; then
649 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
650 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
651 if test "$ac_cv_header_winsock2_h" = yes; then
654 gl_SYS_SOCKET_MODULE_INDICATOR([recv])
655 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
656 if test "$ac_cv_header_winsock2_h" = yes; then
657 AC_LIBOBJ([recvfrom])
659 gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom])
661 if test $HAVE_SCANDIR = 0; then
665 gl_DIRENT_MODULE_INDICATOR([scandir])
667 if test $REPLACE_SELECT = 1; then
670 gl_SYS_SELECT_MODULE_INDICATOR([select])
671 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
672 if test "$ac_cv_header_winsock2_h" = yes; then
675 gl_SYS_SOCKET_MODULE_INDICATOR([send])
676 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
677 if test "$ac_cv_header_winsock2_h" = yes; then
680 gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
682 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
683 if test "$ac_cv_header_winsock2_h" = yes; then
684 AC_LIBOBJ([setsockopt])
686 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
687 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
688 if test "$ac_cv_header_winsock2_h" = yes; then
689 AC_LIBOBJ([shutdown])
691 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
694 if test $REPLACE_SIGNBIT = 1; then
695 AC_LIBOBJ([signbitf])
696 AC_LIBOBJ([signbitd])
697 AC_LIBOBJ([signbitl])
699 gl_MATH_MODULE_INDICATOR([signbit])
702 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
705 gl_UNISTD_MODULE_INDICATOR([sleep])
707 gl_STDIO_MODULE_INDICATOR([snprintf])
708 gl_MODULE_INDICATOR([snprintf])
709 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
710 if test "$ac_cv_header_winsock2_h" = yes; then
713 # When this module is used, sockets may actually occur as file descriptors,
714 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
715 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
716 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
717 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
718 if test "$ac_cv_header_winsock2_h" = yes; then
719 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
720 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
722 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
735 if test $HAVE_STRCASECMP = 0; then
736 AC_LIBOBJ([strcasecmp])
739 if test $HAVE_STRNCASECMP = 0; then
740 AC_LIBOBJ([strncasecmp])
741 gl_PREREQ_STRNCASECMP
744 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
745 AC_LIBOBJ([strchrnul])
748 gl_STRING_MODULE_INDICATOR([strchrnul])
750 if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
754 gl_STRING_MODULE_INDICATOR([strdup])
756 if test $REPLACE_STRERROR = 1; then
757 AC_LIBOBJ([strerror])
759 gl_MODULE_INDICATOR([strerror])
760 gl_STRING_MODULE_INDICATOR([strerror])
761 AC_REQUIRE([gl_HEADER_ERRNO_H])
762 AC_REQUIRE([gl_FUNC_STRERROR_0])
763 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
764 AC_LIBOBJ([strerror-override])
765 gl_PREREQ_SYS_H_WINSOCK2
770 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
773 gl_STRING_MODULE_INDICATOR([strndup])
775 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
779 gl_STRING_MODULE_INDICATOR([strnlen])
781 if test $HAVE_STRVERSCMP = 0; then
782 AC_LIBOBJ([strverscmp])
785 gl_STRING_MODULE_INDICATOR([strverscmp])
801 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
805 gl_TIME_MODULE_INDICATOR([time_r])
807 AC_REQUIRE([AC_C_INLINE])
812 gl_STDIO_MODULE_INDICATOR([vasprintf])
813 m4_ifdef([AM_XGETTEXT_OPTION],
814 [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
815 AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
817 gl_FUNC_VFPRINTF_POSIX
818 gl_STDIO_MODULE_INDICATOR([vfprintf-posix])
819 gl_FUNC_VPRINTF_POSIX
820 gl_STDIO_MODULE_INDICATOR([vprintf-posix])
822 gl_STDIO_MODULE_INDICATOR([vsnprintf])
823 AC_SUBST([WARN_CFLAGS])
826 # End of code from modules
827 m4_ifval(gl_LIBSOURCES_LIST, [
828 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
829 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
830 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
831 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
835 m4_if(m4_sysval, [0], [],
836 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
838 m4_popdef([gl_LIBSOURCES_DIR])
839 m4_popdef([gl_LIBSOURCES_LIST])
840 m4_popdef([AC_LIBSOURCES])
841 m4_popdef([AC_REPLACE_FUNCS])
842 m4_popdef([AC_LIBOBJ])
843 AC_CONFIG_COMMANDS_PRE([
846 if test -n "$gl_LIBOBJS"; then
847 # Remove the extension.
848 sed_drop_objext='s/\.o$//;s/\.obj$//'
849 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
850 gl_libobjs="$gl_libobjs $i.$ac_objext"
851 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
854 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
855 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
859 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
860 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
861 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
862 m4_pushdef([gltests_LIBSOURCES_LIST], [])
863 m4_pushdef([gltests_LIBSOURCES_DIR], [])
865 gl_source_base='gl/tests'
867 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
869 AC_SUBST([gltests_WITNESS])
870 gl_module_indicator_condition=$gltests_WITNESS
871 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
873 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
877 gl_UNISTD_MODULE_INDICATOR([dup2])
879 gl_UNISTD_MODULE_INDICATOR([environ])
882 if test $REPLACE_FDOPEN = 1; then
886 gl_STDIO_MODULE_INDICATOR([fdopen])
892 if test $HAVE_FTRUNCATE = 0; then
893 AC_LIBOBJ([ftruncate])
896 gl_UNISTD_MODULE_INDICATOR([ftruncate])
898 if test $REPLACE_GETCWD = 1; then
899 AC_LIBOBJ([getcwd-lgpl])
901 gl_UNISTD_MODULE_INDICATOR([getcwd])
903 if test $REPLACE_GETPAGESIZE = 1; then
904 AC_LIBOBJ([getpagesize])
906 gl_UNISTD_MODULE_INDICATOR([getpagesize])
907 AC_REQUIRE([AC_C_INLINE])
911 gl_INTTYPES_INCOMPLETE
913 if test $HAVE_IOCTL = 0 || test $REPLACE_IOCTL = 1; then
916 gl_SYS_IOCTL_MODULE_INDICATOR([ioctl])
917 gl_DOUBLE_EXPONENT_LOCATION
918 gl_FLOAT_EXPONENT_LOCATION
919 gl_LONG_DOUBLE_EXPONENT_LOCATION
920 AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
923 if test $REPLACE_LSTAT = 1; then
927 gl_SYS_STAT_MODULE_INDICATOR([lstat])
929 dnl Check for prerequisites for memory fence checks.
931 AC_CHECK_HEADERS_ONCE([sys/mman.h])
932 AC_CHECK_FUNCS_ONCE([mprotect])
934 if test $REPLACE_OPEN = 1; then
938 gl_FCNTL_MODULE_INDICATOR([open])
941 if test $REPLACE_PERROR = 1; then
944 gl_STRING_MODULE_INDICATOR([perror])
946 if test $HAVE_PIPE = 0; then
949 gl_UNISTD_MODULE_INDICATOR([pipe])
951 if test $REPLACE_PUTENV = 1; then
954 gl_STDLIB_MODULE_INDICATOR([putenv])
955 dnl Check for prerequisites for memory fence checks.
957 AC_CHECK_HEADERS_ONCE([sys/mman.h])
958 AC_CHECK_FUNCS_ONCE([mprotect])
959 AC_CHECK_HEADERS_ONCE([sys/wait.h])
961 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
964 gl_STDLIB_MODULE_INDICATOR([setenv])
965 AC_REQUIRE([gl_FLOAT_EXPONENT_LOCATION])
966 AC_REQUIRE([gl_DOUBLE_EXPONENT_LOCATION])
967 AC_REQUIRE([gl_LONG_DOUBLE_EXPONENT_LOCATION])
968 AC_CHECK_DECLS_ONCE([alarm])
970 if test $REPLACE_STAT = 1; then
974 gl_SYS_STAT_MODULE_INDICATOR([stat])
978 if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
979 AC_LIBOBJ([strerror_r])
982 gl_STRING_MODULE_INDICATOR([strerror_r])
983 dnl Check for prerequisites for memory fence checks.
985 AC_CHECK_HEADERS_ONCE([sys/mman.h])
986 AC_CHECK_FUNCS_ONCE([mprotect])
988 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
991 gl_UNISTD_MODULE_INDICATOR([symlink])
994 AC_CHECK_FUNCS_ONCE([shutdown])
997 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
998 AC_LIBOBJ([unsetenv])
1001 gl_STDLIB_MODULE_INDICATOR([unsetenv])
1003 abs_aux_dir=`cd "$ac_aux_dir"; pwd`
1004 AC_SUBST([abs_aux_dir])
1005 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
1006 m4_ifval(gltests_LIBSOURCES_LIST, [
1007 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
1008 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
1009 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
1010 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
1014 m4_if(m4_sysval, [0], [],
1015 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
1017 m4_popdef([gltests_LIBSOURCES_DIR])
1018 m4_popdef([gltests_LIBSOURCES_LIST])
1019 m4_popdef([AC_LIBSOURCES])
1020 m4_popdef([AC_REPLACE_FUNCS])
1021 m4_popdef([AC_LIBOBJ])
1022 AC_CONFIG_COMMANDS_PRE([
1025 if test -n "$gltests_LIBOBJS"; then
1026 # Remove the extension.
1027 sed_drop_objext='s/\.o$//;s/\.obj$//'
1028 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
1029 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
1030 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
1033 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
1034 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
1036 LIBTESTS_LIBDEPS="$gltests_libdeps"
1037 AC_SUBST([LIBTESTS_LIBDEPS])
1040 # Like AC_LIBOBJ, except that the module name goes
1041 # into gl_LIBOBJS instead of into LIBOBJS.
1042 AC_DEFUN([gl_LIBOBJ], [
1043 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
1044 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
1047 # Like AC_REPLACE_FUNCS, except that the module name goes
1048 # into gl_LIBOBJS instead of into LIBOBJS.
1049 AC_DEFUN([gl_REPLACE_FUNCS], [
1050 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1051 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
1054 # Like AC_LIBSOURCES, except the directory where the source file is
1055 # expected is derived from the gnulib-tool parameterization,
1056 # and alloca is special cased (for the alloca-opt module).
1057 # We could also entirely rely on EXTRA_lib..._SOURCES.
1058 AC_DEFUN([gl_LIBSOURCES], [
1059 m4_foreach([_gl_NAME], [$1], [
1060 m4_if(_gl_NAME, [alloca.c], [], [
1061 m4_define([gl_LIBSOURCES_DIR], [gl])
1062 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
1067 # Like AC_LIBOBJ, except that the module name goes
1068 # into gltests_LIBOBJS instead of into LIBOBJS.
1069 AC_DEFUN([gltests_LIBOBJ], [
1070 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
1071 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
1074 # Like AC_REPLACE_FUNCS, except that the module name goes
1075 # into gltests_LIBOBJS instead of into LIBOBJS.
1076 AC_DEFUN([gltests_REPLACE_FUNCS], [
1077 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
1078 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
1081 # Like AC_LIBSOURCES, except the directory where the source file is
1082 # expected is derived from the gnulib-tool parameterization,
1083 # and alloca is special cased (for the alloca-opt module).
1084 # We could also entirely rely on EXTRA_lib..._SOURCES.
1085 AC_DEFUN([gltests_LIBSOURCES], [
1086 m4_foreach([_gl_NAME], [$1], [
1087 m4_if(_gl_NAME, [alloca.c], [], [
1088 m4_define([gltests_LIBSOURCES_DIR], [gl/tests])
1089 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
1094 # This macro records the list of files which have been installed by
1095 # gnulib-tool and may be removed by future gnulib-tool invocations.
1096 AC_DEFUN([gl_FILE_LIST], [
1097 build-aux/config.rpath
1098 build-aux/gendocs.sh
1099 build-aux/pmccabe.css
1100 build-aux/pmccabe2html
1101 build-aux/snippet/_Noreturn.h
1102 build-aux/snippet/arg-nonnull.h
1103 build-aux/snippet/c++defs.h
1104 build-aux/snippet/warn-on-use.h
1105 build-aux/useless-if-before-free
1106 build-aux/vc-list-files
1107 doc/gendocs_template
1114 lib/argp-fmtstream.c
1115 lib/argp-fmtstream.h
1136 lib/dirent-private.h
1213 lib/rawmemchr.valgrind
1247 lib/strchrnul.valgrind
1249 lib/strerror-override.c
1250 lib/strerror-override.h
1275 lib/version-etc-fsf.c
1296 m4/double-slash-root.m4
1355 m4/ld-version-script.m4
1446 m4/valgrind-tests.m4
1450 m4/vfprintf-posix.m4
1467 tests/test-alloca-opt.c
1468 tests/test-argp-2.sh
1470 tests/test-arpa_inet.c
1471 tests/test-binary-io.c
1472 tests/test-binary-io.sh
1474 tests/test-byteswap.c
1475 tests/test-c-ctype.c
1477 tests/test-connect.c
1480 tests/test-environ.c
1482 tests/test-fcntl-h.c
1486 tests/test-fprintf-posix.h
1493 tests/test-fseek2.sh
1495 tests/test-fseeko.sh
1496 tests/test-fseeko2.sh
1497 tests/test-fseeko3.c
1498 tests/test-fseeko3.sh
1499 tests/test-fseeko4.c
1500 tests/test-fseeko4.sh
1501 tests/test-fseterr.c
1505 tests/test-ftell2.sh
1508 tests/test-ftello.sh
1509 tests/test-ftello2.sh
1510 tests/test-ftello3.c
1511 tests/test-ftello4.c
1512 tests/test-ftello4.sh
1513 tests/test-ftruncate.c
1514 tests/test-ftruncate.sh
1517 tests/test-getaddrinfo.c
1518 tests/test-getcwd-lgpl.c
1519 tests/test-getdelim.c
1520 tests/test-getline.c
1523 tests/test-getopt_long.h
1524 tests/test-getpeername.c
1525 tests/test-gettimeofday.c
1526 tests/test-ignore-value.c
1527 tests/test-inet_ntop.c
1528 tests/test-inet_pton.c
1530 tests/test-intprops.c
1531 tests/test-inttypes.c
1533 tests/test-isnand-nolibm.c
1535 tests/test-isnanf-nolibm.c
1537 tests/test-isnanl-nolibm.c
1542 tests/test-malloc-gnu.c
1543 tests/test-malloca.c
1547 tests/test-netinet_in.c
1550 tests/test-pathmax.c
1552 tests/test-perror.sh
1553 tests/test-perror2.c
1555 tests/test-printf-frexp.c
1556 tests/test-printf-frexpl.c
1557 tests/test-printf-posix.h
1558 tests/test-printf-posix.output
1559 tests/test-rawmemchr.c
1560 tests/test-read-file.c
1562 tests/test-recvfrom.c
1563 tests/test-select-fd.c
1564 tests/test-select-in.sh
1565 tests/test-select-out.sh
1566 tests/test-select-stdin.c
1572 tests/test-setsockopt.c
1573 tests/test-shutdown.c
1574 tests/test-signal-h.c
1575 tests/test-signbit.c
1577 tests/test-snprintf.c
1578 tests/test-sockets.c
1581 tests/test-stdalign.c
1582 tests/test-stdbool.c
1587 tests/test-strchrnul.c
1588 tests/test-strerror.c
1589 tests/test-strerror_r.c
1591 tests/test-strings.c
1592 tests/test-strnlen.c
1593 tests/test-strverscmp.c
1594 tests/test-symlink.c
1595 tests/test-symlink.h
1596 tests/test-sys_ioctl.c
1597 tests/test-sys_select.c
1598 tests/test-sys_socket.c
1599 tests/test-sys_stat.c
1600 tests/test-sys_time.c
1601 tests/test-sys_types.c
1602 tests/test-sys_uio.c
1603 tests/test-sys_wait.h
1604 tests/test-sysexits.c
1608 tests/test-unsetenv.c
1609 tests/test-vasnprintf.c
1610 tests/test-vasprintf.c
1611 tests/test-vc-list-files-cvs.sh
1612 tests/test-vc-list-files-git.sh
1614 tests/test-verify.sh
1615 tests/test-version-etc.c
1616 tests/test-version-etc.sh
1617 tests/test-vfprintf-posix.c
1618 tests/test-vfprintf-posix.sh
1619 tests/test-vprintf-posix.c
1620 tests/test-vprintf-posix.sh
1621 tests/test-vsnprintf.c
1623 tests/zerosize-ptr.h
1624 tests=lib/binary-io.h
1626 tests=lib/fcntl.in.h
1628 tests=lib/ftruncate.c
1629 tests=lib/getcwd-lgpl.c
1630 tests=lib/getpagesize.c
1631 tests=lib/glthread/lock.c
1632 tests=lib/glthread/lock.h
1633 tests=lib/glthread/threadlib.c
1634 tests=lib/ignore-value.h
1635 tests=lib/inttypes.in.h
1640 tests=lib/malloca.valgrind
1646 tests=lib/same-inode.h
1649 tests=lib/strerror_r.c
1651 tests=lib/sys_ioctl.in.h
1652 tests=lib/unsetenv.c