Import gnulib's errno module.
[deliverable/binutils-gdb.git] / gdb / gnulib / import / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2012 Free Software Foundation, Inc.
3 #
4 # This file is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This file is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this file. If not, see <http://www.gnu.org/licenses/>.
16 #
17 # As a special exception to the GNU General Public License,
18 # this file may be distributed as part of a program that
19 # contains a configuration script generated by Autoconf, under
20 # the same distribution terms as the rest of that program.
21 #
22 # Generated by gnulib-tool.
23 #
24 # This file represents the compiled summary of the specification in
25 # gnulib-cache.m4. It lists the computed macro invocations that need
26 # to be invoked from configure.ac.
27 # In projects that use version control, this file can be treated like
28 # other built files.
29
30
31 # This macro should be invoked from ./configure.ac, in the section
32 # "Checks for programs", right after AC_PROG_CC, and certainly before
33 # any checks for libraries, header files, types and library functions.
34 AC_DEFUN([gl_EARLY],
35 [
36 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
37 m4_pattern_allow([^gl_ES$])dnl a valid locale name
38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
40 AC_REQUIRE([gl_PROG_AR_RANLIB])
41 # Code from module alloca:
42 # Code from module alloca-opt:
43 # Code from module configmake:
44 # Code from module errno:
45 # Code from module extensions:
46 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
47 # Code from module extern-inline:
48 # Code from module fnmatch:
49 # Code from module fnmatch-gnu:
50 # Code from module include_next:
51 # Code from module inttypes:
52 # Code from module inttypes-incomplete:
53 # Code from module localcharset:
54 # Code from module mbrtowc:
55 # Code from module mbsinit:
56 # Code from module mbsrtowcs:
57 # Code from module memchr:
58 # Code from module memmem:
59 # Code from module memmem-simple:
60 # Code from module multiarch:
61 # Code from module snippet/arg-nonnull:
62 # Code from module snippet/c++defs:
63 # Code from module snippet/warn-on-use:
64 # Code from module stdbool:
65 # Code from module stddef:
66 # Code from module stdint:
67 # Code from module streq:
68 # Code from module string:
69 # Code from module strnlen1:
70 # Code from module update-copyright:
71 # Code from module verify:
72 # Code from module wchar:
73 # Code from module wctype-h:
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], [false])
81 gl_cond_libtool=false
82 gl_libdeps=
83 gl_ltlibdeps=
84 gl_m4_base='import/m4'
85 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
86 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
87 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
88 m4_pushdef([gl_LIBSOURCES_LIST], [])
89 m4_pushdef([gl_LIBSOURCES_DIR], [])
90 gl_COMMON
91 gl_source_base='import'
92 gl_FUNC_ALLOCA
93 gl_CONFIGMAKE_PREP
94 gl_HEADER_ERRNO_H
95 AC_REQUIRE([gl_EXTERN_INLINE])
96 gl_FUNC_FNMATCH_POSIX
97 if test -n "$FNMATCH_H"; then
98 AC_LIBOBJ([fnmatch])
99 gl_PREREQ_FNMATCH
100 fi
101 gl_FUNC_FNMATCH_GNU
102 if test -n "$FNMATCH_H"; then
103 AC_LIBOBJ([fnmatch])
104 gl_PREREQ_FNMATCH
105 fi
106 gl_INTTYPES_H
107 gl_INTTYPES_INCOMPLETE
108 gl_LOCALCHARSET
109 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
110 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
111 gl_FUNC_MBRTOWC
112 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
113 AC_LIBOBJ([mbrtowc])
114 gl_PREREQ_MBRTOWC
115 fi
116 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
117 gl_FUNC_MBSINIT
118 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
119 AC_LIBOBJ([mbsinit])
120 gl_PREREQ_MBSINIT
121 fi
122 gl_WCHAR_MODULE_INDICATOR([mbsinit])
123 gl_FUNC_MBSRTOWCS
124 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
125 AC_LIBOBJ([mbsrtowcs])
126 AC_LIBOBJ([mbsrtowcs-state])
127 gl_PREREQ_MBSRTOWCS
128 fi
129 gl_WCHAR_MODULE_INDICATOR([mbsrtowcs])
130 gl_FUNC_MEMCHR
131 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
132 AC_LIBOBJ([memchr])
133 gl_PREREQ_MEMCHR
134 fi
135 gl_STRING_MODULE_INDICATOR([memchr])
136 gl_FUNC_MEMMEM
137 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
138 AC_LIBOBJ([memmem])
139 fi
140 gl_FUNC_MEMMEM_SIMPLE
141 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
142 AC_LIBOBJ([memmem])
143 fi
144 gl_STRING_MODULE_INDICATOR([memmem])
145 gl_MULTIARCH
146 AM_STDBOOL_H
147 gl_STDDEF_H
148 gl_STDINT_H
149 gl_HEADER_STRING_H
150 gl_WCHAR_H
151 gl_WCTYPE_H
152 # End of code from modules
153 m4_ifval(gl_LIBSOURCES_LIST, [
154 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
155 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
156 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
157 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
158 exit 1
159 fi
160 done])dnl
161 m4_if(m4_sysval, [0], [],
162 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
163 ])
164 m4_popdef([gl_LIBSOURCES_DIR])
165 m4_popdef([gl_LIBSOURCES_LIST])
166 m4_popdef([AC_LIBSOURCES])
167 m4_popdef([AC_REPLACE_FUNCS])
168 m4_popdef([AC_LIBOBJ])
169 AC_CONFIG_COMMANDS_PRE([
170 gl_libobjs=
171 gl_ltlibobjs=
172 if test -n "$gl_LIBOBJS"; then
173 # Remove the extension.
174 sed_drop_objext='s/\.o$//;s/\.obj$//'
175 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
176 gl_libobjs="$gl_libobjs $i.$ac_objext"
177 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
178 done
179 fi
180 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
181 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
182 ])
183 gltests_libdeps=
184 gltests_ltlibdeps=
185 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
186 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
187 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
188 m4_pushdef([gltests_LIBSOURCES_LIST], [])
189 m4_pushdef([gltests_LIBSOURCES_DIR], [])
190 gl_COMMON
191 gl_source_base='tests'
192 changequote(,)dnl
193 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
194 changequote([, ])dnl
195 AC_SUBST([gltests_WITNESS])
196 gl_module_indicator_condition=$gltests_WITNESS
197 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
198 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
199 m4_ifval(gltests_LIBSOURCES_LIST, [
200 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
201 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
202 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
203 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
204 exit 1
205 fi
206 done])dnl
207 m4_if(m4_sysval, [0], [],
208 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
209 ])
210 m4_popdef([gltests_LIBSOURCES_DIR])
211 m4_popdef([gltests_LIBSOURCES_LIST])
212 m4_popdef([AC_LIBSOURCES])
213 m4_popdef([AC_REPLACE_FUNCS])
214 m4_popdef([AC_LIBOBJ])
215 AC_CONFIG_COMMANDS_PRE([
216 gltests_libobjs=
217 gltests_ltlibobjs=
218 if test -n "$gltests_LIBOBJS"; then
219 # Remove the extension.
220 sed_drop_objext='s/\.o$//;s/\.obj$//'
221 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
222 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
223 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
224 done
225 fi
226 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
227 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
228 ])
229 LIBGNU_LIBDEPS="$gl_libdeps"
230 AC_SUBST([LIBGNU_LIBDEPS])
231 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
232 AC_SUBST([LIBGNU_LTLIBDEPS])
233 ])
234
235 # Like AC_LIBOBJ, except that the module name goes
236 # into gl_LIBOBJS instead of into LIBOBJS.
237 AC_DEFUN([gl_LIBOBJ], [
238 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
239 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
240 ])
241
242 # Like AC_REPLACE_FUNCS, except that the module name goes
243 # into gl_LIBOBJS instead of into LIBOBJS.
244 AC_DEFUN([gl_REPLACE_FUNCS], [
245 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
246 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
247 ])
248
249 # Like AC_LIBSOURCES, except the directory where the source file is
250 # expected is derived from the gnulib-tool parameterization,
251 # and alloca is special cased (for the alloca-opt module).
252 # We could also entirely rely on EXTRA_lib..._SOURCES.
253 AC_DEFUN([gl_LIBSOURCES], [
254 m4_foreach([_gl_NAME], [$1], [
255 m4_if(_gl_NAME, [alloca.c], [], [
256 m4_define([gl_LIBSOURCES_DIR], [import])
257 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
258 ])
259 ])
260 ])
261
262 # Like AC_LIBOBJ, except that the module name goes
263 # into gltests_LIBOBJS instead of into LIBOBJS.
264 AC_DEFUN([gltests_LIBOBJ], [
265 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
266 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
267 ])
268
269 # Like AC_REPLACE_FUNCS, except that the module name goes
270 # into gltests_LIBOBJS instead of into LIBOBJS.
271 AC_DEFUN([gltests_REPLACE_FUNCS], [
272 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
273 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
274 ])
275
276 # Like AC_LIBSOURCES, except the directory where the source file is
277 # expected is derived from the gnulib-tool parameterization,
278 # and alloca is special cased (for the alloca-opt module).
279 # We could also entirely rely on EXTRA_lib..._SOURCES.
280 AC_DEFUN([gltests_LIBSOURCES], [
281 m4_foreach([_gl_NAME], [$1], [
282 m4_if(_gl_NAME, [alloca.c], [], [
283 m4_define([gltests_LIBSOURCES_DIR], [tests])
284 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
285 ])
286 ])
287 ])
288
289 # This macro records the list of files which have been installed by
290 # gnulib-tool and may be removed by future gnulib-tool invocations.
291 AC_DEFUN([gl_FILE_LIST], [
292 build-aux/snippet/arg-nonnull.h
293 build-aux/snippet/c++defs.h
294 build-aux/snippet/warn-on-use.h
295 build-aux/update-copyright
296 lib/alloca.c
297 lib/alloca.in.h
298 lib/config.charset
299 lib/errno.in.h
300 lib/fnmatch.c
301 lib/fnmatch.in.h
302 lib/fnmatch_loop.c
303 lib/inttypes.in.h
304 lib/localcharset.c
305 lib/localcharset.h
306 lib/mbrtowc.c
307 lib/mbsinit.c
308 lib/mbsrtowcs-impl.h
309 lib/mbsrtowcs-state.c
310 lib/mbsrtowcs.c
311 lib/memchr.c
312 lib/memchr.valgrind
313 lib/memmem.c
314 lib/ref-add.sin
315 lib/ref-del.sin
316 lib/stdbool.in.h
317 lib/stddef.in.h
318 lib/stdint.in.h
319 lib/str-two-way.h
320 lib/streq.h
321 lib/string.in.h
322 lib/strnlen1.c
323 lib/strnlen1.h
324 lib/verify.h
325 lib/wchar.in.h
326 lib/wctype-h.c
327 lib/wctype.in.h
328 m4/00gnulib.m4
329 m4/alloca.m4
330 m4/codeset.m4
331 m4/configmake.m4
332 m4/errno_h.m4
333 m4/extensions.m4
334 m4/extern-inline.m4
335 m4/fcntl-o.m4
336 m4/fnmatch.m4
337 m4/glibc21.m4
338 m4/gnulib-common.m4
339 m4/include_next.m4
340 m4/inttypes-pri.m4
341 m4/inttypes.m4
342 m4/localcharset.m4
343 m4/locale-fr.m4
344 m4/locale-ja.m4
345 m4/locale-zh.m4
346 m4/longlong.m4
347 m4/mbrtowc.m4
348 m4/mbsinit.m4
349 m4/mbsrtowcs.m4
350 m4/mbstate_t.m4
351 m4/memchr.m4
352 m4/memmem.m4
353 m4/mmap-anon.m4
354 m4/multiarch.m4
355 m4/stdbool.m4
356 m4/stddef_h.m4
357 m4/stdint.m4
358 m4/string_h.m4
359 m4/warn-on-use.m4
360 m4/wchar_h.m4
361 m4/wchar_t.m4
362 m4/wctype_h.m4
363 m4/wint_t.m4
364 ])
This page took 0.0384 seconds and 4 git commands to generate.