Update Gnulib to v0.0-5158-g7d06b32; remove `strcase' and `version-etc-fsf'.
[bpt/guile.git] / m4 / gnulib-comp.m4
CommitLineData
103dc4d4 1# DO NOT EDIT! GENERATED AUTOMATICALLY!
49114fd4 2# Copyright (C) 2002-2011 Free Software Foundation, Inc.
103dc4d4
LC
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.
2e65b52f
LC
15# In projects that use version control, this file can be treated like
16# other built files.
103dc4d4
LC
17
18
25361e4b 19# This macro should be invoked from ./configure.ac, in the section
103dc4d4
LC
20# "Checks for programs", right after AC_PROG_CC, and certainly before
21# any checks for libraries, header files, types and library functions.
22AC_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])
24d56127 29 AC_REQUIRE([AM_PROG_CC_C_O])
49114fd4 30 # Code from module accept:
f4c79b3c
LC
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:
ac47b09a 37 AB_INIT
49114fd4 38 # Code from module bind:
f4c79b3c
LC
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:
dd36ce77 45 # Code from module ceil:
49114fd4 46 # Code from module close:
49114fd4 47 # Code from module connect:
dd36ce77 48 # Code from module dosname:
f4c79b3c
LC
49 # Code from module duplocale:
50 # Code from module environ:
51 # Code from module errno:
52 # Code from module extensions:
103dc4d4 53 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
49114fd4 54 # Code from module fclose:
dd7d0148 55 # Code from module fd-hook:
f4c79b3c
LC
56 # Code from module float:
57 # Code from module flock:
b81eb646 58 # Code from module floor:
f4c79b3c 59 # Code from module fpieee:
f240aacb 60 AC_REQUIRE([gl_FP_IEEE])
dd36ce77 61 # Code from module frexp:
f4c79b3c
LC
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:
49114fd4
LC
67 # Code from module getpeername:
68 # Code from module getsockname:
69 # Code from module getsockopt:
f4c79b3c 70 # Code from module gettext-h:
5ad8e59f 71 # Code from module git-version-gen:
f4c79b3c
LC
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:
2e65b52f
LC
87 # Code from module isinf:
88 # Code from module isnan:
89 # Code from module isnand:
dd36ce77 90 # Code from module isnand-nolibm:
2e65b52f
LC
91 # Code from module isnanf:
92 # Code from module isnanl:
dd36ce77 93 # Code from module ldexp:
f4c79b3c
LC
94 # Code from module lib-symbol-versions:
95 # Code from module lib-symbol-visibility:
96 # Code from module libunistring:
49114fd4 97 # Code from module listen:
f4c79b3c 98 # Code from module locale:
b81eb646 99 # Code from module log1p:
f4c79b3c
LC
100 # Code from module lstat:
101 # Code from module maintainer-makefile:
49114fd4 102 # Code from module malloc-gnu:
f4c79b3c
LC
103 # Code from module malloc-posix:
104 # Code from module malloca:
2e65b52f 105 # Code from module math:
f4c79b3c
LC
106 # Code from module memchr:
107 # Code from module multiarch:
108 # Code from module netdb:
109 # Code from module netinet_in:
0f00f2c3 110 # Code from module nproc:
f4c79b3c
LC
111 # Code from module pathmax:
112 # Code from module putenv:
dd7d0148 113 # Code from module read:
f4c79b3c 114 # Code from module readlink:
49114fd4
LC
115 # Code from module recv:
116 # Code from module recvfrom:
f4c79b3c
LC
117 # Code from module safe-read:
118 # Code from module safe-write:
49114fd4
LC
119 # Code from module send:
120 # Code from module sendto:
f4c79b3c 121 # Code from module servent:
49114fd4
LC
122 # Code from module setsockopt:
123 # Code from module shutdown:
f4c79b3c
LC
124 # Code from module size_max:
125 # Code from module snprintf:
49114fd4 126 # Code from module socket:
0f00f2c3
LC
127 # Code from module socketlib:
128 # Code from module sockets:
f4c79b3c
LC
129 # Code from module socklen:
130 # Code from module ssize_t:
131 # Code from module stat:
9157d901 132 # Code from module stat-time:
f4c79b3c
LC
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:
f4c79b3c
LC
138 # Code from module strftime:
139 # Code from module striconveh:
140 # Code from module string:
f4c79b3c
LC
141 # Code from module sys_file:
142 # Code from module sys_socket:
143 # Code from module sys_stat:
49114fd4 144 # Code from module sys_time:
dd7d0148 145 # Code from module sys_uio:
f4c79b3c
LC
146 # Code from module time:
147 # Code from module time_r:
49114fd4 148 # Code from module trunc:
f4c79b3c
LC
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:
f4c79b3c
LC
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:
103dc4d4
LC
168])
169
25361e4b 170# This macro should be invoked from ./configure.ac, in the section
103dc4d4
LC
171# "Check for header files, types and library functions".
172AC_DEFUN([gl_INIT],
173[
174 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
175 gl_cond_libtool=true
a927b6c1 176 gl_m4_base='m4'
103dc4d4
LC
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'
49114fd4
LC
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])
f4c79b3c
LC
190 # Code from module alignof:
191 # Code from module alloca-opt:
103dc4d4 192 gl_FUNC_ALLOCA
f4c79b3c
LC
193 # Code from module announce-gen:
194 # Code from module arg-nonnull:
195 # Code from module arpa_inet:
8912421c
LC
196 gl_HEADER_ARPA_INET
197 AC_PROG_MKDIR_P
f4c79b3c 198 # Code from module autobuild:
49114fd4
LC
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])
f4c79b3c 205 # Code from module byteswap:
24d56127 206 gl_BYTESWAP
f4c79b3c
LC
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:
ffca4c22
AW
212 gl_CANONICALIZE_LGPL
213 gl_MODULE_INDICATOR([canonicalize-lgpl])
8912421c
LC
214 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
215 gl_STDLIB_MODULE_INDICATOR([realpath])
dd36ce77
MW
216 # Code from module ceil:
217 gl_FUNC_CEIL
218 gl_MATH_MODULE_INDICATOR([ceil])
49114fd4
LC
219 # Code from module close:
220 gl_FUNC_CLOSE
221 gl_UNISTD_MODULE_INDICATOR([close])
49114fd4
LC
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])
dd36ce77 228 # Code from module dosname:
f4c79b3c 229 # Code from module duplocale:
c3b16a5d
LC
230 gl_FUNC_DUPLOCALE
231 gl_LOCALE_MODULE_INDICATOR([duplocale])
f4c79b3c 232 # Code from module environ:
b579617b
AW
233 gl_ENVIRON
234 gl_UNISTD_MODULE_INDICATOR([environ])
f4c79b3c 235 # Code from module errno:
c4b681fd 236 gl_HEADER_ERRNO_H
f4c79b3c 237 # Code from module extensions:
49114fd4
LC
238 # Code from module fclose:
239 gl_FUNC_FCLOSE
240 gl_STDIO_MODULE_INDICATOR([fclose])
dd7d0148 241 # Code from module fd-hook:
f4c79b3c 242 # Code from module float:
c4b681fd 243 gl_FLOAT_H
f4c79b3c 244 # Code from module flock:
f240aacb
LC
245 gl_FUNC_FLOCK
246 gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock])
b81eb646
LC
247 # Code from module floor:
248 gl_FUNC_FLOOR
249 gl_MATH_MODULE_INDICATOR([floor])
f4c79b3c 250 # Code from module fpieee:
dd36ce77
MW
251 # Code from module frexp:
252 gl_FUNC_FREXP
253 gl_MATH_MODULE_INDICATOR([frexp])
f4c79b3c
LC
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:
61cd9dc9
LC
260 gl_GETADDRINFO
261 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
49114fd4
LC
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])
f4c79b3c 280 # Code from module gettext-h:
4f02b98d
LC
281 AC_SUBST([LIBINTL])
282 AC_SUBST([LTLIBINTL])
5ad8e59f 283 # Code from module git-version-gen:
f4c79b3c
LC
284 # Code from module gitlog-to-changelog:
285 # Code from module gnu-web-doc-update:
286 # Code from module gnumakefile:
c84bdaf6
LC
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],
dd7d0148 294 m4_defn([m4_PACKAGE_VERSION])), [1], [],
c84bdaf6 295 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
dd7d0148 296 [GNUmakefile=$GNUmakefile])])
f4c79b3c
LC
297 # Code from module gnupload:
298 # Code from module gperf:
299 # Code from module havelib:
300 # Code from module hostent:
61cd9dc9 301 gl_HOSTENT
f4c79b3c 302 # Code from module iconv:
24d56127 303 AM_ICONV
ab4d62ad
LC
304 m4_ifdef([gl_ICONV_MODULE_INDICATOR],
305 [gl_ICONV_MODULE_INDICATOR([iconv])])
f4c79b3c 306 # Code from module iconv-h:
24d56127 307 gl_ICONV_H
f4c79b3c 308 # Code from module iconv_open:
24d56127 309 gl_FUNC_ICONV_OPEN
f4c79b3c 310 # Code from module iconv_open-utf:
24d56127 311 gl_FUNC_ICONV_OPEN_UTF
f4c79b3c
LC
312 # Code from module include_next:
313 # Code from module inet_ntop:
a927b6c1 314 gl_FUNC_INET_NTOP
8912421c 315 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
f4c79b3c 316 # Code from module inet_pton:
a927b6c1 317 gl_FUNC_INET_PTON
8912421c 318 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
f4c79b3c 319 # Code from module inline:
d7014610 320 gl_INLINE
2e65b52f
LC
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])
dd36ce77
MW
330 # Code from module isnand-nolibm:
331 gl_FUNC_ISNAND_NO_LIBM
2e65b52f
LC
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])
dd36ce77
MW
338 # Code from module ldexp:
339 gl_FUNC_LDEXP
f4c79b3c 340 # Code from module lib-symbol-versions:
25361e4b 341 gl_LD_VERSION_SCRIPT
f4c79b3c 342 # Code from module lib-symbol-visibility:
d9a9e182 343 gl_VISIBILITY
f4c79b3c 344 # Code from module libunistring:
24d56127 345 gl_LIBUNISTRING
49114fd4
LC
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])
f4c79b3c 352 # Code from module locale:
414e4441 353 gl_LOCALE_H
b81eb646
LC
354 # Code from module log1p:
355 gl_COMMON_DOUBLE_MATHFUNC([log1p])
f4c79b3c 356 # Code from module lstat:
8912421c
LC
357 gl_FUNC_LSTAT
358 gl_SYS_STAT_MODULE_INDICATOR([lstat])
f4c79b3c 359 # Code from module maintainer-makefile:
61cd9dc9
LC
360 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
361 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
49114fd4
LC
362 # Code from module malloc-gnu:
363 gl_FUNC_MALLOC_GNU
364 gl_MODULE_INDICATOR([malloc-gnu])
f4c79b3c 365 # Code from module malloc-posix:
f240aacb
LC
366 gl_FUNC_MALLOC_POSIX
367 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
f4c79b3c 368 # Code from module malloca:
ffca4c22 369 gl_MALLOCA
2e65b52f
LC
370 # Code from module math:
371 gl_MATH_H
f4c79b3c 372 # Code from module memchr:
c4b681fd
LC
373 gl_FUNC_MEMCHR
374 gl_STRING_MODULE_INDICATOR([memchr])
f4c79b3c 375 # Code from module multiarch:
f240aacb 376 gl_MULTIARCH
f4c79b3c 377 # Code from module netdb:
61cd9dc9 378 gl_HEADER_NETDB
f4c79b3c 379 # Code from module netinet_in:
8912421c
LC
380 gl_HEADER_NETINET_IN
381 AC_PROG_MKDIR_P
0f00f2c3
LC
382 # Code from module nproc:
383 gl_NPROC
f4c79b3c 384 # Code from module pathmax:
ffca4c22 385 gl_PATHMAX
f4c79b3c 386 # Code from module putenv:
f240aacb
LC
387 gl_FUNC_PUTENV
388 gl_STDLIB_MODULE_INDICATOR([putenv])
dd7d0148
LC
389 # Code from module read:
390 gl_FUNC_READ
391 gl_UNISTD_MODULE_INDICATOR([read])
f4c79b3c 392 # Code from module readlink:
ffca4c22
AW
393 gl_FUNC_READLINK
394 gl_UNISTD_MODULE_INDICATOR([readlink])
49114fd4
LC
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])
f4c79b3c 407 # Code from module safe-read:
9b36a80c 408 gl_SAFE_READ
f4c79b3c 409 # Code from module safe-write:
9b36a80c 410 gl_SAFE_WRITE
49114fd4
LC
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])
f4c79b3c 423 # Code from module servent:
61cd9dc9 424 gl_SERVENT
49114fd4
LC
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])
f4c79b3c 437 # Code from module size_max:
c4b681fd 438 gl_SIZE_MAX
f4c79b3c 439 # Code from module snprintf:
61cd9dc9
LC
440 gl_FUNC_SNPRINTF
441 gl_STDIO_MODULE_INDICATOR([snprintf])
49114fd4
LC
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])
0f00f2c3
LC
458 # Code from module socketlib:
459 gl_SOCKETLIB
460 # Code from module sockets:
461 gl_SOCKETS
f4c79b3c 462 # Code from module socklen:
8912421c 463 gl_TYPE_SOCKLEN_T
f4c79b3c 464 # Code from module ssize_t:
9b36a80c 465 gt_TYPE_SSIZE_T
f4c79b3c 466 # Code from module stat:
8912421c
LC
467 gl_FUNC_STAT
468 gl_SYS_STAT_MODULE_INDICATOR([stat])
9157d901
LC
469 # Code from module stat-time:
470 gl_STAT_TIME
471 gl_STAT_BIRTHTIME
f4c79b3c 472 # Code from module stdbool:
e65fc94b 473 AM_STDBOOL_H
f4c79b3c 474 # Code from module stddef:
8912421c 475 gl_STDDEF_H
f4c79b3c 476 # Code from module stdint:
f240aacb 477 gl_STDINT_H
f4c79b3c 478 # Code from module stdio:
c4b681fd 479 gl_STDIO_H
f4c79b3c 480 # Code from module stdlib:
f240aacb 481 gl_STDLIB_H
f4c79b3c 482 # Code from module strftime:
e65fc94b 483 gl_FUNC_GNU_STRFTIME
f4c79b3c 484 # Code from module striconveh:
24d56127
LC
485 if test $gl_cond_libtool = false; then
486 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
487 gl_libdeps="$gl_libdeps $LIBICONV"
488 fi
f4c79b3c 489 # Code from module string:
24d56127 490 gl_HEADER_STRING_H
f4c79b3c 491 # Code from module sys_file:
f240aacb
LC
492 gl_HEADER_SYS_FILE_H
493 AC_PROG_MKDIR_P
f4c79b3c 494 # Code from module sys_socket:
8912421c
LC
495 gl_HEADER_SYS_SOCKET
496 AC_PROG_MKDIR_P
f4c79b3c 497 # Code from module sys_stat:
8912421c
LC
498 gl_HEADER_SYS_STAT_H
499 AC_PROG_MKDIR_P
49114fd4
LC
500 # Code from module sys_time:
501 gl_HEADER_SYS_TIME_H
502 AC_PROG_MKDIR_P
dd7d0148
LC
503 # Code from module sys_uio:
504 gl_HEADER_SYS_UIO
505 AC_PROG_MKDIR_P
f4c79b3c 506 # Code from module time:
e65fc94b 507 gl_HEADER_TIME_H
f4c79b3c 508 # Code from module time_r:
e65fc94b 509 gl_TIME_R
f4c79b3c 510 gl_TIME_MODULE_INDICATOR([time_r])
49114fd4
LC
511 # Code from module trunc:
512 gl_FUNC_TRUNC
513 gl_MATH_MODULE_INDICATOR([trunc])
f4c79b3c 514 # Code from module unistd:
9b36a80c 515 gl_UNISTD_H
f4c79b3c 516 # Code from module unistr/base:
a927b6c1 517 gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h])
f4c79b3c 518 # Code from module unistr/u8-mbtouc:
24d56127 519 gl_MODULE_INDICATOR([unistr/u8-mbtouc])
0f00f2c3 520 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc])
f4c79b3c 521 # Code from module unistr/u8-mbtouc-unsafe:
24d56127 522 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
0f00f2c3 523 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc-unsafe])
f4c79b3c 524 # Code from module unistr/u8-mbtoucr:
24d56127 525 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
6f32e5c7 526 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
f4c79b3c 527 # Code from module unistr/u8-prev:
6f32e5c7 528 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev])
f4c79b3c 529 # Code from module unistr/u8-uctomb:
24d56127 530 gl_MODULE_INDICATOR([unistr/u8-uctomb])
6f32e5c7 531 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
f4c79b3c 532 # Code from module unitypes:
a927b6c1 533 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
f4c79b3c
LC
534 # Code from module unused-parameter:
535 # Code from module useless-if-before-free:
536 # Code from module vasnprintf:
c4b681fd 537 gl_FUNC_VASNPRINTF
f4c79b3c
LC
538 # Code from module vc-list-files:
539 # Code from module verify:
f4c79b3c 540 # Code from module vsnprintf:
c4b681fd
LC
541 gl_FUNC_VSNPRINTF
542 gl_STDIO_MODULE_INDICATOR([vsnprintf])
f4c79b3c
LC
543 # Code from module warn-on-use:
544 # Code from module warnings:
f29ded4b 545 AC_SUBST([WARN_CFLAGS])
f4c79b3c 546 # Code from module wchar:
e65fc94b 547 gl_WCHAR_H
f4c79b3c 548 # Code from module write:
9b36a80c
LC
549 gl_FUNC_WRITE
550 gl_UNISTD_MODULE_INDICATOR([write])
f4c79b3c 551 # Code from module xsize:
c4b681fd 552 gl_XSIZE
f4c79b3c 553 # End of code from modules
103dc4d4
LC
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$//'
1cd4fffc 576 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
103dc4d4
LC
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'
a927b6c1
LC
593changequote(,)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
595changequote([, ])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])
103dc4d4
LC
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$//'
1cd4fffc 622 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
103dc4d4
LC
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.
634AC_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.
641AC_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.
650AC_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.
661AC_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.
668AC_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.
677AC_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.
688AC_DEFUN([gl_FILE_LIST], [
c84bdaf6 689 build-aux/announce-gen
1cd4fffc 690 build-aux/arg-nonnull.h
f4c79b3c 691 build-aux/c++defs.h
24d56127 692 build-aux/config.rpath
c84bdaf6 693 build-aux/gendocs.sh
5ad8e59f 694 build-aux/git-version-gen
c84bdaf6
LC
695 build-aux/gitlog-to-changelog
696 build-aux/gnu-web-doc-update
697 build-aux/gnupload
61cd9dc9 698 build-aux/unused-parameter.h
c84bdaf6
LC
699 build-aux/useless-if-before-free
700 build-aux/vc-list-files
61cd9dc9 701 build-aux/warn-on-use.h
c84bdaf6 702 doc/gendocs_template
49114fd4 703 lib/accept.c
8912421c 704 lib/alignof.h
103dc4d4 705 lib/alloca.in.h
8912421c 706 lib/arpa_inet.in.h
c4b681fd 707 lib/asnprintf.c
49114fd4 708 lib/bind.c
24d56127
LC
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
ffca4c22 716 lib/canonicalize-lgpl.c
dd36ce77 717 lib/ceil.c
49114fd4
LC
718 lib/close.c
719 lib/connect.c
dd36ce77 720 lib/dosname.h
c3b16a5d 721 lib/duplocale.c
c4b681fd 722 lib/errno.in.h
49114fd4 723 lib/fclose.c
dd7d0148
LC
724 lib/fd-hook.c
725 lib/fd-hook.h
c4b681fd
LC
726 lib/float+.h
727 lib/float.in.h
f240aacb 728 lib/flock.c
b81eb646 729 lib/floor.c
dd36ce77 730 lib/frexp.c
9b36a80c
LC
731 lib/full-read.c
732 lib/full-read.h
733 lib/full-write.c
734 lib/full-write.h
61cd9dc9
LC
735 lib/gai_strerror.c
736 lib/getaddrinfo.c
49114fd4
LC
737 lib/getpeername.c
738 lib/getsockname.c
739 lib/getsockopt.c
4f02b98d 740 lib/gettext.h
24d56127
LC
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
8912421c 748 lib/iconv_open-solaris.gperf
24d56127
LC
749 lib/iconv_open.c
750 lib/iconveh.h
8912421c
LC
751 lib/inet_ntop.c
752 lib/inet_pton.c
2e65b52f
LC
753 lib/isinf.c
754 lib/isnan.c
dd36ce77 755 lib/isnand-nolibm.h
2e65b52f
LC
756 lib/isnand.c
757 lib/isnanf.c
758 lib/isnanl.c
a927b6c1 759 lib/libunistring.valgrind
49114fd4 760 lib/listen.c
414e4441 761 lib/locale.in.h
8912421c 762 lib/lstat.c
f240aacb 763 lib/malloc.c
ffca4c22
AW
764 lib/malloca.c
765 lib/malloca.h
766 lib/malloca.valgrind
2e65b52f 767 lib/math.in.h
c4b681fd
LC
768 lib/memchr.c
769 lib/memchr.valgrind
61cd9dc9 770 lib/netdb.in.h
8912421c 771 lib/netinet_in.in.h
0f00f2c3
LC
772 lib/nproc.c
773 lib/nproc.h
ffca4c22 774 lib/pathmax.h
c4b681fd
LC
775 lib/printf-args.c
776 lib/printf-args.h
777 lib/printf-parse.c
778 lib/printf-parse.h
f240aacb 779 lib/putenv.c
dd7d0148 780 lib/read.c
ffca4c22 781 lib/readlink.c
49114fd4
LC
782 lib/recv.c
783 lib/recvfrom.c
9b36a80c
LC
784 lib/safe-read.c
785 lib/safe-read.h
786 lib/safe-write.c
787 lib/safe-write.h
49114fd4
LC
788 lib/send.c
789 lib/sendto.c
790 lib/setsockopt.c
791 lib/shutdown.c
c4b681fd 792 lib/size_max.h
61cd9dc9 793 lib/snprintf.c
49114fd4 794 lib/socket.c
0f00f2c3
LC
795 lib/sockets.c
796 lib/sockets.h
9157d901 797 lib/stat-time.h
8912421c 798 lib/stat.c
e65fc94b 799 lib/stdbool.in.h
8912421c 800 lib/stddef.in.h
f240aacb 801 lib/stdint.in.h
c4b681fd 802 lib/stdio.in.h
f240aacb 803 lib/stdlib.in.h
e65fc94b
LC
804 lib/strftime.c
805 lib/strftime.h
24d56127
LC
806 lib/striconveh.c
807 lib/striconveh.h
808 lib/string.in.h
f240aacb 809 lib/sys_file.in.h
8912421c
LC
810 lib/sys_socket.in.h
811 lib/sys_stat.in.h
49114fd4 812 lib/sys_time.in.h
dd7d0148 813 lib/sys_uio.in.h
e65fc94b
LC
814 lib/time.in.h
815 lib/time_r.c
49114fd4 816 lib/trunc.c
9b36a80c 817 lib/unistd.in.h
a927b6c1 818 lib/unistr.in.h
24d56127
LC
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
a927b6c1 827 lib/unitypes.in.h
c4b681fd
LC
828 lib/vasnprintf.c
829 lib/vasnprintf.h
d7014610 830 lib/verify.h
c4b681fd 831 lib/vsnprintf.c
0f00f2c3 832 lib/w32sock.h
e65fc94b 833 lib/wchar.in.h
9b36a80c 834 lib/write.c
c4b681fd 835 lib/xsize.h
f240aacb 836 m4/00gnulib.m4
a927b6c1 837 m4/absolute-header.m4
103dc4d4 838 m4/alloca.m4
8912421c 839 m4/arpa_inet_h.m4
ac47b09a 840 m4/autobuild.m4
24d56127 841 m4/byteswap.m4
8912421c 842 m4/canonicalize.m4
b81eb646 843 m4/ceil.m4
2e65b52f 844 m4/check-math-lib.m4
49114fd4 845 m4/close.m4
8912421c 846 m4/double-slash-root.m4
c3b16a5d 847 m4/duplocale.m4
ffca4c22 848 m4/eealloc.m4
b579617b 849 m4/environ.m4
c4b681fd 850 m4/errno_h.m4
2e65b52f
LC
851 m4/exponentd.m4
852 m4/exponentf.m4
853 m4/exponentl.m4
103dc4d4 854 m4/extensions.m4
49114fd4 855 m4/fclose.m4
c4b681fd 856 m4/float_h.m4
f240aacb 857 m4/flock.m4
b81eb646 858 m4/floor.m4
f240aacb 859 m4/fpieee.m4
dd36ce77 860 m4/frexp.m4
f4c79b3c 861 m4/func.m4
61cd9dc9 862 m4/getaddrinfo.m4
103dc4d4 863 m4/gnulib-common.m4
61cd9dc9 864 m4/hostent.m4
24d56127
LC
865 m4/iconv.m4
866 m4/iconv_h.m4
867 m4/iconv_open.m4
103dc4d4 868 m4/include_next.m4
8912421c
LC
869 m4/inet_ntop.m4
870 m4/inet_pton.m4
d7014610 871 m4/inline.m4
c4b681fd
LC
872 m4/intmax_t.m4
873 m4/inttypes_h.m4
2e65b52f
LC
874 m4/isinf.m4
875 m4/isnan.m4
876 m4/isnand.m4
877 m4/isnanf.m4
878 m4/isnanl.m4
25361e4b 879 m4/ld-version-script.m4
dd36ce77 880 m4/ldexp.m4
24d56127
LC
881 m4/lib-ld.m4
882 m4/lib-link.m4
883 m4/lib-prefix.m4
a927b6c1 884 m4/libunistring-base.m4
24d56127 885 m4/libunistring.m4
414e4441 886 m4/locale_h.m4
f240aacb 887 m4/longlong.m4
8912421c 888 m4/lstat.m4
f240aacb 889 m4/malloc.m4
ffca4c22 890 m4/malloca.m4
2e65b52f 891 m4/math_h.m4
b81eb646 892 m4/mathfunc.m4
c4b681fd
LC
893 m4/memchr.m4
894 m4/mmap-anon.m4
f240aacb 895 m4/multiarch.m4
61cd9dc9 896 m4/netdb_h.m4
8912421c 897 m4/netinet_in_h.m4
0f00f2c3 898 m4/nproc.m4
ffca4c22 899 m4/pathmax.m4
c4b681fd 900 m4/printf.m4
f240aacb 901 m4/putenv.m4
dd7d0148 902 m4/read.m4
ffca4c22 903 m4/readlink.m4
9b36a80c
LC
904 m4/safe-read.m4
905 m4/safe-write.m4
61cd9dc9 906 m4/servent.m4
c4b681fd 907 m4/size_max.m4
61cd9dc9 908 m4/snprintf.m4
0f00f2c3
LC
909 m4/socketlib.m4
910 m4/sockets.m4
8912421c
LC
911 m4/socklen.m4
912 m4/sockpfaf.m4
9b36a80c 913 m4/ssize_t.m4
9157d901 914 m4/stat-time.m4
8912421c 915 m4/stat.m4
e65fc94b 916 m4/stdbool.m4
8912421c 917 m4/stddef_h.m4
f240aacb 918 m4/stdint.m4
c4b681fd
LC
919 m4/stdint_h.m4
920 m4/stdio_h.m4
f240aacb 921 m4/stdlib_h.m4
e65fc94b 922 m4/strftime.m4
24d56127 923 m4/string_h.m4
f240aacb 924 m4/sys_file_h.m4
8912421c
LC
925 m4/sys_socket_h.m4
926 m4/sys_stat_h.m4
49114fd4 927 m4/sys_time_h.m4
dd7d0148 928 m4/sys_uio_h.m4
e65fc94b
LC
929 m4/time_h.m4
930 m4/time_r.m4
931 m4/tm_gmtoff.m4
49114fd4 932 m4/trunc.m4
9b36a80c 933 m4/unistd_h.m4
c4b681fd 934 m4/vasnprintf.m4
d9a9e182 935 m4/visibility.m4
c4b681fd 936 m4/vsnprintf.m4
61cd9dc9 937 m4/warn-on-use.m4
f29ded4b 938 m4/warnings.m4
f4c79b3c 939 m4/wchar_h.m4
c4b681fd 940 m4/wchar_t.m4
aa7a939c 941 m4/wint_t.m4
9b36a80c 942 m4/write.m4
c4b681fd 943 m4/xsize.m4
c84bdaf6
LC
944 top/GNUmakefile
945 top/maint.mk
103dc4d4 946])