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