1 # -*- buffer-read-only: t -*- vi: set ro:
2 # DO NOT EDIT! GENERATED AUTOMATICALLY!
3 # DO NOT EDIT! GENERATED AUTOMATICALLY!
4 # Copyright (C) 2002-2008 Free Software Foundation, Inc.
6 # This file is free software, distributed under the terms of the GNU
7 # General Public License. As a special exception to the GNU General
8 # Public License, this file may be distributed as part of a program
9 # that contains a configuration script generated by Autoconf, under
10 # the same distribution terms as the rest of that program.
12 # Generated by gnulib-tool.
14 # This file represents the compiled summary of the specification in
15 # gnulib-cache.m4. It lists the computed macro invocations that need
16 # to be invoked from configure.ac.
17 # In projects using CVS, this file can be treated like other built files.
20 # This macro should be invoked from ./configure.ac, in the section
21 # "Checks for programs", right after AC_PROG_CC, and certainly before
22 # any checks for libraries, header files, types and library functions.
25 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
26 m4_pattern_allow([^gl_ES$])dnl a valid locale name
27 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
28 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
29 AC_REQUIRE([AC_PROG_RANLIB])
30 AC_REQUIRE([AM_PROG_CC_C_O])
31 AC_REQUIRE([AC_GNU_SOURCE])
32 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
33 AC_REQUIRE([AC_FUNC_FSEEKO])
34 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
35 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
36 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
37 dnl shouldn't hurt, though installers are on their own to set c99 mode.
38 AC_REQUIRE([AC_PROG_CC_STDC])
41 # This macro should be invoked from ./configure.ac, in the section
42 # "Check for header files, types and library functions".
45 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
49 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
50 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
51 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
52 gl_source_base='.#bootmp/lib'
57 m4_ifdef([AM_XGETTEXT_OPTION],
58 [AM_XGETTEXT_OPTION([--flag=argp_error:2:c-format])
59 AM_XGETTEXT_OPTION([--flag=argp_failure:4:c-format])])
64 gl_UNISTD_MODULE_INDICATOR([chown])
67 gl_MODULE_INDICATOR([close-stream])
69 gl_CHECK_TYPE_STRUCT_DIRENT_D_INO
74 gl_UNISTD_MODULE_INDICATOR([dup2])
76 gl_UNISTD_MODULE_INDICATOR([environ])
78 m4_ifdef([AM_XGETTEXT_OPTION],
79 [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
80 AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
84 gl_UNISTD_MODULE_INDICATOR([fchdir])
87 gl_MODULE_INDICATOR([fcntl-safer])
90 # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
94 gl_STDIO_MODULE_INDICATOR([fseeko])
96 gl_UNISTD_MODULE_INDICATOR([ftruncate])
98 gl_UNISTD_MODULE_INDICATOR([getcwd])
101 gl_STDIO_MODULE_INDICATOR([getdelim])
103 gl_STDIO_MODULE_INDICATOR([getline])
106 gl_UNISTD_MODULE_INDICATOR([getpagesize])
107 dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
108 AM_GNU_GETTEXT_VERSION([0.17])
110 AC_SUBST([LTLIBINTL])
119 gl_UNISTD_MODULE_INDICATOR([lchown])
121 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
122 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
124 gl_UNISTD_MODULE_INDICATOR([lseek])
127 AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
129 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
133 gl_STRING_MODULE_INDICATOR([mbscasecmp])
137 gl_STRING_MODULE_INDICATOR([mempcpy])
139 gl_STRING_MODULE_INDICATOR([memrchr])
142 gl_STDLIB_MODULE_INDICATOR([mkdtemp])
146 dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]).
152 gl_UNISTD_MODULE_INDICATOR([readlink])
153 gl_FUNC_REALLOC_POSIX
154 gl_STDLIB_MODULE_INDICATOR([realloc-posix])
163 gl_STDLIB_MODULE_INDICATOR([setenv])
165 gl_UNISTD_MODULE_INDICATOR([sleep])
167 gl_STDIO_MODULE_INDICATOR([snprintf])
177 gl_STRING_MODULE_INDICATOR([stpcpy])
180 gl_STRING_MODULE_INDICATOR([strchrnul])
182 gl_STRING_MODULE_INDICATOR([strdup])
184 gl_STRING_MODULE_INDICATOR([strerror])
188 gl_STRING_MODULE_INDICATOR([strndup])
190 gl_STRING_MODULE_INDICATOR([strnlen])
192 gl_INTTYPES_MODULE_INDICATOR([strtoimax])
198 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
211 gl_FUNC_GLIBC_UNLOCKED_IO
213 gl_STDLIB_MODULE_INDICATOR([unsetenv])
218 gl_STDIO_MODULE_INDICATOR([vsnprintf])
222 gl_WCHAR_MODULE_INDICATOR([wcwidth])
228 m4_popdef([AC_LIBSOURCES])
229 m4_popdef([AC_REPLACE_FUNCS])
230 m4_popdef([AC_LIBOBJ])
231 AC_CONFIG_COMMANDS_PRE([
234 if test -n "$gl_LIBOBJS"; then
235 # Remove the extension.
236 sed_drop_objext='s/\.o$//;s/\.obj$//'
237 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
238 gl_libobjs="$gl_libobjs $i.$ac_objext"
239 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
242 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
243 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
247 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
248 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
249 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
250 gl_source_base='.#bootmp/tests'
251 m4_popdef([AC_LIBSOURCES])
252 m4_popdef([AC_REPLACE_FUNCS])
253 m4_popdef([AC_LIBOBJ])
254 AC_CONFIG_COMMANDS_PRE([
257 if test -n "$gltests_LIBOBJS"; then
258 # Remove the extension.
259 sed_drop_objext='s/\.o$//;s/\.obj$//'
260 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
261 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
262 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
265 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
266 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
268 LIBTAR_LIBDEPS="$gl_libdeps"
269 AC_SUBST([LIBTAR_LIBDEPS])
270 LIBTAR_LTLIBDEPS="$gl_ltlibdeps"
271 AC_SUBST([LIBTAR_LTLIBDEPS])
274 # Like AC_LIBOBJ, except that the module name goes
275 # into gl_LIBOBJS instead of into LIBOBJS.
276 AC_DEFUN([gl_LIBOBJ], [
277 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
278 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
281 # m4_foreach_w is provided by autoconf-2.59c and later.
282 # This definition is to accommodate developers using versions
283 # of autoconf older than that.
284 m4_ifndef([m4_foreach_w],
285 [m4_define([m4_foreach_w],
286 [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
288 # Like AC_REPLACE_FUNCS, except that the module name goes
289 # into gl_LIBOBJS instead of into LIBOBJS.
290 AC_DEFUN([gl_REPLACE_FUNCS], [
291 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
292 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
295 # Like AC_LIBSOURCES, except the directory where the source file is
296 # expected is derived from the gnulib-tool parametrization,
297 # and alloca is special cased (for the alloca-opt module).
298 # We could also entirely rely on EXTRA_lib..._SOURCES.
299 AC_DEFUN([gl_LIBSOURCES], [
300 m4_foreach([_gl_NAME], [$1], [
301 m4_if(_gl_NAME, [alloca.c], [], [
302 m4_syscmd([test -r .#bootmp/lib/]_gl_NAME[ || test ! -d .#bootmp/lib])dnl
303 m4_if(m4_sysval, [0], [],
304 [AC_FATAL([missing .#bootmp/lib/]_gl_NAME)])
309 # Like AC_LIBOBJ, except that the module name goes
310 # into gltests_LIBOBJS instead of into LIBOBJS.
311 AC_DEFUN([gltests_LIBOBJ], [
312 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
313 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
316 # m4_foreach_w is provided by autoconf-2.59c and later.
317 # This definition is to accommodate developers using versions
318 # of autoconf older than that.
319 m4_ifndef([m4_foreach_w],
320 [m4_define([m4_foreach_w],
321 [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
323 # Like AC_REPLACE_FUNCS, except that the module name goes
324 # into gltests_LIBOBJS instead of into LIBOBJS.
325 AC_DEFUN([gltests_REPLACE_FUNCS], [
326 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
327 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
330 # Like AC_LIBSOURCES, except the directory where the source file is
331 # expected is derived from the gnulib-tool parametrization,
332 # and alloca is special cased (for the alloca-opt module).
333 # We could also entirely rely on EXTRA_lib..._SOURCES.
334 AC_DEFUN([gltests_LIBSOURCES], [
335 m4_foreach([_gl_NAME], [$1], [
336 m4_if(_gl_NAME, [alloca.c], [], [
337 m4_syscmd([test -r .#bootmp/tests/]_gl_NAME[ || test ! -d .#bootmp/tests])dnl
338 m4_if(m4_sysval, [0], [],
339 [AC_FATAL([missing .#bootmp/tests/]_gl_NAME)])
344 # This macro records the list of files which have been installed by
345 # gnulib-tool and may be removed by future gnulib-tool invocations.
346 AC_DEFUN([gl_FILE_LIST], [
347 build-aux/config.rpath
348 build-aux/link-warning.h
372 lib/canonicalize-lgpl.c
559 lib/version-etc-fsf.c
584 m4/canonicalize-lgpl.m4
595 m4/double-slash-root.m4
613 m4/getcwd-abort-bug.m4
614 m4/getcwd-path-max.m4