Merge remote-tracking branch 'origin/stable-2.0'
[bpt/guile.git] / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
3 #
4 # This file is free software, distributed under the terms of the GNU
5 # General Public License. As a special exception to the GNU General
6 # Public License, this file may be distributed as part of a program
7 # that contains a configuration script generated by Autoconf, under
8 # the same distribution terms as the rest of that program.
9 #
10 # Generated by gnulib-tool.
11 #
12 # This file represents the compiled summary of the specification in
13 # gnulib-cache.m4. It lists the computed macro invocations that need
14 # to be invoked from configure.ac.
15 # In projects that use version control, this file can be treated like
16 # other built files.
17
18
19 # This macro should be invoked from ./configure.ac, in the section
20 # "Checks for programs", right after AC_PROG_CC, and certainly before
21 # any checks for libraries, header files, types and library functions.
22 AC_DEFUN([gl_EARLY],
23 [
24 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
25 m4_pattern_allow([^gl_ES$])dnl a valid locale name
26 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
27 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
28 AC_REQUIRE([AC_PROG_RANLIB])
29 AC_REQUIRE([AM_PROG_CC_C_O])
30 # Code from module accept:
31 # Code from module alignof:
32 # Code from module alloca-opt:
33 # Code from module announce-gen:
34 # Code from module arg-nonnull:
35 # Code from module arpa_inet:
36 # Code from module autobuild:
37 AB_INIT
38 # Code from module binary-io:
39 # Code from module bind:
40 # Code from module byteswap:
41 # Code from module c++defs:
42 # Code from module c-ctype:
43 # Code from module c-strcase:
44 # Code from module c-strcaseeq:
45 # Code from module canonicalize-lgpl:
46 # Code from module ceil:
47 # Code from module close:
48 # Code from module connect:
49 # Code from module dirname-lgpl:
50 # Code from module dosname:
51 # Code from module double-slash-root:
52 # Code from module duplocale:
53 # Code from module environ:
54 # Code from module errno:
55 # Code from module extensions:
56 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
57 # Code from module fclose:
58 # Code from module fcntl-h:
59 # Code from module fd-hook:
60 # Code from module fflush:
61 AC_REQUIRE([AC_FUNC_FSEEKO])
62 # Code from module float:
63 # Code from module flock:
64 # Code from module floor:
65 # Code from module fpieee:
66 AC_REQUIRE([gl_FP_IEEE])
67 # Code from module fpurge:
68 # Code from module freading:
69 # Code from module frexp:
70 # Code from module fseek:
71 # Code from module fseeko:
72 AC_REQUIRE([AC_FUNC_FSEEKO])
73 # Code from module ftell:
74 # Code from module ftello:
75 AC_REQUIRE([AC_FUNC_FSEEKO])
76 # Code from module full-read:
77 # Code from module full-write:
78 # Code from module func:
79 # Code from module gendocs:
80 # Code from module getaddrinfo:
81 # Code from module getpeername:
82 # Code from module getsockname:
83 # Code from module getsockopt:
84 # Code from module gettext-h:
85 # Code from module git-version-gen:
86 # Code from module gitlog-to-changelog:
87 # Code from module gnu-web-doc-update:
88 # Code from module gnumakefile:
89 # Code from module gnupload:
90 # Code from module gperf:
91 # Code from module havelib:
92 # Code from module hostent:
93 # Code from module iconv:
94 # Code from module iconv-h:
95 # Code from module iconv_open:
96 # Code from module iconv_open-utf:
97 # Code from module include_next:
98 # Code from module inet_ntop:
99 # Code from module inet_pton:
100 # Code from module inline:
101 # Code from module isinf:
102 # Code from module isnan:
103 # Code from module isnand:
104 # Code from module isnand-nolibm:
105 # Code from module isnanf:
106 # Code from module isnanl:
107 # Code from module ldexp:
108 # Code from module lib-symbol-versions:
109 # Code from module lib-symbol-visibility:
110 # Code from module libunistring:
111 # Code from module listen:
112 # Code from module locale:
113 # Code from module log1p:
114 # Code from module lseek:
115 # Code from module lstat:
116 # Code from module maintainer-makefile:
117 # Code from module malloc-gnu:
118 # Code from module malloc-posix:
119 # Code from module malloca:
120 # Code from module math:
121 # Code from module memchr:
122 # Code from module multiarch:
123 # Code from module netdb:
124 # Code from module netinet_in:
125 # Code from module nocrash:
126 # Code from module nproc:
127 # Code from module open:
128 # Code from module pathmax:
129 # Code from module pipe2:
130 # Code from module putenv:
131 # Code from module read:
132 # Code from module readlink:
133 # Code from module recv:
134 # Code from module recvfrom:
135 # Code from module rename:
136 # Code from module rmdir:
137 # Code from module safe-read:
138 # Code from module safe-write:
139 # Code from module same-inode:
140 # Code from module send:
141 # Code from module sendto:
142 # Code from module servent:
143 # Code from module setsockopt:
144 # Code from module shutdown:
145 # Code from module size_max:
146 # Code from module snprintf:
147 # Code from module socket:
148 # Code from module socketlib:
149 # Code from module sockets:
150 # Code from module socklen:
151 # Code from module ssize_t:
152 # Code from module stat:
153 # Code from module stat-time:
154 # Code from module stdbool:
155 # Code from module stddef:
156 # Code from module stdint:
157 # Code from module stdio:
158 # Code from module stdlib:
159 # Code from module strftime:
160 # Code from module striconveh:
161 # Code from module string:
162 # Code from module sys_file:
163 # Code from module sys_socket:
164 # Code from module sys_stat:
165 # Code from module sys_time:
166 # Code from module sys_uio:
167 # Code from module time:
168 # Code from module time_r:
169 # Code from module trunc:
170 # Code from module unistd:
171 # Code from module unistr/base:
172 # Code from module unistr/u8-mbtouc:
173 # Code from module unistr/u8-mbtouc-unsafe:
174 # Code from module unistr/u8-mbtoucr:
175 # Code from module unistr/u8-prev:
176 # Code from module unistr/u8-uctomb:
177 # Code from module unitypes:
178 # Code from module unused-parameter:
179 # Code from module useless-if-before-free:
180 # Code from module vasnprintf:
181 # Code from module vc-list-files:
182 # Code from module verify:
183 # Code from module vsnprintf:
184 # Code from module warn-on-use:
185 # Code from module warnings:
186 # Code from module wchar:
187 # Code from module write:
188 # Code from module xsize:
189 ])
190
191 # This macro should be invoked from ./configure.ac, in the section
192 # "Check for header files, types and library functions".
193 AC_DEFUN([gl_INIT],
194 [
195 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
196 gl_cond_libtool=true
197 gl_m4_base='m4'
198 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
199 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
200 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
201 m4_pushdef([gl_LIBSOURCES_LIST], [])
202 m4_pushdef([gl_LIBSOURCES_DIR], [])
203 gl_COMMON
204 gl_source_base='lib'
205 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
206 if test "$ac_cv_header_winsock2_h" = yes; then
207 AC_LIBOBJ([accept])
208 fi
209 gl_SYS_SOCKET_MODULE_INDICATOR([accept])
210 gl_FUNC_ALLOCA
211 gl_HEADER_ARPA_INET
212 AC_PROG_MKDIR_P
213 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
214 if test "$ac_cv_header_winsock2_h" = yes; then
215 AC_LIBOBJ([bind])
216 fi
217 gl_SYS_SOCKET_MODULE_INDICATOR([bind])
218 gl_BYTESWAP
219 gl_CANONICALIZE_LGPL
220 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
221 AC_LIBOBJ([canonicalize-lgpl])
222 fi
223 gl_MODULE_INDICATOR([canonicalize-lgpl])
224 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
225 gl_STDLIB_MODULE_INDICATOR([realpath])
226 gl_FUNC_CEIL
227 if test $REPLACE_CEIL = 1; then
228 AC_LIBOBJ([ceil])
229 fi
230 gl_MATH_MODULE_INDICATOR([ceil])
231 gl_FUNC_CLOSE
232 gl_UNISTD_MODULE_INDICATOR([close])
233 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
234 if test "$ac_cv_header_winsock2_h" = yes; then
235 AC_LIBOBJ([connect])
236 fi
237 gl_SYS_SOCKET_MODULE_INDICATOR([connect])
238 gl_DIRNAME_LGPL
239 gl_DOUBLE_SLASH_ROOT
240 gl_FUNC_DUPLOCALE
241 if test $REPLACE_DUPLOCALE = 1; then
242 AC_LIBOBJ([duplocale])
243 gl_PREREQ_DUPLOCALE
244 fi
245 gl_LOCALE_MODULE_INDICATOR([duplocale])
246 gl_ENVIRON
247 gl_UNISTD_MODULE_INDICATOR([environ])
248 gl_HEADER_ERRNO_H
249 gl_FUNC_FCLOSE
250 gl_STDIO_MODULE_INDICATOR([fclose])
251 gl_FCNTL_H
252 gl_FUNC_FFLUSH
253 if test $REPLACE_FFLUSH = 1; then
254 AC_LIBOBJ([fflush])
255 gl_PREREQ_FFLUSH
256 fi
257 gl_MODULE_INDICATOR([fflush])
258 gl_STDIO_MODULE_INDICATOR([fflush])
259 gl_FLOAT_H
260 if test $REPLACE_FLOAT_LDBL = 1; then
261 AC_LIBOBJ([float])
262 fi
263 gl_FUNC_FLOCK
264 if test $HAVE_FLOCK = 0; then
265 AC_LIBOBJ([flock])
266 gl_PREREQ_FLOCK
267 fi
268 gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock])
269 gl_FUNC_FLOOR
270 if test $REPLACE_FLOOR = 1; then
271 AC_LIBOBJ([floor])
272 fi
273 gl_MATH_MODULE_INDICATOR([floor])
274 gl_FUNC_FPURGE
275 if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then
276 AC_LIBOBJ([fpurge])
277 fi
278 gl_STDIO_MODULE_INDICATOR([fpurge])
279 gl_FUNC_FREADING
280 gl_FUNC_FREXP
281 if test $gl_func_frexp != yes; then
282 AC_LIBOBJ([frexp])
283 fi
284 gl_MATH_MODULE_INDICATOR([frexp])
285 gl_FUNC_FSEEK
286 if test $REPLACE_FSEEK = 1; then
287 AC_LIBOBJ([fseek])
288 fi
289 gl_STDIO_MODULE_INDICATOR([fseek])
290 gl_FUNC_FSEEKO
291 if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
292 AC_LIBOBJ([fseeko])
293 fi
294 gl_STDIO_MODULE_INDICATOR([fseeko])
295 gl_FUNC_FTELL
296 if test $REPLACE_FTELL = 1; then
297 AC_LIBOBJ([ftell])
298 fi
299 gl_STDIO_MODULE_INDICATOR([ftell])
300 gl_FUNC_FTELLO
301 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
302 AC_LIBOBJ([ftello])
303 fi
304 gl_STDIO_MODULE_INDICATOR([ftello])
305 gl_FUNC
306 gl_GETADDRINFO
307 if test $HAVE_GETADDRINFO = 0; then
308 AC_LIBOBJ([getaddrinfo])
309 fi
310 if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
311 AC_LIBOBJ([gai_strerror])
312 fi
313 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
314 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
315 if test "$ac_cv_header_winsock2_h" = yes; then
316 AC_LIBOBJ([getpeername])
317 fi
318 gl_SYS_SOCKET_MODULE_INDICATOR([getpeername])
319 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
320 if test "$ac_cv_header_winsock2_h" = yes; then
321 AC_LIBOBJ([getsockname])
322 fi
323 gl_SYS_SOCKET_MODULE_INDICATOR([getsockname])
324 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
325 if test "$ac_cv_header_winsock2_h" = yes; then
326 AC_LIBOBJ([getsockopt])
327 fi
328 gl_SYS_SOCKET_MODULE_INDICATOR([getsockopt])
329 AC_SUBST([LIBINTL])
330 AC_SUBST([LTLIBINTL])
331 # Autoconf 2.61a.99 and earlier don't support linking a file only
332 # in VPATH builds. But since GNUmakefile is for maintainer use
333 # only, it does not matter if we skip the link with older autoconf.
334 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
335 # builds, so use a shell variable to bypass this.
336 GNUmakefile=GNUmakefile
337 m4_if(m4_version_compare([2.61a.100],
338 m4_defn([m4_PACKAGE_VERSION])), [1], [],
339 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
340 [GNUmakefile=$GNUmakefile])])
341 gl_HOSTENT
342 AM_ICONV
343 m4_ifdef([gl_ICONV_MODULE_INDICATOR],
344 [gl_ICONV_MODULE_INDICATOR([iconv])])
345 gl_ICONV_H
346 gl_FUNC_ICONV_OPEN
347 if test $REPLACE_ICONV_OPEN = 1; then
348 AC_LIBOBJ([iconv_open])
349 fi
350 if test $REPLACE_ICONV = 1; then
351 AC_LIBOBJ([iconv])
352 AC_LIBOBJ([iconv_close])
353 fi
354 gl_FUNC_ICONV_OPEN_UTF
355 gl_FUNC_INET_NTOP
356 if test $HAVE_INET_NTOP = 0; then
357 AC_LIBOBJ([inet_ntop])
358 gl_PREREQ_INET_NTOP
359 fi
360 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
361 gl_FUNC_INET_PTON
362 if test $HAVE_INET_PTON = 0; then
363 AC_LIBOBJ([inet_pton])
364 gl_PREREQ_INET_PTON
365 fi
366 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
367 gl_INLINE
368 gl_ISINF
369 if test $REPLACE_ISINF = 1; then
370 AC_LIBOBJ([isinf])
371 fi
372 gl_MATH_MODULE_INDICATOR([isinf])
373 gl_ISNAN
374 gl_MATH_MODULE_INDICATOR([isnan])
375 gl_FUNC_ISNAND
376 m4_ifdef([gl_ISNAN], [
377 AC_REQUIRE([gl_ISNAN])
378 ])
379 if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
380 AC_LIBOBJ([isnand])
381 gl_PREREQ_ISNAND
382 fi
383 gl_MATH_MODULE_INDICATOR([isnand])
384 gl_FUNC_ISNAND_NO_LIBM
385 if test $gl_func_isnand_no_libm != yes; then
386 AC_LIBOBJ([isnand])
387 gl_PREREQ_ISNAND
388 fi
389 gl_FUNC_ISNANF
390 m4_ifdef([gl_ISNAN], [
391 AC_REQUIRE([gl_ISNAN])
392 ])
393 if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
394 AC_LIBOBJ([isnanf])
395 gl_PREREQ_ISNANF
396 fi
397 gl_MATH_MODULE_INDICATOR([isnanf])
398 gl_FUNC_ISNANL
399 m4_ifdef([gl_ISNAN], [
400 AC_REQUIRE([gl_ISNAN])
401 ])
402 if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
403 AC_LIBOBJ([isnanl])
404 gl_PREREQ_ISNANL
405 fi
406 gl_MATH_MODULE_INDICATOR([isnanl])
407 gl_FUNC_LDEXP
408 gl_LD_VERSION_SCRIPT
409 gl_VISIBILITY
410 gl_LIBUNISTRING
411 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
412 if test "$ac_cv_header_winsock2_h" = yes; then
413 AC_LIBOBJ([listen])
414 fi
415 gl_SYS_SOCKET_MODULE_INDICATOR([listen])
416 gl_LOCALE_H
417 gl_COMMON_DOUBLE_MATHFUNC([log1p])
418 gl_FUNC_LSEEK
419 if test $REPLACE_LSEEK = 1; then
420 AC_LIBOBJ([lseek])
421 fi
422 gl_UNISTD_MODULE_INDICATOR([lseek])
423 gl_FUNC_LSTAT
424 if test $REPLACE_LSTAT = 1; then
425 AC_LIBOBJ([lstat])
426 gl_PREREQ_LSTAT
427 fi
428 gl_SYS_STAT_MODULE_INDICATOR([lstat])
429 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
430 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
431 gl_FUNC_MALLOC_GNU
432 if test $REPLACE_MALLOC = 1; then
433 AC_LIBOBJ([malloc])
434 fi
435 gl_MODULE_INDICATOR([malloc-gnu])
436 gl_FUNC_MALLOC_POSIX
437 if test $REPLACE_MALLOC = 1; then
438 AC_LIBOBJ([malloc])
439 fi
440 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
441 gl_MALLOCA
442 gl_MATH_H
443 gl_FUNC_MEMCHR
444 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
445 AC_LIBOBJ([memchr])
446 gl_PREREQ_MEMCHR
447 fi
448 gl_STRING_MODULE_INDICATOR([memchr])
449 gl_MULTIARCH
450 gl_HEADER_NETDB
451 gl_HEADER_NETINET_IN
452 AC_PROG_MKDIR_P
453 gl_NPROC
454 gl_FUNC_OPEN
455 gl_FCNTL_MODULE_INDICATOR([open])
456 gl_PATHMAX
457 gl_FUNC_PIPE2
458 gl_UNISTD_MODULE_INDICATOR([pipe2])
459 gl_FUNC_PUTENV
460 if test $REPLACE_PUTENV = 1; then
461 AC_LIBOBJ([putenv])
462 fi
463 gl_STDLIB_MODULE_INDICATOR([putenv])
464 gl_FUNC_READ
465 if test $REPLACE_READ = 1; then
466 AC_LIBOBJ([read])
467 fi
468 gl_UNISTD_MODULE_INDICATOR([read])
469 gl_FUNC_READLINK
470 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
471 AC_LIBOBJ([readlink])
472 gl_PREREQ_READLINK
473 fi
474 gl_UNISTD_MODULE_INDICATOR([readlink])
475 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
476 if test "$ac_cv_header_winsock2_h" = yes; then
477 AC_LIBOBJ([recv])
478 fi
479 gl_SYS_SOCKET_MODULE_INDICATOR([recv])
480 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
481 if test "$ac_cv_header_winsock2_h" = yes; then
482 AC_LIBOBJ([recvfrom])
483 fi
484 gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom])
485 gl_FUNC_RENAME
486 if test $REPLACE_RENAME = 1; then
487 AC_LIBOBJ([rename])
488 fi
489 gl_STDIO_MODULE_INDICATOR([rename])
490 gl_FUNC_RMDIR
491 if test $REPLACE_RMDIR = 1; then
492 AC_LIBOBJ([rmdir])
493 fi
494 gl_UNISTD_MODULE_INDICATOR([rmdir])
495 gl_PREREQ_SAFE_READ
496 gl_PREREQ_SAFE_WRITE
497 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
498 if test "$ac_cv_header_winsock2_h" = yes; then
499 AC_LIBOBJ([send])
500 fi
501 gl_SYS_SOCKET_MODULE_INDICATOR([send])
502 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
503 if test "$ac_cv_header_winsock2_h" = yes; then
504 AC_LIBOBJ([sendto])
505 fi
506 gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
507 gl_SERVENT
508 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
509 if test "$ac_cv_header_winsock2_h" = yes; then
510 AC_LIBOBJ([setsockopt])
511 fi
512 gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
513 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
514 if test "$ac_cv_header_winsock2_h" = yes; then
515 AC_LIBOBJ([shutdown])
516 fi
517 gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
518 gl_SIZE_MAX
519 gl_FUNC_SNPRINTF
520 gl_STDIO_MODULE_INDICATOR([snprintf])
521 gl_MODULE_INDICATOR([snprintf])
522 AC_REQUIRE([gl_HEADER_SYS_SOCKET])
523 if test "$ac_cv_header_winsock2_h" = yes; then
524 AC_LIBOBJ([socket])
525 fi
526 # When this module is used, sockets may actually occur as file descriptors,
527 # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
528 m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
529 m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
530 AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
531 if test "$ac_cv_header_winsock2_h" = yes; then
532 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
533 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
534 fi
535 gl_SYS_SOCKET_MODULE_INDICATOR([socket])
536 gl_SOCKETLIB
537 gl_SOCKETS
538 gl_TYPE_SOCKLEN_T
539 gt_TYPE_SSIZE_T
540 gl_FUNC_STAT
541 if test $REPLACE_STAT = 1; then
542 AC_LIBOBJ([stat])
543 gl_PREREQ_STAT
544 fi
545 gl_SYS_STAT_MODULE_INDICATOR([stat])
546 gl_STAT_TIME
547 gl_STAT_BIRTHTIME
548 AM_STDBOOL_H
549 gl_STDDEF_H
550 gl_STDINT_H
551 gl_STDIO_H
552 gl_STDLIB_H
553 gl_FUNC_GNU_STRFTIME
554 if test $gl_cond_libtool = false; then
555 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
556 gl_libdeps="$gl_libdeps $LIBICONV"
557 fi
558 gl_HEADER_STRING_H
559 gl_HEADER_SYS_FILE_H
560 AC_PROG_MKDIR_P
561 gl_HEADER_SYS_SOCKET
562 AC_PROG_MKDIR_P
563 gl_HEADER_SYS_STAT_H
564 AC_PROG_MKDIR_P
565 gl_HEADER_SYS_TIME_H
566 AC_PROG_MKDIR_P
567 gl_HEADER_SYS_UIO
568 AC_PROG_MKDIR_P
569 gl_HEADER_TIME_H
570 gl_TIME_R
571 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
572 AC_LIBOBJ([time_r])
573 gl_PREREQ_TIME_R
574 fi
575 gl_TIME_MODULE_INDICATOR([time_r])
576 gl_FUNC_TRUNC
577 if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then
578 AC_LIBOBJ([trunc])
579 fi
580 gl_MATH_MODULE_INDICATOR([trunc])
581 gl_UNISTD_H
582 gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h])
583 gl_MODULE_INDICATOR([unistr/u8-mbtouc])
584 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc])
585 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
586 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc-unsafe])
587 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
588 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
589 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev])
590 gl_MODULE_INDICATOR([unistr/u8-uctomb])
591 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
592 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
593 gl_FUNC_VASNPRINTF
594 gl_FUNC_VSNPRINTF
595 gl_STDIO_MODULE_INDICATOR([vsnprintf])
596 AC_SUBST([WARN_CFLAGS])
597 gl_WCHAR_H
598 gl_FUNC_WRITE
599 if test $REPLACE_WRITE = 1; then
600 AC_LIBOBJ([write])
601 fi
602 gl_UNISTD_MODULE_INDICATOR([write])
603 gl_XSIZE
604 # End of code from modules
605 m4_ifval(gl_LIBSOURCES_LIST, [
606 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
607 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
608 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
609 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
610 exit 1
611 fi
612 done])dnl
613 m4_if(m4_sysval, [0], [],
614 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
615 ])
616 m4_popdef([gl_LIBSOURCES_DIR])
617 m4_popdef([gl_LIBSOURCES_LIST])
618 m4_popdef([AC_LIBSOURCES])
619 m4_popdef([AC_REPLACE_FUNCS])
620 m4_popdef([AC_LIBOBJ])
621 AC_CONFIG_COMMANDS_PRE([
622 gl_libobjs=
623 gl_ltlibobjs=
624 if test -n "$gl_LIBOBJS"; then
625 # Remove the extension.
626 sed_drop_objext='s/\.o$//;s/\.obj$//'
627 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
628 gl_libobjs="$gl_libobjs $i.$ac_objext"
629 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
630 done
631 fi
632 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
633 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
634 ])
635 gltests_libdeps=
636 gltests_ltlibdeps=
637 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
638 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
639 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
640 m4_pushdef([gltests_LIBSOURCES_LIST], [])
641 m4_pushdef([gltests_LIBSOURCES_DIR], [])
642 gl_COMMON
643 gl_source_base='tests'
644 changequote(,)dnl
645 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
646 changequote([, ])dnl
647 AC_SUBST([gltests_WITNESS])
648 gl_module_indicator_condition=$gltests_WITNESS
649 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
650 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
651 m4_ifval(gltests_LIBSOURCES_LIST, [
652 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
653 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
654 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
655 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
656 exit 1
657 fi
658 done])dnl
659 m4_if(m4_sysval, [0], [],
660 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
661 ])
662 m4_popdef([gltests_LIBSOURCES_DIR])
663 m4_popdef([gltests_LIBSOURCES_LIST])
664 m4_popdef([AC_LIBSOURCES])
665 m4_popdef([AC_REPLACE_FUNCS])
666 m4_popdef([AC_LIBOBJ])
667 AC_CONFIG_COMMANDS_PRE([
668 gltests_libobjs=
669 gltests_ltlibobjs=
670 if test -n "$gltests_LIBOBJS"; then
671 # Remove the extension.
672 sed_drop_objext='s/\.o$//;s/\.obj$//'
673 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
674 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
675 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
676 done
677 fi
678 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
679 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
680 ])
681 ])
682
683 # Like AC_LIBOBJ, except that the module name goes
684 # into gl_LIBOBJS instead of into LIBOBJS.
685 AC_DEFUN([gl_LIBOBJ], [
686 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
687 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
688 ])
689
690 # Like AC_REPLACE_FUNCS, except that the module name goes
691 # into gl_LIBOBJS instead of into LIBOBJS.
692 AC_DEFUN([gl_REPLACE_FUNCS], [
693 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
694 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
695 ])
696
697 # Like AC_LIBSOURCES, except the directory where the source file is
698 # expected is derived from the gnulib-tool parameterization,
699 # and alloca is special cased (for the alloca-opt module).
700 # We could also entirely rely on EXTRA_lib..._SOURCES.
701 AC_DEFUN([gl_LIBSOURCES], [
702 m4_foreach([_gl_NAME], [$1], [
703 m4_if(_gl_NAME, [alloca.c], [], [
704 m4_define([gl_LIBSOURCES_DIR], [lib])
705 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
706 ])
707 ])
708 ])
709
710 # Like AC_LIBOBJ, except that the module name goes
711 # into gltests_LIBOBJS instead of into LIBOBJS.
712 AC_DEFUN([gltests_LIBOBJ], [
713 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
714 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
715 ])
716
717 # Like AC_REPLACE_FUNCS, except that the module name goes
718 # into gltests_LIBOBJS instead of into LIBOBJS.
719 AC_DEFUN([gltests_REPLACE_FUNCS], [
720 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
721 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
722 ])
723
724 # Like AC_LIBSOURCES, except the directory where the source file is
725 # expected is derived from the gnulib-tool parameterization,
726 # and alloca is special cased (for the alloca-opt module).
727 # We could also entirely rely on EXTRA_lib..._SOURCES.
728 AC_DEFUN([gltests_LIBSOURCES], [
729 m4_foreach([_gl_NAME], [$1], [
730 m4_if(_gl_NAME, [alloca.c], [], [
731 m4_define([gltests_LIBSOURCES_DIR], [tests])
732 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
733 ])
734 ])
735 ])
736
737 # This macro records the list of files which have been installed by
738 # gnulib-tool and may be removed by future gnulib-tool invocations.
739 AC_DEFUN([gl_FILE_LIST], [
740 build-aux/announce-gen
741 build-aux/arg-nonnull.h
742 build-aux/c++defs.h
743 build-aux/config.rpath
744 build-aux/gendocs.sh
745 build-aux/git-version-gen
746 build-aux/gitlog-to-changelog
747 build-aux/gnu-web-doc-update
748 build-aux/gnupload
749 build-aux/unused-parameter.h
750 build-aux/useless-if-before-free
751 build-aux/vc-list-files
752 build-aux/warn-on-use.h
753 doc/gendocs_template
754 lib/accept.c
755 lib/alignof.h
756 lib/alloca.in.h
757 lib/arpa_inet.in.h
758 lib/asnprintf.c
759 lib/basename-lgpl.c
760 lib/binary-io.h
761 lib/bind.c
762 lib/byteswap.in.h
763 lib/c-ctype.c
764 lib/c-ctype.h
765 lib/c-strcase.h
766 lib/c-strcasecmp.c
767 lib/c-strcaseeq.h
768 lib/c-strncasecmp.c
769 lib/canonicalize-lgpl.c
770 lib/ceil.c
771 lib/close.c
772 lib/connect.c
773 lib/dirname-lgpl.c
774 lib/dirname.h
775 lib/dosname.h
776 lib/duplocale.c
777 lib/errno.in.h
778 lib/fclose.c
779 lib/fcntl.in.h
780 lib/fd-hook.c
781 lib/fd-hook.h
782 lib/fflush.c
783 lib/float+.h
784 lib/float.c
785 lib/float.in.h
786 lib/flock.c
787 lib/floor.c
788 lib/fpurge.c
789 lib/freading.c
790 lib/freading.h
791 lib/frexp.c
792 lib/fseek.c
793 lib/fseeko.c
794 lib/ftell.c
795 lib/ftello.c
796 lib/full-read.c
797 lib/full-read.h
798 lib/full-write.c
799 lib/full-write.h
800 lib/gai_strerror.c
801 lib/getaddrinfo.c
802 lib/getpeername.c
803 lib/getsockname.c
804 lib/getsockopt.c
805 lib/gettext.h
806 lib/iconv.c
807 lib/iconv.in.h
808 lib/iconv_close.c
809 lib/iconv_open-aix.gperf
810 lib/iconv_open-hpux.gperf
811 lib/iconv_open-irix.gperf
812 lib/iconv_open-osf.gperf
813 lib/iconv_open-solaris.gperf
814 lib/iconv_open.c
815 lib/iconveh.h
816 lib/inet_ntop.c
817 lib/inet_pton.c
818 lib/isinf.c
819 lib/isnan.c
820 lib/isnand-nolibm.h
821 lib/isnand.c
822 lib/isnanf.c
823 lib/isnanl.c
824 lib/libunistring.valgrind
825 lib/listen.c
826 lib/locale.in.h
827 lib/lseek.c
828 lib/lstat.c
829 lib/malloc.c
830 lib/malloca.c
831 lib/malloca.h
832 lib/malloca.valgrind
833 lib/math.in.h
834 lib/memchr.c
835 lib/memchr.valgrind
836 lib/netdb.in.h
837 lib/netinet_in.in.h
838 lib/nproc.c
839 lib/nproc.h
840 lib/open.c
841 lib/pathmax.h
842 lib/pipe2.c
843 lib/printf-args.c
844 lib/printf-args.h
845 lib/printf-parse.c
846 lib/printf-parse.h
847 lib/putenv.c
848 lib/read.c
849 lib/readlink.c
850 lib/recv.c
851 lib/recvfrom.c
852 lib/rename.c
853 lib/rmdir.c
854 lib/safe-read.c
855 lib/safe-read.h
856 lib/safe-write.c
857 lib/safe-write.h
858 lib/same-inode.h
859 lib/send.c
860 lib/sendto.c
861 lib/setsockopt.c
862 lib/shutdown.c
863 lib/size_max.h
864 lib/snprintf.c
865 lib/socket.c
866 lib/sockets.c
867 lib/sockets.h
868 lib/stat-time.h
869 lib/stat.c
870 lib/stdbool.in.h
871 lib/stddef.in.h
872 lib/stdint.in.h
873 lib/stdio-impl.h
874 lib/stdio.in.h
875 lib/stdlib.in.h
876 lib/strftime.c
877 lib/strftime.h
878 lib/striconveh.c
879 lib/striconveh.h
880 lib/string.in.h
881 lib/stripslash.c
882 lib/sys_file.in.h
883 lib/sys_socket.in.h
884 lib/sys_stat.in.h
885 lib/sys_time.in.h
886 lib/sys_uio.in.h
887 lib/time.in.h
888 lib/time_r.c
889 lib/trunc.c
890 lib/unistd.in.h
891 lib/unistr.in.h
892 lib/unistr/u8-mbtouc-aux.c
893 lib/unistr/u8-mbtouc-unsafe-aux.c
894 lib/unistr/u8-mbtouc-unsafe.c
895 lib/unistr/u8-mbtouc.c
896 lib/unistr/u8-mbtoucr.c
897 lib/unistr/u8-prev.c
898 lib/unistr/u8-uctomb-aux.c
899 lib/unistr/u8-uctomb.c
900 lib/unitypes.in.h
901 lib/vasnprintf.c
902 lib/vasnprintf.h
903 lib/verify.h
904 lib/vsnprintf.c
905 lib/w32sock.h
906 lib/wchar.in.h
907 lib/write.c
908 lib/xsize.h
909 m4/00gnulib.m4
910 m4/absolute-header.m4
911 m4/alloca.m4
912 m4/arpa_inet_h.m4
913 m4/autobuild.m4
914 m4/byteswap.m4
915 m4/canonicalize.m4
916 m4/ceil.m4
917 m4/check-math-lib.m4
918 m4/close.m4
919 m4/dirname.m4
920 m4/double-slash-root.m4
921 m4/duplocale.m4
922 m4/eealloc.m4
923 m4/environ.m4
924 m4/errno_h.m4
925 m4/exponentd.m4
926 m4/exponentf.m4
927 m4/exponentl.m4
928 m4/extensions.m4
929 m4/fclose.m4
930 m4/fcntl-o.m4
931 m4/fcntl_h.m4
932 m4/fflush.m4
933 m4/float_h.m4
934 m4/flock.m4
935 m4/floor.m4
936 m4/fpieee.m4
937 m4/fpurge.m4
938 m4/freading.m4
939 m4/frexp.m4
940 m4/fseek.m4
941 m4/fseeko.m4
942 m4/ftell.m4
943 m4/ftello.m4
944 m4/func.m4
945 m4/getaddrinfo.m4
946 m4/gnulib-common.m4
947 m4/hostent.m4
948 m4/iconv.m4
949 m4/iconv_h.m4
950 m4/iconv_open-utf.m4
951 m4/iconv_open.m4
952 m4/include_next.m4
953 m4/inet_ntop.m4
954 m4/inet_pton.m4
955 m4/inline.m4
956 m4/intmax_t.m4
957 m4/inttypes_h.m4
958 m4/isinf.m4
959 m4/isnan.m4
960 m4/isnand.m4
961 m4/isnanf.m4
962 m4/isnanl.m4
963 m4/ld-version-script.m4
964 m4/ldexp.m4
965 m4/lib-ld.m4
966 m4/lib-link.m4
967 m4/lib-prefix.m4
968 m4/libunistring-base.m4
969 m4/libunistring.m4
970 m4/locale_h.m4
971 m4/longlong.m4
972 m4/lseek.m4
973 m4/lstat.m4
974 m4/malloc.m4
975 m4/malloca.m4
976 m4/math_h.m4
977 m4/mathfunc.m4
978 m4/memchr.m4
979 m4/mmap-anon.m4
980 m4/mode_t.m4
981 m4/multiarch.m4
982 m4/netdb_h.m4
983 m4/netinet_in_h.m4
984 m4/nocrash.m4
985 m4/nproc.m4
986 m4/open.m4
987 m4/pathmax.m4
988 m4/pipe2.m4
989 m4/printf.m4
990 m4/putenv.m4
991 m4/read.m4
992 m4/readlink.m4
993 m4/rename.m4
994 m4/rmdir.m4
995 m4/safe-read.m4
996 m4/safe-write.m4
997 m4/servent.m4
998 m4/size_max.m4
999 m4/snprintf.m4
1000 m4/socketlib.m4
1001 m4/sockets.m4
1002 m4/socklen.m4
1003 m4/sockpfaf.m4
1004 m4/ssize_t.m4
1005 m4/stat-time.m4
1006 m4/stat.m4
1007 m4/stdbool.m4
1008 m4/stddef_h.m4
1009 m4/stdint.m4
1010 m4/stdint_h.m4
1011 m4/stdio_h.m4
1012 m4/stdlib_h.m4
1013 m4/strftime.m4
1014 m4/string_h.m4
1015 m4/sys_file_h.m4
1016 m4/sys_socket_h.m4
1017 m4/sys_stat_h.m4
1018 m4/sys_time_h.m4
1019 m4/sys_uio_h.m4
1020 m4/time_h.m4
1021 m4/time_r.m4
1022 m4/tm_gmtoff.m4
1023 m4/trunc.m4
1024 m4/unistd_h.m4
1025 m4/vasnprintf.m4
1026 m4/visibility.m4
1027 m4/vsnprintf.m4
1028 m4/warn-on-use.m4
1029 m4/warnings.m4
1030 m4/wchar_h.m4
1031 m4/wchar_t.m4
1032 m4/wint_t.m4
1033 m4/write.m4
1034 m4/xsize.m4
1035 top/GNUmakefile
1036 top/maint.mk
1037 ])