Import simpler crypto/md5 module from gnulib, plus stdint module.
[bpt/emacs.git] / m4 / gl-comp.m4
CommitLineData
743c80a7
PE
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.in, 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.
22AC_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])
1fd182f0
PE
29 # Code from module arg-nonnull:
30 # Code from module c++defs:
942f733f 31 # Code from module crypto/md5:
f737437b 32 # Code from module dtoastr:
1fd182f0
PE
33 # Code from module extensions:
34 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
79ab4b7f 35 # Code from module getloadavg:
e275c824
PE
36 # Code from module getopt-gnu:
37 # Code from module getopt-posix:
38 # Code from module gettext-h:
67342916 39 # Code from module ignore-value:
1fd182f0 40 # Code from module include_next:
a451f14b 41 # Code from module intprops:
1fd182f0
PE
42 # Code from module mktime:
43 # Code from module multiarch:
16c3e636 44 # Code from module stdbool:
1fd182f0 45 # Code from module stddef:
5f90be1b 46 # Code from module stdint:
79ab4b7f 47 # Code from module stdlib:
16c3e636 48 # Code from module strftime:
1fd182f0
PE
49 # Code from module time:
50 # Code from module time_r:
e275c824 51 # Code from module unistd:
1fd182f0 52 # Code from module warn-on-use:
743c80a7
PE
53])
54
55# This macro should be invoked from ./configure.in, in the section
56# "Check for header files, types and library functions".
57AC_DEFUN([gl_INIT],
58[
59 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
60 gl_cond_libtool=false
61 gl_libdeps=
62 gl_ltlibdeps=
63 gl_m4_base='m4'
64 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
65 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
66 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
67 m4_pushdef([gl_LIBSOURCES_LIST], [])
68 m4_pushdef([gl_LIBSOURCES_DIR], [])
69 gl_COMMON
70 gl_source_base='lib'
1fd182f0
PE
71 # Code from module arg-nonnull:
72 # Code from module c++defs:
942f733f
PE
73 # Code from module crypto/md5:
74 gl_MD5
f737437b 75 # Code from module dtoastr:
a451f14b 76 AC_REQUIRE([gl_C99_STRTOLD])
f737437b 77 # Code from module extensions:
79ab4b7f
PE
78 # Code from module getloadavg:
79 gl_GETLOADAVG([$gl_source_base])
80 gl_STDLIB_MODULE_INDICATOR([getloadavg])
e275c824
PE
81 # Code from module getopt-gnu:
82 gl_FUNC_GETOPT_GNU
83 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
84 # Code from module getopt-posix:
85 gl_FUNC_GETOPT_POSIX
86 # Code from module gettext-h:
87 AC_SUBST([LIBINTL])
88 AC_SUBST([LTLIBINTL])
67342916
PE
89 # Code from module ignore-value:
90 AC_REQUIRE([AC_C_INLINE])
1fd182f0 91 # Code from module include_next:
a451f14b 92 # Code from module intprops:
1fd182f0
PE
93 # Code from module mktime:
94 gl_FUNC_MKTIME
95 gl_TIME_MODULE_INDICATOR([mktime])
96 # Code from module multiarch:
97 gl_MULTIARCH
16c3e636
PE
98 # Code from module stdbool:
99 AM_STDBOOL_H
1fd182f0
PE
100 # Code from module stddef:
101 gl_STDDEF_H
5f90be1b
PE
102 # Code from module stdint:
103 gl_STDINT_H
79ab4b7f
PE
104 # Code from module stdlib:
105 gl_STDLIB_H
16c3e636
PE
106 # Code from module strftime:
107 gl_FUNC_GNU_STRFTIME
1fd182f0
PE
108 # Code from module time:
109 gl_HEADER_TIME_H
110 # Code from module time_r:
111 gl_TIME_R
112 gl_TIME_MODULE_INDICATOR([time_r])
e275c824
PE
113 # Code from module unistd:
114 gl_UNISTD_H
1fd182f0 115 # Code from module warn-on-use:
743c80a7
PE
116 # End of code from modules
117 m4_ifval(gl_LIBSOURCES_LIST, [
118 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
119 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
120 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
121 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
122 exit 1
123 fi
124 done])dnl
125 m4_if(m4_sysval, [0], [],
126 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
127 ])
128 m4_popdef([gl_LIBSOURCES_DIR])
129 m4_popdef([gl_LIBSOURCES_LIST])
130 m4_popdef([AC_LIBSOURCES])
131 m4_popdef([AC_REPLACE_FUNCS])
132 m4_popdef([AC_LIBOBJ])
133 AC_CONFIG_COMMANDS_PRE([
134 gl_libobjs=
135 gl_ltlibobjs=
136 if test -n "$gl_LIBOBJS"; then
137 # Remove the extension.
138 sed_drop_objext='s/\.o$//;s/\.obj$//'
139 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
140 gl_libobjs="$gl_libobjs $i.$ac_objext"
141 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
142 done
143 fi
144 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
145 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
146 ])
147 gltests_libdeps=
148 gltests_ltlibdeps=
149 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
150 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
151 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
152 m4_pushdef([gltests_LIBSOURCES_LIST], [])
153 m4_pushdef([gltests_LIBSOURCES_DIR], [])
154 gl_COMMON
155 gl_source_base='tests'
156changequote(,)dnl
157 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
158changequote([, ])dnl
159 AC_SUBST([gltests_WITNESS])
160 gl_module_indicator_condition=$gltests_WITNESS
161 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
162 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
163 m4_ifval(gltests_LIBSOURCES_LIST, [
164 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
165 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
166 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
167 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
168 exit 1
169 fi
170 done])dnl
171 m4_if(m4_sysval, [0], [],
172 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
173 ])
174 m4_popdef([gltests_LIBSOURCES_DIR])
175 m4_popdef([gltests_LIBSOURCES_LIST])
176 m4_popdef([AC_LIBSOURCES])
177 m4_popdef([AC_REPLACE_FUNCS])
178 m4_popdef([AC_LIBOBJ])
179 AC_CONFIG_COMMANDS_PRE([
180 gltests_libobjs=
181 gltests_ltlibobjs=
182 if test -n "$gltests_LIBOBJS"; then
183 # Remove the extension.
184 sed_drop_objext='s/\.o$//;s/\.obj$//'
185 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
186 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
187 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
188 done
189 fi
190 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
191 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
192 ])
193 LIBGNU_LIBDEPS="$gl_libdeps"
194 AC_SUBST([LIBGNU_LIBDEPS])
195 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
196 AC_SUBST([LIBGNU_LTLIBDEPS])
197])
198
199# Like AC_LIBOBJ, except that the module name goes
200# into gl_LIBOBJS instead of into LIBOBJS.
201AC_DEFUN([gl_LIBOBJ], [
202 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
203 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
204])
205
206# Like AC_REPLACE_FUNCS, except that the module name goes
207# into gl_LIBOBJS instead of into LIBOBJS.
208AC_DEFUN([gl_REPLACE_FUNCS], [
209 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
210 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
211])
212
213# Like AC_LIBSOURCES, except the directory where the source file is
214# expected is derived from the gnulib-tool parameterization,
215# and alloca is special cased (for the alloca-opt module).
216# We could also entirely rely on EXTRA_lib..._SOURCES.
217AC_DEFUN([gl_LIBSOURCES], [
218 m4_foreach([_gl_NAME], [$1], [
219 m4_if(_gl_NAME, [alloca.c], [], [
220 m4_define([gl_LIBSOURCES_DIR], [lib])
221 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
222 ])
223 ])
224])
225
226# Like AC_LIBOBJ, except that the module name goes
227# into gltests_LIBOBJS instead of into LIBOBJS.
228AC_DEFUN([gltests_LIBOBJ], [
229 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
230 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
231])
232
233# Like AC_REPLACE_FUNCS, except that the module name goes
234# into gltests_LIBOBJS instead of into LIBOBJS.
235AC_DEFUN([gltests_REPLACE_FUNCS], [
236 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
237 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
238])
239
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.
244AC_DEFUN([gltests_LIBSOURCES], [
245 m4_foreach([_gl_NAME], [$1], [
246 m4_if(_gl_NAME, [alloca.c], [], [
247 m4_define([gltests_LIBSOURCES_DIR], [tests])
248 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
249 ])
250 ])
251])
252
253# This macro records the list of files which have been installed by
254# gnulib-tool and may be removed by future gnulib-tool invocations.
255AC_DEFUN([gl_FILE_LIST], [
1fd182f0
PE
256 build-aux/arg-nonnull.h
257 build-aux/c++defs.h
258 build-aux/warn-on-use.h
a451f14b
PE
259 lib/dtoastr.c
260 lib/ftoastr.c
261 lib/ftoastr.h
79ab4b7f 262 lib/getloadavg.c
e275c824
PE
263 lib/getopt.c
264 lib/getopt.in.h
265 lib/getopt1.c
266 lib/getopt_int.h
267 lib/gettext.h
67342916 268 lib/ignore-value.h
a451f14b 269 lib/intprops.h
942f733f
PE
270 lib/md5.c
271 lib/md5.h
1fd182f0
PE
272 lib/mktime-internal.h
273 lib/mktime.c
16c3e636 274 lib/stdbool.in.h
1fd182f0 275 lib/stddef.in.h
5f90be1b 276 lib/stdint.in.h
79ab4b7f 277 lib/stdlib.in.h
16c3e636
PE
278 lib/strftime.c
279 lib/strftime.h
1fd182f0
PE
280 lib/time.in.h
281 lib/time_r.c
e275c824 282 lib/unistd.in.h
743c80a7 283 m4/00gnulib.m4
a451f14b 284 m4/c-strtod.m4
1fd182f0 285 m4/extensions.m4
79ab4b7f 286 m4/getloadavg.m4
e275c824 287 m4/getopt.m4
743c80a7 288 m4/gnulib-common.m4
1fd182f0 289 m4/include_next.m4
5f90be1b 290 m4/longlong.m4
942f733f 291 m4/md5.m4
1fd182f0
PE
292 m4/mktime.m4
293 m4/multiarch.m4
16c3e636 294 m4/stdbool.m4
1fd182f0 295 m4/stddef_h.m4
5f90be1b 296 m4/stdint.m4
79ab4b7f 297 m4/stdlib_h.m4
16c3e636 298 m4/strftime.m4
1fd182f0
PE
299 m4/time_h.m4
300 m4/time_r.m4
16c3e636 301 m4/tm_gmtoff.m4
e275c824 302 m4/unistd_h.m4
1fd182f0
PE
303 m4/warn-on-use.m4
304 m4/wchar_t.m4
743c80a7 305])