Debian Codegraph @

lib/unistring/m4/gnulib-comp.m4

raw
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2026 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 <https://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([unistring_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
41 # Pre-early section.
42 AC_REQUIRE([gl_PROG_AR_RANLIB])
43
44 # Code from module absolute-header:
45 # Code from module array-mergesort:
46 # Code from module attribute:
47 # Code from module bool:
48 # Code from module c99:
49 # Code from module gen-header:
50 # Code from module gperf:
51 # Code from module include_next:
52 # Code from module inline:
53 # Code from module limits-h:
54 # Code from module multiarch:
55 # Code from module ssize_t:
56 # Code from module std-gnu11:
57 # Code from module stdint-h:
58 # Code from module sys_types-h:
59 AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
60 # Code from module unictype/base:
61 # Code from module unictype/category-C:
62 # Code from module unictype/category-Cc:
63 # Code from module unictype/category-Cf:
64 # Code from module unictype/category-Cn:
65 # Code from module unictype/category-Co:
66 # Code from module unictype/category-Cs:
67 # Code from module unictype/category-L:
68 # Code from module unictype/category-LC:
69 # Code from module unictype/category-Ll:
70 # Code from module unictype/category-Lm:
71 # Code from module unictype/category-Lo:
72 # Code from module unictype/category-Lt:
73 # Code from module unictype/category-Lu:
74 # Code from module unictype/category-M:
75 # Code from module unictype/category-Mc:
76 # Code from module unictype/category-Me:
77 # Code from module unictype/category-Mn:
78 # Code from module unictype/category-N:
79 # Code from module unictype/category-Nd:
80 # Code from module unictype/category-Nl:
81 # Code from module unictype/category-No:
82 # Code from module unictype/category-P:
83 # Code from module unictype/category-Pc:
84 # Code from module unictype/category-Pd:
85 # Code from module unictype/category-Pe:
86 # Code from module unictype/category-Pf:
87 # Code from module unictype/category-Pi:
88 # Code from module unictype/category-Po:
89 # Code from module unictype/category-Ps:
90 # Code from module unictype/category-S:
91 # Code from module unictype/category-Sc:
92 # Code from module unictype/category-Sk:
93 # Code from module unictype/category-Sm:
94 # Code from module unictype/category-So:
95 # Code from module unictype/category-Z:
96 # Code from module unictype/category-Zl:
97 # Code from module unictype/category-Zp:
98 # Code from module unictype/category-Zs:
99 # Code from module unictype/category-all:
100 # Code from module unictype/category-and:
101 # Code from module unictype/category-and-not:
102 # Code from module unictype/category-byname:
103 # Code from module unictype/category-longname:
104 # Code from module unictype/category-name:
105 # Code from module unictype/category-none:
106 # Code from module unictype/category-of:
107 # Code from module unictype/category-or:
108 # Code from module unictype/category-test:
109 # Code from module unictype/category-test-withtable:
110 # Code from module unictype/combining-class:
111 # Code from module unictype/property-default-ignorable-code-point:
112 # Code from module unictype/property-join-control:
113 # Code from module unictype/property-not-a-character:
114 # Code from module uninorm/base:
115 # Code from module uninorm/canonical-decomposition:
116 # Code from module uninorm/compat-decomposition:
117 # Code from module uninorm/composition:
118 # Code from module uninorm/decompose-internal:
119 # Code from module uninorm/decomposition:
120 # Code from module uninorm/decomposition-table:
121 # Code from module uninorm/nfc:
122 # Code from module uninorm/nfd:
123 # Code from module uninorm/nfkc:
124 # Code from module uninorm/nfkd:
125 # Code from module uninorm/u16-normalize:
126 # Code from module uninorm/u32-normalize:
127 # Code from module uninorm/u8-normalize:
128 # Code from module unistr/base:
129 # Code from module unistr/u16-cpy:
130 # Code from module unistr/u16-mbtouc-unsafe:
131 # Code from module unistr/u16-mbtoucr:
132 # Code from module unistr/u16-to-u8:
133 # Code from module unistr/u16-uctomb:
134 # Code from module unistr/u32-cpy:
135 # Code from module unistr/u32-mbtouc-unsafe:
136 # Code from module unistr/u32-to-u8:
137 # Code from module unistr/u32-uctomb:
138 # Code from module unistr/u8-check:
139 # Code from module unistr/u8-cpy:
140 # Code from module unistr/u8-mbtouc-unsafe:
141 # Code from module unistr/u8-mbtoucr:
142 # Code from module unistr/u8-to-u16:
143 # Code from module unistr/u8-to-u32:
144 # Code from module unistr/u8-uctomb:
145 # Code from module unitypes-h:
146 ])
147
148 # This macro should be invoked from ./configure.ac, in the section
149 # "Check for header files, types and library functions".
150 AC_DEFUN([unistring_INIT],
151 [
152 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
153 gl_cond_libtool=true
154 gl_m4_base='lib/unistring/m4'
155 m4_pushdef([AC_LIBOBJ], m4_defn([unistring_LIBOBJ]))
156 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([unistring_REPLACE_FUNCS]))
157 m4_pushdef([AC_LIBSOURCES], m4_defn([unistring_LIBSOURCES]))
158 m4_pushdef([unistring_LIBSOURCES_LIST], [])
159 m4_pushdef([unistring_LIBSOURCES_DIR], [])
160 m4_pushdef([GL_MACRO_PREFIX], [unistring])
161 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL_UNISTRING])
162 gl_COMMON
163 gl_source_base='lib/unistring'
164 gl_source_base_prefix=
165 gl_C_BOOL
166 gl_INLINE
167 gl_LIMITS_H
168 gl_CONDITIONAL_HEADER([limits.h])
169 AC_PROG_MKDIR_P
170 gl_MULTIARCH
171 gt_TYPE_SSIZE_T
172 gl_STDINT_H
173 gl_CONDITIONAL_HEADER([stdint.h])
174 dnl Because of gl_REPLACE_LIMITS_H:
175 gl_CONDITIONAL_HEADER([limits.h])
176 AC_PROG_MKDIR_P
177 gl_SYS_TYPES_H
178 gl_SYS_TYPES_H_REQUIRE_DEFAULTS
179 AC_PROG_MKDIR_P
180 gl_LIBUNISTRING_LIBHEADER([1.3], [unictype.h])
181 gl_UNICTYPE_H
182 gl_UNICTYPE_H_REQUIRE_DEFAULTS
183 AC_PROG_MKDIR_P
184 gl_UNICTYPE_H_REQUIRE_DEFAULTS
185 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-C])
186 gl_UNICTYPE_H_REQUIRE_DEFAULTS
187 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Cc])
188 gl_UNICTYPE_H_REQUIRE_DEFAULTS
189 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Cf])
190 gl_UNICTYPE_H_REQUIRE_DEFAULTS
191 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Cn])
192 gl_UNICTYPE_H_REQUIRE_DEFAULTS
193 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Co])
194 gl_UNICTYPE_H_REQUIRE_DEFAULTS
195 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Cs])
196 gl_UNICTYPE_H_REQUIRE_DEFAULTS
197 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-L])
198 gl_UNICTYPE_H_REQUIRE_DEFAULTS
199 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-LC])
200 gl_UNICTYPE_H_REQUIRE_DEFAULTS
201 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Ll])
202 gl_UNICTYPE_H_REQUIRE_DEFAULTS
203 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Lm])
204 gl_UNICTYPE_H_REQUIRE_DEFAULTS
205 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Lo])
206 gl_UNICTYPE_H_REQUIRE_DEFAULTS
207 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Lt])
208 gl_UNICTYPE_H_REQUIRE_DEFAULTS
209 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Lu])
210 gl_UNICTYPE_H_REQUIRE_DEFAULTS
211 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-M])
212 gl_UNICTYPE_H_REQUIRE_DEFAULTS
213 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Mc])
214 gl_UNICTYPE_H_REQUIRE_DEFAULTS
215 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Me])
216 gl_UNICTYPE_H_REQUIRE_DEFAULTS
217 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Mn])
218 gl_UNICTYPE_H_REQUIRE_DEFAULTS
219 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-N])
220 gl_UNICTYPE_H_REQUIRE_DEFAULTS
221 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Nd])
222 gl_UNICTYPE_H_REQUIRE_DEFAULTS
223 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Nl])
224 gl_UNICTYPE_H_REQUIRE_DEFAULTS
225 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-No])
226 gl_UNICTYPE_H_REQUIRE_DEFAULTS
227 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-P])
228 gl_UNICTYPE_H_REQUIRE_DEFAULTS
229 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Pc])
230 gl_UNICTYPE_H_REQUIRE_DEFAULTS
231 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Pd])
232 gl_UNICTYPE_H_REQUIRE_DEFAULTS
233 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Pe])
234 gl_UNICTYPE_H_REQUIRE_DEFAULTS
235 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Pf])
236 gl_UNICTYPE_H_REQUIRE_DEFAULTS
237 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Pi])
238 gl_UNICTYPE_H_REQUIRE_DEFAULTS
239 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Po])
240 gl_UNICTYPE_H_REQUIRE_DEFAULTS
241 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Ps])
242 gl_UNICTYPE_H_REQUIRE_DEFAULTS
243 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-S])
244 gl_UNICTYPE_H_REQUIRE_DEFAULTS
245 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Sc])
246 gl_UNICTYPE_H_REQUIRE_DEFAULTS
247 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Sk])
248 gl_UNICTYPE_H_REQUIRE_DEFAULTS
249 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Sm])
250 gl_UNICTYPE_H_REQUIRE_DEFAULTS
251 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-So])
252 gl_UNICTYPE_H_REQUIRE_DEFAULTS
253 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Z])
254 gl_UNICTYPE_H_REQUIRE_DEFAULTS
255 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Zl])
256 gl_UNICTYPE_H_REQUIRE_DEFAULTS
257 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Zp])
258 gl_UNICTYPE_H_REQUIRE_DEFAULTS
259 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/category-Zs])
260 gl_LIBUNISTRING_MODULE([1.4], [unictype/category-and])
261 gl_LIBUNISTRING_MODULE([1.4], [unictype/category-and-not])
262 gl_LIBUNISTRING_MODULE([1.4], [unictype/category-byname])
263 gl_LIBUNISTRING_MODULE([1.4], [unictype/category-longname])
264 gl_LIBUNISTRING_MODULE([1.4], [unictype/category-name])
265 dnl Since _UC_CATEGORY_NONE is not exported from an installed libunistring,
266 dnl don't use gl_LIBUNISTRING_MODULE here.
267 AC_REQUIRE([AC_C_INLINE])
268 gl_LIBUNISTRING_MODULE([1.4], [unictype/category-of])
269 gl_LIBUNISTRING_MODULE([1.4], [unictype/category-or])
270 AC_REQUIRE([AC_C_INLINE])
271 gl_LIBUNISTRING_MODULE([1.4], [unictype/category-test])
272 gl_LIBUNISTRING_MODULE([1.4], [unictype/combining-class])
273 AC_REQUIRE([AC_C_INLINE])
274 gl_UNICTYPE_H_REQUIRE_DEFAULTS
275 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/property-default-ignorable-code-point])
276 AC_REQUIRE([AC_C_INLINE])
277 gl_UNICTYPE_H_REQUIRE_DEFAULTS
278 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/property-join-control])
279 AC_REQUIRE([AC_C_INLINE])
280 gl_UNICTYPE_H_REQUIRE_DEFAULTS
281 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [unictype/property-not-a-character])
282 gl_LIBUNISTRING_LIBHEADER([1.2], [uninorm.h])
283 gl_UNINORM_H
284 gl_UNINORM_H_REQUIRE_DEFAULTS
285 AC_PROG_MKDIR_P
286 gl_LIBUNISTRING_MODULE([1.4], [uninorm/canonical-decomposition])
287 gl_LIBUNISTRING_MODULE([1.3], [uninorm/composition])
288 gl_LIBUNISTRING_MODULE([1.4], [uninorm/decomposition])
289 AC_REQUIRE([AC_C_INLINE])
290 gl_UNINORM_H_REQUIRE_DEFAULTS
291 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [uninorm/nfc])
292 gl_UNINORM_H_REQUIRE_DEFAULTS
293 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [uninorm/nfd])
294 gl_UNINORM_H_REQUIRE_DEFAULTS
295 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [uninorm/nfkc])
296 gl_UNINORM_H_REQUIRE_DEFAULTS
297 gl_LIBUNISTRING_MODULE_WITH_VARIABLE([1.4], [uninorm/nfkd])
298 gl_MODULE_INDICATOR_FOR_TESTS([uninorm/u16-normalize])
299 gl_LIBUNISTRING_MODULE([1.4], [uninorm/u16-normalize])
300 gl_MODULE_INDICATOR_FOR_TESTS([uninorm/u32-normalize])
301 gl_LIBUNISTRING_MODULE([1.4], [uninorm/u32-normalize])
302 gl_MODULE_INDICATOR_FOR_TESTS([uninorm/u8-normalize])
303 gl_LIBUNISTRING_MODULE([1.4], [uninorm/u8-normalize])
304 gl_LIBUNISTRING_LIBHEADER([1.2], [unistr.h])
305 AC_PROG_MKDIR_P
306 gl_LIBUNISTRING_MODULE([0.9], [unistr/u16-cpy])
307 gl_MODULE_INDICATOR([unistr/u16-mbtouc-unsafe])
308 gl_LIBUNISTRING_MODULE([0.9], [unistr/u16-mbtouc-unsafe])
309 gl_MODULE_INDICATOR([unistr/u16-mbtoucr])
310 gl_LIBUNISTRING_MODULE([0.9], [unistr/u16-mbtoucr])
311 gl_LIBUNISTRING_MODULE([0.9.3], [unistr/u16-to-u8])
312 gl_MODULE_INDICATOR([unistr/u16-uctomb])
313 gl_LIBUNISTRING_MODULE([0.9], [unistr/u16-uctomb])
314 gl_LIBUNISTRING_MODULE([0.9], [unistr/u32-cpy])
315 gl_MODULE_INDICATOR([unistr/u32-mbtouc-unsafe])
316 gl_LIBUNISTRING_MODULE([0.9], [unistr/u32-mbtouc-unsafe])
317 gl_LIBUNISTRING_MODULE([0.9], [unistr/u32-to-u8])
318 gl_MODULE_INDICATOR([unistr/u32-uctomb])
319 gl_LIBUNISTRING_MODULE([0.9], [unistr/u32-uctomb])
320 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-check])
321 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-cpy])
322 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
323 gl_LIBUNISTRING_MODULE([0.9.4], [unistr/u8-mbtouc-unsafe])
324 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
325 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
326 gl_LIBUNISTRING_MODULE([0.9.3], [unistr/u8-to-u16])
327 gl_LIBUNISTRING_MODULE([0.9.3], [unistr/u8-to-u32])
328 gl_MODULE_INDICATOR([unistr/u8-uctomb])
329 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
330 gl_LIBUNISTRING_LIBHEADER([0.9.11], [unitypes.h])
331 AC_PROG_MKDIR_P
332 gl_UNITYPES_H
333 # End of code from modules
334 m4_ifval(unistring_LIBSOURCES_LIST, [
335 m4_syscmd([test ! -d ]m4_defn([unistring_LIBSOURCES_DIR])[ ||
336 for gl_file in ]unistring_LIBSOURCES_LIST[ ; do
337 if test ! -r ]m4_defn([unistring_LIBSOURCES_DIR])[/$gl_file ; then
338 echo "missing file ]m4_defn([unistring_LIBSOURCES_DIR])[/$gl_file" >&2
339 exit 1
340 fi
341 done])dnl
342 m4_if(m4_sysval, [0], [],
343 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
344 ])
345 m4_popdef([GL_MODULE_INDICATOR_PREFIX])
346 m4_popdef([GL_MACRO_PREFIX])
347 m4_popdef([unistring_LIBSOURCES_DIR])
348 m4_popdef([unistring_LIBSOURCES_LIST])
349 m4_popdef([AC_LIBSOURCES])
350 m4_popdef([AC_REPLACE_FUNCS])
351 m4_popdef([AC_LIBOBJ])
352 AC_CONFIG_COMMANDS_PRE([
353 unistring_libobjs=
354 unistring_ltlibobjs=
355 unistring_libobjdeps=
356 unistring_libunistring_libobjs=
357 unistring_libunistring_ltlibobjs=
358 unistring_libunistring_libobjdeps=
359 if test -n "$unistring_LIBOBJS"; then
360 # Remove the extension.
361 changequote(,)dnl
362 sed_drop_objext='s/\.o$//;s/\.obj$//'
363 sed_dirname1='s,//*,/,g'
364 sed_dirname2='s,\(.\)/$,\1,'
365 sed_dirname3='s,[^/]*$,,'
366 sed_basename1='s,.*/,,'
367 changequote([, ])dnl
368 for i in `for i in $unistring_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
369 unistring_libobjs="$unistring_libobjs $i.$ac_objext"
370 unistring_ltlibobjs="$unistring_ltlibobjs $i.lo"
371 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3"`
372 i_base=`echo "$i" | sed -e "$sed_basename1"`
373 unistring_libunistring_libobjs="$unistring_libunistring_libobjs $i_dir""libunistring_a-$i_base.$ac_objext"
374 unistring_libunistring_ltlibobjs="$unistring_libunistring_ltlibobjs $i_dir""libunistring_la-$i_base.lo"
375 unistring_libobjdeps="$unistring_libobjdeps $i_dir\$(DEPDIR)/$i_base.Plo"
376 unistring_libunistring_libobjdeps="$unistring_libunistring_libobjdeps $i_dir\$(DEPDIR)/libunistring_la-$i_base.Plo"
377 done
378 fi
379 AC_SUBST([unistring_LIBOBJS], [$unistring_libobjs])
380 AC_SUBST([unistring_LTLIBOBJS], [$unistring_ltlibobjs])
381 AC_SUBST([unistring_LIBOBJDEPS], [$unistring_libobjdeps])
382 AC_SUBST([unistring_libunistring_LIBOBJS], [$unistring_libunistring_libobjs])
383 AC_SUBST([unistring_libunistring_LTLIBOBJS], [$unistring_libunistring_ltlibobjs])
384 AC_SUBST([unistring_libunistring_LIBOBJDEPS], [$unistring_libunistring_libobjdeps])
385 ])
386 gltests_libdeps=
387 gltests_ltlibdeps=
388 m4_pushdef([AC_LIBOBJ], m4_defn([unistringtests_LIBOBJ]))
389 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([unistringtests_REPLACE_FUNCS]))
390 m4_pushdef([AC_LIBSOURCES], m4_defn([unistringtests_LIBSOURCES]))
391 m4_pushdef([unistringtests_LIBSOURCES_LIST], [])
392 m4_pushdef([unistringtests_LIBSOURCES_DIR], [])
393 m4_pushdef([GL_MACRO_PREFIX], [unistringtests])
394 m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL_UNISTRING])
395 gl_COMMON
396 gl_source_base='tests'
397 gl_source_base_prefix=
398 changequote(,)dnl
399 unistringtests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
400 changequote([, ])dnl
401 AC_SUBST([unistringtests_WITNESS])
402 gl_module_indicator_condition=$unistringtests_WITNESS
403 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
404 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
405 m4_ifval(unistringtests_LIBSOURCES_LIST, [
406 m4_syscmd([test ! -d ]m4_defn([unistringtests_LIBSOURCES_DIR])[ ||
407 for gl_file in ]unistringtests_LIBSOURCES_LIST[ ; do
408 if test ! -r ]m4_defn([unistringtests_LIBSOURCES_DIR])[/$gl_file ; then
409 echo "missing file ]m4_defn([unistringtests_LIBSOURCES_DIR])[/$gl_file" >&2
410 exit 1
411 fi
412 done])dnl
413 m4_if(m4_sysval, [0], [],
414 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
415 ])
416 m4_popdef([GL_MODULE_INDICATOR_PREFIX])
417 m4_popdef([GL_MACRO_PREFIX])
418 m4_popdef([unistringtests_LIBSOURCES_DIR])
419 m4_popdef([unistringtests_LIBSOURCES_LIST])
420 m4_popdef([AC_LIBSOURCES])
421 m4_popdef([AC_REPLACE_FUNCS])
422 m4_popdef([AC_LIBOBJ])
423 AC_CONFIG_COMMANDS_PRE([
424 unistringtests_libobjs=
425 unistringtests_ltlibobjs=
426 unistringtests_libobjdeps=
427 unistringtests_libunistring_libobjs=
428 unistringtests_libunistring_ltlibobjs=
429 unistringtests_libunistring_libobjdeps=
430 if test -n "$unistringtests_LIBOBJS"; then
431 # Remove the extension.
432 changequote(,)dnl
433 sed_drop_objext='s/\.o$//;s/\.obj$//'
434 sed_dirname1='s,//*,/,g'
435 sed_dirname2='s,\(.\)/$,\1,'
436 sed_dirname3='s,[^/]*$,,'
437 sed_basename1='s,.*/,,'
438 changequote([, ])dnl
439 for i in `for i in $unistringtests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
440 unistringtests_libobjs="$unistringtests_libobjs $i.$ac_objext"
441 unistringtests_ltlibobjs="$unistringtests_ltlibobjs $i.lo"
442 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3"`
443 i_base=`echo "$i" | sed -e "$sed_basename1"`
444 unistringtests_libunistring_libobjs="$unistringtests_libunistring_libobjs $i_dir""libunistring_a-$i_base.$ac_objext"
445 unistringtests_libunistring_ltlibobjs="$unistringtests_libunistring_ltlibobjs $i_dir""libunistring_la-$i_base.lo"
446 unistringtests_libobjdeps="$unistringtests_libobjdeps $i_dir\$(DEPDIR)/$i_base.Plo"
447 unistringtests_libunistring_libobjdeps="$unistringtests_libunistring_libobjdeps $i_dir\$(DEPDIR)/libunistring_la-$i_base.Plo"
448 done
449 fi
450 AC_SUBST([unistringtests_LIBOBJS], [$unistringtests_libobjs])
451 AC_SUBST([unistringtests_LTLIBOBJS], [$unistringtests_ltlibobjs])
452 AC_SUBST([unistringtests_LIBOBJDEPS], [$unistringtests_libobjdeps])
453 AC_SUBST([unistringtests_libunistring_LIBOBJS], [$unistringtests_libunistring_libobjs])
454 AC_SUBST([unistringtests_libunistring_LTLIBOBJS], [$unistringtests_libunistring_ltlibobjs])
455 AC_SUBST([unistringtests_libunistring_LIBOBJDEPS], [$unistringtests_libunistring_libobjdeps])
456 ])
457 AC_REQUIRE([gl_CC_GNULIB_WARNINGS])
458 ])
459
460 # Like AC_LIBOBJ, except that the module name goes
461 # into unistring_LIBOBJS instead of into LIBOBJS.
462 AC_DEFUN([unistring_LIBOBJ], [
463 AS_LITERAL_IF([$1], [unistring_LIBSOURCES([$1.c])])dnl
464 unistring_LIBOBJS="$unistring_LIBOBJS $1.$ac_objext"
465 ])
466
467 # Like AC_REPLACE_FUNCS, except that the module name goes
468 # into unistring_LIBOBJS instead of into LIBOBJS.
469 AC_DEFUN([unistring_REPLACE_FUNCS], [
470 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
471 AC_CHECK_FUNCS([$1], , [unistring_LIBOBJ($ac_func)])
472 ])
473
474 # Like AC_LIBSOURCES, except the directory where the source file is
475 # expected is derived from the gnulib-tool parameterization,
476 # and alloca is special cased (for the alloca-opt module).
477 # We could also entirely rely on EXTRA_lib..._SOURCES.
478 AC_DEFUN([unistring_LIBSOURCES], [
479 m4_foreach([_gl_NAME], [$1], [
480 m4_if(_gl_NAME, [alloca.c], [], [
481 m4_define([unistring_LIBSOURCES_DIR], [lib/unistring])
482 m4_append([unistring_LIBSOURCES_LIST], _gl_NAME, [ ])
483 ])
484 ])
485 ])
486
487 # Like AC_LIBOBJ, except that the module name goes
488 # into unistringtests_LIBOBJS instead of into LIBOBJS.
489 AC_DEFUN([unistringtests_LIBOBJ], [
490 AS_LITERAL_IF([$1], [unistringtests_LIBSOURCES([$1.c])])dnl
491 unistringtests_LIBOBJS="$unistringtests_LIBOBJS $1.$ac_objext"
492 ])
493
494 # Like AC_REPLACE_FUNCS, except that the module name goes
495 # into unistringtests_LIBOBJS instead of into LIBOBJS.
496 AC_DEFUN([unistringtests_REPLACE_FUNCS], [
497 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
498 AC_CHECK_FUNCS([$1], , [unistringtests_LIBOBJ($ac_func)])
499 ])
500
501 # Like AC_LIBSOURCES, except the directory where the source file is
502 # expected is derived from the gnulib-tool parameterization,
503 # and alloca is special cased (for the alloca-opt module).
504 # We could also entirely rely on EXTRA_lib..._SOURCES.
505 AC_DEFUN([unistringtests_LIBSOURCES], [
506 m4_foreach([_gl_NAME], [$1], [
507 m4_if(_gl_NAME, [alloca.c], [], [
508 m4_define([unistringtests_LIBSOURCES_DIR], [tests])
509 m4_append([unistringtests_LIBSOURCES_LIST], _gl_NAME, [ ])
510 ])
511 ])
512 ])
513
514 # This macro records the list of files which have been installed by
515 # gnulib-tool and may be removed by future gnulib-tool invocations.
516 AC_DEFUN([unistring_FILE_LIST], [
517 lib/array-mergesort.h
518 lib/attribute.h
519 lib/limits.in.h
520 lib/stdint.in.h
521 lib/sys_types.in.h
522 lib/unictype.in.h
523 lib/unictype/bitmap.h
524 lib/unictype/categ_C.c
525 lib/unictype/categ_C.h
526 lib/unictype/categ_Cc.c
527 lib/unictype/categ_Cc.h
528 lib/unictype/categ_Cf.c
529 lib/unictype/categ_Cf.h
530 lib/unictype/categ_Cn.c
531 lib/unictype/categ_Cn.h
532 lib/unictype/categ_Co.c
533 lib/unictype/categ_Co.h
534 lib/unictype/categ_Cs.c
535 lib/unictype/categ_Cs.h
536 lib/unictype/categ_L.c
537 lib/unictype/categ_L.h
538 lib/unictype/categ_LC.c
539 lib/unictype/categ_LC.h
540 lib/unictype/categ_Ll.c
541 lib/unictype/categ_Ll.h
542 lib/unictype/categ_Lm.c
543 lib/unictype/categ_Lm.h
544 lib/unictype/categ_Lo.c
545 lib/unictype/categ_Lo.h
546 lib/unictype/categ_Lt.c
547 lib/unictype/categ_Lt.h
548 lib/unictype/categ_Lu.c
549 lib/unictype/categ_Lu.h
550 lib/unictype/categ_M.c
551 lib/unictype/categ_M.h
552 lib/unictype/categ_Mc.c
553 lib/unictype/categ_Mc.h
554 lib/unictype/categ_Me.c
555 lib/unictype/categ_Me.h
556 lib/unictype/categ_Mn.c
557 lib/unictype/categ_Mn.h
558 lib/unictype/categ_N.c
559 lib/unictype/categ_N.h
560 lib/unictype/categ_Nd.c
561 lib/unictype/categ_Nd.h
562 lib/unictype/categ_Nl.c
563 lib/unictype/categ_Nl.h
564 lib/unictype/categ_No.c
565 lib/unictype/categ_No.h
566 lib/unictype/categ_P.c
567 lib/unictype/categ_P.h
568 lib/unictype/categ_Pc.c
569 lib/unictype/categ_Pc.h
570 lib/unictype/categ_Pd.c
571 lib/unictype/categ_Pd.h
572 lib/unictype/categ_Pe.c
573 lib/unictype/categ_Pe.h
574 lib/unictype/categ_Pf.c
575 lib/unictype/categ_Pf.h
576 lib/unictype/categ_Pi.c
577 lib/unictype/categ_Pi.h
578 lib/unictype/categ_Po.c
579 lib/unictype/categ_Po.h
580 lib/unictype/categ_Ps.c
581 lib/unictype/categ_Ps.h
582 lib/unictype/categ_S.c
583 lib/unictype/categ_S.h
584 lib/unictype/categ_Sc.c
585 lib/unictype/categ_Sc.h
586 lib/unictype/categ_Sk.c
587 lib/unictype/categ_Sk.h
588 lib/unictype/categ_Sm.c
589 lib/unictype/categ_Sm.h
590 lib/unictype/categ_So.c
591 lib/unictype/categ_So.h
592 lib/unictype/categ_Z.c
593 lib/unictype/categ_Z.h
594 lib/unictype/categ_Zl.c
595 lib/unictype/categ_Zl.h
596 lib/unictype/categ_Zp.c
597 lib/unictype/categ_Zp.h
598 lib/unictype/categ_Zs.c
599 lib/unictype/categ_Zs.h
600 lib/unictype/categ_and.c
601 lib/unictype/categ_and_not.c
602 lib/unictype/categ_byname.c
603 lib/unictype/categ_byname.gperf
604 lib/unictype/categ_longname.c
605 lib/unictype/categ_name.c
606 lib/unictype/categ_none.c
607 lib/unictype/categ_of.c
608 lib/unictype/categ_of.h
609 lib/unictype/categ_or.c
610 lib/unictype/categ_test.c
611 lib/unictype/combiningclass.c
612 lib/unictype/combiningclass.h
613 lib/unictype/pr_default_ignorable_code_point.c
614 lib/unictype/pr_default_ignorable_code_point.h
615 lib/unictype/pr_join_control.c
616 lib/unictype/pr_join_control.h
617 lib/unictype/pr_not_a_character.c
618 lib/unictype/pr_not_a_character.h
619 lib/uninorm.in.h
620 lib/uninorm/canonical-decomposition.c
621 lib/uninorm/compat-decomposition.c
622 lib/uninorm/composition-table-bounds.h
623 lib/uninorm/composition-table.gperf
624 lib/uninorm/composition.c
625 lib/uninorm/decompose-internal.c
626 lib/uninorm/decompose-internal.h
627 lib/uninorm/decomposition-table.c
628 lib/uninorm/decomposition-table.h
629 lib/uninorm/decomposition-table1.h
630 lib/uninorm/decomposition-table2.h
631 lib/uninorm/decomposition.c
632 lib/uninorm/nfc.c
633 lib/uninorm/nfd.c
634 lib/uninorm/nfkc.c
635 lib/uninorm/nfkd.c
636 lib/uninorm/normalize-internal.h
637 lib/uninorm/u-normalize-internal.h
638 lib/uninorm/u16-normalize.c
639 lib/uninorm/u32-normalize.c
640 lib/uninorm/u8-normalize.c
641 lib/unistr.in.h
642 lib/unistr/u-cpy.h
643 lib/unistr/u16-cpy.c
644 lib/unistr/u16-mbtouc-unsafe-aux.c
645 lib/unistr/u16-mbtouc-unsafe.c
646 lib/unistr/u16-mbtoucr.c
647 lib/unistr/u16-to-u8.c
648 lib/unistr/u16-uctomb-aux.c
649 lib/unistr/u16-uctomb.c
650 lib/unistr/u32-cpy.c
651 lib/unistr/u32-mbtouc-unsafe.c
652 lib/unistr/u32-to-u8.c
653 lib/unistr/u32-uctomb.c
654 lib/unistr/u8-check.c
655 lib/unistr/u8-cpy.c
656 lib/unistr/u8-mbtouc-unsafe-aux.c
657 lib/unistr/u8-mbtouc-unsafe.c
658 lib/unistr/u8-mbtoucr.c
659 lib/unistr/u8-to-u16.c
660 lib/unistr/u8-to-u32.c
661 lib/unistr/u8-uctomb-aux.c
662 lib/unistr/u8-uctomb.c
663 lib/unitypes.in.h
664 m4/00gnulib.m4
665 m4/absolute-header.m4
666 m4/c-bool.m4
667 m4/gnulib-common.m4
668 m4/include_next.m4
669 m4/inline.m4
670 m4/libunistring-base.m4
671 m4/limits-h.m4
672 m4/multiarch.m4
673 m4/off64_t.m4
674 m4/off_t.m4
675 m4/pid_t.m4
676 m4/ssize_t.m4
677 m4/std-gnu11.m4
678 m4/stdint.m4
679 m4/sys_types_h.m4
680 m4/unictype_h.m4
681 m4/uninorm_h.m4
682 m4/unitypes_h.m4
683 m4/wint_t.m4
684 m4/zzgnulib.m4
685 ])