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