99fa45dc9db098a6251d64539f4c7de5962aa7e7
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.
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([AC_GNU_SOURCE])
29 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
30 ])
32 # This macro should be invoked from ./configure.in, in the section
33 # "Check for header files, types and library functions".
34 AC_DEFUN([gl_INIT],
35 [
36 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
37 gl_cond_libtool=false
38 gl_libdeps=
39 gl_ltlibdeps=
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='gl'
47 gl_FUNC_ALLOCA
48 gl_HEADER_ARPA_INET
49 AC_PROG_MKDIR_P
50 gl_FUNC_BASE64
51 gl_FUNC_BTOWC
52 gl_WCHAR_MODULE_INDICATOR([btowc])
53 gl_C_STRTOD
54 gl_CLOEXEC
55 gl_DIRNAME
56 gl_DOUBLE_SLASH_ROOT
57 gl_HEADER_ERRNO_H
58 gl_ERROR
59 m4_ifdef([AM_XGETTEXT_OPTION],
60 [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
61 AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
62 gl_EXITFAIL
63 gl_FCNTL_H
64 gl_FCNTL_SAFER
65 gl_MODULE_INDICATOR([fcntl-safer])
66 gl_FLOAT_H
67 gl_FUNC_FLOORF
68 gl_MATH_MODULE_INDICATOR([floorf])
69 gl_FSUSAGE
70 gl_GETADDRINFO
71 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
72 gl_FUNC_GETHOSTNAME
73 gl_UNISTD_MODULE_INDICATOR([gethostname])
74 gl_GETLOADAVG([$gl_source_base])
75 gl_STDLIB_MODULE_INDICATOR([getloadavg])
76 gl_GETOPT
77 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
78 AM_GNU_GETTEXT_VERSION([0.17])
79 AC_SUBST([LIBINTL])
80 AC_SUBST([LTLIBINTL])
81 gl_HOSTENT
82 gl_INET_NTOP
83 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
84 gl_INLINE
85 gl_LOCALCHARSET
86 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
87 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
88 AC_FUNC_MALLOC
89 AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
90 gl_FUNC_MALLOC_POSIX
91 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
92 gl_MATH_H
93 gl_FUNC_MBRTOWC
94 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
95 gl_FUNC_MBSINIT
96 gl_WCHAR_MODULE_INDICATOR([mbsinit])
97 gl_MOUNTLIST
98 gl_MULTIARCH
99 gl_HEADER_NETDB
100 gl_HEADER_NETINET_IN
101 AC_PROG_MKDIR_P
102 gl_FUNC_OPEN
103 gl_MODULE_INDICATOR([open])
104 gl_FCNTL_MODULE_INDICATOR([open])
105 gl_REGEX
106 gl_SAFE_READ
107 gl_SAFE_WRITE
108 gl_SERVENT
109 gl_SIZE_MAX
110 gl_FUNC_SNPRINTF
111 gl_STDIO_MODULE_INDICATOR([snprintf])
112 gl_TYPE_SOCKLEN_T
113 gt_TYPE_SSIZE_T
114 AM_STDBOOL_H
115 gl_STDINT_H
116 gl_STDIO_H
117 gl_STDLIB_H
118 gl_FUNC_STRERROR
119 gl_STRING_MODULE_INDICATOR([strerror])
120 gl_HEADER_STRING_H
121 gl_FUNC_STRNDUP
122 gl_STRING_MODULE_INDICATOR([strndup])
123 gl_FUNC_STRNLEN
124 gl_STRING_MODULE_INDICATOR([strnlen])
125 gl_HEADER_SYS_SOCKET
126 gl_MODULE_INDICATOR([sys_socket])
127 AC_PROG_MKDIR_P
128 gl_UNISTD_H
129 gl_UNISTD_SAFER
130 gl_FUNC_VASNPRINTF
131 gl_FUNC_VASPRINTF
132 gl_STDIO_MODULE_INDICATOR([vasprintf])
133 m4_ifdef([AM_XGETTEXT_OPTION],
134 [AM_XGETTEXT_OPTION([--flag=asprintf:2:c-format])
135 AM_XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
136 gl_FUNC_VSNPRINTF
137 gl_STDIO_MODULE_INDICATOR([vsnprintf])
138 gl_WCHAR_H
139 gl_FUNC_WCRTOMB
140 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
141 gl_WCTYPE_H
142 gl_FUNC_WRITE
143 gl_UNISTD_MODULE_INDICATOR([write])
144 gl_XALLOC
145 gl_XSIZE
146 gl_XSTRNDUP
147 m4_ifval(gl_LIBSOURCES_LIST, [
148 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
149 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
150 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
151 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
152 exit 1
153 fi
154 done])dnl
155 m4_if(m4_sysval, [0], [],
156 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
157 ])
158 m4_popdef([gl_LIBSOURCES_DIR])
159 m4_popdef([gl_LIBSOURCES_LIST])
160 m4_popdef([AC_LIBSOURCES])
161 m4_popdef([AC_REPLACE_FUNCS])
162 m4_popdef([AC_LIBOBJ])
163 AC_CONFIG_COMMANDS_PRE([
164 gl_libobjs=
165 gl_ltlibobjs=
166 if test -n "$gl_LIBOBJS"; then
167 # Remove the extension.
168 sed_drop_objext='s/\.o$//;s/\.obj$//'
169 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
170 gl_libobjs="$gl_libobjs $i.$ac_objext"
171 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
172 done
173 fi
174 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
175 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
176 ])
177 gltests_libdeps=
178 gltests_ltlibdeps=
179 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
180 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
181 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
182 m4_pushdef([gltests_LIBSOURCES_LIST], [])
183 m4_pushdef([gltests_LIBSOURCES_DIR], [])
184 gl_COMMON
185 gl_source_base='tests'
186 m4_ifval(gltests_LIBSOURCES_LIST, [
187 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
188 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
189 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
190 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
191 exit 1
192 fi
193 done])dnl
194 m4_if(m4_sysval, [0], [],
195 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
196 ])
197 m4_popdef([gltests_LIBSOURCES_DIR])
198 m4_popdef([gltests_LIBSOURCES_LIST])
199 m4_popdef([AC_LIBSOURCES])
200 m4_popdef([AC_REPLACE_FUNCS])
201 m4_popdef([AC_LIBOBJ])
202 AC_CONFIG_COMMANDS_PRE([
203 gltests_libobjs=
204 gltests_ltlibobjs=
205 if test -n "$gltests_LIBOBJS"; then
206 # Remove the extension.
207 sed_drop_objext='s/\.o$//;s/\.obj$//'
208 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
209 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
210 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
211 done
212 fi
213 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
214 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
215 ])
216 LIBGNU_LIBDEPS="$gl_libdeps"
217 AC_SUBST([LIBGNU_LIBDEPS])
218 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
219 AC_SUBST([LIBGNU_LTLIBDEPS])
220 ])
222 # Like AC_LIBOBJ, except that the module name goes
223 # into gl_LIBOBJS instead of into LIBOBJS.
224 AC_DEFUN([gl_LIBOBJ], [
225 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
226 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
227 ])
229 # Like AC_REPLACE_FUNCS, except that the module name goes
230 # into gl_LIBOBJS instead of into LIBOBJS.
231 AC_DEFUN([gl_REPLACE_FUNCS], [
232 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
233 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
234 ])
236 # Like AC_LIBSOURCES, except the directory where the source file is
237 # expected is derived from the gnulib-tool parameterization,
238 # and alloca is special cased (for the alloca-opt module).
239 # We could also entirely rely on EXTRA_lib..._SOURCES.
240 AC_DEFUN([gl_LIBSOURCES], [
241 m4_foreach([_gl_NAME], [$1], [
242 m4_if(_gl_NAME, [alloca.c], [], [
243 m4_define([gl_LIBSOURCES_DIR], [gl])
244 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
245 ])
246 ])
247 ])
249 # Like AC_LIBOBJ, except that the module name goes
250 # into gltests_LIBOBJS instead of into LIBOBJS.
251 AC_DEFUN([gltests_LIBOBJ], [
252 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
253 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
254 ])
256 # Like AC_REPLACE_FUNCS, except that the module name goes
257 # into gltests_LIBOBJS instead of into LIBOBJS.
258 AC_DEFUN([gltests_REPLACE_FUNCS], [
259 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
260 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
261 ])
263 # Like AC_LIBSOURCES, except the directory where the source file is
264 # expected is derived from the gnulib-tool parameterization,
265 # and alloca is special cased (for the alloca-opt module).
266 # We could also entirely rely on EXTRA_lib..._SOURCES.
267 AC_DEFUN([gltests_LIBSOURCES], [
268 m4_foreach([_gl_NAME], [$1], [
269 m4_if(_gl_NAME, [alloca.c], [], [
270 m4_define([gltests_LIBSOURCES_DIR], [tests])
271 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
272 ])
273 ])
274 ])
276 # This macro records the list of files which have been installed by
277 # gnulib-tool and may be removed by future gnulib-tool invocations.
278 AC_DEFUN([gl_FILE_LIST], [
279 build-aux/config.rpath
280 build-aux/link-warning.h
281 lib/alloca.c
282 lib/alloca.in.h
283 lib/arpa_inet.in.h
284 lib/asnprintf.c
285 lib/asprintf.c
286 lib/base64.c
287 lib/base64.h
288 lib/basename.c
289 lib/btowc.c
290 lib/c-strtod.c
291 lib/c-strtod.h
292 lib/cloexec.c
293 lib/cloexec.h
294 lib/config.charset
295 lib/creat-safer.c
296 lib/dirname.c
297 lib/dirname.h
298 lib/dup-safer.c
299 lib/errno.in.h
300 lib/error.c
301 lib/error.h
302 lib/exitfail.c
303 lib/exitfail.h
304 lib/fcntl--.h
305 lib/fcntl-safer.h
306 lib/fcntl.in.h
307 lib/fd-safer.c
308 lib/float+.h
309 lib/float.in.h
310 lib/floor.c
311 lib/floorf.c
312 lib/fsusage.c
313 lib/fsusage.h
314 lib/full-read.c
315 lib/full-read.h
316 lib/full-write.c
317 lib/full-write.h
318 lib/gai_strerror.c
319 lib/getaddrinfo.c
320 lib/gethostname.c
321 lib/getloadavg.c
322 lib/getopt.c
323 lib/getopt.in.h
324 lib/getopt1.c
325 lib/getopt_int.h
326 lib/gettext.h
327 lib/inet_ntop.c
328 lib/intprops.h
329 lib/localcharset.c
330 lib/localcharset.h
331 lib/malloc.c
332 lib/math.in.h
333 lib/mbrtowc.c
334 lib/mbsinit.c
335 lib/mountlist.c
336 lib/mountlist.h
337 lib/netdb.in.h
338 lib/netinet_in.in.h
339 lib/open-safer.c
340 lib/open.c
341 lib/pipe-safer.c
342 lib/printf-args.c
343 lib/printf-args.h
344 lib/printf-parse.c
345 lib/printf-parse.h
346 lib/ref-add.sin
347 lib/ref-del.sin
348 lib/regcomp.c
349 lib/regex.c
350 lib/regex.h
351 lib/regex_internal.c
352 lib/regex_internal.h
353 lib/regexec.c
354 lib/safe-read.c
355 lib/safe-read.h
356 lib/safe-write.c
357 lib/safe-write.h
358 lib/size_max.h
359 lib/snprintf.c
360 lib/stdbool.in.h
361 lib/stdint.in.h
362 lib/stdio-write.c
363 lib/stdio.in.h
364 lib/stdlib.in.h
365 lib/streq.h
366 lib/strerror.c
367 lib/string.in.h
368 lib/stripslash.c
369 lib/strndup.c
370 lib/strnlen.c
371 lib/sys_socket.in.h
372 lib/unistd--.h
373 lib/unistd-safer.h
374 lib/unistd.in.h
375 lib/vasnprintf.c
376 lib/vasnprintf.h
377 lib/vasprintf.c
378 lib/verify.h
379 lib/vsnprintf.c
380 lib/wchar.in.h
381 lib/wcrtomb.c
382 lib/wctype.in.h
383 lib/write.c
384 lib/xalloc-die.c
385 lib/xalloc.h
386 lib/xmalloc.c
387 lib/xsize.h
388 lib/xstrndup.c
389 lib/xstrndup.h
390 m4/alloca.m4
391 m4/arpa_inet_h.m4
392 m4/base64.m4
393 m4/btowc.m4
394 m4/c-strtod.m4
395 m4/cloexec.m4
396 m4/codeset.m4
397 m4/dirname.m4
398 m4/dos.m4
399 m4/double-slash-root.m4
400 m4/errno_h.m4
401 m4/error.m4
402 m4/exitfail.m4
403 m4/extensions.m4
404 m4/fcntl-safer.m4
405 m4/fcntl_h.m4
406 m4/float_h.m4
407 m4/floorf.m4
408 m4/fstypename.m4
409 m4/fsusage.m4
410 m4/getaddrinfo.m4
411 m4/gethostname.m4
412 m4/getloadavg.m4
413 m4/getopt.m4
414 m4/gettext.m4
415 m4/glibc2.m4
416 m4/glibc21.m4
417 m4/gnulib-common.m4
418 m4/hostent.m4
419 m4/iconv.m4
420 m4/include_next.m4
421 m4/inet_ntop.m4
422 m4/inline.m4
423 m4/intdiv0.m4
424 m4/intl.m4
425 m4/intldir.m4
426 m4/intlmacosx.m4
427 m4/intmax.m4
428 m4/intmax_t.m4
429 m4/inttypes-pri.m4
430 m4/inttypes_h.m4
431 m4/lcmessage.m4
432 m4/lib-ld.m4
433 m4/lib-link.m4
434 m4/lib-prefix.m4
435 m4/localcharset.m4
436 m4/locale-fr.m4
437 m4/locale-ja.m4
438 m4/locale-zh.m4
439 m4/lock.m4
440 m4/longlong.m4
441 m4/ls-mntd-fs.m4
442 m4/malloc.m4
443 m4/math_h.m4
444 m4/mbrtowc.m4
445 m4/mbsinit.m4
446 m4/mbstate_t.m4
447 m4/mountlist.m4
448 m4/multiarch.m4
449 m4/netdb_h.m4
450 m4/netinet_in_h.m4
451 m4/nls.m4
452 m4/onceonly.m4
453 m4/open.m4
454 m4/po.m4
455 m4/printf-posix.m4
456 m4/printf.m4
457 m4/progtest.m4
458 m4/regex.m4
459 m4/safe-read.m4
460 m4/safe-write.m4
461 m4/servent.m4
462 m4/size_max.m4
463 m4/snprintf.m4
464 m4/socklen.m4
465 m4/sockpfaf.m4
466 m4/ssize_t.m4
467 m4/stdbool.m4
468 m4/stdint.m4
469 m4/stdint_h.m4
470 m4/stdio_h.m4
471 m4/stdlib_h.m4
472 m4/strerror.m4
473 m4/string_h.m4
474 m4/strndup.m4
475 m4/strnlen.m4
476 m4/sys_socket_h.m4
477 m4/threadlib.m4
478 m4/uintmax_t.m4
479 m4/unistd-safer.m4
480 m4/unistd_h.m4
481 m4/vasnprintf.m4
482 m4/vasprintf.m4
483 m4/visibility.m4
484 m4/vsnprintf.m4
485 m4/wchar.m4
486 m4/wchar_t.m4
487 m4/wcrtomb.m4
488 m4/wctype.m4
489 m4/wint_t.m4
490 m4/write.m4
491 m4/xalloc.m4
492 m4/xsize.m4
493 m4/xstrndup.m4
494 ])