Imported Upstream version 3.1.0
[debian/amanda] / config / gnulib / gnulib-comp.m4
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.
16
17
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([AM_PROG_CC_C_O])
29   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
30   AC_REQUIRE([AC_FUNC_FSEEKO])
31   AC_REQUIRE([AC_FUNC_FSEEKO])
32   gl_THREADLIB_EARLY
33 ])
34
35 # This macro should be invoked from ./configure.in, in the section
36 # "Check for header files, types and library functions".
37 AC_DEFUN([gl_INIT],
38 [
39   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
40   gl_cond_libtool=true
41   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
42   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
43   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
44   m4_pushdef([gl_LIBSOURCES_LIST], [])
45   m4_pushdef([gl_LIBSOURCES_DIR], [])
46   gl_COMMON
47   gl_source_base='gnulib'
48 changequote(,)dnl
49 LTALLOCA=`echo "$ALLOCA" | sed 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
50 changequote([, ])dnl
51 AC_SUBST([LTALLOCA])
52   gl_FUNC_ALLOCA
53   gl_HEADER_ARPA_INET
54   AC_PROG_MKDIR_P
55   gl_FUNC_BASE64
56   gl_FUNC_BTOWC
57   gl_WCHAR_MODULE_INDICATOR([btowc])
58   AC_REQUIRE([gl_HEADER_ERRNO_H])
59   gl_FLOAT_H
60   gl_FUNC_FSEEKO
61   gl_STDIO_MODULE_INDICATOR([fseeko])
62   gl_FSUSAGE
63   gl_FUNC_FTELLO
64   gl_STDIO_MODULE_INDICATOR([ftello])
65   gl_FUNC_FTRUNCATE
66   gl_UNISTD_MODULE_INDICATOR([ftruncate])
67   gl_GETADDRINFO
68   gl_NETDB_MODULE_INDICATOR([getaddrinfo])
69   gl_GETOPT
70   AC_SUBST([LIBINTL])
71   AC_SUBST([LTLIBINTL])
72   gl_FUNC_GETTIMEOFDAY
73   gl_HOSTENT
74   gl_INET_NTOP
75   gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
76   gl_LOCALCHARSET
77   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
78   AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
79   gl_LOCK
80   gl_FUNC_LSEEK
81   gl_UNISTD_MODULE_INDICATOR([lseek])
82   gl_FUNC_LSTAT
83   gl_SYS_STAT_MODULE_INDICATOR([lstat])
84   AC_FUNC_MALLOC
85   AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
86   gl_FUNC_MALLOC_POSIX
87   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
88   gl_FUNC_MBRTOWC
89   gl_WCHAR_MODULE_INDICATOR([mbrtowc])
90   gl_FUNC_MBSINIT
91   gl_WCHAR_MODULE_INDICATOR([mbsinit])
92   gt_FUNC_MKDTEMP
93   gl_STDLIB_MODULE_INDICATOR([mkdtemp])
94   AC_REQUIRE([gl_MULTIARCH])
95   gl_HEADER_NETDB
96   gl_HEADER_NETINET_IN
97   AC_PROG_MKDIR_P
98   gl_PHYSMEM
99   gl_REGEX
100   gl_SAFE_READ
101   gl_SAFE_WRITE
102   gl_SERVENT
103   gl_SIZE_MAX
104   gl_FUNC_SNPRINTF
105   gl_STDIO_MODULE_INDICATOR([snprintf])
106   gl_TYPE_SOCKLEN_T
107   gt_TYPE_SSIZE_T
108   AM_STDBOOL_H
109   gl_STDINT_H
110   gl_STDIO_H
111   gl_STDLIB_H
112   gl_HEADER_SYS_SOCKET
113   gl_MODULE_INDICATOR([sys_socket])
114   AC_PROG_MKDIR_P
115   gl_HEADER_SYS_STAT_H
116   AC_PROG_MKDIR_P
117   gl_HEADER_SYS_TIME_H
118   AC_PROG_MKDIR_P
119   gl_FUNC_GEN_TEMPNAME
120   gl_THREADLIB
121   gl_UNISTD_H
122   gl_FUNC_VASNPRINTF
123   gl_VISIBILITY
124   gl_WCHAR_H
125   gl_FUNC_WCRTOMB
126   gl_WCHAR_MODULE_INDICATOR([wcrtomb])
127   gl_WCTYPE_H
128   gl_FUNC_WRITE
129   gl_UNISTD_MODULE_INDICATOR([write])
130   gl_XSIZE
131   m4_ifval(gl_LIBSOURCES_LIST, [
132     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
133       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
134         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
135           echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
136           exit 1
137         fi
138       done])dnl
139       m4_if(m4_sysval, [0], [],
140         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
141   ])
142   m4_popdef([gl_LIBSOURCES_DIR])
143   m4_popdef([gl_LIBSOURCES_LIST])
144   m4_popdef([AC_LIBSOURCES])
145   m4_popdef([AC_REPLACE_FUNCS])
146   m4_popdef([AC_LIBOBJ])
147   AC_CONFIG_COMMANDS_PRE([
148     gl_libobjs=
149     gl_ltlibobjs=
150     if test -n "$gl_LIBOBJS"; then
151       # Remove the extension.
152       sed_drop_objext='s/\.o$//;s/\.obj$//'
153       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
154         gl_libobjs="$gl_libobjs $i.$ac_objext"
155         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
156       done
157     fi
158     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
159     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
160   ])
161   gltests_libdeps=
162   gltests_ltlibdeps=
163   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
164   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
165   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
166   m4_pushdef([gltests_LIBSOURCES_LIST], [])
167   m4_pushdef([gltests_LIBSOURCES_DIR], [])
168   gl_COMMON
169   gl_source_base='tests'
170   m4_ifval(gltests_LIBSOURCES_LIST, [
171     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
172       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
173         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
174           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
175           exit 1
176         fi
177       done])dnl
178       m4_if(m4_sysval, [0], [],
179         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
180   ])
181   m4_popdef([gltests_LIBSOURCES_DIR])
182   m4_popdef([gltests_LIBSOURCES_LIST])
183   m4_popdef([AC_LIBSOURCES])
184   m4_popdef([AC_REPLACE_FUNCS])
185   m4_popdef([AC_LIBOBJ])
186   AC_CONFIG_COMMANDS_PRE([
187     gltests_libobjs=
188     gltests_ltlibobjs=
189     if test -n "$gltests_LIBOBJS"; then
190       # Remove the extension.
191       sed_drop_objext='s/\.o$//;s/\.obj$//'
192       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
193         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
194         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
195       done
196     fi
197     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
198     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
199   ])
200 ])
201
202 # Like AC_LIBOBJ, except that the module name goes
203 # into gl_LIBOBJS instead of into LIBOBJS.
204 AC_DEFUN([gl_LIBOBJ], [
205   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
206   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
207 ])
208
209 # Like AC_REPLACE_FUNCS, except that the module name goes
210 # into gl_LIBOBJS instead of into LIBOBJS.
211 AC_DEFUN([gl_REPLACE_FUNCS], [
212   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
213   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
214 ])
215
216 # Like AC_LIBSOURCES, except the directory where the source file is
217 # expected is derived from the gnulib-tool parameterization,
218 # and alloca is special cased (for the alloca-opt module).
219 # We could also entirely rely on EXTRA_lib..._SOURCES.
220 AC_DEFUN([gl_LIBSOURCES], [
221   m4_foreach([_gl_NAME], [$1], [
222     m4_if(_gl_NAME, [alloca.c], [], [
223       m4_define([gl_LIBSOURCES_DIR], [gnulib])
224       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
225     ])
226   ])
227 ])
228
229 # Like AC_LIBOBJ, except that the module name goes
230 # into gltests_LIBOBJS instead of into LIBOBJS.
231 AC_DEFUN([gltests_LIBOBJ], [
232   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
233   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
234 ])
235
236 # Like AC_REPLACE_FUNCS, except that the module name goes
237 # into gltests_LIBOBJS instead of into LIBOBJS.
238 AC_DEFUN([gltests_REPLACE_FUNCS], [
239   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
240   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
241 ])
242
243 # Like AC_LIBSOURCES, except the directory where the source file is
244 # expected is derived from the gnulib-tool parameterization,
245 # and alloca is special cased (for the alloca-opt module).
246 # We could also entirely rely on EXTRA_lib..._SOURCES.
247 AC_DEFUN([gltests_LIBSOURCES], [
248   m4_foreach([_gl_NAME], [$1], [
249     m4_if(_gl_NAME, [alloca.c], [], [
250       m4_define([gltests_LIBSOURCES_DIR], [tests])
251       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
252     ])
253   ])
254 ])
255
256 # This macro records the list of files which have been installed by
257 # gnulib-tool and may be removed by future gnulib-tool invocations.
258 AC_DEFUN([gl_FILE_LIST], [
259   build-aux/config.rpath
260   build-aux/link-warning.h
261   lib/alloca.c
262   lib/alloca.in.h
263   lib/arpa_inet.in.h
264   lib/asnprintf.c
265   lib/base64.c
266   lib/base64.h
267   lib/btowc.c
268   lib/config.charset
269   lib/errno.in.h
270   lib/float+.h
271   lib/float.in.h
272   lib/fseeko.c
273   lib/fsusage.c
274   lib/fsusage.h
275   lib/ftello.c
276   lib/ftruncate.c
277   lib/full-read.c
278   lib/full-read.h
279   lib/full-write.c
280   lib/full-write.h
281   lib/gai_strerror.c
282   lib/getaddrinfo.c
283   lib/getopt.c
284   lib/getopt.in.h
285   lib/getopt1.c
286   lib/getopt_int.h
287   lib/gettext.h
288   lib/gettimeofday.c
289   lib/glthread/lock.c
290   lib/glthread/lock.h
291   lib/glthread/threadlib.c
292   lib/inet_ntop.c
293   lib/localcharset.c
294   lib/localcharset.h
295   lib/lseek.c
296   lib/lstat.c
297   lib/malloc.c
298   lib/mbrtowc.c
299   lib/mbsinit.c
300   lib/mkdtemp.c
301   lib/netdb.in.h
302   lib/netinet_in.in.h
303   lib/physmem.c
304   lib/physmem.h
305   lib/printf-args.c
306   lib/printf-args.h
307   lib/printf-parse.c
308   lib/printf-parse.h
309   lib/ref-add.sin
310   lib/ref-del.sin
311   lib/regcomp.c
312   lib/regex.c
313   lib/regex.h
314   lib/regex_internal.c
315   lib/regex_internal.h
316   lib/regexec.c
317   lib/safe-read.c
318   lib/safe-read.h
319   lib/safe-write.c
320   lib/safe-write.h
321   lib/size_max.h
322   lib/snprintf.c
323   lib/stdbool.in.h
324   lib/stdint.in.h
325   lib/stdio-impl.h
326   lib/stdio-write.c
327   lib/stdio.in.h
328   lib/stdlib.in.h
329   lib/streq.h
330   lib/sys_socket.in.h
331   lib/sys_stat.in.h
332   lib/sys_time.in.h
333   lib/tempname.c
334   lib/tempname.h
335   lib/unistd.in.h
336   lib/vasnprintf.c
337   lib/vasnprintf.h
338   lib/verify.h
339   lib/wchar.in.h
340   lib/wcrtomb.c
341   lib/wctype.in.h
342   lib/write.c
343   lib/xsize.h
344   m4/00gnulib.m4
345   m4/alloca.m4
346   m4/arpa_inet_h.m4
347   m4/base64.m4
348   m4/btowc.m4
349   m4/codeset.m4
350   m4/errno_h.m4
351   m4/extensions.m4
352   m4/float_h.m4
353   m4/fseeko.m4
354   m4/fsusage.m4
355   m4/ftello.m4
356   m4/ftruncate.m4
357   m4/getaddrinfo.m4
358   m4/getopt.m4
359   m4/gettimeofday.m4
360   m4/glibc21.m4
361   m4/gnulib-common.m4
362   m4/hostent.m4
363   m4/include_next.m4
364   m4/inet_ntop.m4
365   m4/intmax_t.m4
366   m4/inttypes_h.m4
367   m4/lib-ld.m4
368   m4/lib-link.m4
369   m4/lib-prefix.m4
370   m4/localcharset.m4
371   m4/locale-fr.m4
372   m4/locale-ja.m4
373   m4/locale-zh.m4
374   m4/lock.m4
375   m4/longlong.m4
376   m4/lseek.m4
377   m4/lstat.m4
378   m4/malloc.m4
379   m4/mbrtowc.m4
380   m4/mbsinit.m4
381   m4/mbstate_t.m4
382   m4/mkdtemp.m4
383   m4/multiarch.m4
384   m4/netdb_h.m4
385   m4/netinet_in_h.m4
386   m4/onceonly.m4
387   m4/physmem.m4
388   m4/printf.m4
389   m4/regex.m4
390   m4/safe-read.m4
391   m4/safe-write.m4
392   m4/servent.m4
393   m4/size_max.m4
394   m4/snprintf.m4
395   m4/socklen.m4
396   m4/sockpfaf.m4
397   m4/ssize_t.m4
398   m4/stdbool.m4
399   m4/stdint.m4
400   m4/stdint_h.m4
401   m4/stdio_h.m4
402   m4/stdlib_h.m4
403   m4/sys_socket_h.m4
404   m4/sys_stat_h.m4
405   m4/sys_time_h.m4
406   m4/tempname.m4
407   m4/threadlib.m4
408   m4/unistd_h.m4
409   m4/vasnprintf.m4
410   m4/visibility.m4
411   m4/wchar.m4
412   m4/wchar_t.m4
413   m4/wcrtomb.m4
414   m4/wctype.m4
415   m4/wint_t.m4
416   m4/write.m4
417   m4/xsize.m4
418 ])