1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2010 Free Software Foundation, Inc.
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.
10 # Generated by gnulib-tool.
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 using CVS, this file can be treated like other built files.
18 # This macro should be invoked from gettext-tools/configure.ac, in the section
19 # "Checks for programs", right after AC_PROG_CC, and certainly before
20 # any checks for libraries, header files, types and library functions.
21 AC_DEFUN([grgl_EARLY],
23 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
24 m4_pattern_allow([^gl_ES$])dnl a valid locale name
25 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
26 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
27 AC_REQUIRE([AC_PROG_RANLIB])
28 # Code from module btowc:
29 # Code from module c++defs:
30 # Code from module langinfo:
31 # Code from module nl_langinfo:
32 # Code from module regex:
33 # Code from module warn-on-use:
34 # Code from module wcrtomb:
37 # This macro should be invoked from gettext-tools/configure.ac, in the section
38 # "Check for header files, types and library functions".
41 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
45 gl_m4_base='libgrep/gnulib-m4'
46 m4_pushdef([AC_LIBOBJ], m4_defn([grgl_LIBOBJ]))
47 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([grgl_REPLACE_FUNCS]))
48 m4_pushdef([AC_LIBSOURCES], m4_defn([grgl_LIBSOURCES]))
49 m4_pushdef([grgl_LIBSOURCES_LIST], [])
50 m4_pushdef([grgl_LIBSOURCES_DIR], [])
52 gl_source_base='libgrep'
53 # Code from module btowc:
55 gl_WCHAR_MODULE_INDICATOR([btowc])
56 # Code from module c++defs:
57 # Code from module langinfo:
59 # Code from module nl_langinfo:
61 gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
62 # Code from module regex:
64 # Code from module warn-on-use:
65 # Code from module wcrtomb:
67 gl_WCHAR_MODULE_INDICATOR([wcrtomb])
68 # Code from module dummy:
69 # End of code from modules
70 m4_ifval(grgl_LIBSOURCES_LIST, [
71 m4_syscmd([test ! -d ]m4_defn([grgl_LIBSOURCES_DIR])[ ||
72 for gl_file in ]grgl_LIBSOURCES_LIST[ ; do
73 if test ! -r ]m4_defn([grgl_LIBSOURCES_DIR])[/$gl_file ; then
74 echo "missing file ]m4_defn([grgl_LIBSOURCES_DIR])[/$gl_file" >&2
78 m4_if(m4_sysval, [0], [],
79 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
81 m4_popdef([grgl_LIBSOURCES_DIR])
82 m4_popdef([grgl_LIBSOURCES_LIST])
83 m4_popdef([AC_LIBSOURCES])
84 m4_popdef([AC_REPLACE_FUNCS])
85 m4_popdef([AC_LIBOBJ])
86 AC_CONFIG_COMMANDS_PRE([
89 if test -n "$grgl_LIBOBJS"; then
90 # Remove the extension.
91 sed_drop_objext='s/\.o$//;s/\.obj$//'
92 for i in `for i in $grgl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
93 grgl_libobjs="$grgl_libobjs $i.$ac_objext"
94 grgl_ltlibobjs="$grgl_ltlibobjs $i.lo"
97 AC_SUBST([grgl_LIBOBJS], [$grgl_libobjs])
98 AC_SUBST([grgl_LTLIBOBJS], [$grgl_ltlibobjs])
102 m4_pushdef([AC_LIBOBJ], m4_defn([grgltests_LIBOBJ]))
103 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([grgltests_REPLACE_FUNCS]))
104 m4_pushdef([AC_LIBSOURCES], m4_defn([grgltests_LIBSOURCES]))
105 m4_pushdef([grgltests_LIBSOURCES_LIST], [])
106 m4_pushdef([grgltests_LIBSOURCES_DIR], [])
108 gl_source_base='tests'
110 grgltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
112 AC_SUBST([grgltests_WITNESS])
113 gl_module_indicator_condition=$grgltests_WITNESS
114 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
115 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
116 m4_ifval(grgltests_LIBSOURCES_LIST, [
117 m4_syscmd([test ! -d ]m4_defn([grgltests_LIBSOURCES_DIR])[ ||
118 for gl_file in ]grgltests_LIBSOURCES_LIST[ ; do
119 if test ! -r ]m4_defn([grgltests_LIBSOURCES_DIR])[/$gl_file ; then
120 echo "missing file ]m4_defn([grgltests_LIBSOURCES_DIR])[/$gl_file" >&2
124 m4_if(m4_sysval, [0], [],
125 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
127 m4_popdef([grgltests_LIBSOURCES_DIR])
128 m4_popdef([grgltests_LIBSOURCES_LIST])
129 m4_popdef([AC_LIBSOURCES])
130 m4_popdef([AC_REPLACE_FUNCS])
131 m4_popdef([AC_LIBOBJ])
132 AC_CONFIG_COMMANDS_PRE([
135 if test -n "$grgltests_LIBOBJS"; then
136 # Remove the extension.
137 sed_drop_objext='s/\.o$//;s/\.obj$//'
138 for i in `for i in $grgltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
139 grgltests_libobjs="$grgltests_libobjs $i.$ac_objext"
140 grgltests_ltlibobjs="$grgltests_ltlibobjs $i.lo"
143 AC_SUBST([grgltests_LIBOBJS], [$grgltests_libobjs])
144 AC_SUBST([grgltests_LTLIBOBJS], [$grgltests_ltlibobjs])
146 LIBGREP_LIBDEPS="$gl_libdeps"
147 AC_SUBST([LIBGREP_LIBDEPS])
148 LIBGREP_LTLIBDEPS="$gl_ltlibdeps"
149 AC_SUBST([LIBGREP_LTLIBDEPS])
152 # Like AC_LIBOBJ, except that the module name goes
153 # into grgl_LIBOBJS instead of into LIBOBJS.
154 AC_DEFUN([grgl_LIBOBJ], [
155 AS_LITERAL_IF([$1], [grgl_LIBSOURCES([$1.c])])dnl
156 grgl_LIBOBJS="$grgl_LIBOBJS $1.$ac_objext"
159 # Like AC_REPLACE_FUNCS, except that the module name goes
160 # into grgl_LIBOBJS instead of into LIBOBJS.
161 AC_DEFUN([grgl_REPLACE_FUNCS], [
162 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
163 AC_CHECK_FUNCS([$1], , [grgl_LIBOBJ($ac_func)])
166 # Like AC_LIBSOURCES, except the directory where the source file is
167 # expected is derived from the gnulib-tool parameterization,
168 # and alloca is special cased (for the alloca-opt module).
169 # We could also entirely rely on EXTRA_lib..._SOURCES.
170 AC_DEFUN([grgl_LIBSOURCES], [
171 m4_foreach([_gl_NAME], [$1], [
172 m4_if(_gl_NAME, [alloca.c], [], [
173 m4_define([grgl_LIBSOURCES_DIR], [libgrep])
174 m4_append([grgl_LIBSOURCES_LIST], _gl_NAME, [ ])
179 # Like AC_LIBOBJ, except that the module name goes
180 # into grgltests_LIBOBJS instead of into LIBOBJS.
181 AC_DEFUN([grgltests_LIBOBJ], [
182 AS_LITERAL_IF([$1], [grgltests_LIBSOURCES([$1.c])])dnl
183 grgltests_LIBOBJS="$grgltests_LIBOBJS $1.$ac_objext"
186 # Like AC_REPLACE_FUNCS, except that the module name goes
187 # into grgltests_LIBOBJS instead of into LIBOBJS.
188 AC_DEFUN([grgltests_REPLACE_FUNCS], [
189 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
190 AC_CHECK_FUNCS([$1], , [grgltests_LIBOBJ($ac_func)])
193 # Like AC_LIBSOURCES, except the directory where the source file is
194 # expected is derived from the gnulib-tool parameterization,
195 # and alloca is special cased (for the alloca-opt module).
196 # We could also entirely rely on EXTRA_lib..._SOURCES.
197 AC_DEFUN([grgltests_LIBSOURCES], [
198 m4_foreach([_gl_NAME], [$1], [
199 m4_if(_gl_NAME, [alloca.c], [], [
200 m4_define([grgltests_LIBSOURCES_DIR], [tests])
201 m4_append([grgltests_LIBSOURCES_LIST], _gl_NAME, [ ])
206 # This macro records the list of files which have been installed by
207 # gnulib-tool and may be removed by future gnulib-tool invocations.
208 AC_DEFUN([grgl_FILE_LIST], [
210 build-aux/warn-on-use.h