Update gnulib files.
[libtasn1.git] / gl / m4 / gnulib-comp.m4
blobb0122b3c35e09366f275e1ca418d606b8000f190
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2008 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.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],
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   dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
31   dnl for the builtin va_copy to work.  With Autoconf 2.60 or later,
32   dnl AC_PROG_CC_STDC arranges for this.  With older Autoconf AC_PROG_CC_STDC
33   dnl shouldn't hurt, though installers are on their own to set c99 mode.
34   AC_REQUIRE([AC_PROG_CC_STDC])
37 # This macro should be invoked from ./configure.in, in the section
38 # "Check for header files, types and library functions".
39 AC_DEFUN([gl_INIT],
41   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
42   gl_cond_libtool=true
43   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
44   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
45   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
46   gl_source_base='gl'
47   gl_GETOPT
48   AC_SUBST([LIBINTL])
49   AC_SUBST([LTLIBINTL])
50   # Autoconf 2.61a.99 and earlier don't support linking a file only
51   # in VPATH builds.  But since GNUmakefile is for maintainer use
52   # only, it does not matter if we skip the link with older autoconf.
53   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
54   # builds, so use a shell variable to bypass this.
55   GNUmakefile=GNUmakefile
56   m4_if(m4_version_compare([2.61a.100],
57         m4_defn([m4_PACKAGE_VERSION])), [1], [],
58         [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
59         [GNUmakefile=$GNUmakefile])])
60   gl_FUNC_MALLOC_POSIX
61   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
62   gl_FUNC_READ_FILE
63   gl_FUNC_REALLOC_POSIX
64   gl_STDLIB_MODULE_INDICATOR([realloc-posix])
65   gl_STDARG_H
66   gl_STDINT_H
67   gl_STDLIB_H
68   gl_FUNC_STRDUP
69   gl_STRING_MODULE_INDICATOR([strdup])
70   gl_HEADER_STRING_H
71   gl_UNISTD_H
72   gl_WCHAR_H
73   m4_popdef([AC_LIBSOURCES])
74   m4_popdef([AC_REPLACE_FUNCS])
75   m4_popdef([AC_LIBOBJ])
76   AC_CONFIG_COMMANDS_PRE([
77     gl_libobjs=
78     gl_ltlibobjs=
79     if test -n "$gl_LIBOBJS"; then
80       # Remove the extension.
81       sed_drop_objext='s/\.o$//;s/\.obj$//'
82       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
83         gl_libobjs="$gl_libobjs $i.$ac_objext"
84         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
85       done
86     fi
87     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
88     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
89   ])
90   gltests_libdeps=
91   gltests_ltlibdeps=
92   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
93   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
94   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
95   gl_source_base='tests'
96   m4_popdef([AC_LIBSOURCES])
97   m4_popdef([AC_REPLACE_FUNCS])
98   m4_popdef([AC_LIBOBJ])
99   AC_CONFIG_COMMANDS_PRE([
100     gltests_libobjs=
101     gltests_ltlibobjs=
102     if test -n "$gltests_LIBOBJS"; then
103       # Remove the extension.
104       sed_drop_objext='s/\.o$//;s/\.obj$//'
105       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
106         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
107         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
108       done
109     fi
110     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
111     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
112   ])
115 # Like AC_LIBOBJ, except that the module name goes
116 # into gl_LIBOBJS instead of into LIBOBJS.
117 AC_DEFUN([gl_LIBOBJ], [
118   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
119   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
122 # m4_foreach_w is provided by autoconf-2.59c and later.
123 # This definition is to accommodate developers using versions
124 # of autoconf older than that.
125 m4_ifndef([m4_foreach_w],
126   [m4_define([m4_foreach_w],
127     [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
129 # Like AC_REPLACE_FUNCS, except that the module name goes
130 # into gl_LIBOBJS instead of into LIBOBJS.
131 AC_DEFUN([gl_REPLACE_FUNCS], [
132   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
133   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
136 # Like AC_LIBSOURCES, except the directory where the source file is
137 # expected is derived from the gnulib-tool parametrization,
138 # and alloca is special cased (for the alloca-opt module).
139 # We could also entirely rely on EXTRA_lib..._SOURCES.
140 AC_DEFUN([gl_LIBSOURCES], [
141   m4_foreach([_gl_NAME], [$1], [
142     m4_if(_gl_NAME, [alloca.c], [], [
143       m4_syscmd([test -r gl/]_gl_NAME[ || test ! -d gl])dnl
144       m4_if(m4_sysval, [0], [],
145         [AC_FATAL([missing gl/]_gl_NAME)])
146     ])
147   ])
150 # Like AC_LIBOBJ, except that the module name goes
151 # into gltests_LIBOBJS instead of into LIBOBJS.
152 AC_DEFUN([gltests_LIBOBJ], [
153   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
154   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
157 # m4_foreach_w is provided by autoconf-2.59c and later.
158 # This definition is to accommodate developers using versions
159 # of autoconf older than that.
160 m4_ifndef([m4_foreach_w],
161   [m4_define([m4_foreach_w],
162     [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
164 # Like AC_REPLACE_FUNCS, except that the module name goes
165 # into gltests_LIBOBJS instead of into LIBOBJS.
166 AC_DEFUN([gltests_REPLACE_FUNCS], [
167   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
168   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
171 # Like AC_LIBSOURCES, except the directory where the source file is
172 # expected is derived from the gnulib-tool parametrization,
173 # and alloca is special cased (for the alloca-opt module).
174 # We could also entirely rely on EXTRA_lib..._SOURCES.
175 AC_DEFUN([gltests_LIBSOURCES], [
176   m4_foreach([_gl_NAME], [$1], [
177     m4_if(_gl_NAME, [alloca.c], [], [
178       m4_syscmd([test -r tests/]_gl_NAME[ || test ! -d tests])dnl
179       m4_if(m4_sysval, [0], [],
180         [AC_FATAL([missing tests/]_gl_NAME)])
181     ])
182   ])
185 # This macro records the list of files which have been installed by
186 # gnulib-tool and may be removed by future gnulib-tool invocations.
187 AC_DEFUN([gl_FILE_LIST], [
188   build-aux/gendocs.sh
189   build-aux/link-warning.h
190   doc/fdl.texi
191   doc/gendocs_template
192   doc/gpl-3.0.texi
193   doc/lgpl-2.1.texi
194   lib/getopt.c
195   lib/getopt.in.h
196   lib/getopt1.c
197   lib/getopt_int.h
198   lib/gettext.h
199   lib/malloc.c
200   lib/progname.c
201   lib/progname.h
202   lib/read-file.c
203   lib/read-file.h
204   lib/realloc.c
205   lib/stdarg.in.h
206   lib/stdint.in.h
207   lib/stdlib.in.h
208   lib/strdup.c
209   lib/string.in.h
210   lib/unistd.in.h
211   lib/version-etc-fsf.c
212   lib/version-etc.c
213   lib/version-etc.h
214   lib/wchar.in.h
215   m4/extensions.m4
216   m4/getopt.m4
217   m4/gnulib-common.m4
218   m4/include_next.m4
219   m4/longlong.m4
220   m4/malloc.m4
221   m4/read-file.m4
222   m4/realloc.m4
223   m4/stdarg.m4
224   m4/stdint.m4
225   m4/stdlib_h.m4
226   m4/strdup.m4
227   m4/string_h.m4
228   m4/unistd_h.m4
229   m4/wchar.m4
230   top/GNUmakefile
231   top/maint.mk