1811b04e4079c93ff5e85c92e676699983c672fe
[platform/upstream/libtasn1.git] / gl / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2011 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 that use version control, this file can be treated like
16 # other built files.
17
18
19 # This macro should be invoked from ./configure.ac, in the section
20 # "Checks for programs", right after AC_PROG_CC, and certainly before
21 # any checks for libraries, header files, types and library functions.
22 AC_DEFUN([gl_EARLY],
23 [
24   m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
25   m4_pattern_allow([^gl_ES$])dnl a valid locale name
26   m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
27   m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
28   AC_REQUIRE([AC_PROG_RANLIB])
29   # Code from module arg-nonnull:
30   # Code from module autobuild:
31   AB_INIT
32   # Code from module c++defs:
33   # Code from module extensions:
34   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
35   # Code from module fdl-1.3:
36   # Code from module ftello:
37   AC_REQUIRE([AC_FUNC_FSEEKO])
38   # Code from module gendocs:
39   # Code from module getopt-gnu:
40   # Code from module getopt-posix:
41   # Code from module gettext-h:
42   # Code from module gnumakefile:
43   # Code from module include_next:
44   # Code from module lseek:
45   # Code from module maintainer-makefile:
46   # Code from module malloc-posix:
47   # Code from module manywarnings:
48   # Code from module multiarch:
49   # Code from module pmccabe2html:
50   # Code from module progname:
51   # Code from module read-file:
52   # Code from module realloc-posix:
53   # Code from module stdarg:
54   dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
55   dnl for the builtin va_copy to work.  With Autoconf 2.60 or later,
56   dnl AC_PROG_CC_STDC arranges for this.  With older Autoconf AC_PROG_CC_STDC
57   dnl shouldn't hurt, though installers are on their own to set c99 mode.
58   AC_REQUIRE([AC_PROG_CC_STDC])
59   # Code from module stddef:
60   # Code from module stdint:
61   # Code from module stdio:
62   # Code from module stdlib:
63   # Code from module sys_stat:
64   # Code from module time:
65   # Code from module unistd:
66   # Code from module update-copyright:
67   # Code from module useless-if-before-free:
68   # Code from module valgrind-tests:
69   # Code from module vc-list-files:
70   # Code from module version-etc:
71   # Code from module version-etc-fsf:
72   # Code from module warn-on-use:
73   # Code from module warnings:
74 ])
75
76 # This macro should be invoked from ./configure.ac, in the section
77 # "Check for header files, types and library functions".
78 AC_DEFUN([gl_INIT],
79 [
80   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
81   gl_cond_libtool=true
82   gl_m4_base='gl/m4'
83   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
84   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
85   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
86   m4_pushdef([gl_LIBSOURCES_LIST], [])
87   m4_pushdef([gl_LIBSOURCES_DIR], [])
88   gl_COMMON
89   gl_source_base='gl'
90   # Code from module arg-nonnull:
91   # Code from module autobuild:
92   # Code from module c++defs:
93   # Code from module extensions:
94   # Code from module fdl-1.3:
95   # Code from module ftello:
96   gl_FUNC_FTELLO
97   gl_STDIO_MODULE_INDICATOR([ftello])
98   # Code from module gendocs:
99   # Code from module getopt-gnu:
100   gl_FUNC_GETOPT_GNU
101   gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
102   # Code from module getopt-posix:
103   gl_FUNC_GETOPT_POSIX
104   # Code from module gettext-h:
105   AC_SUBST([LIBINTL])
106   AC_SUBST([LTLIBINTL])
107   # Code from module gnumakefile:
108   # Autoconf 2.61a.99 and earlier don't support linking a file only
109   # in VPATH builds.  But since GNUmakefile is for maintainer use
110   # only, it does not matter if we skip the link with older autoconf.
111   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
112   # builds, so use a shell variable to bypass this.
113   GNUmakefile=GNUmakefile
114   m4_if(m4_version_compare([2.61a.100],
115         m4_defn([m4_PACKAGE_VERSION])), [1], [],
116         [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
117         [GNUmakefile=$GNUmakefile])])
118   # Code from module include_next:
119   # Code from module lseek:
120   gl_FUNC_LSEEK
121   gl_UNISTD_MODULE_INDICATOR([lseek])
122   # Code from module maintainer-makefile:
123   AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
124     [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
125   # Code from module malloc-posix:
126   gl_FUNC_MALLOC_POSIX
127   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
128   # Code from module manywarnings:
129   # Code from module multiarch:
130   gl_MULTIARCH
131   # Code from module pmccabe2html:
132   AC_PATH_PROG([PMCCABE], [pmccabe], [false])
133   # Code from module progname:
134   AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
135   AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
136   # Code from module read-file:
137   gl_FUNC_READ_FILE
138   # Code from module realloc-posix:
139   gl_FUNC_REALLOC_POSIX
140   gl_STDLIB_MODULE_INDICATOR([realloc-posix])
141   # Code from module stdarg:
142   gl_STDARG_H
143   # Code from module stddef:
144   gl_STDDEF_H
145   # Code from module stdint:
146   gl_STDINT_H
147   # Code from module stdio:
148   gl_STDIO_H
149   # Code from module stdlib:
150   gl_STDLIB_H
151   # Code from module sys_stat:
152   gl_HEADER_SYS_STAT_H
153   AC_PROG_MKDIR_P
154   # Code from module time:
155   gl_HEADER_TIME_H
156   # Code from module unistd:
157   gl_UNISTD_H
158   # Code from module update-copyright:
159   # Code from module useless-if-before-free:
160   # Code from module valgrind-tests:
161   gl_VALGRIND_TESTS
162   # Code from module vc-list-files:
163   # Code from module version-etc:
164   gl_VERSION_ETC
165   # Code from module version-etc-fsf:
166   # Code from module warn-on-use:
167   # Code from module warnings:
168   AC_SUBST([WARN_CFLAGS])
169   # End of code from modules
170   m4_ifval(gl_LIBSOURCES_LIST, [
171     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
172       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
173         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
174           echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
175           exit 1
176         fi
177       done])dnl
178       m4_if(m4_sysval, [0], [],
179         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
180   ])
181   m4_popdef([gl_LIBSOURCES_DIR])
182   m4_popdef([gl_LIBSOURCES_LIST])
183   m4_popdef([AC_LIBSOURCES])
184   m4_popdef([AC_REPLACE_FUNCS])
185   m4_popdef([AC_LIBOBJ])
186   AC_CONFIG_COMMANDS_PRE([
187     gl_libobjs=
188     gl_ltlibobjs=
189     if test -n "$gl_LIBOBJS"; then
190       # Remove the extension.
191       sed_drop_objext='s/\.o$//;s/\.obj$//'
192       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
193         gl_libobjs="$gl_libobjs $i.$ac_objext"
194         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
195       done
196     fi
197     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
198     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
199   ])
200   gltests_libdeps=
201   gltests_ltlibdeps=
202   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
203   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
204   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
205   m4_pushdef([gltests_LIBSOURCES_LIST], [])
206   m4_pushdef([gltests_LIBSOURCES_DIR], [])
207   gl_COMMON
208   gl_source_base='tests'
209 changequote(,)dnl
210   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
211 changequote([, ])dnl
212   AC_SUBST([gltests_WITNESS])
213   gl_module_indicator_condition=$gltests_WITNESS
214   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
215   gl_VALGRIND_TESTS
216   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
217   m4_ifval(gltests_LIBSOURCES_LIST, [
218     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
219       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
220         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
221           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
222           exit 1
223         fi
224       done])dnl
225       m4_if(m4_sysval, [0], [],
226         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
227   ])
228   m4_popdef([gltests_LIBSOURCES_DIR])
229   m4_popdef([gltests_LIBSOURCES_LIST])
230   m4_popdef([AC_LIBSOURCES])
231   m4_popdef([AC_REPLACE_FUNCS])
232   m4_popdef([AC_LIBOBJ])
233   AC_CONFIG_COMMANDS_PRE([
234     gltests_libobjs=
235     gltests_ltlibobjs=
236     if test -n "$gltests_LIBOBJS"; then
237       # Remove the extension.
238       sed_drop_objext='s/\.o$//;s/\.obj$//'
239       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
240         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
241         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
242       done
243     fi
244     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
245     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
246   ])
247 ])
248
249 # Like AC_LIBOBJ, except that the module name goes
250 # into gl_LIBOBJS instead of into LIBOBJS.
251 AC_DEFUN([gl_LIBOBJ], [
252   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
253   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
254 ])
255
256 # Like AC_REPLACE_FUNCS, except that the module name goes
257 # into gl_LIBOBJS instead of into LIBOBJS.
258 AC_DEFUN([gl_REPLACE_FUNCS], [
259   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
260   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
261 ])
262
263 # Like AC_LIBSOURCES, except the directory where the source file is
264 # expected is derived from the gnulib-tool parameterization,
265 # and alloca is special cased (for the alloca-opt module).
266 # We could also entirely rely on EXTRA_lib..._SOURCES.
267 AC_DEFUN([gl_LIBSOURCES], [
268   m4_foreach([_gl_NAME], [$1], [
269     m4_if(_gl_NAME, [alloca.c], [], [
270       m4_define([gl_LIBSOURCES_DIR], [gl])
271       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
272     ])
273   ])
274 ])
275
276 # Like AC_LIBOBJ, except that the module name goes
277 # into gltests_LIBOBJS instead of into LIBOBJS.
278 AC_DEFUN([gltests_LIBOBJ], [
279   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
280   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
281 ])
282
283 # Like AC_REPLACE_FUNCS, except that the module name goes
284 # into gltests_LIBOBJS instead of into LIBOBJS.
285 AC_DEFUN([gltests_REPLACE_FUNCS], [
286   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
287   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
288 ])
289
290 # Like AC_LIBSOURCES, except the directory where the source file is
291 # expected is derived from the gnulib-tool parameterization,
292 # and alloca is special cased (for the alloca-opt module).
293 # We could also entirely rely on EXTRA_lib..._SOURCES.
294 AC_DEFUN([gltests_LIBSOURCES], [
295   m4_foreach([_gl_NAME], [$1], [
296     m4_if(_gl_NAME, [alloca.c], [], [
297       m4_define([gltests_LIBSOURCES_DIR], [tests])
298       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
299     ])
300   ])
301 ])
302
303 # This macro records the list of files which have been installed by
304 # gnulib-tool and may be removed by future gnulib-tool invocations.
305 AC_DEFUN([gl_FILE_LIST], [
306   build-aux/arg-nonnull.h
307   build-aux/c++defs.h
308   build-aux/gendocs.sh
309   build-aux/pmccabe.css
310   build-aux/pmccabe2html
311   build-aux/update-copyright
312   build-aux/useless-if-before-free
313   build-aux/vc-list-files
314   build-aux/warn-on-use.h
315   doc/fdl-1.3.texi
316   doc/gendocs_template
317   lib/ftello.c
318   lib/getopt.c
319   lib/getopt.in.h
320   lib/getopt1.c
321   lib/getopt_int.h
322   lib/gettext.h
323   lib/lseek.c
324   lib/malloc.c
325   lib/progname.c
326   lib/progname.h
327   lib/read-file.c
328   lib/read-file.h
329   lib/realloc.c
330   lib/stdarg.in.h
331   lib/stddef.in.h
332   lib/stdint.in.h
333   lib/stdio-impl.h
334   lib/stdio.in.h
335   lib/stdlib.in.h
336   lib/sys_stat.in.h
337   lib/time.in.h
338   lib/unistd.in.h
339   lib/version-etc-fsf.c
340   lib/version-etc.c
341   lib/version-etc.h
342   m4/00gnulib.m4
343   m4/autobuild.m4
344   m4/extensions.m4
345   m4/fseeko.m4
346   m4/ftello.m4
347   m4/getopt.m4
348   m4/gnulib-common.m4
349   m4/include_next.m4
350   m4/longlong.m4
351   m4/lseek.m4
352   m4/malloc.m4
353   m4/manywarnings.m4
354   m4/multiarch.m4
355   m4/read-file.m4
356   m4/realloc.m4
357   m4/stdarg.m4
358   m4/stddef_h.m4
359   m4/stdint.m4
360   m4/stdio_h.m4
361   m4/stdlib_h.m4
362   m4/sys_stat_h.m4
363   m4/time_h.m4
364   m4/unistd_h.m4
365   m4/valgrind-tests.m4
366   m4/version-etc.m4
367   m4/warn-on-use.m4
368   m4/warnings.m4
369   m4/wchar_t.m4
370   top/GNUmakefile
371   top/maint.mk
372 ])