Merge wip-array refactor, up to cd43fdc5b7a7c
[bpt/guile.git] / m4 / gnulib-comp.m4
CommitLineData
103dc4d4 1# DO NOT EDIT! GENERATED AUTOMATICALLY!
4a462e35 2# Copyright (C) 2002-2009 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.
15# In projects using CVS, this file can be treated like other built files.
16
17
25361e4b 18# This macro should be invoked from ./configure.ac, in the section
103dc4d4
LC
19# "Checks for programs", right after AC_PROG_CC, and certainly before
20# any checks for libraries, header files, types and library functions.
21AC_DEFUN([gl_EARLY],
22[
23 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
24 m4_pattern_allow([^gl_ES$])dnl a valid locale name
25 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
26 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
27 AC_REQUIRE([AC_PROG_RANLIB])
24d56127 28 AC_REQUIRE([AM_PROG_CC_C_O])
ac47b09a 29 AB_INIT
103dc4d4 30 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
f240aacb 31 AC_REQUIRE([gl_FP_IEEE])
103dc4d4
LC
32])
33
25361e4b 34# This macro should be invoked from ./configure.ac, in the section
103dc4d4
LC
35# "Check for header files, types and library functions".
36AC_DEFUN([gl_INIT],
37[
38 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
39 gl_cond_libtool=true
40 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
41 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
42 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
43 m4_pushdef([gl_LIBSOURCES_LIST], [])
44 m4_pushdef([gl_LIBSOURCES_DIR], [])
45 gl_COMMON
46 gl_source_base='lib'
103dc4d4 47 gl_FUNC_ALLOCA
24d56127 48 gl_BYTESWAP
ffca4c22
AW
49 gl_CANONICALIZE_LGPL
50 gl_MODULE_INDICATOR([canonicalize-lgpl])
d7014610 51 gl_COUNT_ONE_BITS
b579617b
AW
52 gl_ENVIRON
53 gl_UNISTD_MODULE_INDICATOR([environ])
c4b681fd
LC
54 gl_HEADER_ERRNO_H
55 gl_FLOAT_H
f240aacb
LC
56 gl_FUNC_FLOCK
57 gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock])
c4b681fd
LC
58 gl_FUNC_GETPAGESIZE
59 gl_UNISTD_MODULE_INDICATOR([getpagesize])
24d56127
LC
60 AM_ICONV
61 gl_ICONV_H
62 gl_FUNC_ICONV_OPEN
63 gl_FUNC_ICONV_OPEN_UTF
d7014610 64 gl_INLINE
25361e4b 65 gl_LD_VERSION_SCRIPT
d9a9e182 66 gl_VISIBILITY
24d56127 67 gl_LIBUNISTRING
4a462e35
NJ
68 gl_LOCALCHARSET
69 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
70 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
f240aacb
LC
71 gl_FUNC_MALLOC_POSIX
72 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
ffca4c22 73 gl_MALLOCA
4a462e35
NJ
74 gl_FUNC_MBRLEN
75 gl_WCHAR_MODULE_INDICATOR([mbrlen])
76 gl_FUNC_MBRTOWC
77 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
78 gl_FUNC_MBSINIT
79 gl_WCHAR_MODULE_INDICATOR([mbsinit])
c4b681fd
LC
80 gl_FUNC_MEMCHR
81 gl_STRING_MODULE_INDICATOR([memchr])
f240aacb 82 gl_MULTIARCH
ffca4c22 83 gl_PATHMAX
f240aacb
LC
84 gl_FUNC_PUTENV
85 gl_STDLIB_MODULE_INDICATOR([putenv])
ffca4c22
AW
86 gl_FUNC_READLINK
87 gl_UNISTD_MODULE_INDICATOR([readlink])
9b36a80c
LC
88 gl_SAFE_READ
89 gl_SAFE_WRITE
c4b681fd 90 gl_SIZE_MAX
9b36a80c 91 gt_TYPE_SSIZE_T
e65fc94b 92 AM_STDBOOL_H
f240aacb 93 gl_STDINT_H
c4b681fd 94 gl_STDIO_H
f240aacb 95 gl_STDLIB_H
103dc4d4 96 gl_STRCASE
e65fc94b 97 gl_FUNC_GNU_STRFTIME
24d56127
LC
98 if test $gl_cond_libtool = false; then
99 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
100 gl_libdeps="$gl_libdeps $LIBICONV"
101 fi
102 gl_HEADER_STRING_H
103dc4d4 103 gl_HEADER_STRINGS_H
f240aacb
LC
104 gl_HEADER_SYS_FILE_H
105 AC_PROG_MKDIR_P
e65fc94b
LC
106 gl_HEADER_TIME_H
107 gl_TIME_R
9b36a80c 108 gl_UNISTD_H
24d56127
LC
109 gl_MODULE_INDICATOR([unistr/u8-mbtouc])
110 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
111 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
112 gl_MODULE_INDICATOR([unistr/u8-uctomb])
c4b681fd
LC
113 gl_FUNC_VASNPRINTF
114 gl_FUNC_VSNPRINTF
115 gl_STDIO_MODULE_INDICATOR([vsnprintf])
e65fc94b 116 gl_WCHAR_H
9b36a80c
LC
117 gl_FUNC_WRITE
118 gl_UNISTD_MODULE_INDICATOR([write])
c4b681fd 119 gl_XSIZE
103dc4d4
LC
120 m4_ifval(gl_LIBSOURCES_LIST, [
121 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
122 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
123 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
124 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
125 exit 1
126 fi
127 done])dnl
128 m4_if(m4_sysval, [0], [],
129 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
130 ])
131 m4_popdef([gl_LIBSOURCES_DIR])
132 m4_popdef([gl_LIBSOURCES_LIST])
133 m4_popdef([AC_LIBSOURCES])
134 m4_popdef([AC_REPLACE_FUNCS])
135 m4_popdef([AC_LIBOBJ])
136 AC_CONFIG_COMMANDS_PRE([
137 gl_libobjs=
138 gl_ltlibobjs=
139 if test -n "$gl_LIBOBJS"; then
140 # Remove the extension.
141 sed_drop_objext='s/\.o$//;s/\.obj$//'
142 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
143 gl_libobjs="$gl_libobjs $i.$ac_objext"
144 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
145 done
146 fi
147 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
148 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
149 ])
150 gltests_libdeps=
151 gltests_ltlibdeps=
152 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
153 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
154 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
155 m4_pushdef([gltests_LIBSOURCES_LIST], [])
156 m4_pushdef([gltests_LIBSOURCES_DIR], [])
157 gl_COMMON
158 gl_source_base='tests'
159 m4_ifval(gltests_LIBSOURCES_LIST, [
160 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
161 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
162 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
163 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
164 exit 1
165 fi
166 done])dnl
167 m4_if(m4_sysval, [0], [],
168 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
169 ])
170 m4_popdef([gltests_LIBSOURCES_DIR])
171 m4_popdef([gltests_LIBSOURCES_LIST])
172 m4_popdef([AC_LIBSOURCES])
173 m4_popdef([AC_REPLACE_FUNCS])
174 m4_popdef([AC_LIBOBJ])
175 AC_CONFIG_COMMANDS_PRE([
176 gltests_libobjs=
177 gltests_ltlibobjs=
178 if test -n "$gltests_LIBOBJS"; then
179 # Remove the extension.
180 sed_drop_objext='s/\.o$//;s/\.obj$//'
181 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
182 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
183 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
184 done
185 fi
186 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
187 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
188 ])
189])
190
191# Like AC_LIBOBJ, except that the module name goes
192# into gl_LIBOBJS instead of into LIBOBJS.
193AC_DEFUN([gl_LIBOBJ], [
194 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
195 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
196])
197
198# Like AC_REPLACE_FUNCS, except that the module name goes
199# into gl_LIBOBJS instead of into LIBOBJS.
200AC_DEFUN([gl_REPLACE_FUNCS], [
201 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
202 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
203])
204
205# Like AC_LIBSOURCES, except the directory where the source file is
206# expected is derived from the gnulib-tool parameterization,
207# and alloca is special cased (for the alloca-opt module).
208# We could also entirely rely on EXTRA_lib..._SOURCES.
209AC_DEFUN([gl_LIBSOURCES], [
210 m4_foreach([_gl_NAME], [$1], [
211 m4_if(_gl_NAME, [alloca.c], [], [
212 m4_define([gl_LIBSOURCES_DIR], [lib])
213 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
214 ])
215 ])
216])
217
218# Like AC_LIBOBJ, except that the module name goes
219# into gltests_LIBOBJS instead of into LIBOBJS.
220AC_DEFUN([gltests_LIBOBJ], [
221 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
222 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
223])
224
225# Like AC_REPLACE_FUNCS, except that the module name goes
226# into gltests_LIBOBJS instead of into LIBOBJS.
227AC_DEFUN([gltests_REPLACE_FUNCS], [
228 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
229 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
230])
231
232# Like AC_LIBSOURCES, except the directory where the source file is
233# expected is derived from the gnulib-tool parameterization,
234# and alloca is special cased (for the alloca-opt module).
235# We could also entirely rely on EXTRA_lib..._SOURCES.
236AC_DEFUN([gltests_LIBSOURCES], [
237 m4_foreach([_gl_NAME], [$1], [
238 m4_if(_gl_NAME, [alloca.c], [], [
239 m4_define([gltests_LIBSOURCES_DIR], [tests])
240 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
241 ])
242 ])
243])
244
245# This macro records the list of files which have been installed by
246# gnulib-tool and may be removed by future gnulib-tool invocations.
247AC_DEFUN([gl_FILE_LIST], [
24d56127 248 build-aux/config.rpath
103dc4d4 249 build-aux/link-warning.h
103dc4d4 250 lib/alloca.in.h
c4b681fd 251 lib/asnprintf.c
24d56127
LC
252 lib/byteswap.in.h
253 lib/c-ctype.c
254 lib/c-ctype.h
255 lib/c-strcase.h
256 lib/c-strcasecmp.c
257 lib/c-strcaseeq.h
258 lib/c-strncasecmp.c
ffca4c22
AW
259 lib/canonicalize-lgpl.c
260 lib/canonicalize.h
4a462e35 261 lib/config.charset
d7014610 262 lib/count-one-bits.h
c4b681fd
LC
263 lib/errno.in.h
264 lib/float+.h
265 lib/float.in.h
f240aacb 266 lib/flock.c
9b36a80c
LC
267 lib/full-read.c
268 lib/full-read.h
269 lib/full-write.c
270 lib/full-write.h
c4b681fd 271 lib/getpagesize.c
24d56127
LC
272 lib/iconv.c
273 lib/iconv.in.h
274 lib/iconv_close.c
275 lib/iconv_open-aix.gperf
276 lib/iconv_open-hpux.gperf
277 lib/iconv_open-irix.gperf
278 lib/iconv_open-osf.gperf
279 lib/iconv_open.c
280 lib/iconveh.h
4a462e35
NJ
281 lib/localcharset.c
282 lib/localcharset.h
f240aacb 283 lib/malloc.c
ffca4c22
AW
284 lib/malloca.c
285 lib/malloca.h
286 lib/malloca.valgrind
4a462e35
NJ
287 lib/mbrlen.c
288 lib/mbrtowc.c
289 lib/mbsinit.c
c4b681fd
LC
290 lib/memchr.c
291 lib/memchr.valgrind
ffca4c22 292 lib/pathmax.h
c4b681fd
LC
293 lib/printf-args.c
294 lib/printf-args.h
295 lib/printf-parse.c
296 lib/printf-parse.h
f240aacb 297 lib/putenv.c
ffca4c22 298 lib/readlink.c
4a462e35
NJ
299 lib/ref-add.sin
300 lib/ref-del.sin
9b36a80c
LC
301 lib/safe-read.c
302 lib/safe-read.h
303 lib/safe-write.c
304 lib/safe-write.h
c4b681fd 305 lib/size_max.h
e65fc94b 306 lib/stdbool.in.h
f240aacb 307 lib/stdint.in.h
c4b681fd
LC
308 lib/stdio-write.c
309 lib/stdio.in.h
f240aacb 310 lib/stdlib.in.h
103dc4d4 311 lib/strcasecmp.c
4a462e35 312 lib/streq.h
e65fc94b
LC
313 lib/strftime.c
314 lib/strftime.h
24d56127
LC
315 lib/striconveh.c
316 lib/striconveh.h
317 lib/string.in.h
103dc4d4
LC
318 lib/strings.in.h
319 lib/strncasecmp.c
f240aacb 320 lib/sys_file.in.h
e65fc94b
LC
321 lib/time.in.h
322 lib/time_r.c
9b36a80c 323 lib/unistd.in.h
24d56127
LC
324 lib/unistr.h
325 lib/unistr/u8-mbtouc-aux.c
326 lib/unistr/u8-mbtouc-unsafe-aux.c
327 lib/unistr/u8-mbtouc-unsafe.c
328 lib/unistr/u8-mbtouc.c
329 lib/unistr/u8-mbtoucr.c
330 lib/unistr/u8-prev.c
331 lib/unistr/u8-uctomb-aux.c
332 lib/unistr/u8-uctomb.c
333 lib/unitypes.h
c4b681fd
LC
334 lib/vasnprintf.c
335 lib/vasnprintf.h
d7014610 336 lib/verify.h
c4b681fd 337 lib/vsnprintf.c
e65fc94b 338 lib/wchar.in.h
9b36a80c 339 lib/write.c
c4b681fd 340 lib/xsize.h
f240aacb 341 m4/00gnulib.m4
103dc4d4 342 m4/alloca.m4
ac47b09a 343 m4/autobuild.m4
24d56127 344 m4/byteswap.m4
ffca4c22 345 m4/canonicalize-lgpl.m4
4a462e35 346 m4/codeset.m4
d7014610 347 m4/count-one-bits.m4
ffca4c22 348 m4/eealloc.m4
b579617b 349 m4/environ.m4
c4b681fd 350 m4/errno_h.m4
103dc4d4 351 m4/extensions.m4
c4b681fd 352 m4/float_h.m4
f240aacb
LC
353 m4/flock.m4
354 m4/fpieee.m4
c4b681fd 355 m4/getpagesize.m4
4a462e35 356 m4/glibc21.m4
103dc4d4 357 m4/gnulib-common.m4
24d56127
LC
358 m4/iconv.m4
359 m4/iconv_h.m4
360 m4/iconv_open.m4
103dc4d4 361 m4/include_next.m4
d7014610 362 m4/inline.m4
c4b681fd
LC
363 m4/intmax_t.m4
364 m4/inttypes_h.m4
25361e4b 365 m4/ld-version-script.m4
24d56127
LC
366 m4/lib-ld.m4
367 m4/lib-link.m4
368 m4/lib-prefix.m4
369 m4/libunistring.m4
4a462e35
NJ
370 m4/localcharset.m4
371 m4/locale-fr.m4
372 m4/locale-ja.m4
373 m4/locale-zh.m4
f240aacb
LC
374 m4/longlong.m4
375 m4/malloc.m4
ffca4c22 376 m4/malloca.m4
4a462e35
NJ
377 m4/mbrlen.m4
378 m4/mbrtowc.m4
379 m4/mbsinit.m4
e65fc94b 380 m4/mbstate_t.m4
c4b681fd
LC
381 m4/memchr.m4
382 m4/mmap-anon.m4
f240aacb 383 m4/multiarch.m4
ffca4c22 384 m4/pathmax.m4
c4b681fd 385 m4/printf.m4
f240aacb 386 m4/putenv.m4
ffca4c22 387 m4/readlink.m4
9b36a80c
LC
388 m4/safe-read.m4
389 m4/safe-write.m4
c4b681fd 390 m4/size_max.m4
9b36a80c 391 m4/ssize_t.m4
e65fc94b 392 m4/stdbool.m4
f240aacb 393 m4/stdint.m4
c4b681fd
LC
394 m4/stdint_h.m4
395 m4/stdio_h.m4
f240aacb 396 m4/stdlib_h.m4
103dc4d4 397 m4/strcase.m4
e65fc94b 398 m4/strftime.m4
24d56127 399 m4/string_h.m4
103dc4d4 400 m4/strings_h.m4
f240aacb 401 m4/sys_file_h.m4
e65fc94b
LC
402 m4/time_h.m4
403 m4/time_r.m4
404 m4/tm_gmtoff.m4
9b36a80c 405 m4/unistd_h.m4
c4b681fd 406 m4/vasnprintf.m4
d9a9e182 407 m4/visibility.m4
c4b681fd 408 m4/vsnprintf.m4
e65fc94b 409 m4/wchar.m4
c4b681fd 410 m4/wchar_t.m4
aa7a939c 411 m4/wint_t.m4
9b36a80c 412 m4/write.m4
c4b681fd 413 m4/xsize.m4
103dc4d4 414])