annotate m4/gnulib-comp.m4 @ 272:d5392bb5da3c 2.5

Added generated files
author lost
date Sun, 16 Aug 2009 17:16:49 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
272
d5392bb5da3c Added generated files
lost
parents:
diff changeset
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
d5392bb5da3c Added generated files
lost
parents:
diff changeset
2 # Copyright (C) 2002-2008 Free Software Foundation, Inc.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
3 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
4 # This file is free software, distributed under the terms of the GNU
d5392bb5da3c Added generated files
lost
parents:
diff changeset
5 # General Public License. As a special exception to the GNU General
d5392bb5da3c Added generated files
lost
parents:
diff changeset
6 # Public License, this file may be distributed as part of a program
d5392bb5da3c Added generated files
lost
parents:
diff changeset
7 # that contains a configuration script generated by Autoconf, under
d5392bb5da3c Added generated files
lost
parents:
diff changeset
8 # the same distribution terms as the rest of that program.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
9 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
10 # Generated by gnulib-tool.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
11 #
d5392bb5da3c Added generated files
lost
parents:
diff changeset
12 # This file represents the compiled summary of the specification in
d5392bb5da3c Added generated files
lost
parents:
diff changeset
13 # gnulib-cache.m4. It lists the computed macro invocations that need
d5392bb5da3c Added generated files
lost
parents:
diff changeset
14 # to be invoked from configure.ac.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
15 # In projects using CVS, this file can be treated like other built files.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
16
d5392bb5da3c Added generated files
lost
parents:
diff changeset
17
d5392bb5da3c Added generated files
lost
parents:
diff changeset
18 # This macro should be invoked from ./configure.ac, in the section
d5392bb5da3c Added generated files
lost
parents:
diff changeset
19 # "Checks for programs", right after AC_PROG_CC, and certainly before
d5392bb5da3c Added generated files
lost
parents:
diff changeset
20 # any checks for libraries, header files, types and library functions.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
21 AC_DEFUN([gl_EARLY],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
22 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
23 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
d5392bb5da3c Added generated files
lost
parents:
diff changeset
24 m4_pattern_allow([^gl_ES$])dnl a valid locale name
d5392bb5da3c Added generated files
lost
parents:
diff changeset
25 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
d5392bb5da3c Added generated files
lost
parents:
diff changeset
26 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
d5392bb5da3c Added generated files
lost
parents:
diff changeset
27 AC_REQUIRE([AC_PROG_RANLIB])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
28 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
29 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
30
d5392bb5da3c Added generated files
lost
parents:
diff changeset
31 # This macro should be invoked from ./configure.ac, in the section
d5392bb5da3c Added generated files
lost
parents:
diff changeset
32 # "Check for header files, types and library functions".
d5392bb5da3c Added generated files
lost
parents:
diff changeset
33 AC_DEFUN([gl_INIT],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
34 [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
35 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
36 gl_cond_libtool=false
d5392bb5da3c Added generated files
lost
parents:
diff changeset
37 gl_libdeps=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
38 gl_ltlibdeps=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
39 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
d5392bb5da3c Added generated files
lost
parents:
diff changeset
40 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
d5392bb5da3c Added generated files
lost
parents:
diff changeset
41 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
d5392bb5da3c Added generated files
lost
parents:
diff changeset
42 m4_pushdef([gl_LIBSOURCES_LIST], [])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
43 m4_pushdef([gl_LIBSOURCES_DIR], [])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
44 gl_COMMON
d5392bb5da3c Added generated files
lost
parents:
diff changeset
45 gl_source_base='lib'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
46 gl_FUNC_ALLOCA
d5392bb5da3c Added generated files
lost
parents:
diff changeset
47 gl_ARGP
d5392bb5da3c Added generated files
lost
parents:
diff changeset
48 m4_ifdef([AM_XGETTEXT_OPTION],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
49 [AM_XGETTEXT_OPTION([--flag=argp_error:2:c-format])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
50 AM_XGETTEXT_OPTION([--flag=argp_failure:4:c-format])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
51 gl_DIRNAME
d5392bb5da3c Added generated files
lost
parents:
diff changeset
52 gl_DOUBLE_SLASH_ROOT
d5392bb5da3c Added generated files
lost
parents:
diff changeset
53 gl_HEADER_ERRNO_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
54 gl_ERROR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
55 m4_ifdef([AM_XGETTEXT_OPTION],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
56 [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
57 AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
58 gl_EXITFAIL
d5392bb5da3c Added generated files
lost
parents:
diff changeset
59 gl_FLOAT_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
60 gl_GETOPT
d5392bb5da3c Added generated files
lost
parents:
diff changeset
61 AC_SUBST([LIBINTL])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
62 AC_SUBST([LTLIBINTL])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
63 gl_INLINE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
64 AC_FUNC_MALLOC
d5392bb5da3c Added generated files
lost
parents:
diff changeset
65 AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
66 gl_FUNC_MALLOC_POSIX
d5392bb5da3c Added generated files
lost
parents:
diff changeset
67 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
68 gl_FUNC_MEMPCPY
d5392bb5da3c Added generated files
lost
parents:
diff changeset
69 gl_STRING_MODULE_INDICATOR([mempcpy])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
70 gl_MULTIARCH
d5392bb5da3c Added generated files
lost
parents:
diff changeset
71 gl_FUNC_RAWMEMCHR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
72 gl_STRING_MODULE_INDICATOR([rawmemchr])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
73 gl_SIZE_MAX
d5392bb5da3c Added generated files
lost
parents:
diff changeset
74 gl_FUNC_SLEEP
d5392bb5da3c Added generated files
lost
parents:
diff changeset
75 gl_UNISTD_MODULE_INDICATOR([sleep])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
76 AM_STDBOOL_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
77 gl_STDINT_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
78 gl_STDIO_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
79 gl_STDLIB_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
80 gl_STRCASE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
81 gl_FUNC_STRCHRNUL
d5392bb5da3c Added generated files
lost
parents:
diff changeset
82 gl_STRING_MODULE_INDICATOR([strchrnul])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
83 gl_FUNC_STRERROR
d5392bb5da3c Added generated files
lost
parents:
diff changeset
84 gl_STRING_MODULE_INDICATOR([strerror])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
85 gl_HEADER_STRING_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
86 gl_HEADER_STRINGS_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
87 gl_FUNC_STRNDUP
d5392bb5da3c Added generated files
lost
parents:
diff changeset
88 gl_STRING_MODULE_INDICATOR([strndup])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
89 gl_FUNC_STRNLEN
d5392bb5da3c Added generated files
lost
parents:
diff changeset
90 gl_STRING_MODULE_INDICATOR([strnlen])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
91 gl_SYSEXITS
d5392bb5da3c Added generated files
lost
parents:
diff changeset
92 gl_UNISTD_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
93 gl_FUNC_VASNPRINTF
d5392bb5da3c Added generated files
lost
parents:
diff changeset
94 gl_FUNC_VSNPRINTF
d5392bb5da3c Added generated files
lost
parents:
diff changeset
95 gl_STDIO_MODULE_INDICATOR([vsnprintf])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
96 gl_WCHAR_H
d5392bb5da3c Added generated files
lost
parents:
diff changeset
97 gl_XALLOC
d5392bb5da3c Added generated files
lost
parents:
diff changeset
98 gl_XSIZE
d5392bb5da3c Added generated files
lost
parents:
diff changeset
99 gl_XSTRNDUP
d5392bb5da3c Added generated files
lost
parents:
diff changeset
100 m4_ifval(gl_LIBSOURCES_LIST, [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
101 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
d5392bb5da3c Added generated files
lost
parents:
diff changeset
102 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
103 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
104 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
d5392bb5da3c Added generated files
lost
parents:
diff changeset
105 exit 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
106 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
107 done])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
108 m4_if(m4_sysval, [0], [],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
109 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
110 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
111 m4_popdef([gl_LIBSOURCES_DIR])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
112 m4_popdef([gl_LIBSOURCES_LIST])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
113 m4_popdef([AC_LIBSOURCES])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
114 m4_popdef([AC_REPLACE_FUNCS])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
115 m4_popdef([AC_LIBOBJ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
116 AC_CONFIG_COMMANDS_PRE([
d5392bb5da3c Added generated files
lost
parents:
diff changeset
117 gl_libobjs=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
118 gl_ltlibobjs=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
119 if test -n "$gl_LIBOBJS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
120 # Remove the extension.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
121 sed_drop_objext='s/\.o$//;s/\.obj$//'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
122 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
123 gl_libobjs="$gl_libobjs $i.$ac_objext"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
124 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
125 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
126 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
127 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
128 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
129 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
130 gltests_libdeps=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
131 gltests_ltlibdeps=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
132 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
d5392bb5da3c Added generated files
lost
parents:
diff changeset
133 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
d5392bb5da3c Added generated files
lost
parents:
diff changeset
134 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
d5392bb5da3c Added generated files
lost
parents:
diff changeset
135 m4_pushdef([gltests_LIBSOURCES_LIST], [])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
136 m4_pushdef([gltests_LIBSOURCES_DIR], [])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
137 gl_COMMON
d5392bb5da3c Added generated files
lost
parents:
diff changeset
138 gl_source_base='tests'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
139 m4_ifval(gltests_LIBSOURCES_LIST, [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
140 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
d5392bb5da3c Added generated files
lost
parents:
diff changeset
141 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
142 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
143 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
d5392bb5da3c Added generated files
lost
parents:
diff changeset
144 exit 1
d5392bb5da3c Added generated files
lost
parents:
diff changeset
145 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
146 done])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
147 m4_if(m4_sysval, [0], [],
d5392bb5da3c Added generated files
lost
parents:
diff changeset
148 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
149 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
150 m4_popdef([gltests_LIBSOURCES_DIR])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
151 m4_popdef([gltests_LIBSOURCES_LIST])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
152 m4_popdef([AC_LIBSOURCES])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
153 m4_popdef([AC_REPLACE_FUNCS])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
154 m4_popdef([AC_LIBOBJ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
155 AC_CONFIG_COMMANDS_PRE([
d5392bb5da3c Added generated files
lost
parents:
diff changeset
156 gltests_libobjs=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
157 gltests_ltlibobjs=
d5392bb5da3c Added generated files
lost
parents:
diff changeset
158 if test -n "$gltests_LIBOBJS"; then
d5392bb5da3c Added generated files
lost
parents:
diff changeset
159 # Remove the extension.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
160 sed_drop_objext='s/\.o$//;s/\.obj$//'
d5392bb5da3c Added generated files
lost
parents:
diff changeset
161 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
d5392bb5da3c Added generated files
lost
parents:
diff changeset
162 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
163 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
164 done
d5392bb5da3c Added generated files
lost
parents:
diff changeset
165 fi
d5392bb5da3c Added generated files
lost
parents:
diff changeset
166 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
167 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
168 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
169 LIBGNU_LIBDEPS="$gl_libdeps"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
170 AC_SUBST([LIBGNU_LIBDEPS])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
171 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
172 AC_SUBST([LIBGNU_LTLIBDEPS])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
173 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
174
d5392bb5da3c Added generated files
lost
parents:
diff changeset
175 # Like AC_LIBOBJ, except that the module name goes
d5392bb5da3c Added generated files
lost
parents:
diff changeset
176 # into gl_LIBOBJS instead of into LIBOBJS.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
177 AC_DEFUN([gl_LIBOBJ], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
178 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
179 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
180 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
181
d5392bb5da3c Added generated files
lost
parents:
diff changeset
182 # Like AC_REPLACE_FUNCS, except that the module name goes
d5392bb5da3c Added generated files
lost
parents:
diff changeset
183 # into gl_LIBOBJS instead of into LIBOBJS.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
184 AC_DEFUN([gl_REPLACE_FUNCS], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
185 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
186 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
187 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
188
d5392bb5da3c Added generated files
lost
parents:
diff changeset
189 # Like AC_LIBSOURCES, except the directory where the source file is
d5392bb5da3c Added generated files
lost
parents:
diff changeset
190 # expected is derived from the gnulib-tool parameterization,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
191 # and alloca is special cased (for the alloca-opt module).
d5392bb5da3c Added generated files
lost
parents:
diff changeset
192 # We could also entirely rely on EXTRA_lib..._SOURCES.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
193 AC_DEFUN([gl_LIBSOURCES], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
194 m4_foreach([_gl_NAME], [$1], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
195 m4_if(_gl_NAME, [alloca.c], [], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
196 m4_define([gl_LIBSOURCES_DIR], [lib])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
197 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
198 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
199 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
200 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
201
d5392bb5da3c Added generated files
lost
parents:
diff changeset
202 # Like AC_LIBOBJ, except that the module name goes
d5392bb5da3c Added generated files
lost
parents:
diff changeset
203 # into gltests_LIBOBJS instead of into LIBOBJS.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
204 AC_DEFUN([gltests_LIBOBJ], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
205 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
206 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
d5392bb5da3c Added generated files
lost
parents:
diff changeset
207 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
208
d5392bb5da3c Added generated files
lost
parents:
diff changeset
209 # Like AC_REPLACE_FUNCS, except that the module name goes
d5392bb5da3c Added generated files
lost
parents:
diff changeset
210 # into gltests_LIBOBJS instead of into LIBOBJS.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
211 AC_DEFUN([gltests_REPLACE_FUNCS], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
212 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
d5392bb5da3c Added generated files
lost
parents:
diff changeset
213 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
214 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
215
d5392bb5da3c Added generated files
lost
parents:
diff changeset
216 # Like AC_LIBSOURCES, except the directory where the source file is
d5392bb5da3c Added generated files
lost
parents:
diff changeset
217 # expected is derived from the gnulib-tool parameterization,
d5392bb5da3c Added generated files
lost
parents:
diff changeset
218 # and alloca is special cased (for the alloca-opt module).
d5392bb5da3c Added generated files
lost
parents:
diff changeset
219 # We could also entirely rely on EXTRA_lib..._SOURCES.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
220 AC_DEFUN([gltests_LIBSOURCES], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
221 m4_foreach([_gl_NAME], [$1], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
222 m4_if(_gl_NAME, [alloca.c], [], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
223 m4_define([gltests_LIBSOURCES_DIR], [tests])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
224 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
225 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
226 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
227 ])
d5392bb5da3c Added generated files
lost
parents:
diff changeset
228
d5392bb5da3c Added generated files
lost
parents:
diff changeset
229 # This macro records the list of files which have been installed by
d5392bb5da3c Added generated files
lost
parents:
diff changeset
230 # gnulib-tool and may be removed by future gnulib-tool invocations.
d5392bb5da3c Added generated files
lost
parents:
diff changeset
231 AC_DEFUN([gl_FILE_LIST], [
d5392bb5da3c Added generated files
lost
parents:
diff changeset
232 build-aux/link-warning.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
233 lib/alloca.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
234 lib/alloca.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
235 lib/argp-ba.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
236 lib/argp-eexst.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
237 lib/argp-fmtstream.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
238 lib/argp-fmtstream.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
239 lib/argp-fs-xinl.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
240 lib/argp-help.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
241 lib/argp-namefrob.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
242 lib/argp-parse.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
243 lib/argp-pin.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
244 lib/argp-pv.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
245 lib/argp-pvh.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
246 lib/argp-xinl.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
247 lib/argp.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
248 lib/asnprintf.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
249 lib/basename.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
250 lib/dirname.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
251 lib/dirname.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
252 lib/errno.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
253 lib/error.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
254 lib/error.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
255 lib/exitfail.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
256 lib/exitfail.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
257 lib/float+.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
258 lib/float.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
259 lib/getopt.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
260 lib/getopt.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
261 lib/getopt1.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
262 lib/getopt_int.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
263 lib/gettext.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
264 lib/intprops.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
265 lib/malloc.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
266 lib/mempcpy.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
267 lib/printf-args.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
268 lib/printf-args.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
269 lib/printf-parse.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
270 lib/printf-parse.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
271 lib/rawmemchr.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
272 lib/rawmemchr.valgrind
d5392bb5da3c Added generated files
lost
parents:
diff changeset
273 lib/size_max.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
274 lib/sleep.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
275 lib/stdbool.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
276 lib/stdint.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
277 lib/stdio-write.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
278 lib/stdio.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
279 lib/stdlib.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
280 lib/strcasecmp.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
281 lib/strchrnul.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
282 lib/strchrnul.valgrind
d5392bb5da3c Added generated files
lost
parents:
diff changeset
283 lib/strerror.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
284 lib/string.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
285 lib/strings.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
286 lib/stripslash.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
287 lib/strncasecmp.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
288 lib/strndup.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
289 lib/strnlen.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
290 lib/sysexits.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
291 lib/unistd.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
292 lib/vasnprintf.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
293 lib/vasnprintf.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
294 lib/vsnprintf.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
295 lib/wchar.in.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
296 lib/xalloc-die.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
297 lib/xalloc.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
298 lib/xmalloc.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
299 lib/xsize.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
300 lib/xstrndup.c
d5392bb5da3c Added generated files
lost
parents:
diff changeset
301 lib/xstrndup.h
d5392bb5da3c Added generated files
lost
parents:
diff changeset
302 m4/alloca.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
303 m4/argp.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
304 m4/dirname.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
305 m4/dos.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
306 m4/double-slash-root.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
307 m4/errno_h.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
308 m4/error.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
309 m4/exitfail.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
310 m4/extensions.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
311 m4/float_h.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
312 m4/getopt.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
313 m4/gnulib-common.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
314 m4/include_next.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
315 m4/inline.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
316 m4/intmax_t.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
317 m4/inttypes_h.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
318 m4/longlong.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
319 m4/malloc.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
320 m4/mempcpy.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
321 m4/multiarch.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
322 m4/onceonly.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
323 m4/printf.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
324 m4/rawmemchr.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
325 m4/size_max.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
326 m4/sleep.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
327 m4/stdbool.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
328 m4/stdint.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
329 m4/stdint_h.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
330 m4/stdio_h.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
331 m4/stdlib_h.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
332 m4/strcase.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
333 m4/strchrnul.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
334 m4/strerror.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
335 m4/string_h.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
336 m4/strings_h.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
337 m4/strndup.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
338 m4/strnlen.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
339 m4/sysexits.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
340 m4/unistd_h.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
341 m4/vasnprintf.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
342 m4/vsnprintf.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
343 m4/wchar.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
344 m4/wchar_t.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
345 m4/wint_t.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
346 m4/xalloc.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
347 m4/xsize.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
348 m4/xstrndup.m4
d5392bb5da3c Added generated files
lost
parents:
diff changeset
349 ])