1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2008 Free Software Foundation, Inc.
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.
10 # Generated by gnulib-tool.
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.ac, 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([GNULIB_EARLY],
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])
30 # This macro should be invoked from ./configure.ac, in the section
31 # "Check for header files, types and library functions".
32 AC_DEFUN([GNULIB_INIT],
34 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
38 m4_pushdef([AC_LIBOBJ], m4_defn([GNULIB_LIBOBJ]))
39 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([GNULIB_REPLACE_FUNCS]))
40 m4_pushdef([AC_LIBSOURCES], m4_defn([GNULIB_LIBSOURCES]))
41 m4_pushdef([GNULIB_LIBSOURCES_LIST], [])
42 m4_pushdef([GNULIB_LIBSOURCES_DIR], [])
44 gl_source_base='./src/gnulib'
53 m4_ifval(GNULIB_LIBSOURCES_LIST, [
54 m4_syscmd([test ! -d ]m4_defn([GNULIB_LIBSOURCES_DIR])[ ||
55 for gl_file in ]GNULIB_LIBSOURCES_LIST[ ; do
56 if test ! -r ]m4_defn([GNULIB_LIBSOURCES_DIR])[/$gl_file ; then
57 echo "missing file ]m4_defn([GNULIB_LIBSOURCES_DIR])[/$gl_file" >&2
61 m4_if(m4_sysval, [0], [],
62 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
64 m4_popdef([GNULIB_LIBSOURCES_DIR])
65 m4_popdef([GNULIB_LIBSOURCES_LIST])
66 m4_popdef([AC_LIBSOURCES])
67 m4_popdef([AC_REPLACE_FUNCS])
68 m4_popdef([AC_LIBOBJ])
69 AC_CONFIG_COMMANDS_PRE([
72 if test -n "$GNULIB_LIBOBJS"; then
73 # Remove the extension.
74 sed_drop_objext='s/\.o$//;s/\.obj$//'
75 for i in `for i in $GNULIB_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
76 GNULIB_libobjs="$GNULIB_libobjs $i.$ac_objext"
77 GNULIB_ltlibobjs="$GNULIB_ltlibobjs $i.lo"
80 AC_SUBST([GNULIB_LIBOBJS], [$GNULIB_libobjs])
81 AC_SUBST([GNULIB_LTLIBOBJS], [$GNULIB_ltlibobjs])
85 m4_pushdef([AC_LIBOBJ], m4_defn([GNULIBtests_LIBOBJ]))
86 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([GNULIBtests_REPLACE_FUNCS]))
87 m4_pushdef([AC_LIBSOURCES], m4_defn([GNULIBtests_LIBSOURCES]))
88 m4_pushdef([GNULIBtests_LIBSOURCES_LIST], [])
89 m4_pushdef([GNULIBtests_LIBSOURCES_DIR], [])
91 gl_source_base='tests'
92 m4_ifval(GNULIBtests_LIBSOURCES_LIST, [
93 m4_syscmd([test ! -d ]m4_defn([GNULIBtests_LIBSOURCES_DIR])[ ||
94 for gl_file in ]GNULIBtests_LIBSOURCES_LIST[ ; do
95 if test ! -r ]m4_defn([GNULIBtests_LIBSOURCES_DIR])[/$gl_file ; then
96 echo "missing file ]m4_defn([GNULIBtests_LIBSOURCES_DIR])[/$gl_file" >&2
100 m4_if(m4_sysval, [0], [],
101 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
103 m4_popdef([GNULIBtests_LIBSOURCES_DIR])
104 m4_popdef([GNULIBtests_LIBSOURCES_LIST])
105 m4_popdef([AC_LIBSOURCES])
106 m4_popdef([AC_REPLACE_FUNCS])
107 m4_popdef([AC_LIBOBJ])
108 AC_CONFIG_COMMANDS_PRE([
110 GNULIBtests_ltlibobjs=
111 if test -n "$GNULIBtests_LIBOBJS"; then
112 # Remove the extension.
113 sed_drop_objext='s/\.o$//;s/\.obj$//'
114 for i in `for i in $GNULIBtests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
115 GNULIBtests_libobjs="$GNULIBtests_libobjs $i.$ac_objext"
116 GNULIBtests_ltlibobjs="$GNULIBtests_ltlibobjs $i.lo"
119 AC_SUBST([GNULIBtests_LIBOBJS], [$GNULIBtests_libobjs])
120 AC_SUBST([GNULIBtests_LTLIBOBJS], [$GNULIBtests_ltlibobjs])
122 LIBGNU_LIBDEPS="$gl_libdeps"
123 AC_SUBST([LIBGNU_LIBDEPS])
124 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
125 AC_SUBST([LIBGNU_LTLIBDEPS])
128 # Like AC_LIBOBJ, except that the module name goes
129 # into GNULIB_LIBOBJS instead of into LIBOBJS.
130 AC_DEFUN([GNULIB_LIBOBJ], [
131 AS_LITERAL_IF([$1], [GNULIB_LIBSOURCES([$1.c])])dnl
132 GNULIB_LIBOBJS="$GNULIB_LIBOBJS $1.$ac_objext"
135 # Like AC_REPLACE_FUNCS, except that the module name goes
136 # into GNULIB_LIBOBJS instead of into LIBOBJS.
137 AC_DEFUN([GNULIB_REPLACE_FUNCS], [
138 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
139 AC_CHECK_FUNCS([$1], , [GNULIB_LIBOBJ($ac_func)])
142 # Like AC_LIBSOURCES, except the directory where the source file is
143 # expected is derived from the gnulib-tool parameterization,
144 # and alloca is special cased (for the alloca-opt module).
145 # We could also entirely rely on EXTRA_lib..._SOURCES.
146 AC_DEFUN([GNULIB_LIBSOURCES], [
147 m4_foreach([_gl_NAME], [$1], [
148 m4_if(_gl_NAME, [alloca.c], [], [
149 m4_define([GNULIB_LIBSOURCES_DIR], [./src/gnulib])
150 m4_append([GNULIB_LIBSOURCES_LIST], _gl_NAME, [ ])
155 # Like AC_LIBOBJ, except that the module name goes
156 # into GNULIBtests_LIBOBJS instead of into LIBOBJS.
157 AC_DEFUN([GNULIBtests_LIBOBJ], [
158 AS_LITERAL_IF([$1], [GNULIBtests_LIBSOURCES([$1.c])])dnl
159 GNULIBtests_LIBOBJS="$GNULIBtests_LIBOBJS $1.$ac_objext"
162 # Like AC_REPLACE_FUNCS, except that the module name goes
163 # into GNULIBtests_LIBOBJS instead of into LIBOBJS.
164 AC_DEFUN([GNULIBtests_REPLACE_FUNCS], [
165 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
166 AC_CHECK_FUNCS([$1], , [GNULIBtests_LIBOBJ($ac_func)])
169 # Like AC_LIBSOURCES, except the directory where the source file is
170 # expected is derived from the gnulib-tool parameterization,
171 # and alloca is special cased (for the alloca-opt module).
172 # We could also entirely rely on EXTRA_lib..._SOURCES.
173 AC_DEFUN([GNULIBtests_LIBSOURCES], [
174 m4_foreach([_gl_NAME], [$1], [
175 m4_if(_gl_NAME, [alloca.c], [], [
176 m4_define([GNULIBtests_LIBSOURCES_DIR], [tests])
177 m4_append([GNULIBtests_LIBSOURCES_LIST], _gl_NAME, [ ])
182 # This macro records the list of files which have been installed by
183 # gnulib-tool and may be removed by future gnulib-tool invocations.
184 AC_DEFUN([GNULIB_FILE_LIST], [
185 build-aux/link-warning.h