* Makefile.in (GNULIB_MODULES): Add strtoumax.
[bpt/emacs.git] / m4 / gl-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2011 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 that use version control, this file can be treated like
16 # other built files.
17
18
19 # This macro should be invoked from ./configure.in, in the section
20 # "Checks for programs", right after AC_PROG_CC, and certainly before
21 # any checks for libraries, header files, types and library functions.
22 AC_DEFUN([gl_EARLY],
23 [
24 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
25 m4_pattern_allow([^gl_ES$])dnl a valid locale name
26 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
27 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
28 AC_REQUIRE([AC_PROG_RANLIB])
29 # Code from module allocator:
30 # Code from module arg-nonnull:
31 # Code from module c++defs:
32 # Code from module careadlinkat:
33 # Code from module crypto/md5:
34 # Code from module dosname:
35 # Code from module dtoastr:
36 # Code from module extensions:
37 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
38 # Code from module filemode:
39 # Code from module getloadavg:
40 # Code from module getopt-gnu:
41 # Code from module getopt-posix:
42 # Code from module gettext-h:
43 # Code from module ignore-value:
44 # Code from module include_next:
45 # Code from module intprops:
46 # Code from module inttypes:
47 # Code from module lstat:
48 # Code from module mktime:
49 # Code from module multiarch:
50 # Code from module readlink:
51 # Code from module socklen:
52 # Code from module ssize_t:
53 # Code from module stat:
54 # Code from module stdbool:
55 # Code from module stddef:
56 # Code from module stdint:
57 # Code from module stdio:
58 # Code from module stdlib:
59 # Code from module strftime:
60 # Code from module strtoimax:
61 # Code from module strtol:
62 # Code from module strtoll:
63 # Code from module strtoul:
64 # Code from module strtoull:
65 # Code from module strtoumax:
66 # Code from module symlink:
67 # Code from module sys_stat:
68 # Code from module time:
69 # Code from module time_r:
70 # Code from module unistd:
71 # Code from module verify:
72 # Code from module warn-on-use:
73 # Code from module wchar:
74 ])
75
76 # This macro should be invoked from ./configure.in, in the section
77 # "Check for header files, types and library functions".
78 AC_DEFUN([gl_INIT],
79 [
80 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
81 gl_cond_libtool=false
82 gl_libdeps=
83 gl_ltlibdeps=
84 gl_m4_base='m4'
85 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
86 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
87 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
88 m4_pushdef([gl_LIBSOURCES_LIST], [])
89 m4_pushdef([gl_LIBSOURCES_DIR], [])
90 gl_COMMON
91 gl_source_base='lib'
92 # Code from module allocator:
93 # Code from module arg-nonnull:
94 # Code from module c++defs:
95 # Code from module careadlinkat:
96 AC_CHECK_FUNCS_ONCE([readlinkat])
97 # Code from module crypto/md5:
98 gl_MD5
99 # Code from module dosname:
100 # Code from module dtoastr:
101 AC_REQUIRE([gl_C99_STRTOLD])
102 # Code from module extensions:
103 # Code from module filemode:
104 gl_FILEMODE
105 # Code from module getloadavg:
106 gl_GETLOADAVG([$gl_source_base])
107 gl_STDLIB_MODULE_INDICATOR([getloadavg])
108 # Code from module getopt-gnu:
109 gl_FUNC_GETOPT_GNU
110 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
111 # Code from module getopt-posix:
112 gl_FUNC_GETOPT_POSIX
113 # Code from module gettext-h:
114 AC_SUBST([LIBINTL])
115 AC_SUBST([LTLIBINTL])
116 # Code from module ignore-value:
117 AC_REQUIRE([AC_C_INLINE])
118 # Code from module include_next:
119 # Code from module intprops:
120 # Code from module inttypes:
121 gl_INTTYPES_H
122 # Code from module lstat:
123 gl_FUNC_LSTAT
124 gl_SYS_STAT_MODULE_INDICATOR([lstat])
125 # Code from module mktime:
126 gl_FUNC_MKTIME
127 gl_TIME_MODULE_INDICATOR([mktime])
128 # Code from module multiarch:
129 gl_MULTIARCH
130 # Code from module readlink:
131 gl_FUNC_READLINK
132 gl_UNISTD_MODULE_INDICATOR([readlink])
133 # Code from module socklen:
134 gl_TYPE_SOCKLEN_T
135 # Code from module ssize_t:
136 gt_TYPE_SSIZE_T
137 # Code from module stat:
138 gl_FUNC_STAT
139 gl_SYS_STAT_MODULE_INDICATOR([stat])
140 # Code from module stdbool:
141 AM_STDBOOL_H
142 # Code from module stddef:
143 gl_STDDEF_H
144 # Code from module stdint:
145 gl_STDINT_H
146 # Code from module stdio:
147 gl_STDIO_H
148 # Code from module stdlib:
149 gl_STDLIB_H
150 # Code from module strftime:
151 gl_FUNC_GNU_STRFTIME
152 # Code from module strtoimax:
153 gl_FUNC_STRTOIMAX
154 gl_INTTYPES_MODULE_INDICATOR([strtoimax])
155 # Code from module strtol:
156 gl_FUNC_STRTOL
157 # Code from module strtoll:
158 gl_FUNC_STRTOLL
159 gl_STDLIB_MODULE_INDICATOR([strtoll])
160 # Code from module strtoul:
161 gl_FUNC_STRTOUL
162 # Code from module strtoull:
163 gl_FUNC_STRTOULL
164 gl_STDLIB_MODULE_INDICATOR([strtoull])
165 # Code from module strtoumax:
166 gl_FUNC_STRTOUMAX
167 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
168 # Code from module symlink:
169 gl_FUNC_SYMLINK
170 gl_UNISTD_MODULE_INDICATOR([symlink])
171 # Code from module sys_stat:
172 gl_HEADER_SYS_STAT_H
173 AC_PROG_MKDIR_P
174 # Code from module time:
175 gl_HEADER_TIME_H
176 # Code from module time_r:
177 gl_TIME_R
178 gl_TIME_MODULE_INDICATOR([time_r])
179 # Code from module unistd:
180 gl_UNISTD_H
181 # Code from module verify:
182 # Code from module warn-on-use:
183 # Code from module wchar:
184 gl_WCHAR_H
185 # End of code from modules
186 m4_ifval(gl_LIBSOURCES_LIST, [
187 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
188 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
189 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
190 echo "missing file ]m4_defn([gl_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([gl_LIBSOURCES_DIR])
198 m4_popdef([gl_LIBSOURCES_LIST])
199 m4_popdef([AC_LIBSOURCES])
200 m4_popdef([AC_REPLACE_FUNCS])
201 m4_popdef([AC_LIBOBJ])
202 AC_CONFIG_COMMANDS_PRE([
203 gl_libobjs=
204 gl_ltlibobjs=
205 if test -n "$gl_LIBOBJS"; then
206 # Remove the extension.
207 sed_drop_objext='s/\.o$//;s/\.obj$//'
208 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
209 gl_libobjs="$gl_libobjs $i.$ac_objext"
210 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
211 done
212 fi
213 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
214 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
215 ])
216 gltests_libdeps=
217 gltests_ltlibdeps=
218 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
219 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
220 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
221 m4_pushdef([gltests_LIBSOURCES_LIST], [])
222 m4_pushdef([gltests_LIBSOURCES_DIR], [])
223 gl_COMMON
224 gl_source_base='tests'
225 changequote(,)dnl
226 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
227 changequote([, ])dnl
228 AC_SUBST([gltests_WITNESS])
229 gl_module_indicator_condition=$gltests_WITNESS
230 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
231 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
232 m4_ifval(gltests_LIBSOURCES_LIST, [
233 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
234 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
235 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
236 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
237 exit 1
238 fi
239 done])dnl
240 m4_if(m4_sysval, [0], [],
241 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
242 ])
243 m4_popdef([gltests_LIBSOURCES_DIR])
244 m4_popdef([gltests_LIBSOURCES_LIST])
245 m4_popdef([AC_LIBSOURCES])
246 m4_popdef([AC_REPLACE_FUNCS])
247 m4_popdef([AC_LIBOBJ])
248 AC_CONFIG_COMMANDS_PRE([
249 gltests_libobjs=
250 gltests_ltlibobjs=
251 if test -n "$gltests_LIBOBJS"; then
252 # Remove the extension.
253 sed_drop_objext='s/\.o$//;s/\.obj$//'
254 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
255 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
256 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
257 done
258 fi
259 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
260 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
261 ])
262 LIBGNU_LIBDEPS="$gl_libdeps"
263 AC_SUBST([LIBGNU_LIBDEPS])
264 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
265 AC_SUBST([LIBGNU_LTLIBDEPS])
266 ])
267
268 # Like AC_LIBOBJ, except that the module name goes
269 # into gl_LIBOBJS instead of into LIBOBJS.
270 AC_DEFUN([gl_LIBOBJ], [
271 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
272 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
273 ])
274
275 # Like AC_REPLACE_FUNCS, except that the module name goes
276 # into gl_LIBOBJS instead of into LIBOBJS.
277 AC_DEFUN([gl_REPLACE_FUNCS], [
278 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
279 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
280 ])
281
282 # Like AC_LIBSOURCES, except the directory where the source file is
283 # expected is derived from the gnulib-tool parameterization,
284 # and alloca is special cased (for the alloca-opt module).
285 # We could also entirely rely on EXTRA_lib..._SOURCES.
286 AC_DEFUN([gl_LIBSOURCES], [
287 m4_foreach([_gl_NAME], [$1], [
288 m4_if(_gl_NAME, [alloca.c], [], [
289 m4_define([gl_LIBSOURCES_DIR], [lib])
290 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
291 ])
292 ])
293 ])
294
295 # Like AC_LIBOBJ, except that the module name goes
296 # into gltests_LIBOBJS instead of into LIBOBJS.
297 AC_DEFUN([gltests_LIBOBJ], [
298 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
299 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
300 ])
301
302 # Like AC_REPLACE_FUNCS, except that the module name goes
303 # into gltests_LIBOBJS instead of into LIBOBJS.
304 AC_DEFUN([gltests_REPLACE_FUNCS], [
305 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
306 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
307 ])
308
309 # Like AC_LIBSOURCES, except the directory where the source file is
310 # expected is derived from the gnulib-tool parameterization,
311 # and alloca is special cased (for the alloca-opt module).
312 # We could also entirely rely on EXTRA_lib..._SOURCES.
313 AC_DEFUN([gltests_LIBSOURCES], [
314 m4_foreach([_gl_NAME], [$1], [
315 m4_if(_gl_NAME, [alloca.c], [], [
316 m4_define([gltests_LIBSOURCES_DIR], [tests])
317 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
318 ])
319 ])
320 ])
321
322 # This macro records the list of files which have been installed by
323 # gnulib-tool and may be removed by future gnulib-tool invocations.
324 AC_DEFUN([gl_FILE_LIST], [
325 build-aux/arg-nonnull.h
326 build-aux/c++defs.h
327 build-aux/warn-on-use.h
328 lib/allocator.c
329 lib/allocator.h
330 lib/careadlinkat.c
331 lib/careadlinkat.h
332 lib/dosname.h
333 lib/dtoastr.c
334 lib/filemode.c
335 lib/filemode.h
336 lib/ftoastr.c
337 lib/ftoastr.h
338 lib/getloadavg.c
339 lib/getopt.c
340 lib/getopt.in.h
341 lib/getopt1.c
342 lib/getopt_int.h
343 lib/gettext.h
344 lib/ignore-value.h
345 lib/intprops.h
346 lib/inttypes.in.h
347 lib/lstat.c
348 lib/md5.c
349 lib/md5.h
350 lib/mktime-internal.h
351 lib/mktime.c
352 lib/readlink.c
353 lib/stat.c
354 lib/stdbool.in.h
355 lib/stddef.in.h
356 lib/stdint.in.h
357 lib/stdio.in.h
358 lib/stdlib.in.h
359 lib/strftime.c
360 lib/strftime.h
361 lib/strtoimax.c
362 lib/strtol.c
363 lib/strtoll.c
364 lib/strtoul.c
365 lib/strtoull.c
366 lib/strtoumax.c
367 lib/symlink.c
368 lib/sys_stat.in.h
369 lib/time.in.h
370 lib/time_r.c
371 lib/unistd.in.h
372 lib/verify.h
373 lib/wchar.in.h
374 m4/00gnulib.m4
375 m4/c-strtod.m4
376 m4/extensions.m4
377 m4/filemode.m4
378 m4/getloadavg.m4
379 m4/getopt.m4
380 m4/gnulib-common.m4
381 m4/include_next.m4
382 m4/inttypes-pri.m4
383 m4/inttypes.m4
384 m4/longlong.m4
385 m4/lstat.m4
386 m4/md5.m4
387 m4/mktime.m4
388 m4/multiarch.m4
389 m4/readlink.m4
390 m4/socklen.m4
391 m4/ssize_t.m4
392 m4/st_dm_mode.m4
393 m4/stat.m4
394 m4/stdbool.m4
395 m4/stddef_h.m4
396 m4/stdint.m4
397 m4/stdio_h.m4
398 m4/stdlib_h.m4
399 m4/strftime.m4
400 m4/strtoimax.m4
401 m4/strtol.m4
402 m4/strtoll.m4
403 m4/strtoul.m4
404 m4/strtoull.m4
405 m4/strtoumax.m4
406 m4/symlink.m4
407 m4/sys_stat_h.m4
408 m4/time_h.m4
409 m4/time_r.m4
410 m4/tm_gmtoff.m4
411 m4/unistd_h.m4
412 m4/warn-on-use.m4
413 m4/wchar_h.m4
414 m4/wchar_t.m4
415 m4/wint_t.m4
416 ])