d0858c3842602fb76b08447b5f81e57bb88365d3
[debian/amanda] / config / gnulib / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2004-2007 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([AC_GNU_SOURCE])
29   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
30   AC_REQUIRE([gl_LOCK_EARLY])
31 ])
32
33 # This macro should be invoked from ./configure.in, in the section
34 # "Check for header files, types and library functions".
35 AC_DEFUN([gl_INIT],
36 [
37   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
38   gl_cond_libtool=true
39   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
40   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
41   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
42   gl_source_base='gnulib'
43   gl_FUNC_ALLOCA
44   gl_HEADER_ARPA_INET
45   AC_PROG_MKDIR_P
46   gl_FUNC_BASE64
47   gl_FLOAT_H
48   gl_FSUSAGE
49   gl_GETADDRINFO
50   gl_GETOPT
51   AC_SUBST([LIBINTL])
52   AC_SUBST([LTLIBINTL])
53   gl_FUNC_GETTIMEOFDAY
54   gl_INET_NTOP
55   gl_LOCK
56   gl_FUNC_MALLOC_POSIX
57   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
58   gt_FUNC_MKDTEMP
59   gl_STDLIB_MODULE_INDICATOR([mkdtemp])
60   gl_HEADER_NETINET_IN
61   AC_PROG_MKDIR_P
62   gl_PHYSMEM
63   gl_SAFE_READ
64   gl_SAFE_WRITE
65   gl_SIZE_MAX
66   gl_FUNC_SNPRINTF
67   gl_STDIO_MODULE_INDICATOR([snprintf])
68   gl_TYPE_SOCKLEN_T
69   gt_TYPE_SSIZE_T
70   AM_STDBOOL_H
71   gl_STDINT_H
72   gl_STDIO_H
73   gl_STDLIB_H
74   gl_FUNC_STRDUP
75   gl_STRING_MODULE_INDICATOR([strdup])
76   gl_HEADER_STRING_H
77   gl_HEADER_SYS_SOCKET
78   AC_PROG_MKDIR_P
79   gl_HEADER_SYS_STAT_H
80   AC_PROG_MKDIR_P
81   gl_HEADER_SYS_TIME_H
82   AC_PROG_MKDIR_P
83   gl_FUNC_GEN_TEMPNAME
84   gl_UNISTD_H
85   gl_FUNC_VASNPRINTF
86   gl_VISIBILITY
87   gl_WCHAR_H
88   gl_XSIZE
89   m4_popdef([AC_LIBSOURCES])
90   m4_popdef([AC_REPLACE_FUNCS])
91   m4_popdef([AC_LIBOBJ])
92   AC_CONFIG_COMMANDS_PRE([
93     gl_libobjs=
94     gl_ltlibobjs=
95     if test -n "$gl_LIBOBJS"; then
96       # Remove the extension.
97       sed_drop_objext='s/\.o$//;s/\.obj$//'
98       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
99         gl_libobjs="$gl_libobjs $i.$ac_objext"
100         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
101       done
102     fi
103     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
104     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
105   ])
106   gltests_libdeps=
107   gltests_ltlibdeps=
108   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
109   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
110   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
111   gl_source_base='tests'
112   m4_popdef([AC_LIBSOURCES])
113   m4_popdef([AC_REPLACE_FUNCS])
114   m4_popdef([AC_LIBOBJ])
115   AC_CONFIG_COMMANDS_PRE([
116     gltests_libobjs=
117     gltests_ltlibobjs=
118     if test -n "$gltests_LIBOBJS"; then
119       # Remove the extension.
120       sed_drop_objext='s/\.o$//;s/\.obj$//'
121       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
122         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
123         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
124       done
125     fi
126     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
127     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
128   ])
129 ])
130
131 # Like AC_LIBOBJ, except that the module name goes
132 # into gl_LIBOBJS instead of into LIBOBJS.
133 AC_DEFUN([gl_LIBOBJ], [
134   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
135   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
136 ])
137
138 # m4_foreach_w is provided by autoconf-2.59c and later.
139 # This definition is to accommodate developers using versions
140 # of autoconf older than that.
141 m4_ifndef([m4_foreach_w],
142   [m4_define([m4_foreach_w],
143     [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
144
145 # Like AC_REPLACE_FUNCS, except that the module name goes
146 # into gl_LIBOBJS instead of into LIBOBJS.
147 AC_DEFUN([gl_REPLACE_FUNCS], [
148   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
149   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
150 ])
151
152 # Like AC_LIBSOURCES, except the directory where the source file is
153 # expected is derived from the gnulib-tool parametrization,
154 # and alloca is special cased (for the alloca-opt module).
155 # We could also entirely rely on EXTRA_lib..._SOURCES.
156 AC_DEFUN([gl_LIBSOURCES], [
157   m4_foreach([_gl_NAME], [$1], [
158     m4_if(_gl_NAME, [alloca.c], [], [
159       m4_syscmd([test -r gnulib/]_gl_NAME[ || test ! -d gnulib])dnl
160       m4_if(m4_sysval, [0], [],
161         [AC_FATAL([missing gnulib/]_gl_NAME)])
162     ])
163   ])
164 ])
165
166 # Like AC_LIBOBJ, except that the module name goes
167 # into gltests_LIBOBJS instead of into LIBOBJS.
168 AC_DEFUN([gltests_LIBOBJ], [
169   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
170   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
171 ])
172
173 # m4_foreach_w is provided by autoconf-2.59c and later.
174 # This definition is to accommodate developers using versions
175 # of autoconf older than that.
176 m4_ifndef([m4_foreach_w],
177   [m4_define([m4_foreach_w],
178     [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
179
180 # Like AC_REPLACE_FUNCS, except that the module name goes
181 # into gltests_LIBOBJS instead of into LIBOBJS.
182 AC_DEFUN([gltests_REPLACE_FUNCS], [
183   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
184   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
185 ])
186
187 # Like AC_LIBSOURCES, except the directory where the source file is
188 # expected is derived from the gnulib-tool parametrization,
189 # and alloca is special cased (for the alloca-opt module).
190 # We could also entirely rely on EXTRA_lib..._SOURCES.
191 AC_DEFUN([gltests_LIBSOURCES], [
192   m4_foreach([_gl_NAME], [$1], [
193     m4_if(_gl_NAME, [alloca.c], [], [
194       m4_syscmd([test -r tests/]_gl_NAME[ || test ! -d tests])dnl
195       m4_if(m4_sysval, [0], [],
196         [AC_FATAL([missing tests/]_gl_NAME)])
197     ])
198   ])
199 ])
200
201 # This macro records the list of files which have been installed by
202 # gnulib-tool and may be removed by future gnulib-tool invocations.
203 AC_DEFUN([gl_FILE_LIST], [
204   build-aux/config.rpath
205   build-aux/link-warning.h
206   lib/alloca.in.h
207   lib/asnprintf.c
208   lib/base64.c
209   lib/base64.h
210   lib/float+.h
211   lib/float.in.h
212   lib/fsusage.c
213   lib/fsusage.h
214   lib/full-read.c
215   lib/full-read.h
216   lib/full-write.c
217   lib/full-write.h
218   lib/gai_strerror.c
219   lib/getaddrinfo.c
220   lib/getaddrinfo.h
221   lib/getopt.c
222   lib/getopt.in.h
223   lib/getopt1.c
224   lib/getopt_int.h
225   lib/gettext.h
226   lib/gettimeofday.c
227   lib/inet_ntop.c
228   lib/inet_ntop.h
229   lib/lock.c
230   lib/lock.h
231   lib/malloc.c
232   lib/mkdtemp.c
233   lib/netinet_in.in.h
234   lib/physmem.c
235   lib/physmem.h
236   lib/printf-args.c
237   lib/printf-args.h
238   lib/printf-parse.c
239   lib/printf-parse.h
240   lib/safe-read.c
241   lib/safe-read.h
242   lib/safe-write.c
243   lib/safe-write.h
244   lib/size_max.h
245   lib/snprintf.c
246   lib/stdbool.in.h
247   lib/stdint.in.h
248   lib/stdio.in.h
249   lib/stdlib.in.h
250   lib/strdup.c
251   lib/string.in.h
252   lib/sys_socket.in.h
253   lib/sys_stat.in.h
254   lib/sys_time.in.h
255   lib/tempname.c
256   lib/tempname.h
257   lib/unistd.in.h
258   lib/vasnprintf.c
259   lib/vasnprintf.h
260   lib/wchar.in.h
261   lib/xsize.h
262   m4/absolute-header.m4
263   m4/alloca.m4
264   m4/arpa_inet_h.m4
265   m4/base64.m4
266   m4/eoverflow.m4
267   m4/extensions.m4
268   m4/float_h.m4
269   m4/fsusage.m4
270   m4/getaddrinfo.m4
271   m4/getopt.m4
272   m4/gettimeofday.m4
273   m4/gnulib-common.m4
274   m4/include_next.m4
275   m4/inet_ntop.m4
276   m4/intmax_t.m4
277   m4/inttypes_h.m4
278   m4/lib-ld.m4
279   m4/lib-link.m4
280   m4/lib-prefix.m4
281   m4/lock.m4
282   m4/longlong.m4
283   m4/malloc.m4
284   m4/mkdtemp.m4
285   m4/netinet_in_h.m4
286   m4/onceonly_2_57.m4
287   m4/physmem.m4
288   m4/safe-read.m4
289   m4/safe-write.m4
290   m4/size_max.m4
291   m4/snprintf.m4
292   m4/socklen.m4
293   m4/sockpfaf.m4
294   m4/ssize_t.m4
295   m4/stdbool.m4
296   m4/stdint.m4
297   m4/stdint_h.m4
298   m4/stdio_h.m4
299   m4/stdlib_h.m4
300   m4/strdup.m4
301   m4/string_h.m4
302   m4/sys_socket_h.m4
303   m4/sys_stat_h.m4
304   m4/sys_time_h.m4
305   m4/tempname.m4
306   m4/unistd_h.m4
307   m4/vasnprintf.m4
308   m4/visibility.m4
309   m4/wchar.m4
310   m4/wchar_t.m4
311   m4/wint_t.m4
312   m4/xsize.m4
313 ])