Fix bug #8468 with redisplay and scroll-margin > 0.
[bpt/emacs.git] / m4 / gl-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.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.
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 allocator:
30 # Code from module arg-nonnull:
31 # Code from module c++defs:
32 # Code from module careadlinkat:
33 # Code from module crypto/md5:
34 # Code from module dosname:
35 # Code from module dtoastr:
36 # Code from module extensions:
37 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
38 # Code from module filemode:
39 # Code from module getloadavg:
40 # Code from module getopt-gnu:
41 # Code from module getopt-posix:
42 # Code from module gettext-h:
43 # Code from module ignore-value:
44 # Code from module include_next:
45 # Code from module intprops:
46 # Code from module lstat:
47 # Code from module mktime:
48 # Code from module multiarch:
49 # Code from module readlink:
50 # Code from module socklen:
51 # Code from module ssize_t:
52 # Code from module stat:
53 # Code from module stdbool:
54 # Code from module stddef:
55 # Code from module stdint:
56 # Code from module stdio:
57 # Code from module stdlib:
58 # Code from module strftime:
59 # Code from module symlink:
60 # Code from module sys_stat:
61 # Code from module time:
62 # Code from module time_r:
63 # Code from module unistd:
64 # Code from module warn-on-use:
65 ])
66
67 # This macro should be invoked from ./configure.in, in the section
68 # "Check for header files, types and library functions".
69 AC_DEFUN([gl_INIT],
70 [
71 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
72 gl_cond_libtool=false
73 gl_libdeps=
74 gl_ltlibdeps=
75 gl_m4_base='m4'
76 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
77 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
78 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
79 m4_pushdef([gl_LIBSOURCES_LIST], [])
80 m4_pushdef([gl_LIBSOURCES_DIR], [])
81 gl_COMMON
82 gl_source_base='lib'
83 # Code from module allocator:
84 # Code from module arg-nonnull:
85 # Code from module c++defs:
86 # Code from module careadlinkat:
87 AC_CHECK_FUNCS_ONCE([readlinkat])
88 # Code from module crypto/md5:
89 gl_MD5
90 # Code from module dosname:
91 # Code from module dtoastr:
92 AC_REQUIRE([gl_C99_STRTOLD])
93 # Code from module extensions:
94 # Code from module filemode:
95 gl_FILEMODE
96 # Code from module getloadavg:
97 gl_GETLOADAVG([$gl_source_base])
98 gl_STDLIB_MODULE_INDICATOR([getloadavg])
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 ignore-value:
108 AC_REQUIRE([AC_C_INLINE])
109 # Code from module include_next:
110 # Code from module intprops:
111 # Code from module lstat:
112 gl_FUNC_LSTAT
113 gl_SYS_STAT_MODULE_INDICATOR([lstat])
114 # Code from module mktime:
115 gl_FUNC_MKTIME
116 gl_TIME_MODULE_INDICATOR([mktime])
117 # Code from module multiarch:
118 gl_MULTIARCH
119 # Code from module readlink:
120 gl_FUNC_READLINK
121 gl_UNISTD_MODULE_INDICATOR([readlink])
122 # Code from module socklen:
123 gl_TYPE_SOCKLEN_T
124 # Code from module ssize_t:
125 gt_TYPE_SSIZE_T
126 # Code from module stat:
127 gl_FUNC_STAT
128 gl_SYS_STAT_MODULE_INDICATOR([stat])
129 # Code from module stdbool:
130 AM_STDBOOL_H
131 # Code from module stddef:
132 gl_STDDEF_H
133 # Code from module stdint:
134 gl_STDINT_H
135 # Code from module stdio:
136 gl_STDIO_H
137 # Code from module stdlib:
138 gl_STDLIB_H
139 # Code from module strftime:
140 gl_FUNC_GNU_STRFTIME
141 # Code from module symlink:
142 gl_FUNC_SYMLINK
143 gl_UNISTD_MODULE_INDICATOR([symlink])
144 # Code from module sys_stat:
145 gl_HEADER_SYS_STAT_H
146 AC_PROG_MKDIR_P
147 # Code from module time:
148 gl_HEADER_TIME_H
149 # Code from module time_r:
150 gl_TIME_R
151 gl_TIME_MODULE_INDICATOR([time_r])
152 # Code from module unistd:
153 gl_UNISTD_H
154 # Code from module warn-on-use:
155 # End of code from modules
156 m4_ifval(gl_LIBSOURCES_LIST, [
157 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
158 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
159 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
160 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
161 exit 1
162 fi
163 done])dnl
164 m4_if(m4_sysval, [0], [],
165 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
166 ])
167 m4_popdef([gl_LIBSOURCES_DIR])
168 m4_popdef([gl_LIBSOURCES_LIST])
169 m4_popdef([AC_LIBSOURCES])
170 m4_popdef([AC_REPLACE_FUNCS])
171 m4_popdef([AC_LIBOBJ])
172 AC_CONFIG_COMMANDS_PRE([
173 gl_libobjs=
174 gl_ltlibobjs=
175 if test -n "$gl_LIBOBJS"; then
176 # Remove the extension.
177 sed_drop_objext='s/\.o$//;s/\.obj$//'
178 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
179 gl_libobjs="$gl_libobjs $i.$ac_objext"
180 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
181 done
182 fi
183 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
184 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
185 ])
186 gltests_libdeps=
187 gltests_ltlibdeps=
188 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
189 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
190 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
191 m4_pushdef([gltests_LIBSOURCES_LIST], [])
192 m4_pushdef([gltests_LIBSOURCES_DIR], [])
193 gl_COMMON
194 gl_source_base='tests'
195 changequote(,)dnl
196 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
197 changequote([, ])dnl
198 AC_SUBST([gltests_WITNESS])
199 gl_module_indicator_condition=$gltests_WITNESS
200 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
201 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
202 m4_ifval(gltests_LIBSOURCES_LIST, [
203 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
204 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
205 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
206 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
207 exit 1
208 fi
209 done])dnl
210 m4_if(m4_sysval, [0], [],
211 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
212 ])
213 m4_popdef([gltests_LIBSOURCES_DIR])
214 m4_popdef([gltests_LIBSOURCES_LIST])
215 m4_popdef([AC_LIBSOURCES])
216 m4_popdef([AC_REPLACE_FUNCS])
217 m4_popdef([AC_LIBOBJ])
218 AC_CONFIG_COMMANDS_PRE([
219 gltests_libobjs=
220 gltests_ltlibobjs=
221 if test -n "$gltests_LIBOBJS"; then
222 # Remove the extension.
223 sed_drop_objext='s/\.o$//;s/\.obj$//'
224 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
225 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
226 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
227 done
228 fi
229 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
230 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
231 ])
232 LIBGNU_LIBDEPS="$gl_libdeps"
233 AC_SUBST([LIBGNU_LIBDEPS])
234 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
235 AC_SUBST([LIBGNU_LTLIBDEPS])
236 ])
237
238 # Like AC_LIBOBJ, except that the module name goes
239 # into gl_LIBOBJS instead of into LIBOBJS.
240 AC_DEFUN([gl_LIBOBJ], [
241 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
242 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
243 ])
244
245 # Like AC_REPLACE_FUNCS, except that the module name goes
246 # into gl_LIBOBJS instead of into LIBOBJS.
247 AC_DEFUN([gl_REPLACE_FUNCS], [
248 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
249 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
250 ])
251
252 # Like AC_LIBSOURCES, except the directory where the source file is
253 # expected is derived from the gnulib-tool parameterization,
254 # and alloca is special cased (for the alloca-opt module).
255 # We could also entirely rely on EXTRA_lib..._SOURCES.
256 AC_DEFUN([gl_LIBSOURCES], [
257 m4_foreach([_gl_NAME], [$1], [
258 m4_if(_gl_NAME, [alloca.c], [], [
259 m4_define([gl_LIBSOURCES_DIR], [lib])
260 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
261 ])
262 ])
263 ])
264
265 # Like AC_LIBOBJ, except that the module name goes
266 # into gltests_LIBOBJS instead of into LIBOBJS.
267 AC_DEFUN([gltests_LIBOBJ], [
268 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
269 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
270 ])
271
272 # Like AC_REPLACE_FUNCS, except that the module name goes
273 # into gltests_LIBOBJS instead of into LIBOBJS.
274 AC_DEFUN([gltests_REPLACE_FUNCS], [
275 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
276 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
277 ])
278
279 # Like AC_LIBSOURCES, except the directory where the source file is
280 # expected is derived from the gnulib-tool parameterization,
281 # and alloca is special cased (for the alloca-opt module).
282 # We could also entirely rely on EXTRA_lib..._SOURCES.
283 AC_DEFUN([gltests_LIBSOURCES], [
284 m4_foreach([_gl_NAME], [$1], [
285 m4_if(_gl_NAME, [alloca.c], [], [
286 m4_define([gltests_LIBSOURCES_DIR], [tests])
287 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
288 ])
289 ])
290 ])
291
292 # This macro records the list of files which have been installed by
293 # gnulib-tool and may be removed by future gnulib-tool invocations.
294 AC_DEFUN([gl_FILE_LIST], [
295 build-aux/arg-nonnull.h
296 build-aux/c++defs.h
297 build-aux/warn-on-use.h
298 lib/allocator.c
299 lib/allocator.h
300 lib/careadlinkat.c
301 lib/careadlinkat.h
302 lib/dosname.h
303 lib/dtoastr.c
304 lib/filemode.c
305 lib/filemode.h
306 lib/ftoastr.c
307 lib/ftoastr.h
308 lib/getloadavg.c
309 lib/getopt.c
310 lib/getopt.in.h
311 lib/getopt1.c
312 lib/getopt_int.h
313 lib/gettext.h
314 lib/ignore-value.h
315 lib/intprops.h
316 lib/lstat.c
317 lib/md5.c
318 lib/md5.h
319 lib/mktime-internal.h
320 lib/mktime.c
321 lib/readlink.c
322 lib/stat.c
323 lib/stdbool.in.h
324 lib/stddef.in.h
325 lib/stdint.in.h
326 lib/stdio.in.h
327 lib/stdlib.in.h
328 lib/strftime.c
329 lib/strftime.h
330 lib/symlink.c
331 lib/sys_stat.in.h
332 lib/time.in.h
333 lib/time_r.c
334 lib/unistd.in.h
335 m4/00gnulib.m4
336 m4/c-strtod.m4
337 m4/extensions.m4
338 m4/filemode.m4
339 m4/getloadavg.m4
340 m4/getopt.m4
341 m4/gnulib-common.m4
342 m4/include_next.m4
343 m4/longlong.m4
344 m4/lstat.m4
345 m4/md5.m4
346 m4/mktime.m4
347 m4/multiarch.m4
348 m4/readlink.m4
349 m4/socklen.m4
350 m4/ssize_t.m4
351 m4/st_dm_mode.m4
352 m4/stat.m4
353 m4/stdbool.m4
354 m4/stddef_h.m4
355 m4/stdint.m4
356 m4/stdio_h.m4
357 m4/stdlib_h.m4
358 m4/strftime.m4
359 m4/symlink.m4
360 m4/sys_stat_h.m4
361 m4/time_h.m4
362 m4/time_r.m4
363 m4/tm_gmtoff.m4
364 m4/unistd_h.m4
365 m4/warn-on-use.m4
366 m4/wchar_t.m4
367 ])