Update gnulib files.
[gnutls.git] / lib / gl / m4 / gnulib-comp.m4
blob0e4423631ad51fe34cec745b37fb1a393d74479a
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2010 Free Software Foundation, Inc.
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.
10 # Generated by gnulib-tool.
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.
18 # This macro should be invoked from ./configure.ac, 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],
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   # Code from module alignof:
29   # Code from module alloca-opt:
30   # Code from module alloca-opt-tests:
31   # Code from module arg-nonnull:
32   # Code from module byteswap:
33   # Code from module byteswap-tests:
34   # Code from module c++defs:
35   # Code from module c-ctype:
36   # Code from module c-ctype-tests:
37   # Code from module close-hook:
38   # Code from module errno:
39   # Code from module errno-tests:
40   # Code from module extensions:
41   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
42   # Code from module float:
43   # Code from module fseeko:
44   AC_REQUIRE([AC_FUNC_FSEEKO])
45   # Code from module fseeko-tests:
46   # Code from module func:
47   # Code from module func-tests:
48   # Code from module gettext:
49   # Code from module gettext-h:
50   # Code from module havelib:
51   # Code from module include_next:
52   # Code from module intprops:
53   # Code from module lib-msvc-compat:
54   # Code from module lib-symbol-versions:
55   # Code from module lseek:
56   # Code from module memchr:
57   # Code from module memchr-tests:
58   # Code from module memmem-simple:
59   # Code from module minmax:
60   # Code from module multiarch:
61   # Code from module netdb:
62   # Code from module netdb-tests:
63   # Code from module read-file:
64   # Code from module read-file-tests:
65   # Code from module realloc-posix:
66   # Code from module size_max:
67   # Code from module snprintf:
68   # Code from module snprintf-tests:
69   # Code from module sockets:
70   # Code from module sockets-tests:
71   # Code from module socklen:
72   # Code from module stdbool:
73   # Code from module stdbool-tests:
74   # Code from module stddef:
75   # Code from module stddef-tests:
76   # Code from module stdint:
77   # Code from module stdint-tests:
78   # Code from module stdio:
79   # Code from module stdio-tests:
80   # Code from module stdlib:
81   # Code from module stdlib-tests:
82   # Code from module strcase:
83   # Code from module string:
84   # Code from module string-tests:
85   # Code from module strings:
86   # Code from module strings-tests:
87   # Code from module strverscmp:
88   # Code from module strverscmp-tests:
89   # Code from module sys_socket:
90   # Code from module sys_socket-tests:
91   # Code from module sys_stat:
92   # Code from module sys_stat-tests:
93   # Code from module time:
94   # Code from module time-tests:
95   # Code from module time_r:
96   # Code from module unistd:
97   # Code from module unistd-tests:
98   # Code from module vasnprintf:
99   # Code from module vasnprintf-tests:
100   # Code from module vasprintf:
101   # Code from module vasprintf-tests:
102   # Code from module verify:
103   # Code from module vsnprintf:
104   # Code from module vsnprintf-tests:
105   # Code from module warn-on-use:
106   # Code from module wchar:
107   # Code from module wchar-tests:
108   # Code from module xsize:
111 # This macro should be invoked from ./configure.ac, in the section
112 # "Check for header files, types and library functions".
113 AC_DEFUN([lgl_INIT],
115   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
116   gl_cond_libtool=true
117   m4_pushdef([AC_LIBOBJ], m4_defn([lgl_LIBOBJ]))
118   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([lgl_REPLACE_FUNCS]))
119   m4_pushdef([AC_LIBSOURCES], m4_defn([lgl_LIBSOURCES]))
120   m4_pushdef([lgl_LIBSOURCES_LIST], [])
121   m4_pushdef([lgl_LIBSOURCES_DIR], [])
122   gl_COMMON
123   gl_source_base='gl'
124   # Code from module alignof:
125   # Code from module alloca-opt:
126   gl_FUNC_ALLOCA
127   # Code from module arg-nonnull:
128   # Code from module byteswap:
129   gl_BYTESWAP
130   # Code from module c++defs:
131   # Code from module c-ctype:
132   # Code from module close-hook:
133   # Code from module errno:
134   gl_HEADER_ERRNO_H
135   # Code from module extensions:
136   # Code from module float:
137   gl_FLOAT_H
138   # Code from module fseeko:
139   gl_FUNC_FSEEKO
140   gl_STDIO_MODULE_INDICATOR([fseeko])
141   # Code from module func:
142   gl_FUNC
143   # Code from module gettext:
144   dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
145   AM_GNU_GETTEXT_VERSION([0.17])
146   # Code from module gettext-h:
147   AC_SUBST([LIBINTL])
148   AC_SUBST([LTLIBINTL])
149   # Code from module havelib:
150   # Code from module include_next:
151   # Code from module lib-msvc-compat:
152   gl_LD_OUTPUT_DEF
153   # Code from module lib-symbol-versions:
154   gl_LD_VERSION_SCRIPT
155   # Code from module lseek:
156   gl_FUNC_LSEEK
157   gl_UNISTD_MODULE_INDICATOR([lseek])
158   # Code from module memchr:
159   gl_FUNC_MEMCHR
160   gl_STRING_MODULE_INDICATOR([memchr])
161   # Code from module memmem-simple:
162   gl_FUNC_MEMMEM_SIMPLE
163   gl_STRING_MODULE_INDICATOR([memmem])
164   # Code from module minmax:
165   gl_MINMAX
166   # Code from module multiarch:
167   gl_MULTIARCH
168   # Code from module netdb:
169   gl_HEADER_NETDB
170   # Code from module read-file:
171   gl_FUNC_READ_FILE
172   # Code from module realloc-posix:
173   gl_FUNC_REALLOC_POSIX
174   gl_STDLIB_MODULE_INDICATOR([realloc-posix])
175   # Code from module size_max:
176   gl_SIZE_MAX
177   # Code from module snprintf:
178   gl_FUNC_SNPRINTF
179   gl_STDIO_MODULE_INDICATOR([snprintf])
180   # Code from module sockets:
181   gl_SOCKETS
182   # Code from module socklen:
183   gl_TYPE_SOCKLEN_T
184   # Code from module stdbool:
185   AM_STDBOOL_H
186   # Code from module stddef:
187   gl_STDDEF_H
188   # Code from module stdint:
189   gl_STDINT_H
190   # Code from module stdio:
191   gl_STDIO_H
192   # Code from module stdlib:
193   gl_STDLIB_H
194   # Code from module strcase:
195   gl_STRCASE
196   # Code from module string:
197   gl_HEADER_STRING_H
198   # Code from module strings:
199   gl_HEADER_STRINGS_H
200   # Code from module strverscmp:
201   gl_FUNC_STRVERSCMP
202   gl_STRING_MODULE_INDICATOR([strverscmp])
203   # Code from module sys_socket:
204   gl_HEADER_SYS_SOCKET
205   AC_PROG_MKDIR_P
206   # Code from module sys_stat:
207   gl_HEADER_SYS_STAT_H
208   AC_PROG_MKDIR_P
209   # Code from module time:
210   gl_HEADER_TIME_H
211   # Code from module time_r:
212   gl_TIME_R
213   gl_TIME_MODULE_INDICATOR([time_r])
214   # Code from module unistd:
215   gl_UNISTD_H
216   # Code from module vasnprintf:
217   gl_FUNC_VASNPRINTF
218   # Code from module vasprintf:
219   gl_FUNC_VASPRINTF
220   gl_STDIO_MODULE_INDICATOR([vasprintf])
221   m4_ifdef([AM_XGETTEXT_OPTION],
222     [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
223      AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
224   # Code from module vsnprintf:
225   gl_FUNC_VSNPRINTF
226   gl_STDIO_MODULE_INDICATOR([vsnprintf])
227   # Code from module warn-on-use:
228   # Code from module wchar:
229   gl_WCHAR_H
230   # Code from module xsize:
231   gl_XSIZE
232   # End of code from modules
233   m4_ifval(lgl_LIBSOURCES_LIST, [
234     m4_syscmd([test ! -d ]m4_defn([lgl_LIBSOURCES_DIR])[ ||
235       for gl_file in ]lgl_LIBSOURCES_LIST[ ; do
236         if test ! -r ]m4_defn([lgl_LIBSOURCES_DIR])[/$gl_file ; then
237           echo "missing file ]m4_defn([lgl_LIBSOURCES_DIR])[/$gl_file" >&2
238           exit 1
239         fi
240       done])dnl
241       m4_if(m4_sysval, [0], [],
242         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
243   ])
244   m4_popdef([lgl_LIBSOURCES_DIR])
245   m4_popdef([lgl_LIBSOURCES_LIST])
246   m4_popdef([AC_LIBSOURCES])
247   m4_popdef([AC_REPLACE_FUNCS])
248   m4_popdef([AC_LIBOBJ])
249   AC_CONFIG_COMMANDS_PRE([
250     lgl_libobjs=
251     lgl_ltlibobjs=
252     if test -n "$lgl_LIBOBJS"; then
253       # Remove the extension.
254       sed_drop_objext='s/\.o$//;s/\.obj$//'
255       for i in `for i in $lgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
256         lgl_libobjs="$lgl_libobjs $i.$ac_objext"
257         lgl_ltlibobjs="$lgl_ltlibobjs $i.lo"
258       done
259     fi
260     AC_SUBST([lgl_LIBOBJS], [$lgl_libobjs])
261     AC_SUBST([lgl_LTLIBOBJS], [$lgl_ltlibobjs])
262   ])
263   gltests_libdeps=
264   gltests_ltlibdeps=
265   m4_pushdef([AC_LIBOBJ], m4_defn([lgltests_LIBOBJ]))
266   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([lgltests_REPLACE_FUNCS]))
267   m4_pushdef([AC_LIBSOURCES], m4_defn([lgltests_LIBSOURCES]))
268   m4_pushdef([lgltests_LIBSOURCES_LIST], [])
269   m4_pushdef([lgltests_LIBSOURCES_DIR], [])
270   gl_COMMON
271   gl_source_base='gl/tests'
272 changequote(,)dnl
273   lgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
274 changequote([, ])dnl
275   AC_SUBST([lgltests_WITNESS])
276   gl_module_indicator_condition=$lgltests_WITNESS
277   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
278   gl_FUNC_UNGETC_WORKS
279   gt_TYPE_WCHAR_T
280   gt_TYPE_WINT_T
281   AC_CHECK_FUNCS_ONCE([shutdown])
282   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
283   m4_ifval(lgltests_LIBSOURCES_LIST, [
284     m4_syscmd([test ! -d ]m4_defn([lgltests_LIBSOURCES_DIR])[ ||
285       for gl_file in ]lgltests_LIBSOURCES_LIST[ ; do
286         if test ! -r ]m4_defn([lgltests_LIBSOURCES_DIR])[/$gl_file ; then
287           echo "missing file ]m4_defn([lgltests_LIBSOURCES_DIR])[/$gl_file" >&2
288           exit 1
289         fi
290       done])dnl
291       m4_if(m4_sysval, [0], [],
292         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
293   ])
294   m4_popdef([lgltests_LIBSOURCES_DIR])
295   m4_popdef([lgltests_LIBSOURCES_LIST])
296   m4_popdef([AC_LIBSOURCES])
297   m4_popdef([AC_REPLACE_FUNCS])
298   m4_popdef([AC_LIBOBJ])
299   AC_CONFIG_COMMANDS_PRE([
300     lgltests_libobjs=
301     lgltests_ltlibobjs=
302     if test -n "$lgltests_LIBOBJS"; then
303       # Remove the extension.
304       sed_drop_objext='s/\.o$//;s/\.obj$//'
305       for i in `for i in $lgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
306         lgltests_libobjs="$lgltests_libobjs $i.$ac_objext"
307         lgltests_ltlibobjs="$lgltests_ltlibobjs $i.lo"
308       done
309     fi
310     AC_SUBST([lgltests_LIBOBJS], [$lgltests_libobjs])
311     AC_SUBST([lgltests_LTLIBOBJS], [$lgltests_ltlibobjs])
312   ])
313   LIBTESTS_LIBDEPS="$gltests_libdeps"
314   AC_SUBST([LIBTESTS_LIBDEPS])
317 # Like AC_LIBOBJ, except that the module name goes
318 # into lgl_LIBOBJS instead of into LIBOBJS.
319 AC_DEFUN([lgl_LIBOBJ], [
320   AS_LITERAL_IF([$1], [lgl_LIBSOURCES([$1.c])])dnl
321   lgl_LIBOBJS="$lgl_LIBOBJS $1.$ac_objext"
324 # Like AC_REPLACE_FUNCS, except that the module name goes
325 # into lgl_LIBOBJS instead of into LIBOBJS.
326 AC_DEFUN([lgl_REPLACE_FUNCS], [
327   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
328   AC_CHECK_FUNCS([$1], , [lgl_LIBOBJ($ac_func)])
331 # Like AC_LIBSOURCES, except the directory where the source file is
332 # expected is derived from the gnulib-tool parameterization,
333 # and alloca is special cased (for the alloca-opt module).
334 # We could also entirely rely on EXTRA_lib..._SOURCES.
335 AC_DEFUN([lgl_LIBSOURCES], [
336   m4_foreach([_gl_NAME], [$1], [
337     m4_if(_gl_NAME, [alloca.c], [], [
338       m4_define([lgl_LIBSOURCES_DIR], [gl])
339       m4_append([lgl_LIBSOURCES_LIST], _gl_NAME, [ ])
340     ])
341   ])
344 # Like AC_LIBOBJ, except that the module name goes
345 # into lgltests_LIBOBJS instead of into LIBOBJS.
346 AC_DEFUN([lgltests_LIBOBJ], [
347   AS_LITERAL_IF([$1], [lgltests_LIBSOURCES([$1.c])])dnl
348   lgltests_LIBOBJS="$lgltests_LIBOBJS $1.$ac_objext"
351 # Like AC_REPLACE_FUNCS, except that the module name goes
352 # into lgltests_LIBOBJS instead of into LIBOBJS.
353 AC_DEFUN([lgltests_REPLACE_FUNCS], [
354   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
355   AC_CHECK_FUNCS([$1], , [lgltests_LIBOBJ($ac_func)])
358 # Like AC_LIBSOURCES, except the directory where the source file is
359 # expected is derived from the gnulib-tool parameterization,
360 # and alloca is special cased (for the alloca-opt module).
361 # We could also entirely rely on EXTRA_lib..._SOURCES.
362 AC_DEFUN([lgltests_LIBSOURCES], [
363   m4_foreach([_gl_NAME], [$1], [
364     m4_if(_gl_NAME, [alloca.c], [], [
365       m4_define([lgltests_LIBSOURCES_DIR], [gl/tests])
366       m4_append([lgltests_LIBSOURCES_LIST], _gl_NAME, [ ])
367     ])
368   ])
371 # This macro records the list of files which have been installed by
372 # gnulib-tool and may be removed by future gnulib-tool invocations.
373 AC_DEFUN([lgl_FILE_LIST], [
374   build-aux/arg-nonnull.h
375   build-aux/c++defs.h
376   build-aux/config.rpath
377   build-aux/warn-on-use.h
378   lib/alignof.h
379   lib/alloca.in.h
380   lib/asnprintf.c
381   lib/asprintf.c
382   lib/byteswap.in.h
383   lib/c-ctype.c
384   lib/c-ctype.h
385   lib/close-hook.c
386   lib/close-hook.h
387   lib/errno.in.h
388   lib/float+.h
389   lib/float.in.h
390   lib/fseeko.c
391   lib/gettext.h
392   lib/lseek.c
393   lib/memchr.c
394   lib/memchr.valgrind
395   lib/memmem.c
396   lib/minmax.h
397   lib/netdb.in.h
398   lib/printf-args.c
399   lib/printf-args.h
400   lib/printf-parse.c
401   lib/printf-parse.h
402   lib/read-file.c
403   lib/read-file.h
404   lib/realloc.c
405   lib/size_max.h
406   lib/snprintf.c
407   lib/sockets.c
408   lib/sockets.h
409   lib/stdbool.in.h
410   lib/stddef.in.h
411   lib/stdint.in.h
412   lib/stdio-impl.h
413   lib/stdio-write.c
414   lib/stdio.in.h
415   lib/stdlib.in.h
416   lib/str-two-way.h
417   lib/strcasecmp.c
418   lib/string.in.h
419   lib/strings.in.h
420   lib/strncasecmp.c
421   lib/strverscmp.c
422   lib/sys_socket.in.h
423   lib/sys_stat.in.h
424   lib/time.in.h
425   lib/time_r.c
426   lib/unistd.in.h
427   lib/vasnprintf.c
428   lib/vasnprintf.h
429   lib/vasprintf.c
430   lib/vsnprintf.c
431   lib/w32sock.h
432   lib/wchar.in.h
433   lib/xsize.h
434   m4/00gnulib.m4
435   m4/alloca.m4
436   m4/byteswap.m4
437   m4/codeset.m4
438   m4/errno_h.m4
439   m4/extensions.m4
440   m4/float_h.m4
441   m4/fseeko.m4
442   m4/func.m4
443   m4/gettext.m4
444   m4/glibc2.m4
445   m4/glibc21.m4
446   m4/gnulib-common.m4
447   m4/iconv.m4
448   m4/include_next.m4
449   m4/intdiv0.m4
450   m4/intl.m4
451   m4/intldir.m4
452   m4/intlmacosx.m4
453   m4/intmax.m4
454   m4/intmax_t.m4
455   m4/inttypes-pri.m4
456   m4/inttypes_h.m4
457   m4/lcmessage.m4
458   m4/ld-output-def.m4
459   m4/ld-version-script.m4
460   m4/lib-ld.m4
461   m4/lib-link.m4
462   m4/lib-prefix.m4
463   m4/lock.m4
464   m4/longlong.m4
465   m4/lseek.m4
466   m4/malloc.m4
467   m4/memchr.m4
468   m4/memmem.m4
469   m4/minmax.m4
470   m4/mmap-anon.m4
471   m4/multiarch.m4
472   m4/netdb_h.m4
473   m4/nls.m4
474   m4/po.m4
475   m4/printf-posix.m4
476   m4/printf.m4
477   m4/progtest.m4
478   m4/read-file.m4
479   m4/realloc.m4
480   m4/size_max.m4
481   m4/snprintf.m4
482   m4/sockets.m4
483   m4/socklen.m4
484   m4/sockpfaf.m4
485   m4/stdbool.m4
486   m4/stddef_h.m4
487   m4/stdint.m4
488   m4/stdint_h.m4
489   m4/stdio_h.m4
490   m4/stdlib_h.m4
491   m4/strcase.m4
492   m4/string_h.m4
493   m4/strings_h.m4
494   m4/strverscmp.m4
495   m4/sys_socket_h.m4
496   m4/sys_stat_h.m4
497   m4/threadlib.m4
498   m4/time_h.m4
499   m4/time_r.m4
500   m4/uintmax_t.m4
501   m4/ungetc.m4
502   m4/unistd_h.m4
503   m4/vasnprintf.m4
504   m4/vasprintf.m4
505   m4/visibility.m4
506   m4/vsnprintf.m4
507   m4/warn-on-use.m4
508   m4/wchar_h.m4
509   m4/wchar_t.m4
510   m4/wint_t.m4
511   m4/xsize.m4
512   tests/macros.h
513   tests/signature.h
514   tests/test-alloca-opt.c
515   tests/test-byteswap.c
516   tests/test-c-ctype.c
517   tests/test-errno.c
518   tests/test-fseeko.c
519   tests/test-fseeko.sh
520   tests/test-fseeko2.sh
521   tests/test-func.c
522   tests/test-memchr.c
523   tests/test-netdb.c
524   tests/test-read-file.c
525   tests/test-snprintf.c
526   tests/test-sockets.c
527   tests/test-stdbool.c
528   tests/test-stddef.c
529   tests/test-stdint.c
530   tests/test-stdio.c
531   tests/test-stdlib.c
532   tests/test-string.c
533   tests/test-strings.c
534   tests/test-strverscmp.c
535   tests/test-sys_socket.c
536   tests/test-sys_stat.c
537   tests/test-time.c
538   tests/test-unistd.c
539   tests/test-vasnprintf.c
540   tests/test-vasprintf.c
541   tests/test-vsnprintf.c
542   tests/test-wchar.c
543   tests/zerosize-ptr.h
544   tests=lib/dummy.c
545   tests=lib/intprops.h
546   tests=lib/verify.h