Code

005cc4eb12ac131165c9de4c968b036c3b100eb4
[nagiosplug.git] / gl / m4 / 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.
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([gl_USE_SYSTEM_EXTENSIONS])
29 ])
31 # This macro should be invoked from ./configure.in, in the section
32 # "Check for header files, types and library functions".
33 AC_DEFUN([gl_INIT],
34 [
35   AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
36   gl_cond_libtool=false
37   gl_libdeps=
38   gl_ltlibdeps=
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   m4_pushdef([gl_LIBSOURCES_LIST], [])
43   m4_pushdef([gl_LIBSOURCES_DIR], [])
44   gl_COMMON
45   gl_source_base='gl'
46   gl_FUNC_ALLOCA
47   gl_HEADER_ARPA_INET
48   AC_PROG_MKDIR_P
49   gl_FUNC_BASE64
50   gl_FUNC_BTOWC
51   gl_WCHAR_MODULE_INDICATOR([btowc])
52   gl_C_STRTOD
53   gl_CLOEXEC
54   gl_DIRNAME
55   gl_DOUBLE_SLASH_ROOT
56   gl_HEADER_ERRNO_H
57   gl_ERROR
58   m4_ifdef([AM_XGETTEXT_OPTION],
59     [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
60      AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
61   gl_EXITFAIL
62   gl_FCNTL_H
63   gl_FCNTL_SAFER
64   gl_MODULE_INDICATOR([fcntl-safer])
65   gl_FLOAT_H
66   gl_FUNC_FLOORF
67   gl_MATH_MODULE_INDICATOR([floorf])
68   gl_FSUSAGE
69   gl_GETADDRINFO
70   gl_NETDB_MODULE_INDICATOR([getaddrinfo])
71   gl_FUNC_GETHOSTNAME
72   gl_UNISTD_MODULE_INDICATOR([gethostname])
73   gl_GETLOADAVG([$gl_source_base])
74   gl_STDLIB_MODULE_INDICATOR([getloadavg])
75   gl_GETOPT
76   dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
77   AM_GNU_GETTEXT_VERSION([0.17])
78   AC_SUBST([LIBINTL])
79   AC_SUBST([LTLIBINTL])
80   gl_HOSTENT
81   gl_INET_NTOP
82   gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
83   gl_INLINE
84   gl_LOCALCHARSET
85   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
86   AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
87   AC_FUNC_MALLOC
88   AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
89   gl_FUNC_MALLOC_POSIX
90   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
91   gl_MATH_H
92   gl_FUNC_MBRTOWC
93   gl_WCHAR_MODULE_INDICATOR([mbrtowc])
94   gl_FUNC_MBSINIT
95   gl_WCHAR_MODULE_INDICATOR([mbsinit])
96   gl_FUNC_MKTIME
97   gl_MOUNTLIST
98   gl_MULTIARCH
99   gl_HEADER_NETDB
100   gl_HEADER_NETINET_IN
101   AC_PROG_MKDIR_P
102   gl_FUNC_OPEN
103   gl_MODULE_INDICATOR([open])
104   gl_FCNTL_MODULE_INDICATOR([open])
105   gl_REGEX
106   gl_SAFE_READ
107   gl_SAFE_WRITE
108   gl_SERVENT
109   gl_SIZE_MAX
110   gl_FUNC_SNPRINTF
111   gl_STDIO_MODULE_INDICATOR([snprintf])
112   gl_TYPE_SOCKLEN_T
113   gt_TYPE_SSIZE_T
114   AM_STDBOOL_H
115   gl_STDINT_H
116   gl_STDIO_H
117   gl_STDLIB_H
118   gl_FUNC_STRDUP_POSIX
119   gl_STRING_MODULE_INDICATOR([strdup])
120   gl_FUNC_STRERROR
121   gl_STRING_MODULE_INDICATOR([strerror])
122   gl_HEADER_STRING_H
123   gl_FUNC_STRNDUP
124   gl_STRING_MODULE_INDICATOR([strndup])
125   gl_FUNC_STRNLEN
126   gl_STRING_MODULE_INDICATOR([strnlen])
127   gl_HEADER_SYS_SOCKET
128   AC_PROG_MKDIR_P
129   gl_HEADER_TIME_H
130   gl_TIME_R
131   gl_FUNC_TIMEGM
132   gl_UNISTD_H
133   gl_UNISTD_SAFER
134   gl_FUNC_VASNPRINTF
135   gl_FUNC_VASPRINTF
136   gl_STDIO_MODULE_INDICATOR([vasprintf])
137   m4_ifdef([AM_XGETTEXT_OPTION],
138     [AM_XGETTEXT_OPTION([--flag=asprintf:2:c-format])
139      AM_XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
140   gl_FUNC_VSNPRINTF
141   gl_STDIO_MODULE_INDICATOR([vsnprintf])
142   gl_WCHAR_H
143   gl_FUNC_WCRTOMB
144   gl_WCHAR_MODULE_INDICATOR([wcrtomb])
145   gl_WCTYPE_H
146   gl_FUNC_WRITE
147   gl_UNISTD_MODULE_INDICATOR([write])
148   gl_XALLOC
149   gl_XSIZE
150   gl_XSTRNDUP
151   m4_ifval(gl_LIBSOURCES_LIST, [
152     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
153       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
154         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
155           echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
156           exit 1
157         fi
158       done])dnl
159       m4_if(m4_sysval, [0], [],
160         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
161   ])
162   m4_popdef([gl_LIBSOURCES_DIR])
163   m4_popdef([gl_LIBSOURCES_LIST])
164   m4_popdef([AC_LIBSOURCES])
165   m4_popdef([AC_REPLACE_FUNCS])
166   m4_popdef([AC_LIBOBJ])
167   AC_CONFIG_COMMANDS_PRE([
168     gl_libobjs=
169     gl_ltlibobjs=
170     if test -n "$gl_LIBOBJS"; then
171       # Remove the extension.
172       sed_drop_objext='s/\.o$//;s/\.obj$//'
173       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
174         gl_libobjs="$gl_libobjs $i.$ac_objext"
175         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
176       done
177     fi
178     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
179     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
180   ])
181   gltests_libdeps=
182   gltests_ltlibdeps=
183   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
184   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
185   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
186   m4_pushdef([gltests_LIBSOURCES_LIST], [])
187   m4_pushdef([gltests_LIBSOURCES_DIR], [])
188   gl_COMMON
189   gl_source_base='tests'
190   m4_ifval(gltests_LIBSOURCES_LIST, [
191     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
192       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
193         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
194           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
195           exit 1
196         fi
197       done])dnl
198       m4_if(m4_sysval, [0], [],
199         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
200   ])
201   m4_popdef([gltests_LIBSOURCES_DIR])
202   m4_popdef([gltests_LIBSOURCES_LIST])
203   m4_popdef([AC_LIBSOURCES])
204   m4_popdef([AC_REPLACE_FUNCS])
205   m4_popdef([AC_LIBOBJ])
206   AC_CONFIG_COMMANDS_PRE([
207     gltests_libobjs=
208     gltests_ltlibobjs=
209     if test -n "$gltests_LIBOBJS"; then
210       # Remove the extension.
211       sed_drop_objext='s/\.o$//;s/\.obj$//'
212       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
213         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
214         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
215       done
216     fi
217     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
218     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
219   ])
220   LIBGNU_LIBDEPS="$gl_libdeps"
221   AC_SUBST([LIBGNU_LIBDEPS])
222   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
223   AC_SUBST([LIBGNU_LTLIBDEPS])
224 ])
226 # Like AC_LIBOBJ, except that the module name goes
227 # into gl_LIBOBJS instead of into LIBOBJS.
228 AC_DEFUN([gl_LIBOBJ], [
229   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
230   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
231 ])
233 # Like AC_REPLACE_FUNCS, except that the module name goes
234 # into gl_LIBOBJS instead of into LIBOBJS.
235 AC_DEFUN([gl_REPLACE_FUNCS], [
236   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
237   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
238 ])
240 # Like AC_LIBSOURCES, except the directory where the source file is
241 # expected is derived from the gnulib-tool parameterization,
242 # and alloca is special cased (for the alloca-opt module).
243 # We could also entirely rely on EXTRA_lib..._SOURCES.
244 AC_DEFUN([gl_LIBSOURCES], [
245   m4_foreach([_gl_NAME], [$1], [
246     m4_if(_gl_NAME, [alloca.c], [], [
247       m4_define([gl_LIBSOURCES_DIR], [gl])
248       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
249     ])
250   ])
251 ])
253 # Like AC_LIBOBJ, except that the module name goes
254 # into gltests_LIBOBJS instead of into LIBOBJS.
255 AC_DEFUN([gltests_LIBOBJ], [
256   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
257   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
258 ])
260 # Like AC_REPLACE_FUNCS, except that the module name goes
261 # into gltests_LIBOBJS instead of into LIBOBJS.
262 AC_DEFUN([gltests_REPLACE_FUNCS], [
263   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
264   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
265 ])
267 # Like AC_LIBSOURCES, except the directory where the source file is
268 # expected is derived from the gnulib-tool parameterization,
269 # and alloca is special cased (for the alloca-opt module).
270 # We could also entirely rely on EXTRA_lib..._SOURCES.
271 AC_DEFUN([gltests_LIBSOURCES], [
272   m4_foreach([_gl_NAME], [$1], [
273     m4_if(_gl_NAME, [alloca.c], [], [
274       m4_define([gltests_LIBSOURCES_DIR], [tests])
275       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
276     ])
277   ])
278 ])
280 # This macro records the list of files which have been installed by
281 # gnulib-tool and may be removed by future gnulib-tool invocations.
282 AC_DEFUN([gl_FILE_LIST], [
283   build-aux/config.rpath
284   build-aux/link-warning.h
285   lib/alignof.h
286   lib/alloca.c
287   lib/alloca.in.h
288   lib/arpa_inet.in.h
289   lib/asnprintf.c
290   lib/asprintf.c
291   lib/base64.c
292   lib/base64.h
293   lib/basename.c
294   lib/btowc.c
295   lib/c-strtod.c
296   lib/c-strtod.h
297   lib/cloexec.c
298   lib/cloexec.h
299   lib/config.charset
300   lib/creat-safer.c
301   lib/dirname.c
302   lib/dirname.h
303   lib/dup-safer.c
304   lib/errno.in.h
305   lib/error.c
306   lib/error.h
307   lib/exitfail.c
308   lib/exitfail.h
309   lib/fcntl--.h
310   lib/fcntl-safer.h
311   lib/fcntl.in.h
312   lib/fd-safer.c
313   lib/float+.h
314   lib/float.in.h
315   lib/floor.c
316   lib/floorf.c
317   lib/fsusage.c
318   lib/fsusage.h
319   lib/full-read.c
320   lib/full-read.h
321   lib/full-write.c
322   lib/full-write.h
323   lib/gai_strerror.c
324   lib/getaddrinfo.c
325   lib/gethostname.c
326   lib/getloadavg.c
327   lib/getopt.c
328   lib/getopt.in.h
329   lib/getopt1.c
330   lib/getopt_int.h
331   lib/gettext.h
332   lib/inet_ntop.c
333   lib/intprops.h
334   lib/localcharset.c
335   lib/localcharset.h
336   lib/malloc.c
337   lib/math.in.h
338   lib/mbrtowc.c
339   lib/mbsinit.c
340   lib/mktime.c
341   lib/mountlist.c
342   lib/mountlist.h
343   lib/netdb.in.h
344   lib/netinet_in.in.h
345   lib/open-safer.c
346   lib/open.c
347   lib/pipe-safer.c
348   lib/printf-args.c
349   lib/printf-args.h
350   lib/printf-parse.c
351   lib/printf-parse.h
352   lib/ref-add.sin
353   lib/ref-del.sin
354   lib/regcomp.c
355   lib/regex.c
356   lib/regex.h
357   lib/regex_internal.c
358   lib/regex_internal.h
359   lib/regexec.c
360   lib/safe-read.c
361   lib/safe-read.h
362   lib/safe-write.c
363   lib/safe-write.h
364   lib/size_max.h
365   lib/snprintf.c
366   lib/stdbool.in.h
367   lib/stdint.in.h
368   lib/stdio-write.c
369   lib/stdio.in.h
370   lib/stdlib.in.h
371   lib/strdup.c
372   lib/streq.h
373   lib/strerror.c
374   lib/string.in.h
375   lib/stripslash.c
376   lib/strndup.c
377   lib/strnlen.c
378   lib/sys_socket.in.h
379   lib/time.in.h
380   lib/time_r.c
381   lib/timegm.c
382   lib/unistd--.h
383   lib/unistd-safer.h
384   lib/unistd.in.h
385   lib/vasnprintf.c
386   lib/vasnprintf.h
387   lib/vasprintf.c
388   lib/verify.h
389   lib/vsnprintf.c
390   lib/wchar.in.h
391   lib/wcrtomb.c
392   lib/wctype.in.h
393   lib/write.c
394   lib/xalloc-die.c
395   lib/xalloc.h
396   lib/xmalloc.c
397   lib/xsize.h
398   lib/xstrndup.c
399   lib/xstrndup.h
400   m4/00gnulib.m4
401   m4/alloca.m4
402   m4/arpa_inet_h.m4
403   m4/base64.m4
404   m4/btowc.m4
405   m4/c-strtod.m4
406   m4/cloexec.m4
407   m4/codeset.m4
408   m4/dirname.m4
409   m4/dos.m4
410   m4/double-slash-root.m4
411   m4/errno_h.m4
412   m4/error.m4
413   m4/exitfail.m4
414   m4/extensions.m4
415   m4/fcntl-safer.m4
416   m4/fcntl_h.m4
417   m4/float_h.m4
418   m4/floorf.m4
419   m4/fstypename.m4
420   m4/fsusage.m4
421   m4/getaddrinfo.m4
422   m4/gethostname.m4
423   m4/getloadavg.m4
424   m4/getopt.m4
425   m4/gettext.m4
426   m4/glibc2.m4
427   m4/glibc21.m4
428   m4/gnulib-common.m4
429   m4/hostent.m4
430   m4/iconv.m4
431   m4/include_next.m4
432   m4/inet_ntop.m4
433   m4/inline.m4
434   m4/intdiv0.m4
435   m4/intl.m4
436   m4/intldir.m4
437   m4/intlmacosx.m4
438   m4/intmax.m4
439   m4/intmax_t.m4
440   m4/inttypes-pri.m4
441   m4/inttypes_h.m4
442   m4/lcmessage.m4
443   m4/lib-ld.m4
444   m4/lib-link.m4
445   m4/lib-prefix.m4
446   m4/localcharset.m4
447   m4/locale-fr.m4
448   m4/locale-ja.m4
449   m4/locale-zh.m4
450   m4/lock.m4
451   m4/longlong.m4
452   m4/ls-mntd-fs.m4
453   m4/malloc.m4
454   m4/math_h.m4
455   m4/mbrtowc.m4
456   m4/mbsinit.m4
457   m4/mbstate_t.m4
458   m4/mktime.m4
459   m4/mountlist.m4
460   m4/multiarch.m4
461   m4/netdb_h.m4
462   m4/netinet_in_h.m4
463   m4/nls.m4
464   m4/onceonly.m4
465   m4/open.m4
466   m4/po.m4
467   m4/printf-posix.m4
468   m4/printf.m4
469   m4/progtest.m4
470   m4/regex.m4
471   m4/safe-read.m4
472   m4/safe-write.m4
473   m4/servent.m4
474   m4/size_max.m4
475   m4/snprintf.m4
476   m4/socklen.m4
477   m4/sockpfaf.m4
478   m4/ssize_t.m4
479   m4/stdbool.m4
480   m4/stdint.m4
481   m4/stdint_h.m4
482   m4/stdio_h.m4
483   m4/stdlib_h.m4
484   m4/strdup.m4
485   m4/strerror.m4
486   m4/string_h.m4
487   m4/strndup.m4
488   m4/strnlen.m4
489   m4/sys_socket_h.m4
490   m4/threadlib.m4
491   m4/time_h.m4
492   m4/time_r.m4
493   m4/timegm.m4
494   m4/uintmax_t.m4
495   m4/unistd-safer.m4
496   m4/unistd_h.m4
497   m4/vasnprintf.m4
498   m4/vasprintf.m4
499   m4/visibility.m4
500   m4/vsnprintf.m4
501   m4/wchar.m4
502   m4/wchar_t.m4
503   m4/wcrtomb.m4
504   m4/wctype.m4
505   m4/wint_t.m4
506   m4/write.m4
507   m4/xalloc.m4
508   m4/xsize.m4
509   m4/xstrndup.m4
510 ])