Update gnulib files.
[gnutls:gnutls.git] / lgl / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2008 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([lgl_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 ])
31
32 # This macro should be invoked from ./configure.in, in the section
33 # "Check for header files, types and library functions".
34 AC_DEFUN([lgl_INIT],
35 [
36   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
37   gl_cond_libtool=true
38   m4_pushdef([AC_LIBOBJ], m4_defn([lgl_LIBOBJ]))
39   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([lgl_REPLACE_FUNCS]))
40   m4_pushdef([AC_LIBSOURCES], m4_defn([lgl_LIBSOURCES]))
41   gl_COMMON
42   gl_source_base='lgl'
43   gl_EOVERFLOW
44   gl_FUNC_ALLOCA
45   gl_GC
46   if test $gl_cond_libtool = false; then
47     gl_ltlibdeps="$gl_ltlibdeps $LTLIBGCRYPT"
48     gl_libdeps="$gl_libdeps $LIBGCRYPT"
49   fi
50   gl_GC_ARCFOUR
51   gl_MODULE_INDICATOR([gc-arcfour])
52   gl_GC_ARCTWO
53   gl_MODULE_INDICATOR([gc-arctwo])
54   gl_GC_CAMELLIA
55   gl_MODULE_INDICATOR([gc-camellia])
56   gl_GC_DES
57   gl_MODULE_INDICATOR([gc-des])
58   gl_GC_HMAC_MD5
59   gl_MODULE_INDICATOR([gc-hmac-md5])
60   gl_GC_HMAC_SHA1
61   gl_MODULE_INDICATOR([gc-hmac-sha1])
62   gl_GC_MD2
63   gl_MODULE_INDICATOR([gc-md2])
64   gl_GC_MD4
65   gl_MODULE_INDICATOR([gc-md4])
66   gl_GC_MD5
67   gl_MODULE_INDICATOR([gc-md5])
68   gl_GC_PBKDF2_SHA1
69   gl_GC_RANDOM
70   gl_MODULE_INDICATOR([gc-random])
71   gl_GC_RIJNDAEL
72   gl_MODULE_INDICATOR([gc-rijndael])
73   gl_GC_SHA1
74   gl_MODULE_INDICATOR([gc-sha1])
75   gl_MD2
76   gl_FLOAT_H
77   gl_FUNC
78   dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
79   AM_GNU_GETTEXT_VERSION([0.17])
80   AC_SUBST([LIBINTL])
81   AC_SUBST([LTLIBINTL])
82   gl_FUNC_MEMCHR
83   gl_FUNC_MEMCMP
84   gl_FUNC_MEMMEM_SIMPLE
85   gl_STRING_MODULE_INDICATOR([memmem])
86   gl_FUNC_MEMMOVE
87   gl_MINMAX
88   gl_FUNC_READ_FILE
89   gl_FUNC_REALLOC_POSIX
90   gl_STDLIB_MODULE_INDICATOR([realloc-posix])
91   gl_SIZE_MAX
92   gl_FUNC_SNPRINTF
93   gl_STDIO_MODULE_INDICATOR([snprintf])
94   gl_TYPE_SOCKLEN_T
95   AM_STDBOOL_H
96   gl_STDINT_H
97   gl_STDIO_H
98   gl_STDLIB_H
99   gl_HEADER_STRING_H
100   gl_FUNC_STRVERSCMP
101   gl_HEADER_SYS_SOCKET
102   AC_PROG_MKDIR_P
103   gl_HEADER_SYS_STAT_H
104   AC_PROG_MKDIR_P
105   gl_HEADER_TIME_H
106   gl_TIME_R
107   gl_UNISTD_H
108   gl_FUNC_VASNPRINTF
109   gl_FUNC_VASPRINTF
110   gl_STDIO_MODULE_INDICATOR([vasprintf])
111   m4_ifdef([AM_XGETTEXT_OPTION],
112     [AM_XGETTEXT_OPTION([--flag=asprintf:2:c-format])
113      AM_XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
114   gl_WCHAR_H
115   gl_XSIZE
116   m4_popdef([AC_LIBSOURCES])
117   m4_popdef([AC_REPLACE_FUNCS])
118   m4_popdef([AC_LIBOBJ])
119   AC_CONFIG_COMMANDS_PRE([
120     lgl_libobjs=
121     lgl_ltlibobjs=
122     if test -n "$lgl_LIBOBJS"; then
123       # Remove the extension.
124       sed_drop_objext='s/\.o$//;s/\.obj$//'
125       for i in `for i in $lgl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
126         lgl_libobjs="$lgl_libobjs $i.$ac_objext"
127         lgl_ltlibobjs="$lgl_ltlibobjs $i.lo"
128       done
129     fi
130     AC_SUBST([lgl_LIBOBJS], [$lgl_libobjs])
131     AC_SUBST([lgl_LTLIBOBJS], [$lgl_ltlibobjs])
132   ])
133   gltests_libdeps=
134   gltests_ltlibdeps=
135   m4_pushdef([AC_LIBOBJ], m4_defn([lgltests_LIBOBJ]))
136   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([lgltests_REPLACE_FUNCS]))
137   m4_pushdef([AC_LIBSOURCES], m4_defn([lgltests_LIBSOURCES]))
138   gl_COMMON
139   gl_source_base='tests'
140   m4_popdef([AC_LIBSOURCES])
141   m4_popdef([AC_REPLACE_FUNCS])
142   m4_popdef([AC_LIBOBJ])
143   AC_CONFIG_COMMANDS_PRE([
144     lgltests_libobjs=
145     lgltests_ltlibobjs=
146     if test -n "$lgltests_LIBOBJS"; then
147       # Remove the extension.
148       sed_drop_objext='s/\.o$//;s/\.obj$//'
149       for i in `for i in $lgltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
150         lgltests_libobjs="$lgltests_libobjs $i.$ac_objext"
151         lgltests_ltlibobjs="$lgltests_ltlibobjs $i.lo"
152       done
153     fi
154     AC_SUBST([lgltests_LIBOBJS], [$lgltests_libobjs])
155     AC_SUBST([lgltests_LTLIBOBJS], [$lgltests_ltlibobjs])
156   ])
157 ])
158
159 # Like AC_LIBOBJ, except that the module name goes
160 # into lgl_LIBOBJS instead of into LIBOBJS.
161 AC_DEFUN([lgl_LIBOBJ], [
162   AS_LITERAL_IF([$1], [lgl_LIBSOURCES([$1.c])])dnl
163   lgl_LIBOBJS="$lgl_LIBOBJS $1.$ac_objext"
164 ])
165
166 # m4_foreach_w is provided by autoconf-2.59c and later.
167 # This definition is to accommodate developers using versions
168 # of autoconf older than that.
169 m4_ifndef([m4_foreach_w],
170   [m4_define([m4_foreach_w],
171     [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
172
173 # Like AC_REPLACE_FUNCS, except that the module name goes
174 # into lgl_LIBOBJS instead of into LIBOBJS.
175 AC_DEFUN([lgl_REPLACE_FUNCS], [
176   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
177   AC_CHECK_FUNCS([$1], , [lgl_LIBOBJ($ac_func)])
178 ])
179
180 # Like AC_LIBSOURCES, except the directory where the source file is
181 # expected is derived from the gnulib-tool parametrization,
182 # and alloca is special cased (for the alloca-opt module).
183 # We could also entirely rely on EXTRA_lib..._SOURCES.
184 AC_DEFUN([lgl_LIBSOURCES], [
185   m4_foreach([_gl_NAME], [$1], [
186     m4_if(_gl_NAME, [alloca.c], [], [
187       m4_syscmd([test -r lgl/]_gl_NAME[ || test ! -d lgl])dnl
188       m4_if(m4_sysval, [0], [],
189         [AC_FATAL([missing lgl/]_gl_NAME)])
190     ])
191   ])
192 ])
193
194 # Like AC_LIBOBJ, except that the module name goes
195 # into lgltests_LIBOBJS instead of into LIBOBJS.
196 AC_DEFUN([lgltests_LIBOBJ], [
197   AS_LITERAL_IF([$1], [lgltests_LIBSOURCES([$1.c])])dnl
198   lgltests_LIBOBJS="$lgltests_LIBOBJS $1.$ac_objext"
199 ])
200
201 # m4_foreach_w is provided by autoconf-2.59c and later.
202 # This definition is to accommodate developers using versions
203 # of autoconf older than that.
204 m4_ifndef([m4_foreach_w],
205   [m4_define([m4_foreach_w],
206     [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
207
208 # Like AC_REPLACE_FUNCS, except that the module name goes
209 # into lgltests_LIBOBJS instead of into LIBOBJS.
210 AC_DEFUN([lgltests_REPLACE_FUNCS], [
211   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
212   AC_CHECK_FUNCS([$1], , [lgltests_LIBOBJ($ac_func)])
213 ])
214
215 # Like AC_LIBSOURCES, except the directory where the source file is
216 # expected is derived from the gnulib-tool parametrization,
217 # and alloca is special cased (for the alloca-opt module).
218 # We could also entirely rely on EXTRA_lib..._SOURCES.
219 AC_DEFUN([lgltests_LIBSOURCES], [
220   m4_foreach([_gl_NAME], [$1], [
221     m4_if(_gl_NAME, [alloca.c], [], [
222       m4_syscmd([test -r tests/]_gl_NAME[ || test ! -d tests])dnl
223       m4_if(m4_sysval, [0], [],
224         [AC_FATAL([missing tests/]_gl_NAME)])
225     ])
226   ])
227 ])
228
229 # This macro records the list of files which have been installed by
230 # gnulib-tool and may be removed by future gnulib-tool invocations.
231 AC_DEFUN([lgl_FILE_LIST], [
232   build-aux/config.rpath
233   build-aux/link-warning.h
234   lib/alloca.in.h
235   lib/arcfour.c
236   lib/arcfour.h
237   lib/arctwo.c
238   lib/arctwo.h
239   lib/asnprintf.c
240   lib/asprintf.c
241   lib/des.c
242   lib/des.h
243   lib/dummy.c
244   lib/float+.h
245   lib/float.in.h
246   lib/gc-gnulib.c
247   lib/gc-libgcrypt.c
248   lib/gc-pbkdf2-sha1.c
249   lib/gc.h
250   lib/gettext.h
251   lib/hmac-md5.c
252   lib/hmac-sha1.c
253   lib/hmac.h
254   lib/md2.c
255   lib/md2.h
256   lib/md4.c
257   lib/md4.h
258   lib/md5.c
259   lib/md5.h
260   lib/memchr.c
261   lib/memcmp.c
262   lib/memmem.c
263   lib/memmove.c
264   lib/memxor.c
265   lib/memxor.h
266   lib/minmax.h
267   lib/printf-args.c
268   lib/printf-args.h
269   lib/printf-parse.c
270   lib/printf-parse.h
271   lib/read-file.c
272   lib/read-file.h
273   lib/realloc.c
274   lib/rijndael-alg-fst.c
275   lib/rijndael-alg-fst.h
276   lib/rijndael-api-fst.c
277   lib/rijndael-api-fst.h
278   lib/sha1.c
279   lib/sha1.h
280   lib/size_max.h
281   lib/snprintf.c
282   lib/stdbool.in.h
283   lib/stdint.in.h
284   lib/stdio.in.h
285   lib/stdlib.in.h
286   lib/str-two-way.h
287   lib/string.in.h
288   lib/strverscmp.c
289   lib/strverscmp.h
290   lib/sys_socket.in.h
291   lib/sys_stat.in.h
292   lib/time.in.h
293   lib/time_r.c
294   lib/unistd.in.h
295   lib/vasnprintf.c
296   lib/vasnprintf.h
297   lib/vasprintf.c
298   lib/wchar.in.h
299   lib/xsize.h
300   m4/alloca.m4
301   m4/arcfour.m4
302   m4/arctwo.m4
303   m4/codeset.m4
304   m4/des.m4
305   m4/eoverflow.m4
306   m4/extensions.m4
307   m4/float_h.m4
308   m4/func.m4
309   m4/gc-arcfour.m4
310   m4/gc-arctwo.m4
311   m4/gc-camellia.m4
312   m4/gc-des.m4
313   m4/gc-hmac-md5.m4
314   m4/gc-hmac-sha1.m4
315   m4/gc-md2.m4
316   m4/gc-md4.m4
317   m4/gc-md5.m4
318   m4/gc-pbkdf2-sha1.m4
319   m4/gc-random.m4
320   m4/gc-rijndael.m4
321   m4/gc-sha1.m4
322   m4/gc.m4
323   m4/gettext.m4
324   m4/glibc2.m4
325   m4/glibc21.m4
326   m4/gnulib-common.m4
327   m4/hmac-md5.m4
328   m4/hmac-sha1.m4
329   m4/iconv.m4
330   m4/include_next.m4
331   m4/intdiv0.m4
332   m4/intl.m4
333   m4/intldir.m4
334   m4/intlmacosx.m4
335   m4/intmax.m4
336   m4/intmax_t.m4
337   m4/inttypes-pri.m4
338   m4/inttypes_h.m4
339   m4/lcmessage.m4
340   m4/lib-ld.m4
341   m4/lib-link.m4
342   m4/lib-prefix.m4
343   m4/lock.m4
344   m4/longlong.m4
345   m4/malloc.m4
346   m4/md2.m4
347   m4/md4.m4
348   m4/md5.m4
349   m4/memchr.m4
350   m4/memcmp.m4
351   m4/memmem.m4
352   m4/memmove.m4
353   m4/memxor.m4
354   m4/minmax.m4
355   m4/nls.m4
356   m4/po.m4
357   m4/printf-posix.m4
358   m4/progtest.m4
359   m4/read-file.m4
360   m4/realloc.m4
361   m4/rijndael.m4
362   m4/sha1.m4
363   m4/size_max.m4
364   m4/snprintf.m4
365   m4/socklen.m4
366   m4/sockpfaf.m4
367   m4/stdbool.m4
368   m4/stdint.m4
369   m4/stdint_h.m4
370   m4/stdio_h.m4
371   m4/stdlib_h.m4
372   m4/string_h.m4
373   m4/strverscmp.m4
374   m4/sys_socket_h.m4
375   m4/sys_stat_h.m4
376   m4/time_h.m4
377   m4/time_r.m4
378   m4/uintmax_t.m4
379   m4/unistd_h.m4
380   m4/vasnprintf.m4
381   m4/vasprintf.m4
382   m4/visibility.m4
383   m4/wchar.m4
384   m4/wchar_t.m4
385   m4/wint_t.m4
386   m4/xsize.m4
387 ])