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