Package list teckit / 6891106
New upstream version 2.5.8+ds2 Daniel Glassey 2 years ago
63 changed file(s) with 13471 addition(s) and 5766 deletion(s). Raw diff Collapse all Expand all
00 INSTALL
11
2 Note: If you checked out teckit from svn, or for any other reason don't have
2 Note: If you checked out teckit from a VCS, or for any other reason don't have
33 a file called "configure", you will need to initialize the directory using
44 GNU autotools. Instructions for this are given further down.
55
6262
6363 The results will be in the teckit-linux subdirectory.
6464
65 To build just a source package that can be passed to an external package builder
66 (such as `pbuilder`) add `-S` to the command line. Other `debuild` options can
67 be given as well.
68
6569 BUILDING a MAC PACKAGE
6670
6771 Run the following script:
9195 ./autogen.sh
9296
9397 in the teckit source directory. This normally needs to be done only once, but
94 if you update the directory from svn you may need to run it again.
98 if you update your directory from the VCS you may need to run it again.
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1414 @SET_MAKE@
1515
1616 VPATH = @srcdir@
17 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
1828 am__make_running_with_option = \
1929 case $${target_option-} in \
2030 ?) ;; \
7989 host_triplet = @host@
8090 target_triplet = @target@
8191 subdir = .
82 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
83 $(top_srcdir)/configure $(am__configure_deps) \
84 $(srcdir)/config.h.in $(srcdir)/installed-top.pc.in \
85 $(srcdir)/teckit.pc.in $(srcdir)/uninstalled-top.pc.in AUTHORS \
86 COPYING ChangeLog INSTALL NEWS README compile config.guess \
87 config.sub depcomp install-sh missing ltmain.sh
8892 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
8993 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
9094 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
9397 $(top_srcdir)/zlib-1.2.3/zlib.ac $(top_srcdir)/configure.ac
9498 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
9599 $(ACLOCAL_M4)
100 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
101 $(am__configure_deps) $(am__DIST_COMMON)
96102 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
97103 configure.lineno config.status.lineno
98104 mkinstalldirs = $(install_sh) -d
185191 CTAGS = ctags
186192 CSCOPE = cscope
187193 DIST_SUBDIRS = $(SUBDIRS)
194 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
195 $(srcdir)/installed-top.pc.in $(srcdir)/teckit.pc.in \
196 $(srcdir)/uninstalled-top.pc.in AUTHORS COPYING ChangeLog \
197 INSTALL NEWS README compile config.guess config.sub install-sh \
198 ltmain.sh missing
188199 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
189200 distdir = $(PACKAGE)-$(VERSION)
190201 top_distdir = $(distdir)
271282 LIPO = @LIPO@
272283 LN_S = @LN_S@
273284 LTLIBOBJS = @LTLIBOBJS@
285 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
274286 MAINT = @MAINT@
275287 MAKEINFO = @MAKEINFO@
276288 MANIFEST_TOOL = @MANIFEST_TOOL@
346358 prefix = @prefix@
347359 program_transform_name = @program_transform_name@
348360 psdir = @psdir@
361 runstatedir = @runstatedir@
349362 sbindir = @sbindir@
350363 sharedstatedir = @sharedstatedir@
351364 srcdir = @srcdir@
383396 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
384397 $(am__cd) $(top_srcdir) && \
385398 $(AUTOMAKE) --foreign Makefile
386 .PRECIOUS: Makefile
387399 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
388400 @case '$?' in \
389401 *config.status*) \
639651 $(am__post_remove_distdir)
640652
641653 dist-tarZ: distdir
642 @echo WARNING: "Support for shar distribution archives is" \
643 "deprecated." >&2
654 @echo WARNING: "Support for distribution archives compressed with" \
655 "legacy program 'compress' is deprecated." >&2
644656 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
645657 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
646658 $(am__post_remove_distdir)
647659
648660 dist-shar: distdir
649 @echo WARNING: "Support for distribution archives compressed with" \
650 "legacy program 'compress' is deprecated." >&2
661 @echo WARNING: "Support for shar distribution archives is" \
662 "deprecated." >&2
651663 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
652664 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
653665 $(am__post_remove_distdir)
683695 esac
684696 chmod -R a-w $(distdir)
685697 chmod u+w $(distdir)
686 mkdir $(distdir)/_build $(distdir)/_inst
698 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
687699 chmod a-w $(distdir)
688700 test -d $(distdir)/_build || exit 0; \
689701 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
690702 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
691703 && am__cwd=`pwd` \
692 && $(am__cd) $(distdir)/_build \
693 && ../configure \
704 && $(am__cd) $(distdir)/_build/sub \
705 && ../../configure \
694706 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
695707 $(DISTCHECK_CONFIGURE_FLAGS) \
696 --srcdir=.. --prefix="$$dc_install_base" \
708 --srcdir=../.. --prefix="$$dc_install_base" \
697709 && $(MAKE) $(AM_MAKEFLAGS) \
698710 && $(MAKE) $(AM_MAKEFLAGS) dvi \
699711 && $(MAKE) $(AM_MAKEFLAGS) check \
873885 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
874886 uninstall-am uninstall-pkgconfigDATA
875887
888 .PRECIOUS: Makefile
889
876890
877891 # Tell versions [3.59,3.63) of GNU make to not export all variables.
878892 # Otherwise a system limit (for SysV at least) may be exceeded.
0 2018-06-18
1 Version 2.5.8
2 Updated Unicode character names and normalization data to 11.0.0
3
4 2017-06-22
5 Version 2.5.7
6 Updated Unicode character names and normalization data to 10.0.0
7 Added a 64-bit Windows build
8 Updated documentation
9
10 2016-04-19
11 Version 2.5.6
12 Added a diversion of /usr/bin/teckit_compile to avoid a conflict with the
13 texlive-binaries package on Linux
14
15 2016-04-11
16 Version 2.5.5
17 Split shared libraries into a separate Linux package
18 Made Linux packages multiarch-compatible
19 Fixed compiler warnings
20
21 2014-07-09
22 Version 2.5.4
23 Improved building and testing scripts
24 Enabled tests to be run on Windows without bash
25
026 2014-06-30
1 Version 2.5.4
227 Updated Unicode character names and normalization data to 7.0.0
328 Fixed data normalization bug
429 Updated tests
00 README
1 ======
12
23 This is TECkit, a library for encoding conversion, usable through standalone
34 tools or by linking with other software packages.
45
6 See the Documentation folder for information on the TECkit mapping language
7 and conversion tool usage notes.
58
6 See the docs folder for TECkit mapping language and conversion tool usage notes.
9 The TECkit libraries have been updated to support the Unicode 11.0.0 character
10 repertoire.
711
8
9 The teckit_compile tool now supports a new option, not described in the PDF
10 documentation:
11
12 -x generate XML representation rather than compiled table
13
14 This is primarily intended for use by the Reprise utility, and the XML format
15 produced is subject to change according to the needs of that tool.
12 Starting with TECkit version 2.5.7 there are several changes with the Windows
13 builds. First, a 64-bit build has been added to the already existing 32-bit
14 build. Second, the runtime files have changed. The file libwinpthread-1.dll
15 is no longer needed. The file libstdc++-6.dll needs to match the build
16 (32 or 64 bit) of the rest of the code. The 32-bit build needs
17 libgcc_s_sjlj-1.dll, while the 64-bit build needs libgcc_s_seh-1.dll.
+0
-539
SFconv/ConvertUTF.c less more
0 /*
1 * Copyright 2001-2004 Unicode, Inc.
2 *
3 * Disclaimer
4 *
5 * This source code is provided as is by Unicode, Inc. No claims are
6 * made as to fitness for any particular purpose. No warranties of any
7 * kind are expressed or implied. The recipient agrees to determine
8 * applicability of information provided. If this file has been
9 * purchased on magnetic or optical media from Unicode, Inc., the
10 * sole remedy for any claim will be exchange of defective media
11 * within 90 days of receipt.
12 *
13 * Limitations on Rights to Redistribute This Code
14 *
15 * Unicode, Inc. hereby grants the right to freely use the information
16 * supplied in this file in the creation of products supporting the
17 * Unicode Standard, and to make copies of this file in any form
18 * for internal or external distribution as long as this notice
19 * remains attached.
20 */
21
22 /* ---------------------------------------------------------------------
23
24 Conversions between UTF32, UTF-16, and UTF-8. Source code file.
25 Author: Mark E. Davis, 1994.
26 Rev History: Rick McGowan, fixes & updates May 2001.
27 Sept 2001: fixed const & error conditions per
28 mods suggested by S. Parent & A. Lillich.
29 June 2002: Tim Dodd added detection and handling of incomplete
30 source sequences, enhanced error detection, added casts
31 to eliminate compiler warnings.
32 July 2003: slight mods to back out aggressive FFFE detection.
33 Jan 2004: updated switches in from-UTF8 conversions.
34 Oct 2004: updated to use UNI_MAX_LEGAL_UTF32 in UTF-32 conversions.
35
36 See the header file "ConvertUTF.h" for complete documentation.
37
38 ------------------------------------------------------------------------ */
39
40
41 #include "ConvertUTF.h"
42 #ifdef CVTUTF_DEBUG
43 #include <stdio.h>
44 #endif
45
46 static const int halfShift = 10; /* used for shifting by 10 bits */
47
48 static const UTF32 halfBase = 0x0010000UL;
49 static const UTF32 halfMask = 0x3FFUL;
50
51 #define UNI_SUR_HIGH_START (UTF32)0xD800
52 #define UNI_SUR_HIGH_END (UTF32)0xDBFF
53 #define UNI_SUR_LOW_START (UTF32)0xDC00
54 #define UNI_SUR_LOW_END (UTF32)0xDFFF
55 #define false 0
56 #define true 1
57
58 /* --------------------------------------------------------------------- */
59
60 ConversionResult ConvertUTF32toUTF16 (
61 const UTF32** sourceStart, const UTF32* sourceEnd,
62 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) {
63 ConversionResult result = conversionOK;
64 const UTF32* source = *sourceStart;
65 UTF16* target = *targetStart;
66 while (source < sourceEnd) {
67 UTF32 ch;
68 if (target >= targetEnd) {
69 result = targetExhausted; break;
70 }
71 ch = *source++;
72 if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */
73 /* UTF-16 surrogate values are illegal in UTF-32; 0xffff or 0xfffe are both reserved values */
74 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) {
75 if (flags == strictConversion) {
76 --source; /* return to the illegal value itself */
77 result = sourceIllegal;
78 break;
79 } else {
80 *target++ = UNI_REPLACEMENT_CHAR;
81 }
82 } else {
83 *target++ = (UTF16)ch; /* normal case */
84 }
85 } else if (ch > UNI_MAX_LEGAL_UTF32) {
86 if (flags == strictConversion) {
87 result = sourceIllegal;
88 } else {
89 *target++ = UNI_REPLACEMENT_CHAR;
90 }
91 } else {
92 /* target is a character in range 0xFFFF - 0x10FFFF. */
93 if (target + 1 >= targetEnd) {
94 --source; /* Back up source pointer! */
95 result = targetExhausted; break;
96 }
97 ch -= halfBase;
98 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START);
99 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START);
100 }
101 }
102 *sourceStart = source;
103 *targetStart = target;
104 return result;
105 }
106
107 /* --------------------------------------------------------------------- */
108
109 ConversionResult ConvertUTF16toUTF32 (
110 const UTF16** sourceStart, const UTF16* sourceEnd,
111 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
112 ConversionResult result = conversionOK;
113 const UTF16* source = *sourceStart;
114 UTF32* target = *targetStart;
115 UTF32 ch, ch2;
116 while (source < sourceEnd) {
117 const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */
118 ch = *source++;
119 /* If we have a surrogate pair, convert to UTF32 first. */
120 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END) {
121 /* If the 16 bits following the high surrogate are in the source buffer... */
122 if (source < sourceEnd) {
123 ch2 = *source;
124 /* If it's a low surrogate, convert to UTF32. */
125 if (ch2 >= UNI_SUR_LOW_START && ch2 <= UNI_SUR_LOW_END) {
126 ch = ((ch - UNI_SUR_HIGH_START) << halfShift)
127 + (ch2 - UNI_SUR_LOW_START) + halfBase;
128 ++source;
129 } else if (flags == strictConversion) { /* it's an unpaired high surrogate */
130 --source; /* return to the illegal value itself */
131 result = sourceIllegal;
132 break;
133 }
134 } else { /* We don't have the 16 bits following the high surrogate. */
135 --source; /* return to the high surrogate */
136 result = sourceExhausted;
137 break;
138 }
139 } else if (flags == strictConversion) {
140 /* UTF-16 surrogate values are illegal in UTF-32 */
141 if (ch >= UNI_SUR_LOW_START && ch <= UNI_SUR_LOW_END) {
142 --source; /* return to the illegal value itself */
143 result = sourceIllegal;
144 break;
145 }
146 }
147 if (target >= targetEnd) {
148 source = oldSource; /* Back up source pointer! */
149 result = targetExhausted; break;
150 }
151 *target++ = ch;
152 }
153 *sourceStart = source;
154 *targetStart = target;
155 #ifdef CVTUTF_DEBUG
156 if (result == sourceIllegal) {
157 fprintf(stderr, "ConvertUTF16toUTF32 illegal seq 0x%04x,%04x\n", ch, ch2);
158 fflush(stderr);
159 }
160 #endif
161 return result;
162 }
163
164 /* --------------------------------------------------------------------- */
165
166 /*
167 * Index into the table below with the first byte of a UTF-8 sequence to
168 * get the number of trailing bytes that are supposed to follow it.
169 * Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
170 * left as-is for anyone who may want to do such conversion, which was
171 * allowed in earlier algorithms.
172 */
173 static const char trailingBytesForUTF8[256] = {
174 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
175 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
176 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
177 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
178 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
179 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
180 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
181 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
182 };
183
184 /*
185 * Magic values subtracted from a buffer value during UTF8 conversion.
186 * This table contains as many values as there might be trailing bytes
187 * in a UTF-8 sequence.
188 */
189 static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
190 0x03C82080UL, 0xFA082080UL, 0x82082080UL };
191
192 /*
193 * Once the bits are split out into bytes of UTF-8, this is a mask OR-ed
194 * into the first byte, depending on how many bytes follow. There are
195 * as many entries in this table as there are UTF-8 sequence types.
196 * (I.e., one byte sequence, two byte... etc.). Remember that sequencs
197 * for *legal* UTF-8 will be 4 or fewer bytes total.
198 */
199 static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
200
201 /* --------------------------------------------------------------------- */
202
203 /* The interface converts a whole buffer to avoid function-call overhead.
204 * Constants have been gathered. Loops & conditionals have been removed as
205 * much as possible for efficiency, in favor of drop-through switches.
206 * (See "Note A" at the bottom of the file for equivalent code.)
207 * If your compiler supports it, the "isLegalUTF8" call can be turned
208 * into an inline function.
209 */
210
211 /* --------------------------------------------------------------------- */
212
213 ConversionResult ConvertUTF16toUTF8 (
214 const UTF16** sourceStart, const UTF16* sourceEnd,
215 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) {
216 ConversionResult result = conversionOK;
217 const UTF16* source = *sourceStart;
218 UTF8* target = *targetStart;
219 while (source < sourceEnd) {
220 UTF32 ch;
221 unsigned short bytesToWrite = 0;
222 const UTF32 byteMask = 0xBF;
223 const UTF32 byteMark = 0x80;
224 const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */
225 ch = *source++;
226 /* If we have a surrogate pair, convert to UTF32 first. */
227 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END) {
228 /* If the 16 bits following the high surrogate are in the source buffer... */
229 if (source < sourceEnd) {
230 UTF32 ch2 = *source;
231 /* If it's a low surrogate, convert to UTF32. */
232 if (ch2 >= UNI_SUR_LOW_START && ch2 <= UNI_SUR_LOW_END) {
233 ch = ((ch - UNI_SUR_HIGH_START) << halfShift)
234 + (ch2 - UNI_SUR_LOW_START) + halfBase;
235 ++source;
236 } else if (flags == strictConversion) { /* it's an unpaired high surrogate */
237 --source; /* return to the illegal value itself */
238 result = sourceIllegal;
239 break;
240 }
241 } else { /* We don't have the 16 bits following the high surrogate. */
242 --source; /* return to the high surrogate */
243 result = sourceExhausted;
244 break;
245 }
246 } else if (flags == strictConversion) {
247 /* UTF-16 surrogate values are illegal in UTF-32 */
248 if (ch >= UNI_SUR_LOW_START && ch <= UNI_SUR_LOW_END) {
249 --source; /* return to the illegal value itself */
250 result = sourceIllegal;
251 break;
252 }
253 }
254 /* Figure out how many bytes the result will require */
255 if (ch < (UTF32)0x80) { bytesToWrite = 1;
256 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
257 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
258 } else if (ch < (UTF32)0x110000) { bytesToWrite = 4;
259 } else { bytesToWrite = 3;
260 ch = UNI_REPLACEMENT_CHAR;
261 }
262
263 target += bytesToWrite;
264 if (target > targetEnd) {
265 source = oldSource; /* Back up source pointer! */
266 target -= bytesToWrite; result = targetExhausted; break;
267 }
268 switch (bytesToWrite) { /* note: everything falls through. */
269 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
270 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
271 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
272 case 1: *--target = (UTF8)(ch | firstByteMark[bytesToWrite]);
273 }
274 target += bytesToWrite;
275 }
276 *sourceStart = source;
277 *targetStart = target;
278 return result;
279 }
280
281 /* --------------------------------------------------------------------- */
282
283 /*
284 * Utility routine to tell whether a sequence of bytes is legal UTF-8.
285 * This must be called with the length pre-determined by the first byte.
286 * If not calling this from ConvertUTF8to*, then the length can be set by:
287 * length = trailingBytesForUTF8[*source]+1;
288 * and the sequence is illegal right away if there aren't that many bytes
289 * available.
290 * If presented with a length > 4, this returns false. The Unicode
291 * definition of UTF-8 goes up to 4-byte sequences.
292 */
293
294 static Boolean isLegalUTF8(const UTF8 *source, int length) {
295 UTF8 a;
296 const UTF8 *srcptr = source+length;
297 switch (length) {
298 default: return false;
299 /* Everything else falls through when "true"... */
300 case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return false;
301 case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return false;
302 case 2: if ((a = (*--srcptr)) > 0xBF) return false;
303
304 switch (*source) {
305 /* no fall-through in this inner switch */
306 case 0xE0: if (a < 0xA0) return false; break;
307 case 0xED: if (a > 0x9F) return false; break;
308 case 0xF0: if (a < 0x90) return false; break;
309 case 0xF4: if (a > 0x8F) return false; break;
310 default: if (a < 0x80) return false;
311 }
312
313 case 1: if (*source >= 0x80 && *source < 0xC2) return false;
314 }
315 if (*source > 0xF4) return false;
316 return true;
317 }
318
319 /* --------------------------------------------------------------------- */
320
321 /*
322 * Exported function to return whether a UTF-8 sequence is legal or not.
323 * This is not used here; it's just exported.
324 */
325 Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd) {
326 int length = trailingBytesForUTF8[*source]+1;
327 if (source+length > sourceEnd) {
328 return false;
329 }
330 return isLegalUTF8(source, length);
331 }
332
333 /* --------------------------------------------------------------------- */
334
335 ConversionResult ConvertUTF8toUTF16 (
336 const UTF8** sourceStart, const UTF8* sourceEnd,
337 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) {
338 ConversionResult result = conversionOK;
339 const UTF8* source = *sourceStart;
340 UTF16* target = *targetStart;
341 while (source < sourceEnd) {
342 UTF32 ch = 0;
343 unsigned short extraBytesToRead = trailingBytesForUTF8[*source];
344 if (source + extraBytesToRead >= sourceEnd) {
345 result = sourceExhausted; break;
346 }
347 /* Do this check whether lenient or strict */
348 if (! isLegalUTF8(source, extraBytesToRead+1)) {
349 result = sourceIllegal;
350 break;
351 }
352 /*
353 * The cases all fall through. See "Note A" below.
354 */
355 switch (extraBytesToRead) {
356 case 5: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
357 case 4: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
358 case 3: ch += *source++; ch <<= 6;
359 case 2: ch += *source++; ch <<= 6;
360 case 1: ch += *source++; ch <<= 6;
361 case 0: ch += *source++;
362 }
363 ch -= offsetsFromUTF8[extraBytesToRead];
364
365 if (target >= targetEnd) {
366 source -= (extraBytesToRead+1); /* Back up source pointer! */
367 result = targetExhausted; break;
368 }
369 if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */
370 /* UTF-16 surrogate values are illegal in UTF-32 */
371 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) {
372 if (flags == strictConversion) {
373 source -= (extraBytesToRead+1); /* return to the illegal value itself */
374 result = sourceIllegal;
375 break;
376 } else {
377 *target++ = UNI_REPLACEMENT_CHAR;
378 }
379 } else {
380 *target++ = (UTF16)ch; /* normal case */
381 }
382 } else if (ch > UNI_MAX_UTF16) {
383 if (flags == strictConversion) {
384 result = sourceIllegal;
385 source -= (extraBytesToRead+1); /* return to the start */
386 break; /* Bail out; shouldn't continue */
387 } else {
388 *target++ = UNI_REPLACEMENT_CHAR;
389 }
390 } else {
391 /* target is a character in range 0xFFFF - 0x10FFFF. */
392 if (target + 1 >= targetEnd) {
393 source -= (extraBytesToRead+1); /* Back up source pointer! */
394 result = targetExhausted; break;
395 }
396 ch -= halfBase;
397 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START);
398 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START);
399 }
400 }
401 *sourceStart = source;
402 *targetStart = target;
403 return result;
404 }
405
406 /* --------------------------------------------------------------------- */
407
408 ConversionResult ConvertUTF32toUTF8 (
409 const UTF32** sourceStart, const UTF32* sourceEnd,
410 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags) {
411 ConversionResult result = conversionOK;
412 const UTF32* source = *sourceStart;
413 UTF8* target = *targetStart;
414 while (source < sourceEnd) {
415 UTF32 ch;
416 unsigned short bytesToWrite = 0;
417 const UTF32 byteMask = 0xBF;
418 const UTF32 byteMark = 0x80;
419 ch = *source++;
420 if (flags == strictConversion ) {
421 /* UTF-16 surrogate values are illegal in UTF-32 */
422 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) {
423 --source; /* return to the illegal value itself */
424 result = sourceIllegal;
425 break;
426 }
427 }
428 /*
429 * Figure out how many bytes the result will require. Turn any
430 * illegally large UTF32 things (> Plane 17) into replacement chars.
431 */
432 if (ch < (UTF32)0x80) { bytesToWrite = 1;
433 } else if (ch < (UTF32)0x800) { bytesToWrite = 2;
434 } else if (ch < (UTF32)0x10000) { bytesToWrite = 3;
435 } else if (ch <= UNI_MAX_LEGAL_UTF32) { bytesToWrite = 4;
436 } else { bytesToWrite = 3;
437 ch = UNI_REPLACEMENT_CHAR;
438 result = sourceIllegal;
439 }
440
441 target += bytesToWrite;
442 if (target > targetEnd) {
443 --source; /* Back up source pointer! */
444 target -= bytesToWrite; result = targetExhausted; break;
445 }
446 switch (bytesToWrite) { /* note: everything falls through. */
447 case 4: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
448 case 3: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
449 case 2: *--target = (UTF8)((ch | byteMark) & byteMask); ch >>= 6;
450 case 1: *--target = (UTF8) (ch | firstByteMark[bytesToWrite]);
451 }
452 target += bytesToWrite;
453 }
454 *sourceStart = source;
455 *targetStart = target;
456 return result;
457 }
458
459 /* --------------------------------------------------------------------- */
460
461 ConversionResult ConvertUTF8toUTF32 (
462 const UTF8** sourceStart, const UTF8* sourceEnd,
463 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags) {
464 ConversionResult result = conversionOK;
465 const UTF8* source = *sourceStart;
466 UTF32* target = *targetStart;
467 while (source < sourceEnd) {
468 UTF32 ch = 0;
469 unsigned short extraBytesToRead = trailingBytesForUTF8[*source];
470 if (source + extraBytesToRead >= sourceEnd) {
471 result = sourceExhausted; break;
472 }
473 /* Do this check whether lenient or strict */
474 if (! isLegalUTF8(source, extraBytesToRead+1)) {
475 result = sourceIllegal;
476 break;
477 }
478 /*
479 * The cases all fall through. See "Note A" below.
480 */
481 switch (extraBytesToRead) {
482 case 5: ch += *source++; ch <<= 6;
483 case 4: ch += *source++; ch <<= 6;
484 case 3: ch += *source++; ch <<= 6;
485 case 2: ch += *source++; ch <<= 6;
486 case 1: ch += *source++; ch <<= 6;
487 case 0: ch += *source++;
488 }
489 ch -= offsetsFromUTF8[extraBytesToRead];
490
491 if (target >= targetEnd) {
492 source -= (extraBytesToRead+1); /* Back up the source pointer! */
493 result = targetExhausted; break;
494 }
495 if (ch <= UNI_MAX_LEGAL_UTF32) {
496 /*
497 * UTF-16 surrogate values are illegal in UTF-32, and anything
498 * over Plane 17 (> 0x10FFFF) is illegal.
499 */
500 if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) {
501 if (flags == strictConversion) {
502 source -= (extraBytesToRead+1); /* return to the illegal value itself */
503 result = sourceIllegal;
504 break;
505 } else {
506 *target++ = UNI_REPLACEMENT_CHAR;
507 }
508 } else {
509 *target++ = ch;
510 }
511 } else { /* i.e., ch > UNI_MAX_LEGAL_UTF32 */
512 result = sourceIllegal;
513 *target++ = UNI_REPLACEMENT_CHAR;
514 }
515 }
516 *sourceStart = source;
517 *targetStart = target;
518 return result;
519 }
520
521 /* ---------------------------------------------------------------------
522
523 Note A.
524 The fall-through switches in UTF-8 reading code save a
525 temp variable, some decrements & conditionals. The switches
526 are equivalent to the following loop:
527 {
528 int tmpBytesToRead = extraBytesToRead+1;
529 do {
530 ch += *source++;
531 --tmpBytesToRead;
532 if (tmpBytesToRead) ch <<= 6;
533 } while (tmpBytesToRead > 0);
534 }
535 In UTF-8 writing code, the switches on "bytesToWrite" are
536 similarly unrolled loops.
537
538 --------------------------------------------------------------------- */
+0
-149
SFconv/ConvertUTF.h less more
0 /*
1 * Copyright 2001-2004 Unicode, Inc.
2 *
3 * Disclaimer
4 *
5 * This source code is provided as is by Unicode, Inc. No claims are
6 * made as to fitness for any particular purpose. No warranties of any
7 * kind are expressed or implied. The recipient agrees to determine
8 * applicability of information provided. If this file has been
9 * purchased on magnetic or optical media from Unicode, Inc., the
10 * sole remedy for any claim will be exchange of defective media
11 * within 90 days of receipt.
12 *
13 * Limitations on Rights to Redistribute This Code
14 *
15 * Unicode, Inc. hereby grants the right to freely use the information
16 * supplied in this file in the creation of products supporting the
17 * Unicode Standard, and to make copies of this file in any form
18 * for internal or external distribution as long as this notice
19 * remains attached.
20 */
21
22 /* ---------------------------------------------------------------------
23
24 Conversions between UTF32, UTF-16, and UTF-8. Header file.
25
26 Several funtions are included here, forming a complete set of
27 conversions between the three formats. UTF-7 is not included
28 here, but is handled in a separate source file.
29
30 Each of these routines takes pointers to input buffers and output
31 buffers. The input buffers are const.
32
33 Each routine converts the text between *sourceStart and sourceEnd,
34 putting the result into the buffer between *targetStart and
35 targetEnd. Note: the end pointers are *after* the last item: e.g.
36 *(sourceEnd - 1) is the last item.
37
38 The return result indicates whether the conversion was successful,
39 and if not, whether the problem was in the source or target buffers.
40 (Only the first encountered problem is indicated.)
41
42 After the conversion, *sourceStart and *targetStart are both
43 updated to point to the end of last text successfully converted in
44 the respective buffers.
45
46 Input parameters:
47 sourceStart - pointer to a pointer to the source buffer.
48 The contents of this are modified on return so that
49 it points at the next thing to be converted.
50 targetStart - similarly, pointer to pointer to the target buffer.
51 sourceEnd, targetEnd - respectively pointers to the ends of the
52 two buffers, for overflow checking only.
53
54 These conversion functions take a ConversionFlags argument. When this
55 flag is set to strict, both irregular sequences and isolated surrogates
56 will cause an error. When the flag is set to lenient, both irregular
57 sequences and isolated surrogates are converted.
58
59 Whether the flag is strict or lenient, all illegal sequences will cause
60 an error return. This includes sequences such as: <F4 90 80 80>, <C0 80>,
61 or <A0> in UTF-8, and values above 0x10FFFF in UTF-32. Conformant code
62 must check for illegal sequences.
63
64 When the flag is set to lenient, characters over 0x10FFFF are converted
65 to the replacement character; otherwise (when the flag is set to strict)
66 they constitute an error.
67
68 Output parameters:
69 The value "sourceIllegal" is returned from some routines if the input
70 sequence is malformed. When "sourceIllegal" is returned, the source
71 value will point to the illegal value that caused the problem. E.g.,
72 in UTF-8 when a sequence is malformed, it points to the start of the
73 malformed sequence.
74
75 Author: Mark E. Davis, 1994.
76 Rev History: Rick McGowan, fixes & updates May 2001.
77 Fixes & updates, Sept 2001.
78
79 ------------------------------------------------------------------------ */
80
81 /* ---------------------------------------------------------------------
82 The following 4 definitions are compiler-specific.
83 The C standard does not guarantee that wchar_t has at least
84 16 bits, so wchar_t is no less portable than unsigned short!
85 All should be unsigned values to avoid sign extension during
86 bit mask & shift operations.
87 ------------------------------------------------------------------------ */
88
89 typedef unsigned long UTF32; /* at least 32 bits */
90 typedef unsigned short UTF16; /* at least 16 bits */
91 typedef unsigned char UTF8; /* typically 8 bits */
92 typedef unsigned char Boolean; /* 0 or 1 */
93
94 /* Some fundamental constants */
95 #define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD
96 #define UNI_MAX_BMP (UTF32)0x0000FFFF
97 #define UNI_MAX_UTF16 (UTF32)0x0010FFFF
98 #define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF
99 #define UNI_MAX_LEGAL_UTF32 (UTF32)0x0010FFFF
100
101 typedef enum {
102 conversionOK, /* conversion successful */
103 sourceExhausted, /* partial character in source, but hit end */
104 targetExhausted, /* insuff. room in target for conversion */
105 sourceIllegal /* source sequence is illegal/malformed */
106 } ConversionResult;
107
108 typedef enum {
109 strictConversion = 0,
110 lenientConversion
111 } ConversionFlags;
112
113 /* This is for C++ and does no harm in C */
114 #ifdef __cplusplus
115 extern "C" {
116 #endif
117
118 ConversionResult ConvertUTF8toUTF16 (
119 const UTF8** sourceStart, const UTF8* sourceEnd,
120 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
121
122 ConversionResult ConvertUTF16toUTF8 (
123 const UTF16** sourceStart, const UTF16* sourceEnd,
124 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
125
126 ConversionResult ConvertUTF8toUTF32 (
127 const UTF8** sourceStart, const UTF8* sourceEnd,
128 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags);
129
130 ConversionResult ConvertUTF32toUTF8 (
131 const UTF32** sourceStart, const UTF32* sourceEnd,
132 UTF8** targetStart, UTF8* targetEnd, ConversionFlags flags);
133
134 ConversionResult ConvertUTF16toUTF32 (
135 const UTF16** sourceStart, const UTF16* sourceEnd,
136 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags);
137
138 ConversionResult ConvertUTF32toUTF16 (
139 const UTF32** sourceStart, const UTF32* sourceEnd,
140 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
141
142 Boolean isLegalUTF8Sequence(const UTF8 *source, const UTF8 *sourceEnd);
143
144 #ifdef __cplusplus
145 }
146 #endif
147
148 /* --------------------------------------------------------------------- */
99 using namespace std;
1010
1111 #include "TECkit_Engine.h"
12 #include "ConvertUTF.h"
12 #include "UtfCodec.h"
1313 #include "sfReader.h"
1414
1515 #ifndef platformUTF16
9494 static ustring
9595 Utf8ToString(const char* s)
9696 {
97 int len = strlen(s);
98 UniChar* buf = new UniChar[len];
99 const Byte* sourceStart = (Byte*)s;
100 UniChar* targetStart = buf;
101 int status = ConvertUTF8toUTF16(&sourceStart, sourceStart + len, &targetStart, targetStart + len, lenientConversion);
102 if (status != conversionOK) {
103 fprintf(stderr, "error %d converting UTF-8 to UTF-16\n", status);
104 exit(1);
105 }
106 ustring ustr(buf, targetStart - buf);
97 int len = strlen(s);
98 utf16::codeunit_t * const buf = new utf16::codeunit_t[len];
99
100 utf16::iterator out = buf;
101 utf8::const_iterator in = s,
102 end = s + len;
103 while (in != end && !(in.error() || out.error()))
104 *out++ = *in++;
105
106 if (in.error() || out.error()) {
107 fprintf(stderr, "error %d converting UTF-8 to UTF-16\n", 4);
108 exit(1);
109 }
110
111 ustring ustr(buf, out - buf);
107112 delete[] buf;
108113 return ustr;
109114 }
312317 fprintf(stderr, "unable to read mapping file for %s (file %s)\n", mappingName.c_str(), mapFileName.c_str());
313318 exit(1);
314319 }
315 fread(buf, 1, fileSize, mapFile);
320 fileSize = fread(buf, 1, fileSize, mapFile);
316321 fclose(mapFile);
317322
318323 TECkit_Converter converter;
628633 // *** Unicode to Byte conversion
629634 Byte bom[3];
630635 long pos = ftell(inFile);
631 if (fread(bom, 3, 1, inFile)) {
636 if (fread(bom, 3, 1, inFile) > 0) {
632637 if (bom[0] == 0xef && bom[1] == 0xbb && bom[2] == 0xbf) {
633638 inForm = kForm_UTF8;
634639 }
0 /* GRAPHITE2 LICENSING
1
2 Copyright 2010, SIL International
3 All rights reserved.
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published
7 by the Free Software Foundation; either version 2.1 of License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should also have received a copy of the GNU Lesser General Public
16 License along with this library in the file named "LICENSE".
17 If not, write to the Free Software Foundation, 51 Franklin Street,
18 Suite 500, Boston, MA 02110-1335, USA or visit their web page on the
19 internet at http://www.fsf.org/licenses/lgpl.html.
20
21 Alternatively, the contents of this file may be used under the terms of the
22 Mozilla Public License (http://mozilla.org/MPL) or the GNU General Public
23 License, as published by the Free Software Foundation, either version 2
24 of the License or (at your option) any later version.
25 */
26 #include "UtfCodec.h"
27
28 const int8_t _utf_codec<8>::sz_lut[16] =
29 {
30 1,1,1,1,1,1,1,1, // 1 byte
31 0,0,0,0, // trailing byte
32 2,2, // 2 bytes
33 3, // 3 bytes
34 4 // 4 bytes
35 };
36
37 const uint8_t _utf_codec<8>::mask_lut[5] = {0x7f, 0xff, 0x3f, 0x1f, 0x0f};
0 /* GRAPHITE2 LICENSING
1
2 Copyright 2011, SIL International
3 All rights reserved.
4
5 This library is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published
7 by the Free Software Foundation; either version 2.1 of License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should also have received a copy of the GNU Lesser General Public
16 License along with this library in the file named "LICENSE".
17 If not, write to the Free Software Foundation, 51 Franklin Street,
18 Suite 500, Boston, MA 02110-1335, USA or visit their web page on the
19 internet at http://www.fsf.org/licenses/lgpl.html.
20
21 Alternatively, the contents of this file may be used under the terms of the
22 Mozilla Public License (http://mozilla.org/MPL) or the GNU General Public
23 License, as published by the Free Software Foundation, either version 2
24 of the License or (at your option) any later version.
25 */
26 #pragma once
27
28 #include <cstddef>
29 #include <cstdlib>
30 #include <cstdint>
31
32 using std::int8_t;
33 using std::uint8_t;
34 using std::ptrdiff_t;
35
36 typedef uint32_t uchar_t;
37
38 template <int N>
39 struct _utf_codec
40 {
41 typedef uchar_t codeunit_t;
42
43 static void put(codeunit_t * cp, const uchar_t , int8_t & len) throw();
44 static uchar_t get(const codeunit_t * cp, int8_t & len) throw();
45 static bool validate(const codeunit_t * s, const codeunit_t * e) throw();
46 };
47
48
49 template <>
50 struct _utf_codec<32>
51 {
52 private:
53 static const uchar_t limit = 0x110000;
54 public:
55 typedef uint32_t codeunit_t;
56
57 inline
58 static void put(codeunit_t * cp, const uchar_t usv, int8_t & l) throw()
59 {
60 *cp = usv; l = 1;
61 }
62
63 inline
64 static uchar_t get(const codeunit_t * cp, int8_t & l) throw()
65 {
66 if (cp[0] < limit) { l = 1; return cp[0]; }
67 else { l = -1; return 0xFFFD; }
68 }
69
70 inline
71 static bool validate(codeunit_t * s, codeunit_t * e) throw()
72 {
73 return e > s;
74 }
75 };
76
77
78 template <>
79 struct _utf_codec<16>
80 {
81 private:
82 static const int32_t lead_offset = 0xD800 - (0x10000 >> 10);
83 static const int32_t surrogate_offset = 0x10000 - (0xD800 << 10) - 0xDC00;
84 public:
85 typedef uint16_t codeunit_t;
86
87 inline
88 static void put(codeunit_t * cp, const uchar_t usv, int8_t & l) throw()
89 {
90 if (usv < 0x10000) { l = 1; cp[0] = codeunit_t(usv); }
91 else
92 {
93 cp[0] = codeunit_t(lead_offset + (usv >> 10));
94 cp[1] = codeunit_t(0xDC00 + (usv & 0x3FF));
95 l = 2;
96 }
97 }
98
99 inline
100 static uchar_t get(const codeunit_t * cp, int8_t & l) throw()
101 {
102 const uint32_t uh = cp[0];
103 l = 1;
104
105 if (uh < 0xD800|| uh > 0xDFFF) { return uh; }
106 const uint32_t ul = cp[1];
107 if (uh > 0xDBFF || ul < 0xDC00 || ul > 0xDFFF) { l = -1; return 0xFFFD; }
108 ++l;
109 return (uh<<10) + ul + surrogate_offset;
110 }
111
112 inline
113 static bool validate(codeunit_t * s, codeunit_t * e) throw()
114 {
115 const ptrdiff_t n = e-s;
116 if (n <= 0) return n == 0;
117 const uint32_t u = *(s+(n-1)); // Get the last codepoint
118 return (u < 0xD800 || u > 0xDBFF);
119 }
120 };
121
122
123 template <>
124 struct _utf_codec<8>
125 {
126 private:
127 static const uchar_t limit = 0x110000;
128 static const int8_t sz_lut[16];
129 static const uint8_t mask_lut[5];
130
131
132 public:
133 typedef uint8_t codeunit_t;
134
135 inline
136 static void put(codeunit_t * cp, const uchar_t usv, int8_t & l) throw()
137 {
138 if (usv < 0x80) {l = 1; cp[0] = usv; return; }
139 if (usv < 0x0800) {l = 2; cp[0] = 0xC0 + (usv >> 6); cp[1] = 0x80 + (usv & 0x3F); return; }
140 if (usv < 0x10000) {l = 3; cp[0] = 0xE0 + (usv >> 12); cp[1] = 0x80 + ((usv >> 6) & 0x3F); cp[2] = 0x80 + (usv & 0x3F); return; }
141 else {l = 4; cp[0] = 0xF0 + (usv >> 18); cp[1] = 0x80 + ((usv >> 12) & 0x3F); cp[2] = 0x80 + ((usv >> 6) & 0x3F); cp[3] = 0x80 + (usv & 0x3F); return; }
142 }
143
144 inline
145 static uchar_t get(const codeunit_t * cp, int8_t & l) throw()
146 {
147 const int8_t seq_sz = sz_lut[*cp >> 4];
148 uchar_t u = *cp & mask_lut[seq_sz];
149 l = 1;
150 bool toolong = false;
151
152 switch(seq_sz) {
153 case 4: u <<= 6; u |= *++cp & 0x3F; if (*cp >> 6 != 2) break; ++l; toolong = (u < 0x10);
154 // no break
155 case 3: u <<= 6; u |= *++cp & 0x3F; if (*cp >> 6 != 2) break; ++l; toolong |= (u < 0x20);
156 // no break
157 case 2: u <<= 6; u |= *++cp & 0x3F; if (*cp >> 6 != 2) break; ++l; toolong |= (u < 0x80);
158 // no break
159 case 1: break;
160 case 0: l = -1; return 0xFFFD;
161 }
162
163 if (l != seq_sz || toolong || u >= limit)
164 {
165 l = -l;
166 return 0xFFFD;
167 }
168 return u;
169 }
170
171 inline
172 static bool validate(codeunit_t * s, codeunit_t * e) throw()
173 {
174 const ptrdiff_t n = e-s;
175 if (n <= 0) return n == 0;
176 s += (n-1);
177 if (*s < 0x80) return true;
178 if (*s >= 0xC0) return false;
179 if (n == 1) return true;
180 if (*--s < 0x80) return true;
181 if (*s >= 0xe0) return false;
182 if (n == 2 || *s >= 0xC0) return true;
183 if (*--s < 0x80) return true;
184 if (*s >= 0xF0) return false;
185 return true;
186 }
187
188 };
189
190
191 template <typename C>
192 class _utf_iterator
193 {
194 typedef _utf_codec<sizeof(C)*8> codec;
195
196 C * cp;
197 mutable int8_t sl;
198
199 public:
200 typedef C codeunit_type;
201 typedef uchar_t value_type;
202 typedef uchar_t * pointer;
203
204 class reference
205 {
206 const _utf_iterator & _i;
207
208 reference(const _utf_iterator & i): _i(i) {}
209 public:
210 operator value_type () const throw () { return codec::get(_i.cp, _i.sl); }
211 reference & operator = (const value_type usv) throw() { codec::put(_i.cp, usv, _i.sl); return *this; }
212
213 friend class _utf_iterator;
214 };
215
216
217 _utf_iterator(const void * us=0) : cp(reinterpret_cast<C *>(const_cast<void *>(us))), sl(1) { }
218
219 _utf_iterator & operator ++ () { cp += abs(sl); return *this; }
220 _utf_iterator operator ++ (int) { _utf_iterator tmp(*this); operator++(); return tmp; }
221
222 bool operator == (const _utf_iterator & rhs) const throw() { return cp >= rhs.cp; }
223 bool operator != (const _utf_iterator & rhs) const throw() { return !operator==(rhs); }
224
225 reference operator * () const throw() { return *this; }
226 pointer operator ->() const throw() { return &operator *(); }
227
228 operator codeunit_type * () const throw() { return cp; }
229
230 bool error() const throw() { return sl < 1; }
231 };
232
233 template <typename C>
234 struct utf
235 {
236 typedef typename _utf_codec<sizeof(C)*8>::codeunit_t codeunit_t;
237
238 typedef _utf_iterator<C> iterator;
239 typedef _utf_iterator<const C> const_iterator;
240
241 inline
242 static bool validate(codeunit_t * s, codeunit_t * e) throw() {
243 return _utf_codec<sizeof(C)*8>::validate(s,e);
244 }
245 };
246
247
248 typedef utf<uint32_t> utf32;
249 typedef utf<uint16_t> utf16;
250 typedef utf<uint8_t> utf8;
251
88 #define INLINE_START 2
99 #define INLINE_END 3
1010 #define INLINE_MARKER 4
11 #define UNI_REPLACEMENT_CHAR (uint32_t)0x0000FFFD
12 #define UNI_MAX_BMP (uint32_t)0x0000FFFF
13 #define UNI_MAX_UTF16 (uint32_t)0x0010FFFF
1114
1215 template<class C>
1316 class sfReader
0 # generated automatically by aclocal 1.14.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
0 # generated automatically by aclocal 1.15 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
22 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
22 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
2323 #
2424 # This file is free software; the Free Software Foundation
2525 # gives unlimited permission to copy and/or distribute it,
3131 # generated from the m4 files accompanying Automake X.Y.
3232 # (This private macro should not be called outside this file.)
3333 AC_DEFUN([AM_AUTOMAKE_VERSION],
34 [am__api_version='1.14'
34 [am__api_version='1.15'
3535 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3636 dnl require some minimum version. Point them to the right macro.
37 m4_if([$1], [1.14.1], [],
37 m4_if([$1], [1.15], [],
3838 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3939 ])
4040
5050 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5151 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
53 [AM_AUTOMAKE_VERSION([1.14.1])dnl
53 [AM_AUTOMAKE_VERSION([1.15])dnl
5454 m4_ifndef([AC_AUTOCONF_VERSION],
5555 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5656 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5757
5858 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
5959
60 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
60 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
6161 #
6262 # This file is free software; the Free Software Foundation
6363 # gives unlimited permission to copy and/or distribute it,
109109
110110 # AM_CONDITIONAL -*- Autoconf -*-
111111
112 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
112 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
113113 #
114114 # This file is free software; the Free Software Foundation
115115 # gives unlimited permission to copy and/or distribute it,
140140 Usually this means the macro was only invoked conditionally.]])
141141 fi])])
142142
143 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
143 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
144144 #
145145 # This file is free software; the Free Software Foundation
146146 # gives unlimited permission to copy and/or distribute it,
331331
332332 # Generate code to set up dependency tracking. -*- Autoconf -*-
333333
334 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
334 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
335335 #
336336 # This file is free software; the Free Software Foundation
337337 # gives unlimited permission to copy and/or distribute it,
407407
408408 # Do all the work for Automake. -*- Autoconf -*-
409409
410 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
410 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
411411 #
412412 # This file is free software; the Free Software Foundation
413413 # gives unlimited permission to copy and/or distribute it,
497497 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
498498 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
499499 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
500 # We need awk for the "check" target. The system "awk" is bad on
501 # some platforms.
500 # We need awk for the "check" target (and possibly the TAP driver). The
501 # system "awk" is bad on some platforms.
502502 AC_REQUIRE([AC_PROG_AWK])dnl
503503 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
504504 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
572572 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
573573 fi
574574 fi
575 dnl The trailing newline in this macro's definition is deliberate, for
576 dnl backward compatibility and to allow trailing 'dnl'-style comments
577 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
575578 ])
576579
577580 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
601604 done
602605 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
603606
604 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
607 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
605608 #
606609 # This file is free software; the Free Software Foundation
607610 # gives unlimited permission to copy and/or distribute it,
612615 # Define $install_sh.
613616 AC_DEFUN([AM_PROG_INSTALL_SH],
614617 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
615 if test x"${install_sh}" != xset; then
618 if test x"${install_sh+set}" != xset; then
616619 case $am_aux_dir in
617620 *\ * | *\ *)
618621 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
622625 fi
623626 AC_SUBST([install_sh])])
624627
625 # Copyright (C) 2003-2013 Free Software Foundation, Inc.
628 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
626629 #
627630 # This file is free software; the Free Software Foundation
628631 # gives unlimited permission to copy and/or distribute it,
644647 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
645648 # From Jim Meyering
646649
647 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
650 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
648651 #
649652 # This file is free software; the Free Software Foundation
650653 # gives unlimited permission to copy and/or distribute it,
679682
680683 # Check to see how 'make' treats includes. -*- Autoconf -*-
681684
682 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
685 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
683686 #
684687 # This file is free software; the Free Software Foundation
685688 # gives unlimited permission to copy and/or distribute it,
729732
730733 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
731734
732 # Copyright (C) 1997-2013 Free Software Foundation, Inc.
735 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
733736 #
734737 # This file is free software; the Free Software Foundation
735738 # gives unlimited permission to copy and/or distribute it,
770773 # Obsolete and "removed" macros, that must however still report explicit
771774 # error messages when used, to smooth transition.
772775 #
773 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
776 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
774777 #
775778 # This file is free software; the Free Software Foundation
776779 # gives unlimited permission to copy and/or distribute it,
797800
798801 # Helper functions for option handling. -*- Autoconf -*-
799802
800 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
803 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
801804 #
802805 # This file is free software; the Free Software Foundation
803806 # gives unlimited permission to copy and/or distribute it,
826829 AC_DEFUN([_AM_IF_OPTION],
827830 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
828831
829 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
832 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
830833 #
831834 # This file is free software; the Free Software Foundation
832835 # gives unlimited permission to copy and/or distribute it,
873876 # For backward compatibility.
874877 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
875878
876 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
879 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
877880 #
878881 # This file is free software; the Free Software Foundation
879882 # gives unlimited permission to copy and/or distribute it,
892895
893896 # Check to make sure that the build environment is sane. -*- Autoconf -*-
894897
895 # Copyright (C) 1996-2013 Free Software Foundation, Inc.
898 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
896899 #
897900 # This file is free software; the Free Software Foundation
898901 # gives unlimited permission to copy and/or distribute it,
973976 rm -f conftest.file
974977 ])
975978
976 # Copyright (C) 2009-2013 Free Software Foundation, Inc.
979 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
977980 #
978981 # This file is free software; the Free Software Foundation
979982 # gives unlimited permission to copy and/or distribute it,
10331036 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10341037 ])
10351038
1036 # Copyright (C) 2001-2013 Free Software Foundation, Inc.
1039 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
10371040 #
10381041 # This file is free software; the Free Software Foundation
10391042 # gives unlimited permission to copy and/or distribute it,
10611064 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10621065 AC_SUBST([INSTALL_STRIP_PROGRAM])])
10631066
1064 # Copyright (C) 2006-2013 Free Software Foundation, Inc.
1067 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
10651068 #
10661069 # This file is free software; the Free Software Foundation
10671070 # gives unlimited permission to copy and/or distribute it,
10801083
10811084 # Check how to create a tarball. -*- Autoconf -*-
10821085
1083 # Copyright (C) 2004-2013 Free Software Foundation, Inc.
1086 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
10841087 #
10851088 # This file is free software; the Free Software Foundation
10861089 # gives unlimited permission to copy and/or distribute it,
2727 txtconv_SOURCES = @top_builddir@/source/Sample-tools/TxtConv.cpp
2828
2929 sfconv_SOURCES = @top_builddir@/SFconv/SFconv.cpp
30 sfconv_SOURCES += @top_builddir@/SFconv/ConvertUTF.c
30 sfconv_SOURCES += @top_builddir@/SFconv/UtfCodec.cpp
3131 sfconv_CPPFLAGS = $(AM_CPPFLAGS) $(EXPAT_CFLAGS)
32 sfconv_CXXFLAGS = -std=c++11
3233 sfconv_CFLAGS = $(AM_CPPFLAGS) $(EXPAT_CFLAGS)
3334 sfconv_SOURCES += @top_builddir@/SFconv/sfReader.h
34 sfconv_SOURCES += @top_builddir@/SFconv/ConvertUTF.h
35 sfconv_SOURCES += @top_builddir@/SFconv/UtfCodec.h
3536 sfconv_SOURCES += @top_builddir@/SFconv/Debug_Prefix.h
3637 sfconv_SOURCES += @top_builddir@/SFconv/Final_Prefix.h
3738 sfconv_SOURCES += @top_builddir@/SFconv/ushort_chartraits.h
0 # Makefile.in generated by automake 1.14.1 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2013 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
1515
1616
1717 VPATH = @srcdir@
18 am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
1929 am__make_running_with_option = \
2030 case $${target_option-} in \
2131 ?) ;; \
8898 @OLD_LIB_NAMES_FALSE@ $(top_builddir)/lib/libTECkit.la \
8999 @OLD_LIB_NAMES_FALSE@ $(noinst_LIBRARIES)
90100 subdir = bin
91 DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
92 $(top_srcdir)/depcomp
93101 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
94102 am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
95103 $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
98106 $(top_srcdir)/zlib-1.2.3/zlib.ac $(top_srcdir)/configure.ac
99107 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
100108 $(ACLOCAL_M4)
109 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
101110 mkinstalldirs = $(install_sh) -d
102111 CONFIG_HEADER = $(top_builddir)/config.h
103112 CONFIG_CLEAN_FILES =
124133 am__installdirs = "$(DESTDIR)$(bindir)"
125134 PROGRAMS = $(bin_PROGRAMS)
126135 am_sfconv_OBJECTS = @top_builddir@/SFconv/sfconv-SFconv.$(OBJEXT) \
127 @top_builddir@/SFconv/sfconv-ConvertUTF.$(OBJEXT)
136 @top_builddir@/SFconv/sfconv-UtfCodec.$(OBJEXT)
128137 sfconv_OBJECTS = $(am_sfconv_OBJECTS)
129138 AM_V_lt = $(am__v_lt_@AM_V@)
130139 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
131140 am__v_lt_0 = --silent
132141 am__v_lt_1 =
133142 sfconv_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
134 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
143 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(sfconv_CXXFLAGS) \
135144 $(CXXFLAGS) $(sfconv_LDFLAGS) $(LDFLAGS) -o $@
136145 am_teckit_compile_OBJECTS = \
137146 @top_builddir@/source/Sample-tools/TECkit_Compile.$(OBJEXT)
226235 done | $(am__uniquify_input)`
227236 ETAGS = etags
228237 CTAGS = ctags
238 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
229239 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
230240 ACLOCAL = @ACLOCAL@
231241 AMTAR = @AMTAR@
271281 LIPO = @LIPO@
272282 LN_S = @LN_S@
273283 LTLIBOBJS = @LTLIBOBJS@
284 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
274285 MAINT = @MAINT@
275286 MAKEINFO = @MAKEINFO@
276287 MANIFEST_TOOL = @MANIFEST_TOOL@
346357 prefix = @prefix@
347358 program_transform_name = @program_transform_name@
348359 psdir = @psdir@
360 runstatedir = @runstatedir@
349361 sbindir = @sbindir@
350362 sharedstatedir = @sharedstatedir@
351363 srcdir = @srcdir@
376388 teckit_compile_SOURCES = @top_builddir@/source/Sample-tools/TECkit_Compile.cpp
377389 txtconv_SOURCES = @top_builddir@/source/Sample-tools/TxtConv.cpp
378390 sfconv_SOURCES = @top_builddir@/SFconv/SFconv.cpp \
379 @top_builddir@/SFconv/ConvertUTF.c \
391 @top_builddir@/SFconv/UtfCodec.cpp \
380392 @top_builddir@/SFconv/sfReader.h \
381 @top_builddir@/SFconv/ConvertUTF.h \
393 @top_builddir@/SFconv/UtfCodec.h \
382394 @top_builddir@/SFconv/Debug_Prefix.h \
383395 @top_builddir@/SFconv/Final_Prefix.h \
384396 @top_builddir@/SFconv/ushort_chartraits.h
385397 sfconv_CPPFLAGS = $(AM_CPPFLAGS) $(EXPAT_CFLAGS)
398 sfconv_CXXFLAGS = -std=c++11
386399 sfconv_CFLAGS = $(AM_CPPFLAGS) $(EXPAT_CFLAGS)
387400 @OLD_LIB_NAMES_FALSE@teckit_compile_LDADD = $(top_builddir)/lib/libTECkit_Compiler.la
388401 @OLD_LIB_NAMES_TRUE@teckit_compile_LDADD = $(top_builddir)/lib/TECkit_Compiler_x86.la
416429 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign bin/Makefile'; \
417430 $(am__cd) $(top_srcdir) && \
418431 $(AUTOMAKE) --foreign bin/Makefile
419 .PRECIOUS: Makefile
420432 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
421433 @case '$?' in \
422434 *config.status*) \
524536 @top_builddir@/SFconv/sfconv-SFconv.$(OBJEXT): \
525537 @top_builddir@/SFconv/$(am__dirstamp) \
526538 @top_builddir@/SFconv/$(DEPDIR)/$(am__dirstamp)
527 @top_builddir@/SFconv/sfconv-ConvertUTF.$(OBJEXT): \
539 @top_builddir@/SFconv/sfconv-UtfCodec.$(OBJEXT): \
528540 @top_builddir@/SFconv/$(am__dirstamp) \
529541 @top_builddir@/SFconv/$(DEPDIR)/$(am__dirstamp)
530542
562574 distclean-compile:
563575 -rm -f *.tab.c
564576
565 @AMDEP_TRUE@@am__include@ @am__quote@@top_builddir@/SFconv/$(DEPDIR)/sfconv-ConvertUTF.Po@am__quote@
566577 @AMDEP_TRUE@@am__include@ @am__quote@@top_builddir@/SFconv/$(DEPDIR)/sfconv-SFconv.Po@am__quote@
578 @AMDEP_TRUE@@am__include@ @am__quote@@top_builddir@/SFconv/$(DEPDIR)/sfconv-UtfCodec.Po@am__quote@
567579 @AMDEP_TRUE@@am__include@ @am__quote@@top_builddir@/SFconv/expat/xmlparse/$(DEPDIR)/libexpat_a-hashtable.Po@am__quote@
568580 @AMDEP_TRUE@@am__include@ @am__quote@@top_builddir@/SFconv/expat/xmlparse/$(DEPDIR)/libexpat_a-xmlparse.Po@am__quote@
569581 @AMDEP_TRUE@@am__include@ @am__quote@@top_builddir@/SFconv/expat/xmltok/$(DEPDIR)/libexpat_a-xmlrole.Po@am__quote@
650662 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='@top_builddir@/SFconv/expat/xmltok/xmltok.c' object='@top_builddir@/SFconv/expat/xmltok/libexpat_a-xmltok.obj' libtool=no @AMDEPBACKSLASH@
651663 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
652664 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libexpat_a_CFLAGS) $(CFLAGS) -c -o @top_builddir@/SFconv/expat/xmltok/libexpat_a-xmltok.obj `if test -f '@top_builddir@/SFconv/expat/xmltok/xmltok.c'; then $(CYGPATH_W) '@top_builddir@/SFconv/expat/xmltok/xmltok.c'; else $(CYGPATH_W) '$(srcdir)/@top_builddir@/SFconv/expat/xmltok/xmltok.c'; fi`
653
654 @top_builddir@/SFconv/sfconv-ConvertUTF.o: @top_builddir@/SFconv/ConvertUTF.c
655 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CFLAGS) $(CFLAGS) -MT @top_builddir@/SFconv/sfconv-ConvertUTF.o -MD -MP -MF @top_builddir@/SFconv/$(DEPDIR)/sfconv-ConvertUTF.Tpo -c -o @top_builddir@/SFconv/sfconv-ConvertUTF.o `test -f '@top_builddir@/SFconv/ConvertUTF.c' || echo '$(srcdir)/'`@top_builddir@/SFconv/ConvertUTF.c
656 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) @top_builddir@/SFconv/$(DEPDIR)/sfconv-ConvertUTF.Tpo @top_builddir@/SFconv/$(DEPDIR)/sfconv-ConvertUTF.Po
657 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='@top_builddir@/SFconv/ConvertUTF.c' object='@top_builddir@/SFconv/sfconv-ConvertUTF.o' libtool=no @AMDEPBACKSLASH@
658 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
659 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CFLAGS) $(CFLAGS) -c -o @top_builddir@/SFconv/sfconv-ConvertUTF.o `test -f '@top_builddir@/SFconv/ConvertUTF.c' || echo '$(srcdir)/'`@top_builddir@/SFconv/ConvertUTF.c
660
661 @top_builddir@/SFconv/sfconv-ConvertUTF.obj: @top_builddir@/SFconv/ConvertUTF.c
662 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CFLAGS) $(CFLAGS) -MT @top_builddir@/SFconv/sfconv-ConvertUTF.obj -MD -MP -MF @top_builddir@/SFconv/$(DEPDIR)/sfconv-ConvertUTF.Tpo -c -o @top_builddir@/SFconv/sfconv-ConvertUTF.obj `if test -f '@top_builddir@/SFconv/ConvertUTF.c'; then $(CYGPATH_W) '@top_builddir@/SFconv/ConvertUTF.c'; else $(CYGPATH_W) '$(srcdir)/@top_builddir@/SFconv/ConvertUTF.c'; fi`
663 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) @top_builddir@/SFconv/$(DEPDIR)/sfconv-ConvertUTF.Tpo @top_builddir@/SFconv/$(DEPDIR)/sfconv-ConvertUTF.Po
664 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='@top_builddir@/SFconv/ConvertUTF.c' object='@top_builddir@/SFconv/sfconv-ConvertUTF.obj' libtool=no @AMDEPBACKSLASH@
665 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
666 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CFLAGS) $(CFLAGS) -c -o @top_builddir@/SFconv/sfconv-ConvertUTF.obj `if test -f '@top_builddir@/SFconv/ConvertUTF.c'; then $(CYGPATH_W) '@top_builddir@/SFconv/ConvertUTF.c'; else $(CYGPATH_W) '$(srcdir)/@top_builddir@/SFconv/ConvertUTF.c'; fi`
667665
668666 .cpp.o:
669667 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
690688 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
691689
692690 @top_builddir@/SFconv/sfconv-SFconv.o: @top_builddir@/SFconv/SFconv.cpp
693 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT @top_builddir@/SFconv/sfconv-SFconv.o -MD -MP -MF @top_builddir@/SFconv/$(DEPDIR)/sfconv-SFconv.Tpo -c -o @top_builddir@/SFconv/sfconv-SFconv.o `test -f '@top_builddir@/SFconv/SFconv.cpp' || echo '$(srcdir)/'`@top_builddir@/SFconv/SFconv.cpp
691 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CXXFLAGS) $(CXXFLAGS) -MT @top_builddir@/SFconv/sfconv-SFconv.o -MD -MP -MF @top_builddir@/SFconv/$(DEPDIR)/sfconv-SFconv.Tpo -c -o @top_builddir@/SFconv/sfconv-SFconv.o `test -f '@top_builddir@/SFconv/SFconv.cpp' || echo '$(srcdir)/'`@top_builddir@/SFconv/SFconv.cpp
694692 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) @top_builddir@/SFconv/$(DEPDIR)/sfconv-SFconv.Tpo @top_builddir@/SFconv/$(DEPDIR)/sfconv-SFconv.Po
695693 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='@top_builddir@/SFconv/SFconv.cpp' object='@top_builddir@/SFconv/sfconv-SFconv.o' libtool=no @AMDEPBACKSLASH@
696694 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
697 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o @top_builddir@/SFconv/sfconv-SFconv.o `test -f '@top_builddir@/SFconv/SFconv.cpp' || echo '$(srcdir)/'`@top_builddir@/SFconv/SFconv.cpp
695 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CXXFLAGS) $(CXXFLAGS) -c -o @top_builddir@/SFconv/sfconv-SFconv.o `test -f '@top_builddir@/SFconv/SFconv.cpp' || echo '$(srcdir)/'`@top_builddir@/SFconv/SFconv.cpp
698696
699697 @top_builddir@/SFconv/sfconv-SFconv.obj: @top_builddir@/SFconv/SFconv.cpp
700 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT @top_builddir@/SFconv/sfconv-SFconv.obj -MD -MP -MF @top_builddir@/SFconv/$(DEPDIR)/sfconv-SFconv.Tpo -c -o @top_builddir@/SFconv/sfconv-SFconv.obj `if test -f '@top_builddir@/SFconv/SFconv.cpp'; then $(CYGPATH_W) '@top_builddir@/SFconv/SFconv.cpp'; else $(CYGPATH_W) '$(srcdir)/@top_builddir@/SFconv/SFconv.cpp'; fi`
698 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CXXFLAGS) $(CXXFLAGS) -MT @top_builddir@/SFconv/sfconv-SFconv.obj -MD -MP -MF @top_builddir@/SFconv/$(DEPDIR)/sfconv-SFconv.Tpo -c -o @top_builddir@/SFconv/sfconv-SFconv.obj `if test -f '@top_builddir@/SFconv/SFconv.cpp'; then $(CYGPATH_W) '@top_builddir@/SFconv/SFconv.cpp'; else $(CYGPATH_W) '$(srcdir)/@top_builddir@/SFconv/SFconv.cpp'; fi`
701699 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) @top_builddir@/SFconv/$(DEPDIR)/sfconv-SFconv.Tpo @top_builddir@/SFconv/$(DEPDIR)/sfconv-SFconv.Po
702700 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='@top_builddir@/SFconv/SFconv.cpp' object='@top_builddir@/SFconv/sfconv-SFconv.obj' libtool=no @AMDEPBACKSLASH@
703701 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
704 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o @top_builddir@/SFconv/sfconv-SFconv.obj `if test -f '@top_builddir@/SFconv/SFconv.cpp'; then $(CYGPATH_W) '@top_builddir@/SFconv/SFconv.cpp'; else $(CYGPATH_W) '$(srcdir)/@top_builddir@/SFconv/SFconv.cpp'; fi`
702 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CXXFLAGS) $(CXXFLAGS) -c -o @top_builddir@/SFconv/sfconv-SFconv.obj `if test -f '@top_builddir@/SFconv/SFconv.cpp'; then $(CYGPATH_W) '@top_builddir@/SFconv/SFconv.cpp'; else $(CYGPATH_W) '$(srcdir)/@top_builddir@/SFconv/SFconv.cpp'; fi`
703
704 @top_builddir@/SFconv/sfconv-UtfCodec.o: @top_builddir@/SFconv/UtfCodec.cpp
705 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CXXFLAGS) $(CXXFLAGS) -MT @top_builddir@/SFconv/sfconv-UtfCodec.o -MD -MP -MF @top_builddir@/SFconv/$(DEPDIR)/sfconv-UtfCodec.Tpo -c -o @top_builddir@/SFconv/sfconv-UtfCodec.o `test -f '@top_builddir@/SFconv/UtfCodec.cpp' || echo '$(srcdir)/'`@top_builddir@/SFconv/UtfCodec.cpp
706 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) @top_builddir@/SFconv/$(DEPDIR)/sfconv-UtfCodec.Tpo @top_builddir@/SFconv/$(DEPDIR)/sfconv-UtfCodec.Po
707 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='@top_builddir@/SFconv/UtfCodec.cpp' object='@top_builddir@/SFconv/sfconv-UtfCodec.o' libtool=no @AMDEPBACKSLASH@
708 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
709 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CXXFLAGS) $(CXXFLAGS) -c -o @top_builddir@/SFconv/sfconv-UtfCodec.o `test -f '@top_builddir@/SFconv/UtfCodec.cpp' || echo '$(srcdir)/'`@top_builddir@/SFconv/UtfCodec.cpp
710
711 @top_builddir@/SFconv/sfconv-UtfCodec.obj: @top_builddir@/SFconv/UtfCodec.cpp
712 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CXXFLAGS) $(CXXFLAGS) -MT @top_builddir@/SFconv/sfconv-UtfCodec.obj -MD -MP -MF @top_builddir@/SFconv/$(DEPDIR)/sfconv-UtfCodec.Tpo -c -o @top_builddir@/SFconv/sfconv-UtfCodec.obj `if test -f '@top_builddir@/SFconv/UtfCodec.cpp'; then $(CYGPATH_W) '@top_builddir@/SFconv/UtfCodec.cpp'; else $(CYGPATH_W) '$(srcdir)/@top_builddir@/SFconv/UtfCodec.cpp'; fi`
713 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) @top_builddir@/SFconv/$(DEPDIR)/sfconv-UtfCodec.Tpo @top_builddir@/SFconv/$(DEPDIR)/sfconv-UtfCodec.Po
714 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='@top_builddir@/SFconv/UtfCodec.cpp' object='@top_builddir@/SFconv/sfconv-UtfCodec.obj' libtool=no @AMDEPBACKSLASH@
715 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
716 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(sfconv_CPPFLAGS) $(CPPFLAGS) $(sfconv_CXXFLAGS) $(CXXFLAGS) -c -o @top_builddir@/SFconv/sfconv-UtfCodec.obj `if test -f '@top_builddir@/SFconv/UtfCodec.cpp'; then $(CYGPATH_W) '@top_builddir@/SFconv/UtfCodec.cpp'; else $(CYGPATH_W) '$(srcdir)/@top_builddir@/SFconv/UtfCodec.cpp'; fi`
705717
706718 mostlyclean-libtool:
707719 -rm -f *.lo
924936 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
925937 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
926938
939 .PRECIOUS: Makefile
940
927941 @SYSTEM_EXPAT_FALSE@$(am_libexpat_a_OBJECTS): CFLAGS := $(filter-out -Wextra, $(CFLAGS))
928942 @OLD_LIB_NAMES_TRUE@TECkit_Compile_ver.o: $(tool_src)/TECkit_Compile_ver.rc
929943 @OLD_LIB_NAMES_TRUE@ $(RC) $(AM_RCFLAGS) $(RCFLAGS) -o $@ $<
22
33 scriptversion=2012-10-14.11; # UTC
44
5 # Copyright (C) 1999-2013 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-03-23'
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
2323 # program. This Exception is an additional permission under section 7
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525 #
26 # Originally written by Per Bothner.
26 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2727 #
2828 # You can get the latest version of this script from:
2929 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
3030 #
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
31 # Please send patches to <config-patches@gnu.org>.
3232
3333
3434 me=`echo "$0" | sed -e 's,.*/,,'`
4949 GNU config.guess ($timestamp)
5050
5151 Originally written by Per Bothner.
52 Copyright 1992-2014 Free Software Foundation, Inc.
52 Copyright 1992-2015 Free Software Foundation, Inc.
5353
5454 This is free software; see the source for copying conditions. There is NO
5555 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
167167 # Note: NetBSD doesn't particularly care about the vendor
168168 # portion of the name. We always set it to "unknown".
169169 sysctl="sysctl -n hw.machine_arch"
170 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
171 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
170 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
171 /sbin/$sysctl 2>/dev/null || \
172 /usr/sbin/$sysctl 2>/dev/null || \
173 echo unknown)`
172174 case "${UNAME_MACHINE_ARCH}" in
173175 armeb) machine=armeb-unknown ;;
174176 arm*) machine=arm-unknown ;;
175177 sh3el) machine=shl-unknown ;;
176178 sh3eb) machine=sh-unknown ;;
177179 sh5el) machine=sh5le-unknown ;;
180 earmv*)
181 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
182 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
183 machine=${arch}${endian}-unknown
184 ;;
178185 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
179186 esac
180187 # The Operating System including object format, if it has switched
181188 # to ELF recently, or will in the future.
182189 case "${UNAME_MACHINE_ARCH}" in
183 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
190 arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
184191 eval $set_cc_for_build
185192 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
186193 | grep -q __ELF__
196203 os=netbsd
197204 ;;
198205 esac
206 # Determine ABI tags.
207 case "${UNAME_MACHINE_ARCH}" in
208 earm*)
209 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
210 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
211 ;;
212 esac
199213 # The OS release
200214 # Debian GNU/NetBSD machines have a different userland, and
201215 # thus, need a distinct triplet. However, they do not need
206220 release='-gnu'
207221 ;;
208222 *)
209 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
223 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
210224 ;;
211225 esac
212226 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
213227 # contains redundant information, the shorter form:
214228 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
215 echo "${machine}-${os}${release}"
229 echo "${machine}-${os}${release}${abi}"
216230 exit ;;
217231 *:Bitrig:*:*)
218232 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
233247 exit ;;
234248 *:MirBSD:*:*)
235249 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
250 exit ;;
251 *:Sortix:*:*)
252 echo ${UNAME_MACHINE}-unknown-sortix
236253 exit ;;
237254 alpha:OSF1:*:*)
238255 case $UNAME_RELEASE in
578595 else
579596 IBM_ARCH=powerpc
580597 fi
581 if [ -x /usr/bin/oslevel ] ; then
582 IBM_REV=`/usr/bin/oslevel`
598 if [ -x /usr/bin/lslpp ] ; then
599 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
600 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
583601 else
584602 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
585603 fi
931949 crisv32:Linux:*:*)
932950 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
933951 exit ;;
952 e2k:Linux:*:*)
953 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
954 exit ;;
934955 frv:Linux:*:*)
935956 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
936957 exit ;;
10191040 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
10201041 exit ;;
10211042 x86_64:Linux:*:*)
1022 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1043 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
10231044 exit ;;
10241045 xtensa*:Linux:*:*)
10251046 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
4141 /* Define to 1 if you have the <zlib.h> header file. */
4242 #undef HAVE_ZLIB_H
4343
44 /* Define to the sub-directory in which libtool stores uninstalled libraries.
45 */
44 /* Define to the sub-directory where libtool stores uninstalled libraries. */
4645 #undef LT_OBJDIR
4746
4847 /* Name of package */
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-09-11'
2 # Copyright 1992-2015 Free Software Foundation, Inc.
3
4 timestamp='2015-08-20'
55
66 # This file is free software; you can redistribute it and/or modify it
77 # under the terms of the GNU General Public License as published by
2424 # of the GNU General Public License, version 3 ("GPLv3").
2525
2626
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
27 # Please send patches to <config-patches@gnu.org>.
2828 #
2929 # Configuration subroutine to validate and canonicalize a configuration type.
3030 # Supply the specified configuration type as an argument.
6767 version="\
6868 GNU config.sub ($timestamp)
6969
70 Copyright 1992-2014 Free Software Foundation, Inc.
70 Copyright 1992-2015 Free Software Foundation, Inc.
7171
7272 This is free software; see the source for copying conditions. There is NO
7373 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
116116 case $maybe_os in
117117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
120120 kopensolaris*-gnu* | \
121121 storm-chaos* | os2-emx* | rtmk-nova*)
122122 os=-$maybe_os
254254 | arc | arceb \
255255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256256 | avr | avr32 \
257 | ba \
257258 | be32 | be64 \
258259 | bfin \
259260 | c4x | c8051 | clipper \
260261 | d10v | d30v | dlx | dsp16xx \
261 | epiphany \
262 | fido | fr30 | frv \
262 | e2k | epiphany \
263 | fido | fr30 | frv | ft32 \
263264 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264265 | hexagon \
265266 | i370 | i860 | i960 | ia64 \
304305 | riscv32 | riscv64 \
305306 | rl78 | rx \
306307 | score \
307 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
308 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
308309 | sh64 | sh64le \
309310 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
310311 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
312313 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
313314 | ubicom32 \
314315 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
316 | visium \
315317 | we32k \
316318 | x86 | xc16x | xstormy16 | xtensa \
317319 | z8k | z80)
325327 ;;
326328 c6x)
327329 basic_machine=tic6x-unknown
330 ;;
331 leon|leon[3-9])
332 basic_machine=sparc-$basic_machine
328333 ;;
329334 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
330335 basic_machine=$basic_machine-unknown
371376 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
372377 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
373378 | avr-* | avr32-* \
379 | ba-* \
374380 | be32-* | be64-* \
375381 | bfin-* | bs2000-* \
376382 | c[123]* | c30-* | [cjt]90-* | c4x-* \
377383 | c8051-* | clipper-* | craynv-* | cydra-* \
378384 | d10v-* | d30v-* | dlx-* \
379 | elxsi-* \
385 | e2k-* | elxsi-* \
380386 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
381387 | h8300-* | h8500-* \
382388 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
423429 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
424430 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
425431 | pyramid-* \
432 | riscv32-* | riscv64-* \
426433 | rl78-* | romp-* | rs6000-* | rx-* \
427434 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
428435 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
429436 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
430437 | sparclite-* \
431 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
438 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
432439 | tahoe-* \
433440 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
434441 | tile*-* \
436443 | ubicom32-* \
437444 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
438445 | vax-* \
446 | visium-* \
439447 | we32k-* \
440448 | x86-* | x86_64-* | xc16x-* | xps100-* \
441449 | xstormy16-* | xtensa*-* \
511519 aros)
512520 basic_machine=i386-pc
513521 os=-aros
522 ;;
523 asmjs)
524 basic_machine=asmjs-unknown
514525 ;;
515526 aux)
516527 basic_machine=m68k-apple
772783 isi68 | isi)
773784 basic_machine=m68k-isi
774785 os=-sysv
786 ;;
787 leon-*|leon[3-9]-*)
788 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
775789 ;;
776790 m68knommu)
777791 basic_machine=m68k-unknown
13641378 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
13651379 | -sym* | -kopensolaris* | -plan9* \
13661380 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1367 | -aos* | -aros* \
1381 | -aos* | -aros* | -cloudabi* | -sortix* \
13681382 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13691383 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13701384 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
+1897
-1347
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for teckit 2.5.4.
2 # Generated by GNU Autoconf 2.69 for teckit 2.5.8.
33 #
44 # Report bugs to <nrsi@sil.org>.
55 #
588588 # Identity of this package.
589589 PACKAGE_NAME='teckit'
590590 PACKAGE_TARNAME='teckit'
591 PACKAGE_VERSION='2.5.4'
592 PACKAGE_STRING='teckit 2.5.4'
591 PACKAGE_VERSION='2.5.8'
592 PACKAGE_STRING='teckit 2.5.8'
593593 PACKAGE_BUGREPORT='nrsi@sil.org'
594594 PACKAGE_URL=''
595595
649649 RC
650650 CXXCPP
651651 CPP
652 LT_SYS_LIBRARY_PATH
652653 OTOOL64
653654 OTOOL
654655 LIPO
754755 docdir
755756 oldincludedir
756757 includedir
758 runstatedir
757759 localstatedir
758760 sharedstatedir
759761 sysconfdir
783785 enable_static
784786 with_pic
785787 enable_fast_install
788 with_aix_soname
786789 with_gnu_ld
787790 with_sysroot
788791 enable_libtool_lock
807810 CCC
808811 CC
809812 CFLAGS
813 LT_SYS_LIBRARY_PATH
810814 CPP
811815 CXXCPP'
812816
847851 sysconfdir='${prefix}/etc'
848852 sharedstatedir='${prefix}/com'
849853 localstatedir='${prefix}/var'
854 runstatedir='${localstatedir}/run'
850855 includedir='${prefix}/include'
851856 oldincludedir='/usr/include'
852857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
10991104 | -silent | --silent | --silen | --sile | --sil)
11001105 silent=yes ;;
11011106
1107 -runstatedir | --runstatedir | --runstatedi | --runstated \
1108 | --runstate | --runstat | --runsta | --runst | --runs \
1109 | --run | --ru | --r)
1110 ac_prev=runstatedir ;;
1111 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1112 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1113 | --run=* | --ru=* | --r=*)
1114 runstatedir=$ac_optarg ;;
1115
11021116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
11031117 ac_prev=sbindir ;;
11041118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
12361250 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
12371251 datadir sysconfdir sharedstatedir localstatedir includedir \
12381252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
1253 libdir localedir mandir runstatedir
12401254 do
12411255 eval ac_val=\$$ac_var
12421256 # Remove trailing slashes.
13491363 # Omit some internal or obsolete options to make the list less imposing.
13501364 # This message is too long to be a string in the A/UX 3.1 sh.
13511365 cat <<_ACEOF
1352 \`configure' configures teckit 2.5.4 to adapt to many kinds of systems.
1366 \`configure' configures teckit 2.5.8 to adapt to many kinds of systems.
13531367
13541368 Usage: $0 [OPTION]... [VAR=VALUE]...
13551369
13891403 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
13901404 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
13911405 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1406 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
13921407 --libdir=DIR object code libraries [EPREFIX/lib]
13931408 --includedir=DIR C header files [PREFIX/include]
13941409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
14201435
14211436 if test -n "$ac_init_help"; then
14221437 case $ac_init_help in
1423 short | recursive ) echo "Configuration of teckit 2.5.4:";;
1438 short | recursive ) echo "Configuration of teckit 2.5.8:";;
14241439 esac
14251440 cat <<\_ACEOF
14261441
14531468 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
14541469 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
14551470 both]
1471 --with-aix-soname=aix|svr4|both
1472 shared library versioning (aka "SONAME") variant to
1473 provide on AIX, [default=aix].
14561474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1457 --with-sysroot=DIR Search for dependent libraries within DIR
1458 (or the compiler's sysroot if not specified).
1475 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1476 compiler's sysroot if not specified).
14591477 --with-old-lib-names Use old library names (for Windows only)
14601478 --without-system-zlib Don't use installed zlib library
14611479 --with-zlib-libdir=DIR Specify directory where the zlib library resides.
14711489 you have headers in a nonstandard directory <include dir>
14721490 CC C compiler command
14731491 CFLAGS C compiler flags
1492 LT_SYS_LIBRARY_PATH
1493 User-defined run-time library search path.
14741494 CPP C preprocessor
14751495 CXXCPP C++ preprocessor
14761496
15401560 test -n "$ac_init_help" && exit $ac_status
15411561 if $ac_init_version; then
15421562 cat <<\_ACEOF
1543 teckit configure 2.5.4
1563 teckit configure 2.5.8
15441564 generated by GNU Autoconf 2.69
15451565
15461566 Copyright (C) 2012 Free Software Foundation, Inc.
20302050 This file contains any messages produced by compilers while
20312051 running configure, to aid debugging if configure makes a mistake.
20322052
2033 It was created by teckit $as_me 2.5.4, which was
2053 It was created by teckit $as_me 2.5.8, which was
20342054 generated by GNU Autoconf 2.69. Invocation command line was
20352055
20362056 $ $0 $@
25222542 NONENONEs,x,x, &&
25232543 program_prefix=${target_alias}-
25242544
2525 am__api_version='1.14'
2545 am__api_version='1.15'
25262546
25272547 # Find a good install program. We prefer a C program (faster),
25282548 # so one script is as good as another. But avoid the broken or
27142734 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
27152735 fi
27162736
2717 if test x"${install_sh}" != xset; then
2737 if test x"${install_sh+set}" != xset; then
27182738 case $am_aux_dir in
27192739 *\ * | *\ *)
27202740 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
30083028
30093029 # Define the identity of the package.
30103030 PACKAGE='teckit'
3011 VERSION='2.5.4'
3031 VERSION='2.5.8'
30123032
30133033
30143034 cat >>confdefs.h <<_ACEOF
30423062 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
30433063 mkdir_p='$(MKDIR_P)'
30443064
3045 # We need awk for the "check" target. The system "awk" is bad on
3046 # some platforms.
3065 # We need awk for the "check" target (and possibly the TAP driver). The
3066 # system "awk" is bad on some platforms.
30473067 # Always define AMTAR for backward compatibility. Yes, it's still used
30483068 # in the wild :-( We should find a proper way to deprecate it ...
30493069 AMTAR='$${TAR-tar}'
46004620
46014621
46024622
4603 macro_version='2.4.2'
4604 macro_revision='1.3337'
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618 ltmain="$ac_aux_dir/ltmain.sh"
4623 macro_version='2.4.6'
4624 macro_revision='2.4.6'
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638 ltmain=$ac_aux_dir/ltmain.sh
46194639
46204640 # Backslashify metacharacters that are still active within
46214641 # double-quoted strings.
46644684 $ECHO ""
46654685 }
46664686
4667 case "$ECHO" in
4687 case $ECHO in
46684688 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
46694689 $as_echo "printf" >&6; } ;;
46704690 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
49875007
49885008 # Check whether --with-gnu-ld was given.
49895009 if test "${with_gnu_ld+set}" = set; then :
4990 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5010 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
49915011 else
49925012 with_gnu_ld=no
49935013 fi
49945014
49955015 ac_prog=ld
4996 if test "$GCC" = yes; then
5016 if test yes = "$GCC"; then
49975017 # Check if gcc -print-prog-name=ld gives a path.
49985018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
49995019 $as_echo_n "checking for ld used by $CC... " >&6; }
50005020 case $host in
50015021 *-*-mingw*)
5002 # gcc leaves a trailing carriage return which upsets mingw
5022 # gcc leaves a trailing carriage return, which upsets mingw
50035023 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
50045024 *)
50055025 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
50135033 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
50145034 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
50155035 done
5016 test -z "$LD" && LD="$ac_prog"
5036 test -z "$LD" && LD=$ac_prog
50175037 ;;
50185038 "")
50195039 # If it fails, then pretend we aren't using GCC.
50245044 with_gnu_ld=unknown
50255045 ;;
50265046 esac
5027 elif test "$with_gnu_ld" = yes; then
5047 elif test yes = "$with_gnu_ld"; then
50285048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
50295049 $as_echo_n "checking for GNU ld... " >&6; }
50305050 else
50355055 $as_echo_n "(cached) " >&6
50365056 else
50375057 if test -z "$LD"; then
5038 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5058 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
50395059 for ac_dir in $PATH; do
5040 IFS="$lt_save_ifs"
5060 IFS=$lt_save_ifs
50415061 test -z "$ac_dir" && ac_dir=.
50425062 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5043 lt_cv_path_LD="$ac_dir/$ac_prog"
5063 lt_cv_path_LD=$ac_dir/$ac_prog
50445064 # Check to see if the program is GNU ld. I'd rather use --version,
50455065 # but apparently some variants of GNU ld only accept -v.
50465066 # Break only if it was the GNU/non-GNU ld that we prefer.
50475067 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
50485068 *GNU* | *'with BFD'*)
5049 test "$with_gnu_ld" != no && break
5069 test no != "$with_gnu_ld" && break
50505070 ;;
50515071 *)
5052 test "$with_gnu_ld" != yes && break
5072 test yes != "$with_gnu_ld" && break
50535073 ;;
50545074 esac
50555075 fi
50565076 done
5057 IFS="$lt_save_ifs"
5058 else
5059 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5060 fi
5061 fi
5062
5063 LD="$lt_cv_path_LD"
5077 IFS=$lt_save_ifs
5078 else
5079 lt_cv_path_LD=$LD # Let the user override the test with a path.
5080 fi
5081 fi
5082
5083 LD=$lt_cv_path_LD
50645084 if test -n "$LD"; then
50655085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
50665086 $as_echo "$LD" >&6; }
51035123 else
51045124 if test -n "$NM"; then
51055125 # Let the user override the test.
5106 lt_cv_path_NM="$NM"
5107 else
5108 lt_nm_to_check="${ac_tool_prefix}nm"
5126 lt_cv_path_NM=$NM
5127 else
5128 lt_nm_to_check=${ac_tool_prefix}nm
51095129 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
51105130 lt_nm_to_check="$lt_nm_to_check nm"
51115131 fi
51125132 for lt_tmp_nm in $lt_nm_to_check; do
5113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5133 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
51145134 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5115 IFS="$lt_save_ifs"
5135 IFS=$lt_save_ifs
51165136 test -z "$ac_dir" && ac_dir=.
5117 tmp_nm="$ac_dir/$lt_tmp_nm"
5118 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5137 tmp_nm=$ac_dir/$lt_tmp_nm
5138 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
51195139 # Check to see if the nm accepts a BSD-compat flag.
5120 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5140 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
51215141 # nm: unknown option "B" ignored
51225142 # Tru64's nm complains that /dev/null is an invalid object file
5123 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5124 */dev/null* | *'Invalid file or object type'*)
5143 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5144 case $build_os in
5145 mingw*) lt_bad_file=conftest.nm/nofile ;;
5146 *) lt_bad_file=/dev/null ;;
5147 esac
5148 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5149 *$lt_bad_file* | *'Invalid file or object type'*)
51255150 lt_cv_path_NM="$tmp_nm -B"
5126 break
5151 break 2
51275152 ;;
51285153 *)
51295154 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
51305155 */dev/null*)
51315156 lt_cv_path_NM="$tmp_nm -p"
5132 break
5157 break 2
51335158 ;;
51345159 *)
51355160 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
51405165 esac
51415166 fi
51425167 done
5143 IFS="$lt_save_ifs"
5168 IFS=$lt_save_ifs
51445169 done
51455170 : ${lt_cv_path_NM=no}
51465171 fi
51475172 fi
51485173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
51495174 $as_echo "$lt_cv_path_NM" >&6; }
5150 if test "$lt_cv_path_NM" != "no"; then
5151 NM="$lt_cv_path_NM"
5175 if test no != "$lt_cv_path_NM"; then
5176 NM=$lt_cv_path_NM
51525177 else
51535178 # Didn't find any BSD compatible name lister, look for dumpbin.
51545179 if test -n "$DUMPBIN"; then :
52545279 fi
52555280 fi
52565281
5257 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5282 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
52585283 *COFF*)
5259 DUMPBIN="$DUMPBIN -symbols"
5284 DUMPBIN="$DUMPBIN -symbols -headers"
52605285 ;;
52615286 *)
52625287 DUMPBIN=:
52645289 esac
52655290 fi
52665291
5267 if test "$DUMPBIN" != ":"; then
5268 NM="$DUMPBIN"
5292 if test : != "$DUMPBIN"; then
5293 NM=$DUMPBIN
52695294 fi
52705295 fi
52715296 test -z "$NM" && NM=nm
53165341 $as_echo_n "(cached) " >&6
53175342 else
53185343 i=0
5319 teststring="ABCD"
5344 teststring=ABCD
53205345
53215346 case $build_os in
53225347 msdosdjgpp*)
53565381 lt_cv_sys_max_cmd_len=8192;
53575382 ;;
53585383
5359 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5384 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
53605385 # This has been around since 386BSD, at least. Likely further.
53615386 if test -x /sbin/sysctl; then
53625387 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
54075432 *)
54085433 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
54095434 if test -n "$lt_cv_sys_max_cmd_len" && \
5410 test undefined != "$lt_cv_sys_max_cmd_len"; then
5435 test undefined != "$lt_cv_sys_max_cmd_len"; then
54115436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
54125437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
54135438 else
54145439 # Make teststring a little bigger before we do anything with it.
54155440 # a 1K string should be a reasonable start.
5416 for i in 1 2 3 4 5 6 7 8 ; do
5441 for i in 1 2 3 4 5 6 7 8; do
54175442 teststring=$teststring$teststring
54185443 done
54195444 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
54205445 # If test is not a shell built-in, we'll probably end up computing a
54215446 # maximum length that is only half of the actual maximum length, but
54225447 # we can't tell.
5423 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5448 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
54245449 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5425 test $i != 17 # 1/2 MB should be enough
5450 test 17 != "$i" # 1/2 MB should be enough
54265451 do
54275452 i=`expr $i + 1`
54285453 teststring=$teststring$teststring
54405465
54415466 fi
54425467
5443 if test -n $lt_cv_sys_max_cmd_len ; then
5468 if test -n "$lt_cv_sys_max_cmd_len"; then
54445469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
54455470 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
54465471 else
54575482 : ${CP="cp -f"}
54585483 : ${MV="mv -f"}
54595484 : ${RM="rm -f"}
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5462 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5463 # Try some XSI features
5464 xsi_shell=no
5465 ( _lt_dummy="a/b/c"
5466 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5467 = c,a/b,b/c, \
5468 && eval 'test $(( 1 + 1 )) -eq 2 \
5469 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5470 && xsi_shell=yes
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5472 $as_echo "$xsi_shell" >&6; }
5473
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5476 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5477 lt_shell_append=no
5478 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5479 >/dev/null 2>&1 \
5480 && lt_shell_append=yes
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5482 $as_echo "$lt_shell_append" >&6; }
5483
54845485
54855486 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54865487 lt_unset=unset
56045605 reload_cmds='$LD$reload_flag -o $output$reload_objs'
56055606 case $host_os in
56065607 cygwin* | mingw* | pw32* | cegcc*)
5607 if test "$GCC" != yes; then
5608 if test yes != "$GCC"; then
56085609 reload_cmds=false
56095610 fi
56105611 ;;
56115612 darwin*)
5612 if test "$GCC" = yes; then
5613 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5613 if test yes = "$GCC"; then
5614 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
56145615 else
56155616 reload_cmds='$LD$reload_flag -o $output$reload_objs'
56165617 fi
57385739 # Need to set the preceding variable on all platforms that support
57395740 # interlibrary dependencies.
57405741 # 'none' -- dependencies not supported.
5741 # `unknown' -- same as none, but documents that we really don't know.
5742 # 'unknown' -- same as none, but documents that we really don't know.
57425743 # 'pass_all' -- all dependencies passed with no checks.
57435744 # 'test_compile' -- check by making test program.
57445745 # 'file_magic [[regex]]' -- check by looking for files in library path
5745 # which responds to the $file_magic_cmd with a given extended regex.
5746 # If you have `file' or equivalent on your system and you're not sure
5747 # whether `pass_all' will *always* work, you probably want this one.
5746 # that responds to the $file_magic_cmd with a given extended regex.
5747 # If you have 'file' or equivalent on your system and you're not sure
5748 # whether 'pass_all' will *always* work, you probably want this one.
57485749
57495750 case $host_os in
57505751 aix[4-9]*)
57715772 # Base MSYS/MinGW do not provide the 'file' command needed by
57725773 # func_win32_libid shell function, so use a weaker test based on 'objdump',
57735774 # unless we find 'file', for example because we are cross-compiling.
5774 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5775 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5775 if ( file / ) >/dev/null 2>&1; then
57765776 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
57775777 lt_cv_file_magic_cmd='func_win32_libid'
57785778 else
58685868 lt_cv_deplibs_check_method=pass_all
58695869 ;;
58705870
5871 openbsd*)
5872 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5871 openbsd* | bitrig*)
5872 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
58735873 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
58745874 else
58755875 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
59225922 tpf*)
59235923 lt_cv_deplibs_check_method=pass_all
59245924 ;;
5925 os2*)
5926 lt_cv_deplibs_check_method=pass_all
5927 ;;
59255928 esac
59265929
59275930 fi
60796082
60806083 case $host_os in
60816084 cygwin* | mingw* | pw32* | cegcc*)
6082 # two different shell functions defined in ltmain.sh
6083 # decide which to use based on capabilities of $DLLTOOL
6085 # two different shell functions defined in ltmain.sh;
6086 # decide which one to use based on capabilities of $DLLTOOL
60846087 case `$DLLTOOL --help 2>&1` in
60856088 *--identify-strict*)
60866089 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
60926095 ;;
60936096 *)
60946097 # fallback: assume linklib IS sharedlib
6095 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6098 lt_cv_sharedlib_from_linklib_cmd=$ECHO
60966099 ;;
60976100 esac
60986101
62476250 ac_status=$?
62486251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62496252 test $ac_status = 0; }
6250 if test "$ac_status" -eq 0; then
6253 if test 0 -eq "$ac_status"; then
62516254 # Ensure the archiver fails upon bogus file names.
62526255 rm -f conftest.$ac_objext libconftest.a
62536256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
62556258 ac_status=$?
62566259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
62576260 test $ac_status = 0; }
6258 if test "$ac_status" -ne 0; then
6261 if test 0 -ne "$ac_status"; then
62596262 lt_cv_ar_at_file=@
62606263 fi
62616264 fi
62686271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
62696272 $as_echo "$lt_cv_ar_at_file" >&6; }
62706273
6271 if test "x$lt_cv_ar_at_file" = xno; then
6274 if test no = "$lt_cv_ar_at_file"; then
62726275 archiver_list_spec=
62736276 else
62746277 archiver_list_spec=$lt_cv_ar_at_file
64856488
64866489 if test -n "$RANLIB"; then
64876490 case $host_os in
6488 openbsd*)
6491 bitrig* | openbsd*)
64896492 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
64906493 ;;
64916494 *)
65756578 symcode='[ABCDGISTW]'
65766579 ;;
65776580 hpux*)
6578 if test "$host_cpu" = ia64; then
6581 if test ia64 = "$host_cpu"; then
65796582 symcode='[ABCDEGRST]'
65806583 fi
65816584 ;;
66086611 symcode='[ABCDGIRSTW]' ;;
66096612 esac
66106613
6614 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6615 # Gets list of data symbols to import.
6616 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6617 # Adjust the below global symbol transforms to fixup imported variables.
6618 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6619 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6620 lt_c_name_lib_hook="\
6621 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6622 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6623 else
6624 # Disable hooks by default.
6625 lt_cv_sys_global_symbol_to_import=
6626 lt_cdecl_hook=
6627 lt_c_name_hook=
6628 lt_c_name_lib_hook=
6629 fi
6630
66116631 # Transform an extracted symbol line into a proper C declaration.
66126632 # Some systems (esp. on ia64) link data and code symbols differently,
66136633 # so use this general approach.
6614 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6634 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6635 $lt_cdecl_hook\
6636 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6637 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
66156638
66166639 # Transform an extracted symbol line into symbol name and symbol address
6617 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6618 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6640 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6641 $lt_c_name_hook\
6642 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6643 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6644
6645 # Transform an extracted symbol line into symbol name with lib prefix and
6646 # symbol address.
6647 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6648 $lt_c_name_lib_hook\
6649 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6650 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6651 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
66196652
66206653 # Handle CRLF in mingw tool chain
66216654 opt_cr=
66336666
66346667 # Write the raw and C identifiers.
66356668 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6636 # Fake it for dumpbin and say T for any non-static function
6637 # and D for any global variable.
6669 # Fake it for dumpbin and say T for any non-static function,
6670 # D for any global variable and I for any imported variable.
66386671 # Also find C++ and __fastcall symbols from MSVC++,
66396672 # which start with @ or ?.
66406673 lt_cv_sys_global_symbol_pipe="$AWK '"\
66416674 " {last_section=section; section=\$ 3};"\
66426675 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
66436676 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6677 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6678 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6679 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
66446680 " \$ 0!~/External *\|/{next};"\
66456681 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
66466682 " {if(hide[section]) next};"\
6647 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6648 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6649 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6650 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6683 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6684 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6685 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6686 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
66516687 " ' prfx=^$ac_symprfx"
66526688 else
66536689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
66956731 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
66966732 cat <<_LT_EOF > conftest.$ac_ext
66976733 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6698 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6699 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6734 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6735 /* DATA imports from DLLs on WIN32 can't be const, because runtime
67006736 relocations are performed -- see ld's documentation on pseudo-relocs. */
67016737 # define LT_DLSYM_CONST
6702 #elif defined(__osf__)
6738 #elif defined __osf__
67036739 /* This system does not cope well with relocations in const data. */
67046740 # define LT_DLSYM_CONST
67056741 #else
67256761 {
67266762 { "@PROGRAM@", (void *) 0 },
67276763 _LT_EOF
6728 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6764 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
67296765 cat <<\_LT_EOF >> conftest.$ac_ext
67306766 {0, (void *) 0}
67316767 };
67456781 mv conftest.$ac_objext conftstm.$ac_objext
67466782 lt_globsym_save_LIBS=$LIBS
67476783 lt_globsym_save_CFLAGS=$CFLAGS
6748 LIBS="conftstm.$ac_objext"
6784 LIBS=conftstm.$ac_objext
67496785 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
67506786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
67516787 (eval $ac_link) 2>&5
67526788 ac_status=$?
67536789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6790 test $ac_status = 0; } && test -s conftest$ac_exeext; then
67556791 pipe_works=yes
67566792 fi
67576793 LIBS=$lt_globsym_save_LIBS
67726808 rm -rf conftest* conftst*
67736809
67746810 # Do not use the global_symbol_pipe unless it works.
6775 if test "$pipe_works" = yes; then
6811 if test yes = "$pipe_works"; then
67766812 break
67776813 else
67786814 lt_cv_sys_global_symbol_pipe=
68256861
68266862
68276863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
68286874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
68296875 $as_echo_n "checking for sysroot... " >&6; }
68306876
68376883
68386884
68396885 lt_sysroot=
6840 case ${with_sysroot} in #(
6886 case $with_sysroot in #(
68416887 yes)
6842 if test "$GCC" = yes; then
6888 if test yes = "$GCC"; then
68436889 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
68446890 fi
68456891 ;; #(
68496895 no|'')
68506896 ;; #(
68516897 *)
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6853 $as_echo "${with_sysroot}" >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6899 $as_echo "$with_sysroot" >&6; }
68546900 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
68556901 ;;
68566902 esac
68626908
68636909
68646910
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6912 $as_echo_n "checking for a working dd... " >&6; }
6913 if ${ac_cv_path_lt_DD+:} false; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 printf 0123456789abcdef0123456789abcdef >conftest.i
6917 cat conftest.i conftest.i >conftest2.i
6918 : ${lt_DD:=$DD}
6919 if test -z "$lt_DD"; then
6920 ac_path_lt_DD_found=false
6921 # Loop through the user's path and test for each of PROGNAME-LIST
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_prog in dd; do
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6930 as_fn_executable_p "$ac_path_lt_DD" || continue
6931 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6932 cmp -s conftest.i conftest.out \
6933 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6934 fi
6935 $ac_path_lt_DD_found && break 3
6936 done
6937 done
6938 done
6939 IFS=$as_save_IFS
6940 if test -z "$ac_cv_path_lt_DD"; then
6941 :
6942 fi
6943 else
6944 ac_cv_path_lt_DD=$lt_DD
6945 fi
6946
6947 rm -f conftest.i conftest2.i conftest.out
6948 fi
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6950 $as_echo "$ac_cv_path_lt_DD" >&6; }
6951
6952
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6954 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6955 if ${lt_cv_truncate_bin+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 printf 0123456789abcdef0123456789abcdef >conftest.i
6959 cat conftest.i conftest.i >conftest2.i
6960 lt_cv_truncate_bin=
6961 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6962 cmp -s conftest.i conftest.out \
6963 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6964 fi
6965 rm -f conftest.i conftest2.i conftest.out
6966 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6967 fi
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6969 $as_echo "$lt_cv_truncate_bin" >&6; }
6970
6971
6972
6973
6974
6975
6976
6977 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6978 func_cc_basename ()
6979 {
6980 for cc_temp in $*""; do
6981 case $cc_temp in
6982 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6983 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6984 \-*) ;;
6985 *) break;;
6986 esac
6987 done
6988 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6989 }
6990
68656991 # Check whether --enable-libtool-lock was given.
68666992 if test "${enable_libtool_lock+set}" = set; then :
68676993 enableval=$enable_libtool_lock;
68686994 fi
68696995
6870 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6996 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
68716997
68726998 # Some flags need to be propagated to the compiler or linker for good
68736999 # libtool support.
68747000 case $host in
68757001 ia64-*-hpux*)
6876 # Find out which ABI we are using.
7002 # Find out what ABI is being produced by ac_compile, and set mode
7003 # options accordingly.
68777004 echo 'int i;' > conftest.$ac_ext
68787005 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
68797006 (eval $ac_compile) 2>&5
68827009 test $ac_status = 0; }; then
68837010 case `/usr/bin/file conftest.$ac_objext` in
68847011 *ELF-32*)
6885 HPUX_IA64_MODE="32"
7012 HPUX_IA64_MODE=32
68867013 ;;
68877014 *ELF-64*)
6888 HPUX_IA64_MODE="64"
7015 HPUX_IA64_MODE=64
68897016 ;;
68907017 esac
68917018 fi
68927019 rm -rf conftest*
68937020 ;;
68947021 *-*-irix6*)
6895 # Find out which ABI we are using.
7022 # Find out what ABI is being produced by ac_compile, and set linker
7023 # options accordingly.
68967024 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
68977025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
68987026 (eval $ac_compile) 2>&5
68997027 ac_status=$?
69007028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
69017029 test $ac_status = 0; }; then
6902 if test "$lt_cv_prog_gnu_ld" = yes; then
7030 if test yes = "$lt_cv_prog_gnu_ld"; then
69037031 case `/usr/bin/file conftest.$ac_objext` in
69047032 *32-bit*)
69057033 LD="${LD-ld} -melf32bsmip"
69287056 rm -rf conftest*
69297057 ;;
69307058
7059 mips64*-*linux*)
7060 # Find out what ABI is being produced by ac_compile, and set linker
7061 # options accordingly.
7062 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7064 (eval $ac_compile) 2>&5
7065 ac_status=$?
7066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7067 test $ac_status = 0; }; then
7068 emul=elf
7069 case `/usr/bin/file conftest.$ac_objext` in
7070 *32-bit*)
7071 emul="${emul}32"
7072 ;;
7073 *64-bit*)
7074 emul="${emul}64"
7075 ;;
7076 esac
7077 case `/usr/bin/file conftest.$ac_objext` in
7078 *MSB*)
7079 emul="${emul}btsmip"
7080 ;;
7081 *LSB*)
7082 emul="${emul}ltsmip"
7083 ;;
7084 esac
7085 case `/usr/bin/file conftest.$ac_objext` in
7086 *N32*)
7087 emul="${emul}n32"
7088 ;;
7089 esac
7090 LD="${LD-ld} -m $emul"
7091 fi
7092 rm -rf conftest*
7093 ;;
7094
69317095 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
69327096 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6933 # Find out which ABI we are using.
7097 # Find out what ABI is being produced by ac_compile, and set linker
7098 # options accordingly. Note that the listed cases only cover the
7099 # situations where additional linker options are needed (such as when
7100 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7101 # vice versa); the common cases where no linker options are needed do
7102 # not appear in the list.
69347103 echo 'int i;' > conftest.$ac_ext
69357104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
69367105 (eval $ac_compile) 2>&5
69537122 ;;
69547123 esac
69557124 ;;
6956 powerpc64le-*)
7125 powerpc64le-*linux*)
69577126 LD="${LD-ld} -m elf32lppclinux"
69587127 ;;
6959 powerpc64-*)
7128 powerpc64-*linux*)
69607129 LD="${LD-ld} -m elf32ppclinux"
69617130 ;;
69627131 s390x-*linux*)
69757144 x86_64-*linux*)
69767145 LD="${LD-ld} -m elf_x86_64"
69777146 ;;
6978 powerpcle-*)
7147 powerpcle-*linux*)
69797148 LD="${LD-ld} -m elf64lppc"
69807149 ;;
6981 powerpc-*)
7150 powerpc-*linux*)
69827151 LD="${LD-ld} -m elf64ppc"
69837152 ;;
69847153 s390*-*linux*|s390*-*tpf*)
69967165
69977166 *-*-sco3.2v5*)
69987167 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6999 SAVE_CFLAGS="$CFLAGS"
7168 SAVE_CFLAGS=$CFLAGS
70007169 CFLAGS="$CFLAGS -belf"
70017170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
70027171 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
70367205 fi
70377206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
70387207 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7039 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7208 if test yes != "$lt_cv_cc_needs_belf"; then
70407209 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7041 CFLAGS="$SAVE_CFLAGS"
7210 CFLAGS=$SAVE_CFLAGS
70427211 fi
70437212 ;;
70447213 *-*solaris*)
7045 # Find out which ABI we are using.
7214 # Find out what ABI is being produced by ac_compile, and set linker
7215 # options accordingly.
70467216 echo 'int i;' > conftest.$ac_ext
70477217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
70487218 (eval $ac_compile) 2>&5
70547224 case $lt_cv_prog_gnu_ld in
70557225 yes*)
70567226 case $host in
7057 i?86-*-solaris*)
7227 i?86-*-solaris*|x86_64-*-solaris*)
70587228 LD="${LD-ld} -m elf_x86_64"
70597229 ;;
70607230 sparc*-*-solaris*)
70637233 esac
70647234 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
70657235 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7066 LD="${LD-ld}_sol2"
7236 LD=${LD-ld}_sol2
70677237 fi
70687238 ;;
70697239 *)
70797249 ;;
70807250 esac
70817251
7082 need_locks="$enable_libtool_lock"
7252 need_locks=$enable_libtool_lock
70837253
70847254 if test -n "$ac_tool_prefix"; then
70857255 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
71907360 fi
71917361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
71927362 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7193 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7363 if test yes != "$lt_cv_path_mainfest_tool"; then
71947364 MANIFEST_TOOL=:
71957365 fi
71967366
76937863 $as_echo_n "(cached) " >&6
76947864 else
76957865 lt_cv_apple_cc_single_mod=no
7696 if test -z "${LT_MULTI_MODULE}"; then
7866 if test -z "$LT_MULTI_MODULE"; then
76977867 # By default we will add the -single_module flag. You can override
76987868 # by either setting the environment variable LT_MULTI_MODULE
76997869 # non-empty at configure time, or by adding -multi_module to the
77117881 cat conftest.err >&5
77127882 # Otherwise, if the output was created with a 0 exit code from
77137883 # the compiler, it worked.
7714 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7884 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
77157885 lt_cv_apple_cc_single_mod=yes
77167886 else
77177887 cat conftest.err >&5
77507920 fi
77517921 rm -f core conftest.err conftest.$ac_objext \
77527922 conftest$ac_exeext conftest.$ac_ext
7753 LDFLAGS="$save_LDFLAGS"
7923 LDFLAGS=$save_LDFLAGS
77547924
77557925 fi
77567926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
77797949 _lt_result=$?
77807950 if test -s conftest.err && $GREP force_load conftest.err; then
77817951 cat conftest.err >&5
7782 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7952 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
77837953 lt_cv_ld_force_load=yes
77847954 else
77857955 cat conftest.err >&5
77927962 $as_echo "$lt_cv_ld_force_load" >&6; }
77937963 case $host_os in
77947964 rhapsody* | darwin1.[012])
7795 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7965 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
77967966 darwin1.*)
7797 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7967 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
77987968 darwin*) # darwin 5.x on
77997969 # if running on 10.5 or later, the deployment target defaults
78007970 # to the OS version, if on x86, and 10.4, the deployment
78017971 # target defaults to 10.4. Don't you love it?
78027972 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
78037973 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7804 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7805 10.[012]*)
7806 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7974 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7975 10.[012][,.]*)
7976 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
78077977 10.*)
7808 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7978 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
78097979 esac
78107980 ;;
78117981 esac
7812 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7982 if test yes = "$lt_cv_apple_cc_single_mod"; then
78137983 _lt_dar_single_mod='$single_module'
78147984 fi
7815 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7816 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7985 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7986 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
78177987 else
7818 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7988 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
78197989 fi
7820 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7990 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
78217991 _lt_dsymutil='~$DSYMUTIL $lib || :'
78227992 else
78237993 _lt_dsymutil=
78247994 fi
78257995 ;;
78267996 esac
7997
7998 # func_munge_path_list VARIABLE PATH
7999 # -----------------------------------
8000 # VARIABLE is name of variable containing _space_ separated list of
8001 # directories to be munged by the contents of PATH, which is string
8002 # having a format:
8003 # "DIR[:DIR]:"
8004 # string "DIR[ DIR]" will be prepended to VARIABLE
8005 # ":DIR[:DIR]"
8006 # string "DIR[ DIR]" will be appended to VARIABLE
8007 # "DIRP[:DIRP]::[DIRA:]DIRA"
8008 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8009 # "DIRA[ DIRA]" will be appended to VARIABLE
8010 # "DIR[:DIR]"
8011 # VARIABLE will be replaced by "DIR[ DIR]"
8012 func_munge_path_list ()
8013 {
8014 case x$2 in
8015 x)
8016 ;;
8017 *:)
8018 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8019 ;;
8020 x:*)
8021 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8022 ;;
8023 *::*)
8024 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8025 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8026 ;;
8027 *)
8028 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8029 ;;
8030 esac
8031 }
78278032
78288033 ac_ext=c
78298034 ac_cpp='$CPP $CPPFLAGS'
81108315
81118316 func_stripname_cnf ()
81128317 {
8113 case ${2} in
8114 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8115 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8318 case $2 in
8319 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8320 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
81168321 esac
81178322 } # func_stripname_cnf
81188323
81398344 *)
81408345 enable_shared=no
81418346 # Look at the argument we got. We use all the common list separators.
8142 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8347 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
81438348 for pkg in $enableval; do
8144 IFS="$lt_save_ifs"
8349 IFS=$lt_save_ifs
81458350 if test "X$pkg" = "X$p"; then
81468351 enable_shared=yes
81478352 fi
81488353 done
8149 IFS="$lt_save_ifs"
8354 IFS=$lt_save_ifs
81508355 ;;
81518356 esac
81528357 else
81708375 *)
81718376 enable_static=no
81728377 # Look at the argument we got. We use all the common list separators.
8173 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8378 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
81748379 for pkg in $enableval; do
8175 IFS="$lt_save_ifs"
8380 IFS=$lt_save_ifs
81768381 if test "X$pkg" = "X$p"; then
81778382 enable_static=yes
81788383 fi
81798384 done
8180 IFS="$lt_save_ifs"
8385 IFS=$lt_save_ifs
81818386 ;;
81828387 esac
81838388 else
82018406 *)
82028407 pic_mode=default
82038408 # Look at the argument we got. We use all the common list separators.
8204 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8409 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
82058410 for lt_pkg in $withval; do
8206 IFS="$lt_save_ifs"
8411 IFS=$lt_save_ifs
82078412 if test "X$lt_pkg" = "X$lt_p"; then
82088413 pic_mode=yes
82098414 fi
82108415 done
8211 IFS="$lt_save_ifs"
8416 IFS=$lt_save_ifs
82128417 ;;
82138418 esac
82148419 else
82158420 pic_mode=default
82168421 fi
82178422
8218
8219 test -z "$pic_mode" && pic_mode=default
82208423
82218424
82228425
82338436 *)
82348437 enable_fast_install=no
82358438 # Look at the argument we got. We use all the common list separators.
8236 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8439 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
82378440 for pkg in $enableval; do
8238 IFS="$lt_save_ifs"
8441 IFS=$lt_save_ifs
82398442 if test "X$pkg" = "X$p"; then
82408443 enable_fast_install=yes
82418444 fi
82428445 done
8243 IFS="$lt_save_ifs"
8446 IFS=$lt_save_ifs
82448447 ;;
82458448 esac
82468449 else
82548457
82558458
82568459
8460 shared_archive_member_spec=
8461 case $host,$enable_shared in
8462 power*-*-aix[5-9]*,yes)
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8464 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8465
8466 # Check whether --with-aix-soname was given.
8467 if test "${with_aix_soname+set}" = set; then :
8468 withval=$with_aix_soname; case $withval in
8469 aix|svr4|both)
8470 ;;
8471 *)
8472 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8473 ;;
8474 esac
8475 lt_cv_with_aix_soname=$with_aix_soname
8476 else
8477 if ${lt_cv_with_aix_soname+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 lt_cv_with_aix_soname=aix
8481 fi
8482
8483 with_aix_soname=$lt_cv_with_aix_soname
8484 fi
8485
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8487 $as_echo "$with_aix_soname" >&6; }
8488 if test aix != "$with_aix_soname"; then
8489 # For the AIX way of multilib, we name the shared archive member
8490 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8491 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8492 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8493 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8494 if test 64 = "${OBJECT_MODE-32}"; then
8495 shared_archive_member_spec=shr_64
8496 else
8497 shared_archive_member_spec=shr
8498 fi
8499 fi
8500 ;;
8501 *)
8502 with_aix_soname=aix
8503 ;;
8504 esac
8505
8506
8507
8508
8509
8510
8511
82578512
82588513
82598514
82608515 # This can be used to rebuild libtool when needed
8261 LIBTOOL_DEPS="$ltmain"
8516 LIBTOOL_DEPS=$ltmain
82628517
82638518 # Always use our own libtool.
82648519 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
83078562
83088563
83098564
8310 if test -n "${ZSH_VERSION+set}" ; then
8565 if test -n "${ZSH_VERSION+set}"; then
83118566 setopt NO_GLOB_SUBST
83128567 fi
83138568