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