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