Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / liblouis / src / gnulib / m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2013 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 extensions:
42   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
43   # Code from module extern-inline:
44   # Code from module getopt-gnu:
45   # Code from module getopt-posix:
46   # Code from module gettext-h:
47   # Code from module include_next:
48   # Code from module malloc-gnu:
49   # Code from module malloc-posix:
50   # Code from module nocrash:
51   # Code from module progname:
52   # Code from module realloc-gnu:
53   # Code from module realloc-posix:
54   # Code from module snippet/_Noreturn:
55   # Code from module snippet/arg-nonnull:
56   # Code from module snippet/c++defs:
57   # Code from module snippet/warn-on-use:
58   # Code from module ssize_t:
59   # Code from module stdarg:
60   dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
61   dnl for the builtin va_copy to work.  With Autoconf 2.60 or later,
62   dnl gl_PROG_CC_C99 arranges for this.  With older Autoconf gl_PROG_CC_C99
63   dnl shouldn't hurt, though installers are on their own to set c99 mode.
64   gl_PROG_CC_C99
65   # Code from module stddef:
66   # Code from module stdlib:
67   # Code from module sys_types:
68   # Code from module unistd:
69   # Code from module version-etc:
70 ])
71
72 # This macro should be invoked from ./configure.ac, in the section
73 # "Check for header files, types and library functions".
74 AC_DEFUN([gl_INIT],
75 [
76   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
77   gl_cond_libtool=true
78   gl_m4_base='gnulib/m4'
79   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
80   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
81   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
82   m4_pushdef([gl_LIBSOURCES_LIST], [])
83   m4_pushdef([gl_LIBSOURCES_DIR], [])
84   gl_COMMON
85   gl_source_base='gnulib'
86   AC_REQUIRE([gl_EXTERN_INLINE])
87   gl_FUNC_GETOPT_GNU
88   if test $REPLACE_GETOPT = 1; then
89     AC_LIBOBJ([getopt])
90     AC_LIBOBJ([getopt1])
91     gl_PREREQ_GETOPT
92     dnl Arrange for unistd.h to include getopt.h.
93     GNULIB_GL_UNISTD_H_GETOPT=1
94   fi
95   AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
96   gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
97   gl_FUNC_GETOPT_POSIX
98   if test $REPLACE_GETOPT = 1; then
99     AC_LIBOBJ([getopt])
100     AC_LIBOBJ([getopt1])
101     gl_PREREQ_GETOPT
102     dnl Arrange for unistd.h to include getopt.h.
103     GNULIB_GL_UNISTD_H_GETOPT=1
104   fi
105   AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
106   AC_SUBST([LIBINTL])
107   AC_SUBST([LTLIBINTL])
108   gl_FUNC_MALLOC_GNU
109   if test $REPLACE_MALLOC = 1; then
110     AC_LIBOBJ([malloc])
111   fi
112   gl_MODULE_INDICATOR([malloc-gnu])
113   gl_FUNC_MALLOC_POSIX
114   if test $REPLACE_MALLOC = 1; then
115     AC_LIBOBJ([malloc])
116   fi
117   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
118   AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
119   AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
120   gl_FUNC_REALLOC_GNU
121   if test $REPLACE_REALLOC = 1; then
122     AC_LIBOBJ([realloc])
123   fi
124   gl_MODULE_INDICATOR([realloc-gnu])
125   gl_FUNC_REALLOC_POSIX
126   if test $REPLACE_REALLOC = 1; then
127     AC_LIBOBJ([realloc])
128   fi
129   gl_STDLIB_MODULE_INDICATOR([realloc-posix])
130   gt_TYPE_SSIZE_T
131   gl_STDARG_H
132   gl_STDDEF_H
133   gl_STDLIB_H
134   gl_SYS_TYPES_H
135   AC_PROG_MKDIR_P
136   gl_UNISTD_H
137   gl_VERSION_ETC
138   # End of code from modules
139   m4_ifval(gl_LIBSOURCES_LIST, [
140     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
141       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
142         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
143           echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
144           exit 1
145         fi
146       done])dnl
147       m4_if(m4_sysval, [0], [],
148         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
149   ])
150   m4_popdef([gl_LIBSOURCES_DIR])
151   m4_popdef([gl_LIBSOURCES_LIST])
152   m4_popdef([AC_LIBSOURCES])
153   m4_popdef([AC_REPLACE_FUNCS])
154   m4_popdef([AC_LIBOBJ])
155   AC_CONFIG_COMMANDS_PRE([
156     gl_libobjs=
157     gl_ltlibobjs=
158     if test -n "$gl_LIBOBJS"; then
159       # Remove the extension.
160       sed_drop_objext='s/\.o$//;s/\.obj$//'
161       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
162         gl_libobjs="$gl_libobjs $i.$ac_objext"
163         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
164       done
165     fi
166     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
167     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
168   ])
169   gltests_libdeps=
170   gltests_ltlibdeps=
171   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
172   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
173   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
174   m4_pushdef([gltests_LIBSOURCES_LIST], [])
175   m4_pushdef([gltests_LIBSOURCES_DIR], [])
176   gl_COMMON
177   gl_source_base='tests'
178 changequote(,)dnl
179   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
180 changequote([, ])dnl
181   AC_SUBST([gltests_WITNESS])
182   gl_module_indicator_condition=$gltests_WITNESS
183   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
184   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
185   m4_ifval(gltests_LIBSOURCES_LIST, [
186     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
187       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
188         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
189           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
190           exit 1
191         fi
192       done])dnl
193       m4_if(m4_sysval, [0], [],
194         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
195   ])
196   m4_popdef([gltests_LIBSOURCES_DIR])
197   m4_popdef([gltests_LIBSOURCES_LIST])
198   m4_popdef([AC_LIBSOURCES])
199   m4_popdef([AC_REPLACE_FUNCS])
200   m4_popdef([AC_LIBOBJ])
201   AC_CONFIG_COMMANDS_PRE([
202     gltests_libobjs=
203     gltests_ltlibobjs=
204     if test -n "$gltests_LIBOBJS"; then
205       # Remove the extension.
206       sed_drop_objext='s/\.o$//;s/\.obj$//'
207       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
208         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
209         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
210       done
211     fi
212     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
213     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
214   ])
215 ])
216
217 # Like AC_LIBOBJ, except that the module name goes
218 # into gl_LIBOBJS instead of into LIBOBJS.
219 AC_DEFUN([gl_LIBOBJ], [
220   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
221   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
222 ])
223
224 # Like AC_REPLACE_FUNCS, except that the module name goes
225 # into gl_LIBOBJS instead of into LIBOBJS.
226 AC_DEFUN([gl_REPLACE_FUNCS], [
227   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
228   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
229 ])
230
231 # Like AC_LIBSOURCES, except the directory where the source file is
232 # expected is derived from the gnulib-tool parameterization,
233 # and alloca is special cased (for the alloca-opt module).
234 # We could also entirely rely on EXTRA_lib..._SOURCES.
235 AC_DEFUN([gl_LIBSOURCES], [
236   m4_foreach([_gl_NAME], [$1], [
237     m4_if(_gl_NAME, [alloca.c], [], [
238       m4_define([gl_LIBSOURCES_DIR], [gnulib])
239       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
240     ])
241   ])
242 ])
243
244 # Like AC_LIBOBJ, except that the module name goes
245 # into gltests_LIBOBJS instead of into LIBOBJS.
246 AC_DEFUN([gltests_LIBOBJ], [
247   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
248   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
249 ])
250
251 # Like AC_REPLACE_FUNCS, except that the module name goes
252 # into gltests_LIBOBJS instead of into LIBOBJS.
253 AC_DEFUN([gltests_REPLACE_FUNCS], [
254   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
255   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
256 ])
257
258 # Like AC_LIBSOURCES, except the directory where the source file is
259 # expected is derived from the gnulib-tool parameterization,
260 # and alloca is special cased (for the alloca-opt module).
261 # We could also entirely rely on EXTRA_lib..._SOURCES.
262 AC_DEFUN([gltests_LIBSOURCES], [
263   m4_foreach([_gl_NAME], [$1], [
264     m4_if(_gl_NAME, [alloca.c], [], [
265       m4_define([gltests_LIBSOURCES_DIR], [tests])
266       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
267     ])
268   ])
269 ])
270
271 # This macro records the list of files which have been installed by
272 # gnulib-tool and may be removed by future gnulib-tool invocations.
273 AC_DEFUN([gl_FILE_LIST], [
274   build-aux/snippet/_Noreturn.h
275   build-aux/snippet/arg-nonnull.h
276   build-aux/snippet/c++defs.h
277   build-aux/snippet/warn-on-use.h
278   lib/getopt.c
279   lib/getopt.in.h
280   lib/getopt1.c
281   lib/getopt_int.h
282   lib/gettext.h
283   lib/malloc.c
284   lib/progname.c
285   lib/progname.h
286   lib/realloc.c
287   lib/stdarg.in.h
288   lib/stddef.in.h
289   lib/stdlib.in.h
290   lib/sys_types.in.h
291   lib/unistd.c
292   lib/unistd.in.h
293   lib/version-etc.c
294   lib/version-etc.h
295   m4/00gnulib.m4
296   m4/extensions.m4
297   m4/extern-inline.m4
298   m4/getopt.m4
299   m4/gnulib-common.m4
300   m4/include_next.m4
301   m4/malloc.m4
302   m4/nocrash.m4
303   m4/off_t.m4
304   m4/onceonly.m4
305   m4/realloc.m4
306   m4/ssize_t.m4
307   m4/stdarg.m4
308   m4/stddef_h.m4
309   m4/stdlib_h.m4
310   m4/sys_types_h.m4
311   m4/unistd_h.m4
312   m4/version-etc.m4
313   m4/warn-on-use.m4
314   m4/wchar_t.m4
315 ])