• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# -*- buffer-read-only: t -*- vi: set ro:
2# DO NOT EDIT! GENERATED AUTOMATICALLY!
3# DO NOT EDIT! GENERATED AUTOMATICALLY!
4# Copyright (C) 2002-2009 Free Software Foundation, Inc.
5#
6# This file is free software, distributed under the terms of the GNU
7# General Public License.  As a special exception to the GNU General
8# Public License, this file may be distributed as part of a program
9# that contains a configuration script generated by Autoconf, under
10# the same distribution terms as the rest of that program.
11#
12# Generated by gnulib-tool.
13#
14# This file represents the compiled summary of the specification in
15# gnulib-cache.m4. It lists the computed macro invocations that need
16# to be invoked from configure.ac.
17# In projects using CVS, this file can be treated like other built files.
18
19
20# This macro should be invoked from ./configure.ac, in the section
21# "Checks for programs", right after AC_PROG_CC, and certainly before
22# any checks for libraries, header files, types and library functions.
23AC_DEFUN([gl_EARLY],
24[
25  m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
26  m4_pattern_allow([^gl_ES$])dnl a valid locale name
27  m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
28  m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
29  AC_REQUIRE([AC_PROG_RANLIB])
30  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
31])
32
33# This macro should be invoked from ./configure.ac, in the section
34# "Check for header files, types and library functions".
35AC_DEFUN([gl_INIT],
36[
37  AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
38  gl_cond_libtool=false
39  gl_libdeps=
40  gl_ltlibdeps=
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='lib'
48  gl_FUNC_ACL
49  gl_FUNC_ALLOCA
50  gl_FUNC_BTOWC
51  gl_WCHAR_MODULE_INDICATOR([btowc])
52  gl_DIRNAME
53  gl_DOUBLE_SLASH_ROOT
54  gl_HEADER_ERRNO_H
55  gl_ERROR
56  m4_ifdef([AM_XGETTEXT_OPTION],
57    [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
58     AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
59  gl_EXITFAIL
60  gl_FUNC_GETDELIM
61  gl_STDIO_MODULE_INDICATOR([getdelim])
62  gl_FUNC_GETLINE
63  gl_STDIO_MODULE_INDICATOR([getline])
64  gl_GETOPT
65  gl_FUNC_GETPAGESIZE
66  gl_UNISTD_MODULE_INDICATOR([getpagesize])
67  dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
68  AM_GNU_GETTEXT_VERSION([0.17])
69  AC_SUBST([LIBINTL])
70  AC_SUBST([LTLIBINTL])
71  gl_FUNC_GETTIMEOFDAY
72  gl_INLINE
73  gl_LOCALCHARSET
74  LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
75  AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
76  gl_FUNC_LSTAT
77  gl_SYS_STAT_MODULE_INDICATOR([lstat])
78  AC_FUNC_MALLOC
79  AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
80  gl_FUNC_MALLOC_POSIX
81  gl_STDLIB_MODULE_INDICATOR([malloc-posix])
82  gl_FUNC_MBRLEN
83  gl_WCHAR_MODULE_INDICATOR([mbrlen])
84  gl_FUNC_MBRTOWC
85  gl_WCHAR_MODULE_INDICATOR([mbrtowc])
86  gl_FUNC_MBSINIT
87  gl_WCHAR_MODULE_INDICATOR([mbsinit])
88  gl_FUNC_MEMCHR
89  gl_STRING_MODULE_INDICATOR([memchr])
90  gl_FUNC_MKSTEMP
91  gl_STDLIB_MODULE_INDICATOR([mkstemp])
92  gl_MULTIARCH
93  AC_FUNC_OBSTACK
94  dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]).
95  gl_PATHMAX
96  gl_QUOTE
97  gl_QUOTEARG
98  gl_FUNC_REALLOC_POSIX
99  gl_STDLIB_MODULE_INDICATOR([realloc-posix])
100  gl_REGEX
101  gl_FUNC_RENAME
102  gl_HEADERS_SELINUX_SELINUX_H
103  gl_HEADERS_SELINUX_CONTEXT_H
104  AC_REQUIRE([AC_C_INLINE])
105  gt_TYPE_SSIZE_T
106  AM_STDBOOL_H
107  gl_STDINT_H
108  gl_STDIO_H
109  gl_STDLIB_H
110  gl_FUNC_STRERROR
111  gl_STRING_MODULE_INDICATOR([strerror])
112  gl_HEADER_STRING_H
113  gl_FUNC_STRNDUP
114  gl_STRING_MODULE_INDICATOR([strndup])
115  gl_FUNC_STRNLEN
116  gl_STRING_MODULE_INDICATOR([strnlen])
117  gl_FUNC_STRVERSCMP
118  gl_STRING_MODULE_INDICATOR([strverscmp])
119  gl_HEADER_SYS_STAT_H
120  AC_PROG_MKDIR_P
121  gl_HEADER_SYS_TIME_H
122  AC_PROG_MKDIR_P
123  gl_FUNC_GEN_TEMPNAME
124  gl_UNISTD_H
125  gl_FUNC_GLIBC_UNLOCKED_IO
126  gl_WCHAR_H
127  gl_FUNC_WCRTOMB
128  gl_WCHAR_MODULE_INDICATOR([wcrtomb])
129  gl_FUNC_WCTOB
130  gl_WCHAR_MODULE_INDICATOR([wctob])
131  gl_WCTYPE_H
132  gl_XALLOC
133  gl_XSTRNDUP
134  m4_ifval(gl_LIBSOURCES_LIST, [
135    m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
136      for gl_file in ]gl_LIBSOURCES_LIST[ ; do
137        if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
138          echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
139          exit 1
140        fi
141      done])dnl
142      m4_if(m4_sysval, [0], [],
143        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
144  ])
145  m4_popdef([gl_LIBSOURCES_DIR])
146  m4_popdef([gl_LIBSOURCES_LIST])
147  m4_popdef([AC_LIBSOURCES])
148  m4_popdef([AC_REPLACE_FUNCS])
149  m4_popdef([AC_LIBOBJ])
150  AC_CONFIG_COMMANDS_PRE([
151    gl_libobjs=
152    gl_ltlibobjs=
153    if test -n "$gl_LIBOBJS"; then
154      # Remove the extension.
155      sed_drop_objext='s/\.o$//;s/\.obj$//'
156      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
157        gl_libobjs="$gl_libobjs $i.$ac_objext"
158        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
159      done
160    fi
161    AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
162    AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
163  ])
164  gltests_libdeps=
165  gltests_ltlibdeps=
166  m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
167  m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
168  m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
169  m4_pushdef([gltests_LIBSOURCES_LIST], [])
170  m4_pushdef([gltests_LIBSOURCES_DIR], [])
171  gl_COMMON
172  gl_source_base='tests'
173  m4_ifval(gltests_LIBSOURCES_LIST, [
174    m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
175      for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
176        if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
177          echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
178          exit 1
179        fi
180      done])dnl
181      m4_if(m4_sysval, [0], [],
182        [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
183  ])
184  m4_popdef([gltests_LIBSOURCES_DIR])
185  m4_popdef([gltests_LIBSOURCES_LIST])
186  m4_popdef([AC_LIBSOURCES])
187  m4_popdef([AC_REPLACE_FUNCS])
188  m4_popdef([AC_LIBOBJ])
189  AC_CONFIG_COMMANDS_PRE([
190    gltests_libobjs=
191    gltests_ltlibobjs=
192    if test -n "$gltests_LIBOBJS"; then
193      # Remove the extension.
194      sed_drop_objext='s/\.o$//;s/\.obj$//'
195      for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
196        gltests_libobjs="$gltests_libobjs $i.$ac_objext"
197        gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
198      done
199    fi
200    AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
201    AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
202  ])
203  LIBSED_LIBDEPS="$gl_libdeps"
204  AC_SUBST([LIBSED_LIBDEPS])
205  LIBSED_LTLIBDEPS="$gl_ltlibdeps"
206  AC_SUBST([LIBSED_LTLIBDEPS])
207])
208
209# Like AC_LIBOBJ, except that the module name goes
210# into gl_LIBOBJS instead of into LIBOBJS.
211AC_DEFUN([gl_LIBOBJ], [
212  AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
213  gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
214])
215
216# Like AC_REPLACE_FUNCS, except that the module name goes
217# into gl_LIBOBJS instead of into LIBOBJS.
218AC_DEFUN([gl_REPLACE_FUNCS], [
219  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
220  AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
221])
222
223# Like AC_LIBSOURCES, except the directory where the source file is
224# expected is derived from the gnulib-tool parameterization,
225# and alloca is special cased (for the alloca-opt module).
226# We could also entirely rely on EXTRA_lib..._SOURCES.
227AC_DEFUN([gl_LIBSOURCES], [
228  m4_foreach([_gl_NAME], [$1], [
229    m4_if(_gl_NAME, [alloca.c], [], [
230      m4_define([gl_LIBSOURCES_DIR], [lib])
231      m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
232    ])
233  ])
234])
235
236# Like AC_LIBOBJ, except that the module name goes
237# into gltests_LIBOBJS instead of into LIBOBJS.
238AC_DEFUN([gltests_LIBOBJ], [
239  AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
240  gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
241])
242
243# Like AC_REPLACE_FUNCS, except that the module name goes
244# into gltests_LIBOBJS instead of into LIBOBJS.
245AC_DEFUN([gltests_REPLACE_FUNCS], [
246  m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
247  AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
248])
249
250# Like AC_LIBSOURCES, except the directory where the source file is
251# expected is derived from the gnulib-tool parameterization,
252# and alloca is special cased (for the alloca-opt module).
253# We could also entirely rely on EXTRA_lib..._SOURCES.
254AC_DEFUN([gltests_LIBSOURCES], [
255  m4_foreach([_gl_NAME], [$1], [
256    m4_if(_gl_NAME, [alloca.c], [], [
257      m4_define([gltests_LIBSOURCES_DIR], [tests])
258      m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
259    ])
260  ])
261])
262
263# This macro records the list of files which have been installed by
264# gnulib-tool and may be removed by future gnulib-tool invocations.
265AC_DEFUN([gl_FILE_LIST], [
266  build-aux/config.rpath
267  build-aux/link-warning.h
268  lib/acl-internal.h
269  lib/acl.h
270  lib/acl_entries.c
271  lib/alloca.c
272  lib/alloca.in.h
273  lib/basename.c
274  lib/btowc.c
275  lib/c-ctype.c
276  lib/c-ctype.h
277  lib/config.charset
278  lib/copy-acl.c
279  lib/dirname.c
280  lib/dirname.h
281  lib/errno.in.h
282  lib/error.c
283  lib/error.h
284  lib/exitfail.c
285  lib/exitfail.h
286  lib/file-has-acl.c
287  lib/getdelim.c
288  lib/getline.c
289  lib/getopt.c
290  lib/getopt.in.h
291  lib/getopt1.c
292  lib/getopt_int.h
293  lib/getpagesize.c
294  lib/gettext.h
295  lib/gettimeofday.c
296  lib/intprops.h
297  lib/localcharset.c
298  lib/localcharset.h
299  lib/lstat.c
300  lib/malloc.c
301  lib/mbrlen.c
302  lib/mbrtowc.c
303  lib/mbsinit.c
304  lib/memchr.c
305  lib/memchr.valgrind
306  lib/mkstemp.c
307  lib/obstack.c
308  lib/obstack.h
309  lib/pathmax.h
310  lib/quote.c
311  lib/quote.h
312  lib/quotearg.c
313  lib/quotearg.h
314  lib/realloc.c
315  lib/ref-add.sin
316  lib/ref-del.sin
317  lib/regcomp.c
318  lib/regex.c
319  lib/regex.h
320  lib/regex_internal.c
321  lib/regex_internal.h
322  lib/regexec.c
323  lib/rename.c
324  lib/se-context.in.h
325  lib/se-selinux.in.h
326  lib/set-mode-acl.c
327  lib/stat-macros.h
328  lib/stdbool.in.h
329  lib/stdint.in.h
330  lib/stdio-write.c
331  lib/stdio.in.h
332  lib/stdlib.in.h
333  lib/streq.h
334  lib/strerror.c
335  lib/string.in.h
336  lib/stripslash.c
337  lib/strndup.c
338  lib/strnlen.c
339  lib/strverscmp.c
340  lib/sys_stat.in.h
341  lib/sys_time.in.h
342  lib/tempname.c
343  lib/tempname.h
344  lib/unistd.in.h
345  lib/unlocked-io.h
346  lib/verify.h
347  lib/wchar.in.h
348  lib/wcrtomb.c
349  lib/wctob.c
350  lib/wctype.in.h
351  lib/xalloc-die.c
352  lib/xalloc.h
353  lib/xmalloc.c
354  lib/xstrndup.c
355  lib/xstrndup.h
356  m4/00gnulib.m4
357  m4/acl.m4
358  m4/alloca.m4
359  m4/btowc.m4
360  m4/codeset.m4
361  m4/dirname.m4
362  m4/dos.m4
363  m4/double-slash-root.m4
364  m4/errno_h.m4
365  m4/error.m4
366  m4/exitfail.m4
367  m4/extensions.m4
368  m4/getdelim.m4
369  m4/getline.m4
370  m4/getopt.m4
371  m4/getpagesize.m4
372  m4/gettext.m4
373  m4/gettimeofday.m4
374  m4/glibc2.m4
375  m4/glibc21.m4
376  m4/gnulib-common.m4
377  m4/iconv.m4
378  m4/include_next.m4
379  m4/inline.m4
380  m4/intdiv0.m4
381  m4/intl.m4
382  m4/intldir.m4
383  m4/intlmacosx.m4
384  m4/intmax.m4
385  m4/inttypes-pri.m4
386  m4/inttypes_h.m4
387  m4/lcmessage.m4
388  m4/lib-ld.m4
389  m4/lib-link.m4
390  m4/lib-prefix.m4
391  m4/localcharset.m4
392  m4/locale-fr.m4
393  m4/locale-ja.m4
394  m4/locale-zh.m4
395  m4/lock.m4
396  m4/longlong.m4
397  m4/lstat.m4
398  m4/malloc.m4
399  m4/mbrlen.m4
400  m4/mbrtowc.m4
401  m4/mbsinit.m4
402  m4/mbstate_t.m4
403  m4/memchr.m4
404  m4/mkstemp.m4
405  m4/mmap-anon.m4
406  m4/multiarch.m4
407  m4/nls.m4
408  m4/pathmax.m4
409  m4/po.m4
410  m4/printf-posix.m4
411  m4/progtest.m4
412  m4/quote.m4
413  m4/quotearg.m4
414  m4/realloc.m4
415  m4/regex.m4
416  m4/rename.m4
417  m4/selinux-context-h.m4
418  m4/selinux-selinux-h.m4
419  m4/size_max.m4
420  m4/ssize_t.m4
421  m4/stdbool.m4
422  m4/stdint.m4
423  m4/stdint_h.m4
424  m4/stdio_h.m4
425  m4/stdlib_h.m4
426  m4/strerror.m4
427  m4/string_h.m4
428  m4/strndup.m4
429  m4/strnlen.m4
430  m4/strverscmp.m4
431  m4/sys_stat_h.m4
432  m4/sys_time_h.m4
433  m4/tempname.m4
434  m4/threadlib.m4
435  m4/uintmax_t.m4
436  m4/unistd_h.m4
437  m4/unlocked-io.m4
438  m4/visibility.m4
439  m4/wchar.m4
440  m4/wchar_t.m4
441  m4/wcrtomb.m4
442  m4/wctob.m4
443  m4/wctype.m4
444  m4/wint_t.m4
445  m4/xalloc.m4
446  m4/xsize.m4
447  m4/xstrndup.m4
448])
449