1 Index: libffi/ChangeLog.libffi
2 ===================================================================
4 +++ libffi/ChangeLog.libffi
6 +2009-12-25 Samuli Suominen <ssuominen@gentoo.org>
8 + * configure.ac: Undefine _AC_ARG_VAR_PRECIOUS for autoconf 2.64.
9 + * configure: Rebuilt.
10 + * fficonfig.h.in: Rebuilt.
12 +2009-06-16 Andrew Haley <aph@redhat.com>
14 + * testsuite/libffi.call/cls_align_sint64.c,
15 + testsuite/libffi.call/cls_align_uint64.c,
16 + testsuite/libffi.call/cls_longdouble_va.c,
17 + testsuite/libffi.call/cls_ulonglong.c,
18 + testsuite/libffi.call/return_ll1.c,
19 + testsuite/libffi.call/stret_medium2.c: Fix printf format
21 + * testsuite/libffi.call/huge_struct.c: Ad x86 XFAILs.
22 + * testsuite/libffi.call/float2.c: Fix dg-excess-errors.
23 + * testsuite/libffi.call/ffitest.h,
24 + testsuite/libffi.special/ffitestcxx.h (PRIdLL, PRIuLL): Define.
26 +2009-06-12 Andrew Haley <aph@redhat.com>
28 + * testsuite/libffi.call/cls_align_sint64.c,
29 + testsuite/libffi.call/cls_align_uint64.c,
30 + testsuite/libffi.call/cls_ulonglong.c,
31 + testsuite/libffi.call/return_ll1.c,
32 + testsuite/libffi.call/stret_medium2.c: Fix printf format
34 + testsuite/libffi.special/unwindtest.cc: include stdint.h.
36 +2009-06-11 Timothy Wall <twall@users.sf.net>
41 + include/ffi_common.h,
45 + src/x86/ffitarget.h,
46 + src/x86/win64.S (new),
47 + README: Added win64 support (mingw or MSVC)
49 + include/Makefile.in,
51 + testsuite/Makefile.in,
53 + aclocal.m4: Regenerated
54 + * ltcf-c.sh: properly escape cygwin/w32 path
55 + * man/ffi_call.3: Clarify size requirements for return value.
56 + * src/x86/ffi64.c: Fix filename in comment.
57 + * src/x86/win32.S: Remove unused extern.
59 + * testsuite/libffi.call/closure_fn0.c,
60 + testsuite/libffi.call/closure_fn1.c,
61 + testsuite/libffi.call/closure_fn2.c,
62 + testsuite/libffi.call/closure_fn3.c,
63 + testsuite/libffi.call/closure_fn4.c,
64 + testsuite/libffi.call/closure_fn5.c,
65 + testsuite/libffi.call/closure_fn6.c,
66 + testsuite/libffi.call/closure_stdcall.c,
67 + testsuite/libffi.call/cls_12byte.c,
68 + testsuite/libffi.call/cls_16byte.c,
69 + testsuite/libffi.call/cls_18byte.c,
70 + testsuite/libffi.call/cls_19byte.c,
71 + testsuite/libffi.call/cls_1_1byte.c,
72 + testsuite/libffi.call/cls_20byte.c,
73 + testsuite/libffi.call/cls_20byte1.c,
74 + testsuite/libffi.call/cls_24byte.c,
75 + testsuite/libffi.call/cls_2byte.c,
76 + testsuite/libffi.call/cls_3_1byte.c,
77 + testsuite/libffi.call/cls_3byte1.c,
78 + testsuite/libffi.call/cls_3byte2.c,
79 + testsuite/libffi.call/cls_4_1byte.c,
80 + testsuite/libffi.call/cls_4byte.c,
81 + testsuite/libffi.call/cls_5_1_byte.c,
82 + testsuite/libffi.call/cls_5byte.c,
83 + testsuite/libffi.call/cls_64byte.c,
84 + testsuite/libffi.call/cls_6_1_byte.c,
85 + testsuite/libffi.call/cls_6byte.c,
86 + testsuite/libffi.call/cls_7_1_byte.c,
87 + testsuite/libffi.call/cls_7byte.c,
88 + testsuite/libffi.call/cls_8byte.c,
89 + testsuite/libffi.call/cls_9byte1.c,
90 + testsuite/libffi.call/cls_9byte2.c,
91 + testsuite/libffi.call/cls_align_double.c,
92 + testsuite/libffi.call/cls_align_float.c,
93 + testsuite/libffi.call/cls_align_longdouble.c,
94 + testsuite/libffi.call/cls_align_longdouble_split.c,
95 + testsuite/libffi.call/cls_align_longdouble_split2.c,
96 + testsuite/libffi.call/cls_align_pointer.c,
97 + testsuite/libffi.call/cls_align_sint16.c,
98 + testsuite/libffi.call/cls_align_sint32.c,
99 + testsuite/libffi.call/cls_align_sint64.c,
100 + testsuite/libffi.call/cls_align_uint16.c,
101 + testsuite/libffi.call/cls_align_uint32.c,
102 + testsuite/libffi.call/cls_align_uint64.c,
103 + testsuite/libffi.call/cls_dbls_struct.c,
104 + testsuite/libffi.call/cls_double.c,
105 + testsuite/libffi.call/cls_double_va.c,
106 + testsuite/libffi.call/cls_float.c,
107 + testsuite/libffi.call/cls_longdouble.c,
108 + testsuite/libffi.call/cls_longdouble_va.c,
109 + testsuite/libffi.call/cls_multi_schar.c,
110 + testsuite/libffi.call/cls_multi_sshort.c,
111 + testsuite/libffi.call/cls_multi_sshortchar.c,
112 + testsuite/libffi.call/cls_multi_uchar.c,
113 + testsuite/libffi.call/cls_multi_ushort.c,
114 + testsuite/libffi.call/cls_multi_ushortchar.c,
115 + testsuite/libffi.call/cls_pointer.c,
116 + testsuite/libffi.call/cls_pointer_stack.c,
117 + testsuite/libffi.call/cls_schar.c,
118 + testsuite/libffi.call/cls_sint.c,
119 + testsuite/libffi.call/cls_sshort.c,
120 + testsuite/libffi.call/cls_uchar.c,
121 + testsuite/libffi.call/cls_uint.c,
122 + testsuite/libffi.call/cls_ulonglong.c,
123 + testsuite/libffi.call/cls_ushort.c,
124 + testsuite/libffi.call/err_bad_abi.c,
125 + testsuite/libffi.call/err_bad_typedef.c,
126 + testsuite/libffi.call/float2.c,
127 + testsuite/libffi.call/huge_struct.c,
128 + testsuite/libffi.call/nested_struct.c,
129 + testsuite/libffi.call/nested_struct1.c,
130 + testsuite/libffi.call/nested_struct10.c,
131 + testsuite/libffi.call/nested_struct2.c,
132 + testsuite/libffi.call/nested_struct3.c,
133 + testsuite/libffi.call/nested_struct4.c,
134 + testsuite/libffi.call/nested_struct5.c,
135 + testsuite/libffi.call/nested_struct6.c,
136 + testsuite/libffi.call/nested_struct7.c,
137 + testsuite/libffi.call/nested_struct8.c,
138 + testsuite/libffi.call/nested_struct9.c,
139 + testsuite/libffi.call/problem1.c,
140 + testsuite/libffi.call/return_ldl.c,
141 + testsuite/libffi.call/return_ll1.c,
142 + testsuite/libffi.call/stret_large.c,
143 + testsuite/libffi.call/stret_large2.c,
144 + testsuite/libffi.call/stret_medium.c,
145 + testsuite/libffi.call/stret_medium2.c,
146 + testsuite/libffi.special/unwindtest.cc: use ffi_closure_alloc instead
147 + of checking for MMAP. Use intptr_t instead of long casts.
149 +2009-06-04 Andrew Haley <aph@redhat.com>
151 + * src/powerpc/ffitarget.h: Fix misapplied merge from gcc.
153 +2009-06-04 Andrew Haley <aph@redhat.com>
156 + src/mips/n32.S: Fix licence formatting.
158 +2009-06-04 Andrew Haley <aph@redhat.com>
160 + * src/x86/darwin.S: Fix licence formatting.
161 + src/x86/win32.S: Likewise.
162 + src/sh64/sysv.S: Likewise.
163 + src/sh/sysv.S: Likewise.
165 +2009-06-04 Andrew Haley <aph@redhat.com>
167 + * src/sh64/ffi.c: Remove lint directives. Was missing from merge
168 + of Andreas Tobler's patch from 2006-04-22.
170 +2009-06-04 Andrew Haley <aph@redhat.com>
172 + * src/sh/ffi.c: Apply missing hunk from Alexandre Oliva's patch of
175 +2008-12-26 Timothy Wall <twall@users.sf.net>
177 + * testsuite/libffi.call/cls_longdouble.c,
178 + testsuite/libffi.call/cls_longdouble_va.c,
179 + testsuite/libffi.call/cls_align_longdouble.c,
180 + testsuite/libffi.call/cls_align_longdouble_split.c,
181 + testsuite/libffi.call/cls_align_longdouble_split2.c: mark expected
182 + failures on x86_64 cygwin/mingw.
184 +2008-12-22 Timothy Wall <twall@users.sf.net>
186 + * testsuite/libffi.call/closure_fn0.c,
187 + testsuite/libffi.call/closure_fn1.c,
188 + testsuite/libffi.call/closure_fn2.c,
189 + testsuite/libffi.call/closure_fn3.c,
190 + testsuite/libffi.call/closure_fn4.c,
191 + testsuite/libffi.call/closure_fn5.c,
192 + testsuite/libffi.call/closure_fn6.c,
193 + testsuite/libffi.call/closure_loc_fn0.c,
194 + testsuite/libffi.call/closure_stdcall.c,
195 + testsuite/libffi.call/cls_align_pointer.c,
196 + testsuite/libffi.call/cls_pointer.c,
197 + testsuite/libffi.call/cls_pointer_stack.c: use portable cast from
198 + pointer to integer (intptr_t).
199 + * testsuite/libffi.call/cls_longdouble.c: disable for win64.
201 +2008-12-19 Anthony Green <green@redhat.com>
203 + * configure.ac: Bump version to 3.0.8.
204 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
205 + * libtool-version: Increment revision.
206 + * README: Update for new release.
208 +2008-11-11 Anthony Green <green@redhat.com>
210 + * configure.ac: Bump version to 3.0.7.
211 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
212 + * libtool-version: Increment revision.
213 + * README: Update for new release.
215 +2008-08-25 Andreas Tobler <a.tobler@schweiz.org>
217 + * src/powerpc/ffitarget.h (ffi_abi): Add FFI_LINUX and
218 + FFI_LINUX_SOFT_FLOAT to the POWERPC_FREEBSD enum.
219 + Add note about flag bits used for FFI_SYSV_TYPE_SMALL_STRUCT.
220 + Adjust copyright notice.
221 + * src/powerpc/ffi.c: Add two new flags to indicate if we have one
222 + register or two register to use for FFI_SYSV structs.
223 + (ffi_prep_cif_machdep): Pass the right register flag introduced above.
224 + (ffi_closure_helper_SYSV): Fix the return type for
225 + FFI_SYSV_TYPE_SMALL_STRUCT. Comment.
226 + Adjust copyright notice.
228 +2008-07-24 Anthony Green <green@redhat.com>
230 + * testsuite/libffi.call/cls_dbls_struct.c,
231 + testsuite/libffi.call/cls_double_va.c,
232 + testsuite/libffi.call/cls_longdouble.c,
233 + testsuite/libffi.call/cls_longdouble_va.c,
234 + testsuite/libffi.call/cls_pointer.c,
235 + testsuite/libffi.call/cls_pointer_stack.c,
236 + testsuite/libffi.call/err_bad_abi.c: Clean up failures from
239 +2008-07-17 Anthony Green <green@redhat.com>
241 + * configure.ac: Bump version to 3.0.6.
242 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
243 + * libtool-version: Increment revision. Add documentation.
244 + * README: Update for new release.
246 +2008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
248 + * src/sh/ffi.c (ffi_prep_closure_loc): Turn INSN into an unsigned
251 +2008-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
253 + * src/sh/sysv.S: Add .note.GNU-stack on Linux.
254 + * src/sh64/sysv.S: Likewise.
256 +2008-04-03 Anthony Green <green@redhat.com>
258 + * libffi.pc.in (Libs): Add -L${libdir}.
259 + * configure.ac: Bump version to 3.0.5.
260 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
261 + * libtool-version: Increment revision.
262 + * README: Update for new release.
264 +2008-04-03 Anthony Green <green@redhat.com>
265 + Xerces Ranby <xerxes@zafena.se>
267 + * include/ffi.h.in: Wrap definition of target architecture to
268 + protect from double definitions.
270 +2008-03-22 Moriyoshi Koizumi <moriyoshi@gmail.com>
272 + * src/x86/ffi.c (ffi_prep_closure_loc): Fix for bug revealed in
274 + * testsuite/libffi.call/closure_loc_fn0.c (closure_loc_test_fn0):
277 +2008-03-04 Anthony Green <green@redhat.com>
281 + * testsuite/libffi.call/cls_align_longdouble_split2.c
282 + testsuite/libffi.call/cls_align_longdouble_split.c
283 + testsuite/libffi.call/cls_dbls_struct.c
284 + testsuite/libffi.call/cls_double_va.c
285 + testsuite/libffi.call/cls_longdouble.c
286 + testsuite/libffi.call/cls_longdouble_va.c
287 + testsuite/libffi.call/cls_pointer.c
288 + testsuite/libffi.call/cls_pointer_stack.c
289 + testsuite/libffi.call/err_bad_abi.c
290 + testsuite/libffi.call/err_bad_typedef.c
291 + testsuite/libffi.call/huge_struct.c
292 + testsuite/libffi.call/stret_large2.c
293 + testsuite/libffi.call/stret_large.c
294 + testsuite/libffi.call/stret_medium2.c
295 + testsuite/libffi.call/stret_medium.c: New tests from Apple.
297 +2008-02-26 Jakub Jelinek <jakub@redhat.com>
298 + Anthony Green <green@redhat.com>
300 + * src/alpha/osf.S: Add .note.GNU-stack on Linux.
301 + * src/s390/sysv.S: Likewise.
302 + * src/powerpc/linux64.S: Likewise.
303 + * src/powerpc/linux64_closure.S: Likewise.
304 + * src/powerpc/ppc_closure.S: Likewise.
305 + * src/powerpc/sysv.S: Likewise.
306 + * src/x86/unix64.S: Likewise.
307 + * src/x86/sysv.S: Likewise.
308 + * src/sparc/v8.S: Likewise.
309 + * src/sparc/v9.S: Likewise.
310 + * src/m68k/sysv.S: Likewise.
311 + * src/ia64/unix.S: Likewise.
312 + * src/arm/sysv.S: Likewise.
314 +2008-02-26 Anthony Green <green@redhat.com>
315 + Thomas Heller <theller@ctypes.org>
317 + * src/x86/ffi.c (ffi_closure_SYSV_inner): Change C++ comment to C
320 +2008-02-26 Anthony Green <green@redhat.org>
321 + Thomas Heller <theller@ctypes.org>
323 + * include/ffi.h.in: Change void (*)() to void (*)(void).
325 +2008-02-26 Anthony Green <green@redhat.org>
326 + Thomas Heller <theller@ctypes.org>
328 + * src/alpha/ffi.c: Change void (*)() to void (*)(void).
329 + src/alpha/osf.S, src/arm/ffi.c, src/frv/ffi.c, src/ia64/ffi.c,
330 + src/ia64/unix.S, src/java_raw_api.c, src/m32r/ffi.c,
331 + src/mips/ffi.c, src/pa/ffi.c, src/pa/hpux32.S, src/pa/linux.S,
332 + src/powerpc/ffi.c, src/powerpc/ffi_darwin.c, src/raw_api.c,
333 + src/s390/ffi.c, src/sh/ffi.c, src/sh64/ffi.c, src/sparc/ffi.c,
334 + src/x86/ffi.c, src/x86/unix64.S, src/x86/darwin64.S,
335 + src/x86/ffi64.c: Ditto.
337 +2008-02-24 Anthony Green <green@redhat.org>
339 + * configure.ac: Accept openbsd*, not just openbsd.
340 + Bump version to 3.0.4.
341 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
342 + * libtool-version: Increment revision.
343 + * README: Update for new release.
345 +2008-02-22 Anthony Green <green@redhat.com>
347 + * README: Clean up list of tested platforms.
349 +2008-02-22 Anthony Green <green@redhat.com>
351 + * configure.ac: Bump version to 3.0.3.
352 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
353 + * libtool-version: Increment revision.
354 + * README: Update for new release. Clean up test docs.
356 +2008-02-22 Bjoern Koenig <bkoenig@alpha-tierchen.de>
357 + Andreas Tobler <a.tobler@schweiz.org>
359 + * configure.ac: Add amd64-*-freebsd* target.
360 + * configure: Regenerate.
362 +2008-02-22 Thomas Heller <theller@ctypes.org>
364 + * configure.ac: Add x86 OpenBSD support.
365 + * configure: Rebuilt.
367 +2008-02-21 Thomas Heller <theller@ctypes.org>
369 + * README: Change "make test" to "make check".
371 +2008-02-21 Anthony Green <green@redhat.com>
373 + * configure.ac: Bump version to 3.0.2.
374 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
375 + * libtool-version: Increment revision.
376 + * README: Update for new release.
378 +2008-02-21 Björn König <bkoenig@alpha-tierchen.de>
380 + * src/x86/freebsd.S: New file.
381 + * configure.ac: Add x86 FreeBSD support.
382 + * Makefile.am: Ditto.
384 +2008-02-15 Anthony Green <green@redhat.com>
386 + * configure.ac: Bump version to 3.0.1.
387 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
388 + * libtool-version: Increment revision.
389 + * README: Update for new release.
391 +2008-02-15 David Daney <ddaney@avtrex.com>
393 + * src/mips/ffi.c: Remove extra '>' from include directive.
394 + (ffi_prep_closure_loc): Use clear_location instead of tramp.
396 +2008-02-15 Anthony Green <green@redhat.com>
398 + * configure.ac: Bump version to 3.0.0.
399 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
401 +2008-02-15 David Daney <ddaney@avtrex.com>
403 + * src/mips/ffi.c (USE__BUILTIN___CLEAR_CACHE):
404 + Define (conditionally), and use it to include cachectl.h.
405 + (ffi_prep_closure_loc): Fix cache flushing.
406 + * src/mips/ffitarget.h (_ABIN32, _ABI64, _ABIO32): Define.
408 +2008-02-15 Anthony Green <green@redhat.com>
410 + * man/ffi_call.3, man/ffi_prep_cif.3, man/ffi.3:
411 + Update dates and remove all references to ffi_prep_closure.
412 + * configure.ac: Bump version to 2.99.9.
413 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
415 +2008-02-15 Anthony Green <green@redhat.com>
417 + * man/ffi_prep_closure.3: Delete.
418 + * man/Makefile.am (EXTRA_DIST): Remove ffi_prep_closure.3.
420 + * man/Makefile.in: Rebuilt.
421 + * configure.ac: Bump version to 2.99.8.
422 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
424 +2008-02-14 Anthony Green <green@redhat.com>
426 + * configure.ac: Bump version to 2.99.7.
427 + * configure, doc/stamp-vti, doc/version.texi: Rebuilt.
428 + * include/ffi.h.in LICENSE src/debug.c src/closures.c
429 + src/ffitest.c src/s390/sysv.S src/s390/ffitarget.h
430 + src/types.c src/m68k/ffitarget.h src/raw_api.c src/frv/ffi.c
431 + src/frv/ffitarget.h src/sh/ffi.c src/sh/sysv.S
432 + src/sh/ffitarget.h src/powerpc/ffitarget.h src/pa/ffi.c
433 + src/pa/ffitarget.h src/pa/linux.S src/java_raw_api.c
434 + src/cris/ffitarget.h src/x86/ffi.c src/x86/sysv.S
435 + src/x86/unix64.S src/x86/win32.S src/x86/ffitarget.h
436 + src/x86/ffi64.c src/x86/darwin.S src/ia64/ffi.c
437 + src/ia64/ffitarget.h src/ia64/ia64_flags.h src/ia64/unix.S
438 + src/sparc/ffi.c src/sparc/v9.S src/sparc/ffitarget.h
439 + src/sparc/v8.S src/alpha/ffi.c src/alpha/ffitarget.h
440 + src/alpha/osf.S src/sh64/ffi.c src/sh64/sysv.S
441 + src/sh64/ffitarget.h src/mips/ffi.c src/mips/ffitarget.h
442 + src/mips/n32.S src/mips/o32.S src/arm/ffi.c src/arm/sysv.S
443 + src/arm/ffitarget.h src/prep_cif.c: Update license text.
445 +2008-02-14 Anthony Green <green@redhat.com>
447 + * README: Update tested platforms.
448 + * configure.ac: Bump version to 2.99.6.
449 + * configure: Rebuilt.
451 +2008-02-14 Anthony Green <green@redhat.com>
453 + * configure.ac: Bump version to 2.99.5.
454 + * configure: Rebuilt.
455 + * Makefile.am (EXTRA_DIST): Add darwin64.S
456 + * Makefile.in: Rebuilt.
457 + * testsuite/lib/libffi-dg.exp: Remove libstdc++ bits from GCC tree.
458 + * LICENSE: Update WARRANTY.
460 +2008-02-14 Anthony Green <green@redhat.com>
462 + * libffi.pc.in (libdir): Fix libdir definition.
463 + * configure.ac: Bump version to 2.99.4.
464 + * configure: Rebuilt.
466 +2008-02-14 Anthony Green <green@redhat.com>
469 + * libffi.info: New file.
470 + * doc/stamp-vti: New file.
471 + * configure.ac: Bump version to 2.99.3.
472 + * configure: Rebuilt.
474 +2008-02-14 Anthony Green <green@redhat.com>
476 + * Makefile.am (SUBDIRS): Add man dir.
477 + * Makefile.in: Rebuilt.
478 + * configure.ac: Create Makefile.
479 + * configure: Rebuilt.
480 + * man/ffi_call.3 man/ffi_prep_cif.3 man/ffi_prep_closure.3
481 + man/Makefile.am man/Makefile.in: New files.
483 +2008-02-14 Tom Tromey <tromey@redhat.com>
485 + * aclocal.m4, Makefile.in, configure, fficonfig.h.in: Rebuilt.
486 + * mdate-sh, texinfo.tex: New files.
487 + * Makefile.am (info_TEXINFOS): New variable.
488 + * doc/libffi.texi: New file.
489 + * doc/version.texi: Likewise.
491 +2008-02-14 Anthony Green <green@redhat.com>
493 + * Makefile.am (AM_CFLAGS): Don't compile with -D$(TARGET).
494 + (lib_LTLIBRARIES): Define.
495 + (toolexeclib_LIBRARIES): Undefine.
496 + * Makefile.in: Rebuilt.
497 + * configure.ac: Reset version to 2.99.1.
498 + * configure.in: Rebuilt.
500 +2008-02-14 Anthony Green <green@redhat.com>
502 + * libffi.pc.in: Use @PACKAGE_NAME@ and @PACKAGE_VERSION@.
503 + * configure.ac: Reset version to 2.99.1.
504 + * configure.in: Rebuilt.
505 + * Makefile.am (EXTRA_DIST): Add ChangeLog.libffi.
506 + * Makefile.in: Rebuilt.
507 + * LICENSE: Update copyright notice.
509 +2008-02-14 Anthony Green <green@redhat.com>
511 + * include/Makefile.am (nodist_includes_HEADERS): Define. Don't
512 + distribute ffitarget.h or ffi.h from the build include dir.
513 + * Makefile.in: Rebuilt.
515 +2008-02-14 Anthony Green <green@redhat.com>
517 + * include/Makefile.am (includesdir): Install headers under libdir.
518 + (pkgconfigdir): Define. Install libffi.pc.
519 + * include/Makefile.in: Rebuilt.
520 + * libffi.pc.in: Create.
521 + * libtool-version: Increment CURRENT
522 + * configure.ac: Add libffi.pc.in
523 + * configure: Rebuilt.
525 +2008-02-03 Anthony Green <green@redhat.com>
527 + * include/Makefile.am (includesdir): Fix header install with
529 + * include/Makefile.in: Rebuilt.
531 +2008-02-03 Timothy Wall <twall@users.sf.net>
533 + * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL): Calculate jump return
534 + offset based on code pointer, not data pointer.
536 +2008-02-01 Anthony Green <green@redhat.com>
538 + * include/Makefile.am: Fix header installs.
539 + * Makefile.am: Ditto.
540 + * include/Makefile.in: Rebuilt.
541 + * Makefile.in: Ditto.
543 +2008-02-01 Anthony Green <green@redhat.com>
545 + * src/x86/ffi.c (FFI_INIT_TRAMPOLINE_STDCALL,
546 + FFI_INIT_TRAMPOLINE): Revert my broken changes to twall's last
549 +2008-01-31 Anthony Green <green@redhat.com>
551 + * Makefile.am (EXTRA_DIST): Add missing files.
552 + * testsuite/Makefile.am: Ditto.
553 + * Makefile.in, testsuite/Makefile.in: Rebuilt.
555 +2008-01-31 Timothy Wall <twall@users.sf.net>
557 + * testsuite/libffi.call/closure_stdcall.c: Add test for stdcall
559 + * src/x86/ffitarget.h: Increase size of trampoline for stdcall
561 + * src/x86/win32.S: Add assembly for stdcall closure.
562 + * src/x86/ffi.c: Initialize stdcall closure trampoline.
564 +2008-01-30 H.J. Lu <hongjiu.lu@intel.com>
567 + * src/x86/sysv.S (ffi_closure_SYSV): Pop 4 byte from stack when
570 + * testsuite/libffi.call/call.exp: Add "-O2 -fomit-frame-pointer"
573 +2008-01-30 Anthony Green <green@redhat.com>
575 + * Makefile.am, include/Makefile.am: Move headers to
576 + libffi_la_SOURCES for new automake.
577 + * Makefile.in, include/Makefile.in: Rebuilt.
579 + * testsuite/lib/wrapper.exp: Copied from gcc tree to allow for
580 + execution outside of gcc tree.
581 + * testsuite/lib/target-libpath.exp: Ditto.
583 + * testsuite/lib/libffi-dg.exp: Many changes to allow for execution
584 + outside of gcc tree.
586 Index: libffi/LICENSE
587 ===================================================================
588 --- libffi.orig/LICENSE
591 -libffi - Copyright (c) 1996-2003 Red Hat, Inc.
592 +libffi - Copyright (c) 1996-2009 Anthony Green, Red Hat, Inc and others.
593 +See source files for details.
595 Permission is hereby granted, free of charge, to any person obtaining
596 a copy of this software and associated documentation files (the
597 @@ -11,10 +12,10 @@ the following conditions:
598 The above copyright notice and this permission notice shall be included
599 in all copies or substantial portions of the Software.
601 -THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
602 -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
603 +THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
604 +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
605 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
606 -IN NO EVENT SHALL CYGNUS SOLUTIONS BE LIABLE FOR ANY CLAIM, DAMAGES OR
607 -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
608 -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
609 -OTHER DEALINGS IN THE SOFTWARE.
610 +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
611 +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
612 +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
613 +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
614 Index: libffi/Makefile.am
615 ===================================================================
616 --- libffi.orig/Makefile.am
617 +++ libffi/Makefile.am
619 ## Process this with automake to create Makefile.in
621 AUTOMAKE_OPTIONS = foreign subdir-objects
622 -ACLOCAL_AMFLAGS = -I .. -I ../config
624 SUBDIRS = include testsuite man
626 @@ -27,10 +26,17 @@ EXTRA_DIST = LICENSE ChangeLog.v1 Change
627 src/sh64/ffi.c src/sh64/sysv.S src/sh64/ffitarget.h \
628 src/sparc/v8.S src/sparc/v9.S src/sparc/ffitarget.h \
629 src/sparc/ffi.c src/x86/darwin64.S \
630 - src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/darwin.S \
631 + src/x86/ffi.c src/x86/sysv.S src/x86/win32.S src/x86/win64.S \
632 + src/x86/darwin.S src/x86/freebsd.S \
633 src/x86/ffi64.c src/x86/unix64.S src/x86/ffitarget.h \
634 src/pa/ffitarget.h src/pa/ffi.c src/pa/linux.S src/pa/hpux32.S \
635 - src/frv/ffi.c src/frv/eabi.S src/frv/ffitarget.h src/dlmalloc.c
636 + src/frv/ffi.c src/frv/eabi.S src/frv/ffitarget.h \
638 + src/moxie/ffi.c src/moxie/eabi.S \
639 + libtool-version ChangeLog.libffi m4/libtool.m4 \
640 + m4/lt~obsolete.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4
642 +info_TEXINFOS = doc/libffi.texi
644 ## ################################################################
646 @@ -78,12 +84,17 @@ AM_MAKEFLAGS = \
650 -toolexeclib_LTLIBRARIES = libffi.la
651 +ACLOCAL_AMFLAGS=$(ACLOCAL_AMFLAGS) -I m4
653 +lib_LTLIBRARIES = libffi.la
654 noinst_LTLIBRARIES = libffi_convenience.la
656 libffi_la_SOURCES = src/debug.c src/prep_cif.c src/types.c \
657 src/raw_api.c src/java_raw_api.c src/closures.c
659 +pkgconfigdir = $(libdir)/pkgconfig
660 +pkgconfig_DATA = libffi.pc
662 nodist_libffi_la_SOURCES =
665 @@ -167,17 +178,12 @@ nodist_libffi_convenience_la_SOURCES = $
667 AM_CFLAGS = -Wall -g -fexceptions
669 -LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
671 libffi_la_LDFLAGS = -version-info `grep -v '^\#' $(srcdir)/libtool-version` $(LTLDFLAGS) $(AM_LTLDFLAGS)
673 AM_CPPFLAGS = -I. -I$(top_srcdir)/include -Iinclude -I$(top_srcdir)/src
674 AM_CCASFLAGS = $(AM_CPPFLAGS)
676 -# Multilib support. Automake should provide these on its own.
677 -all-recursive: all-multi
678 -install-recursive: install-multi
679 -mostlyclean-recursive: mostlyclean-multi
680 -clean-recursive: clean-multi
681 -distclean-recursive: distclean-multi
682 -maintainer-clean-recursive: maintainer-clean-multi
683 +# No install-html or install-pdf support in automake yet
684 +.PHONY: install-html install-pdf
687 Index: libffi/compile
688 ===================================================================
693 +# Wrapper for compilers which do not understand `-c -o'.
695 +scriptversion=2005-05-14.22
697 +# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
698 +# Written by Tom Tromey <tromey@cygnus.com>.
700 +# This program is free software; you can redistribute it and/or modify
701 +# it under the terms of the GNU General Public License as published by
702 +# the Free Software Foundation; either version 2, or (at your option)
703 +# any later version.
705 +# This program is distributed in the hope that it will be useful,
706 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
707 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
708 +# GNU General Public License for more details.
710 +# You should have received a copy of the GNU General Public License
711 +# along with this program; if not, write to the Free Software
712 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
714 +# As a special exception to the GNU General Public License, if you
715 +# distribute this file as part of a program that contains a
716 +# configuration script generated by Autoconf, you may include it under
717 +# the same distribution terms that you use for the rest of that program.
719 +# This file is maintained in Automake, please report
720 +# bugs to <bug-automake@gnu.org> or send patches to
721 +# <automake-patches@gnu.org>.
725 + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
730 +Usage: compile [--help] [--version] PROGRAM [ARGS]
732 +Wrapper for compilers which do not understand `-c -o'.
733 +Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
734 +arguments, and rename the output as expected.
736 +If you are trying to build a whole package this is not the
737 +right script to run: please start by reading the file `INSTALL'.
739 +Report bugs to <bug-automake@gnu.org>.
744 + echo "compile $scriptversion"
755 + if test -n "$eat"; then
760 + # configure might choose to run compile as `compile cc -o foo foo.c'.
761 + # So we strip `-o arg' only if arg is an object.
787 +if test -z "$ofile" || test -z "$cfile"; then
788 + # If no `-o' option was seen then we might have been invoked from a
789 + # pattern rule where we don't need one. That is ok -- this is a
790 + # normal compilation that the losing compiler can handle. If no
791 + # `.c' file was seen then we are probably linking. That is also
796 +# Name of file we expect compiler to create.
797 +cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
799 +# Create the lock directory.
800 +# Note: use `[/.-]' here to ensure that we don't use the same name
801 +# that we are using for the .o file. Also, base the name on the expected
802 +# object file name, since that is what matters with a parallel build.
803 +lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
805 + if mkdir "$lockdir" >/dev/null 2>&1; then
810 +# FIXME: race condition here if user kills between mkdir and trap.
811 +trap "rmdir '$lockdir'; exit 1" 1 2 15
817 +if test -f "$cofile"; then
818 + mv "$cofile" "$ofile"
819 +elif test -f "${cofile}bj"; then
820 + mv "${cofile}bj" "$ofile"
827 +# mode: shell-script
829 +# eval: (add-hook 'write-file-hooks 'time-stamp)
830 +# time-stamp-start: "scriptversion="
831 +# time-stamp-format: "%:y-%02m-%02d.%02H"
832 +# time-stamp-end: "$"
834 Index: libffi/config.guess
835 ===================================================================
837 +++ libffi/config.guess
840 +# Attempt to guess a canonical system name.
841 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
842 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
843 +# Free Software Foundation, Inc.
845 +timestamp='2009-11-20'
847 +# This file is free software; you can redistribute it and/or modify it
848 +# under the terms of the GNU General Public License as published by
849 +# the Free Software Foundation; either version 2 of the License, or
850 +# (at your option) any later version.
852 +# This program is distributed in the hope that it will be useful, but
853 +# WITHOUT ANY WARRANTY; without even the implied warranty of
854 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
855 +# General Public License for more details.
857 +# You should have received a copy of the GNU General Public License
858 +# along with this program; if not, write to the Free Software
859 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
862 +# As a special exception to the GNU General Public License, if you
863 +# distribute this file as part of a program that contains a
864 +# configuration script generated by Autoconf, you may include it under
865 +# the same distribution terms that you use for the rest of that program.
868 +# Originally written by Per Bothner. Please send patches (context
869 +# diff format) to <config-patches@gnu.org> and include a ChangeLog
872 +# This script attempts to guess a canonical system name similar to
873 +# config.sub. If it succeeds, it prints the system name on stdout, and
874 +# exits with 0. Otherwise, it exits with 1.
876 +# You can get the latest version of this script from:
877 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
879 +me=`echo "$0" | sed -e 's,.*/,,'`
884 +Output the configuration name of the system \`$me' is run on.
887 + -h, --help print this help, then exit
888 + -t, --time-stamp print date of last modification, then exit
889 + -v, --version print version number, then exit
891 +Report bugs and patches to <config-patches@gnu.org>."
894 +GNU config.guess ($timestamp)
896 +Originally written by Per Bothner.
897 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
898 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
900 +This is free software; see the source for copying conditions. There is NO
901 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
904 +Try \`$me --help' for more information."
906 +# Parse command line
907 +while test $# -gt 0 ; do
909 + --time-stamp | --time* | -t )
910 + echo "$timestamp" ; exit ;;
912 + echo "$version" ; exit ;;
913 + --help | --h* | -h )
914 + echo "$usage"; exit ;;
915 + -- ) # Stop option processing
917 + - ) # Use stdin as input.
920 + echo "$me: invalid option $1$help" >&2
927 +if test $# != 0; then
928 + echo "$me: too many arguments$help" >&2
932 +trap 'exit 1' 1 2 15
934 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
935 +# compiler to aid in system detection is discouraged as it requires
936 +# temporary files to be created and, as you can see below, it is a
937 +# headache to deal with in a portable fashion.
939 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
940 +# use `HOST_CC' if defined, but it is deprecated.
942 +# Portable tmp directory creation inspired by the Autoconf team.
945 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
946 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
948 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
949 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
950 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
951 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
953 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
954 +case $CC_FOR_BUILD,$HOST_CC,$CC in
955 + ,,) echo "int x;" > $dummy.c ;
956 + for c in cc gcc c89 c99 ; do
957 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
958 + CC_FOR_BUILD="$c"; break ;
961 + if test x"$CC_FOR_BUILD" = x ; then
962 + CC_FOR_BUILD=no_compiler_found ;
965 + ,,*) CC_FOR_BUILD=$CC ;;
966 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
967 +esac ; set_cc_for_build= ;'
969 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
970 +# (ghazi@noc.rutgers.edu 1994-08-24)
971 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
972 + PATH=$PATH:/.attbin ; export PATH
975 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
976 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
977 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
978 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
980 +# Note: order is significant - the case branches are not exclusive.
982 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
984 + # NetBSD (nbsd) targets should (where applicable) match one or
985 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
986 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
987 + # switched to ELF, *-*-netbsd* would select the old
988 + # object file format. This provides both forward
989 + # compatibility and a consistent mechanism for selecting the
990 + # object file format.
992 + # Note: NetBSD doesn't particularly care about the vendor
993 + # portion of the name. We always set it to "unknown".
994 + sysctl="sysctl -n hw.machine_arch"
995 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
996 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
997 + case "${UNAME_MACHINE_ARCH}" in
998 + armeb) machine=armeb-unknown ;;
999 + arm*) machine=arm-unknown ;;
1000 + sh3el) machine=shl-unknown ;;
1001 + sh3eb) machine=sh-unknown ;;
1002 + sh5el) machine=sh5le-unknown ;;
1003 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
1005 + # The Operating System including object format, if it has switched
1006 + # to ELF recently, or will in the future.
1007 + case "${UNAME_MACHINE_ARCH}" in
1008 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
1009 + eval $set_cc_for_build
1010 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
1013 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
1014 + # Return netbsd for either. FIX?
1025 + # Debian GNU/NetBSD machines have a different userland, and
1026 + # thus, need a distinct triplet. However, they do not need
1027 + # kernel version information, so it can be replaced with a
1028 + # suitable tag, in the style of linux-gnu.
1029 + case "${UNAME_VERSION}" in
1034 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
1037 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
1038 + # contains redundant information, the shorter form:
1039 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
1040 + echo "${machine}-${os}${release}"
1043 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
1044 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
1047 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
1050 + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
1052 + macppc:MirBSD:*:*)
1053 + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
1056 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
1059 + case $UNAME_RELEASE in
1061 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
1064 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
1067 + # According to Compaq, /usr/sbin/psrinfo has been available on
1068 + # OSF/1 and Tru64 systems produced since 1995. I hope that
1069 + # covers most systems running today. This code pipes the CPU
1070 + # types through head -n 1, so we only detect the type of CPU 0.
1071 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
1072 + case "$ALPHA_CPU_TYPE" in
1074 + UNAME_MACHINE="alpha" ;;
1076 + UNAME_MACHINE="alpha" ;;
1077 + "LCA4 (21066/21068)")
1078 + UNAME_MACHINE="alpha" ;;
1080 + UNAME_MACHINE="alphaev5" ;;
1082 + UNAME_MACHINE="alphaev56" ;;
1083 + "EV5.6 (21164PC)")
1084 + UNAME_MACHINE="alphapca56" ;;
1085 + "EV5.7 (21164PC)")
1086 + UNAME_MACHINE="alphapca57" ;;
1088 + UNAME_MACHINE="alphaev6" ;;
1090 + UNAME_MACHINE="alphaev67" ;;
1091 + "EV6.8CB (21264C)")
1092 + UNAME_MACHINE="alphaev68" ;;
1093 + "EV6.8AL (21264B)")
1094 + UNAME_MACHINE="alphaev68" ;;
1095 + "EV6.8CX (21264D)")
1096 + UNAME_MACHINE="alphaev68" ;;
1097 + "EV6.9A (21264/EV69A)")
1098 + UNAME_MACHINE="alphaev69" ;;
1100 + UNAME_MACHINE="alphaev7" ;;
1102 + UNAME_MACHINE="alphaev79" ;;
1104 + # A Pn.n version is a patched version.
1105 + # A Vn.n version is a released version.
1106 + # A Tn.n version is a released field test version.
1107 + # A Xn.n version is an unreleased experimental baselevel.
1108 + # 1.2 uses "1.2" for uname -r.
1109 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
1111 + Alpha\ *:Windows_NT*:*)
1112 + # How do we know it's Interix rather than the generic POSIX subsystem?
1113 + # Should we change UNAME_MACHINE based on the output of uname instead
1114 + # of the specific Alpha model?
1115 + echo alpha-pc-interix
1117 + 21064:Windows_NT:50:3)
1118 + echo alpha-dec-winnt3.5
1120 + Amiga*:UNIX_System_V:4.0:*)
1121 + echo m68k-unknown-sysv4
1123 + *:[Aa]miga[Oo][Ss]:*:*)
1124 + echo ${UNAME_MACHINE}-unknown-amigaos
1126 + *:[Mm]orph[Oo][Ss]:*:*)
1127 + echo ${UNAME_MACHINE}-unknown-morphos
1130 + echo i370-ibm-openedition
1133 + echo s390-ibm-zvmoe
1136 + echo powerpc-ibm-os400
1138 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
1139 + echo arm-acorn-riscix${UNAME_RELEASE}
1141 + arm:riscos:*:*|arm:RISCOS:*:*)
1142 + echo arm-unknown-riscos
1144 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
1145 + echo hppa1.1-hitachi-hiuxmpp
1147 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
1148 + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
1149 + if test "`(/bin/universe) 2>/dev/null`" = att ; then
1150 + echo pyramid-pyramid-sysv3
1152 + echo pyramid-pyramid-bsd
1156 + echo pyramid-pyramid-svr4
1158 + DRS?6000:unix:4.0:6*)
1159 + echo sparc-icl-nx6
1161 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
1162 + case `/usr/bin/uname -p` in
1163 + sparc) echo sparc-icl-nx7; exit ;;
1166 + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1168 + sun4H:SunOS:5.*:*)
1169 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1171 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
1172 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1174 + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
1175 + echo i386-pc-auroraux${UNAME_RELEASE}
1177 + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
1178 + eval $set_cc_for_build
1180 + # If there is a compiler, see if it is configured for 64-bit objects.
1181 + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
1182 + # This test works for both compilers.
1183 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1184 + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
1185 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1186 + grep IS_64BIT_ARCH >/dev/null
1191 + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1194 + # According to config.sub, this is the proper way to canonicalize
1195 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
1196 + # it's likely to be more like Solaris than SunOS4.
1197 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1200 + case "`/usr/bin/arch -k`" in
1202 + UNAME_RELEASE=`uname -v`
1205 + # Japanese Language versions have a version number like `4.1.3-JL'.
1206 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
1209 + echo m68k-sun-sunos${UNAME_RELEASE}
1212 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
1213 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
1214 + case "`/bin/arch`" in
1216 + echo m68k-sun-sunos${UNAME_RELEASE}
1219 + echo sparc-sun-sunos${UNAME_RELEASE}
1224 + echo sparc-auspex-sunos${UNAME_RELEASE}
1226 + # The situation for MiNT is a little confusing. The machine name
1227 + # can be virtually everything (everything which is not
1228 + # "atarist" or "atariste" at least should have a processor
1229 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
1230 + # to the lowercase version "mint" (or "freemint"). Finally
1231 + # the system name "TOS" denotes a system which is actually not
1232 + # MiNT. But MiNT is downward compatible to TOS, so this should
1234 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
1235 + echo m68k-atari-mint${UNAME_RELEASE}
1237 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
1238 + echo m68k-atari-mint${UNAME_RELEASE}
1240 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
1241 + echo m68k-atari-mint${UNAME_RELEASE}
1243 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
1244 + echo m68k-milan-mint${UNAME_RELEASE}
1246 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
1247 + echo m68k-hades-mint${UNAME_RELEASE}
1249 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
1250 + echo m68k-unknown-mint${UNAME_RELEASE}
1253 + echo m68k-apple-machten${UNAME_RELEASE}
1255 + powerpc:machten:*:*)
1256 + echo powerpc-apple-machten${UNAME_RELEASE}
1259 + echo mips-dec-mach_bsd4.3
1262 + echo mips-dec-ultrix${UNAME_RELEASE}
1265 + echo vax-dec-ultrix${UNAME_RELEASE}
1267 + 2020:CLIX:*:* | 2430:CLIX:*:*)
1268 + echo clipper-intergraph-clix${UNAME_RELEASE}
1270 + mips:*:*:UMIPS | mips:*:*:RISCos)
1271 + eval $set_cc_for_build
1272 + sed 's/^ //' << EOF >$dummy.c
1274 +#include <stdio.h> /* for printf() prototype */
1275 + int main (int argc, char *argv[]) {
1277 + int main (argc, argv) int argc; char *argv[]; {
1279 + #if defined (host_mips) && defined (MIPSEB)
1280 + #if defined (SYSTYPE_SYSV)
1281 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
1283 + #if defined (SYSTYPE_SVR4)
1284 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
1286 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
1287 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
1293 + $CC_FOR_BUILD -o $dummy $dummy.c &&
1294 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
1295 + SYSTEM_NAME=`$dummy $dummyarg` &&
1296 + { echo "$SYSTEM_NAME"; exit; }
1297 + echo mips-mips-riscos${UNAME_RELEASE}
1299 + Motorola:PowerMAX_OS:*:*)
1300 + echo powerpc-motorola-powermax
1302 + Motorola:*:4.3:PL8-*)
1303 + echo powerpc-harris-powermax
1305 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
1306 + echo powerpc-harris-powermax
1308 + Night_Hawk:Power_UNIX:*:*)
1309 + echo powerpc-harris-powerunix
1312 + echo m88k-harris-cxux7
1315 + echo m88k-motorola-sysv4
1318 + echo m88k-motorola-sysv3
1321 + # DG/UX returns AViiON for all architectures
1322 + UNAME_PROCESSOR=`/usr/bin/uname -p`
1323 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
1325 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
1326 + [ ${TARGET_BINARY_INTERFACE}x = x ]
1328 + echo m88k-dg-dgux${UNAME_RELEASE}
1330 + echo m88k-dg-dguxbcs${UNAME_RELEASE}
1333 + echo i586-dg-dgux${UNAME_RELEASE}
1336 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
1337 + echo m88k-dolphin-sysv3
1340 + # Delta 88k system running SVR3
1341 + echo m88k-motorola-sysv3
1343 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
1344 + echo m88k-tektronix-sysv3
1346 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
1347 + echo m68k-tektronix-bsd
1350 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
1352 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
1353 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
1354 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
1359 + if [ -x /usr/bin/oslevel ] ; then
1360 + IBM_REV=`/usr/bin/oslevel`
1362 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
1364 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
1367 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
1368 + eval $set_cc_for_build
1369 + sed 's/^ //' << EOF >$dummy.c
1370 + #include <sys/systemcfg.h>
1374 + if (!__power_pc())
1376 + puts("powerpc-ibm-aix3.2.5");
1380 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
1382 + echo "$SYSTEM_NAME"
1384 + echo rs6000-ibm-aix3.2.5
1386 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
1387 + echo rs6000-ibm-aix3.2.4
1389 + echo rs6000-ibm-aix3.2
1393 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
1394 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
1399 + if [ -x /usr/bin/oslevel ] ; then
1400 + IBM_REV=`/usr/bin/oslevel`
1402 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
1404 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
1407 + echo rs6000-ibm-aix
1409 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
1410 + echo romp-ibm-bsd4.4
1412 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
1413 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
1414 + exit ;; # report: romp-ibm BSD 4.3
1416 + echo rs6000-bull-bosx
1418 + DPX/2?00:B.O.S.:*:*)
1419 + echo m68k-bull-sysv3
1421 + 9000/[34]??:4.3bsd:1.*:*)
1424 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
1425 + echo m68k-hp-bsd4.4
1427 + 9000/[34678]??:HP-UX:*:*)
1428 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
1429 + case "${UNAME_MACHINE}" in
1430 + 9000/31? ) HP_ARCH=m68000 ;;
1431 + 9000/[34]?? ) HP_ARCH=m68k ;;
1432 + 9000/[678][0-9][0-9])
1433 + if [ -x /usr/bin/getconf ]; then
1434 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
1435 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
1436 + case "${sc_cpu_version}" in
1437 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
1438 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
1439 + 532) # CPU_PA_RISC2_0
1440 + case "${sc_kernel_bits}" in
1441 + 32) HP_ARCH="hppa2.0n" ;;
1442 + 64) HP_ARCH="hppa2.0w" ;;
1443 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
1447 + if [ "${HP_ARCH}" = "" ]; then
1448 + eval $set_cc_for_build
1449 + sed 's/^ //' << EOF >$dummy.c
1451 + #define _HPUX_SOURCE
1452 + #include <stdlib.h>
1453 + #include <unistd.h>
1457 + #if defined(_SC_KERNEL_BITS)
1458 + long bits = sysconf(_SC_KERNEL_BITS);
1460 + long cpu = sysconf (_SC_CPU_VERSION);
1464 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
1465 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
1466 + case CPU_PA_RISC2_0:
1467 + #if defined(_SC_KERNEL_BITS)
1470 + case 64: puts ("hppa2.0w"); break;
1471 + case 32: puts ("hppa2.0n"); break;
1472 + default: puts ("hppa2.0"); break;
1474 + #else /* !defined(_SC_KERNEL_BITS) */
1475 + puts ("hppa2.0"); break;
1477 + default: puts ("hppa1.0"); break;
1482 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
1483 + test -z "$HP_ARCH" && HP_ARCH=hppa
1486 + if [ ${HP_ARCH} = "hppa2.0w" ]
1488 + eval $set_cc_for_build
1490 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
1491 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
1492 + # generating 64-bit code. GNU and HP use different nomenclature:
1494 + # $ CC_FOR_BUILD=cc ./config.guess
1495 + # => hppa2.0w-hp-hpux11.23
1496 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
1497 + # => hppa64-hp-hpux11.23
1499 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
1502 + HP_ARCH="hppa2.0w"
1507 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
1510 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
1511 + echo ia64-hp-hpux${HPUX_REV}
1514 + eval $set_cc_for_build
1515 + sed 's/^ //' << EOF >$dummy.c
1516 + #include <unistd.h>
1520 + long cpu = sysconf (_SC_CPU_VERSION);
1521 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
1522 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
1523 + results, however. */
1524 + if (CPU_IS_PA_RISC (cpu))
1528 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
1529 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
1530 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
1531 + default: puts ("hppa-hitachi-hiuxwe2"); break;
1534 + else if (CPU_IS_HP_MC68K (cpu))
1535 + puts ("m68k-hitachi-hiuxwe2");
1536 + else puts ("unknown-hitachi-hiuxwe2");
1540 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
1541 + { echo "$SYSTEM_NAME"; exit; }
1542 + echo unknown-hitachi-hiuxwe2
1544 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
1545 + echo hppa1.1-hp-bsd
1547 + 9000/8??:4.3bsd:*:*)
1548 + echo hppa1.0-hp-bsd
1550 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
1551 + echo hppa1.0-hp-mpeix
1553 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
1554 + echo hppa1.1-hp-osf
1557 + echo hppa1.0-hp-osf
1560 + if [ -x /usr/sbin/sysversion ] ; then
1561 + echo ${UNAME_MACHINE}-unknown-osf1mk
1563 + echo ${UNAME_MACHINE}-unknown-osf1
1566 + parisc*:Lites*:*:*)
1567 + echo hppa1.1-hp-lites
1569 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
1570 + echo c1-convex-bsd
1572 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
1573 + if getsysinfo -f scalar_acc
1574 + then echo c32-convex-bsd
1575 + else echo c2-convex-bsd
1578 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
1579 + echo c34-convex-bsd
1581 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
1582 + echo c38-convex-bsd
1584 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
1585 + echo c4-convex-bsd
1588 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1590 + CRAY*[A-Z]90:*:*:*)
1591 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
1592 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
1593 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
1594 + -e 's/\.[^.]*$/.X/'
1597 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1600 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1603 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1606 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1608 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
1609 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
1610 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
1611 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
1612 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
1614 + 5000:UNIX_System_V:4.*:*)
1615 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
1616 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
1617 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
1619 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
1620 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
1622 + sparc*:BSD/OS:*:*)
1623 + echo sparc-unknown-bsdi${UNAME_RELEASE}
1626 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
1629 + case ${UNAME_MACHINE} in
1631 + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
1633 + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
1635 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
1639 + echo ${UNAME_MACHINE}-pc-cygwin
1642 + echo ${UNAME_MACHINE}-pc-mingw32
1645 + # uname -m includes "-pc" on this system.
1646 + echo ${UNAME_MACHINE}-mingw32
1649 + echo ${UNAME_MACHINE}-pc-pw32
1652 + case ${UNAME_MACHINE} in
1654 + echo i586-pc-interix${UNAME_RELEASE}
1656 + authenticamd | genuineintel | EM64T)
1657 + echo x86_64-unknown-interix${UNAME_RELEASE}
1660 + echo ia64-unknown-interix${UNAME_RELEASE}
1663 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
1664 + echo i${UNAME_MACHINE}-pc-mks
1666 + 8664:Windows_NT:*)
1667 + echo x86_64-pc-mks
1669 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
1670 + # How do we know it's Interix rather than the generic POSIX subsystem?
1671 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
1672 + # UNAME_MACHINE based on the output of uname instead of i386?
1673 + echo i586-pc-interix
1676 + echo ${UNAME_MACHINE}-pc-uwin
1678 + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
1679 + echo x86_64-unknown-cygwin
1682 + echo powerpcle-unknown-cygwin
1684 + prep*:SunOS:5.*:*)
1685 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1689 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
1692 + # other systems with GNU libc and userland
1693 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
1696 + echo ${UNAME_MACHINE}-pc-minix
1699 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
1700 + EV5) UNAME_MACHINE=alphaev5 ;;
1701 + EV56) UNAME_MACHINE=alphaev56 ;;
1702 + PCA56) UNAME_MACHINE=alphapca56 ;;
1703 + PCA57) UNAME_MACHINE=alphapca56 ;;
1704 + EV6) UNAME_MACHINE=alphaev6 ;;
1705 + EV67) UNAME_MACHINE=alphaev67 ;;
1706 + EV68*) UNAME_MACHINE=alphaev68 ;;
1708 + objdump --private-headers /bin/sh | grep -q ld.so.1
1709 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
1710 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
1713 + eval $set_cc_for_build
1714 + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
1715 + | grep -q __ARM_EABI__
1717 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1719 + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
1723 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1726 + echo cris-axis-linux-gnu
1728 + crisv32:Linux:*:*)
1729 + echo crisv32-axis-linux-gnu
1732 + echo frv-unknown-linux-gnu
1736 + eval $set_cc_for_build
1737 + sed 's/^ //' << EOF >$dummy.c
1738 + #ifdef __dietlibc__
1742 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
1743 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1746 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1749 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1752 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1754 + mips:Linux:*:* | mips64:Linux:*:*)
1755 + eval $set_cc_for_build
1756 + sed 's/^ //' << EOF >$dummy.c
1758 + #undef ${UNAME_MACHINE}
1759 + #undef ${UNAME_MACHINE}el
1760 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1761 + CPU=${UNAME_MACHINE}el
1763 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1764 + CPU=${UNAME_MACHINE}
1770 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
1771 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
1774 + echo or32-unknown-linux-gnu
1777 + echo sparc-unknown-linux-gnu
1779 + parisc64:Linux:*:* | hppa64:Linux:*:*)
1780 + echo hppa64-unknown-linux-gnu
1782 + parisc:Linux:*:* | hppa:Linux:*:*)
1783 + # Look for CPU level
1784 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1785 + PA7*) echo hppa1.1-unknown-linux-gnu ;;
1786 + PA8*) echo hppa2.0-unknown-linux-gnu ;;
1787 + *) echo hppa-unknown-linux-gnu ;;
1791 + echo powerpc64-unknown-linux-gnu
1794 + echo powerpc-unknown-linux-gnu
1796 + s390:Linux:*:* | s390x:Linux:*:*)
1797 + echo ${UNAME_MACHINE}-ibm-linux
1800 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1803 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1805 + sparc:Linux:*:* | sparc64:Linux:*:*)
1806 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1809 + echo ${UNAME_MACHINE}-dec-linux-gnu
1812 + echo x86_64-unknown-linux-gnu
1814 + xtensa*:Linux:*:*)
1815 + echo ${UNAME_MACHINE}-unknown-linux-gnu
1817 + i*86:DYNIX/ptx:4*:*)
1818 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1819 + # earlier versions are messed up and put the nodename in both
1820 + # sysname and nodename.
1821 + echo i386-sequent-sysv4
1823 + i*86:UNIX_SV:4.2MP:2.*)
1824 + # Unixware is an offshoot of SVR4, but it has its own version
1825 + # number series starting with 2...
1826 + # I am not positive that other SVR4 systems won't match this,
1827 + # I just have to hope. -- rms.
1828 + # Use sysv4.2uw... so that sysv4* matches it.
1829 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1832 + # If we were able to find `uname', then EMX Unix compatibility
1833 + # is probably installed.
1834 + echo ${UNAME_MACHINE}-pc-os2-emx
1836 + i*86:XTS-300:*:STOP)
1837 + echo ${UNAME_MACHINE}-unknown-stop
1840 + echo ${UNAME_MACHINE}-unknown-atheos
1842 + i*86:syllable:*:*)
1843 + echo ${UNAME_MACHINE}-pc-syllable
1845 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1846 + echo i386-unknown-lynxos${UNAME_RELEASE}
1849 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
1851 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1852 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1853 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1854 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1856 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1860 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
1861 + case `/bin/uname -X | grep "^Machine"` in
1862 + *486*) UNAME_MACHINE=i486 ;;
1863 + *Pentium) UNAME_MACHINE=i586 ;;
1864 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1866 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1869 + if test -f /usr/options/cb.name; then
1870 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1871 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1872 + elif /bin/uname -X 2>/dev/null >/dev/null ; then
1873 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1874 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1875 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1876 + && UNAME_MACHINE=i586
1877 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1878 + && UNAME_MACHINE=i686
1879 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1880 + && UNAME_MACHINE=i686
1881 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1883 + echo ${UNAME_MACHINE}-pc-sysv32
1887 + # Left here for compatibility:
1888 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
1889 + # the processor, so we play safe by assuming i586.
1890 + # Note: whatever this is, it MUST be the same as what config.sub
1891 + # prints for the "djgpp" host, or else GDB configury will decide that
1892 + # this is a cross-build.
1893 + echo i586-pc-msdosdjgpp
1896 + echo i386-pc-mach3
1899 + echo i860-intel-osf1
1901 + i860:*:4.*:*) # i860-SVR4
1902 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1903 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1904 + else # Add other i860-SVR4 vendors below as they are discovered.
1905 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1908 + mini*:CTIX:SYS*5:*)
1910 + echo m68010-convergent-sysv
1912 + mc68k:UNIX:SYSTEM5:3.51m)
1913 + echo m68k-convergent-sysv
1915 + M680?0:D-NIX:5.3:*)
1916 + echo m68k-diab-dnix
1918 + M68*:*:R3V[5678]*:*)
1919 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1920 + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1922 + test -r /etc/.relid \
1923 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1924 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1925 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1926 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1927 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1928 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1929 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1930 + && { echo i486-ncr-sysv4; exit; } ;;
1931 + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1933 + test -r /etc/.relid \
1934 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1935 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1936 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1937 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1938 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1939 + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1940 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1941 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1942 + echo m68k-unknown-lynxos${UNAME_RELEASE}
1944 + mc68030:UNIX_System_V:4.*:*)
1945 + echo m68k-atari-sysv4
1947 + TSUNAMI:LynxOS:2.*:*)
1948 + echo sparc-unknown-lynxos${UNAME_RELEASE}
1950 + rs6000:LynxOS:2.*:*)
1951 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
1953 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1954 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
1956 + SM[BE]S:UNIX_SV:*:*)
1957 + echo mips-dde-sysv${UNAME_RELEASE}
1959 + RM*:ReliantUNIX-*:*:*)
1960 + echo mips-sni-sysv4
1963 + echo mips-sni-sysv4
1966 + if uname -p 2>/dev/null >/dev/null ; then
1967 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
1968 + echo ${UNAME_MACHINE}-sni-sysv4
1970 + echo ns32k-sni-sysv
1973 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1974 + # says <Richard.M.Bartel@ccMail.Census.GOV>
1975 + echo i586-unisys-sysv4
1977 + *:UNIX_System_V:4*:FTX*)
1978 + # From Gerald Hewes <hewes@openmarket.com>.
1979 + # How about differentiating between stratus architectures? -djm
1980 + echo hppa1.1-stratus-sysv4
1983 + # From seanf@swdc.stratus.com.
1984 + echo i860-stratus-sysv4
1987 + # From Paul.Green@stratus.com.
1988 + echo ${UNAME_MACHINE}-stratus-vos
1991 + # From Paul.Green@stratus.com.
1992 + echo hppa1.1-stratus-vos
1995 + echo m68k-apple-aux${UNAME_RELEASE}
1997 + news*:NEWS-OS:6*:*)
1998 + echo mips-sony-newsos6
2000 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
2001 + if [ -d /usr/nec ]; then
2002 + echo mips-nec-sysv${UNAME_RELEASE}
2004 + echo mips-unknown-sysv${UNAME_RELEASE}
2007 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
2008 + echo powerpc-be-beos
2010 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
2011 + echo powerpc-apple-beos
2013 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
2016 + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
2017 + echo i586-pc-haiku
2019 + SX-4:SUPER-UX:*:*)
2020 + echo sx4-nec-superux${UNAME_RELEASE}
2022 + SX-5:SUPER-UX:*:*)
2023 + echo sx5-nec-superux${UNAME_RELEASE}
2025 + SX-6:SUPER-UX:*:*)
2026 + echo sx6-nec-superux${UNAME_RELEASE}
2028 + SX-7:SUPER-UX:*:*)
2029 + echo sx7-nec-superux${UNAME_RELEASE}
2031 + SX-8:SUPER-UX:*:*)
2032 + echo sx8-nec-superux${UNAME_RELEASE}
2034 + SX-8R:SUPER-UX:*:*)
2035 + echo sx8r-nec-superux${UNAME_RELEASE}
2037 + Power*:Rhapsody:*:*)
2038 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
2041 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
2044 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
2045 + case $UNAME_PROCESSOR in
2047 + eval $set_cc_for_build
2048 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
2049 + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
2050 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
2051 + grep IS_64BIT_ARCH >/dev/null
2053 + UNAME_PROCESSOR="x86_64"
2056 + unknown) UNAME_PROCESSOR=powerpc ;;
2058 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
2060 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
2061 + UNAME_PROCESSOR=`uname -p`
2062 + if test "$UNAME_PROCESSOR" = "x86"; then
2063 + UNAME_PROCESSOR=i386
2066 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
2071 + NSE-?:NONSTOP_KERNEL:*:*)
2072 + echo nse-tandem-nsk${UNAME_RELEASE}
2074 + NSR-?:NONSTOP_KERNEL:*:*)
2075 + echo nsr-tandem-nsk${UNAME_RELEASE}
2078 + echo mips-compaq-nonstopux
2080 + BS2000:POSIX*:*:*)
2081 + echo bs2000-siemens-sysv
2083 + DS/*:UNIX_System_V:*:*)
2084 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
2087 + # "uname -m" is not consistent, so use $cputype instead. 386
2088 + # is converted to i386 for consistency with other x86
2089 + # operating systems.
2090 + if test "$cputype" = "386"; then
2091 + UNAME_MACHINE=i386
2093 + UNAME_MACHINE="$cputype"
2095 + echo ${UNAME_MACHINE}-unknown-plan9
2098 + echo pdp10-unknown-tops10
2101 + echo pdp10-unknown-tenex
2103 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
2104 + echo pdp10-dec-tops20
2106 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
2107 + echo pdp10-xkl-tops20
2110 + echo pdp10-unknown-tops20
2113 + echo pdp10-unknown-its
2116 + echo mips-sei-seiux${UNAME_RELEASE}
2119 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
2122 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
2123 + case "${UNAME_MACHINE}" in
2124 + A*) echo alpha-dec-vms ; exit ;;
2125 + I*) echo ia64-dec-vms ; exit ;;
2126 + V*) echo vax-dec-vms ; exit ;;
2129 + echo i386-pc-xenix
2132 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
2135 + echo ${UNAME_MACHINE}-pc-rdos
2138 + echo ${UNAME_MACHINE}-pc-aros
2142 +#echo '(No uname command or uname output not recognized.)' 1>&2
2143 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
2145 +eval $set_cc_for_build
2146 +cat >$dummy.c <<EOF
2148 +# include <sys/types.h>
2149 +# include <sys/utsname.h>
2154 +#if defined (MIPSEB)
2155 + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
2156 + I don't know.... */
2157 + printf ("mips-sony-bsd\n"); exit (0);
2159 +#include <sys/param.h>
2160 + printf ("m68k-sony-newsos%s\n",
2170 +#if defined (__arm) && defined (__acorn) && defined (__unix)
2171 + printf ("arm-acorn-riscix\n"); exit (0);
2174 +#if defined (hp300) && !defined (hpux)
2175 + printf ("m68k-hp-bsd\n"); exit (0);
2179 +#if !defined (__ARCHITECTURE__)
2180 +#define __ARCHITECTURE__ "m68k"
2183 + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
2185 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
2187 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
2191 +#if defined (MULTIMAX) || defined (n16)
2192 +#if defined (UMAXV)
2193 + printf ("ns32k-encore-sysv\n"); exit (0);
2196 + printf ("ns32k-encore-mach\n"); exit (0);
2198 + printf ("ns32k-encore-bsd\n"); exit (0);
2203 +#if defined (__386BSD__)
2204 + printf ("i386-pc-bsd\n"); exit (0);
2207 +#if defined (sequent)
2209 + printf ("i386-sequent-dynix\n"); exit (0);
2211 +#if defined (ns32000)
2212 + printf ("ns32k-sequent-dynix\n"); exit (0);
2216 +#if defined (_SEQUENT_)
2217 + struct utsname un;
2221 + if (strncmp(un.version, "V2", 2) == 0) {
2222 + printf ("i386-sequent-ptx2\n"); exit (0);
2224 + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
2225 + printf ("i386-sequent-ptx1\n"); exit (0);
2227 + printf ("i386-sequent-ptx\n"); exit (0);
2232 +# if !defined (ultrix)
2233 +# include <sys/param.h>
2236 + printf ("vax-dec-bsd4.3\n"); exit (0);
2239 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
2241 + printf ("vax-dec-bsd\n"); exit (0);
2245 + printf ("vax-dec-bsd\n"); exit (0);
2248 + printf ("vax-dec-ultrix\n"); exit (0);
2252 +#if defined (alliant) && defined (i860)
2253 + printf ("i860-alliant-bsd\n"); exit (0);
2260 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
2261 + { echo "$SYSTEM_NAME"; exit; }
2263 +# Apollos put the system type in the environment.
2265 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
2267 +# Convex versions that predate uname can use getsysinfo(1)
2269 +if [ -x /usr/convex/getsysinfo ]
2271 + case `getsysinfo -f cpu_type` in
2273 + echo c1-convex-bsd
2276 + if getsysinfo -f scalar_acc
2277 + then echo c32-convex-bsd
2278 + else echo c2-convex-bsd
2282 + echo c34-convex-bsd
2285 + echo c38-convex-bsd
2288 + echo c4-convex-bsd
2294 +$0: unable to guess system type
2296 +This script, last modified $timestamp, has failed to recognize
2297 +the operating system you are using. It is advised that you
2298 +download the most up to date version of the config scripts from
2300 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
2302 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
2304 +If the version you run ($0) is already up to date, please
2305 +send the following data and any information you think might be
2306 +pertinent to <config-patches@gnu.org> in order to provide the needed
2307 +information to handle your system.
2309 +config.guess timestamp = $timestamp
2311 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
2312 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
2313 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
2314 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
2316 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
2317 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
2319 +hostinfo = `(hostinfo) 2>/dev/null`
2320 +/bin/universe = `(/bin/universe) 2>/dev/null`
2321 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
2322 +/bin/arch = `(/bin/arch) 2>/dev/null`
2323 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
2324 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
2326 +UNAME_MACHINE = ${UNAME_MACHINE}
2327 +UNAME_RELEASE = ${UNAME_RELEASE}
2328 +UNAME_SYSTEM = ${UNAME_SYSTEM}
2329 +UNAME_VERSION = ${UNAME_VERSION}
2335 +# eval: (add-hook 'write-file-hooks 'time-stamp)
2336 +# time-stamp-start: "timestamp='"
2337 +# time-stamp-format: "%:y-%02m-%02d"
2338 +# time-stamp-end: "'"
2340 Index: libffi/config.sub
2341 ===================================================================
2343 +++ libffi/config.sub
2346 +# Configuration validation subroutine script.
2347 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
2348 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
2349 +# Free Software Foundation, Inc.
2351 +timestamp='2009-11-20'
2353 +# This file is (in principle) common to ALL GNU software.
2354 +# The presence of a machine in this file suggests that SOME GNU software
2355 +# can handle that machine. It does not imply ALL GNU software can.
2357 +# This file is free software; you can redistribute it and/or modify
2358 +# it under the terms of the GNU General Public License as published by
2359 +# the Free Software Foundation; either version 2 of the License, or
2360 +# (at your option) any later version.
2362 +# This program is distributed in the hope that it will be useful,
2363 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
2364 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2365 +# GNU General Public License for more details.
2367 +# You should have received a copy of the GNU General Public License
2368 +# along with this program; if not, write to the Free Software
2369 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
2372 +# As a special exception to the GNU General Public License, if you
2373 +# distribute this file as part of a program that contains a
2374 +# configuration script generated by Autoconf, you may include it under
2375 +# the same distribution terms that you use for the rest of that program.
2378 +# Please send patches to <config-patches@gnu.org>. Submit a context
2379 +# diff and a properly formatted GNU ChangeLog entry.
2381 +# Configuration subroutine to validate and canonicalize a configuration type.
2382 +# Supply the specified configuration type as an argument.
2383 +# If it is invalid, we print an error message on stderr and exit with code 1.
2384 +# Otherwise, we print the canonical config type on stdout and succeed.
2386 +# You can get the latest version of this script from:
2387 +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
2389 +# This file is supposed to be the same for all GNU packages
2390 +# and recognize all the CPU types, system types and aliases
2391 +# that are meaningful with *any* GNU software.
2392 +# Each package is responsible for reporting which valid configurations
2393 +# it does not support. The user should be able to distinguish
2394 +# a failure to support a valid configuration from a meaningless
2397 +# The goal of this file is to map all the various variations of a given
2398 +# machine specification into a single specification in the form:
2399 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
2400 +# or in some cases, the newer four-part form:
2401 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
2402 +# It is wrong to echo any other type of specification.
2404 +me=`echo "$0" | sed -e 's,.*/,,'`
2407 +Usage: $0 [OPTION] CPU-MFR-OPSYS
2410 +Canonicalize a configuration name.
2413 + -h, --help print this help, then exit
2414 + -t, --time-stamp print date of last modification, then exit
2415 + -v, --version print version number, then exit
2417 +Report bugs and patches to <config-patches@gnu.org>."
2420 +GNU config.sub ($timestamp)
2422 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
2423 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2425 +This is free software; see the source for copying conditions. There is NO
2426 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
2429 +Try \`$me --help' for more information."
2431 +# Parse command line
2432 +while test $# -gt 0 ; do
2434 + --time-stamp | --time* | -t )
2435 + echo "$timestamp" ; exit ;;
2437 + echo "$version" ; exit ;;
2438 + --help | --h* | -h )
2439 + echo "$usage"; exit ;;
2440 + -- ) # Stop option processing
2442 + - ) # Use stdin as input.
2445 + echo "$me: invalid option $1$help"
2449 + # First pass through any local machine types.
2459 + 0) echo "$me: missing argument$help" >&2
2462 + *) echo "$me: too many arguments$help" >&2
2466 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
2467 +# Here we must recognize all the valid KERNEL-OS combinations.
2468 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
2470 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
2471 + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
2472 + kopensolaris*-gnu* | \
2473 + storm-chaos* | os2-emx* | rtmk-nova*)
2475 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
2478 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
2479 + if [ $basic_machine != $1 ]
2480 + then os=`echo $1 | sed 's/.*-/-/'`
2485 +### Let's recognize common machines as not being operating systems so
2486 +### that things like config.sub decstation-3100 work. We also
2487 +### recognize some manufacturers as not being operating systems, so we
2488 +### can provide default operating systems below.
2491 + # Prevent following clause from handling this invalid input.
2493 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
2494 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
2495 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
2496 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
2497 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
2498 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
2499 + -apple | -axis | -knuth | -cray | -microblaze)
2506 + -sim | -cisco | -oki | -wec | -winbond)
2529 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2533 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2537 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2540 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
2541 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2544 + # Don't forget version if it is 3.2v4 or newer.
2545 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2548 + # Don't forget version if it is 3.2v4 or newer.
2549 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2553 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2556 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2560 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2563 + basic_machine=clipper-intergraph
2566 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
2572 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
2575 + os=`echo $os | sed -e 's/windowsnt/winnt/'`
2580 + -mint | -mint[0-9]*)
2581 + basic_machine=m68k-atari
2586 +# Decode aliases for certain CPU-COMPANY combinations.
2587 +case $basic_machine in
2588 + # Recognize the basic CPU types without company name.
2589 + # Some are omitted here because they have special meanings below.
2592 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
2593 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
2595 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
2598 + | d10v | d30v | dlx | dsp16xx \
2599 + | fido | fr30 | frv \
2600 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
2601 + | i370 | i860 | i960 | ia64 \
2604 + | m32c | m32r | m32rle | m68000 | m68k | m88k \
2605 + | maxq | mb | microblaze | mcore | mep | metag \
2606 + | mips | mipsbe | mipseb | mipsel | mipsle \
2608 + | mips64 | mips64el \
2609 + | mips64octeon | mips64octeonel \
2610 + | mips64orion | mips64orionel \
2611 + | mips64r5900 | mips64r5900el \
2612 + | mips64vr | mips64vrel \
2613 + | mips64vr4100 | mips64vr4100el \
2614 + | mips64vr4300 | mips64vr4300el \
2615 + | mips64vr5000 | mips64vr5000el \
2616 + | mips64vr5900 | mips64vr5900el \
2617 + | mipsisa32 | mipsisa32el \
2618 + | mipsisa32r2 | mipsisa32r2el \
2619 + | mipsisa64 | mipsisa64el \
2620 + | mipsisa64r2 | mipsisa64r2el \
2621 + | mipsisa64sb1 | mipsisa64sb1el \
2622 + | mipsisa64sr71k | mipsisa64sr71kel \
2623 + | mipstx39 | mipstx39el \
2624 + | mn10200 | mn10300 \
2631 + | pdp10 | pdp11 | pj | pjl \
2632 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
2636 + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
2638 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
2639 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
2640 + | spu | strongarm \
2641 + | tahoe | thumb | tic4x | tic80 | tron \
2645 + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
2647 + basic_machine=$basic_machine-unknown
2649 + m6811 | m68hc11 | m6812 | m68hc12 | picochip)
2650 + # Motorola 68HC11/12.
2651 + basic_machine=$basic_machine-unknown
2654 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
2657 + basic_machine=mt-unknown
2660 + # We use `pc' rather than `unknown'
2661 + # because (1) that's what they normally are, and
2662 + # (2) the word "unknown" tends to confuse beginning users.
2664 + basic_machine=$basic_machine-pc
2666 + # Object if more than one company name word.
2668 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
2671 + # Recognize the basic CPU types with company name.
2674 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
2675 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
2676 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
2677 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
2678 + | avr-* | avr32-* \
2679 + | bfin-* | bs2000-* \
2680 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
2681 + | clipper-* | craynv-* | cydra-* \
2682 + | d10v-* | d30v-* | dlx-* \
2684 + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
2685 + | h8300-* | h8500-* \
2686 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
2687 + | i*86-* | i860-* | i960-* | ia64-* \
2688 + | ip2k-* | iq2000-* \
2690 + | m32c-* | m32r-* | m32rle-* \
2691 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
2692 + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
2693 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
2695 + | mips64-* | mips64el-* \
2696 + | mips64octeon-* | mips64octeonel-* \
2697 + | mips64orion-* | mips64orionel-* \
2698 + | mips64r5900-* | mips64r5900el-* \
2699 + | mips64vr-* | mips64vrel-* \
2700 + | mips64vr4100-* | mips64vr4100el-* \
2701 + | mips64vr4300-* | mips64vr4300el-* \
2702 + | mips64vr5000-* | mips64vr5000el-* \
2703 + | mips64vr5900-* | mips64vr5900el-* \
2704 + | mipsisa32-* | mipsisa32el-* \
2705 + | mipsisa32r2-* | mipsisa32r2el-* \
2706 + | mipsisa64-* | mipsisa64el-* \
2707 + | mipsisa64r2-* | mipsisa64r2el-* \
2708 + | mipsisa64sb1-* | mipsisa64sb1el-* \
2709 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
2710 + | mipstx39-* | mipstx39el-* \
2714 + | nios-* | nios2-* \
2715 + | none-* | np1-* | ns16k-* | ns32k-* \
2717 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
2718 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
2720 + | romp-* | rs6000-* | rx-* \
2721 + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
2722 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
2723 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
2725 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
2726 + | tahoe-* | thumb-* \
2727 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
2730 + | v850-* | v850e-* | vax-* \
2732 + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
2733 + | xstormy16-* | xtensa*-* \
2737 + # Recognize the basic CPU types without company name, with glob match.
2739 + basic_machine=$basic_machine-unknown
2741 + # Recognize the various machine names and aliases which stand
2742 + # for a CPU type and a company and sometimes even an OS.
2744 + basic_machine=i386-unknown
2747 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
2748 + basic_machine=m68000-att
2751 + basic_machine=we32k-att
2754 + basic_machine=a29k-amd
2758 + basic_machine=abacus-unknown
2761 + basic_machine=m68010-adobe
2765 + basic_machine=fx80-alliant
2767 + altos | altos3068)
2768 + basic_machine=m68k-altos
2771 + basic_machine=a29k-none
2775 + basic_machine=x86_64-pc
2778 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
2781 + basic_machine=580-amdahl
2785 + basic_machine=m68k-unknown
2787 + amigaos | amigados)
2788 + basic_machine=m68k-unknown
2792 + basic_machine=m68k-unknown
2796 + basic_machine=m68k-apollo
2800 + basic_machine=m68k-apollo
2804 + basic_machine=i386-pc
2808 + basic_machine=m68k-apple
2812 + basic_machine=ns32k-sequent
2816 + basic_machine=bfin-unknown
2820 + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
2824 + basic_machine=powerpc-ibm
2828 + basic_machine=c90-cray
2832 + basic_machine=arm-unknown
2836 + basic_machine=c1-convex
2840 + basic_machine=c2-convex
2844 + basic_machine=c32-convex
2848 + basic_machine=c34-convex
2852 + basic_machine=c38-convex
2856 + basic_machine=j90-cray
2860 + basic_machine=craynv-cray
2864 + basic_machine=cr16-unknown
2868 + basic_machine=m68k-crds
2870 + crisv32 | crisv32-* | etraxfs*)
2871 + basic_machine=crisv32-axis
2873 + cris | cris-* | etrax*)
2874 + basic_machine=cris-axis
2877 + basic_machine=crx-unknown
2881 + basic_machine=m68k-da30
2883 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
2884 + basic_machine=mips-dec
2886 + decsystem10* | dec10*)
2887 + basic_machine=pdp10-dec
2890 + decsystem20* | dec20*)
2891 + basic_machine=pdp10-dec
2894 + delta | 3300 | motorola-3300 | motorola-delta \
2895 + | 3300-motorola | delta-motorola)
2896 + basic_machine=m68k-motorola
2899 + basic_machine=m88k-motorola
2903 + basic_machine=i686-pc
2907 + basic_machine=i586-pc
2911 + basic_machine=rs6000-bull
2914 + dpx2* | dpx2*-bull)
2915 + basic_machine=m68k-bull
2919 + basic_machine=a29k-amd
2923 + basic_machine=elxsi-elxsi
2926 + encore | umax | mmax)
2927 + basic_machine=ns32k-encore
2929 + es1800 | OSE68k | ose68k | ose | OSE)
2930 + basic_machine=m68k-ericsson
2934 + basic_machine=i860-alliant
2937 + basic_machine=ns32k-ns
2940 + basic_machine=tron-gmicro
2944 + basic_machine=i386-pc
2948 + basic_machine=hppa1.1-hitachi
2952 + basic_machine=h8300-hitachi
2956 + basic_machine=h8300-hitachi
2960 + basic_machine=h8500-hitachi
2964 + basic_machine=m88k-harris
2968 + basic_machine=m68k-hp
2971 + basic_machine=m68k-hp
2975 + basic_machine=m68k-hp
2978 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
2979 + basic_machine=hppa1.0-hp
2981 + hp9k2[0-9][0-9] | hp9k31[0-9])
2982 + basic_machine=m68000-hp
2985 + basic_machine=m68k-hp
2987 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
2988 + basic_machine=hppa1.0-hp
2990 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
2991 + basic_machine=hppa1.1-hp
2993 + hp9k78[0-9] | hp78[0-9])
2994 + # FIXME: really hppa2.0-hp
2995 + basic_machine=hppa1.1-hp
2997 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
2998 + # FIXME: really hppa2.0-hp
2999 + basic_machine=hppa1.1-hp
3001 + hp9k8[0-9][13679] | hp8[0-9][13679])
3002 + basic_machine=hppa1.1-hp
3004 + hp9k8[0-9][0-9] | hp8[0-9][0-9])
3005 + basic_machine=hppa1.0-hp
3011 + basic_machine=hppa1.1-hp
3015 + basic_machine=hppa1.1-hp
3019 + basic_machine=i370-ibm
3021 +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
3023 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
3027 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
3031 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
3035 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
3039 + basic_machine=i386-mach
3043 + basic_machine=i386-unknown
3047 + basic_machine=mips-sgi
3057 + basic_machine=m68k-isi
3061 + basic_machine=m68k-unknown
3065 + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
3069 + basic_machine=m88k-omron
3072 + basic_machine=mips-mips
3076 + basic_machine=ns32k-utek
3080 + basic_machine=microblaze-xilinx
3083 + basic_machine=i386-pc
3087 + basic_machine=arm-unknown
3091 + basic_machine=m68000-convergent
3093 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
3094 + basic_machine=m68k-atari
3098 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
3101 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
3104 + basic_machine=m68k-rom68k
3108 + basic_machine=powerpc-unknown
3112 + basic_machine=i386-pc
3116 + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
3119 + basic_machine=i370-ibm
3123 + basic_machine=i486-ncr
3127 + basic_machine=i386-unknown
3131 + basic_machine=armv4l-rebel
3134 + news | news700 | news800 | news900)
3135 + basic_machine=m68k-sony
3139 + basic_machine=m68030-sony
3142 + news-3600 | risc-news)
3143 + basic_machine=mips-sony
3147 + basic_machine=v70-nec
3151 + basic_machine=m68k-next
3164 + basic_machine=m68k-harris
3168 + basic_machine=m88k-harris
3172 + basic_machine=i960-intel
3176 + basic_machine=i960-intel
3180 + basic_machine=mips-compaq
3184 + basic_machine=np1-gould
3187 + basic_machine=nsr-tandem
3189 + op50n-* | op60c-*)
3190 + basic_machine=hppa1.1-oki
3193 + openrisc | openrisc-*)
3194 + basic_machine=or32-unknown
3197 + basic_machine=powerpc-ibm
3200 + OSE68000 | ose68000)
3201 + basic_machine=m68000-ericsson
3205 + basic_machine=m68k-none
3209 + basic_machine=hppa1.1-hitachi
3213 + basic_machine=i860-intel
3217 + basic_machine=hppa-unknown
3221 + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
3225 + basic_machine=sparc-tti
3228 + basic_machine=m68k-tti
3231 + basic_machine=ns32k-pc532
3234 + basic_machine=i386-pc
3237 + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
3239 + pentium | p5 | k5 | k6 | nexgen | viac3)
3240 + basic_machine=i586-pc
3242 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
3243 + basic_machine=i686-pc
3245 + pentiumii | pentium2 | pentiumiii | pentium3)
3246 + basic_machine=i686-pc
3249 + basic_machine=i786-pc
3251 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
3252 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
3254 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
3255 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
3257 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
3258 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
3261 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
3264 + basic_machine=pn-gould
3266 + power) basic_machine=power-ibm
3268 + ppc) basic_machine=powerpc-unknown
3270 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
3272 + ppcle | powerpclittle | ppc-le | powerpc-little)
3273 + basic_machine=powerpcle-unknown
3275 + ppcle-* | powerpclittle-*)
3276 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
3278 + ppc64) basic_machine=powerpc64-unknown
3280 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
3282 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
3283 + basic_machine=powerpc64le-unknown
3285 + ppc64le-* | powerpc64little-*)
3286 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
3289 + basic_machine=i386-ibm
3292 + basic_machine=i586-unknown
3296 + basic_machine=i386-pc
3300 + basic_machine=m68k-rom68k
3304 + basic_machine=mips-siemens
3307 + basic_machine=romp-ibm
3310 + basic_machine=s390-ibm
3313 + basic_machine=s390x-ibm
3316 + basic_machine=a29k-amd
3320 + basic_machine=mipsisa64sb1-unknown
3323 + basic_machine=mipsisa64sb1el-unknown
3326 + basic_machine=mipsisa32-sde
3330 + basic_machine=mips-sei
3334 + basic_machine=i386-sequent
3337 + basic_machine=sh-hitachi
3341 + basic_machine=sh5le-unknown
3344 + basic_machine=sh64-unknown
3346 + sparclite-wrs | simso-wrs)
3347 + basic_machine=sparclite-wrs
3351 + basic_machine=m68k-bull
3355 + basic_machine=spur-unknown
3358 + basic_machine=m68k-tandem
3361 + basic_machine=i860-stratus
3365 + basic_machine=m68000-sun
3368 + basic_machine=m68000-sun
3372 + basic_machine=m68000-sun
3376 + basic_machine=m68k-sun
3380 + basic_machine=m68k-sun
3384 + basic_machine=sparc-sun
3388 + basic_machine=sparc-sun
3392 + basic_machine=sparc-sun
3396 + basic_machine=m68k-sun
3399 + basic_machine=sparc-sun
3401 + sun386 | sun386i | roadrunner)
3402 + basic_machine=i386-sun
3405 + basic_machine=sv1-cray
3409 + basic_machine=i386-sequent
3413 + basic_machine=alphaev5-cray
3417 + basic_machine=t90-cray
3421 + basic_machine=tic54x-unknown
3425 + basic_machine=tic55x-unknown
3429 + basic_machine=tic6x-unknown
3433 + basic_machine=tile-unknown
3437 + basic_machine=mipstx39-unknown
3440 + basic_machine=mipstx39el-unknown
3443 + basic_machine=pdp10-xkl
3447 + basic_machine=m68k-ncr
3450 + basic_machine=s390x-ibm
3454 + basic_machine=a29k-amd
3458 + basic_machine=a29k-nyu
3462 + basic_machine=v810-nec
3466 + basic_machine=vax-dec
3470 + basic_machine=vax-dec
3474 + basic_machine=f301-fujitsu
3477 + basic_machine=i960-wrs
3481 + basic_machine=m68k-wrs
3485 + basic_machine=a29k-wrs
3489 + basic_machine=w65-wdc
3493 + basic_machine=hppa1.1-winbond
3497 + basic_machine=i686-pc
3501 + basic_machine=xps100-honeywell
3504 + basic_machine=ymp-cray
3508 + basic_machine=z8k-unknown
3512 + basic_machine=z80-unknown
3516 + basic_machine=none-none
3520 +# Here we handle the default manufacturer of certain CPU types. It is in
3521 +# some cases the only manufacturer, in others, it is the most popular.
3523 + basic_machine=hppa1.1-winbond
3526 + basic_machine=hppa1.1-oki
3529 + basic_machine=hppa1.1-oki
3532 + basic_machine=romp-ibm
3535 + basic_machine=mmix-knuth
3538 + basic_machine=rs6000-ibm
3541 + basic_machine=vax-dec
3544 + # there are many clones, so DEC is not a safe bet
3545 + basic_machine=pdp10-unknown
3548 + basic_machine=pdp11-dec
3551 + basic_machine=we32k-att
3553 + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
3554 + basic_machine=sh-unknown
3556 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
3557 + basic_machine=sparc-sun
3560 + basic_machine=cydra-cydrome
3563 + basic_machine=orion-highlevel
3566 + basic_machine=clipper-highlevel
3568 + mac | mpw | mac-mpw)
3569 + basic_machine=m68k-apple
3572 + basic_machine=powerpc-apple
3575 + # Make sure to match an already-canonicalized machine name.
3578 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
3583 +# Here we canonicalize certain aliases for manufacturers.
3584 +case $basic_machine in
3586 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
3589 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
3595 +# Decode manufacturer-specific aliases for certain operating systems.
3597 +if [ x"$os" != x"" ]
3600 + # First match some system type aliases
3601 + # that might get confused with valid system types.
3602 + # -solaris* is a basic system type, with this one exception.
3606 + -solaris1 | -solaris1.*)
3607 + os=`echo $os | sed -e 's|solaris1|sunos4|'`
3619 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
3621 + # First accept the basic system types.
3622 + # The portable systems comes first.
3623 + # Each alternative MUST END IN A *, to match a version number.
3624 + # -sysv* is not here because it comes later, after sysvr4.
3625 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
3626 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
3627 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
3628 + | -sym* | -kopensolaris* \
3629 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
3630 + | -aos* | -aros* \
3631 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
3632 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
3633 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
3634 + | -openbsd* | -solidbsd* \
3635 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
3636 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
3637 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
3638 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
3639 + | -chorusos* | -chorusrdb* | -cegcc* \
3640 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
3641 + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
3642 + | -uxpv* | -beos* | -mpeix* | -udk* \
3643 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
3644 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
3645 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
3646 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
3647 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
3648 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
3649 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
3650 + # Remember, each alternative MUST END IN *, to match a version number.
3653 + case $basic_machine in
3664 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
3666 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
3667 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
3668 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
3671 + os=`echo $os | sed -e 's|mac|macos|'`
3674 + os=-linux-dietlibc
3677 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
3680 + os=`echo $os | sed -e 's|sunos5|solaris2|'`
3683 + os=`echo $os | sed -e 's|sunos6|solaris3|'`
3730 + # Preserve the version number of sinix5.
3732 + os=`echo $os | sed -e 's|sinix|sysv|'`
3755 + # This must come after -sysvr4.
3767 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
3785 + # Get rid of the `-' at the beginning of $os.
3786 + os=`echo $os | sed 's/[^-]*-//'`
3787 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
3793 +# Here we handle the default operating systems that come with various machines.
3794 +# The value should be what the vendor currently ships out the door with their
3795 +# machine or put another way, the most popular os provided with the machine.
3797 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
3798 +# "-sun"), then you have to tell the case statement up towards the top
3799 +# that MANUFACTURER isn't an operating system. Otherwise, code above
3800 +# will signal an error saying that MANUFACTURER isn't an operating
3801 +# system, and we'll never get to this point.
3803 +case $basic_machine in
3822 + # This must come before the *-dec entry.
3840 + # This also exists in the configure program, but was not the
3859 + *-tti) # must be before sparc entry or we get the wrong os.
3892 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
3946 + f30[01]-fujitsu | f700-fujitsu)
3967 +# Here we handle the case where we know the os, and the CPU type, but not the
3968 +# manufacturer. We pick the logical manufacturer.
3970 +case $basic_machine in
4018 + -vxsim* | -vxworks* | -windiss*)
4030 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
4037 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
4041 +echo $basic_machine$os
4045 +# eval: (add-hook 'write-file-hooks 'time-stamp)
4046 +# time-stamp-start: "timestamp='"
4047 +# time-stamp-format: "%:y-%02m-%02d"
4048 +# time-stamp-end: "'"
4050 Index: libffi/configure
4051 ===================================================================
4052 --- libffi.orig/configure
4053 +++ libffi/configure
4056 # Guess values for system-dependent variables and create Makefiles.
4057 -# Generated by GNU Autoconf 2.64 for libffi 3.0.9.
4058 +# Generated by GNU Autoconf 2.63 for libffi 3.0.10rc0.
4060 # Report bugs to <http://gcc.gnu.org/bugs.html>.
4062 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
4063 -# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
4066 +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4067 # This configure script is free software; the Free Software Foundation
4068 # gives unlimited permission to copy, distribute and modify it.
4069 -## -------------------- ##
4070 -## M4sh Initialization. ##
4071 -## -------------------- ##
4072 +## --------------------- ##
4073 +## M4sh Initialization. ##
4074 +## --------------------- ##
4076 # Be more Bourne compatible
4077 DUALCASE=1; export DUALCASE # for MKS sh
4078 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4079 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4082 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4083 @@ -24,15 +22,23 @@ if test -n "${ZSH_VERSION+set}" && (emul
4084 alias -g '${1+"$@"}'='"$@"'
4085 setopt NO_GLOB_SUBST
4087 - case `(set -o) 2>/dev/null` in #(
4089 - set -o posix ;; #(
4092 + case `(set -o) 2>/dev/null` in
4093 + *posix*) set -o posix ;;
4102 +# Avoid depending upon Character Ranges.
4103 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4104 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4105 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4106 +as_cr_digits='0123456789'
4107 +as_cr_alnum=$as_cr_Letters$as_cr_digits
4112 @@ -40,13 +46,7 @@ export as_nl
4113 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4115 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4116 -# Prefer a ksh shell builtin over an external printf program on Solaris,
4117 -# but without wasting forks for bash or zsh.
4118 -if test -z "$BASH_VERSION$ZSH_VERSION" \
4119 - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4120 - as_echo='print -r --'
4121 - as_echo_n='print -rn --'
4122 -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4123 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4124 as_echo='printf %s\n'
4125 as_echo_n='printf %s'
4127 @@ -57,7 +57,7 @@ else
4128 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4129 as_echo_n_body='eval
4134 expr "X$arg" : "X\\(.*\\)$as_nl";
4135 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4136 @@ -80,6 +80,13 @@ if test "${PATH_SEPARATOR+set}" != set;
4140 +# Support unset when possible.
4141 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4149 # We need space, tab and new line, in precisely that order. Quoting is
4150 @@ -89,15 +96,15 @@ fi
4153 # Find who we are. Look in the path if we contain no directory separator.
4156 *[\\/]* ) as_myself=$0 ;;
4157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 test -z "$as_dir" && as_dir=.
4162 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4164 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4169 @@ -109,16 +116,12 @@ if test "x$as_myself" = x; then
4171 if test ! -f "$as_myself"; then
4172 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4174 + { (exit 1); exit 1; }
4177 -# Unset variables that we do not need and which cause bugs (e.g. in
4178 -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4179 -# suppresses any "Segmentation fault" message there. '((' could
4180 -# trigger a bug in pdksh 5.2.14.
4181 -for as_var in BASH_ENV ENV MAIL MAILPATH
4182 -do eval test x\${$as_var+set} = xset \
4183 - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4184 +# Work around bugs in pre-3.0 UWIN ksh.
4185 +for as_var in ENV MAIL MAILPATH
4186 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4190 @@ -130,308 +133,330 @@ export LC_ALL
4194 +# Required to use basename.
4195 +if expr a : '\(a\)' >/dev/null 2>&1 &&
4196 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
4202 +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4203 + as_basename=basename
4209 +# Name of the executable.
4210 +as_me=`$as_basename -- "$0" ||
4211 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4212 + X"$0" : 'X\(//\)$' \| \
4213 + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4215 + sed '/^.*\/\([^/][^/]*\)\/*$/{
4230 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4234 if test "x$CONFIG_SHELL" = x; then
4235 - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
4238 - # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
4239 - # is contrary to our usage. Disable this feature.
4240 - alias -g '\${1+\"\$@\"}'='\"\$@\"'
4241 - setopt NO_GLOB_SUBST
4242 + if (eval ":") 2>/dev/null; then
4243 + as_have_required=yes
4245 - case \`(set -o) 2>/dev/null\` in #(
4247 - set -o posix ;; #(
4251 + as_have_required=no
4254 - as_required="as_fn_return () { (exit \$1); }
4255 -as_fn_success () { as_fn_return 0; }
4256 -as_fn_failure () { as_fn_return 1; }
4257 -as_fn_ret_success () { return 0; }
4258 -as_fn_ret_failure () { return 1; }
4260 + if test $as_have_required = yes && (eval ":
4261 +(as_func_return () {
4264 +as_func_success () {
4267 +as_func_failure () {
4270 +as_func_ret_success () {
4273 +as_func_ret_failure () {
4278 -as_fn_success || { exitcode=1; echo as_fn_success failed.; }
4279 -as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
4280 -as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
4281 -as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
4282 -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
4285 - exitcode=1; echo positional parameters were not saved.
4287 -test x\$exitcode = x0 || exit 1"
4288 - as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
4289 - as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
4290 - eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
4291 - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
4293 - test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
4294 - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4295 - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
4296 - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
4297 - PATH=/empty FPATH=/empty; export PATH FPATH
4298 - test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
4299 - || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
4300 -test \$(( 1 + 1 )) = 2 || exit 1"
4301 - if (eval "$as_required") 2>/dev/null; then :
4302 - as_have_required=yes
4303 +if as_func_success; then
4306 - as_have_required=no
4308 + echo as_func_success failed.
4311 +if as_func_failure; then
4313 + echo as_func_failure succeeded.
4315 - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
4317 +if as_func_ret_success; then
4320 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 + echo as_func_ret_success failed.
4326 +if as_func_ret_failure; then
4328 + echo as_func_ret_failure succeeded.
4331 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
4335 + echo positional parameters were not saved.
4338 +test \$exitcode = 0) || { (exit 1); exit 1; }
4341 + as_lineno_1=\$LINENO
4342 + as_lineno_2=\$LINENO
4343 + test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
4344 + test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
4345 +") 2> /dev/null; then
4348 + as_candidate_shells=
4349 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4353 test -z "$as_dir" && as_dir=.
4355 - case $as_dir in #(
4358 for as_base in sh bash ksh sh5; do
4359 - # Try only shells that exist, to save several forks.
4360 - as_shell=$as_dir/$as_base
4361 - if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
4362 - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
4363 - CONFIG_SHELL=$as_shell as_have_required=yes
4364 - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
4368 + as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
4373 -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
4374 - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
4375 - CONFIG_SHELL=$SHELL as_have_required=yes
4380 - if test "x$CONFIG_SHELL" != x; then :
4381 - # We cannot yet assume a decent shell, so we have to provide a
4382 - # neutralization value for shells without unset; and this also
4383 - # works around shells that cannot unset nonexistent variables.
4384 - BASH_ENV=/dev/null
4386 - (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
4387 - export CONFIG_SHELL
4388 - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
4390 + for as_shell in $as_candidate_shells $SHELL; do
4391 + # Try only shells that exist, to save several forks.
4392 + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
4393 + { ("$as_shell") 2> /dev/null <<\_ASEOF
4394 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4397 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4398 + # is contrary to our usage. Disable this feature.
4399 + alias -g '${1+"$@"}'='"$@"'
4400 + setopt NO_GLOB_SUBST
4402 + case `(set -o) 2>/dev/null` in
4403 + *posix*) set -o posix ;;
4406 - if test x$as_have_required = xno; then :
4407 - $as_echo "$0: This script requires a shell more modern than all"
4408 - $as_echo "$0: the shells that I found on your system."
4409 - if test x${ZSH_VERSION+set} = xset ; then
4410 - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
4411 - $as_echo "$0: be upgraded to zsh 4.3.4 or later."
4413 - $as_echo "$0: Please tell bug-autoconf@gnu.org and
4414 -$0: http://gcc.gnu.org/bugs.html about your system,
4415 -$0: including any error possibly output before this
4416 -$0: message. Then install a modern shell, or manually run
4417 -$0: the script under such a shell if you do have one."
4427 + CONFIG_SHELL=$as_shell
4428 + as_have_required=yes
4429 + if { "$as_shell" 2> /dev/null <<\_ASEOF
4430 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4433 + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4434 + # is contrary to our usage. Disable this feature.
4435 + alias -g '${1+"$@"}'='"$@"'
4436 + setopt NO_GLOB_SUBST
4438 + case `(set -o) 2>/dev/null` in
4439 + *posix*) set -o posix ;;
4443 -SHELL=${CONFIG_SHELL-/bin/sh}
4445 -# Unset more variables known to interfere with behavior of common tools.
4446 -CLICOLOR_FORCE= GREP_OPTIONS=
4447 -unset CLICOLOR_FORCE GREP_OPTIONS
4449 -## --------------------- ##
4450 -## M4sh Shell Functions. ##
4451 -## --------------------- ##
4454 -# Portably unset VAR.
4457 - { eval $1=; unset $1;}
4459 -as_unset=as_fn_unset
4461 -# as_fn_set_status STATUS
4462 -# -----------------------
4463 -# Set $? to STATUS, without forking.
4464 -as_fn_set_status ()
4467 -} # as_fn_set_status
4469 -# as_fn_exit STATUS
4470 -# -----------------
4471 -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4475 - as_fn_set_status $1
4481 -# Create "$as_dir" as a directory, including parents if necessary.
4485 - case $as_dir in #(
4486 - -*) as_dir=./$as_dir;;
4488 - test -d "$as_dir" || eval $as_mkdir_p || {
4491 - case $as_dir in #(
4492 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4493 - *) as_qdir=$as_dir;;
4495 - as_dirs="'$as_qdir' $as_dirs"
4496 - as_dir=`$as_dirname -- "$as_dir" ||
4497 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4498 - X"$as_dir" : 'X\(//\)[^/]' \| \
4499 - X"$as_dir" : 'X\(//\)$' \| \
4500 - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4501 -$as_echo X"$as_dir" |
4502 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4506 - /^X\(\/\/\)[^/].*/{
4519 - test -d "$as_dir" && break
4521 - test -z "$as_dirs" || eval "mkdir $as_dirs"
4522 - } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4524 +(as_func_return () {
4527 +as_func_success () {
4530 +as_func_failure () {
4533 +as_func_ret_success () {
4536 +as_func_ret_failure () {
4541 +if as_func_success; then
4545 + echo as_func_success failed.
4549 -# as_fn_append VAR VALUE
4550 -# ----------------------
4551 -# Append the text in VALUE to the end of the definition contained in VAR. Take
4552 -# advantage of any shell optimizations that allow amortized linear growth over
4553 -# repeated appends, instead of the typical quadratic growth present in naive
4555 -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4556 - eval 'as_fn_append ()
4560 +if as_func_failure; then
4562 + echo as_func_failure succeeded.
4565 +if as_func_ret_success; then
4574 + echo as_func_ret_success failed.
4577 -# as_fn_arith ARG...
4578 -# ------------------
4579 -# Perform arithmetic evaluation on the ARGs, and store the result in the
4580 -# global $as_val. Take advantage of shells that can avoid forks. The arguments
4581 -# must be portable across $(()) and expr.
4582 -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4583 - eval 'as_fn_arith ()
4587 +if as_func_ret_failure; then
4589 + echo as_func_ret_failure succeeded.
4592 +if ( set x; as_func_ret_success y && test x = "$1" ); then
4597 - as_val=`expr "$@" || test $? -eq 1`
4601 + echo positional parameters were not saved.
4604 +test $exitcode = 0) || { (exit 1); exit 1; }
4606 -# as_fn_error ERROR [LINENO LOG_FD]
4607 -# ---------------------------------
4608 -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4609 -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4610 -# script with status $?, using 1 if that was 0.
4613 - as_status=$?; test $as_status -eq 0 && as_status=1
4614 - if test "$3"; then
4615 - as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4616 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4618 - $as_echo "$as_me: error: $1" >&2
4619 - as_fn_exit $as_status
4622 + as_lineno_1=$LINENO
4623 + as_lineno_2=$LINENO
4624 + test "x$as_lineno_1" != "x$as_lineno_2" &&
4625 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
4627 -if expr a : '\(a\)' >/dev/null 2>&1 &&
4628 - test "X`expr 00001 : '.*\(...\)'`" = X001; then
4639 + if test "x$CONFIG_SHELL" != x; then
4640 + for as_var in BASH_ENV ENV
4641 + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
4643 + export CONFIG_SHELL
4644 + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
4648 + if test $as_have_required = no; then
4649 + echo This script requires a shell more modern than all the
4650 + echo shells that I found on your system. Please install a
4651 + echo modern shell, or manually run the script under such a
4652 + echo shell if you do have one.
4653 + { (exit 1); exit 1; }
4663 +(eval "as_func_return () {
4666 +as_func_success () {
4669 +as_func_failure () {
4672 +as_func_ret_success () {
4675 +as_func_ret_failure () {
4680 +if as_func_success; then
4685 + echo as_func_success failed.
4688 -if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4689 - as_basename=basename
4690 +if as_func_failure; then
4692 + echo as_func_failure succeeded.
4695 +if as_func_ret_success; then
4700 + echo as_func_ret_success failed.
4703 -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4704 - as_dirname=dirname
4705 +if as_func_ret_failure; then
4707 + echo as_func_ret_failure succeeded.
4710 +if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
4715 + echo positional parameters were not saved.
4718 -as_me=`$as_basename -- "$0" ||
4719 -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4720 - X"$0" : 'X\(//\)$' \| \
4721 - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4723 - sed '/^.*\/\([^/][^/]*\)\/*$/{
4736 +test \$exitcode = 0") || {
4737 + echo No shell found that supports shell functions.
4738 + echo Please tell bug-autoconf@gnu.org about your system,
4739 + echo including any error possibly output before this message.
4740 + echo This can help us improve future autoconf versions.
4741 + echo Configuration will now proceed without shell functions.
4744 -# Avoid depending upon Character Ranges.
4745 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4746 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4747 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4748 -as_cr_digits='0123456789'
4749 -as_cr_alnum=$as_cr_Letters$as_cr_digits
4752 - as_lineno_1=$LINENO as_lineno_1a=$LINENO
4753 - as_lineno_2=$LINENO as_lineno_2a=$LINENO
4754 - eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
4755 - test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
4756 - # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
4757 + as_lineno_1=$LINENO
4758 + as_lineno_2=$LINENO
4759 + test "x$as_lineno_1" != "x$as_lineno_2" &&
4760 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
4762 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4763 + # uniformly replaced by the line number. The first 'sed' inserts a
4764 + # line-number line after each line using $LINENO; the second 'sed'
4765 + # does the real work. The second script uses 'N' to pair each
4766 + # line-number line with the line containing $LINENO, and appends
4767 + # trailing '-' during substitution so that $LINENO is not a special
4768 + # case at line end.
4769 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4770 + # scripts with optimization help from Paolo Bonzini. Blame Lee
4771 + # E. McMahon (1931-1989) for sed's syntax. :-)
4775 @@ -448,7 +473,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
4778 chmod +x "$as_me.lineno" ||
4779 - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
4780 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
4781 + { (exit 1); exit 1; }; }
4783 # Don't try to exec as it changes $[0], causing all sort of problems
4784 # (the dirname of $[0] is not the place where we might find the
4785 @@ -458,18 +484,29 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
4789 -ECHO_C= ECHO_N= ECHO_T=
4790 -case `echo -n x` in #(((((
4792 - case `echo 'xy\c'` in
4793 - *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4795 - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4799 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4800 + as_dirname=dirname
4805 +ECHO_C= ECHO_N= ECHO_T=
4806 +case `echo -n x` in
4808 + case `echo 'x\c'` in
4809 + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4815 +if expr a : '\(a\)' >/dev/null 2>&1 &&
4816 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
4822 rm -f conf$$ conf$$.exe conf$$.file
4823 if test -d conf$$.dir; then
4824 @@ -499,7 +536,7 @@ rm -f conf$$ conf$$.exe conf$$.dir/conf$
4825 rmdir conf$$.dir 2>/dev/null
4827 if mkdir -p . 2>/dev/null; then
4828 - as_mkdir_p='mkdir -p "$as_dir"'
4831 test -d ./-p && rmdir ./-p
4833 @@ -518,10 +555,10 @@ else
4834 if test -d "$1"; then
4841 - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4842 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
4843 ???[sx]*):;;*)false;;esac;fi
4846 @@ -534,8 +571,156 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P
4847 # Sed expression to map a string onto a valid variable name.
4848 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4853 +# Check that we are running under the correct shell.
4854 SHELL=${CONFIG_SHELL-/bin/sh}
4858 + # Remove one level of quotation (which was required for Make).
4859 + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
4863 +ECHO=${lt_ECHO-echo}
4864 +if test "X$1" = X--no-reexec; then
4865 + # Discard the --no-reexec flag, and continue.
4867 +elif test "X$1" = X--fallback-echo; then
4868 + # Avoid inline document here, it may be left over
4870 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
4871 + # Yippee, $ECHO works!
4874 + # Restart under the correct shell.
4875 + exec $SHELL "$0" --no-reexec ${1+"$@"}
4878 +if test "X$1" = X--fallback-echo; then
4879 + # used as fallback echo
4887 +# The HP-UX ksh and POSIX shell print the target directory to stdout
4888 +# if CDPATH is set.
4889 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4891 +if test -z "$lt_ECHO"; then
4892 + if test "X${echo_test_string+set}" != Xset; then
4893 + # find a string as large as possible, as long as the shell can cope with it
4894 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
4895 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
4896 + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
4897 + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
4904 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
4905 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
4906 + test "X$echo_testing_string" = "X$echo_test_string"; then
4909 + # The Solaris, AIX, and Digital Unix default echo programs unquote
4910 + # backslashes. This makes it impossible to quote backslashes using
4911 + # echo "$something" | sed 's/\\/\\\\/g'
4913 + # So, first we look for a working echo in the user's PATH.
4915 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4916 + for dir in $PATH /usr/ucb; do
4917 + IFS="$lt_save_ifs"
4918 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
4919 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
4920 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
4921 + test "X$echo_testing_string" = "X$echo_test_string"; then
4926 + IFS="$lt_save_ifs"
4928 + if test "X$ECHO" = Xecho; then
4929 + # We didn't find a better echo, so look for alternatives.
4930 + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
4931 + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
4932 + test "X$echo_testing_string" = "X$echo_test_string"; then
4933 + # This shell has a builtin print -r that does the trick.
4935 + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
4936 + test "X$CONFIG_SHELL" != X/bin/ksh; then
4937 + # If we have ksh, try running configure again with it.
4938 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4939 + export ORIGINAL_CONFIG_SHELL
4940 + CONFIG_SHELL=/bin/ksh
4941 + export CONFIG_SHELL
4942 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
4944 + # Try using printf.
4945 + ECHO='printf %s\n'
4946 + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
4947 + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
4948 + test "X$echo_testing_string" = "X$echo_test_string"; then
4949 + # Cool, printf works
4951 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
4952 + test "X$echo_testing_string" = 'X\t' &&
4953 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
4954 + test "X$echo_testing_string" = "X$echo_test_string"; then
4955 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
4956 + export CONFIG_SHELL
4957 + SHELL="$CONFIG_SHELL"
4959 + ECHO="$CONFIG_SHELL $0 --fallback-echo"
4960 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
4961 + test "X$echo_testing_string" = 'X\t' &&
4962 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
4963 + test "X$echo_testing_string" = "X$echo_test_string"; then
4964 + ECHO="$CONFIG_SHELL $0 --fallback-echo"
4966 + # maybe with a smaller string...
4969 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
4970 + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
4977 + if test "$prev" != 'sed 50q "$0"'; then
4978 + echo_test_string=`eval $prev`
4979 + export echo_test_string
4980 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
4982 + # Oops. We lost completely, so just stick with echo.
4991 +# Copy echo and quote the copy suitably for passing to libtool from
4992 +# the Makefile, instead of quoting the original, which is used later.
4994 +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
4995 + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
5001 exec 7<&0 </dev/null 6>&1
5003 @@ -555,14 +740,14 @@ cross_compiling=no
5007 +SHELL=${CONFIG_SHELL-/bin/sh}
5009 # Identity of this package.
5010 PACKAGE_NAME='libffi'
5011 PACKAGE_TARNAME='libffi'
5012 -PACKAGE_VERSION='3.0.9'
5013 -PACKAGE_STRING='libffi 3.0.9'
5014 +PACKAGE_VERSION='3.0.10rc0'
5015 +PACKAGE_STRING='libffi 3.0.10rc0'
5016 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
5019 # Factoring default headers for most tests.
5020 ac_includes_default="\
5021 @@ -640,6 +825,8 @@ POWERPC_AIX_FALSE
5030 @@ -675,6 +862,7 @@ OTOOL
5038 @@ -744,7 +932,6 @@ build_os
5046 @@ -775,7 +962,6 @@ bindir
5047 program_transform_name
5054 @@ -786,7 +972,6 @@ SHELL'
5057 enable_option_checking
5059 enable_dependency_tracking
5062 @@ -915,7 +1100,8 @@ do
5063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
5064 # Reject names that are not valid shell variable names.
5065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5066 - as_fn_error "invalid feature name: $ac_useropt"
5067 + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
5068 + { (exit 1); exit 1; }; }
5069 ac_useropt_orig=$ac_useropt
5070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5071 case $ac_user_opts in
5072 @@ -941,7 +1127,8 @@ do
5073 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
5074 # Reject names that are not valid shell variable names.
5075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5076 - as_fn_error "invalid feature name: $ac_useropt"
5077 + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
5078 + { (exit 1); exit 1; }; }
5079 ac_useropt_orig=$ac_useropt
5080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5081 case $ac_user_opts in
5082 @@ -1145,7 +1332,8 @@ do
5083 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
5084 # Reject names that are not valid shell variable names.
5085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5086 - as_fn_error "invalid package name: $ac_useropt"
5087 + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
5088 + { (exit 1); exit 1; }; }
5089 ac_useropt_orig=$ac_useropt
5090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5091 case $ac_user_opts in
5092 @@ -1161,7 +1349,8 @@ do
5093 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
5094 # Reject names that are not valid shell variable names.
5095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
5096 - as_fn_error "invalid package name: $ac_useropt"
5097 + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
5098 + { (exit 1); exit 1; }; }
5099 ac_useropt_orig=$ac_useropt
5100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
5101 case $ac_user_opts in
5102 @@ -1191,17 +1380,17 @@ do
5103 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
5104 x_libraries=$ac_optarg ;;
5106 - -*) as_fn_error "unrecognized option: \`$ac_option'
5107 -Try \`$0 --help' for more information."
5108 + -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
5109 +Try \`$0 --help' for more information." >&2
5110 + { (exit 1); exit 1; }; }
5114 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
5115 # Reject names that are not valid shell variable names.
5116 - case $ac_envvar in #(
5117 - '' | [0-9]* | *[!_$as_cr_alnum]* )
5118 - as_fn_error "invalid variable name: \`$ac_envvar'" ;;
5120 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
5121 + { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
5122 + { (exit 1); exit 1; }; }
5123 eval $ac_envvar=\$ac_optarg
5124 export $ac_envvar ;;
5126 @@ -1218,13 +1407,15 @@ done
5128 if test -n "$ac_prev"; then
5129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5130 - as_fn_error "missing argument to $ac_option"
5131 + { $as_echo "$as_me: error: missing argument to $ac_option" >&2
5132 + { (exit 1); exit 1; }; }
5135 if test -n "$ac_unrecognized_opts"; then
5136 case $enable_option_checking in
5138 - fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
5139 + fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
5140 + { (exit 1); exit 1; }; } ;;
5141 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5144 @@ -1247,7 +1438,8 @@ do
5145 [\\/$]* | ?:[\\/]* ) continue;;
5146 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
5148 - as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
5149 + { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
5150 + { (exit 1); exit 1; }; }
5153 # There might be people who depend on the old broken behavior: `$host'
5154 @@ -1277,9 +1469,11 @@ test "$silent" = yes && exec 6>/dev/null
5155 ac_pwd=`pwd` && test -n "$ac_pwd" &&
5156 ac_ls_di=`ls -di .` &&
5157 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
5158 - as_fn_error "working directory cannot be determined"
5159 + { $as_echo "$as_me: error: working directory cannot be determined" >&2
5160 + { (exit 1); exit 1; }; }
5161 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
5162 - as_fn_error "pwd does not report name of working directory"
5163 + { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
5164 + { (exit 1); exit 1; }; }
5167 # Find the source files, if location was not specified.
5168 @@ -1318,11 +1512,13 @@ else
5170 if test ! -r "$srcdir/$ac_unique_file"; then
5171 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
5172 - as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
5173 + { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
5174 + { (exit 1); exit 1; }; }
5176 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
5178 - cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
5179 + cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
5180 + { (exit 1); exit 1; }; }
5182 # When building in place, set srcdir=.
5183 if test "$ac_abs_confdir" = "$ac_pwd"; then
5184 @@ -1348,7 +1544,7 @@ if test "$ac_init_help" = "long"; then
5185 # Omit some internal or obsolete options to make the list less imposing.
5186 # This message is too long to be a string in the A/UX 3.1 sh.
5188 -\`configure' configures libffi 3.0.9 to adapt to many kinds of systems.
5189 +\`configure' configures libffi 3.0.10rc0 to adapt to many kinds of systems.
5191 Usage: $0 [OPTION]... [VAR=VALUE]...
5193 @@ -1419,7 +1615,7 @@ fi
5195 if test -n "$ac_init_help"; then
5196 case $ac_init_help in
5197 - short | recursive ) echo "Configuration of libffi 3.0.9:";;
5198 + short | recursive ) echo "Configuration of libffi 3.0.10rc0:";;
5202 @@ -1427,7 +1623,6 @@ Optional Features:
5203 --disable-option-checking ignore unrecognized --enable/--with options
5204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
5205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5206 - --enable-multilib build many library versions (default)
5207 --disable-dependency-tracking speeds up one-time build
5208 --enable-dependency-tracking do not reject slow dependency extractors
5209 --enable-shared[=PKGS] build shared libraries [default=yes]
5210 @@ -1527,604 +1722,69 @@ fi
5211 test -n "$ac_init_help" && exit $ac_status
5212 if $ac_init_version; then
5214 -libffi configure 3.0.9
5215 -generated by GNU Autoconf 2.64
5216 +libffi configure 3.0.10rc0
5217 +generated by GNU Autoconf 2.63
5219 -Copyright (C) 2009 Free Software Foundation, Inc.
5220 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5221 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
5222 This configure script is free software; the Free Software Foundation
5223 gives unlimited permission to copy, distribute and modify it.
5227 +cat >config.log <<_ACEOF
5228 +This file contains any messages produced by compilers while
5229 +running configure, to aid debugging if configure makes a mistake.
5231 -## ------------------------ ##
5232 -## Autoconf initialization. ##
5233 -## ------------------------ ##
5235 -# ac_fn_c_try_compile LINENO
5236 -# --------------------------
5237 -# Try to compile conftest.$ac_ext, and return whether this succeeded.
5238 -ac_fn_c_try_compile ()
5240 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5241 - rm -f conftest.$ac_objext
5242 - if { { ac_try="$ac_compile"
5243 -case "(($ac_try" in
5244 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 - *) ac_try_echo=$ac_try;;
5247 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5248 -$as_echo "$ac_try_echo"; } >&5
5249 - (eval "$ac_compile") 2>conftest.err
5251 - if test -s conftest.err; then
5252 - grep -v '^ *+' conftest.err >conftest.er1
5253 - cat conftest.er1 >&5
5254 - mv -f conftest.er1 conftest.err
5256 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5257 - test $ac_status = 0; } && {
5258 - test -z "$ac_c_werror_flag" ||
5259 - test ! -s conftest.err
5260 - } && test -s conftest.$ac_objext; then :
5263 - $as_echo "$as_me: failed program was:" >&5
5264 -sed 's/^/| /' conftest.$ac_ext >&5
5268 - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5271 -} # ac_fn_c_try_compile
5273 -# ac_fn_c_try_link LINENO
5274 -# -----------------------
5275 -# Try to link conftest.$ac_ext, and return whether this succeeded.
5276 -ac_fn_c_try_link ()
5278 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5279 - rm -f conftest.$ac_objext conftest$ac_exeext
5280 - if { { ac_try="$ac_link"
5281 -case "(($ac_try" in
5282 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 - *) ac_try_echo=$ac_try;;
5285 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5286 -$as_echo "$ac_try_echo"; } >&5
5287 - (eval "$ac_link") 2>conftest.err
5289 - if test -s conftest.err; then
5290 - grep -v '^ *+' conftest.err >conftest.er1
5291 - cat conftest.er1 >&5
5292 - mv -f conftest.er1 conftest.err
5294 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5295 - test $ac_status = 0; } && {
5296 - test -z "$ac_c_werror_flag" ||
5297 - test ! -s conftest.err
5298 - } && test -s conftest$ac_exeext && {
5299 - test "$cross_compiling" = yes ||
5300 - $as_test_x conftest$ac_exeext
5304 - $as_echo "$as_me: failed program was:" >&5
5305 -sed 's/^/| /' conftest.$ac_ext >&5
5309 - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
5310 - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
5311 - # interfere with the next link command; also delete a directory that is
5312 - # left behind by Apple's compiler. We do this before executing the actions.
5313 - rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5314 - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5316 +It was created by libffi $as_me 3.0.10rc0, which was
5317 +generated by GNU Autoconf 2.63. Invocation command line was
5319 -} # ac_fn_c_try_link
5322 -# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
5323 -# -------------------------------------------------------
5324 -# Tests whether HEADER exists and can be compiled using the include files in
5325 -# INCLUDES, setting the cache variable VAR accordingly.
5326 -ac_fn_c_check_header_compile ()
5328 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5329 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5330 -$as_echo_n "checking for $2... " >&6; }
5331 -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
5332 - $as_echo_n "(cached) " >&6
5334 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 -/* end confdefs.h. */
5339 -if ac_fn_c_try_compile "$LINENO"; then :
5344 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5347 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5348 -$as_echo "$ac_res" >&6; }
5349 - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5351 -} # ac_fn_c_check_header_compile
5353 -# ac_fn_c_try_cpp LINENO
5354 -# ----------------------
5355 -# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
5358 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5359 - if { { ac_try="$ac_cpp conftest.$ac_ext"
5360 -case "(($ac_try" in
5361 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 - *) ac_try_echo=$ac_try;;
5364 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5365 -$as_echo "$ac_try_echo"; } >&5
5366 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
5368 - if test -s conftest.err; then
5369 - grep -v '^ *+' conftest.err >conftest.er1
5370 - cat conftest.er1 >&5
5371 - mv -f conftest.er1 conftest.err
5373 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5374 - test $ac_status = 0; } >/dev/null && {
5375 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5376 - test ! -s conftest.err
5380 - $as_echo "$as_me: failed program was:" >&5
5381 -sed 's/^/| /' conftest.$ac_ext >&5
5385 - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5388 -} # ac_fn_c_try_cpp
5390 -# ac_fn_c_try_run LINENO
5391 -# ----------------------
5392 -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
5393 -# that executables *can* be run.
5397 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5398 - if { { ac_try="$ac_link"
5399 -case "(($ac_try" in
5400 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 - *) ac_try_echo=$ac_try;;
5403 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5404 -$as_echo "$ac_try_echo"; } >&5
5405 - (eval "$ac_link") 2>&5
5407 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5408 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
5409 - { { case "(($ac_try" in
5410 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 - *) ac_try_echo=$ac_try;;
5413 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5414 -$as_echo "$ac_try_echo"; } >&5
5415 - (eval "$ac_try") 2>&5
5417 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5418 - test $ac_status = 0; }; }; then :
5421 - $as_echo "$as_me: program exited with status $ac_status" >&5
5422 - $as_echo "$as_me: failed program was:" >&5
5423 -sed 's/^/| /' conftest.$ac_ext >&5
5429 - ac_retval=$ac_status
5431 - rm -rf conftest.dSYM conftest_ipa8_conftest.oo
5432 - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5434 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
5435 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
5436 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
5437 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
5438 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
5440 -} # ac_fn_c_try_run
5441 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
5442 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5444 -# ac_fn_c_check_func LINENO FUNC VAR
5445 -# ----------------------------------
5446 -# Tests whether FUNC exists, setting the cache variable VAR accordingly
5447 -ac_fn_c_check_func ()
5449 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5450 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5451 -$as_echo_n "checking for $2... " >&6; }
5452 -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
5453 - $as_echo_n "(cached) " >&6
5455 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 -/* end confdefs.h. */
5457 -/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
5458 - For example, HP-UX 11i <limits.h> declares gettimeofday. */
5459 -#define $2 innocuous_$2
5460 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
5461 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
5462 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5463 +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
5464 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
5465 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
5466 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5468 -/* System header to define __stub macros and hopefully few prototypes,
5469 - which can conflict with char $2 (); below.
5470 - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5471 - <limits.h> exists even on freestanding compilers. */
5475 -# include <limits.h>
5477 -# include <assert.h>
5479 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 +for as_dir in $PATH
5483 + test -z "$as_dir" && as_dir=.
5484 + $as_echo "PATH: $as_dir"
5491 -/* Override any GCC internal prototype to avoid an error.
5492 - Use char because int might match the return type of a GCC
5493 - builtin and then its argument prototype would still apply. */
5498 -/* The GNU C library defines this for functions which it implements
5499 - to always fail with ENOSYS. Some functions are actually named
5500 - something starting with __ and the normal name is an alias. */
5501 -#if defined __stub_$2 || defined __stub___$2
5514 -if ac_fn_c_try_link "$LINENO"; then :
5519 -rm -f core conftest.err conftest.$ac_objext \
5520 - conftest$ac_exeext conftest.$ac_ext
5523 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5524 -$as_echo "$ac_res" >&6; }
5525 - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5527 -} # ac_fn_c_check_func
5529 -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
5530 -# -------------------------------------------------------
5531 -# Tests whether HEADER exists, giving a warning if it cannot be compiled using
5532 -# the include files in INCLUDES and setting the cache variable VAR
5534 -ac_fn_c_check_header_mongrel ()
5536 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5537 - if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
5538 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5539 -$as_echo_n "checking for $2... " >&6; }
5540 -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
5541 - $as_echo_n "(cached) " >&6
5544 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5545 -$as_echo "$ac_res" >&6; }
5547 - # Is the header compilable?
5548 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
5549 -$as_echo_n "checking $2 usability... " >&6; }
5550 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5551 -/* end confdefs.h. */
5555 -if ac_fn_c_try_compile "$LINENO"; then :
5556 - ac_header_compiler=yes
5558 - ac_header_compiler=no
5560 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
5562 -$as_echo "$ac_header_compiler" >&6; }
5564 -# Is the header present?
5565 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
5566 -$as_echo_n "checking $2 presence... " >&6; }
5567 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 -/* end confdefs.h. */
5571 -if ac_fn_c_try_cpp "$LINENO"; then :
5572 - ac_header_preproc=yes
5574 - ac_header_preproc=no
5576 -rm -f conftest.err conftest.$ac_ext
5577 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
5578 -$as_echo "$ac_header_preproc" >&6; }
5580 -# So? What about this header?
5581 -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
5583 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
5584 -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
5585 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
5586 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5589 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
5590 -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
5591 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
5592 -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
5593 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
5594 -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
5595 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
5596 -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
5597 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
5598 -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
5600 -## ------------------------------------------- ##
5601 -## Report this to http://gcc.gnu.org/bugs.html ##
5602 -## ------------------------------------------- ##
5604 - ) | sed "s/^/$as_me: WARNING: /" >&2
5607 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
5608 -$as_echo_n "checking for $2... " >&6; }
5609 -if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
5610 - $as_echo_n "(cached) " >&6
5612 - eval "$3=\$ac_header_compiler"
5615 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5616 -$as_echo "$ac_res" >&6; }
5618 - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5620 -} # ac_fn_c_check_header_mongrel
5622 -# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
5623 -# --------------------------------------------
5624 -# Tries to find the compile-time value of EXPR in a program that includes
5625 -# INCLUDES, setting VAR accordingly. Returns whether the value could be
5627 -ac_fn_c_compute_int ()
5629 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5630 - if test "$cross_compiling" = yes; then
5631 - # Depending upon the size, compute the lo and hi bounds.
5632 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 -/* end confdefs.h. */
5638 -static int test_array [1 - 2 * !(($2) >= 0)];
5645 -if ac_fn_c_try_compile "$LINENO"; then :
5648 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 -/* end confdefs.h. */
5654 -static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5661 -if ac_fn_c_try_compile "$LINENO"; then :
5662 - ac_hi=$ac_mid; break
5664 - as_fn_arith $ac_mid + 1 && ac_lo=$as_val
5665 - if test $ac_lo -le $ac_mid; then
5669 - as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
5671 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 -/* end confdefs.h. */
5680 -static int test_array [1 - 2 * !(($2) < 0)];
5687 -if ac_fn_c_try_compile "$LINENO"; then :
5688 - ac_hi=-1 ac_mid=-1
5690 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 -/* end confdefs.h. */
5696 -static int test_array [1 - 2 * !(($2) >= $ac_mid)];
5703 -if ac_fn_c_try_compile "$LINENO"; then :
5704 - ac_lo=$ac_mid; break
5706 - as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
5707 - if test $ac_mid -le $ac_hi; then
5711 - as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
5713 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5720 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 -# Binary search between lo and hi bounds.
5722 -while test "x$ac_lo" != "x$ac_hi"; do
5723 - as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
5724 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 -/* end confdefs.h. */
5730 -static int test_array [1 - 2 * !(($2) <= $ac_mid)];
5737 -if ac_fn_c_try_compile "$LINENO"; then :
5740 - as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
5742 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 -?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
5749 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 -/* end confdefs.h. */
5752 -static long int longval () { return $2; }
5753 -static unsigned long int ulongval () { return $2; }
5755 -#include <stdlib.h>
5760 - FILE *f = fopen ("conftest.val", "w");
5765 - long int i = longval ();
5768 - fprintf (f, "%ld", i);
5772 - unsigned long int i = ulongval ();
5775 - fprintf (f, "%lu", i);
5777 - /* Do not output a trailing newline, as this causes \r\n confusion
5778 - on some platforms. */
5779 - return ferror (f) || fclose (f) != 0;
5785 -if ac_fn_c_try_run "$LINENO"; then :
5786 - echo >>conftest.val; read $3 <conftest.val; ac_retval=0
5790 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5791 - conftest.$ac_objext conftest.beam conftest.$ac_ext
5795 - eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
5798 -} # ac_fn_c_compute_int
5799 -cat >config.log <<_ACEOF
5800 -This file contains any messages produced by compilers while
5801 -running configure, to aid debugging if configure makes a mistake.
5803 -It was created by libffi $as_me 3.0.9, which was
5804 -generated by GNU Autoconf 2.64. Invocation command line was
5816 -hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
5817 -uname -m = `(uname -m) 2>/dev/null || echo unknown`
5818 -uname -r = `(uname -r) 2>/dev/null || echo unknown`
5819 -uname -s = `(uname -s) 2>/dev/null || echo unknown`
5820 -uname -v = `(uname -v) 2>/dev/null || echo unknown`
5822 -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
5823 -/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
5825 -/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
5826 -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
5827 -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5828 -/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
5829 -/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
5830 -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
5831 -/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
5835 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 -for as_dir in $PATH
5839 - test -z "$as_dir" && as_dir=.
5840 - $as_echo "PATH: $as_dir"
5858 @@ -2151,9 +1811,9 @@ do
5859 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5862 - 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
5863 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
5865 - as_fn_append ac_configure_args1 " '$ac_arg'"
5866 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
5867 if test $ac_must_keep_next = true; then
5868 ac_must_keep_next=false # Got value, back to normal.
5870 @@ -2169,13 +1829,13 @@ do
5871 -* ) ac_must_keep_next=true ;;
5874 - as_fn_append ac_configure_args " '$ac_arg'"
5875 + ac_configure_args="$ac_configure_args '$ac_arg'"
5880 -{ ac_configure_args0=; unset ac_configure_args0;}
5881 -{ ac_configure_args1=; unset ac_configure_args1;}
5882 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
5883 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
5885 # When interrupted or exit'd, cleanup temporary files, and complete
5886 # config.log. We remove comments because anyway the quotes in there
5887 @@ -2200,13 +1860,13 @@ _ASBOX
5891 - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5892 + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
5893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5896 _ | IFS | as_nl) ;; #(
5897 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5898 - *) { eval $ac_var=; unset $ac_var;} ;;
5899 + *) $as_unset $ac_var ;;
5903 @@ -2278,39 +1938,37 @@ _ASBOX
5906 for ac_signal in 1 2 13 15; do
5907 - trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
5908 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
5912 # confdefs.h avoids OS command line length limits that DEFS can exceed.
5913 rm -f -r conftest* confdefs.h
5915 -$as_echo "/* confdefs.h */" > confdefs.h
5917 # Predefined preprocessor variables.
5919 cat >>confdefs.h <<_ACEOF
5920 #define PACKAGE_NAME "$PACKAGE_NAME"
5924 cat >>confdefs.h <<_ACEOF
5925 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
5929 cat >>confdefs.h <<_ACEOF
5930 #define PACKAGE_VERSION "$PACKAGE_VERSION"
5934 cat >>confdefs.h <<_ACEOF
5935 #define PACKAGE_STRING "$PACKAGE_STRING"
5938 -cat >>confdefs.h <<_ACEOF
5939 -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5942 cat >>confdefs.h <<_ACEOF
5943 -#define PACKAGE_URL "$PACKAGE_URL"
5944 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
5948 @@ -2331,7 +1989,7 @@ for ac_site_file in "$ac_site_file1" "$a
5950 test "x$ac_site_file" = xNONE && continue
5951 if test -r "$ac_site_file"; then
5952 - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
5953 + { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
5954 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
5955 sed 's/^/| /' "$ac_site_file" >&5
5957 @@ -2342,7 +2000,7 @@ if test -r "$cache_file"; then
5958 # Some versions of bash will fail to source /dev/null (special
5959 # files actually), so we avoid doing that.
5960 if test -f "$cache_file"; then
5961 - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
5962 + { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
5963 $as_echo "$as_me: loading cache $cache_file" >&6;}
5965 [\\/]* | ?:[\\/]* ) . "$cache_file";;
5966 @@ -2350,7 +2008,7 @@ $as_echo "$as_me: loading cache $cache_f
5970 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
5971 + { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
5972 $as_echo "$as_me: creating cache $cache_file" >&6;}
5975 @@ -2365,11 +2023,11 @@ for ac_var in $ac_precious_vars; do
5976 eval ac_new_val=\$ac_env_${ac_var}_value
5977 case $ac_old_set,$ac_new_set in
5979 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
5980 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
5981 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
5982 ac_cache_corrupted=: ;;
5984 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
5985 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
5986 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
5987 ac_cache_corrupted=: ;;
5989 @@ -2379,17 +2037,17 @@ $as_echo "$as_me: error: \`$ac_var' was
5990 ac_old_val_w=`echo x $ac_old_val`
5991 ac_new_val_w=`echo x $ac_new_val`
5992 if test "$ac_old_val_w" != "$ac_new_val_w"; then
5993 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
5994 + { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
5995 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
5996 ac_cache_corrupted=:
5998 - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
5999 + { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
6000 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
6001 eval $ac_var=\$ac_old_val
6003 - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
6004 + { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
6005 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
6006 - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
6007 + { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
6008 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
6011 @@ -2401,84 +2059,74 @@ $as_echo "$as_me: current value: \`$ac
6013 case " $ac_configure_args " in
6014 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
6015 - *) as_fn_append ac_configure_args " '$ac_arg'" ;;
6016 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
6020 if $ac_cache_corrupted; then
6021 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6022 + { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6024 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
6025 + { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
6026 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
6027 - as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
6028 + { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
6029 +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
6030 + { (exit 1); exit 1; }; }
6032 -## -------------------- ##
6033 -## Main body of script. ##
6034 -## -------------------- ##
6037 -ac_cpp='$CPP $CPPFLAGS'
6038 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6039 -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6040 -ac_compiler_gnu=$ac_cv_c_compiler_gnu
6046 -ac_config_headers="$ac_config_headers fficonfig.h"
6049 -# Default to --enable-multilib
6050 -# Check whether --enable-multilib was given.
6051 -if test "${enable_multilib+set}" = set; then :
6052 - enableval=$enable_multilib; case "$enableval" in
6053 - yes) multilib=yes ;;
6054 - no) multilib=no ;;
6055 - *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
6062 -# We may get other options which we leave undocumented:
6063 -# --with-target-subdir, --with-multisrctop, --with-multisubdir
6064 -# See config-ml.in if you want the gory details.
6066 -if test "$srcdir" = "."; then
6067 - if test "$with_target_subdir" != "."; then
6068 - multi_basedir="$srcdir/$with_multisrctop../.."
6070 - multi_basedir="$srcdir/$with_multisrctop.."
6073 - multi_basedir="$srcdir/.."
6077 -# Even if the default multilib is not a cross compilation,
6078 -# it may be that some of the other multilibs are.
6079 -if test $cross_compiling = no && test $multilib = yes \
6080 - && test "x${with_multisubdir}" != x ; then
6081 - cross_compiling=maybe
6084 -ac_config_commands="$ac_config_commands default-1"
6097 +ac_cpp='$CPP $CPPFLAGS'
6098 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6099 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
6103 +ac_config_headers="$ac_config_headers fficonfig.h"
6107 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6108 - for ac_t in install-sh install.sh shtool; do
6109 - if test -f "$ac_dir/$ac_t"; then
6110 - ac_aux_dir=$ac_dir
6111 - ac_install_sh="$ac_aux_dir/$ac_t -c"
6115 + if test -f "$ac_dir/install-sh"; then
6116 + ac_aux_dir=$ac_dir
6117 + ac_install_sh="$ac_aux_dir/install-sh -c"
6119 + elif test -f "$ac_dir/install.sh"; then
6120 + ac_aux_dir=$ac_dir
6121 + ac_install_sh="$ac_aux_dir/install.sh -c"
6123 + elif test -f "$ac_dir/shtool"; then
6124 + ac_aux_dir=$ac_dir
6125 + ac_install_sh="$ac_aux_dir/shtool install -c"
6129 if test -z "$ac_aux_dir"; then
6130 - as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6131 + { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
6132 +$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
6133 + { (exit 1); exit 1; }; }
6136 # These three variables are undocumented and unsupported,
6137 @@ -2492,27 +2140,35 @@ ac_configure="$SHELL $ac_aux_dir/configu
6139 # Make sure we can run config.sub.
6140 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6141 - as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6142 + { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6143 +$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6144 + { (exit 1); exit 1; }; }
6146 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6147 +{ $as_echo "$as_me:$LINENO: checking build system type" >&5
6148 $as_echo_n "checking build system type... " >&6; }
6149 -if test "${ac_cv_build+set}" = set; then :
6150 +if test "${ac_cv_build+set}" = set; then
6151 $as_echo_n "(cached) " >&6
6153 ac_build_alias=$build_alias
6154 test "x$ac_build_alias" = x &&
6155 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6156 test "x$ac_build_alias" = x &&
6157 - as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
6158 + { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6159 +$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6160 + { (exit 1); exit 1; }; }
6161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6162 - as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6163 + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6164 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6165 + { (exit 1); exit 1; }; }
6168 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6169 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6170 $as_echo "$ac_cv_build" >&6; }
6171 case $ac_cv_build in
6173 -*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
6174 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6175 +$as_echo "$as_me: error: invalid value of canonical build" >&2;}
6176 + { (exit 1); exit 1; }; };;
6179 ac_save_IFS=$IFS; IFS='-'
6180 @@ -2528,24 +2184,28 @@ IFS=$ac_save_IFS
6181 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6184 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6185 +{ $as_echo "$as_me:$LINENO: checking host system type" >&5
6186 $as_echo_n "checking host system type... " >&6; }
6187 -if test "${ac_cv_host+set}" = set; then :
6188 +if test "${ac_cv_host+set}" = set; then
6189 $as_echo_n "(cached) " >&6
6191 if test "x$host_alias" = x; then
6192 ac_cv_host=$ac_cv_build
6194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6195 - as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6196 + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6197 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6198 + { (exit 1); exit 1; }; }
6202 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6203 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6204 $as_echo "$ac_cv_host" >&6; }
6207 -*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
6208 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6209 +$as_echo "$as_me: error: invalid value of canonical host" >&2;}
6210 + { (exit 1); exit 1; }; };;
6213 ac_save_IFS=$IFS; IFS='-'
6214 @@ -2561,24 +2221,28 @@ IFS=$ac_save_IFS
6215 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6218 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
6219 +{ $as_echo "$as_me:$LINENO: checking target system type" >&5
6220 $as_echo_n "checking target system type... " >&6; }
6221 -if test "${ac_cv_target+set}" = set; then :
6222 +if test "${ac_cv_target+set}" = set; then
6223 $as_echo_n "(cached) " >&6
6225 if test "x$target_alias" = x; then
6226 ac_cv_target=$ac_cv_host
6228 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
6229 - as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
6230 + { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
6231 +$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
6232 + { (exit 1); exit 1; }; }
6236 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
6237 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
6238 $as_echo "$ac_cv_target" >&6; }
6239 case $ac_cv_target in
6241 -*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
6242 +*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
6243 +$as_echo "$as_me: error: invalid value of canonical target" >&2;}
6244 + { (exit 1); exit 1; }; };;
6246 target=$ac_cv_target
6247 ac_save_IFS=$IFS; IFS='-'
6248 @@ -2600,7 +2264,6 @@ test -n "$target_alias" &&
6249 test "$program_prefix$program_suffix$program_transform_name" = \
6251 program_prefix=${target_alias}-
6253 target_alias=${target_alias-$host_alias}
6255 . ${srcdir}/configure.host
6256 @@ -2621,10 +2284,10 @@ am__api_version='1.11'
6257 # OS/2's system install, which has a completely different semantic
6258 # ./install, which can be erroneously created by make from ./install.sh.
6259 # Reject install programs that cannot install multiple files.
6260 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6261 +{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6262 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6263 if test -z "$INSTALL"; then
6264 -if test "${ac_cv_path_install+set}" = set; then :
6265 +if test "${ac_cv_path_install+set}" = set; then
6266 $as_echo_n "(cached) " >&6
6268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 @@ -2632,11 +2295,11 @@ for as_dir in $PATH
6272 test -z "$as_dir" && as_dir=.
6273 - # Account for people who put trailing slashes in PATH elements.
6274 -case $as_dir/ in #((
6275 - ./ | .// | /[cC]/* | \
6276 + # Account for people who put trailing slashes in PATH elements.
6278 + ./ | .// | /cC/* | \
6279 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6280 - ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6281 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6284 # OSF1 and SCO ODT 3.0 have their own names for install.
6285 @@ -2673,7 +2336,7 @@ case $as_dir/ in #((
6293 rm -rf conftest.one conftest.two conftest.dir
6294 @@ -2689,7 +2352,7 @@ fi
6295 INSTALL=$ac_install_sh
6298 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6299 +{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
6300 $as_echo "$INSTALL" >&6; }
6302 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6303 @@ -2700,7 +2363,7 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCR
6305 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6307 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
6308 +{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6309 $as_echo_n "checking whether build environment is sane... " >&6; }
6312 @@ -2711,11 +2374,15 @@ am_lf='
6315 *[\\\"\#\$\&\'\`$am_lf]*)
6316 - as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
6317 + { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
6318 +$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
6319 + { (exit 1); exit 1; }; };;
6322 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
6323 - as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
6324 + { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
6325 +$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
6326 + { (exit 1); exit 1; }; };;
6329 # Do `set' in a subshell so we don't clobber the current shell's
6330 @@ -2737,8 +2404,11 @@ if (
6331 # if, for instance, CONFIG_SHELL is bash and it inherits a
6332 # broken ls alias from the environment. This has actually
6333 # happened. Such a system could not be considered "sane".
6334 - as_fn_error "ls -t appears to fail. Make sure there is not a broken
6335 -alias in your environment" "$LINENO" 5
6336 + { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6337 +alias in your environment" >&5
6338 +$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6339 +alias in your environment" >&2;}
6340 + { (exit 1); exit 1; }; }
6343 test "$2" = conftest.file
6344 @@ -2747,10 +2417,13 @@ then
6348 - as_fn_error "newly created file is older than distributed files!
6349 -Check your system clock" "$LINENO" 5
6350 + { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6351 +Check your system clock" >&5
6352 +$as_echo "$as_me: error: newly created file is older than distributed files!
6353 +Check your system clock" >&2;}
6354 + { (exit 1); exit 1; }; }
6356 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6357 +{ $as_echo "$as_me:$LINENO: result: yes" >&5
6358 $as_echo "yes" >&6; }
6359 test "$program_prefix" != NONE &&
6360 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6361 @@ -2778,7 +2451,7 @@ if eval "$MISSING --run true"; then
6362 am_missing_run="$MISSING --run "
6365 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
6366 + { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6367 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6370 @@ -2799,9 +2472,9 @@ if test "$cross_compiling" != no; then
6371 if test -n "$ac_tool_prefix"; then
6372 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6373 set dummy ${ac_tool_prefix}strip; ac_word=$2
6374 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 -if test "${ac_cv_prog_STRIP+set}" = set; then :
6378 +if test "${ac_cv_prog_STRIP+set}" = set; then
6379 $as_echo_n "(cached) " >&6
6381 if test -n "$STRIP"; then
6382 @@ -2812,24 +2485,24 @@ for as_dir in $PATH
6385 test -z "$as_dir" && as_dir=.
6386 - for ac_exec_ext in '' $ac_executable_extensions; do
6387 + for ac_exec_ext in '' $ac_executable_extensions; do
6388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6390 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 STRIP=$ac_cv_prog_STRIP
6402 if test -n "$STRIP"; then
6403 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6404 + { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6405 $as_echo "$STRIP" >&6; }
6407 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 + { $as_echo "$as_me:$LINENO: result: no" >&5
6409 $as_echo "no" >&6; }
6412 @@ -2839,9 +2512,9 @@ if test -z "$ac_cv_prog_STRIP"; then
6414 # Extract the first word of "strip", so it can be a program name with args.
6415 set dummy strip; ac_word=$2
6416 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6420 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6421 $as_echo_n "(cached) " >&6
6423 if test -n "$ac_ct_STRIP"; then
6424 @@ -2852,24 +2525,24 @@ for as_dir in $PATH
6427 test -z "$as_dir" && as_dir=.
6428 - for ac_exec_ext in '' $ac_executable_extensions; do
6429 + for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_ac_ct_STRIP="strip"
6432 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6444 if test -n "$ac_ct_STRIP"; then
6445 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6446 + { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6447 $as_echo "$ac_ct_STRIP" >&6; }
6449 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 + { $as_echo "$as_me:$LINENO: result: no" >&5
6451 $as_echo "no" >&6; }
6454 @@ -2878,7 +2551,7 @@ fi
6456 case $cross_compiling:$ac_tool_warned in
6458 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461 ac_tool_warned=yes ;;
6463 @@ -2891,10 +2564,10 @@ fi
6465 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6467 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6468 +{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
6469 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6470 if test -z "$MKDIR_P"; then
6471 - if test "${ac_cv_path_mkdir+set}" = set; then :
6472 + if test "${ac_cv_path_mkdir+set}" = set; then
6473 $as_echo_n "(cached) " >&6
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 @@ -2902,7 +2575,7 @@ for as_dir in $PATH$PATH_SEPARATOR/opt/s
6479 test -z "$as_dir" && as_dir=.
6480 - for ac_prog in mkdir gmkdir; do
6481 + for ac_prog in mkdir gmkdir; do
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6484 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6485 @@ -2914,7 +2587,7 @@ do
6494 @@ -2930,7 +2603,7 @@ fi
6495 MKDIR_P="$ac_install_sh -d"
6498 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6499 +{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
6500 $as_echo "$MKDIR_P" >&6; }
6503 @@ -2943,9 +2616,9 @@ for ac_prog in gawk mawk nawk awk
6505 # Extract the first word of "$ac_prog", so it can be a program name with args.
6506 set dummy $ac_prog; ac_word=$2
6507 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 -if test "${ac_cv_prog_AWK+set}" = set; then :
6511 +if test "${ac_cv_prog_AWK+set}" = set; then
6512 $as_echo_n "(cached) " >&6
6514 if test -n "$AWK"; then
6515 @@ -2956,24 +2629,24 @@ for as_dir in $PATH
6518 test -z "$as_dir" && as_dir=.
6519 - for ac_exec_ext in '' $ac_executable_extensions; do
6520 + for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6522 ac_cv_prog_AWK="$ac_prog"
6523 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 if test -n "$AWK"; then
6536 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6537 + { $as_echo "$as_me:$LINENO: result: $AWK" >&5
6538 $as_echo "$AWK" >&6; }
6540 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 + { $as_echo "$as_me:$LINENO: result: no" >&5
6542 $as_echo "no" >&6; }
6545 @@ -2981,11 +2654,11 @@ fi
6546 test -n "$AWK" && break
6549 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6550 +{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6551 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6553 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6554 -if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6555 +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6556 $as_echo_n "(cached) " >&6
6558 cat >conftest.make <<\_ACEOF
6559 @@ -3003,11 +2676,11 @@ esac
6562 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6563 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6564 + { $as_echo "$as_me:$LINENO: result: yes" >&5
6565 $as_echo "yes" >&6; }
6568 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 + { $as_echo "$as_me:$LINENO: result: no" >&5
6570 $as_echo "no" >&6; }
6571 SET_MAKE="MAKE=${MAKE-make}"
6573 @@ -3027,7 +2700,9 @@ if test "`cd $srcdir && pwd`" != "`pwd`"
6574 am__isrc=' -I$(srcdir)'
6575 # test to see if srcdir already configured
6576 if test -f $srcdir/config.status; then
6577 - as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6578 + { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6579 +$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6580 + { (exit 1); exit 1; }; }
6584 @@ -3043,7 +2718,7 @@ fi
6586 # Define the identity of the package.
6589 + VERSION='3.0.10rc0'
6592 cat >>confdefs.h <<_ACEOF
6593 @@ -3099,9 +2774,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
6594 if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6597 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6599 $as_echo_n "checking for $ac_word... " >&6; }
6600 -if test "${ac_cv_prog_CC+set}" = set; then :
6601 +if test "${ac_cv_prog_CC+set}" = set; then
6602 $as_echo_n "(cached) " >&6
6604 if test -n "$CC"; then
6605 @@ -3112,24 +2787,24 @@ for as_dir in $PATH
6608 test -z "$as_dir" && as_dir=.
6609 - for ac_exec_ext in '' $ac_executable_extensions; do
6610 + for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6613 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 if test -n "$CC"; then
6626 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6627 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
6628 $as_echo "$CC" >&6; }
6630 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6631 + { $as_echo "$as_me:$LINENO: result: no" >&5
6632 $as_echo "no" >&6; }
6635 @@ -3139,9 +2814,9 @@ if test -z "$ac_cv_prog_CC"; then
6637 # Extract the first word of "gcc", so it can be a program name with args.
6638 set dummy gcc; ac_word=$2
6639 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6643 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6644 $as_echo_n "(cached) " >&6
6646 if test -n "$ac_ct_CC"; then
6647 @@ -3152,24 +2827,24 @@ for as_dir in $PATH
6650 test -z "$as_dir" && as_dir=.
6651 - for ac_exec_ext in '' $ac_executable_extensions; do
6652 + for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_prog_ac_ct_CC="gcc"
6655 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6667 if test -n "$ac_ct_CC"; then
6668 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6669 + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6670 $as_echo "$ac_ct_CC" >&6; }
6672 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 + { $as_echo "$as_me:$LINENO: result: no" >&5
6674 $as_echo "no" >&6; }
6677 @@ -3178,7 +2853,7 @@ fi
6679 case $cross_compiling:$ac_tool_warned in
6681 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6682 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6686 @@ -3192,9 +2867,9 @@ if test -z "$CC"; then
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}cc; ac_word=$2
6690 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 -if test "${ac_cv_prog_CC+set}" = set; then :
6694 +if test "${ac_cv_prog_CC+set}" = set; then
6695 $as_echo_n "(cached) " >&6
6697 if test -n "$CC"; then
6698 @@ -3205,24 +2880,24 @@ for as_dir in $PATH
6701 test -z "$as_dir" && as_dir=.
6702 - for ac_exec_ext in '' $ac_executable_extensions; do
6703 + for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_CC="${ac_tool_prefix}cc"
6706 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 if test -n "$CC"; then
6719 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6720 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
6721 $as_echo "$CC" >&6; }
6723 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 + { $as_echo "$as_me:$LINENO: result: no" >&5
6725 $as_echo "no" >&6; }
6728 @@ -3232,9 +2907,9 @@ fi
6729 if test -z "$CC"; then
6730 # Extract the first word of "cc", so it can be a program name with args.
6731 set dummy cc; ac_word=$2
6732 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 -if test "${ac_cv_prog_CC+set}" = set; then :
6736 +if test "${ac_cv_prog_CC+set}" = set; then
6737 $as_echo_n "(cached) " >&6
6739 if test -n "$CC"; then
6740 @@ -3246,18 +2921,18 @@ for as_dir in $PATH
6743 test -z "$as_dir" && as_dir=.
6744 - for ac_exec_ext in '' $ac_executable_extensions; do
6745 + for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6748 ac_prog_rejected=yes
6752 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761 if test $ac_prog_rejected = yes; then
6762 @@ -3276,10 +2951,10 @@ fi
6765 if test -n "$CC"; then
6766 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6767 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
6768 $as_echo "$CC" >&6; }
6770 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 + { $as_echo "$as_me:$LINENO: result: no" >&5
6772 $as_echo "no" >&6; }
6775 @@ -3291,9 +2966,9 @@ if test -z "$CC"; then
6777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6779 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6781 $as_echo_n "checking for $ac_word... " >&6; }
6782 -if test "${ac_cv_prog_CC+set}" = set; then :
6783 +if test "${ac_cv_prog_CC+set}" = set; then
6784 $as_echo_n "(cached) " >&6
6786 if test -n "$CC"; then
6787 @@ -3304,24 +2979,24 @@ for as_dir in $PATH
6790 test -z "$as_dir" && as_dir=.
6791 - for ac_exec_ext in '' $ac_executable_extensions; do
6792 + for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6795 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6807 if test -n "$CC"; then
6808 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6809 + { $as_echo "$as_me:$LINENO: result: $CC" >&5
6810 $as_echo "$CC" >&6; }
6812 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6813 + { $as_echo "$as_me:$LINENO: result: no" >&5
6814 $as_echo "no" >&6; }
6817 @@ -3335,9 +3010,9 @@ if test -z "$CC"; then
6819 # Extract the first word of "$ac_prog", so it can be a program name with args.
6820 set dummy $ac_prog; ac_word=$2
6821 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6825 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6826 $as_echo_n "(cached) " >&6
6828 if test -n "$ac_ct_CC"; then
6829 @@ -3348,24 +3023,24 @@ for as_dir in $PATH
6832 test -z "$as_dir" && as_dir=.
6833 - for ac_exec_ext in '' $ac_executable_extensions; do
6834 + for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_ac_ct_CC="$ac_prog"
6837 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6849 if test -n "$ac_ct_CC"; then
6850 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6851 + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6852 $as_echo "$ac_ct_CC" >&6; }
6854 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 + { $as_echo "$as_me:$LINENO: result: no" >&5
6856 $as_echo "no" >&6; }
6859 @@ -3378,7 +3053,7 @@ done
6861 case $cross_compiling:$ac_tool_warned in
6863 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6864 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6866 ac_tool_warned=yes ;;
6868 @@ -3389,37 +3064,57 @@ fi
6872 -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6873 +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6875 -as_fn_error "no acceptable C compiler found in \$PATH
6876 -See \`config.log' for more details." "$LINENO" 5; }
6877 +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6878 +See \`config.log' for more details." >&5
6879 +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
6880 +See \`config.log' for more details." >&2;}
6881 + { (exit 1); exit 1; }; }; }
6883 # Provide some information about the compiler.
6884 -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6885 +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
6888 -for ac_option in --version -v -V -qversion; do
6889 - { { ac_try="$ac_compiler $ac_option >&5"
6890 +{ (ac_try="$ac_compiler --version >&5"
6892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6895 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6896 -$as_echo "$ac_try_echo"; } >&5
6897 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6898 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6899 +$as_echo "$ac_try_echo") >&5
6900 + (eval "$ac_compiler --version >&5") 2>&5
6902 - if test -s conftest.err; then
6904 -... rest of stderr output deleted ...
6905 - 10q' conftest.err >conftest.er1
6906 - cat conftest.er1 >&5
6907 - rm -f conftest.er1 conftest.err
6909 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6910 - test $ac_status = 0; }
6912 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 + (exit $ac_status); }
6914 +{ (ac_try="$ac_compiler -v >&5"
6915 +case "(($ac_try" in
6916 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 + *) ac_try_echo=$ac_try;;
6919 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6920 +$as_echo "$ac_try_echo") >&5
6921 + (eval "$ac_compiler -v >&5") 2>&5
6923 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 + (exit $ac_status); }
6925 +{ (ac_try="$ac_compiler -V >&5"
6926 +case "(($ac_try" in
6927 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 + *) ac_try_echo=$ac_try;;
6930 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6931 +$as_echo "$ac_try_echo") >&5
6932 + (eval "$ac_compiler -V >&5") 2>&5
6934 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 + (exit $ac_status); }
6937 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 +cat >conftest.$ac_ext <<_ACEOF
6941 +cat confdefs.h >>conftest.$ac_ext
6942 +cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6946 @@ -3431,11 +3126,11 @@ main ()
6949 ac_clean_files_save=$ac_clean_files
6950 -ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
6951 +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6952 # Try to create an executable without -o first, disregard a.out.
6953 # It will help us diagnose broken compilers, and finding out an intuition
6955 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
6956 +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
6957 $as_echo_n "checking for C compiler default output file name... " >&6; }
6958 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6960 @@ -3452,17 +3147,17 @@ do
6964 -if { { ac_try="$ac_link_default"
6965 +if { (ac_try="$ac_link_default"
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6970 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6971 -$as_echo "$ac_try_echo"; } >&5
6972 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6973 +$as_echo "$ac_try_echo") >&5
6974 (eval "$ac_link_default") 2>&5
6976 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6977 - test $ac_status = 0; }; then :
6978 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979 + (exit $ac_status); }; then
6980 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
6981 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
6982 # in a Makefile. We should not override ac_cv_exeext if it was cached,
6983 @@ -3479,7 +3174,7 @@ do
6987 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
6988 + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
6990 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6992 @@ -3498,75 +3193,84 @@ test "$ac_cv_exeext" = no && ac_cv_exeex
6996 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
6998 +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
6999 $as_echo "$ac_file" >&6; }
7000 -if test -z "$ac_file"; then :
7001 +if test -z "$ac_file"; then
7002 $as_echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7006 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7008 -{ as_fn_set_status 77
7009 -as_fn_error "C compiler cannot create executables
7010 -See \`config.log' for more details." "$LINENO" 5; }; }
7011 +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
7012 +See \`config.log' for more details." >&5
7013 +$as_echo "$as_me: error: C compiler cannot create executables
7014 +See \`config.log' for more details." >&2;}
7015 + { (exit 77); exit 77; }; }; }
7018 ac_exeext=$ac_cv_exeext
7020 # Check that the compiler produces executables we can run. If not, either
7021 # the compiler is broken, or we cross compile.
7022 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
7023 +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
7024 $as_echo_n "checking whether the C compiler works... " >&6; }
7025 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
7026 # If not cross compiling, check that we can run a simple program.
7027 if test "$cross_compiling" != yes; then
7028 if { ac_try='./$ac_file'
7029 - { { case "(($ac_try" in
7030 + { (case "(($ac_try" in
7031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7032 *) ac_try_echo=$ac_try;;
7034 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7035 -$as_echo "$ac_try_echo"; } >&5
7036 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7037 +$as_echo "$ac_try_echo") >&5
7038 (eval "$ac_try") 2>&5
7040 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7041 - test $ac_status = 0; }; }; then
7042 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 + (exit $ac_status); }; }; then
7046 if test "$cross_compiling" = maybe; then
7049 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7050 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7052 -as_fn_error "cannot run C compiled programs.
7053 +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
7054 +If you meant to cross compile, use \`--host'.
7055 +See \`config.log' for more details." >&5
7056 +$as_echo "$as_me: error: cannot run C compiled programs.
7057 If you meant to cross compile, use \`--host'.
7058 -See \`config.log' for more details." "$LINENO" 5; }
7059 +See \`config.log' for more details." >&2;}
7060 + { (exit 1); exit 1; }; }; }
7064 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7065 +{ $as_echo "$as_me:$LINENO: result: yes" >&5
7066 $as_echo "yes" >&6; }
7068 -rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
7069 +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
7070 ac_clean_files=$ac_clean_files_save
7071 # Check that the compiler produces executables we can run. If not, either
7072 # the compiler is broken, or we cross compile.
7073 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
7074 +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
7075 $as_echo_n "checking whether we are cross compiling... " >&6; }
7076 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
7077 +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
7078 $as_echo "$cross_compiling" >&6; }
7080 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
7081 +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
7082 $as_echo_n "checking for suffix of executables... " >&6; }
7083 -if { { ac_try="$ac_link"
7084 +if { (ac_try="$ac_link"
7086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087 *) ac_try_echo=$ac_try;;
7089 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7090 -$as_echo "$ac_try_echo"; } >&5
7091 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7092 +$as_echo "$ac_try_echo") >&5
7093 (eval "$ac_link") 2>&5
7095 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7096 - test $ac_status = 0; }; then :
7097 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 + (exit $ac_status); }; then
7099 # If both `conftest.exe' and `conftest' are `present' (well, observable)
7100 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
7101 # work properly (i.e., refer to `conftest.exe'), while it won't with
7102 @@ -3581,24 +3285,32 @@ for ac_file in conftest.exe conftest con
7106 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7107 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7109 -as_fn_error "cannot compute suffix of executables: cannot compile and link
7110 -See \`config.log' for more details." "$LINENO" 5; }
7111 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
7112 +See \`config.log' for more details." >&5
7113 +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
7114 +See \`config.log' for more details." >&2;}
7115 + { (exit 1); exit 1; }; }; }
7118 rm -f conftest$ac_cv_exeext
7119 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
7120 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
7121 $as_echo "$ac_cv_exeext" >&6; }
7123 rm -f conftest.$ac_ext
7124 EXEEXT=$ac_cv_exeext
7126 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
7127 +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
7128 $as_echo_n "checking for suffix of object files... " >&6; }
7129 -if test "${ac_cv_objext+set}" = set; then :
7130 +if test "${ac_cv_objext+set}" = set; then
7131 $as_echo_n "(cached) " >&6
7133 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 + cat >conftest.$ac_ext <<_ACEOF
7137 +cat confdefs.h >>conftest.$ac_ext
7138 +cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7142 @@ -3610,17 +3322,17 @@ main ()
7145 rm -f conftest.o conftest.obj
7146 -if { { ac_try="$ac_compile"
7147 +if { (ac_try="$ac_compile"
7149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7150 *) ac_try_echo=$ac_try;;
7152 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7153 -$as_echo "$ac_try_echo"; } >&5
7154 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7155 +$as_echo "$ac_try_echo") >&5
7156 (eval "$ac_compile") 2>&5
7158 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7159 - test $ac_status = 0; }; then :
7160 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 + (exit $ac_status); }; then
7162 for ac_file in conftest.o conftest.obj conftest.*; do
7163 test -f "$ac_file" || continue;
7165 @@ -3633,23 +3345,31 @@ else
7166 $as_echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7169 -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7170 +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7172 -as_fn_error "cannot compute suffix of object files: cannot compile
7173 -See \`config.log' for more details." "$LINENO" 5; }
7174 +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
7175 +See \`config.log' for more details." >&5
7176 +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
7177 +See \`config.log' for more details." >&2;}
7178 + { (exit 1); exit 1; }; }; }
7181 rm -f conftest.$ac_cv_objext conftest.$ac_ext
7183 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
7184 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
7185 $as_echo "$ac_cv_objext" >&6; }
7186 OBJEXT=$ac_cv_objext
7188 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7189 +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7190 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7191 -if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7192 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
7193 $as_echo_n "(cached) " >&6
7195 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 + cat >conftest.$ac_ext <<_ACEOF
7199 +cat confdefs.h >>conftest.$ac_ext
7200 +cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7204 @@ -3663,16 +3383,37 @@ main ()
7208 -if ac_fn_c_try_compile "$LINENO"; then :
7209 +rm -f conftest.$ac_objext
7210 +if { (ac_try="$ac_compile"
7211 +case "(($ac_try" in
7212 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213 + *) ac_try_echo=$ac_try;;
7215 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7216 +$as_echo "$ac_try_echo") >&5
7217 + (eval "$ac_compile") 2>conftest.er1
7219 + grep -v '^ *+' conftest.er1 >conftest.err
7220 + rm -f conftest.er1
7221 + cat conftest.err >&5
7222 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 + (exit $ac_status); } && {
7224 + test -z "$ac_c_werror_flag" ||
7225 + test ! -s conftest.err
7226 + } && test -s conftest.$ac_objext; then
7229 - ac_compiler_gnu=no
7230 + $as_echo "$as_me: failed program was:" >&5
7231 +sed 's/^/| /' conftest.$ac_ext >&5
7233 + ac_compiler_gnu=no
7236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7240 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7241 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7242 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7243 if test $ac_compiler_gnu = yes; then
7245 @@ -3681,16 +3422,20 @@ else
7247 ac_test_CFLAGS=${CFLAGS+set}
7248 ac_save_CFLAGS=$CFLAGS
7249 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7250 +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7251 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7252 -if test "${ac_cv_prog_cc_g+set}" = set; then :
7253 +if test "${ac_cv_prog_cc_g+set}" = set; then
7254 $as_echo_n "(cached) " >&6
7256 ac_save_c_werror_flag=$ac_c_werror_flag
7257 ac_c_werror_flag=yes
7260 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 + cat >conftest.$ac_ext <<_ACEOF
7264 +cat confdefs.h >>conftest.$ac_ext
7265 +cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7269 @@ -3701,11 +3446,35 @@ main ()
7273 -if ac_fn_c_try_compile "$LINENO"; then :
7274 +rm -f conftest.$ac_objext
7275 +if { (ac_try="$ac_compile"
7276 +case "(($ac_try" in
7277 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278 + *) ac_try_echo=$ac_try;;
7280 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7281 +$as_echo "$ac_try_echo") >&5
7282 + (eval "$ac_compile") 2>conftest.er1
7284 + grep -v '^ *+' conftest.er1 >conftest.err
7285 + rm -f conftest.er1
7286 + cat conftest.err >&5
7287 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 + (exit $ac_status); } && {
7289 + test -z "$ac_c_werror_flag" ||
7290 + test ! -s conftest.err
7291 + } && test -s conftest.$ac_objext; then
7295 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296 + $as_echo "$as_me: failed program was:" >&5
7297 +sed 's/^/| /' conftest.$ac_ext >&5
7300 + cat >conftest.$ac_ext <<_ACEOF
7303 +cat confdefs.h >>conftest.$ac_ext
7304 +cat >>conftest.$ac_ext <<_ACEOF
7305 /* end confdefs.h. */
7308 @@ -3716,12 +3485,36 @@ main ()
7312 -if ac_fn_c_try_compile "$LINENO"; then :
7314 +rm -f conftest.$ac_objext
7315 +if { (ac_try="$ac_compile"
7316 +case "(($ac_try" in
7317 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318 + *) ac_try_echo=$ac_try;;
7320 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7321 +$as_echo "$ac_try_echo") >&5
7322 + (eval "$ac_compile") 2>conftest.er1
7324 + grep -v '^ *+' conftest.er1 >conftest.err
7325 + rm -f conftest.er1
7326 + cat conftest.err >&5
7327 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 + (exit $ac_status); } && {
7329 + test -z "$ac_c_werror_flag" ||
7330 + test ! -s conftest.err
7331 + } && test -s conftest.$ac_objext; then
7334 - ac_c_werror_flag=$ac_save_c_werror_flag
7335 + $as_echo "$as_me: failed program was:" >&5
7336 +sed 's/^/| /' conftest.$ac_ext >&5
7338 + ac_c_werror_flag=$ac_save_c_werror_flag
7340 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341 + cat >conftest.$ac_ext <<_ACEOF
7344 +cat confdefs.h >>conftest.$ac_ext
7345 +cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7349 @@ -3732,17 +3525,42 @@ main ()
7353 -if ac_fn_c_try_compile "$LINENO"; then :
7354 +rm -f conftest.$ac_objext
7355 +if { (ac_try="$ac_compile"
7356 +case "(($ac_try" in
7357 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 + *) ac_try_echo=$ac_try;;
7360 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7361 +$as_echo "$ac_try_echo") >&5
7362 + (eval "$ac_compile") 2>conftest.er1
7364 + grep -v '^ *+' conftest.er1 >conftest.err
7365 + rm -f conftest.er1
7366 + cat conftest.err >&5
7367 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 + (exit $ac_status); } && {
7369 + test -z "$ac_c_werror_flag" ||
7370 + test ! -s conftest.err
7371 + } && test -s conftest.$ac_objext; then
7374 + $as_echo "$as_me: failed program was:" >&5
7375 +sed 's/^/| /' conftest.$ac_ext >&5
7380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7387 ac_c_werror_flag=$ac_save_c_werror_flag
7389 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7390 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7391 $as_echo "$ac_cv_prog_cc_g" >&6; }
7392 if test "$ac_test_CFLAGS" = set; then
7393 CFLAGS=$ac_save_CFLAGS
7394 @@ -3759,14 +3577,18 @@ else
7398 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7399 +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
7400 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7401 -if test "${ac_cv_prog_cc_c89+set}" = set; then :
7402 +if test "${ac_cv_prog_cc_c89+set}" = set; then
7403 $as_echo_n "(cached) " >&6
7405 ac_cv_prog_cc_c89=no
7407 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 +cat >conftest.$ac_ext <<_ACEOF
7411 +cat confdefs.h >>conftest.$ac_ext
7412 +cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7416 @@ -3823,9 +3645,32 @@ for ac_arg in '' -qlanglvl=extc89 -qlang
7417 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7419 CC="$ac_save_CC $ac_arg"
7420 - if ac_fn_c_try_compile "$LINENO"; then :
7421 + rm -f conftest.$ac_objext
7422 +if { (ac_try="$ac_compile"
7423 +case "(($ac_try" in
7424 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7425 + *) ac_try_echo=$ac_try;;
7427 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7428 +$as_echo "$ac_try_echo") >&5
7429 + (eval "$ac_compile") 2>conftest.er1
7431 + grep -v '^ *+' conftest.er1 >conftest.err
7432 + rm -f conftest.er1
7433 + cat conftest.err >&5
7434 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 + (exit $ac_status); } && {
7436 + test -z "$ac_c_werror_flag" ||
7437 + test ! -s conftest.err
7438 + } && test -s conftest.$ac_objext; then
7439 ac_cv_prog_cc_c89=$ac_arg
7441 + $as_echo "$as_me: failed program was:" >&5
7442 +sed 's/^/| /' conftest.$ac_ext >&5
7447 rm -f core conftest.err conftest.$ac_objext
7448 test "x$ac_cv_prog_cc_c89" != "xno" && break
7450 @@ -3836,19 +3681,17 @@ fi
7452 case "x$ac_cv_prog_cc_c89" in
7454 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7455 + { $as_echo "$as_me:$LINENO: result: none needed" >&5
7456 $as_echo "none needed" >&6; } ;;
7458 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7459 + { $as_echo "$as_me:$LINENO: result: unsupported" >&5
7460 $as_echo "unsupported" >&6; } ;;
7462 CC="$CC $ac_cv_prog_cc_c89"
7463 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7464 + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
7465 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7467 -if test "x$ac_cv_prog_cc_c89" != xno; then :
7472 ac_cpp='$CPP $CPPFLAGS'
7473 @@ -3867,7 +3710,7 @@ am__doit:
7476 # If we don't find an include directive, just comment out the code.
7477 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7478 +{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
7479 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7482 @@ -3895,12 +3738,12 @@ if test "$am__include" = "#"; then
7486 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7487 +{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
7488 $as_echo "$_am_result" >&6; }
7489 rm -f confinc confmf
7491 # Check whether --enable-dependency-tracking was given.
7492 -if test "${enable_dependency_tracking+set}" = set; then :
7493 +if test "${enable_dependency_tracking+set}" = set; then
7494 enableval=$enable_dependency_tracking;
7497 @@ -3920,9 +3763,9 @@ fi
7499 depcc="$CC" am_compiler_list=
7501 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7502 +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7503 $as_echo_n "checking dependency style of $depcc... " >&6; }
7504 -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7505 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
7506 $as_echo_n "(cached) " >&6
7508 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7509 @@ -4030,7 +3873,7 @@ else
7513 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7514 +{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7515 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7516 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7518 @@ -4049,6 +3892,7 @@ fi
7523 # By default we simply use the C compiler to build assembly code.
7525 test "${CCAS+set}" = set || CCAS=$CC
7526 @@ -4058,9 +3902,9 @@ test "${CCASFLAGS+set}" = set || CCASFLA
7528 depcc="$CCAS" am_compiler_list=
7530 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7531 +{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7532 $as_echo_n "checking dependency style of $depcc... " >&6; }
7533 -if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
7534 +if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
7535 $as_echo_n "(cached) " >&6
7537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7538 @@ -4166,7 +4010,7 @@ else
7542 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7543 +{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7544 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7545 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
7547 @@ -4182,18 +4026,22 @@ fi
7550 if test "x$CC" != xcc; then
7551 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7552 + { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
7553 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7555 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7556 + { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
7557 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7559 set dummy $CC; ac_cc=`$as_echo "$2" |
7560 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7561 -if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
7562 +if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
7563 $as_echo_n "(cached) " >&6
7565 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 + cat >conftest.$ac_ext <<_ACEOF
7569 +cat confdefs.h >>conftest.$ac_ext
7570 +cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7574 @@ -4209,63 +4057,63 @@ _ACEOF
7575 # existing .o file with -o, though they will create one.
7576 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7578 -if { { case "(($ac_try" in
7579 +if { (case "(($ac_try" in
7580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7581 *) ac_try_echo=$ac_try;;
7583 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7584 -$as_echo "$ac_try_echo"; } >&5
7585 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7586 +$as_echo "$ac_try_echo") >&5
7587 (eval "$ac_try") 2>&5
7589 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7590 - test $ac_status = 0; } &&
7591 - test -f conftest2.$ac_objext && { { case "(($ac_try" in
7592 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 + (exit $ac_status); } &&
7594 + test -f conftest2.$ac_objext && { (case "(($ac_try" in
7595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7598 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7599 -$as_echo "$ac_try_echo"; } >&5
7600 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7601 +$as_echo "$ac_try_echo") >&5
7602 (eval "$ac_try") 2>&5
7604 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7605 - test $ac_status = 0; };
7606 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 + (exit $ac_status); };
7609 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7610 if test "x$CC" != xcc; then
7611 # Test first that cc exists at all.
7612 if { ac_try='cc -c conftest.$ac_ext >&5'
7613 - { { case "(($ac_try" in
7614 + { (case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7618 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7619 -$as_echo "$ac_try_echo"; } >&5
7620 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621 +$as_echo "$ac_try_echo") >&5
7622 (eval "$ac_try") 2>&5
7624 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7625 - test $ac_status = 0; }; }; then
7626 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 + (exit $ac_status); }; }; then
7628 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7630 - if { { case "(($ac_try" in
7631 + if { (case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7635 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7636 -$as_echo "$ac_try_echo"; } >&5
7637 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7638 +$as_echo "$ac_try_echo") >&5
7639 (eval "$ac_try") 2>&5
7641 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642 - test $ac_status = 0; } &&
7643 - test -f conftest2.$ac_objext && { { case "(($ac_try" in
7644 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 + (exit $ac_status); } &&
7646 + test -f conftest2.$ac_objext && { (case "(($ac_try" in
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7650 -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7651 -$as_echo "$ac_try_echo"; } >&5
7652 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7653 +$as_echo "$ac_try_echo") >&5
7654 (eval "$ac_try") 2>&5
7656 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7657 - test $ac_status = 0; };
7658 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 + (exit $ac_status); };
7663 @@ -4282,13 +4130,15 @@ rm -f core conftest*
7666 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7667 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7668 + { $as_echo "$as_me:$LINENO: result: yes" >&5
7669 $as_echo "yes" >&6; }
7671 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 + { $as_echo "$as_me:$LINENO: result: no" >&5
7673 $as_echo "no" >&6; }
7675 -$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7676 +cat >>confdefs.h <<\_ACEOF
7677 +#define NO_MINUS_C_MINUS_O 1
7682 @@ -4309,14 +4159,14 @@ fi
7686 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7687 + { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7688 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7693 -macro_version='2.2.7a'
7694 -macro_revision='1.3134'
7695 +macro_version='2.2.6b'
7696 +macro_revision='1.3017'
7700 @@ -4332,78 +4182,9 @@ macro_revision='1.3134'
7702 ltmain="$ac_aux_dir/ltmain.sh"
7704 -# Backslashify metacharacters that are still active within
7705 -# double-quoted strings.
7706 -sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7708 -# Same as above, but do not quote variable references.
7709 -double_quote_subst='s/\(["`\\]\)/\\\1/g'
7711 -# Sed substitution to delay expansion of an escaped shell variable in a
7712 -# double_quote_subst'ed string.
7713 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7715 -# Sed substitution to delay expansion of an escaped single quote.
7716 -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7718 -# Sed substitution to avoid accidental globbing in evaled expressions
7719 -no_glob_subst='s/\*/\\\*/g'
7721 -ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7722 -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7723 -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7725 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7726 -$as_echo_n "checking how to print strings... " >&6; }
7727 -# Test print first, because it will be a builtin if present.
7728 -if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7729 - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7730 - ECHO='print -r --'
7731 -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7732 - ECHO='printf %s\n'
7734 - # Use this function as a fallback that always works.
7735 - func_fallback_echo ()
7737 - eval 'cat <<_LTECHO_EOF
7741 - ECHO='func_fallback_echo'
7744 -# func_echo_all arg...
7745 -# Invoke $ECHO with all args, space-separated.
7752 - printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7753 -$as_echo "printf" >&6; } ;;
7754 - print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7755 -$as_echo "print -r" >&6; } ;;
7756 - *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7757 -$as_echo "cat" >&6; } ;;
7773 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7774 +{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7775 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7776 -if test "${ac_cv_path_SED+set}" = set; then :
7777 +if test "${ac_cv_path_SED+set}" = set; then
7778 $as_echo_n "(cached) " >&6
7780 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7781 @@ -4411,7 +4192,7 @@ else
7782 ac_script="$ac_script$as_nl$ac_script"
7784 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7785 - { ac_script=; unset ac_script;}
7786 + $as_unset ac_script || ac_script=
7787 if test -z "$SED"; then
7788 ac_path_SED_found=false
7789 # Loop through the user's path and test for each of PROGNAME-LIST
7790 @@ -4420,7 +4201,7 @@ for as_dir in $PATH
7793 test -z "$as_dir" && as_dir=.
7794 - for ac_prog in sed gsed; do
7795 + for ac_prog in sed gsed; do
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7798 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7799 @@ -4440,7 +4221,7 @@ case `"$ac_path_SED" --version 2>&1` in
7800 $as_echo '' >> "conftest.nl"
7801 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7802 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7803 - as_fn_arith $ac_count + 1 && ac_count=$as_val
7804 + ac_count=`expr $ac_count + 1`
7805 if test $ac_count -gt ${ac_path_SED_max-0}; then
7806 # Best one so far, save it but keep looking for a better one
7807 ac_cv_path_SED="$ac_path_SED"
7808 @@ -4455,17 +4236,19 @@ esac
7809 $ac_path_SED_found && break 3
7815 if test -z "$ac_cv_path_SED"; then
7816 - as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7817 + { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
7818 +$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
7819 + { (exit 1); exit 1; }; }
7826 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7827 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7828 $as_echo "$ac_cv_path_SED" >&6; }
7829 SED="$ac_cv_path_SED"
7831 @@ -4483,9 +4266,9 @@ Xsed="$SED -e 1s/^X//"
7835 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7836 +{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7837 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7838 -if test "${ac_cv_path_GREP+set}" = set; then :
7839 +if test "${ac_cv_path_GREP+set}" = set; then
7840 $as_echo_n "(cached) " >&6
7842 if test -z "$GREP"; then
7843 @@ -4496,7 +4279,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/x
7846 test -z "$as_dir" && as_dir=.
7847 - for ac_prog in grep ggrep; do
7848 + for ac_prog in grep ggrep; do
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7851 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7852 @@ -4516,7 +4299,7 @@ case `"$ac_path_GREP" --version 2>&1` in
7853 $as_echo 'GREP' >> "conftest.nl"
7854 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7855 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7856 - as_fn_arith $ac_count + 1 && ac_count=$as_val
7857 + ac_count=`expr $ac_count + 1`
7858 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7859 # Best one so far, save it but keep looking for a better one
7860 ac_cv_path_GREP="$ac_path_GREP"
7861 @@ -4531,24 +4314,26 @@ esac
7862 $ac_path_GREP_found && break 3
7868 if test -z "$ac_cv_path_GREP"; then
7869 - as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7870 + { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7871 +$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7872 + { (exit 1); exit 1; }; }
7875 ac_cv_path_GREP=$GREP
7879 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7880 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7881 $as_echo "$ac_cv_path_GREP" >&6; }
7882 GREP="$ac_cv_path_GREP"
7885 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7886 +{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
7887 $as_echo_n "checking for egrep... " >&6; }
7888 -if test "${ac_cv_path_EGREP+set}" = set; then :
7889 +if test "${ac_cv_path_EGREP+set}" = set; then
7890 $as_echo_n "(cached) " >&6
7892 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7893 @@ -4562,7 +4347,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/x
7896 test -z "$as_dir" && as_dir=.
7897 - for ac_prog in egrep; do
7898 + for ac_prog in egrep; do
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7901 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7902 @@ -4582,7 +4367,7 @@ case `"$ac_path_EGREP" --version 2>&1` i
7903 $as_echo 'EGREP' >> "conftest.nl"
7904 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7905 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7906 - as_fn_arith $ac_count + 1 && ac_count=$as_val
7907 + ac_count=`expr $ac_count + 1`
7908 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7909 # Best one so far, save it but keep looking for a better one
7910 ac_cv_path_EGREP="$ac_path_EGREP"
7911 @@ -4597,10 +4382,12 @@ esac
7912 $ac_path_EGREP_found && break 3
7918 if test -z "$ac_cv_path_EGREP"; then
7919 - as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7920 + { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7921 +$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7922 + { (exit 1); exit 1; }; }
7925 ac_cv_path_EGREP=$EGREP
7926 @@ -4608,14 +4395,14 @@ fi
7930 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7931 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7932 $as_echo "$ac_cv_path_EGREP" >&6; }
7933 EGREP="$ac_cv_path_EGREP"
7936 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7937 +{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
7938 $as_echo_n "checking for fgrep... " >&6; }
7939 -if test "${ac_cv_path_FGREP+set}" = set; then :
7940 +if test "${ac_cv_path_FGREP+set}" = set; then
7941 $as_echo_n "(cached) " >&6
7943 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7944 @@ -4629,7 +4416,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/x
7947 test -z "$as_dir" && as_dir=.
7948 - for ac_prog in fgrep; do
7949 + for ac_prog in fgrep; do
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7952 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7953 @@ -4649,7 +4436,7 @@ case `"$ac_path_FGREP" --version 2>&1` i
7954 $as_echo 'FGREP' >> "conftest.nl"
7955 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7956 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7957 - as_fn_arith $ac_count + 1 && ac_count=$as_val
7958 + ac_count=`expr $ac_count + 1`
7959 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7960 # Best one so far, save it but keep looking for a better one
7961 ac_cv_path_FGREP="$ac_path_FGREP"
7962 @@ -4664,10 +4451,12 @@ esac
7963 $ac_path_FGREP_found && break 3
7969 if test -z "$ac_cv_path_FGREP"; then
7970 - as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7971 + { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7972 +$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7973 + { (exit 1); exit 1; }; }
7976 ac_cv_path_FGREP=$FGREP
7977 @@ -4675,7 +4464,7 @@ fi
7981 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7982 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
7983 $as_echo "$ac_cv_path_FGREP" >&6; }
7984 FGREP="$ac_cv_path_FGREP"
7986 @@ -4701,7 +4490,7 @@ test -z "$GREP" && GREP=grep
7989 # Check whether --with-gnu-ld was given.
7990 -if test "${with_gnu_ld+set}" = set; then :
7991 +if test "${with_gnu_ld+set}" = set; then
7992 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7995 @@ -4710,7 +4499,7 @@ fi
7997 if test "$GCC" = yes; then
7998 # Check if gcc -print-prog-name=ld gives a path.
7999 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8000 + { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8001 $as_echo_n "checking for ld used by $CC... " >&6; }
8004 @@ -4740,13 +4529,13 @@ $as_echo_n "checking for ld used by $CC.
8007 elif test "$with_gnu_ld" = yes; then
8008 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8009 + { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8010 $as_echo_n "checking for GNU ld... " >&6; }
8012 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8013 + { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8014 $as_echo_n "checking for non-GNU ld... " >&6; }
8016 -if test "${lt_cv_path_LD+set}" = set; then :
8017 +if test "${lt_cv_path_LD+set}" = set; then
8018 $as_echo_n "(cached) " >&6
8020 if test -z "$LD"; then
8021 @@ -4777,16 +4566,18 @@ fi
8024 if test -n "$LD"; then
8025 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8026 + { $as_echo "$as_me:$LINENO: result: $LD" >&5
8027 $as_echo "$LD" >&6; }
8029 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 + { $as_echo "$as_me:$LINENO: result: no" >&5
8031 $as_echo "no" >&6; }
8033 -test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8034 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8035 +test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8036 +$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8037 + { (exit 1); exit 1; }; }
8038 +{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8039 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8040 -if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8041 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
8042 $as_echo_n "(cached) " >&6
8044 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8045 @@ -4799,7 +4590,7 @@ case `$LD -v 2>&1 </dev/null` in
8049 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8050 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8051 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8052 with_gnu_ld=$lt_cv_prog_gnu_ld
8054 @@ -4811,9 +4602,9 @@ with_gnu_ld=$lt_cv_prog_gnu_ld
8058 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8059 +{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
8060 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8061 -if test "${lt_cv_path_NM+set}" = set; then :
8062 +if test "${lt_cv_path_NM+set}" = set; then
8063 $as_echo_n "(cached) " >&6
8065 if test -n "$NM"; then
8066 @@ -4860,23 +4651,20 @@ else
8067 : ${lt_cv_path_NM=no}
8070 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8071 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8072 $as_echo "$lt_cv_path_NM" >&6; }
8073 if test "$lt_cv_path_NM" != "no"; then
8076 # Didn't find any BSD compatible name lister, look for dumpbin.
8077 - if test -n "$DUMPBIN"; then :
8078 - # Let the user override the test.
8080 - if test -n "$ac_tool_prefix"; then
8081 - for ac_prog in dumpbin "link -dump"
8082 + if test -n "$ac_tool_prefix"; then
8083 + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8087 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 -if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8091 +if test "${ac_cv_prog_DUMPBIN+set}" = set; then
8092 $as_echo_n "(cached) " >&6
8094 if test -n "$DUMPBIN"; then
8095 @@ -4887,24 +4675,24 @@ for as_dir in $PATH
8098 test -z "$as_dir" && as_dir=.
8099 - for ac_exec_ext in '' $ac_executable_extensions; do
8100 + for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8103 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8114 DUMPBIN=$ac_cv_prog_DUMPBIN
8115 if test -n "$DUMPBIN"; then
8116 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8117 + { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
8118 $as_echo "$DUMPBIN" >&6; }
8120 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 + { $as_echo "$as_me:$LINENO: result: no" >&5
8122 $as_echo "no" >&6; }
8125 @@ -4914,13 +4702,13 @@ fi
8127 if test -z "$DUMPBIN"; then
8128 ac_ct_DUMPBIN=$DUMPBIN
8129 - for ac_prog in dumpbin "link -dump"
8130 + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8132 # Extract the first word of "$ac_prog", so it can be a program name with args.
8133 set dummy $ac_prog; ac_word=$2
8134 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8135 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 -if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8138 +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
8139 $as_echo_n "(cached) " >&6
8141 if test -n "$ac_ct_DUMPBIN"; then
8142 @@ -4931,24 +4719,24 @@ for as_dir in $PATH
8145 test -z "$as_dir" && as_dir=.
8146 - for ac_exec_ext in '' $ac_executable_extensions; do
8147 + for ac_exec_ext in '' $ac_executable_extensions; do
8148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8149 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8150 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8162 if test -n "$ac_ct_DUMPBIN"; then
8163 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8164 + { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
8165 $as_echo "$ac_ct_DUMPBIN" >&6; }
8167 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 + { $as_echo "$as_me:$LINENO: result: no" >&5
8169 $as_echo "no" >&6; }
8172 @@ -4961,7 +4749,7 @@ done
8174 case $cross_compiling:$ac_tool_warned in
8176 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8177 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8179 ac_tool_warned=yes ;;
8181 @@ -4969,15 +4757,6 @@ esac
8185 - case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8187 - DUMPBIN="$DUMPBIN -symbols"
8195 if test "$DUMPBIN" != ":"; then
8197 @@ -4990,44 +4769,44 @@ test -z "$NM" && NM=nm
8201 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8202 +{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
8203 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8204 -if test "${lt_cv_nm_interface+set}" = set; then :
8205 +if test "${lt_cv_nm_interface+set}" = set; then
8206 $as_echo_n "(cached) " >&6
8208 lt_cv_nm_interface="BSD nm"
8209 echo "int some_variable = 0;" > conftest.$ac_ext
8210 - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8211 + (eval echo "\"\$as_me:4779: $ac_compile\"" >&5)
8212 (eval "$ac_compile" 2>conftest.err)
8213 cat conftest.err >&5
8214 - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8215 + (eval echo "\"\$as_me:4782: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8216 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8217 cat conftest.err >&5
8218 - (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8219 + (eval echo "\"\$as_me:4785: output\"" >&5)
8220 cat conftest.out >&5
8221 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8222 lt_cv_nm_interface="MS dumpbin"
8226 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8227 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
8228 $as_echo "$lt_cv_nm_interface" >&6; }
8230 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8231 +{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
8232 $as_echo_n "checking whether ln -s works... " >&6; }
8234 if test "$LN_S" = "ln -s"; then
8235 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8236 + { $as_echo "$as_me:$LINENO: result: yes" >&5
8237 $as_echo "yes" >&6; }
8239 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8240 + { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8241 $as_echo "no, using $LN_S" >&6; }
8244 # find the maximum length of command line arguments
8245 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8246 +{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8247 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8248 -if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8249 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8250 $as_echo_n "(cached) " >&6
8253 @@ -5060,11 +4839,6 @@ else
8254 lt_cv_sys_max_cmd_len=8192;
8258 - # On MiNT this can take a long time and run out of memory.
8259 - lt_cv_sys_max_cmd_len=8192;
8263 # On AmigaOS with pdksh, this test takes hours, literally.
8264 # So we just punt and use a minimum line length of 8192.
8265 @@ -5129,8 +4903,8 @@ else
8266 # If test is not a shell built-in, we'll probably end up computing a
8267 # maximum length that is only half of the actual maximum length, but
8269 - while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8270 - = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8271 + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8272 + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8273 test $i != 17 # 1/2 MB should be enough
8276 @@ -5150,10 +4924,10 @@ else
8279 if test -n $lt_cv_sys_max_cmd_len ; then
8280 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8281 + { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8282 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8284 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8285 + { $as_echo "$as_me:$LINENO: result: none" >&5
8286 $as_echo "none" >&6; }
8288 max_cmd_len=$lt_cv_sys_max_cmd_len
8289 @@ -5167,7 +4941,7 @@ max_cmd_len=$lt_cv_sys_max_cmd_len
8293 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8294 +{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
8295 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8296 # Try some XSI features
8298 @@ -5177,17 +4951,17 @@ xsi_shell=no
8299 && eval 'test $(( 1 + 1 )) -eq 2 \
8300 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8302 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8303 +{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
8304 $as_echo "$xsi_shell" >&6; }
8307 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8308 +{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
8309 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8311 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8313 && lt_shell_append=yes
8314 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8315 +{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
8316 $as_echo "$lt_shell_append" >&6; }
8319 @@ -5222,14 +4996,14 @@ esac
8323 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8324 +{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8325 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8326 -if test "${lt_cv_ld_reload_flag+set}" = set; then :
8327 +if test "${lt_cv_ld_reload_flag+set}" = set; then
8328 $as_echo_n "(cached) " >&6
8330 lt_cv_ld_reload_flag='-r'
8332 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8333 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8334 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8335 reload_flag=$lt_cv_ld_reload_flag
8336 case $reload_flag in
8337 @@ -5258,9 +5032,9 @@ esac
8338 if test -n "$ac_tool_prefix"; then
8339 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8340 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8341 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 -if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8345 +if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8346 $as_echo_n "(cached) " >&6
8348 if test -n "$OBJDUMP"; then
8349 @@ -5271,24 +5045,24 @@ for as_dir in $PATH
8352 test -z "$as_dir" && as_dir=.
8353 - for ac_exec_ext in '' $ac_executable_extensions; do
8354 + for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8356 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8357 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 OBJDUMP=$ac_cv_prog_OBJDUMP
8369 if test -n "$OBJDUMP"; then
8370 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8371 + { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8372 $as_echo "$OBJDUMP" >&6; }
8374 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 + { $as_echo "$as_me:$LINENO: result: no" >&5
8376 $as_echo "no" >&6; }
8379 @@ -5298,9 +5072,9 @@ if test -z "$ac_cv_prog_OBJDUMP"; then
8380 ac_ct_OBJDUMP=$OBJDUMP
8381 # Extract the first word of "objdump", so it can be a program name with args.
8382 set dummy objdump; ac_word=$2
8383 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8384 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 -if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8387 +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
8388 $as_echo_n "(cached) " >&6
8390 if test -n "$ac_ct_OBJDUMP"; then
8391 @@ -5311,24 +5085,24 @@ for as_dir in $PATH
8394 test -z "$as_dir" && as_dir=.
8395 - for ac_exec_ext in '' $ac_executable_extensions; do
8396 + for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8399 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8411 if test -n "$ac_ct_OBJDUMP"; then
8412 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8413 + { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
8414 $as_echo "$ac_ct_OBJDUMP" >&6; }
8416 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 + { $as_echo "$as_me:$LINENO: result: no" >&5
8418 $as_echo "no" >&6; }
8421 @@ -5337,7 +5111,7 @@ fi
8423 case $cross_compiling:$ac_tool_warned in
8425 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8428 ac_tool_warned=yes ;;
8430 @@ -5357,9 +5131,9 @@ test -z "$OBJDUMP" && OBJDUMP=objdump
8434 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8435 +{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8436 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8437 -if test "${lt_cv_deplibs_check_method+set}" = set; then :
8438 +if test "${lt_cv_deplibs_check_method+set}" = set; then
8439 $as_echo_n "(cached) " >&6
8441 lt_cv_file_magic_cmd='$MAGIC_CMD'
8442 @@ -5401,8 +5175,7 @@ mingw* | pw32*)
8443 # Base MSYS/MinGW do not provide the 'file' command needed by
8444 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8445 # unless we find 'file', for example because we are cross-compiling.
8446 - # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8447 - if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8448 + if ( file / ) >/dev/null 2>&1; then
8449 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8450 lt_cv_file_magic_cmd='func_win32_libid'
8452 @@ -5411,7 +5184,7 @@ mingw* | pw32*)
8458 # use the weaker test based on 'objdump'. See mingw*.
8459 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8460 lt_cv_file_magic_cmd='$OBJDUMP -f'
8461 @@ -5441,10 +5214,6 @@ gnu*)
8462 lt_cv_deplibs_check_method=pass_all
8466 - lt_cv_deplibs_check_method=pass_all
8469 hpux10.20* | hpux11*)
8470 lt_cv_file_magic_cmd=/usr/bin/file
8472 @@ -5453,11 +5222,11 @@ hpux10.20* | hpux11*)
8473 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8476 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8477 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8478 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8481 - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8482 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8483 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8486 @@ -5479,7 +5248,7 @@ irix5* | irix6* | nonstopux*)
8489 # This must be Linux ELF.
8490 -linux* | k*bsd*-gnu | kopensolaris*-gnu)
8491 +linux* | k*bsd*-gnu)
8492 lt_cv_deplibs_check_method=pass_all
8495 @@ -5558,7 +5327,7 @@ tpf*)
8499 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8500 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8501 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8502 file_magic_cmd=$lt_cv_file_magic_cmd
8503 deplibs_check_method=$lt_cv_deplibs_check_method
8504 @@ -5578,9 +5347,9 @@ test -z "$deplibs_check_method" && depli
8505 if test -n "$ac_tool_prefix"; then
8506 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8507 set dummy ${ac_tool_prefix}ar; ac_word=$2
8508 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 -if test "${ac_cv_prog_AR+set}" = set; then :
8512 +if test "${ac_cv_prog_AR+set}" = set; then
8513 $as_echo_n "(cached) " >&6
8515 if test -n "$AR"; then
8516 @@ -5591,24 +5360,24 @@ for as_dir in $PATH
8519 test -z "$as_dir" && as_dir=.
8520 - for ac_exec_ext in '' $ac_executable_extensions; do
8521 + for ac_exec_ext in '' $ac_executable_extensions; do
8522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8523 ac_cv_prog_AR="${ac_tool_prefix}ar"
8524 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8536 if test -n "$AR"; then
8537 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8538 + { $as_echo "$as_me:$LINENO: result: $AR" >&5
8539 $as_echo "$AR" >&6; }
8541 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 + { $as_echo "$as_me:$LINENO: result: no" >&5
8543 $as_echo "no" >&6; }
8546 @@ -5618,9 +5387,9 @@ if test -z "$ac_cv_prog_AR"; then
8548 # Extract the first word of "ar", so it can be a program name with args.
8549 set dummy ar; ac_word=$2
8550 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8551 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8552 $as_echo_n "checking for $ac_word... " >&6; }
8553 -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8554 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8555 $as_echo_n "(cached) " >&6
8557 if test -n "$ac_ct_AR"; then
8558 @@ -5631,24 +5400,24 @@ for as_dir in $PATH
8561 test -z "$as_dir" && as_dir=.
8562 - for ac_exec_ext in '' $ac_executable_extensions; do
8563 + for ac_exec_ext in '' $ac_executable_extensions; do
8564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8565 ac_cv_prog_ac_ct_AR="ar"
8566 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8567 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8578 if test -n "$ac_ct_AR"; then
8579 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8580 + { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8581 $as_echo "$ac_ct_AR" >&6; }
8583 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8584 + { $as_echo "$as_me:$LINENO: result: no" >&5
8585 $as_echo "no" >&6; }
8588 @@ -5657,7 +5426,7 @@ fi
8590 case $cross_compiling:$ac_tool_warned in
8592 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8593 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8595 ac_tool_warned=yes ;;
8597 @@ -5683,9 +5452,9 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru
8598 if test -n "$ac_tool_prefix"; then
8599 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8600 set dummy ${ac_tool_prefix}strip; ac_word=$2
8601 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 -if test "${ac_cv_prog_STRIP+set}" = set; then :
8605 +if test "${ac_cv_prog_STRIP+set}" = set; then
8606 $as_echo_n "(cached) " >&6
8608 if test -n "$STRIP"; then
8609 @@ -5696,24 +5465,24 @@ for as_dir in $PATH
8612 test -z "$as_dir" && as_dir=.
8613 - for ac_exec_ext in '' $ac_executable_extensions; do
8614 + for ac_exec_ext in '' $ac_executable_extensions; do
8615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8616 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8617 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8628 STRIP=$ac_cv_prog_STRIP
8629 if test -n "$STRIP"; then
8630 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8631 + { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8632 $as_echo "$STRIP" >&6; }
8634 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 + { $as_echo "$as_me:$LINENO: result: no" >&5
8636 $as_echo "no" >&6; }
8639 @@ -5723,9 +5492,9 @@ if test -z "$ac_cv_prog_STRIP"; then
8641 # Extract the first word of "strip", so it can be a program name with args.
8642 set dummy strip; ac_word=$2
8643 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8645 $as_echo_n "checking for $ac_word... " >&6; }
8646 -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8647 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8648 $as_echo_n "(cached) " >&6
8650 if test -n "$ac_ct_STRIP"; then
8651 @@ -5736,24 +5505,24 @@ for as_dir in $PATH
8654 test -z "$as_dir" && as_dir=.
8655 - for ac_exec_ext in '' $ac_executable_extensions; do
8656 + for ac_exec_ext in '' $ac_executable_extensions; do
8657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658 ac_cv_prog_ac_ct_STRIP="strip"
8659 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8660 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8671 if test -n "$ac_ct_STRIP"; then
8672 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8673 + { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8674 $as_echo "$ac_ct_STRIP" >&6; }
8676 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 + { $as_echo "$as_me:$LINENO: result: no" >&5
8678 $as_echo "no" >&6; }
8681 @@ -5762,7 +5531,7 @@ fi
8683 case $cross_compiling:$ac_tool_warned in
8685 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8686 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8688 ac_tool_warned=yes ;;
8690 @@ -5782,9 +5551,9 @@ test -z "$STRIP" && STRIP=:
8691 if test -n "$ac_tool_prefix"; then
8692 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8693 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8694 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8696 $as_echo_n "checking for $ac_word... " >&6; }
8697 -if test "${ac_cv_prog_RANLIB+set}" = set; then :
8698 +if test "${ac_cv_prog_RANLIB+set}" = set; then
8699 $as_echo_n "(cached) " >&6
8701 if test -n "$RANLIB"; then
8702 @@ -5795,24 +5564,24 @@ for as_dir in $PATH
8705 test -z "$as_dir" && as_dir=.
8706 - for ac_exec_ext in '' $ac_executable_extensions; do
8707 + for ac_exec_ext in '' $ac_executable_extensions; do
8708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8709 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8710 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8711 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8721 RANLIB=$ac_cv_prog_RANLIB
8722 if test -n "$RANLIB"; then
8723 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8724 + { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8725 $as_echo "$RANLIB" >&6; }
8727 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728 + { $as_echo "$as_me:$LINENO: result: no" >&5
8729 $as_echo "no" >&6; }
8732 @@ -5822,9 +5591,9 @@ if test -z "$ac_cv_prog_RANLIB"; then
8733 ac_ct_RANLIB=$RANLIB
8734 # Extract the first word of "ranlib", so it can be a program name with args.
8735 set dummy ranlib; ac_word=$2
8736 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8737 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8740 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8741 $as_echo_n "(cached) " >&6
8743 if test -n "$ac_ct_RANLIB"; then
8744 @@ -5835,24 +5604,24 @@ for as_dir in $PATH
8747 test -z "$as_dir" && as_dir=.
8748 - for ac_exec_ext in '' $ac_executable_extensions; do
8749 + for ac_exec_ext in '' $ac_executable_extensions; do
8750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8751 ac_cv_prog_ac_ct_RANLIB="ranlib"
8752 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8764 if test -n "$ac_ct_RANLIB"; then
8765 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8766 + { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8767 $as_echo "$ac_ct_RANLIB" >&6; }
8769 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 + { $as_echo "$as_me:$LINENO: result: no" >&5
8771 $as_echo "no" >&6; }
8774 @@ -5861,7 +5630,7 @@ fi
8776 case $cross_compiling:$ac_tool_warned in
8778 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8779 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8781 ac_tool_warned=yes ;;
8783 @@ -5895,18 +5664,6 @@ if test -n "$RANLIB"; then
8784 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8789 - lock_old_archive_extraction=yes ;;
8791 - lock_old_archive_extraction=no ;;
8802 @@ -5951,9 +5708,9 @@ compiler=$CC
8805 # Check for command to grab the raw symbol name followed by C symbol from nm.
8806 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8807 +{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8808 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8809 -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8810 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8811 $as_echo_n "(cached) " >&6
8814 @@ -6069,18 +5826,18 @@ void nm_test_func(void){}
8815 int main(){nm_test_var='a';nm_test_func();return(0);}
8818 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8819 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8820 (eval $ac_compile) 2>&5
8822 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8823 - test $ac_status = 0; }; then
8824 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 + (exit $ac_status); }; then
8826 # Now try to grab the symbols.
8828 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8829 - (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8830 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8831 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8833 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8834 - test $ac_status = 0; } && test -s "$nlist"; then
8835 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 + (exit $ac_status); } && test -s "$nlist"; then
8837 # Try sorting and uniquifying the output.
8838 if sort "$nlist" | uniq > "$nlist"T; then
8839 mv -f "$nlist"T "$nlist"
8840 @@ -6133,11 +5890,11 @@ _LT_EOF
8841 lt_save_CFLAGS="$CFLAGS"
8842 LIBS="conftstm.$ac_objext"
8843 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8844 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8845 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>&5
8848 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8849 - test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8850 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 + (exit $ac_status); } && test -s conftest${ac_exeext}; then
8854 LIBS="$lt_save_LIBS"
8855 @@ -6171,10 +5928,10 @@ if test -z "$lt_cv_sys_global_symbol_pip
8856 lt_cv_sys_global_symbol_to_cdecl=
8858 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8859 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8860 + { $as_echo "$as_me:$LINENO: result: failed" >&5
8861 $as_echo "failed" >&6; }
8863 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8864 + { $as_echo "$as_me:$LINENO: result: ok" >&5
8865 $as_echo "ok" >&6; }
8868 @@ -6201,7 +5958,7 @@ fi
8871 # Check whether --enable-libtool-lock was given.
8872 -if test "${enable_libtool_lock+set}" = set; then :
8873 +if test "${enable_libtool_lock+set}" = set; then
8874 enableval=$enable_libtool_lock;
8877 @@ -6213,11 +5970,11 @@ case $host in
8879 # Find out which ABI we are using.
8880 echo 'int i;' > conftest.$ac_ext
8881 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8882 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8883 (eval $ac_compile) 2>&5
8885 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8886 - test $ac_status = 0; }; then
8887 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 + (exit $ac_status); }; then
8889 case `/usr/bin/file conftest.$ac_objext` in
8892 @@ -6231,12 +5988,12 @@ ia64-*-hpux*)
8895 # Find out which ABI we are using.
8896 - echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8897 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8898 + echo '#line 5991 "configure"' > conftest.$ac_ext
8899 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>&5
8902 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8903 - test $ac_status = 0; }; then
8904 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 + (exit $ac_status); }; then
8906 if test "$lt_cv_prog_gnu_ld" = yes; then
8907 case `/usr/bin/file conftest.$ac_objext` in
8909 @@ -6270,11 +6027,11 @@ x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc
8910 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8911 # Find out which ABI we are using.
8912 echo 'int i;' > conftest.$ac_ext
8913 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8914 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8915 (eval $ac_compile) 2>&5
8917 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8918 - test $ac_status = 0; }; then
8919 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 + (exit $ac_status); }; then
8921 case `/usr/bin/file conftest.o` in
8924 @@ -6323,9 +6080,9 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
8925 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8926 SAVE_CFLAGS="$CFLAGS"
8927 CFLAGS="$CFLAGS -belf"
8928 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8929 + { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8930 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8931 -if test "${lt_cv_cc_needs_belf+set}" = set; then :
8932 +if test "${lt_cv_cc_needs_belf+set}" = set; then
8933 $as_echo_n "(cached) " >&6
8936 @@ -6334,7 +6091,11 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS con
8937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8940 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 + cat >conftest.$ac_ext <<_ACEOF
8944 +cat confdefs.h >>conftest.$ac_ext
8945 +cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8949 @@ -6345,13 +6106,38 @@ main ()
8953 -if ac_fn_c_try_link "$LINENO"; then :
8954 +rm -f conftest.$ac_objext conftest$ac_exeext
8955 +if { (ac_try="$ac_link"
8956 +case "(($ac_try" in
8957 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 + *) ac_try_echo=$ac_try;;
8960 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8961 +$as_echo "$ac_try_echo") >&5
8962 + (eval "$ac_link") 2>conftest.er1
8964 + grep -v '^ *+' conftest.er1 >conftest.err
8965 + rm -f conftest.er1
8966 + cat conftest.err >&5
8967 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 + (exit $ac_status); } && {
8969 + test -z "$ac_c_werror_flag" ||
8970 + test ! -s conftest.err
8971 + } && test -s conftest$ac_exeext && {
8972 + test "$cross_compiling" = yes ||
8973 + $as_test_x conftest$ac_exeext
8975 lt_cv_cc_needs_belf=yes
8977 - lt_cv_cc_needs_belf=no
8978 + $as_echo "$as_me: failed program was:" >&5
8979 +sed 's/^/| /' conftest.$ac_ext >&5
8981 + lt_cv_cc_needs_belf=no
8983 -rm -f core conftest.err conftest.$ac_objext \
8984 - conftest$ac_exeext conftest.$ac_ext
8986 +rm -rf conftest.dSYM
8987 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8988 + conftest$ac_exeext conftest.$ac_ext
8990 ac_cpp='$CPP $CPPFLAGS'
8991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8992 @@ -6359,7 +6145,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
8993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8996 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8997 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8998 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8999 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9001 @@ -6369,11 +6155,11 @@ $as_echo "$lt_cv_cc_needs_belf" >&6; }
9003 # Find out which ABI we are using.
9004 echo 'int i;' > conftest.$ac_ext
9005 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9006 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9007 (eval $ac_compile) 2>&5
9009 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9010 - test $ac_status = 0; }; then
9011 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 + (exit $ac_status); }; then
9013 case `/usr/bin/file conftest.o` in
9015 case $lt_cv_prog_gnu_ld in
9016 @@ -6399,9 +6185,9 @@ need_locks="$enable_libtool_lock"
9017 if test -n "$ac_tool_prefix"; then
9018 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9019 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9020 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 -if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9024 +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
9025 $as_echo_n "(cached) " >&6
9027 if test -n "$DSYMUTIL"; then
9028 @@ -6412,24 +6198,24 @@ for as_dir in $PATH
9031 test -z "$as_dir" && as_dir=.
9032 - for ac_exec_ext in '' $ac_executable_extensions; do
9033 + for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9035 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9036 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9047 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9048 if test -n "$DSYMUTIL"; then
9049 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9050 + { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
9051 $as_echo "$DSYMUTIL" >&6; }
9053 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9054 + { $as_echo "$as_me:$LINENO: result: no" >&5
9055 $as_echo "no" >&6; }
9058 @@ -6439,9 +6225,9 @@ if test -z "$ac_cv_prog_DSYMUTIL"; then
9059 ac_ct_DSYMUTIL=$DSYMUTIL
9060 # Extract the first word of "dsymutil", so it can be a program name with args.
9061 set dummy dsymutil; ac_word=$2
9062 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9063 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 -if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9066 +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
9067 $as_echo_n "(cached) " >&6
9069 if test -n "$ac_ct_DSYMUTIL"; then
9070 @@ -6452,24 +6238,24 @@ for as_dir in $PATH
9073 test -z "$as_dir" && as_dir=.
9074 - for ac_exec_ext in '' $ac_executable_extensions; do
9075 + for ac_exec_ext in '' $ac_executable_extensions; do
9076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9077 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9078 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9079 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9089 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9090 if test -n "$ac_ct_DSYMUTIL"; then
9091 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9092 + { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
9093 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9095 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9096 + { $as_echo "$as_me:$LINENO: result: no" >&5
9097 $as_echo "no" >&6; }
9100 @@ -6478,7 +6264,7 @@ fi
9102 case $cross_compiling:$ac_tool_warned in
9104 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9105 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9107 ac_tool_warned=yes ;;
9109 @@ -6491,9 +6277,9 @@ fi
9110 if test -n "$ac_tool_prefix"; then
9111 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9112 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9113 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9115 $as_echo_n "checking for $ac_word... " >&6; }
9116 -if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9117 +if test "${ac_cv_prog_NMEDIT+set}" = set; then
9118 $as_echo_n "(cached) " >&6
9120 if test -n "$NMEDIT"; then
9121 @@ -6504,24 +6290,24 @@ for as_dir in $PATH
9124 test -z "$as_dir" && as_dir=.
9125 - for ac_exec_ext in '' $ac_executable_extensions; do
9126 + for ac_exec_ext in '' $ac_executable_extensions; do
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9129 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9140 NMEDIT=$ac_cv_prog_NMEDIT
9141 if test -n "$NMEDIT"; then
9142 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9143 + { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
9144 $as_echo "$NMEDIT" >&6; }
9146 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 + { $as_echo "$as_me:$LINENO: result: no" >&5
9148 $as_echo "no" >&6; }
9151 @@ -6531,9 +6317,9 @@ if test -z "$ac_cv_prog_NMEDIT"; then
9152 ac_ct_NMEDIT=$NMEDIT
9153 # Extract the first word of "nmedit", so it can be a program name with args.
9154 set dummy nmedit; ac_word=$2
9155 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9156 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 -if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9159 +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
9160 $as_echo_n "(cached) " >&6
9162 if test -n "$ac_ct_NMEDIT"; then
9163 @@ -6544,24 +6330,24 @@ for as_dir in $PATH
9166 test -z "$as_dir" && as_dir=.
9167 - for ac_exec_ext in '' $ac_executable_extensions; do
9168 + for ac_exec_ext in '' $ac_executable_extensions; do
9169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9170 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9171 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9172 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9182 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9183 if test -n "$ac_ct_NMEDIT"; then
9184 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9185 + { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
9186 $as_echo "$ac_ct_NMEDIT" >&6; }
9188 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 + { $as_echo "$as_me:$LINENO: result: no" >&5
9190 $as_echo "no" >&6; }
9193 @@ -6570,7 +6356,7 @@ fi
9195 case $cross_compiling:$ac_tool_warned in
9197 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9198 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9200 ac_tool_warned=yes ;;
9202 @@ -6583,9 +6369,9 @@ fi
9203 if test -n "$ac_tool_prefix"; then
9204 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9205 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9206 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9207 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9208 $as_echo_n "checking for $ac_word... " >&6; }
9209 -if test "${ac_cv_prog_LIPO+set}" = set; then :
9210 +if test "${ac_cv_prog_LIPO+set}" = set; then
9211 $as_echo_n "(cached) " >&6
9213 if test -n "$LIPO"; then
9214 @@ -6596,24 +6382,24 @@ for as_dir in $PATH
9217 test -z "$as_dir" && as_dir=.
9218 - for ac_exec_ext in '' $ac_executable_extensions; do
9219 + for ac_exec_ext in '' $ac_executable_extensions; do
9220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9221 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9222 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 LIPO=$ac_cv_prog_LIPO
9234 if test -n "$LIPO"; then
9235 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9236 + { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
9237 $as_echo "$LIPO" >&6; }
9239 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 + { $as_echo "$as_me:$LINENO: result: no" >&5
9241 $as_echo "no" >&6; }
9244 @@ -6623,9 +6409,9 @@ if test -z "$ac_cv_prog_LIPO"; then
9246 # Extract the first word of "lipo", so it can be a program name with args.
9247 set dummy lipo; ac_word=$2
9248 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9249 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9250 $as_echo_n "checking for $ac_word... " >&6; }
9251 -if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9252 +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
9253 $as_echo_n "(cached) " >&6
9255 if test -n "$ac_ct_LIPO"; then
9256 @@ -6636,24 +6422,24 @@ for as_dir in $PATH
9259 test -z "$as_dir" && as_dir=.
9260 - for ac_exec_ext in '' $ac_executable_extensions; do
9261 + for ac_exec_ext in '' $ac_executable_extensions; do
9262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9263 ac_cv_prog_ac_ct_LIPO="lipo"
9264 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9275 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9276 if test -n "$ac_ct_LIPO"; then
9277 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9278 + { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
9279 $as_echo "$ac_ct_LIPO" >&6; }
9281 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282 + { $as_echo "$as_me:$LINENO: result: no" >&5
9283 $as_echo "no" >&6; }
9286 @@ -6662,7 +6448,7 @@ fi
9288 case $cross_compiling:$ac_tool_warned in
9290 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9291 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9293 ac_tool_warned=yes ;;
9295 @@ -6675,9 +6461,9 @@ fi
9296 if test -n "$ac_tool_prefix"; then
9297 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9298 set dummy ${ac_tool_prefix}otool; ac_word=$2
9299 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9300 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9301 $as_echo_n "checking for $ac_word... " >&6; }
9302 -if test "${ac_cv_prog_OTOOL+set}" = set; then :
9303 +if test "${ac_cv_prog_OTOOL+set}" = set; then
9304 $as_echo_n "(cached) " >&6
9306 if test -n "$OTOOL"; then
9307 @@ -6688,24 +6474,24 @@ for as_dir in $PATH
9310 test -z "$as_dir" && as_dir=.
9311 - for ac_exec_ext in '' $ac_executable_extensions; do
9312 + for ac_exec_ext in '' $ac_executable_extensions; do
9313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9314 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9315 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9316 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9326 OTOOL=$ac_cv_prog_OTOOL
9327 if test -n "$OTOOL"; then
9328 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9329 + { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
9330 $as_echo "$OTOOL" >&6; }
9332 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 + { $as_echo "$as_me:$LINENO: result: no" >&5
9334 $as_echo "no" >&6; }
9337 @@ -6715,9 +6501,9 @@ if test -z "$ac_cv_prog_OTOOL"; then
9339 # Extract the first word of "otool", so it can be a program name with args.
9340 set dummy otool; ac_word=$2
9341 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9343 $as_echo_n "checking for $ac_word... " >&6; }
9344 -if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9345 +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
9346 $as_echo_n "(cached) " >&6
9348 if test -n "$ac_ct_OTOOL"; then
9349 @@ -6728,24 +6514,24 @@ for as_dir in $PATH
9352 test -z "$as_dir" && as_dir=.
9353 - for ac_exec_ext in '' $ac_executable_extensions; do
9354 + for ac_exec_ext in '' $ac_executable_extensions; do
9355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9356 ac_cv_prog_ac_ct_OTOOL="otool"
9357 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9368 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9369 if test -n "$ac_ct_OTOOL"; then
9370 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9371 + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
9372 $as_echo "$ac_ct_OTOOL" >&6; }
9374 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375 + { $as_echo "$as_me:$LINENO: result: no" >&5
9376 $as_echo "no" >&6; }
9379 @@ -6754,7 +6540,7 @@ fi
9381 case $cross_compiling:$ac_tool_warned in
9383 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9384 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9386 ac_tool_warned=yes ;;
9388 @@ -6767,9 +6553,9 @@ fi
9389 if test -n "$ac_tool_prefix"; then
9390 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9391 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9392 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9394 $as_echo_n "checking for $ac_word... " >&6; }
9395 -if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9396 +if test "${ac_cv_prog_OTOOL64+set}" = set; then
9397 $as_echo_n "(cached) " >&6
9399 if test -n "$OTOOL64"; then
9400 @@ -6780,24 +6566,24 @@ for as_dir in $PATH
9403 test -z "$as_dir" && as_dir=.
9404 - for ac_exec_ext in '' $ac_executable_extensions; do
9405 + for ac_exec_ext in '' $ac_executable_extensions; do
9406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9407 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9408 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9409 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9419 OTOOL64=$ac_cv_prog_OTOOL64
9420 if test -n "$OTOOL64"; then
9421 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9422 + { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
9423 $as_echo "$OTOOL64" >&6; }
9425 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 + { $as_echo "$as_me:$LINENO: result: no" >&5
9427 $as_echo "no" >&6; }
9430 @@ -6807,9 +6593,9 @@ if test -z "$ac_cv_prog_OTOOL64"; then
9431 ac_ct_OTOOL64=$OTOOL64
9432 # Extract the first word of "otool64", so it can be a program name with args.
9433 set dummy otool64; ac_word=$2
9434 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435 +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9436 $as_echo_n "checking for $ac_word... " >&6; }
9437 -if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9438 +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
9439 $as_echo_n "(cached) " >&6
9441 if test -n "$ac_ct_OTOOL64"; then
9442 @@ -6820,24 +6606,24 @@ for as_dir in $PATH
9445 test -z "$as_dir" && as_dir=.
9446 - for ac_exec_ext in '' $ac_executable_extensions; do
9447 + for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9449 ac_cv_prog_ac_ct_OTOOL64="otool64"
9450 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9461 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9462 if test -n "$ac_ct_OTOOL64"; then
9463 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9464 + { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
9465 $as_echo "$ac_ct_OTOOL64" >&6; }
9467 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 + { $as_echo "$as_me:$LINENO: result: no" >&5
9469 $as_echo "no" >&6; }
9472 @@ -6846,7 +6632,7 @@ fi
9474 case $cross_compiling:$ac_tool_warned in
9476 -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9477 +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9479 ac_tool_warned=yes ;;
9481 @@ -6882,9 +6668,9 @@ fi
9485 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9486 + { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
9487 $as_echo_n "checking for -single_module linker flag... " >&6; }
9488 -if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9489 +if test "${lt_cv_apple_cc_single_mod+set}" = set; then
9490 $as_echo_n "(cached) " >&6
9492 lt_cv_apple_cc_single_mod=no
9493 @@ -6909,18 +6695,22 @@ else
9497 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9498 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
9499 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9500 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9501 + { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
9502 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9503 -if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9504 +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
9505 $as_echo_n "(cached) " >&6
9507 lt_cv_ld_exported_symbols_list=no
9508 save_LDFLAGS=$LDFLAGS
9509 echo "_main" > conftest.sym
9510 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9511 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 + cat >conftest.$ac_ext <<_ACEOF
9515 +cat confdefs.h >>conftest.$ac_ext
9516 +cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9520 @@ -6931,48 +6721,43 @@ main ()
9524 -if ac_fn_c_try_link "$LINENO"; then :
9525 - lt_cv_ld_exported_symbols_list=yes
9527 - lt_cv_ld_exported_symbols_list=no
9529 -rm -f core conftest.err conftest.$ac_objext \
9530 - conftest$ac_exeext conftest.$ac_ext
9531 - LDFLAGS="$save_LDFLAGS"
9534 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9535 -$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9536 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9537 -$as_echo_n "checking for -force_load linker flag... " >&6; }
9538 -if test "${lt_cv_ld_force_load+set}" = set; then :
9539 - $as_echo_n "(cached) " >&6
9540 +rm -f conftest.$ac_objext conftest$ac_exeext
9541 +if { (ac_try="$ac_link"
9542 +case "(($ac_try" in
9543 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 + *) ac_try_echo=$ac_try;;
9546 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9547 +$as_echo "$ac_try_echo") >&5
9548 + (eval "$ac_link") 2>conftest.er1
9550 + grep -v '^ *+' conftest.er1 >conftest.err
9551 + rm -f conftest.er1
9552 + cat conftest.err >&5
9553 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 + (exit $ac_status); } && {
9555 + test -z "$ac_c_werror_flag" ||
9556 + test ! -s conftest.err
9557 + } && test -s conftest$ac_exeext && {
9558 + test "$cross_compiling" = yes ||
9559 + $as_test_x conftest$ac_exeext
9561 + lt_cv_ld_exported_symbols_list=yes
9563 - lt_cv_ld_force_load=no
9564 - cat > conftest.c << _LT_EOF
9565 -int forced_loaded() { return 2;}
9567 - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9568 - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9569 - echo "$AR cru libconftest.a conftest.o" >&5
9570 - $AR cru libconftest.a conftest.o 2>&5
9571 - cat > conftest.c << _LT_EOF
9572 -int main() { return 0;}
9574 - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9575 - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9577 - if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9578 - lt_cv_ld_force_load=yes
9580 - cat conftest.err >&5
9582 - rm -f conftest.err libconftest.a conftest conftest.c
9583 - rm -rf conftest.dSYM
9584 + $as_echo "$as_me: failed program was:" >&5
9585 +sed 's/^/| /' conftest.$ac_ext >&5
9587 + lt_cv_ld_exported_symbols_list=no
9590 +rm -rf conftest.dSYM
9591 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9592 + conftest$ac_exeext conftest.$ac_ext
9593 + LDFLAGS="$save_LDFLAGS"
9596 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9597 -$as_echo "$lt_cv_ld_force_load" >&6; }
9598 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
9599 +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9601 rhapsody* | darwin1.[012])
9602 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9603 @@ -7000,7 +6785,7 @@ $as_echo "$lt_cv_ld_force_load" >&6; }
9605 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9607 - if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9608 + if test "$DSYMUTIL" != ":"; then
9609 _lt_dsymutil='~$DSYMUTIL $lib || :'
9612 @@ -7013,14 +6798,14 @@ ac_cpp='$CPP $CPPFLAGS'
9613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9616 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9617 +{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
9618 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9619 # On Suns, sometimes $CPP names a directory.
9620 if test -n "$CPP" && test -d "$CPP"; then
9623 if test -z "$CPP"; then
9624 - if test "${ac_cv_prog_CPP+set}" = set; then :
9625 + if test "${ac_cv_prog_CPP+set}" = set; then
9626 $as_echo_n "(cached) " >&6
9628 # Double quotes because CPP needs to be expanded
9629 @@ -7035,7 +6820,11 @@ do
9630 # <limits.h> exists even on freestanding compilers.
9631 # On the NeXT, cc -E runs the code through the compiler's parser,
9632 # not just through cpp. "Syntax error" is here to catch this case.
9633 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 + cat >conftest.$ac_ext <<_ACEOF
9637 +cat confdefs.h >>conftest.$ac_ext
9638 +cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9641 # include <limits.h>
9642 @@ -7044,34 +6833,78 @@ do
9646 -if ac_fn_c_try_cpp "$LINENO"; then :
9648 +if { (ac_try="$ac_cpp conftest.$ac_ext"
9649 +case "(($ac_try" in
9650 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 + *) ac_try_echo=$ac_try;;
9653 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9654 +$as_echo "$ac_try_echo") >&5
9655 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9657 + grep -v '^ *+' conftest.er1 >conftest.err
9658 + rm -f conftest.er1
9659 + cat conftest.err >&5
9660 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 + (exit $ac_status); } >/dev/null && {
9662 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9663 + test ! -s conftest.err
9667 + $as_echo "$as_me: failed program was:" >&5
9668 +sed 's/^/| /' conftest.$ac_ext >&5
9670 # Broken: fails on valid input.
9674 rm -f conftest.err conftest.$ac_ext
9676 # OK, works on sane cases. Now check whether nonexistent headers
9677 # can be detected and how.
9678 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 + cat >conftest.$ac_ext <<_ACEOF
9682 +cat confdefs.h >>conftest.$ac_ext
9683 +cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9685 #include <ac_nonexistent.h>
9687 -if ac_fn_c_try_cpp "$LINENO"; then :
9688 +if { (ac_try="$ac_cpp conftest.$ac_ext"
9689 +case "(($ac_try" in
9690 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 + *) ac_try_echo=$ac_try;;
9693 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9694 +$as_echo "$ac_try_echo") >&5
9695 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9697 + grep -v '^ *+' conftest.er1 >conftest.err
9698 + rm -f conftest.er1
9699 + cat conftest.err >&5
9700 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 + (exit $ac_status); } >/dev/null && {
9702 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9703 + test ! -s conftest.err
9705 # Broken: success on invalid input.
9708 + $as_echo "$as_me: failed program was:" >&5
9709 +sed 's/^/| /' conftest.$ac_ext >&5
9711 # Passes both tests.
9716 rm -f conftest.err conftest.$ac_ext
9719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9720 rm -f conftest.err conftest.$ac_ext
9721 -if $ac_preproc_ok; then :
9722 +if $ac_preproc_ok; then
9726 @@ -7083,7 +6916,7 @@ fi
9730 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9731 +{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
9732 $as_echo "$CPP" >&6; }
9734 for ac_c_preproc_warn_flag in '' yes
9735 @@ -7094,7 +6927,11 @@ do
9736 # <limits.h> exists even on freestanding compilers.
9737 # On the NeXT, cc -E runs the code through the compiler's parser,
9738 # not just through cpp. "Syntax error" is here to catch this case.
9739 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 + cat >conftest.$ac_ext <<_ACEOF
9743 +cat confdefs.h >>conftest.$ac_ext
9744 +cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9747 # include <limits.h>
9748 @@ -7103,40 +6940,87 @@ do
9752 -if ac_fn_c_try_cpp "$LINENO"; then :
9754 +if { (ac_try="$ac_cpp conftest.$ac_ext"
9755 +case "(($ac_try" in
9756 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 + *) ac_try_echo=$ac_try;;
9759 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760 +$as_echo "$ac_try_echo") >&5
9761 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9763 + grep -v '^ *+' conftest.er1 >conftest.err
9764 + rm -f conftest.er1
9765 + cat conftest.err >&5
9766 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 + (exit $ac_status); } >/dev/null && {
9768 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9769 + test ! -s conftest.err
9773 + $as_echo "$as_me: failed program was:" >&5
9774 +sed 's/^/| /' conftest.$ac_ext >&5
9776 # Broken: fails on valid input.
9780 rm -f conftest.err conftest.$ac_ext
9782 # OK, works on sane cases. Now check whether nonexistent headers
9783 # can be detected and how.
9784 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 + cat >conftest.$ac_ext <<_ACEOF
9788 +cat confdefs.h >>conftest.$ac_ext
9789 +cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9791 #include <ac_nonexistent.h>
9793 -if ac_fn_c_try_cpp "$LINENO"; then :
9794 +if { (ac_try="$ac_cpp conftest.$ac_ext"
9795 +case "(($ac_try" in
9796 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 + *) ac_try_echo=$ac_try;;
9799 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9800 +$as_echo "$ac_try_echo") >&5
9801 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9803 + grep -v '^ *+' conftest.er1 >conftest.err
9804 + rm -f conftest.er1
9805 + cat conftest.err >&5
9806 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 + (exit $ac_status); } >/dev/null && {
9808 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9809 + test ! -s conftest.err
9811 # Broken: success on invalid input.
9814 + $as_echo "$as_me: failed program was:" >&5
9815 +sed 's/^/| /' conftest.$ac_ext >&5
9817 # Passes both tests.
9822 rm -f conftest.err conftest.$ac_ext
9825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9826 rm -f conftest.err conftest.$ac_ext
9827 -if $ac_preproc_ok; then :
9829 +if $ac_preproc_ok; then
9832 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9833 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9835 -as_fn_error "C preprocessor \"$CPP\" fails sanity check
9836 -See \`config.log' for more details." "$LINENO" 5; }
9837 +{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
9838 +See \`config.log' for more details." >&5
9839 +$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
9840 +See \`config.log' for more details." >&2;}
9841 + { (exit 1); exit 1; }; }; }
9845 @@ -7146,12 +7030,16 @@ ac_link='$CC -o conftest$ac_exeext $CFLA
9846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9849 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9850 +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9851 $as_echo_n "checking for ANSI C header files... " >&6; }
9852 -if test "${ac_cv_header_stdc+set}" = set; then :
9853 +if test "${ac_cv_header_stdc+set}" = set; then
9854 $as_echo_n "(cached) " >&6
9856 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 + cat >conftest.$ac_ext <<_ACEOF
9860 +cat confdefs.h >>conftest.$ac_ext
9861 +cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9865 @@ -7166,23 +7054,48 @@ main ()
9869 -if ac_fn_c_try_compile "$LINENO"; then :
9870 +rm -f conftest.$ac_objext
9871 +if { (ac_try="$ac_compile"
9872 +case "(($ac_try" in
9873 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 + *) ac_try_echo=$ac_try;;
9876 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9877 +$as_echo "$ac_try_echo") >&5
9878 + (eval "$ac_compile") 2>conftest.er1
9880 + grep -v '^ *+' conftest.er1 >conftest.err
9881 + rm -f conftest.er1
9882 + cat conftest.err >&5
9883 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 + (exit $ac_status); } && {
9885 + test -z "$ac_c_werror_flag" ||
9886 + test ! -s conftest.err
9887 + } && test -s conftest.$ac_objext; then
9888 ac_cv_header_stdc=yes
9890 - ac_cv_header_stdc=no
9891 + $as_echo "$as_me: failed program was:" >&5
9892 +sed 's/^/| /' conftest.$ac_ext >&5
9894 + ac_cv_header_stdc=no
9897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9899 if test $ac_cv_header_stdc = yes; then
9900 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9901 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 + cat >conftest.$ac_ext <<_ACEOF
9905 +cat confdefs.h >>conftest.$ac_ext
9906 +cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9912 - $EGREP "memchr" >/dev/null 2>&1; then :
9914 + $EGREP "memchr" >/dev/null 2>&1; then
9917 ac_cv_header_stdc=no
9919 @@ -7192,14 +7105,18 @@ fi
9921 if test $ac_cv_header_stdc = yes; then
9922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9923 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 + cat >conftest.$ac_ext <<_ACEOF
9927 +cat confdefs.h >>conftest.$ac_ext
9928 +cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9934 - $EGREP "free" >/dev/null 2>&1; then :
9936 + $EGREP "free" >/dev/null 2>&1; then
9939 ac_cv_header_stdc=no
9941 @@ -7209,10 +7126,14 @@ fi
9943 if test $ac_cv_header_stdc = yes; then
9944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9945 - if test "$cross_compiling" = yes; then :
9946 + if test "$cross_compiling" = yes; then
9949 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 + cat >conftest.$ac_ext <<_ACEOF
9953 +cat confdefs.h >>conftest.$ac_ext
9954 +cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9958 @@ -7239,34 +7160,118 @@ main ()
9962 -if ac_fn_c_try_run "$LINENO"; then :
9964 +rm -f conftest$ac_exeext
9965 +if { (ac_try="$ac_link"
9966 +case "(($ac_try" in
9967 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 + *) ac_try_echo=$ac_try;;
9970 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9971 +$as_echo "$ac_try_echo") >&5
9972 + (eval "$ac_link") 2>&5
9974 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9976 + { (case "(($ac_try" in
9977 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 + *) ac_try_echo=$ac_try;;
9980 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9981 +$as_echo "$ac_try_echo") >&5
9982 + (eval "$ac_try") 2>&5
9984 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 + (exit $ac_status); }; }; then
9988 - ac_cv_header_stdc=no
9989 + $as_echo "$as_me: program exited with status $ac_status" >&5
9990 +$as_echo "$as_me: failed program was:" >&5
9991 +sed 's/^/| /' conftest.$ac_ext >&5
9993 +( exit $ac_status )
9994 +ac_cv_header_stdc=no
9996 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9997 - conftest.$ac_objext conftest.beam conftest.$ac_ext
9998 +rm -rf conftest.dSYM
9999 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10005 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10006 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10007 $as_echo "$ac_cv_header_stdc" >&6; }
10008 if test $ac_cv_header_stdc = yes; then
10010 -$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10011 +cat >>confdefs.h <<\_ACEOF
10012 +#define STDC_HEADERS 1
10017 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10027 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10028 inttypes.h stdint.h unistd.h
10030 - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10031 -ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10033 -eval as_val=\$$as_ac_Header
10034 - if test "x$as_val" = x""yes; then :
10036 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10037 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10038 +$as_echo_n "checking for $ac_header... " >&6; }
10039 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10040 + $as_echo_n "(cached) " >&6
10042 + cat >conftest.$ac_ext <<_ACEOF
10045 +cat confdefs.h >>conftest.$ac_ext
10046 +cat >>conftest.$ac_ext <<_ACEOF
10047 +/* end confdefs.h. */
10048 +$ac_includes_default
10050 +#include <$ac_header>
10052 +rm -f conftest.$ac_objext
10053 +if { (ac_try="$ac_compile"
10054 +case "(($ac_try" in
10055 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 + *) ac_try_echo=$ac_try;;
10058 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10059 +$as_echo "$ac_try_echo") >&5
10060 + (eval "$ac_compile") 2>conftest.er1
10062 + grep -v '^ *+' conftest.er1 >conftest.err
10063 + rm -f conftest.er1
10064 + cat conftest.err >&5
10065 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 + (exit $ac_status); } && {
10067 + test -z "$ac_c_werror_flag" ||
10068 + test ! -s conftest.err
10069 + } && test -s conftest.$ac_objext; then
10070 + eval "$as_ac_Header=yes"
10072 + $as_echo "$as_me: failed program was:" >&5
10073 +sed 's/^/| /' conftest.$ac_ext >&5
10075 + eval "$as_ac_Header=no"
10078 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10080 +ac_res=`eval 'as_val=${'$as_ac_Header'}
10081 + $as_echo "$as_val"'`
10082 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10083 +$as_echo "$ac_res" >&6; }
10084 +as_val=`eval 'as_val=${'$as_ac_Header'}
10085 + $as_echo "$as_val"'`
10086 + if test "x$as_val" = x""yes; then
10087 cat >>confdefs.h <<_ACEOF
10088 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10090 @@ -7276,20 +7281,67 @@ fi
10095 for ac_header in dlfcn.h
10097 - ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10099 -if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10100 - cat >>confdefs.h <<_ACEOF
10101 -#define HAVE_DLFCN_H 1
10103 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10104 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10105 +$as_echo_n "checking for $ac_header... " >&6; }
10106 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10107 + $as_echo_n "(cached) " >&6
10109 + cat >conftest.$ac_ext <<_ACEOF
10112 +cat confdefs.h >>conftest.$ac_ext
10113 +cat >>conftest.$ac_ext <<_ACEOF
10114 +/* end confdefs.h. */
10115 +$ac_includes_default
10117 +#include <$ac_header>
10119 +rm -f conftest.$ac_objext
10120 +if { (ac_try="$ac_compile"
10121 +case "(($ac_try" in
10122 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 + *) ac_try_echo=$ac_try;;
10125 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10126 +$as_echo "$ac_try_echo") >&5
10127 + (eval "$ac_compile") 2>conftest.er1
10129 + grep -v '^ *+' conftest.er1 >conftest.err
10130 + rm -f conftest.er1
10131 + cat conftest.err >&5
10132 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 + (exit $ac_status); } && {
10134 + test -z "$ac_c_werror_flag" ||
10135 + test ! -s conftest.err
10136 + } && test -s conftest.$ac_objext; then
10137 + eval "$as_ac_Header=yes"
10139 + $as_echo "$as_me: failed program was:" >&5
10140 +sed 's/^/| /' conftest.$ac_ext >&5
10142 + eval "$as_ac_Header=no"
10146 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148 +ac_res=`eval 'as_val=${'$as_ac_Header'}
10149 + $as_echo "$as_val"'`
10150 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10151 +$as_echo "$ac_res" >&6; }
10152 +as_val=`eval 'as_val=${'$as_ac_Header'}
10153 + $as_echo "$as_val"'`
10154 + if test "x$as_val" = x""yes; then
10155 + cat >>confdefs.h <<_ACEOF
10156 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10165 @@ -7304,7 +7356,7 @@ done
10168 # Check whether --enable-shared was given.
10169 -if test "${enable_shared+set}" = set; then :
10170 +if test "${enable_shared+set}" = set; then
10171 enableval=$enable_shared; p=${PACKAGE-default}
10173 yes) enable_shared=yes ;;
10174 @@ -7335,7 +7387,7 @@ fi
10177 # Check whether --enable-static was given.
10178 -if test "${enable_static+set}" = set; then :
10179 +if test "${enable_static+set}" = set; then
10180 enableval=$enable_static; p=${PACKAGE-default}
10182 yes) enable_static=yes ;;
10183 @@ -7367,7 +7419,7 @@ fi
10186 # Check whether --with-pic was given.
10187 -if test "${with_pic+set}" = set; then :
10188 +if test "${with_pic+set}" = set; then
10189 withval=$with_pic; pic_mode="$withval"
10192 @@ -7383,7 +7435,7 @@ test -z "$pic_mode" && pic_mode=default
10195 # Check whether --enable-fast-install was given.
10196 -if test "${enable_fast_install+set}" = set; then :
10197 +if test "${enable_fast_install+set}" = set; then
10198 enableval=$enable_fast_install; p=${PACKAGE-default}
10200 yes) enable_fast_install=yes ;;
10201 @@ -7445,7 +7497,6 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtoo
10206 test -z "$LN_S" && LN_S="ln -s"
10209 @@ -7465,9 +7516,9 @@ if test -n "${ZSH_VERSION+set}" ; then
10210 setopt NO_GLOB_SUBST
10213 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10214 +{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
10215 $as_echo_n "checking for objdir... " >&6; }
10216 -if test "${lt_cv_objdir+set}" = set; then :
10217 +if test "${lt_cv_objdir+set}" = set; then
10218 $as_echo_n "(cached) " >&6
10220 rm -f .libs 2>/dev/null
10221 @@ -7480,7 +7531,7 @@ else
10223 rmdir .libs 2>/dev/null
10225 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10226 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
10227 $as_echo "$lt_cv_objdir" >&6; }
10228 objdir=$lt_cv_objdir
10230 @@ -7495,6 +7546,19 @@ _ACEOF
10249 # AIX sometimes has problems with the GCC collect2 program. For some
10250 @@ -7507,6 +7571,23 @@ aix3*)
10254 +# Sed substitution that helps us do robust quoting. It backslashifies
10255 +# metacharacters that are still active within double-quoted strings.
10256 +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10258 +# Same as above, but do not quote variable references.
10259 +double_quote_subst='s/\(["`\\]\)/\\\1/g'
10261 +# Sed substitution to delay expansion of an escaped shell variable in a
10262 +# double_quote_subst'ed string.
10263 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10265 +# Sed substitution to delay expansion of an escaped single quote.
10266 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10268 +# Sed substitution to avoid accidental globbing in evaled expressions
10269 +no_glob_subst='s/\*/\\\*/g'
10271 # Global variables:
10273 can_build_shared=yes
10274 @@ -7535,7 +7616,7 @@ for cc_temp in $compiler""; do
10278 -cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10279 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10282 # Only perform the check for file, if the check method requires it
10283 @@ -7543,9 +7624,9 @@ test -z "$MAGIC_CMD" && MAGIC_CMD=file
10284 case $deplibs_check_method in
10286 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10287 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10288 + { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10289 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10290 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10291 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10292 $as_echo_n "(cached) " >&6
10295 @@ -7596,10 +7677,10 @@ fi
10297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10298 if test -n "$MAGIC_CMD"; then
10299 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10300 + { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10301 $as_echo "$MAGIC_CMD" >&6; }
10303 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10304 + { $as_echo "$as_me:$LINENO: result: no" >&5
10305 $as_echo "no" >&6; }
10308 @@ -7609,9 +7690,9 @@ fi
10310 if test -z "$lt_cv_path_MAGIC_CMD"; then
10311 if test -n "$ac_tool_prefix"; then
10312 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10313 + { $as_echo "$as_me:$LINENO: checking for file" >&5
10314 $as_echo_n "checking for file... " >&6; }
10315 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10316 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10317 $as_echo_n "(cached) " >&6
10320 @@ -7662,10 +7743,10 @@ fi
10322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10323 if test -n "$MAGIC_CMD"; then
10324 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10325 + { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10326 $as_echo "$MAGIC_CMD" >&6; }
10328 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10329 + { $as_echo "$as_me:$LINENO: result: no" >&5
10330 $as_echo "no" >&6; }
10333 @@ -7735,25 +7816,16 @@ _lt_linker_boilerplate=`cat conftest.err
10338 -## There is no encapsulation within the following macros, do not change
10339 -## the running order or otherwise move them around unless you know exactly
10340 -## what you are doing...
10341 if test -n "$compiler"; then
10343 lt_prog_compiler_no_builtin_flag=
10345 if test "$GCC" = yes; then
10346 - case $cc_basename in
10348 - lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10350 - lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10352 + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10354 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10355 + { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10356 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10357 -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10358 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10359 $as_echo_n "(cached) " >&6
10361 lt_cv_prog_compiler_rtti_exceptions=no
10362 @@ -7769,15 +7841,15 @@ else
10363 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10364 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10365 -e 's:$: $lt_compiler_flag:'`
10366 - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10367 + (eval echo "\"\$as_me:7844: $lt_compile\"" >&5)
10368 (eval "$lt_compile" 2>conftest.err)
10370 cat conftest.err >&5
10371 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 + echo "$as_me:7848: \$? = $ac_status" >&5
10373 if (exit $ac_status) && test -s "$ac_outfile"; then
10374 # The compiler can only warn and ignore the option if not recognized
10375 # So say no if there are warnings other than the usual output.
10376 - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10377 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10380 lt_cv_prog_compiler_rtti_exceptions=yes
10381 @@ -7786,7 +7858,7 @@ else
10385 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10386 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10387 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10389 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10390 @@ -7806,7 +7878,7 @@ fi
10391 lt_prog_compiler_pic=
10392 lt_prog_compiler_static=
10394 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10395 +{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10396 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10398 if test "$GCC" = yes; then
10399 @@ -7855,12 +7927,6 @@ $as_echo_n "checking for $compiler optio
10400 lt_prog_compiler_pic='-fno-common'
10404 - # PIC is the default for Haiku.
10405 - # The "-static" flag exists, but is broken.
10406 - lt_prog_compiler_static=
10410 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10411 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10412 @@ -7903,13 +7969,6 @@ $as_echo_n "checking for $compiler optio
10413 lt_prog_compiler_pic='-fPIC'
10417 - case $cc_basename in
10418 - nvcc*) # Cuda Compiler Driver 2.2
10419 - lt_prog_compiler_wl='-Xlinker '
10420 - lt_prog_compiler_pic='-Xcompiler -fPIC'
10424 # PORTME Check for flag to pass linker flags through the system compiler.
10426 @@ -7951,7 +8010,7 @@ $as_echo_n "checking for $compiler optio
10427 lt_prog_compiler_static='-non_shared'
10430 - linux* | k*bsd*-gnu | kopensolaris*-gnu)
10431 + linux* | k*bsd*-gnu)
10432 case $cc_basename in
10433 # old Intel for x86_64 which still supported -KPIC.
10435 @@ -7972,7 +8031,7 @@ $as_echo_n "checking for $compiler optio
10436 lt_prog_compiler_pic='--shared'
10437 lt_prog_compiler_static='--static'
10439 - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10440 + pgcc* | pgf77* | pgf90* | pgf95*)
10441 # Portland Group compilers (*not* the Pentium gcc compiler,
10442 # which looks to be a dead project)
10443 lt_prog_compiler_wl='-Wl,'
10444 @@ -7984,26 +8043,26 @@ $as_echo_n "checking for $compiler optio
10445 # All Alpha code is PIC.
10446 lt_prog_compiler_static='-non_shared'
10448 - xl* | bgxl* | bgf* | mpixl*)
10449 - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10451 + # IBM XL C 8.0/Fortran 10.1 on PPC
10452 lt_prog_compiler_wl='-Wl,'
10453 lt_prog_compiler_pic='-qpic'
10454 lt_prog_compiler_static='-qstaticlink'
10457 case `$CC -V 2>&1 | sed 5q` in
10458 - *Sun\ F* | *Sun*Fortran*)
10459 - # Sun Fortran 8.3 passes all unrecognized flags to the linker
10460 - lt_prog_compiler_pic='-KPIC'
10461 - lt_prog_compiler_static='-Bstatic'
10462 - lt_prog_compiler_wl=''
10466 lt_prog_compiler_pic='-KPIC'
10467 lt_prog_compiler_static='-Bstatic'
10468 lt_prog_compiler_wl='-Wl,'
10471 + # Sun Fortran 8.3 passes all unrecognized flags to the linker
10472 + lt_prog_compiler_pic='-KPIC'
10473 + lt_prog_compiler_static='-Bstatic'
10474 + lt_prog_compiler_wl=''
10479 @@ -8091,7 +8150,7 @@ case $host_os in
10480 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10483 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10484 +{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10485 $as_echo "$lt_prog_compiler_pic" >&6; }
10488 @@ -8103,9 +8162,9 @@ $as_echo "$lt_prog_compiler_pic" >&6; }
10489 # Check to make sure the PIC flag actually works.
10491 if test -n "$lt_prog_compiler_pic"; then
10492 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10493 + { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10494 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10495 -if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10496 +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
10497 $as_echo_n "(cached) " >&6
10499 lt_cv_prog_compiler_pic_works=no
10500 @@ -8121,15 +8180,15 @@ else
10501 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10502 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10503 -e 's:$: $lt_compiler_flag:'`
10504 - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10505 + (eval echo "\"\$as_me:8183: $lt_compile\"" >&5)
10506 (eval "$lt_compile" 2>conftest.err)
10508 cat conftest.err >&5
10509 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 + echo "$as_me:8187: \$? = $ac_status" >&5
10511 if (exit $ac_status) && test -s "$ac_outfile"; then
10512 # The compiler can only warn and ignore the option if not recognized
10513 # So say no if there are warnings other than the usual output.
10514 - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10515 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10518 lt_cv_prog_compiler_pic_works=yes
10519 @@ -8138,7 +8197,7 @@ else
10523 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10524 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
10525 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10527 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10528 @@ -8162,9 +8221,9 @@ fi
10529 # Check to make sure the static flag actually works.
10531 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10532 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10533 +{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10534 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10535 -if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10536 +if test "${lt_cv_prog_compiler_static_works+set}" = set; then
10537 $as_echo_n "(cached) " >&6
10539 lt_cv_prog_compiler_static_works=no
10540 @@ -8177,7 +8236,7 @@ else
10541 if test -s conftest.err; then
10542 # Append any errors to the config.log.
10543 cat conftest.err 1>&5
10544 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10545 + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10547 if diff conftest.exp conftest.er2 >/dev/null; then
10548 lt_cv_prog_compiler_static_works=yes
10549 @@ -8190,7 +8249,7 @@ else
10550 LDFLAGS="$save_LDFLAGS"
10553 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10554 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
10555 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10557 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10558 @@ -8205,9 +8264,9 @@ fi
10562 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10563 + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10564 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10565 -if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10566 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10567 $as_echo_n "(cached) " >&6
10569 lt_cv_prog_compiler_c_o=no
10570 @@ -8226,16 +8285,16 @@ else
10571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10573 -e 's:$: $lt_compiler_flag:'`
10574 - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10575 + (eval echo "\"\$as_me:8288: $lt_compile\"" >&5)
10576 (eval "$lt_compile" 2>out/conftest.err)
10578 cat out/conftest.err >&5
10579 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 + echo "$as_me:8292: \$? = $ac_status" >&5
10581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10583 # The compiler can only warn and ignore the option if not recognized
10584 # So say no if there are warnings
10585 - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10586 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10587 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10588 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10589 lt_cv_prog_compiler_c_o=yes
10590 @@ -8252,7 +8311,7 @@ else
10594 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10595 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10596 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10599 @@ -8260,9 +8319,9 @@ $as_echo "$lt_cv_prog_compiler_c_o" >&6;
10603 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10604 + { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10605 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10606 -if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10607 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10608 $as_echo_n "(cached) " >&6
10610 lt_cv_prog_compiler_c_o=no
10611 @@ -8281,16 +8340,16 @@ else
10612 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10613 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10614 -e 's:$: $lt_compiler_flag:'`
10615 - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10616 + (eval echo "\"\$as_me:8343: $lt_compile\"" >&5)
10617 (eval "$lt_compile" 2>out/conftest.err)
10619 cat out/conftest.err >&5
10620 - echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 + echo "$as_me:8347: \$? = $ac_status" >&5
10622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10624 # The compiler can only warn and ignore the option if not recognized
10625 # So say no if there are warnings
10626 - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10627 + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10630 lt_cv_prog_compiler_c_o=yes
10631 @@ -8307,7 +8366,7 @@ else
10635 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10636 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10637 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10640 @@ -8316,7 +8375,7 @@ $as_echo "$lt_cv_prog_compiler_c_o" >&6;
10641 hard_links="nottested"
10642 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10643 # do not overwrite the value of need_locks provided by the user
10644 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10645 + { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10646 $as_echo_n "checking if we can lock with hard links... " >&6; }
10649 @@ -8324,10 +8383,10 @@ $as_echo_n "checking if we can lock with
10651 ln conftest.a conftest.b 2>&5 || hard_links=no
10652 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10653 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10654 + { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10655 $as_echo "$hard_links" >&6; }
10656 if test "$hard_links" = no; then
10657 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10658 + { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10659 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10662 @@ -8340,7 +8399,7 @@ fi
10666 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10667 + { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10668 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10671 @@ -8403,33 +8462,7 @@ $as_echo_n "checking whether the $compil
10676 - # On some targets, GNU ld is compatible enough with the native linker
10677 - # that we're better off using the native interface for both.
10678 - lt_use_gnu_ld_interface=no
10679 if test "$with_gnu_ld" = yes; then
10682 - # The AIX port of GNU ld has always aspired to compatibility
10683 - # with the native linker. However, as the warning in the GNU ld
10684 - # block says, versions before 2.19.5* couldn't really create working
10685 - # shared libraries, regardless of the interface used.
10686 - case `$LD -v 2>&1` in
10687 - *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10688 - *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10689 - *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10691 - lt_use_gnu_ld_interface=yes
10696 - lt_use_gnu_ld_interface=yes
10701 - if test "$lt_use_gnu_ld_interface" = yes; then
10702 # If archive_cmds runs LD, not CC, wlarc should be empty
10705 @@ -8447,7 +8480,6 @@ $as_echo_n "checking whether the $compil
10707 supports_anon_versioning=no
10708 case `$LD -v 2>&1` in
10709 - *GNU\ gold*) supports_anon_versioning=yes ;;
10710 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10711 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10712 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10713 @@ -8463,12 +8495,11 @@ $as_echo_n "checking whether the $compil
10717 -*** Warning: the GNU linker, at least up to release 2.19, is reported
10718 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10719 *** to be unable to reliably create shared libraries on AIX.
10720 *** Therefore, libtool is disabling shared libraries support. If you
10721 -*** really care for shared libraries, you may want to install binutils
10722 -*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10723 -*** You will then need to restart the configuration process.
10724 +*** really care for shared libraries, you may want to modify your PATH
10725 +*** so that a non-GNU linker is found, and then restart.
10729 @@ -8504,7 +8535,6 @@ _LT_EOF
10730 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10731 # as there is no search path for DLLs.
10732 hardcode_libdir_flag_spec='-L$libdir'
10733 - export_dynamic_flag_spec='${wl}--export-all-symbols'
10734 allow_undefined_flag=unsupported
10735 always_export_symbols=no
10736 enable_shared_with_static_runtimes=yes
10737 @@ -8526,11 +8556,6 @@ _LT_EOF
10742 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10743 - link_all_deplibs=yes
10748 hardcode_shlibpath_var=no
10749 @@ -8546,7 +8571,7 @@ _LT_EOF
10750 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10753 - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10754 + gnu* | linux* | tpf* | k*bsd*-gnu)
10756 if test "$host_os" = linux-dietlibc; then
10757 case $cc_basename in
10758 @@ -8560,12 +8585,11 @@ _LT_EOF
10759 tmp_sharedflag='-shared'
10760 case $cc_basename,$host_cpu in
10761 pgcc*) # Portland Group C compiler
10762 - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10763 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10764 tmp_addflag=' $pic_flag'
10766 - pgf77* | pgf90* | pgf95* | pgfortran*)
10767 - # Portland Group f77 and f90 compilers
10768 - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10769 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10770 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10771 tmp_addflag=' $pic_flag -Mnomain' ;;
10772 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10773 tmp_addflag=' -i_dynamic' ;;
10774 @@ -8576,17 +8600,13 @@ _LT_EOF
10775 lf95*) # Lahey Fortran 8.1
10776 whole_archive_flag_spec=
10777 tmp_sharedflag='--shared' ;;
10778 - xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10779 + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10780 tmp_sharedflag='-qmkshrobj'
10782 - nvcc*) # Cuda Compiler Driver 2.2
10783 - whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10784 - compiler_needs_object=yes
10787 case `$CC -V 2>&1 | sed 5q` in
10788 *Sun\ C*) # Sun C 5.9
10789 - whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10790 + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10791 compiler_needs_object=yes
10792 tmp_sharedflag='-G' ;;
10793 *Sun\ F*) # Sun Fortran 8.3
10794 @@ -8602,7 +8622,7 @@ _LT_EOF
10797 case $cc_basename in
10798 - xlf* | bgf* | bgxlf* | mpixlf*)
10800 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10801 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10802 hardcode_libdir_flag_spec=
10803 @@ -8733,10 +8753,8 @@ _LT_EOF
10805 # If we're using GNU nm, then we don't want the "-C" option.
10806 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10807 - # Also, AIX nm treats weak defined symbols like other global
10808 - # defined symbols, whereas GNU nm marks them as "W".
10809 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10810 - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10811 + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10813 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10815 @@ -8823,7 +8841,11 @@ _LT_EOF
10816 allow_undefined_flag='-berok'
10817 # Determine the default libpath from the value encoded in an
10818 # empty executable.
10819 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820 + cat >conftest.$ac_ext <<_ACEOF
10823 +cat confdefs.h >>conftest.$ac_ext
10824 +cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10828 @@ -8834,10 +8856,30 @@ main ()
10832 -if ac_fn_c_try_link "$LINENO"; then :
10834 -lt_aix_libpath_sed='
10835 - /Import File Strings/,/^$/ {
10836 +rm -f conftest.$ac_objext conftest$ac_exeext
10837 +if { (ac_try="$ac_link"
10838 +case "(($ac_try" in
10839 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 + *) ac_try_echo=$ac_try;;
10842 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10843 +$as_echo "$ac_try_echo") >&5
10844 + (eval "$ac_link") 2>conftest.er1
10846 + grep -v '^ *+' conftest.er1 >conftest.err
10847 + rm -f conftest.er1
10848 + cat conftest.err >&5
10849 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 + (exit $ac_status); } && {
10851 + test -z "$ac_c_werror_flag" ||
10852 + test ! -s conftest.err
10853 + } && test -s conftest$ac_exeext && {
10854 + test "$cross_compiling" = yes ||
10855 + $as_test_x conftest$ac_exeext
10858 +lt_aix_libpath_sed='
10859 + /Import File Strings/,/^$/ {
10863 @@ -8848,13 +8890,20 @@ aix_libpath=`dump -H conftest$ac_exeext
10864 if test -z "$aix_libpath"; then
10865 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10868 + $as_echo "$as_me: failed program was:" >&5
10869 +sed 's/^/| /' conftest.$ac_ext >&5
10873 -rm -f core conftest.err conftest.$ac_objext \
10874 - conftest$ac_exeext conftest.$ac_ext
10876 +rm -rf conftest.dSYM
10877 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10878 + conftest$ac_exeext conftest.$ac_ext
10879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10881 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10882 - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10883 + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10885 if test "$host_cpu" = ia64; then
10886 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10887 @@ -8863,7 +8912,11 @@ if test -z "$aix_libpath"; then aix_libp
10889 # Determine the default libpath from the value encoded in an
10890 # empty executable.
10891 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 + cat >conftest.$ac_ext <<_ACEOF
10895 +cat confdefs.h >>conftest.$ac_ext
10896 +cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h. */
10900 @@ -8874,7 +8927,27 @@ main ()
10904 -if ac_fn_c_try_link "$LINENO"; then :
10905 +rm -f conftest.$ac_objext conftest$ac_exeext
10906 +if { (ac_try="$ac_link"
10907 +case "(($ac_try" in
10908 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 + *) ac_try_echo=$ac_try;;
10911 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10912 +$as_echo "$ac_try_echo") >&5
10913 + (eval "$ac_link") 2>conftest.er1
10915 + grep -v '^ *+' conftest.er1 >conftest.err
10916 + rm -f conftest.er1
10917 + cat conftest.err >&5
10918 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 + (exit $ac_status); } && {
10920 + test -z "$ac_c_werror_flag" ||
10921 + test ! -s conftest.err
10922 + } && test -s conftest$ac_exeext && {
10923 + test "$cross_compiling" = yes ||
10924 + $as_test_x conftest$ac_exeext
10927 lt_aix_libpath_sed='
10928 /Import File Strings/,/^$/ {
10929 @@ -8888,9 +8961,16 @@ aix_libpath=`dump -H conftest$ac_exeext
10930 if test -z "$aix_libpath"; then
10931 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10934 + $as_echo "$as_me: failed program was:" >&5
10935 +sed 's/^/| /' conftest.$ac_ext >&5
10939 -rm -f core conftest.err conftest.$ac_objext \
10940 - conftest$ac_exeext conftest.$ac_ext
10942 +rm -rf conftest.dSYM
10943 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10944 + conftest$ac_exeext conftest.$ac_ext
10945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10947 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10948 @@ -8898,13 +8978,8 @@ if test -z "$aix_libpath"; then aix_libp
10949 # -berok will link without error, but may produce a broken library.
10950 no_undefined_flag=' ${wl}-bernotok'
10951 allow_undefined_flag=' ${wl}-berok'
10952 - if test "$with_gnu_ld" = yes; then
10953 - # We only use this code for GNU lds that support --whole-archive.
10954 - whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10956 - # Exported symbols can be pulled into shared objects from archives
10957 - whole_archive_flag_spec='$convenience'
10959 + # Exported symbols can be pulled into shared objects from archives
10960 + whole_archive_flag_spec='$convenience'
10961 archive_cmds_need_lc=yes
10962 # This is similar to how AIX traditionally builds its shared libraries.
10963 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10964 @@ -8943,7 +9018,7 @@ if test -z "$aix_libpath"; then aix_libp
10965 # Tell ltmain to make .dll files, not .so files.
10967 # FIXME: Setting linknames here is a bad hack.
10968 - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10969 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10970 # The linker will automatically build a .lib file if we build a DLL.
10971 old_archive_from_new_cmds='true'
10972 # FIXME: Should let the user specify the lib program.
10973 @@ -8959,11 +9034,7 @@ if test -z "$aix_libpath"; then aix_libp
10975 hardcode_automatic=yes
10976 hardcode_shlibpath_var=unsupported
10977 - if test "$lt_cv_ld_force_load" = "yes"; then
10978 - whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10980 - whole_archive_flag_spec=''
10982 + whole_archive_flag_spec=''
10983 link_all_deplibs=yes
10984 allow_undefined_flag="$_lt_dar_allow_undefined"
10985 case $cc_basename in
10986 @@ -8971,7 +9042,7 @@ if test -z "$aix_libpath"; then aix_libp
10987 *) _lt_dar_can_shared=$GCC ;;
10989 if test "$_lt_dar_can_shared" = "yes"; then
10990 - output_verbose_link_cmd=func_echo_all
10991 + output_verbose_link_cmd=echo
10992 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10993 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10994 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10995 @@ -9037,7 +9108,7 @@ if test -z "$aix_libpath"; then aix_libp
10999 - if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11000 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11001 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11004 @@ -9056,7 +9127,7 @@ if test -z "$aix_libpath"; then aix_libp
11008 - if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11009 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11012 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11013 @@ -9077,46 +9148,7 @@ if test -z "$aix_libpath"; then aix_libp
11014 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11018 - # Older versions of the 11.00 compiler do not understand -b yet
11019 - # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11020 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11021 -$as_echo_n "checking if $CC understands -b... " >&6; }
11022 -if test "${lt_cv_prog_compiler__b+set}" = set; then :
11023 - $as_echo_n "(cached) " >&6
11025 - lt_cv_prog_compiler__b=no
11026 - save_LDFLAGS="$LDFLAGS"
11027 - LDFLAGS="$LDFLAGS -b"
11028 - echo "$lt_simple_link_test_code" > conftest.$ac_ext
11029 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11030 - # The linker can only warn and ignore the option if not recognized
11031 - # So say no if there are warnings
11032 - if test -s conftest.err; then
11033 - # Append any errors to the config.log.
11034 - cat conftest.err 1>&5
11035 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11036 - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11037 - if diff conftest.exp conftest.er2 >/dev/null; then
11038 - lt_cv_prog_compiler__b=yes
11041 - lt_cv_prog_compiler__b=yes
11045 - LDFLAGS="$save_LDFLAGS"
11048 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11049 -$as_echo "$lt_cv_prog_compiler__b" >&6; }
11051 -if test x"$lt_cv_prog_compiler__b" = xyes; then
11052 - archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11054 - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11057 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11061 @@ -9144,26 +9176,52 @@ fi
11063 irix5* | irix6* | nonstopux*)
11064 if test "$GCC" = yes; then
11065 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11066 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11067 # Try to use the -exported_symbol ld option, if it does not
11068 # work, assume that -exports_file does not work either and
11069 # implicitly export all symbols.
11070 save_LDFLAGS="$LDFLAGS"
11071 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11072 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 -/* end confdefs.h. */
11074 + cat >conftest.$ac_ext <<_ACEOF
11077 -if ac_fn_c_try_link "$LINENO"; then :
11078 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11079 +rm -f conftest.$ac_objext conftest$ac_exeext
11080 +if { (ac_try="$ac_link"
11081 +case "(($ac_try" in
11082 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083 + *) ac_try_echo=$ac_try;;
11085 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11086 +$as_echo "$ac_try_echo") >&5
11087 + (eval "$ac_link") 2>conftest.er1
11089 + grep -v '^ *+' conftest.er1 >conftest.err
11090 + rm -f conftest.er1
11091 + cat conftest.err >&5
11092 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 + (exit $ac_status); } && {
11094 + test -z "$ac_c_werror_flag" ||
11095 + test ! -s conftest.err
11096 + } && test -s conftest$ac_exeext && {
11097 + test "$cross_compiling" = yes ||
11098 + $as_test_x conftest$ac_exeext
11100 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11103 + $as_echo "$as_me: failed program was:" >&5
11104 +sed 's/^/| /' conftest.$ac_ext >&5
11108 -rm -f core conftest.err conftest.$ac_objext \
11109 - conftest$ac_exeext conftest.$ac_ext
11111 +rm -rf conftest.dSYM
11112 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11113 + conftest$ac_exeext conftest.$ac_ext
11114 LDFLAGS="$save_LDFLAGS"
11116 - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11117 - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11118 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11119 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11121 archive_cmds_need_lc='no'
11122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11123 @@ -9225,17 +9283,17 @@ rm -f core conftest.err conftest.$ac_obj
11124 hardcode_libdir_flag_spec='-L$libdir'
11125 hardcode_minus_L=yes
11126 allow_undefined_flag=unsupported
11127 - archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11128 + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11129 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11133 if test "$GCC" = yes; then
11134 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11135 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11136 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11138 allow_undefined_flag=' -expect_unresolved \*'
11139 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11140 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11142 archive_cmds_need_lc='no'
11143 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11144 @@ -9245,13 +9303,13 @@ rm -f core conftest.err conftest.$ac_obj
11145 osf4* | osf5*) # as osf3* with the addition of -msym flag
11146 if test "$GCC" = yes; then
11147 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11148 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11149 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11150 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11152 allow_undefined_flag=' -expect_unresolved \*'
11153 - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11154 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11155 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11156 - $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11157 + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11159 # Both c and cxx compiler support -rpath directly
11160 hardcode_libdir_flag_spec='-rpath $libdir'
11161 @@ -9415,7 +9473,7 @@ rm -f core conftest.err conftest.$ac_obj
11165 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11166 +{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11167 $as_echo "$ld_shlibs" >&6; }
11168 test "$ld_shlibs" = no && can_build_shared=no
11170 @@ -9452,52 +9510,46 @@ x|xyes)
11171 # Test whether the compiler implicitly links with -lc since on some
11172 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11173 # to ld, don't add -lc before -lgcc.
11174 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11175 + { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11176 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11177 -if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11178 - $as_echo_n "(cached) " >&6
11181 - echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11183 + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11185 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11186 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>&5
11189 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11190 - test $ac_status = 0; } 2>conftest.err; then
11193 - libobjs=conftest.$ac_objext
11195 - wl=$lt_prog_compiler_wl
11196 - pic_flag=$lt_prog_compiler_pic
11197 - compiler_flags=-v
11202 - lt_save_allow_undefined_flag=$allow_undefined_flag
11203 - allow_undefined_flag=
11204 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11205 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 + (exit $ac_status); } 2>conftest.err; then
11209 + libobjs=conftest.$ac_objext
11211 + wl=$lt_prog_compiler_wl
11212 + pic_flag=$lt_prog_compiler_pic
11213 + compiler_flags=-v
11218 + lt_save_allow_undefined_flag=$allow_undefined_flag
11219 + allow_undefined_flag=
11220 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11221 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11223 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11224 - test $ac_status = 0; }
11226 - lt_cv_archive_cmds_need_lc=no
11228 - lt_cv_archive_cmds_need_lc=yes
11230 - allow_undefined_flag=$lt_save_allow_undefined_flag
11232 - cat conftest.err 1>&5
11237 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11238 -$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11239 - archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11240 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 + (exit $ac_status); }
11243 + archive_cmds_need_lc=no
11245 + archive_cmds_need_lc=yes
11247 + allow_undefined_flag=$lt_save_allow_undefined_flag
11249 + cat conftest.err 1>&5
11252 + { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11253 +$as_echo "$archive_cmds_need_lc" >&6; }
11257 @@ -9660,7 +9712,7 @@ esac
11261 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11262 + { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11263 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11265 if test "$GCC" = yes; then
11266 @@ -9668,23 +9720,16 @@ if test "$GCC" = yes; then
11267 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11268 *) lt_awk_arg="/^libraries:/" ;;
11271 - mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11272 - *) lt_sed_strip_eq="s,=/,/,g" ;;
11274 - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11275 - case $lt_search_path_spec in
11277 + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11278 + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11279 # if the path contains ";" then we assume it to be the separator
11280 # otherwise default to the standard path separator (i.e. ":") - it is
11281 # assumed that no part of a normal pathname contains ";" but that should
11282 # okay in the real world where ";" in dirpaths is itself problematic.
11283 - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11286 - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11289 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11291 + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11293 # Ok, now we have the path, separated by spaces, we can step through it
11294 # and add multilib dir if necessary.
11295 lt_tmp_lt_search_path_spec=
11296 @@ -9697,7 +9742,7 @@ if test "$GCC" = yes; then
11297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11300 - lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11301 + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11302 BEGIN {RS=" "; FS="/|\n";} {
11305 @@ -9717,13 +9762,7 @@ BEGIN {RS=" "; FS="/|\n";} {
11306 if (lt_foo != "") { lt_freq[lt_foo]++; }
11307 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11309 - # AWK program above erroneously prepends '/' to C:/dos/paths
11310 - # for these hosts.
11312 - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11313 - $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11315 - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11316 + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11318 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11320 @@ -9811,7 +9850,7 @@ amigaos*)
11322 library_names_spec='$libname.ixlibrary $libname.a'
11323 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11324 - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11325 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11329 @@ -9864,12 +9903,23 @@ cygwin* | mingw* | pw32* | cegcc*)
11331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11334 - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11335 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11338 # MinGW DLLs use traditional 'lib' prefix
11339 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11340 + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11341 + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11342 + # It is most probably a Windows format PATH printed by
11343 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
11344 + # path with ; separators, and with drive letters. We can handle the
11345 + # drive letters (cygwin fileutils understands them), so leave them,
11346 + # especially as we might pass files found there to a mingw objdump,
11347 + # which wouldn't understand a cygwinified path. Ahh.
11348 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11350 + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11354 # pw32 DLLs use 'pw' prefix rather than 'lib'
11355 @@ -9969,19 +10019,6 @@ gnu*)
11356 hardcode_into_libs=yes
11360 - version_type=linux
11361 - need_lib_prefix=no
11363 - dynamic_linker="$host_os runtime_loader"
11364 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11365 - soname_spec='${libname}${release}${shared_ext}$major'
11366 - shlibpath_var=LIBRARY_PATH
11367 - shlibpath_overrides_runpath=yes
11368 - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11369 - hardcode_into_libs=yes
11372 hpux9* | hpux10* | hpux11*)
11373 # Give a soname corresponding to the major version so that dld.sl refuses to
11374 # link against other versions.
11375 @@ -10024,10 +10061,8 @@ hpux9* | hpux10* | hpux11*)
11376 soname_spec='${libname}${release}${shared_ext}$major'
11379 - # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11380 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
11381 postinstall_cmds='chmod 555 $lib'
11382 - # or fails outright, so override atomically:
11383 - install_override_mode=555
11387 @@ -10085,7 +10120,7 @@ linux*oldld* | linux*aout* | linux*coff*
11390 # This must be Linux ELF.
11391 -linux* | k*bsd*-gnu | kopensolaris*-gnu)
11392 +linux* | k*bsd*-gnu)
11396 @@ -10094,17 +10129,16 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu)
11397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=no
11401 # Some binutils ld are patched to set DT_RUNPATH
11402 - if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11403 - $as_echo_n "(cached) " >&6
11405 - lt_cv_shlibpath_overrides_runpath=no
11406 - save_LDFLAGS=$LDFLAGS
11407 - save_libdir=$libdir
11408 - eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11409 - LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11410 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 + save_LDFLAGS=$LDFLAGS
11412 + save_libdir=$libdir
11413 + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11414 + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11415 + cat >conftest.$ac_ext <<_ACEOF
11418 +cat confdefs.h >>conftest.$ac_ext
11419 +cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11423 @@ -10115,29 +10149,56 @@ main ()
11427 -if ac_fn_c_try_link "$LINENO"; then :
11428 - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11429 - lt_cv_shlibpath_overrides_runpath=yes
11431 +rm -f conftest.$ac_objext conftest$ac_exeext
11432 +if { (ac_try="$ac_link"
11433 +case "(($ac_try" in
11434 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 + *) ac_try_echo=$ac_try;;
11437 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11438 +$as_echo "$ac_try_echo") >&5
11439 + (eval "$ac_link") 2>conftest.er1
11441 + grep -v '^ *+' conftest.er1 >conftest.err
11442 + rm -f conftest.er1
11443 + cat conftest.err >&5
11444 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 + (exit $ac_status); } && {
11446 + test -z "$ac_c_werror_flag" ||
11447 + test ! -s conftest.err
11448 + } && test -s conftest$ac_exeext && {
11449 + test "$cross_compiling" = yes ||
11450 + $as_test_x conftest$ac_exeext
11452 + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11453 + shlibpath_overrides_runpath=yes
11455 -rm -f core conftest.err conftest.$ac_objext \
11456 - conftest$ac_exeext conftest.$ac_ext
11457 - LDFLAGS=$save_LDFLAGS
11458 - libdir=$save_libdir
11461 + $as_echo "$as_me: failed program was:" >&5
11462 +sed 's/^/| /' conftest.$ac_ext >&5
11467 - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11468 +rm -rf conftest.dSYM
11469 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11470 + conftest$ac_exeext conftest.$ac_ext
11471 + LDFLAGS=$save_LDFLAGS
11472 + libdir=$save_libdir
11474 # This implies no fast_install, which is unacceptable.
11475 # Some rework will be needed to allow for fast_install
11476 # before this can be enabled.
11477 hardcode_into_libs=yes
11479 + # Add ABI-specific directories to the system library path.
11480 + sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11482 # Append ld.so.conf contents to the search path
11483 if test -f /etc/ld.so.conf; then
11484 - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11485 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11486 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11487 + sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11490 # We used to test for /lib/ld.so.1 and disable shared libraries on
11491 @@ -10337,7 +10398,7 @@ uts4*)
11495 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11496 +{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11497 $as_echo "$dynamic_linker" >&6; }
11498 test "$dynamic_linker" = no && can_build_shared=no
11500 @@ -10439,12 +10500,7 @@ fi
11509 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11510 + { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11511 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11513 if test -n "$hardcode_libdir_flag_spec" ||
11514 @@ -10469,7 +10525,7 @@ else
11516 hardcode_action=unsupported
11518 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11519 +{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11520 $as_echo "$hardcode_action" >&6; }
11522 if test "$hardcode_action" = relink ||
11523 @@ -10514,14 +10570,18 @@ else
11526 # if libdl is installed we need to link against it
11527 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11528 + { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11529 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11530 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11531 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11532 $as_echo_n "(cached) " >&6
11534 ac_check_lib_save_LIBS=$LIBS
11536 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 +cat >conftest.$ac_ext <<_ACEOF
11540 +cat confdefs.h >>conftest.$ac_ext
11541 +cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11544 /* Override any GCC internal prototype to avoid an error.
11545 @@ -10539,18 +10599,43 @@ return dlopen ();
11549 -if ac_fn_c_try_link "$LINENO"; then :
11550 +rm -f conftest.$ac_objext conftest$ac_exeext
11551 +if { (ac_try="$ac_link"
11552 +case "(($ac_try" in
11553 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11554 + *) ac_try_echo=$ac_try;;
11556 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11557 +$as_echo "$ac_try_echo") >&5
11558 + (eval "$ac_link") 2>conftest.er1
11560 + grep -v '^ *+' conftest.er1 >conftest.err
11561 + rm -f conftest.er1
11562 + cat conftest.err >&5
11563 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 + (exit $ac_status); } && {
11565 + test -z "$ac_c_werror_flag" ||
11566 + test ! -s conftest.err
11567 + } && test -s conftest$ac_exeext && {
11568 + test "$cross_compiling" = yes ||
11569 + $as_test_x conftest$ac_exeext
11571 ac_cv_lib_dl_dlopen=yes
11573 - ac_cv_lib_dl_dlopen=no
11574 + $as_echo "$as_me: failed program was:" >&5
11575 +sed 's/^/| /' conftest.$ac_ext >&5
11577 + ac_cv_lib_dl_dlopen=no
11579 -rm -f core conftest.err conftest.$ac_objext \
11580 - conftest$ac_exeext conftest.$ac_ext
11582 +rm -rf conftest.dSYM
11583 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11584 + conftest$ac_exeext conftest.$ac_ext
11585 LIBS=$ac_check_lib_save_LIBS
11587 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11588 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11589 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11590 -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11591 +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11592 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11595 @@ -10563,19 +10648,33 @@ fi
11599 - ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11600 -if test "x$ac_cv_func_shl_load" = x""yes; then :
11601 - lt_cv_dlopen="shl_load"
11603 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11604 -$as_echo_n "checking for shl_load in -ldld... " >&6; }
11605 -if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11606 + { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11607 +$as_echo_n "checking for shl_load... " >&6; }
11608 +if test "${ac_cv_func_shl_load+set}" = set; then
11609 $as_echo_n "(cached) " >&6
11611 - ac_check_lib_save_LIBS=$LIBS
11612 -LIBS="-ldld $LIBS"
11613 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 + cat >conftest.$ac_ext <<_ACEOF
11617 +cat confdefs.h >>conftest.$ac_ext
11618 +cat >>conftest.$ac_ext <<_ACEOF
11619 /* end confdefs.h. */
11620 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11621 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
11622 +#define shl_load innocuous_shl_load
11624 +/* System header to define __stub macros and hopefully few prototypes,
11625 + which can conflict with char shl_load (); below.
11626 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11627 + <limits.h> exists even on freestanding compilers. */
11630 +# include <limits.h>
11632 +# include <assert.h>
11637 /* Override any GCC internal prototype to avoid an error.
11638 Use char because int might match the return type of a GCC
11639 @@ -10584,6 +10683,13 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
11643 +/* The GNU C library defines this for functions which it implements
11644 + to always fail with ENOSYS. Some functions are actually named
11645 + something starting with __ and the normal name is an alias. */
11646 +#if defined __stub_shl_load || defined __stub___shl_load
11653 @@ -10592,32 +10698,56 @@ return shl_load ();
11657 -if ac_fn_c_try_link "$LINENO"; then :
11658 - ac_cv_lib_dld_shl_load=yes
11659 +rm -f conftest.$ac_objext conftest$ac_exeext
11660 +if { (ac_try="$ac_link"
11661 +case "(($ac_try" in
11662 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663 + *) ac_try_echo=$ac_try;;
11665 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11666 +$as_echo "$ac_try_echo") >&5
11667 + (eval "$ac_link") 2>conftest.er1
11669 + grep -v '^ *+' conftest.er1 >conftest.err
11670 + rm -f conftest.er1
11671 + cat conftest.err >&5
11672 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 + (exit $ac_status); } && {
11674 + test -z "$ac_c_werror_flag" ||
11675 + test ! -s conftest.err
11676 + } && test -s conftest$ac_exeext && {
11677 + test "$cross_compiling" = yes ||
11678 + $as_test_x conftest$ac_exeext
11680 + ac_cv_func_shl_load=yes
11682 - ac_cv_lib_dld_shl_load=no
11683 + $as_echo "$as_me: failed program was:" >&5
11684 +sed 's/^/| /' conftest.$ac_ext >&5
11686 + ac_cv_func_shl_load=no
11688 -rm -f core conftest.err conftest.$ac_objext \
11689 - conftest$ac_exeext conftest.$ac_ext
11690 -LIBS=$ac_check_lib_save_LIBS
11692 +rm -rf conftest.dSYM
11693 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11694 + conftest$ac_exeext conftest.$ac_ext
11696 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11697 -$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11698 -if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11699 - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11701 - ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11702 -if test "x$ac_cv_func_dlopen" = x""yes; then :
11703 - lt_cv_dlopen="dlopen"
11704 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11705 +$as_echo "$ac_cv_func_shl_load" >&6; }
11706 +if test "x$ac_cv_func_shl_load" = x""yes; then
11707 + lt_cv_dlopen="shl_load"
11709 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11710 -$as_echo_n "checking for dlopen in -ldl... " >&6; }
11711 -if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11712 + { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11713 +$as_echo_n "checking for shl_load in -ldld... " >&6; }
11714 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11715 $as_echo_n "(cached) " >&6
11717 ac_check_lib_save_LIBS=$LIBS
11719 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 +LIBS="-ldld $LIBS"
11721 +cat >conftest.$ac_ext <<_ACEOF
11724 +cat confdefs.h >>conftest.$ac_ext
11725 +cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11728 /* Override any GCC internal prototype to avoid an error.
11729 @@ -10626,76 +10756,290 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_
11739 +return shl_load ();
11744 -if ac_fn_c_try_link "$LINENO"; then :
11745 - ac_cv_lib_dl_dlopen=yes
11746 +rm -f conftest.$ac_objext conftest$ac_exeext
11747 +if { (ac_try="$ac_link"
11748 +case "(($ac_try" in
11749 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11750 + *) ac_try_echo=$ac_try;;
11752 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11753 +$as_echo "$ac_try_echo") >&5
11754 + (eval "$ac_link") 2>conftest.er1
11756 + grep -v '^ *+' conftest.er1 >conftest.err
11757 + rm -f conftest.er1
11758 + cat conftest.err >&5
11759 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 + (exit $ac_status); } && {
11761 + test -z "$ac_c_werror_flag" ||
11762 + test ! -s conftest.err
11763 + } && test -s conftest$ac_exeext && {
11764 + test "$cross_compiling" = yes ||
11765 + $as_test_x conftest$ac_exeext
11767 + ac_cv_lib_dld_shl_load=yes
11769 - ac_cv_lib_dl_dlopen=no
11770 + $as_echo "$as_me: failed program was:" >&5
11771 +sed 's/^/| /' conftest.$ac_ext >&5
11773 + ac_cv_lib_dld_shl_load=no
11775 -rm -f core conftest.err conftest.$ac_objext \
11776 - conftest$ac_exeext conftest.$ac_ext
11778 +rm -rf conftest.dSYM
11779 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11780 + conftest$ac_exeext conftest.$ac_ext
11781 LIBS=$ac_check_lib_save_LIBS
11783 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11784 -$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11785 -if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11786 - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11787 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11788 +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11789 +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11790 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11792 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11793 -$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11794 -if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11795 + { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11796 +$as_echo_n "checking for dlopen... " >&6; }
11797 +if test "${ac_cv_func_dlopen+set}" = set; then
11798 $as_echo_n "(cached) " >&6
11800 - ac_check_lib_save_LIBS=$LIBS
11801 -LIBS="-lsvld $LIBS"
11802 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11803 + cat >conftest.$ac_ext <<_ACEOF
11806 +cat confdefs.h >>conftest.$ac_ext
11807 +cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11810 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
11811 +#define dlopen innocuous_dlopen
11813 -/* Override any GCC internal prototype to avoid an error.
11814 - Use char because int might match the return type of a GCC
11815 - builtin and then its argument prototype would still apply. */
11816 -#ifdef __cplusplus
11822 +/* System header to define __stub macros and hopefully few prototypes,
11823 + which can conflict with char dlopen (); below.
11824 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11825 + <limits.h> exists even on freestanding compilers. */
11828 +# include <limits.h>
11830 +# include <assert.h>
11835 +/* Override any GCC internal prototype to avoid an error.
11836 + Use char because int might match the return type of a GCC
11837 + builtin and then its argument prototype would still apply. */
11838 +#ifdef __cplusplus
11842 +/* The GNU C library defines this for functions which it implements
11843 + to always fail with ENOSYS. Some functions are actually named
11844 + something starting with __ and the normal name is an alias. */
11845 +#if defined __stub_dlopen || defined __stub___dlopen
11857 +rm -f conftest.$ac_objext conftest$ac_exeext
11858 +if { (ac_try="$ac_link"
11859 +case "(($ac_try" in
11860 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 + *) ac_try_echo=$ac_try;;
11863 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11864 +$as_echo "$ac_try_echo") >&5
11865 + (eval "$ac_link") 2>conftest.er1
11867 + grep -v '^ *+' conftest.er1 >conftest.err
11868 + rm -f conftest.er1
11869 + cat conftest.err >&5
11870 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 + (exit $ac_status); } && {
11872 + test -z "$ac_c_werror_flag" ||
11873 + test ! -s conftest.err
11874 + } && test -s conftest$ac_exeext && {
11875 + test "$cross_compiling" = yes ||
11876 + $as_test_x conftest$ac_exeext
11878 + ac_cv_func_dlopen=yes
11880 + $as_echo "$as_me: failed program was:" >&5
11881 +sed 's/^/| /' conftest.$ac_ext >&5
11883 + ac_cv_func_dlopen=no
11886 +rm -rf conftest.dSYM
11887 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11888 + conftest$ac_exeext conftest.$ac_ext
11890 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11891 +$as_echo "$ac_cv_func_dlopen" >&6; }
11892 +if test "x$ac_cv_func_dlopen" = x""yes; then
11893 + lt_cv_dlopen="dlopen"
11895 + { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11896 +$as_echo_n "checking for dlopen in -ldl... " >&6; }
11897 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11898 + $as_echo_n "(cached) " >&6
11900 + ac_check_lib_save_LIBS=$LIBS
11902 +cat >conftest.$ac_ext <<_ACEOF
11905 +cat confdefs.h >>conftest.$ac_ext
11906 +cat >>conftest.$ac_ext <<_ACEOF
11907 +/* end confdefs.h. */
11909 +/* Override any GCC internal prototype to avoid an error.
11910 + Use char because int might match the return type of a GCC
11911 + builtin and then its argument prototype would still apply. */
11912 +#ifdef __cplusplus
11924 +rm -f conftest.$ac_objext conftest$ac_exeext
11925 +if { (ac_try="$ac_link"
11926 +case "(($ac_try" in
11927 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11928 + *) ac_try_echo=$ac_try;;
11930 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11931 +$as_echo "$ac_try_echo") >&5
11932 + (eval "$ac_link") 2>conftest.er1
11934 + grep -v '^ *+' conftest.er1 >conftest.err
11935 + rm -f conftest.er1
11936 + cat conftest.err >&5
11937 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 + (exit $ac_status); } && {
11939 + test -z "$ac_c_werror_flag" ||
11940 + test ! -s conftest.err
11941 + } && test -s conftest$ac_exeext && {
11942 + test "$cross_compiling" = yes ||
11943 + $as_test_x conftest$ac_exeext
11945 + ac_cv_lib_dl_dlopen=yes
11947 + $as_echo "$as_me: failed program was:" >&5
11948 +sed 's/^/| /' conftest.$ac_ext >&5
11950 + ac_cv_lib_dl_dlopen=no
11953 +rm -rf conftest.dSYM
11954 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11955 + conftest$ac_exeext conftest.$ac_ext
11956 +LIBS=$ac_check_lib_save_LIBS
11958 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11959 +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11960 +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11961 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11963 + { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11964 +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11965 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11966 + $as_echo_n "(cached) " >&6
11968 + ac_check_lib_save_LIBS=$LIBS
11969 +LIBS="-lsvld $LIBS"
11970 +cat >conftest.$ac_ext <<_ACEOF
11973 +cat confdefs.h >>conftest.$ac_ext
11974 +cat >>conftest.$ac_ext <<_ACEOF
11975 +/* end confdefs.h. */
11977 +/* Override any GCC internal prototype to avoid an error.
11978 + Use char because int might match the return type of a GCC
11979 + builtin and then its argument prototype would still apply. */
11980 +#ifdef __cplusplus
11992 -if ac_fn_c_try_link "$LINENO"; then :
11993 +rm -f conftest.$ac_objext conftest$ac_exeext
11994 +if { (ac_try="$ac_link"
11995 +case "(($ac_try" in
11996 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997 + *) ac_try_echo=$ac_try;;
11999 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12000 +$as_echo "$ac_try_echo") >&5
12001 + (eval "$ac_link") 2>conftest.er1
12003 + grep -v '^ *+' conftest.er1 >conftest.err
12004 + rm -f conftest.er1
12005 + cat conftest.err >&5
12006 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 + (exit $ac_status); } && {
12008 + test -z "$ac_c_werror_flag" ||
12009 + test ! -s conftest.err
12010 + } && test -s conftest$ac_exeext && {
12011 + test "$cross_compiling" = yes ||
12012 + $as_test_x conftest$ac_exeext
12014 ac_cv_lib_svld_dlopen=yes
12016 - ac_cv_lib_svld_dlopen=no
12017 + $as_echo "$as_me: failed program was:" >&5
12018 +sed 's/^/| /' conftest.$ac_ext >&5
12020 + ac_cv_lib_svld_dlopen=no
12022 -rm -f core conftest.err conftest.$ac_objext \
12023 - conftest$ac_exeext conftest.$ac_ext
12025 +rm -rf conftest.dSYM
12026 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12027 + conftest$ac_exeext conftest.$ac_ext
12028 LIBS=$ac_check_lib_save_LIBS
12030 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12031 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12032 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12033 -if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12034 +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
12035 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12037 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12038 + { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12039 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12040 -if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12041 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12042 $as_echo_n "(cached) " >&6
12044 ac_check_lib_save_LIBS=$LIBS
12046 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 +cat >conftest.$ac_ext <<_ACEOF
12050 +cat confdefs.h >>conftest.$ac_ext
12051 +cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h. */
12054 /* Override any GCC internal prototype to avoid an error.
12055 @@ -10713,18 +11057,43 @@ return dld_link ();
12059 -if ac_fn_c_try_link "$LINENO"; then :
12060 +rm -f conftest.$ac_objext conftest$ac_exeext
12061 +if { (ac_try="$ac_link"
12062 +case "(($ac_try" in
12063 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 + *) ac_try_echo=$ac_try;;
12066 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12067 +$as_echo "$ac_try_echo") >&5
12068 + (eval "$ac_link") 2>conftest.er1
12070 + grep -v '^ *+' conftest.er1 >conftest.err
12071 + rm -f conftest.er1
12072 + cat conftest.err >&5
12073 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 + (exit $ac_status); } && {
12075 + test -z "$ac_c_werror_flag" ||
12076 + test ! -s conftest.err
12077 + } && test -s conftest$ac_exeext && {
12078 + test "$cross_compiling" = yes ||
12079 + $as_test_x conftest$ac_exeext
12081 ac_cv_lib_dld_dld_link=yes
12083 - ac_cv_lib_dld_dld_link=no
12084 + $as_echo "$as_me: failed program was:" >&5
12085 +sed 's/^/| /' conftest.$ac_ext >&5
12087 + ac_cv_lib_dld_dld_link=no
12089 -rm -f core conftest.err conftest.$ac_objext \
12090 - conftest$ac_exeext conftest.$ac_ext
12092 +rm -rf conftest.dSYM
12093 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12094 + conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12097 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12098 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12099 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12100 -if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12101 +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12102 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12105 @@ -10763,9 +11132,9 @@ fi
12107 LIBS="$lt_cv_dlopen_libs $LIBS"
12109 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12110 + { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12111 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12112 -if test "${lt_cv_dlopen_self+set}" = set; then :
12113 +if test "${lt_cv_dlopen_self+set}" = set; then
12114 $as_echo_n "(cached) " >&6
12116 if test "$cross_compiling" = yes; then :
12117 @@ -10774,7 +11143,7 @@ else
12118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12119 lt_status=$lt_dlunknown
12120 cat > conftest.$ac_ext <<_LT_EOF
12121 -#line 10777 "configure"
12122 +#line 11146 "configure"
12123 #include "confdefs.h"
12126 @@ -10815,13 +11184,7 @@ else
12130 -/* When -fvisbility=hidden is used, assume the code has been annotated
12131 - correspondingly for the symbols needed. */
12132 -#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12133 -void fnord () __attribute__((visibility("default")));
12136 -void fnord () { int i=42; }
12137 +void fnord() { int i=42;}
12140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12141 @@ -10830,11 +11193,7 @@ int main ()
12144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12147 - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12148 - else puts (dlerror ());
12150 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12151 /* dlclose (self); */
12154 @@ -10843,11 +11202,11 @@ int main ()
12158 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12159 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12160 (eval $ac_link) 2>&5
12162 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12163 - test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12164 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12166 (./conftest; exit; ) >&5 2>/dev/null
12168 case x$lt_status in
12169 @@ -10864,14 +11223,14 @@ rm -fr conftest*
12173 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12174 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12175 $as_echo "$lt_cv_dlopen_self" >&6; }
12177 if test "x$lt_cv_dlopen_self" = xyes; then
12178 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12179 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12180 + { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12181 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12182 -if test "${lt_cv_dlopen_self_static+set}" = set; then :
12183 +if test "${lt_cv_dlopen_self_static+set}" = set; then
12184 $as_echo_n "(cached) " >&6
12186 if test "$cross_compiling" = yes; then :
12187 @@ -10880,7 +11239,7 @@ else
12188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12189 lt_status=$lt_dlunknown
12190 cat > conftest.$ac_ext <<_LT_EOF
12191 -#line 10883 "configure"
12192 +#line 11242 "configure"
12193 #include "confdefs.h"
12196 @@ -10921,13 +11280,7 @@ else
12200 -/* When -fvisbility=hidden is used, assume the code has been annotated
12201 - correspondingly for the symbols needed. */
12202 -#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12203 -void fnord () __attribute__((visibility("default")));
12206 -void fnord () { int i=42; }
12207 +void fnord() { int i=42;}
12210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12211 @@ -10936,11 +11289,7 @@ int main ()
12214 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12217 - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12218 - else puts (dlerror ());
12220 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12221 /* dlclose (self); */
12224 @@ -10949,11 +11298,11 @@ int main ()
12228 - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12229 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12230 (eval $ac_link) 2>&5
12232 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12233 - test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12234 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12236 (./conftest; exit; ) >&5 2>/dev/null
12238 case x$lt_status in
12239 @@ -10970,7 +11319,7 @@ rm -fr conftest*
12243 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12244 +{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12245 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12248 @@ -11009,12 +11358,12 @@ fi
12252 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12253 +{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12254 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12255 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12256 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12257 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12258 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12259 + { $as_echo "$as_me:$LINENO: result: yes" >&5
12260 $as_echo "yes" >&6; }
12262 # FIXME - insert some real tests, host_os isn't really good enough
12263 @@ -11023,15 +11372,15 @@ else
12264 if test -n "$STRIP" ; then
12265 striplib="$STRIP -x"
12266 old_striplib="$STRIP -S"
12267 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12268 + { $as_echo "$as_me:$LINENO: result: yes" >&5
12269 $as_echo "yes" >&6; }
12271 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12272 + { $as_echo "$as_me:$LINENO: result: no" >&5
12273 $as_echo "no" >&6; }
12277 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 + { $as_echo "$as_me:$LINENO: result: no" >&5
12279 $as_echo "no" >&6; }
12282 @@ -11049,12 +11398,12 @@ fi
12285 # Report which library types will actually be built
12286 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12287 + { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12288 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12289 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12290 + { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12291 $as_echo "$can_build_shared" >&6; }
12293 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12294 + { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12295 $as_echo_n "checking whether to build shared libraries... " >&6; }
12296 test "$can_build_shared" = "no" && enable_shared=no
12298 @@ -11075,14 +11424,14 @@ $as_echo_n "checking whether to build sh
12302 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12303 + { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12304 $as_echo "$enable_shared" >&6; }
12306 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12307 + { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12308 $as_echo_n "checking whether to build static libraries... " >&6; }
12309 # Make sure either enable_shared or enable_static is yes.
12310 test "$enable_shared" = yes || enable_static=yes
12311 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12312 + { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12313 $as_echo "$enable_static" >&6; }
12316 @@ -11119,16 +11468,17 @@ CC="$lt_save_CC"
12320 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12322 +{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12323 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12324 # Check whether --enable-maintainer-mode was given.
12325 -if test "${enable_maintainer_mode+set}" = set; then :
12326 +if test "${enable_maintainer_mode+set}" = set; then
12327 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12329 USE_MAINTAINER_MODE=no
12332 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12333 + { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12334 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12335 if test $USE_MAINTAINER_MODE = yes; then
12336 MAINTAINER_MODE_TRUE=
12337 @@ -11142,79 +11492,523 @@ fi
12342 for ac_header in sys/mman.h
12344 - ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12345 -if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12346 - cat >>confdefs.h <<_ACEOF
12347 -#define HAVE_SYS_MMAN_H 1
12349 +as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12350 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12351 + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12352 +$as_echo_n "checking for $ac_header... " >&6; }
12353 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12354 + $as_echo_n "(cached) " >&6
12356 +ac_res=`eval 'as_val=${'$as_ac_Header'}
12357 + $as_echo "$as_val"'`
12358 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12359 +$as_echo "$ac_res" >&6; }
12361 + # Is the header compilable?
12362 +{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12363 +$as_echo_n "checking $ac_header usability... " >&6; }
12364 +cat >conftest.$ac_ext <<_ACEOF
12367 +cat confdefs.h >>conftest.$ac_ext
12368 +cat >>conftest.$ac_ext <<_ACEOF
12369 +/* end confdefs.h. */
12370 +$ac_includes_default
12371 +#include <$ac_header>
12373 +rm -f conftest.$ac_objext
12374 +if { (ac_try="$ac_compile"
12375 +case "(($ac_try" in
12376 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12377 + *) ac_try_echo=$ac_try;;
12379 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12380 +$as_echo "$ac_try_echo") >&5
12381 + (eval "$ac_compile") 2>conftest.er1
12383 + grep -v '^ *+' conftest.er1 >conftest.err
12384 + rm -f conftest.er1
12385 + cat conftest.err >&5
12386 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 + (exit $ac_status); } && {
12388 + test -z "$ac_c_werror_flag" ||
12389 + test ! -s conftest.err
12390 + } && test -s conftest.$ac_objext; then
12391 + ac_header_compiler=yes
12393 + $as_echo "$as_me: failed program was:" >&5
12394 +sed 's/^/| /' conftest.$ac_ext >&5
12396 + ac_header_compiler=no
12400 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12402 +$as_echo "$ac_header_compiler" >&6; }
12404 -for ac_func in mmap
12406 - ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12407 -if test "x$ac_cv_func_mmap" = x""yes; then :
12408 - cat >>confdefs.h <<_ACEOF
12409 -#define HAVE_MMAP 1
12410 +# Is the header present?
12411 +{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12412 +$as_echo_n "checking $ac_header presence... " >&6; }
12413 +cat >conftest.$ac_ext <<_ACEOF
12416 +cat confdefs.h >>conftest.$ac_ext
12417 +cat >>conftest.$ac_ext <<_ACEOF
12418 +/* end confdefs.h. */
12419 +#include <$ac_header>
12421 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12422 +case "(($ac_try" in
12423 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 + *) ac_try_echo=$ac_try;;
12426 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12427 +$as_echo "$ac_try_echo") >&5
12428 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12430 + grep -v '^ *+' conftest.er1 >conftest.err
12431 + rm -f conftest.er1
12432 + cat conftest.err >&5
12433 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 + (exit $ac_status); } >/dev/null && {
12435 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12436 + test ! -s conftest.err
12438 + ac_header_preproc=yes
12440 + $as_echo "$as_me: failed program was:" >&5
12441 +sed 's/^/| /' conftest.$ac_ext >&5
12443 + ac_header_preproc=no
12447 +rm -f conftest.err conftest.$ac_ext
12448 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12449 +$as_echo "$ac_header_preproc" >&6; }
12451 -ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12452 -if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
12453 - libffi_header_sys_mman_h=yes
12454 +# So? What about this header?
12455 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12457 + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12458 +$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12459 + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12460 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12461 + ac_header_preproc=yes
12464 + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465 +$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466 + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12467 +$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12468 + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12469 +$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12470 + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12471 +$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12472 + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12473 +$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12474 + { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12475 +$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12477 +## ------------------------------------------- ##
12478 +## Report this to http://gcc.gnu.org/bugs.html ##
12479 +## ------------------------------------------- ##
12481 + ) | sed "s/^/$as_me: WARNING: /" >&2
12484 +{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12485 +$as_echo_n "checking for $ac_header... " >&6; }
12486 +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12487 + $as_echo_n "(cached) " >&6
12489 - libffi_header_sys_mman_h=no
12490 + eval "$as_ac_Header=\$ac_header_preproc"
12492 +ac_res=`eval 'as_val=${'$as_ac_Header'}
12493 + $as_echo "$as_val"'`
12494 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12495 +$as_echo "$ac_res" >&6; }
12498 -ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12499 -if test "x$ac_cv_func_mmap" = x""yes; then :
12500 - libffi_func_mmap=yes
12502 - libffi_func_mmap=no
12504 +as_val=`eval 'as_val=${'$as_ac_Header'}
12505 + $as_echo "$as_val"'`
12506 + if test "x$as_val" = x""yes; then
12507 + cat >>confdefs.h <<_ACEOF
12508 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12511 -if test "$libffi_header_sys_mman_h" != yes \
12512 - || test "$libffi_func_mmap" != yes; then
12513 - ac_cv_func_mmap_file=no
12514 - ac_cv_func_mmap_dev_zero=no
12515 - ac_cv_func_mmap_anon=no
12517 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
12518 -$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
12519 -if test "${ac_cv_func_mmap_file+set}" = set; then :
12520 - $as_echo_n "(cached) " >&6
12522 - # Add a system to this blacklist if
12523 - # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
12524 - # memory area containing the same data that you'd get if you applied
12525 - # read() to the same fd. The only system known to have a problem here
12526 - # is VMS, where text files have record structure.
12527 - case "$host_os" in
12529 - ac_cv_func_mmap_file=no ;;
12531 - ac_cv_func_mmap_file=yes;;
12534 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
12535 -$as_echo "$ac_cv_func_mmap_file" >&6; }
12536 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
12537 -$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12538 -if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
12543 +for ac_func in mmap
12545 +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12546 +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12547 +$as_echo_n "checking for $ac_func... " >&6; }
12548 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12549 $as_echo_n "(cached) " >&6
12551 - # Add a system to this blacklist if it has mmap() but /dev/zero
12552 - # does not exist, or if mmapping /dev/zero does not give anonymous
12553 - # zeroed pages with both the following properties:
12554 - # 1. If you map N consecutive pages in with one call, and then
12555 + cat >conftest.$ac_ext <<_ACEOF
12558 +cat confdefs.h >>conftest.$ac_ext
12559 +cat >>conftest.$ac_ext <<_ACEOF
12560 +/* end confdefs.h. */
12561 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12562 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
12563 +#define $ac_func innocuous_$ac_func
12565 +/* System header to define __stub macros and hopefully few prototypes,
12566 + which can conflict with char $ac_func (); below.
12567 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12568 + <limits.h> exists even on freestanding compilers. */
12571 +# include <limits.h>
12573 +# include <assert.h>
12578 +/* Override any GCC internal prototype to avoid an error.
12579 + Use char because int might match the return type of a GCC
12580 + builtin and then its argument prototype would still apply. */
12581 +#ifdef __cplusplus
12585 +/* The GNU C library defines this for functions which it implements
12586 + to always fail with ENOSYS. Some functions are actually named
12587 + something starting with __ and the normal name is an alias. */
12588 +#if defined __stub_$ac_func || defined __stub___$ac_func
12595 +return $ac_func ();
12600 +rm -f conftest.$ac_objext conftest$ac_exeext
12601 +if { (ac_try="$ac_link"
12602 +case "(($ac_try" in
12603 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 + *) ac_try_echo=$ac_try;;
12606 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12607 +$as_echo "$ac_try_echo") >&5
12608 + (eval "$ac_link") 2>conftest.er1
12610 + grep -v '^ *+' conftest.er1 >conftest.err
12611 + rm -f conftest.er1
12612 + cat conftest.err >&5
12613 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 + (exit $ac_status); } && {
12615 + test -z "$ac_c_werror_flag" ||
12616 + test ! -s conftest.err
12617 + } && test -s conftest$ac_exeext && {
12618 + test "$cross_compiling" = yes ||
12619 + $as_test_x conftest$ac_exeext
12621 + eval "$as_ac_var=yes"
12623 + $as_echo "$as_me: failed program was:" >&5
12624 +sed 's/^/| /' conftest.$ac_ext >&5
12626 + eval "$as_ac_var=no"
12629 +rm -rf conftest.dSYM
12630 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12631 + conftest$ac_exeext conftest.$ac_ext
12633 +ac_res=`eval 'as_val=${'$as_ac_var'}
12634 + $as_echo "$as_val"'`
12635 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12636 +$as_echo "$ac_res" >&6; }
12637 +as_val=`eval 'as_val=${'$as_ac_var'}
12638 + $as_echo "$as_val"'`
12639 + if test "x$as_val" = x""yes; then
12640 + cat >>confdefs.h <<_ACEOF
12641 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12648 +if test "${ac_cv_header_sys_mman_h+set}" = set; then
12649 + { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
12650 +$as_echo_n "checking for sys/mman.h... " >&6; }
12651 +if test "${ac_cv_header_sys_mman_h+set}" = set; then
12652 + $as_echo_n "(cached) " >&6
12654 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
12655 +$as_echo "$ac_cv_header_sys_mman_h" >&6; }
12657 + # Is the header compilable?
12658 +{ $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
12659 +$as_echo_n "checking sys/mman.h usability... " >&6; }
12660 +cat >conftest.$ac_ext <<_ACEOF
12663 +cat confdefs.h >>conftest.$ac_ext
12664 +cat >>conftest.$ac_ext <<_ACEOF
12665 +/* end confdefs.h. */
12666 +$ac_includes_default
12667 +#include <sys/mman.h>
12669 +rm -f conftest.$ac_objext
12670 +if { (ac_try="$ac_compile"
12671 +case "(($ac_try" in
12672 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 + *) ac_try_echo=$ac_try;;
12675 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12676 +$as_echo "$ac_try_echo") >&5
12677 + (eval "$ac_compile") 2>conftest.er1
12679 + grep -v '^ *+' conftest.er1 >conftest.err
12680 + rm -f conftest.er1
12681 + cat conftest.err >&5
12682 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 + (exit $ac_status); } && {
12684 + test -z "$ac_c_werror_flag" ||
12685 + test ! -s conftest.err
12686 + } && test -s conftest.$ac_objext; then
12687 + ac_header_compiler=yes
12689 + $as_echo "$as_me: failed program was:" >&5
12690 +sed 's/^/| /' conftest.$ac_ext >&5
12692 + ac_header_compiler=no
12695 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 +{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12697 +$as_echo "$ac_header_compiler" >&6; }
12699 +# Is the header present?
12700 +{ $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
12701 +$as_echo_n "checking sys/mman.h presence... " >&6; }
12702 +cat >conftest.$ac_ext <<_ACEOF
12705 +cat confdefs.h >>conftest.$ac_ext
12706 +cat >>conftest.$ac_ext <<_ACEOF
12707 +/* end confdefs.h. */
12708 +#include <sys/mman.h>
12710 +if { (ac_try="$ac_cpp conftest.$ac_ext"
12711 +case "(($ac_try" in
12712 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 + *) ac_try_echo=$ac_try;;
12715 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12716 +$as_echo "$ac_try_echo") >&5
12717 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12719 + grep -v '^ *+' conftest.er1 >conftest.err
12720 + rm -f conftest.er1
12721 + cat conftest.err >&5
12722 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 + (exit $ac_status); } >/dev/null && {
12724 + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12725 + test ! -s conftest.err
12727 + ac_header_preproc=yes
12729 + $as_echo "$as_me: failed program was:" >&5
12730 +sed 's/^/| /' conftest.$ac_ext >&5
12732 + ac_header_preproc=no
12735 +rm -f conftest.err conftest.$ac_ext
12736 +{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12737 +$as_echo "$ac_header_preproc" >&6; }
12739 +# So? What about this header?
12740 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12742 + { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
12743 +$as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12744 + { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
12745 +$as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
12746 + ac_header_preproc=yes
12749 + { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
12750 +$as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
12751 + { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
12752 +$as_echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
12753 + { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
12754 +$as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
12755 + { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
12756 +$as_echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
12757 + { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
12758 +$as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
12759 + { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
12760 +$as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
12762 +## ------------------------------------------- ##
12763 +## Report this to http://gcc.gnu.org/bugs.html ##
12764 +## ------------------------------------------- ##
12766 + ) | sed "s/^/$as_me: WARNING: /" >&2
12769 +{ $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
12770 +$as_echo_n "checking for sys/mman.h... " >&6; }
12771 +if test "${ac_cv_header_sys_mman_h+set}" = set; then
12772 + $as_echo_n "(cached) " >&6
12774 + ac_cv_header_sys_mman_h=$ac_header_preproc
12776 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
12777 +$as_echo "$ac_cv_header_sys_mman_h" >&6; }
12780 +if test "x$ac_cv_header_sys_mman_h" = x""yes; then
12781 + libffi_header_sys_mman_h=yes
12783 + libffi_header_sys_mman_h=no
12787 +{ $as_echo "$as_me:$LINENO: checking for mmap" >&5
12788 +$as_echo_n "checking for mmap... " >&6; }
12789 +if test "${ac_cv_func_mmap+set}" = set; then
12790 + $as_echo_n "(cached) " >&6
12792 + cat >conftest.$ac_ext <<_ACEOF
12795 +cat confdefs.h >>conftest.$ac_ext
12796 +cat >>conftest.$ac_ext <<_ACEOF
12797 +/* end confdefs.h. */
12798 +/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
12799 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
12800 +#define mmap innocuous_mmap
12802 +/* System header to define __stub macros and hopefully few prototypes,
12803 + which can conflict with char mmap (); below.
12804 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12805 + <limits.h> exists even on freestanding compilers. */
12808 +# include <limits.h>
12810 +# include <assert.h>
12815 +/* Override any GCC internal prototype to avoid an error.
12816 + Use char because int might match the return type of a GCC
12817 + builtin and then its argument prototype would still apply. */
12818 +#ifdef __cplusplus
12822 +/* The GNU C library defines this for functions which it implements
12823 + to always fail with ENOSYS. Some functions are actually named
12824 + something starting with __ and the normal name is an alias. */
12825 +#if defined __stub_mmap || defined __stub___mmap
12837 +rm -f conftest.$ac_objext conftest$ac_exeext
12838 +if { (ac_try="$ac_link"
12839 +case "(($ac_try" in
12840 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841 + *) ac_try_echo=$ac_try;;
12843 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12844 +$as_echo "$ac_try_echo") >&5
12845 + (eval "$ac_link") 2>conftest.er1
12847 + grep -v '^ *+' conftest.er1 >conftest.err
12848 + rm -f conftest.er1
12849 + cat conftest.err >&5
12850 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 + (exit $ac_status); } && {
12852 + test -z "$ac_c_werror_flag" ||
12853 + test ! -s conftest.err
12854 + } && test -s conftest$ac_exeext && {
12855 + test "$cross_compiling" = yes ||
12856 + $as_test_x conftest$ac_exeext
12858 + ac_cv_func_mmap=yes
12860 + $as_echo "$as_me: failed program was:" >&5
12861 +sed 's/^/| /' conftest.$ac_ext >&5
12863 + ac_cv_func_mmap=no
12866 +rm -rf conftest.dSYM
12867 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12868 + conftest$ac_exeext conftest.$ac_ext
12870 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
12871 +$as_echo "$ac_cv_func_mmap" >&6; }
12872 +if test "x$ac_cv_func_mmap" = x""yes; then
12873 + libffi_func_mmap=yes
12875 + libffi_func_mmap=no
12878 +if test "$libffi_header_sys_mman_h" != yes \
12879 + || test "$libffi_func_mmap" != yes; then
12880 + ac_cv_func_mmap_file=no
12881 + ac_cv_func_mmap_dev_zero=no
12882 + ac_cv_func_mmap_anon=no
12884 + { $as_echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
12885 +$as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
12886 +if test "${ac_cv_func_mmap_file+set}" = set; then
12887 + $as_echo_n "(cached) " >&6
12889 + # Add a system to this blacklist if
12890 + # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
12891 + # memory area containing the same data that you'd get if you applied
12892 + # read() to the same fd. The only system known to have a problem here
12893 + # is VMS, where text files have record structure.
12894 + case "$host_os" in
12896 + ac_cv_func_mmap_file=no ;;
12898 + ac_cv_func_mmap_file=yes;;
12901 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
12902 +$as_echo "$ac_cv_func_mmap_file" >&6; }
12903 + { $as_echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
12904 +$as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
12905 +if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
12906 + $as_echo_n "(cached) " >&6
12908 + # Add a system to this blacklist if it has mmap() but /dev/zero
12909 + # does not exist, or if mmapping /dev/zero does not give anonymous
12910 + # zeroed pages with both the following properties:
12911 + # 1. If you map N consecutive pages in with one call, and then
12912 # unmap any subset of those pages, the pages that were not
12913 # explicitly unmapped remain accessible.
12914 # 2. If you map two adjacent blocks of memory and then unmap them
12915 @@ -11228,16 +12022,20 @@ else
12916 ac_cv_func_mmap_dev_zero=yes;;
12919 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
12920 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
12921 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12923 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12924 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
12925 + { $as_echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
12926 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12927 -if test "${ac_cv_decl_map_anon+set}" = set; then :
12928 +if test "${ac_cv_decl_map_anon+set}" = set; then
12929 $as_echo_n "(cached) " >&6
12931 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12932 + cat >conftest.$ac_ext <<_ACEOF
12935 +cat confdefs.h >>conftest.$ac_ext
12936 +cat >>conftest.$ac_ext <<_ACEOF
12937 /* end confdefs.h. */
12938 #include <sys/types.h>
12939 #include <sys/mman.h>
12940 @@ -11255,22 +12053,43 @@ int n = MAP_ANONYMOUS;
12944 -if ac_fn_c_try_compile "$LINENO"; then :
12945 +rm -f conftest.$ac_objext
12946 +if { (ac_try="$ac_compile"
12947 +case "(($ac_try" in
12948 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 + *) ac_try_echo=$ac_try;;
12951 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12952 +$as_echo "$ac_try_echo") >&5
12953 + (eval "$ac_compile") 2>conftest.er1
12955 + grep -v '^ *+' conftest.er1 >conftest.err
12956 + rm -f conftest.er1
12957 + cat conftest.err >&5
12958 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12959 + (exit $ac_status); } && {
12960 + test -z "$ac_c_werror_flag" ||
12961 + test ! -s conftest.err
12962 + } && test -s conftest.$ac_objext; then
12963 ac_cv_decl_map_anon=yes
12965 - ac_cv_decl_map_anon=no
12966 + $as_echo "$as_me: failed program was:" >&5
12967 +sed 's/^/| /' conftest.$ac_ext >&5
12969 + ac_cv_decl_map_anon=no
12972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12974 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
12975 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
12976 $as_echo "$ac_cv_decl_map_anon" >&6; }
12978 if test $ac_cv_decl_map_anon = no; then
12979 ac_cv_func_mmap_anon=no
12981 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12982 + { $as_echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12983 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12984 -if test "${ac_cv_func_mmap_anon+set}" = set; then :
12985 +if test "${ac_cv_func_mmap_anon+set}" = set; then
12986 $as_echo_n "(cached) " >&6
12988 # Add a system to this blacklist if it has mmap() and MAP_ANON or
12989 @@ -11285,24 +12104,30 @@ else
12990 ac_cv_func_mmap_anon=yes;;
12993 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
12994 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
12995 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12999 if test $ac_cv_func_mmap_file = yes; then
13001 -$as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13002 +cat >>confdefs.h <<\_ACEOF
13003 +#define HAVE_MMAP_FILE 1
13007 if test $ac_cv_func_mmap_dev_zero = yes; then
13009 -$as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13010 +cat >>confdefs.h <<\_ACEOF
13011 +#define HAVE_MMAP_DEV_ZERO 1
13015 if test $ac_cv_func_mmap_anon = yes; then
13017 -$as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13018 +cat >>confdefs.h <<\_ACEOF
13019 +#define HAVE_MMAP_ANON 1
13024 @@ -11330,6 +12155,10 @@ case "$host" in
13026 amd64-*-freebsd* | amd64-*-openbsd*)
13027 TARGET=X86_64; TARGETDIR=x86
13030 + amd64-*-freebsd*)
13031 + TARGET=X86_64; TARGETDIR=x86
13035 @@ -11447,7 +12276,9 @@ esac
13038 if test $TARGETDIR = unknown; then
13039 - as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
13040 + { { $as_echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
13041 +$as_echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
13042 + { (exit 1); exit 1; }; }
13045 if test x$TARGET = xMIPS; then
13046 @@ -11538,6 +12369,14 @@ else
13050 + if test x$TARGET = xMOXIE; then
13058 if test x$TARGET = xPOWERPC; then
13061 @@ -11659,12 +12498,16 @@ else
13065 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13066 +{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13067 $as_echo_n "checking for ANSI C header files... " >&6; }
13068 -if test "${ac_cv_header_stdc+set}" = set; then :
13069 +if test "${ac_cv_header_stdc+set}" = set; then
13070 $as_echo_n "(cached) " >&6
13072 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073 + cat >conftest.$ac_ext <<_ACEOF
13076 +cat confdefs.h >>conftest.$ac_ext
13077 +cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 #include <stdlib.h>
13080 #include <stdarg.h>
13081 @@ -11679,23 +12522,48 @@ main ()
13085 -if ac_fn_c_try_compile "$LINENO"; then :
13086 +rm -f conftest.$ac_objext
13087 +if { (ac_try="$ac_compile"
13088 +case "(($ac_try" in
13089 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 + *) ac_try_echo=$ac_try;;
13092 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13093 +$as_echo "$ac_try_echo") >&5
13094 + (eval "$ac_compile") 2>conftest.er1
13096 + grep -v '^ *+' conftest.er1 >conftest.err
13097 + rm -f conftest.er1
13098 + cat conftest.err >&5
13099 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 + (exit $ac_status); } && {
13101 + test -z "$ac_c_werror_flag" ||
13102 + test ! -s conftest.err
13103 + } && test -s conftest.$ac_objext; then
13104 ac_cv_header_stdc=yes
13106 - ac_cv_header_stdc=no
13107 + $as_echo "$as_me: failed program was:" >&5
13108 +sed 's/^/| /' conftest.$ac_ext >&5
13110 + ac_cv_header_stdc=no
13113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13115 if test $ac_cv_header_stdc = yes; then
13116 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13117 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 + cat >conftest.$ac_ext <<_ACEOF
13121 +cat confdefs.h >>conftest.$ac_ext
13122 +cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 #include <string.h>
13127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13128 - $EGREP "memchr" >/dev/null 2>&1; then :
13130 + $EGREP "memchr" >/dev/null 2>&1; then
13133 ac_cv_header_stdc=no
13135 @@ -11705,14 +12573,18 @@ fi
13137 if test $ac_cv_header_stdc = yes; then
13138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13139 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 + cat >conftest.$ac_ext <<_ACEOF
13143 +cat confdefs.h >>conftest.$ac_ext
13144 +cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13146 #include <stdlib.h>
13149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13150 - $EGREP "free" >/dev/null 2>&1; then :
13152 + $EGREP "free" >/dev/null 2>&1; then
13155 ac_cv_header_stdc=no
13157 @@ -11722,10 +12594,14 @@ fi
13159 if test $ac_cv_header_stdc = yes; then
13160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13161 - if test "$cross_compiling" = yes; then :
13162 + if test "$cross_compiling" = yes; then
13165 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 + cat >conftest.$ac_ext <<_ACEOF
13169 +cat confdefs.h >>conftest.$ac_ext
13170 +cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13173 #include <stdlib.h>
13174 @@ -11752,31 +12628,150 @@ main ()
13178 -if ac_fn_c_try_run "$LINENO"; then :
13180 +rm -f conftest$ac_exeext
13181 +if { (ac_try="$ac_link"
13182 +case "(($ac_try" in
13183 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 + *) ac_try_echo=$ac_try;;
13186 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13187 +$as_echo "$ac_try_echo") >&5
13188 + (eval "$ac_link") 2>&5
13190 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13192 + { (case "(($ac_try" in
13193 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 + *) ac_try_echo=$ac_try;;
13196 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13197 +$as_echo "$ac_try_echo") >&5
13198 + (eval "$ac_try") 2>&5
13200 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 + (exit $ac_status); }; }; then
13204 - ac_cv_header_stdc=no
13205 + $as_echo "$as_me: program exited with status $ac_status" >&5
13206 +$as_echo "$as_me: failed program was:" >&5
13207 +sed 's/^/| /' conftest.$ac_ext >&5
13209 +( exit $ac_status )
13210 +ac_cv_header_stdc=no
13212 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13213 - conftest.$ac_objext conftest.beam conftest.$ac_ext
13214 +rm -rf conftest.dSYM
13215 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13221 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13222 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13223 $as_echo "$ac_cv_header_stdc" >&6; }
13224 if test $ac_cv_header_stdc = yes; then
13226 -$as_echo "#define STDC_HEADERS 1" >>confdefs.h
13227 +cat >>confdefs.h <<\_ACEOF
13228 +#define STDC_HEADERS 1
13234 for ac_func in memcpy
13236 - ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13237 -if test "x$ac_cv_func_memcpy" = x""yes; then :
13239 +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13240 +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13241 +$as_echo_n "checking for $ac_func... " >&6; }
13242 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13243 + $as_echo_n "(cached) " >&6
13245 + cat >conftest.$ac_ext <<_ACEOF
13248 +cat confdefs.h >>conftest.$ac_ext
13249 +cat >>conftest.$ac_ext <<_ACEOF
13250 +/* end confdefs.h. */
13251 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13252 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
13253 +#define $ac_func innocuous_$ac_func
13255 +/* System header to define __stub macros and hopefully few prototypes,
13256 + which can conflict with char $ac_func (); below.
13257 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13258 + <limits.h> exists even on freestanding compilers. */
13261 +# include <limits.h>
13263 +# include <assert.h>
13268 +/* Override any GCC internal prototype to avoid an error.
13269 + Use char because int might match the return type of a GCC
13270 + builtin and then its argument prototype would still apply. */
13271 +#ifdef __cplusplus
13275 +/* The GNU C library defines this for functions which it implements
13276 + to always fail with ENOSYS. Some functions are actually named
13277 + something starting with __ and the normal name is an alias. */
13278 +#if defined __stub_$ac_func || defined __stub___$ac_func
13285 +return $ac_func ();
13290 +rm -f conftest.$ac_objext conftest$ac_exeext
13291 +if { (ac_try="$ac_link"
13292 +case "(($ac_try" in
13293 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 + *) ac_try_echo=$ac_try;;
13296 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13297 +$as_echo "$ac_try_echo") >&5
13298 + (eval "$ac_link") 2>conftest.er1
13300 + grep -v '^ *+' conftest.er1 >conftest.err
13301 + rm -f conftest.er1
13302 + cat conftest.err >&5
13303 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 + (exit $ac_status); } && {
13305 + test -z "$ac_c_werror_flag" ||
13306 + test ! -s conftest.err
13307 + } && test -s conftest$ac_exeext && {
13308 + test "$cross_compiling" = yes ||
13309 + $as_test_x conftest$ac_exeext
13311 + eval "$as_ac_var=yes"
13313 + $as_echo "$as_me: failed program was:" >&5
13314 +sed 's/^/| /' conftest.$ac_ext >&5
13316 + eval "$as_ac_var=no"
13319 +rm -rf conftest.dSYM
13320 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13321 + conftest$ac_exeext conftest.$ac_ext
13323 +ac_res=`eval 'as_val=${'$as_ac_var'}
13324 + $as_echo "$as_val"'`
13325 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13326 +$as_echo "$ac_res" >&6; }
13327 +as_val=`eval 'as_val=${'$as_ac_var'}
13328 + $as_echo "$as_val"'`
13329 + if test "x$as_val" = x""yes; then
13330 cat >>confdefs.h <<_ACEOF
13331 -#define HAVE_MEMCPY 1
13332 +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13336 @@ -11784,12 +12779,16 @@ done
13338 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13339 # for constant arguments. Useless!
13340 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13341 +{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
13342 $as_echo_n "checking for working alloca.h... " >&6; }
13343 -if test "${ac_cv_working_alloca_h+set}" = set; then :
13344 +if test "${ac_cv_working_alloca_h+set}" = set; then
13345 $as_echo_n "(cached) " >&6
13347 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13348 + cat >conftest.$ac_ext <<_ACEOF
13351 +cat confdefs.h >>conftest.$ac_ext
13352 +cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 #include <alloca.h>
13356 @@ -11801,28 +12800,59 @@ char *p = (char *) alloca (2 * sizeof (i
13360 -if ac_fn_c_try_link "$LINENO"; then :
13361 +rm -f conftest.$ac_objext conftest$ac_exeext
13362 +if { (ac_try="$ac_link"
13363 +case "(($ac_try" in
13364 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 + *) ac_try_echo=$ac_try;;
13367 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13368 +$as_echo "$ac_try_echo") >&5
13369 + (eval "$ac_link") 2>conftest.er1
13371 + grep -v '^ *+' conftest.er1 >conftest.err
13372 + rm -f conftest.er1
13373 + cat conftest.err >&5
13374 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 + (exit $ac_status); } && {
13376 + test -z "$ac_c_werror_flag" ||
13377 + test ! -s conftest.err
13378 + } && test -s conftest$ac_exeext && {
13379 + test "$cross_compiling" = yes ||
13380 + $as_test_x conftest$ac_exeext
13382 ac_cv_working_alloca_h=yes
13384 - ac_cv_working_alloca_h=no
13385 + $as_echo "$as_me: failed program was:" >&5
13386 +sed 's/^/| /' conftest.$ac_ext >&5
13388 + ac_cv_working_alloca_h=no
13390 -rm -f core conftest.err conftest.$ac_objext \
13391 - conftest$ac_exeext conftest.$ac_ext
13393 +rm -rf conftest.dSYM
13394 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13395 + conftest$ac_exeext conftest.$ac_ext
13397 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13398 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13399 $as_echo "$ac_cv_working_alloca_h" >&6; }
13400 if test $ac_cv_working_alloca_h = yes; then
13402 -$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13403 +cat >>confdefs.h <<\_ACEOF
13404 +#define HAVE_ALLOCA_H 1
13409 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13410 +{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
13411 $as_echo_n "checking for alloca... " >&6; }
13412 -if test "${ac_cv_func_alloca_works+set}" = set; then :
13413 +if test "${ac_cv_func_alloca_works+set}" = set; then
13414 $as_echo_n "(cached) " >&6
13416 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 + cat >conftest.$ac_ext <<_ACEOF
13420 +cat confdefs.h >>conftest.$ac_ext
13421 +cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13424 # define alloca __builtin_alloca
13425 @@ -11854,20 +12884,47 @@ char *p = (char *) alloca (1);
13429 -if ac_fn_c_try_link "$LINENO"; then :
13430 +rm -f conftest.$ac_objext conftest$ac_exeext
13431 +if { (ac_try="$ac_link"
13432 +case "(($ac_try" in
13433 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 + *) ac_try_echo=$ac_try;;
13436 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13437 +$as_echo "$ac_try_echo") >&5
13438 + (eval "$ac_link") 2>conftest.er1
13440 + grep -v '^ *+' conftest.er1 >conftest.err
13441 + rm -f conftest.er1
13442 + cat conftest.err >&5
13443 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 + (exit $ac_status); } && {
13445 + test -z "$ac_c_werror_flag" ||
13446 + test ! -s conftest.err
13447 + } && test -s conftest$ac_exeext && {
13448 + test "$cross_compiling" = yes ||
13449 + $as_test_x conftest$ac_exeext
13451 ac_cv_func_alloca_works=yes
13453 - ac_cv_func_alloca_works=no
13454 + $as_echo "$as_me: failed program was:" >&5
13455 +sed 's/^/| /' conftest.$ac_ext >&5
13457 + ac_cv_func_alloca_works=no
13459 -rm -f core conftest.err conftest.$ac_objext \
13460 - conftest$ac_exeext conftest.$ac_ext
13462 +rm -rf conftest.dSYM
13463 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13464 + conftest$ac_exeext conftest.$ac_ext
13466 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13467 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13468 $as_echo "$ac_cv_func_alloca_works" >&6; }
13470 if test $ac_cv_func_alloca_works = yes; then
13472 -$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13473 +cat >>confdefs.h <<\_ACEOF
13474 +#define HAVE_ALLOCA 1
13478 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13479 @@ -11877,15 +12934,21 @@ else
13481 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13483 -$as_echo "#define C_ALLOCA 1" >>confdefs.h
13484 +cat >>confdefs.h <<\_ACEOF
13485 +#define C_ALLOCA 1
13489 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13490 +{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13491 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13492 -if test "${ac_cv_os_cray+set}" = set; then :
13493 +if test "${ac_cv_os_cray+set}" = set; then
13494 $as_echo_n "(cached) " >&6
13496 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13497 + cat >conftest.$ac_ext <<_ACEOF
13500 +cat confdefs.h >>conftest.$ac_ext
13501 +cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 #if defined CRAY && ! defined CRAY2
13505 @@ -11895,7 +12958,7 @@ wenotbecray
13508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13509 - $EGREP "webecray" >/dev/null 2>&1; then :
13510 + $EGREP "webecray" >/dev/null 2>&1; then
13514 @@ -11903,14 +12966,101 @@ fi
13518 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13519 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13520 $as_echo "$ac_cv_os_cray" >&6; }
13521 if test $ac_cv_os_cray = yes; then
13522 for ac_func in _getb67 GETB67 getb67; do
13523 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13524 -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13525 -eval as_val=\$$as_ac_var
13526 - if test "x$as_val" = x""yes; then :
13527 +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13528 +$as_echo_n "checking for $ac_func... " >&6; }
13529 +if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13530 + $as_echo_n "(cached) " >&6
13532 + cat >conftest.$ac_ext <<_ACEOF
13535 +cat confdefs.h >>conftest.$ac_ext
13536 +cat >>conftest.$ac_ext <<_ACEOF
13537 +/* end confdefs.h. */
13538 +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13539 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
13540 +#define $ac_func innocuous_$ac_func
13542 +/* System header to define __stub macros and hopefully few prototypes,
13543 + which can conflict with char $ac_func (); below.
13544 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13545 + <limits.h> exists even on freestanding compilers. */
13548 +# include <limits.h>
13550 +# include <assert.h>
13555 +/* Override any GCC internal prototype to avoid an error.
13556 + Use char because int might match the return type of a GCC
13557 + builtin and then its argument prototype would still apply. */
13558 +#ifdef __cplusplus
13562 +/* The GNU C library defines this for functions which it implements
13563 + to always fail with ENOSYS. Some functions are actually named
13564 + something starting with __ and the normal name is an alias. */
13565 +#if defined __stub_$ac_func || defined __stub___$ac_func
13572 +return $ac_func ();
13577 +rm -f conftest.$ac_objext conftest$ac_exeext
13578 +if { (ac_try="$ac_link"
13579 +case "(($ac_try" in
13580 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 + *) ac_try_echo=$ac_try;;
13583 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13584 +$as_echo "$ac_try_echo") >&5
13585 + (eval "$ac_link") 2>conftest.er1
13587 + grep -v '^ *+' conftest.er1 >conftest.err
13588 + rm -f conftest.er1
13589 + cat conftest.err >&5
13590 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 + (exit $ac_status); } && {
13592 + test -z "$ac_c_werror_flag" ||
13593 + test ! -s conftest.err
13594 + } && test -s conftest$ac_exeext && {
13595 + test "$cross_compiling" = yes ||
13596 + $as_test_x conftest$ac_exeext
13598 + eval "$as_ac_var=yes"
13600 + $as_echo "$as_me: failed program was:" >&5
13601 +sed 's/^/| /' conftest.$ac_ext >&5
13603 + eval "$as_ac_var=no"
13606 +rm -rf conftest.dSYM
13607 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13608 + conftest$ac_exeext conftest.$ac_ext
13610 +ac_res=`eval 'as_val=${'$as_ac_var'}
13611 + $as_echo "$as_val"'`
13612 + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13613 +$as_echo "$ac_res" >&6; }
13614 +as_val=`eval 'as_val=${'$as_ac_var'}
13615 + $as_echo "$as_val"'`
13616 + if test "x$as_val" = x""yes; then
13618 cat >>confdefs.h <<_ACEOF
13619 #define CRAY_STACKSEG_END $ac_func
13620 @@ -11922,15 +13072,19 @@ fi
13624 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13625 +{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13626 $as_echo_n "checking stack direction for C alloca... " >&6; }
13627 -if test "${ac_cv_c_stack_direction+set}" = set; then :
13628 +if test "${ac_cv_c_stack_direction+set}" = set; then
13629 $as_echo_n "(cached) " >&6
13631 - if test "$cross_compiling" = yes; then :
13632 + if test "$cross_compiling" = yes; then
13633 ac_cv_c_stack_direction=0
13635 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 + cat >conftest.$ac_ext <<_ACEOF
13639 +cat confdefs.h >>conftest.$ac_ext
13640 +cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 $ac_includes_default
13644 @@ -11953,18 +13107,46 @@ main ()
13645 return find_stack_direction () < 0;
13648 -if ac_fn_c_try_run "$LINENO"; then :
13649 +rm -f conftest$ac_exeext
13650 +if { (ac_try="$ac_link"
13651 +case "(($ac_try" in
13652 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13653 + *) ac_try_echo=$ac_try;;
13655 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13656 +$as_echo "$ac_try_echo") >&5
13657 + (eval "$ac_link") 2>&5
13659 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13661 + { (case "(($ac_try" in
13662 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 + *) ac_try_echo=$ac_try;;
13665 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13666 +$as_echo "$ac_try_echo") >&5
13667 + (eval "$ac_try") 2>&5
13669 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 + (exit $ac_status); }; }; then
13671 ac_cv_c_stack_direction=1
13673 - ac_cv_c_stack_direction=-1
13674 + $as_echo "$as_me: program exited with status $ac_status" >&5
13675 +$as_echo "$as_me: failed program was:" >&5
13676 +sed 's/^/| /' conftest.$ac_ext >&5
13678 +( exit $ac_status )
13679 +ac_cv_c_stack_direction=-1
13681 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13682 - conftest.$ac_objext conftest.beam conftest.$ac_ext
13683 +rm -rf conftest.dSYM
13684 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13689 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13690 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13691 $as_echo "$ac_cv_c_stack_direction" >&6; }
13693 cat >>confdefs.h <<_ACEOF
13694 #define STACK_DIRECTION $ac_cv_c_stack_direction
13696 @@ -11977,61 +13159,711 @@ fi
13697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13699 # This bug is HP SR number 8606223364.
13700 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
13701 +{ $as_echo "$as_me:$LINENO: checking size of double" >&5
13702 $as_echo_n "checking size of double... " >&6; }
13703 -if test "${ac_cv_sizeof_double+set}" = set; then :
13704 +if test "${ac_cv_sizeof_double+set}" = set; then
13705 $as_echo_n "(cached) " >&6
13707 - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
13708 + if test "$cross_compiling" = yes; then
13709 + # Depending upon the size, compute the lo and hi bounds.
13710 +cat >conftest.$ac_ext <<_ACEOF
13713 +cat confdefs.h >>conftest.$ac_ext
13714 +cat >>conftest.$ac_ext <<_ACEOF
13715 +/* end confdefs.h. */
13716 +$ac_includes_default
13720 +static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= 0)];
13721 +test_array [0] = 0
13727 +rm -f conftest.$ac_objext
13728 +if { (ac_try="$ac_compile"
13729 +case "(($ac_try" in
13730 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13731 + *) ac_try_echo=$ac_try;;
13733 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13734 +$as_echo "$ac_try_echo") >&5
13735 + (eval "$ac_compile") 2>conftest.er1
13737 + grep -v '^ *+' conftest.er1 >conftest.err
13738 + rm -f conftest.er1
13739 + cat conftest.err >&5
13740 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 + (exit $ac_status); } && {
13742 + test -z "$ac_c_werror_flag" ||
13743 + test ! -s conftest.err
13744 + } && test -s conftest.$ac_objext; then
13747 + cat >conftest.$ac_ext <<_ACEOF
13750 +cat confdefs.h >>conftest.$ac_ext
13751 +cat >>conftest.$ac_ext <<_ACEOF
13752 +/* end confdefs.h. */
13753 +$ac_includes_default
13757 +static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13758 +test_array [0] = 0
13764 +rm -f conftest.$ac_objext
13765 +if { (ac_try="$ac_compile"
13766 +case "(($ac_try" in
13767 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768 + *) ac_try_echo=$ac_try;;
13770 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13771 +$as_echo "$ac_try_echo") >&5
13772 + (eval "$ac_compile") 2>conftest.er1
13774 + grep -v '^ *+' conftest.er1 >conftest.err
13775 + rm -f conftest.er1
13776 + cat conftest.err >&5
13777 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 + (exit $ac_status); } && {
13779 + test -z "$ac_c_werror_flag" ||
13780 + test ! -s conftest.err
13781 + } && test -s conftest.$ac_objext; then
13782 + ac_hi=$ac_mid; break
13784 + $as_echo "$as_me: failed program was:" >&5
13785 +sed 's/^/| /' conftest.$ac_ext >&5
13787 + ac_lo=`expr $ac_mid + 1`
13788 + if test $ac_lo -le $ac_mid; then
13792 + ac_mid=`expr 2 '*' $ac_mid + 1`
13795 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13798 + $as_echo "$as_me: failed program was:" >&5
13799 +sed 's/^/| /' conftest.$ac_ext >&5
13801 + cat >conftest.$ac_ext <<_ACEOF
13804 +cat confdefs.h >>conftest.$ac_ext
13805 +cat >>conftest.$ac_ext <<_ACEOF
13806 +/* end confdefs.h. */
13807 +$ac_includes_default
13811 +static int test_array [1 - 2 * !(((long int) (sizeof (double))) < 0)];
13812 +test_array [0] = 0
13818 +rm -f conftest.$ac_objext
13819 +if { (ac_try="$ac_compile"
13820 +case "(($ac_try" in
13821 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 + *) ac_try_echo=$ac_try;;
13824 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13825 +$as_echo "$ac_try_echo") >&5
13826 + (eval "$ac_compile") 2>conftest.er1
13828 + grep -v '^ *+' conftest.er1 >conftest.err
13829 + rm -f conftest.er1
13830 + cat conftest.err >&5
13831 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 + (exit $ac_status); } && {
13833 + test -z "$ac_c_werror_flag" ||
13834 + test ! -s conftest.err
13835 + } && test -s conftest.$ac_objext; then
13836 + ac_hi=-1 ac_mid=-1
13838 + cat >conftest.$ac_ext <<_ACEOF
13841 +cat confdefs.h >>conftest.$ac_ext
13842 +cat >>conftest.$ac_ext <<_ACEOF
13843 +/* end confdefs.h. */
13844 +$ac_includes_default
13848 +static int test_array [1 - 2 * !(((long int) (sizeof (double))) >= $ac_mid)];
13849 +test_array [0] = 0
13855 +rm -f conftest.$ac_objext
13856 +if { (ac_try="$ac_compile"
13857 +case "(($ac_try" in
13858 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 + *) ac_try_echo=$ac_try;;
13861 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13862 +$as_echo "$ac_try_echo") >&5
13863 + (eval "$ac_compile") 2>conftest.er1
13865 + grep -v '^ *+' conftest.er1 >conftest.err
13866 + rm -f conftest.er1
13867 + cat conftest.err >&5
13868 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 + (exit $ac_status); } && {
13870 + test -z "$ac_c_werror_flag" ||
13871 + test ! -s conftest.err
13872 + } && test -s conftest.$ac_objext; then
13873 + ac_lo=$ac_mid; break
13875 + $as_echo "$as_me: failed program was:" >&5
13876 +sed 's/^/| /' conftest.$ac_ext >&5
13878 + ac_hi=`expr '(' $ac_mid ')' - 1`
13879 + if test $ac_mid -le $ac_hi; then
13883 + ac_mid=`expr 2 '*' $ac_mid`
13886 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 + $as_echo "$as_me: failed program was:" >&5
13890 +sed 's/^/| /' conftest.$ac_ext >&5
13895 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13898 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13899 +# Binary search between lo and hi bounds.
13900 +while test "x$ac_lo" != "x$ac_hi"; do
13901 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13902 + cat >conftest.$ac_ext <<_ACEOF
13905 +cat confdefs.h >>conftest.$ac_ext
13906 +cat >>conftest.$ac_ext <<_ACEOF
13907 +/* end confdefs.h. */
13908 +$ac_includes_default
13912 +static int test_array [1 - 2 * !(((long int) (sizeof (double))) <= $ac_mid)];
13913 +test_array [0] = 0
13919 +rm -f conftest.$ac_objext
13920 +if { (ac_try="$ac_compile"
13921 +case "(($ac_try" in
13922 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 + *) ac_try_echo=$ac_try;;
13925 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13926 +$as_echo "$ac_try_echo") >&5
13927 + (eval "$ac_compile") 2>conftest.er1
13929 + grep -v '^ *+' conftest.er1 >conftest.err
13930 + rm -f conftest.er1
13931 + cat conftest.err >&5
13932 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 + (exit $ac_status); } && {
13934 + test -z "$ac_c_werror_flag" ||
13935 + test ! -s conftest.err
13936 + } && test -s conftest.$ac_objext; then
13939 + $as_echo "$as_me: failed program was:" >&5
13940 +sed 's/^/| /' conftest.$ac_ext >&5
13942 + ac_lo=`expr '(' $ac_mid ')' + 1`
13945 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948 +?*) ac_cv_sizeof_double=$ac_lo;;
13949 +'') if test "$ac_cv_type_double" = yes; then
13950 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13951 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13952 +{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
13953 +See \`config.log' for more details." >&5
13954 +$as_echo "$as_me: error: cannot compute sizeof (double)
13955 +See \`config.log' for more details." >&2;}
13956 + { (exit 77); exit 77; }; }; }
13958 + ac_cv_sizeof_double=0
13962 + cat >conftest.$ac_ext <<_ACEOF
13965 +cat confdefs.h >>conftest.$ac_ext
13966 +cat >>conftest.$ac_ext <<_ACEOF
13967 +/* end confdefs.h. */
13968 +$ac_includes_default
13969 +static long int longval () { return (long int) (sizeof (double)); }
13970 +static unsigned long int ulongval () { return (long int) (sizeof (double)); }
13971 +#include <stdio.h>
13972 +#include <stdlib.h>
13977 + FILE *f = fopen ("conftest.val", "w");
13980 + if (((long int) (sizeof (double))) < 0)
13982 + long int i = longval ();
13983 + if (i != ((long int) (sizeof (double))))
13985 + fprintf (f, "%ld", i);
13989 + unsigned long int i = ulongval ();
13990 + if (i != ((long int) (sizeof (double))))
13992 + fprintf (f, "%lu", i);
13994 + /* Do not output a trailing newline, as this causes \r\n confusion
13995 + on some platforms. */
13996 + return ferror (f) || fclose (f) != 0;
14002 +rm -f conftest$ac_exeext
14003 +if { (ac_try="$ac_link"
14004 +case "(($ac_try" in
14005 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 + *) ac_try_echo=$ac_try;;
14008 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14009 +$as_echo "$ac_try_echo") >&5
14010 + (eval "$ac_link") 2>&5
14012 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14014 + { (case "(($ac_try" in
14015 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 + *) ac_try_echo=$ac_try;;
14018 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14019 +$as_echo "$ac_try_echo") >&5
14020 + (eval "$ac_try") 2>&5
14022 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 + (exit $ac_status); }; }; then
14024 + ac_cv_sizeof_double=`cat conftest.val`
14026 + $as_echo "$as_me: program exited with status $ac_status" >&5
14027 +$as_echo "$as_me: failed program was:" >&5
14028 +sed 's/^/| /' conftest.$ac_ext >&5
14030 +( exit $ac_status )
14031 +if test "$ac_cv_type_double" = yes; then
14032 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14033 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14034 +{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (double)
14035 +See \`config.log' for more details." >&5
14036 +$as_echo "$as_me: error: cannot compute sizeof (double)
14037 +See \`config.log' for more details." >&2;}
14038 + { (exit 77); exit 77; }; }; }
14040 + ac_cv_sizeof_double=0
14043 +rm -rf conftest.dSYM
14044 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14046 +rm -f conftest.val
14048 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
14049 +$as_echo "$ac_cv_sizeof_double" >&6; }
14053 +cat >>confdefs.h <<_ACEOF
14054 +#define SIZEOF_DOUBLE $ac_cv_sizeof_double
14058 +# The cast to long int works around a bug in the HP C Compiler
14059 +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14060 +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14061 +# This bug is HP SR number 8606223364.
14062 +{ $as_echo "$as_me:$LINENO: checking size of long double" >&5
14063 +$as_echo_n "checking size of long double... " >&6; }
14064 +if test "${ac_cv_sizeof_long_double+set}" = set; then
14065 + $as_echo_n "(cached) " >&6
14067 + if test "$cross_compiling" = yes; then
14068 + # Depending upon the size, compute the lo and hi bounds.
14069 +cat >conftest.$ac_ext <<_ACEOF
14072 +cat confdefs.h >>conftest.$ac_ext
14073 +cat >>conftest.$ac_ext <<_ACEOF
14074 +/* end confdefs.h. */
14075 +$ac_includes_default
14079 +static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
14080 +test_array [0] = 0
14086 +rm -f conftest.$ac_objext
14087 +if { (ac_try="$ac_compile"
14088 +case "(($ac_try" in
14089 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090 + *) ac_try_echo=$ac_try;;
14092 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14093 +$as_echo "$ac_try_echo") >&5
14094 + (eval "$ac_compile") 2>conftest.er1
14096 + grep -v '^ *+' conftest.er1 >conftest.err
14097 + rm -f conftest.er1
14098 + cat conftest.err >&5
14099 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 + (exit $ac_status); } && {
14101 + test -z "$ac_c_werror_flag" ||
14102 + test ! -s conftest.err
14103 + } && test -s conftest.$ac_objext; then
14106 + cat >conftest.$ac_ext <<_ACEOF
14109 +cat confdefs.h >>conftest.$ac_ext
14110 +cat >>conftest.$ac_ext <<_ACEOF
14111 +/* end confdefs.h. */
14112 +$ac_includes_default
14116 +static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
14117 +test_array [0] = 0
14123 +rm -f conftest.$ac_objext
14124 +if { (ac_try="$ac_compile"
14125 +case "(($ac_try" in
14126 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 + *) ac_try_echo=$ac_try;;
14129 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14130 +$as_echo "$ac_try_echo") >&5
14131 + (eval "$ac_compile") 2>conftest.er1
14133 + grep -v '^ *+' conftest.er1 >conftest.err
14134 + rm -f conftest.er1
14135 + cat conftest.err >&5
14136 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 + (exit $ac_status); } && {
14138 + test -z "$ac_c_werror_flag" ||
14139 + test ! -s conftest.err
14140 + } && test -s conftest.$ac_objext; then
14141 + ac_hi=$ac_mid; break
14143 + $as_echo "$as_me: failed program was:" >&5
14144 +sed 's/^/| /' conftest.$ac_ext >&5
14146 + ac_lo=`expr $ac_mid + 1`
14147 + if test $ac_lo -le $ac_mid; then
14151 + ac_mid=`expr 2 '*' $ac_mid + 1`
14154 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14157 + $as_echo "$as_me: failed program was:" >&5
14158 +sed 's/^/| /' conftest.$ac_ext >&5
14160 + cat >conftest.$ac_ext <<_ACEOF
14163 +cat confdefs.h >>conftest.$ac_ext
14164 +cat >>conftest.$ac_ext <<_ACEOF
14165 +/* end confdefs.h. */
14166 +$ac_includes_default
14170 +static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
14171 +test_array [0] = 0
14177 +rm -f conftest.$ac_objext
14178 +if { (ac_try="$ac_compile"
14179 +case "(($ac_try" in
14180 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 + *) ac_try_echo=$ac_try;;
14183 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14184 +$as_echo "$ac_try_echo") >&5
14185 + (eval "$ac_compile") 2>conftest.er1
14187 + grep -v '^ *+' conftest.er1 >conftest.err
14188 + rm -f conftest.er1
14189 + cat conftest.err >&5
14190 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 + (exit $ac_status); } && {
14192 + test -z "$ac_c_werror_flag" ||
14193 + test ! -s conftest.err
14194 + } && test -s conftest.$ac_objext; then
14195 + ac_hi=-1 ac_mid=-1
14197 + cat >conftest.$ac_ext <<_ACEOF
14200 +cat confdefs.h >>conftest.$ac_ext
14201 +cat >>conftest.$ac_ext <<_ACEOF
14202 +/* end confdefs.h. */
14203 +$ac_includes_default
14207 +static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
14208 +test_array [0] = 0
14214 +rm -f conftest.$ac_objext
14215 +if { (ac_try="$ac_compile"
14216 +case "(($ac_try" in
14217 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218 + *) ac_try_echo=$ac_try;;
14220 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14221 +$as_echo "$ac_try_echo") >&5
14222 + (eval "$ac_compile") 2>conftest.er1
14224 + grep -v '^ *+' conftest.er1 >conftest.err
14225 + rm -f conftest.er1
14226 + cat conftest.err >&5
14227 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228 + (exit $ac_status); } && {
14229 + test -z "$ac_c_werror_flag" ||
14230 + test ! -s conftest.err
14231 + } && test -s conftest.$ac_objext; then
14232 + ac_lo=$ac_mid; break
14234 + $as_echo "$as_me: failed program was:" >&5
14235 +sed 's/^/| /' conftest.$ac_ext >&5
14237 + ac_hi=`expr '(' $ac_mid ')' - 1`
14238 + if test $ac_mid -le $ac_hi; then
14242 + ac_mid=`expr 2 '*' $ac_mid`
14245 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14248 + $as_echo "$as_me: failed program was:" >&5
14249 +sed 's/^/| /' conftest.$ac_ext >&5
14254 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14258 +# Binary search between lo and hi bounds.
14259 +while test "x$ac_lo" != "x$ac_hi"; do
14260 + ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14261 + cat >conftest.$ac_ext <<_ACEOF
14264 +cat confdefs.h >>conftest.$ac_ext
14265 +cat >>conftest.$ac_ext <<_ACEOF
14266 +/* end confdefs.h. */
14267 +$ac_includes_default
14271 +static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
14272 +test_array [0] = 0
14278 +rm -f conftest.$ac_objext
14279 +if { (ac_try="$ac_compile"
14280 +case "(($ac_try" in
14281 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 + *) ac_try_echo=$ac_try;;
14284 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14285 +$as_echo "$ac_try_echo") >&5
14286 + (eval "$ac_compile") 2>conftest.er1
14288 + grep -v '^ *+' conftest.er1 >conftest.err
14289 + rm -f conftest.er1
14290 + cat conftest.err >&5
14291 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 + (exit $ac_status); } && {
14293 + test -z "$ac_c_werror_flag" ||
14294 + test ! -s conftest.err
14295 + } && test -s conftest.$ac_objext; then
14298 - if test "$ac_cv_type_double" = yes; then
14299 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14300 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14301 -{ as_fn_set_status 77
14302 -as_fn_error "cannot compute sizeof (double)
14303 -See \`config.log' for more details." "$LINENO" 5; }; }
14305 - ac_cv_sizeof_double=0
14308 + $as_echo "$as_me: failed program was:" >&5
14309 +sed 's/^/| /' conftest.$ac_ext >&5
14311 + ac_lo=`expr '(' $ac_mid ')' + 1`
14313 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14314 -$as_echo "$ac_cv_sizeof_double" >&6; }
14318 -cat >>confdefs.h <<_ACEOF
14319 -#define SIZEOF_DOUBLE $ac_cv_sizeof_double
14320 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323 +?*) ac_cv_sizeof_long_double=$ac_lo;;
14324 +'') if test "$ac_cv_type_long_double" = yes; then
14325 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14326 +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14327 +{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
14328 +See \`config.log' for more details." >&5
14329 +$as_echo "$as_me: error: cannot compute sizeof (long double)
14330 +See \`config.log' for more details." >&2;}
14331 + { (exit 77); exit 77; }; }; }
14333 + ac_cv_sizeof_long_double=0
14337 + cat >conftest.$ac_ext <<_ACEOF
14340 +cat confdefs.h >>conftest.$ac_ext
14341 +cat >>conftest.$ac_ext <<_ACEOF
14342 +/* end confdefs.h. */
14343 +$ac_includes_default
14344 +static long int longval () { return (long int) (sizeof (long double)); }
14345 +static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
14346 +#include <stdio.h>
14347 +#include <stdlib.h>
14352 + FILE *f = fopen ("conftest.val", "w");
14355 + if (((long int) (sizeof (long double))) < 0)
14357 + long int i = longval ();
14358 + if (i != ((long int) (sizeof (long double))))
14360 + fprintf (f, "%ld", i);
14364 + unsigned long int i = ulongval ();
14365 + if (i != ((long int) (sizeof (long double))))
14367 + fprintf (f, "%lu", i);
14369 + /* Do not output a trailing newline, as this causes \r\n confusion
14370 + on some platforms. */
14371 + return ferror (f) || fclose (f) != 0;
14373 -# The cast to long int works around a bug in the HP C Compiler
14374 -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14375 -# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14376 -# This bug is HP SR number 8606223364.
14377 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14378 -$as_echo_n "checking size of long double... " >&6; }
14379 -if test "${ac_cv_sizeof_long_double+set}" = set; then :
14380 - $as_echo_n "(cached) " >&6
14385 +rm -f conftest$ac_exeext
14386 +if { (ac_try="$ac_link"
14387 +case "(($ac_try" in
14388 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389 + *) ac_try_echo=$ac_try;;
14391 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14392 +$as_echo "$ac_try_echo") >&5
14393 + (eval "$ac_link") 2>&5
14395 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14397 + { (case "(($ac_try" in
14398 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 + *) ac_try_echo=$ac_try;;
14401 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14402 +$as_echo "$ac_try_echo") >&5
14403 + (eval "$ac_try") 2>&5
14405 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 + (exit $ac_status); }; }; then
14407 + ac_cv_sizeof_long_double=`cat conftest.val`
14409 - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
14410 + $as_echo "$as_me: program exited with status $ac_status" >&5
14411 +$as_echo "$as_me: failed program was:" >&5
14412 +sed 's/^/| /' conftest.$ac_ext >&5
14415 - if test "$ac_cv_type_long_double" = yes; then
14416 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14417 +( exit $ac_status )
14418 +if test "$ac_cv_type_long_double" = yes; then
14419 + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14421 -{ as_fn_set_status 77
14422 -as_fn_error "cannot compute sizeof (long double)
14423 -See \`config.log' for more details." "$LINENO" 5; }; }
14424 +{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
14425 +See \`config.log' for more details." >&5
14426 +$as_echo "$as_me: error: cannot compute sizeof (long double)
14427 +See \`config.log' for more details." >&2;}
14428 + { (exit 77); exit 77; }; }; }
14430 ac_cv_sizeof_long_double=0
14434 +rm -rf conftest.dSYM
14435 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14437 +rm -f conftest.val
14439 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14440 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
14441 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14444 @@ -12049,21 +13881,28 @@ if test -z "$HAVE_LONG_DOUBLE"; then
14445 if test $ac_cv_sizeof_long_double != 0; then
14448 -$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14449 +cat >>confdefs.h <<\_ACEOF
14450 +#define HAVE_LONG_DOUBLE 1
14458 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14460 + { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14461 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14462 -if test "${ac_cv_c_bigendian+set}" = set; then :
14463 +if test "${ac_cv_c_bigendian+set}" = set; then
14464 $as_echo_n "(cached) " >&6
14466 ac_cv_c_bigendian=unknown
14467 # See if we're dealing with a universal compiler.
14468 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 + cat >conftest.$ac_ext <<_ACEOF
14472 +cat confdefs.h >>conftest.$ac_ext
14473 +cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 #ifndef __APPLE_CC__
14476 not a universal capable compiler
14477 @@ -12071,34 +13910,46 @@ else
14481 -if ac_fn_c_try_compile "$LINENO"; then :
14482 +rm -f conftest.$ac_objext
14483 +if { (ac_try="$ac_compile"
14484 +case "(($ac_try" in
14485 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486 + *) ac_try_echo=$ac_try;;
14488 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14489 +$as_echo "$ac_try_echo") >&5
14490 + (eval "$ac_compile") 2>conftest.er1
14492 + grep -v '^ *+' conftest.er1 >conftest.err
14493 + rm -f conftest.er1
14494 + cat conftest.err >&5
14495 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 + (exit $ac_status); } && {
14497 + test -z "$ac_c_werror_flag" ||
14498 + test ! -s conftest.err
14499 + } && test -s conftest.$ac_objext; then
14501 # Check for potential -arch flags. It is not universal unless
14502 - # there are at least two -arch flags with different values.
14505 - for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14506 - if test -n "$ac_prev"; then
14508 - i?86 | x86_64 | ppc | ppc64)
14509 - if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14512 - ac_cv_c_bigendian=universal
14518 - elif test "x$ac_word" = "x-arch"; then
14522 + # there are some -arch flags. Note that *ppc* also matches
14523 + # ppc64. This check is also rather less than ideal.
14524 + case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14525 + *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14528 + $as_echo "$as_me: failed program was:" >&5
14529 +sed 's/^/| /' conftest.$ac_ext >&5
14534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535 if test $ac_cv_c_bigendian = unknown; then
14536 # See if sys/param.h defines the BYTE_ORDER macro.
14537 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 + cat >conftest.$ac_ext <<_ACEOF
14541 +cat confdefs.h >>conftest.$ac_ext
14542 +cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 #include <sys/types.h>
14545 #include <sys/param.h>
14546 @@ -12116,9 +13967,30 @@ main ()
14550 -if ac_fn_c_try_compile "$LINENO"; then :
14551 +rm -f conftest.$ac_objext
14552 +if { (ac_try="$ac_compile"
14553 +case "(($ac_try" in
14554 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 + *) ac_try_echo=$ac_try;;
14557 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14558 +$as_echo "$ac_try_echo") >&5
14559 + (eval "$ac_compile") 2>conftest.er1
14561 + grep -v '^ *+' conftest.er1 >conftest.err
14562 + rm -f conftest.er1
14563 + cat conftest.err >&5
14564 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 + (exit $ac_status); } && {
14566 + test -z "$ac_c_werror_flag" ||
14567 + test ! -s conftest.err
14568 + } && test -s conftest.$ac_objext; then
14569 # It does; now see whether it defined to BIG_ENDIAN or not.
14570 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 + cat >conftest.$ac_ext <<_ACEOF
14574 +cat confdefs.h >>conftest.$ac_ext
14575 +cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 #include <sys/types.h>
14578 #include <sys/param.h>
14579 @@ -12134,18 +14006,49 @@ main ()
14583 -if ac_fn_c_try_compile "$LINENO"; then :
14584 +rm -f conftest.$ac_objext
14585 +if { (ac_try="$ac_compile"
14586 +case "(($ac_try" in
14587 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 + *) ac_try_echo=$ac_try;;
14590 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14591 +$as_echo "$ac_try_echo") >&5
14592 + (eval "$ac_compile") 2>conftest.er1
14594 + grep -v '^ *+' conftest.er1 >conftest.err
14595 + rm -f conftest.er1
14596 + cat conftest.err >&5
14597 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 + (exit $ac_status); } && {
14599 + test -z "$ac_c_werror_flag" ||
14600 + test ! -s conftest.err
14601 + } && test -s conftest.$ac_objext; then
14602 ac_cv_c_bigendian=yes
14604 - ac_cv_c_bigendian=no
14605 + $as_echo "$as_me: failed program was:" >&5
14606 +sed 's/^/| /' conftest.$ac_ext >&5
14608 + ac_cv_c_bigendian=no
14611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14613 + $as_echo "$as_me: failed program was:" >&5
14614 +sed 's/^/| /' conftest.$ac_ext >&5
14619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621 if test $ac_cv_c_bigendian = unknown; then
14622 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14623 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14624 + cat >conftest.$ac_ext <<_ACEOF
14627 +cat confdefs.h >>conftest.$ac_ext
14628 +cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h. */
14630 #include <limits.h>
14632 @@ -12160,9 +14063,30 @@ main ()
14636 -if ac_fn_c_try_compile "$LINENO"; then :
14637 +rm -f conftest.$ac_objext
14638 +if { (ac_try="$ac_compile"
14639 +case "(($ac_try" in
14640 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 + *) ac_try_echo=$ac_try;;
14643 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14644 +$as_echo "$ac_try_echo") >&5
14645 + (eval "$ac_compile") 2>conftest.er1
14647 + grep -v '^ *+' conftest.er1 >conftest.err
14648 + rm -f conftest.er1
14649 + cat conftest.err >&5
14650 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 + (exit $ac_status); } && {
14652 + test -z "$ac_c_werror_flag" ||
14653 + test ! -s conftest.err
14654 + } && test -s conftest.$ac_objext; then
14655 # It does; now see whether it defined to _BIG_ENDIAN or not.
14656 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14657 + cat >conftest.$ac_ext <<_ACEOF
14660 +cat confdefs.h >>conftest.$ac_ext
14661 +cat >>conftest.$ac_ext <<_ACEOF
14662 /* end confdefs.h. */
14663 #include <limits.h>
14665 @@ -12177,20 +14101,51 @@ main ()
14669 -if ac_fn_c_try_compile "$LINENO"; then :
14670 +rm -f conftest.$ac_objext
14671 +if { (ac_try="$ac_compile"
14672 +case "(($ac_try" in
14673 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 + *) ac_try_echo=$ac_try;;
14676 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14677 +$as_echo "$ac_try_echo") >&5
14678 + (eval "$ac_compile") 2>conftest.er1
14680 + grep -v '^ *+' conftest.er1 >conftest.err
14681 + rm -f conftest.er1
14682 + cat conftest.err >&5
14683 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 + (exit $ac_status); } && {
14685 + test -z "$ac_c_werror_flag" ||
14686 + test ! -s conftest.err
14687 + } && test -s conftest.$ac_objext; then
14688 ac_cv_c_bigendian=yes
14690 - ac_cv_c_bigendian=no
14691 + $as_echo "$as_me: failed program was:" >&5
14692 +sed 's/^/| /' conftest.$ac_ext >&5
14694 + ac_cv_c_bigendian=no
14697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699 + $as_echo "$as_me: failed program was:" >&5
14700 +sed 's/^/| /' conftest.$ac_ext >&5
14705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14707 if test $ac_cv_c_bigendian = unknown; then
14708 # Compile a test program.
14709 - if test "$cross_compiling" = yes; then :
14710 + if test "$cross_compiling" = yes; then
14711 # Try to guess by grepping values from an object file.
14712 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713 + cat >conftest.$ac_ext <<_ACEOF
14716 +cat confdefs.h >>conftest.$ac_ext
14717 +cat >>conftest.$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719 short int ascii_mm[] =
14720 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14721 @@ -12216,7 +14171,24 @@ return use_ascii (foo) == use_ebcdic (fo
14725 -if ac_fn_c_try_compile "$LINENO"; then :
14726 +rm -f conftest.$ac_objext
14727 +if { (ac_try="$ac_compile"
14728 +case "(($ac_try" in
14729 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 + *) ac_try_echo=$ac_try;;
14732 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14733 +$as_echo "$ac_try_echo") >&5
14734 + (eval "$ac_compile") 2>conftest.er1
14736 + grep -v '^ *+' conftest.er1 >conftest.err
14737 + rm -f conftest.er1
14738 + cat conftest.err >&5
14739 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 + (exit $ac_status); } && {
14741 + test -z "$ac_c_werror_flag" ||
14742 + test ! -s conftest.err
14743 + } && test -s conftest.$ac_objext; then
14744 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14745 ac_cv_c_bigendian=yes
14747 @@ -12228,10 +14200,20 @@ if ac_fn_c_try_compile "$LINENO"; then :
14748 ac_cv_c_bigendian=unknown
14752 + $as_echo "$as_me: failed program was:" >&5
14753 +sed 's/^/| /' conftest.$ac_ext >&5
14758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14760 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761 + cat >conftest.$ac_ext <<_ACEOF
14764 +cat confdefs.h >>conftest.$ac_ext
14765 +cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14767 $ac_includes_default
14769 @@ -12251,44 +14233,82 @@ main ()
14773 -if ac_fn_c_try_run "$LINENO"; then :
14774 +rm -f conftest$ac_exeext
14775 +if { (ac_try="$ac_link"
14776 +case "(($ac_try" in
14777 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778 + *) ac_try_echo=$ac_try;;
14780 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14781 +$as_echo "$ac_try_echo") >&5
14782 + (eval "$ac_link") 2>&5
14784 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14786 + { (case "(($ac_try" in
14787 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788 + *) ac_try_echo=$ac_try;;
14790 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14791 +$as_echo "$ac_try_echo") >&5
14792 + (eval "$ac_try") 2>&5
14794 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 + (exit $ac_status); }; }; then
14796 ac_cv_c_bigendian=no
14798 - ac_cv_c_bigendian=yes
14799 + $as_echo "$as_me: program exited with status $ac_status" >&5
14800 +$as_echo "$as_me: failed program was:" >&5
14801 +sed 's/^/| /' conftest.$ac_ext >&5
14803 +( exit $ac_status )
14804 +ac_cv_c_bigendian=yes
14806 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14807 - conftest.$ac_objext conftest.beam conftest.$ac_ext
14808 +rm -rf conftest.dSYM
14809 +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14815 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14816 +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14817 $as_echo "$ac_cv_c_bigendian" >&6; }
14818 case $ac_cv_c_bigendian in #(
14820 - $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14821 + cat >>confdefs.h <<\_ACEOF
14822 +#define WORDS_BIGENDIAN 1
14829 -$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14830 +cat >>confdefs.h <<\_ACEOF
14831 +#define AC_APPLE_UNIVERSAL_BUILD 1
14836 - as_fn_error "unknown endianness
14837 - presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14838 + { { $as_echo "$as_me:$LINENO: error: unknown endianness
14839 + presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14840 +$as_echo "$as_me: error: unknown endianness
14841 + presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14842 + { (exit 1); exit 1; }; } ;;
14846 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14847 +{ $as_echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
14848 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14849 -if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then :
14850 +if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
14851 $as_echo_n "(cached) " >&6
14854 libffi_cv_as_cfi_pseudo_op=unknown
14855 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 + cat >conftest.$ac_ext <<_ACEOF
14859 +cat confdefs.h >>conftest.$ac_ext
14860 +cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h. */
14862 asm (".cfi_startproc\n\t.cfi_endproc");
14864 @@ -12299,26 +14319,49 @@ main ()
14868 -if ac_fn_c_try_compile "$LINENO"; then :
14869 +rm -f conftest.$ac_objext
14870 +if { (ac_try="$ac_compile"
14871 +case "(($ac_try" in
14872 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873 + *) ac_try_echo=$ac_try;;
14875 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14876 +$as_echo "$ac_try_echo") >&5
14877 + (eval "$ac_compile") 2>conftest.er1
14879 + grep -v '^ *+' conftest.er1 >conftest.err
14880 + rm -f conftest.er1
14881 + cat conftest.err >&5
14882 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 + (exit $ac_status); } && {
14884 + test -z "$ac_c_werror_flag" ||
14885 + test ! -s conftest.err
14886 + } && test -s conftest.$ac_objext; then
14887 libffi_cv_as_cfi_pseudo_op=yes
14889 - libffi_cv_as_cfi_pseudo_op=no
14890 + $as_echo "$as_me: failed program was:" >&5
14891 +sed 's/^/| /' conftest.$ac_ext >&5
14893 + libffi_cv_as_cfi_pseudo_op=no
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14899 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_cfi_pseudo_op" >&5
14900 +{ $as_echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
14901 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
14902 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
14904 -$as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14905 +cat >>confdefs.h <<\_ACEOF
14906 +#define HAVE_AS_CFI_PSEUDO_OP 1
14911 if test x$TARGET = xSPARC; then
14912 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14913 + { $as_echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
14914 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14915 -if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
14916 +if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
14917 $as_echo_n "(cached) " >&6
14920 @@ -12326,7 +14369,11 @@ else
14921 save_LDFLAGS="$LDFLAGS"
14922 CFLAGS="$CFLAGS -fpic"
14923 LDFLAGS="$LDFLAGS -shared"
14924 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 + cat >conftest.$ac_ext <<_ACEOF
14928 +cat confdefs.h >>conftest.$ac_ext
14929 +cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h. */
14931 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14933 @@ -12337,33 +14384,64 @@ main ()
14937 -if ac_fn_c_try_link "$LINENO"; then :
14938 +rm -f conftest.$ac_objext conftest$ac_exeext
14939 +if { (ac_try="$ac_link"
14940 +case "(($ac_try" in
14941 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 + *) ac_try_echo=$ac_try;;
14944 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14945 +$as_echo "$ac_try_echo") >&5
14946 + (eval "$ac_link") 2>conftest.er1
14948 + grep -v '^ *+' conftest.er1 >conftest.err
14949 + rm -f conftest.er1
14950 + cat conftest.err >&5
14951 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14952 + (exit $ac_status); } && {
14953 + test -z "$ac_c_werror_flag" ||
14954 + test ! -s conftest.err
14955 + } && test -s conftest$ac_exeext && {
14956 + test "$cross_compiling" = yes ||
14957 + $as_test_x conftest$ac_exeext
14959 libffi_cv_as_sparc_ua_pcrel=yes
14961 - libffi_cv_as_sparc_ua_pcrel=no
14962 + $as_echo "$as_me: failed program was:" >&5
14963 +sed 's/^/| /' conftest.$ac_ext >&5
14965 + libffi_cv_as_sparc_ua_pcrel=no
14967 -rm -f core conftest.err conftest.$ac_objext \
14968 - conftest$ac_exeext conftest.$ac_ext
14970 +rm -rf conftest.dSYM
14971 +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14972 + conftest$ac_exeext conftest.$ac_ext
14973 CFLAGS="$save_CFLAGS"
14974 LDFLAGS="$save_LDFLAGS"
14976 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14977 +{ $as_echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14978 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14979 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14981 -$as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14982 +cat >>confdefs.h <<\_ACEOF
14983 +#define HAVE_AS_SPARC_UA_PCREL 1
14988 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14989 + { $as_echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
14990 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14991 -if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
14992 +if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
14993 $as_echo_n "(cached) " >&6
14996 libffi_cv_as_register_pseudo_op=unknown
14997 # Check if we have .register
14998 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14999 + cat >conftest.$ac_ext <<_ACEOF
15002 +cat confdefs.h >>conftest.$ac_ext
15003 +cat >>conftest.$ac_ext <<_ACEOF
15004 /* end confdefs.h. */
15005 asm (".register %g2, #scratch");
15007 @@ -12374,27 +14452,50 @@ main ()
15011 -if ac_fn_c_try_compile "$LINENO"; then :
15012 +rm -f conftest.$ac_objext
15013 +if { (ac_try="$ac_compile"
15014 +case "(($ac_try" in
15015 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 + *) ac_try_echo=$ac_try;;
15018 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15019 +$as_echo "$ac_try_echo") >&5
15020 + (eval "$ac_compile") 2>conftest.er1
15022 + grep -v '^ *+' conftest.er1 >conftest.err
15023 + rm -f conftest.er1
15024 + cat conftest.err >&5
15025 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 + (exit $ac_status); } && {
15027 + test -z "$ac_c_werror_flag" ||
15028 + test ! -s conftest.err
15029 + } && test -s conftest.$ac_objext; then
15030 libffi_cv_as_register_pseudo_op=yes
15032 - libffi_cv_as_register_pseudo_op=no
15033 + $as_echo "$as_me: failed program was:" >&5
15034 +sed 's/^/| /' conftest.$ac_ext >&5
15036 + libffi_cv_as_register_pseudo_op=no
15039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15043 +{ $as_echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
15044 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15045 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
15047 -$as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15048 +cat >>confdefs.h <<\_ACEOF
15049 +#define HAVE_AS_REGISTER_PSEUDO_OP 1
15055 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
15056 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15057 + { $as_echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
15058 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15059 -if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
15060 +if test "${libffi_cv_as_x86_pcrel+set}" = set; then
15061 $as_echo_n "(cached) " >&6
15064 @@ -12405,23 +14506,29 @@ else
15068 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15069 +{ $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
15070 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15071 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15073 -$as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15074 +cat >>confdefs.h <<\_ACEOF
15075 +#define HAVE_AS_X86_PCREL 1
15080 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
15081 + { $as_echo "$as_me:$LINENO: checking assembler .ascii pseudo-op support" >&5
15082 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
15083 -if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then :
15084 +if test "${libffi_cv_as_ascii_pseudo_op+set}" = set; then
15085 $as_echo_n "(cached) " >&6
15088 libffi_cv_as_ascii_pseudo_op=unknown
15089 # Check if we have .ascii
15090 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 + cat >conftest.$ac_ext <<_ACEOF
15094 +cat confdefs.h >>conftest.$ac_ext
15095 +cat >>conftest.$ac_ext <<_ACEOF
15096 /* end confdefs.h. */
15097 asm (".ascii \"string\"");
15099 @@ -12432,31 +14539,58 @@ main ()
15103 -if ac_fn_c_try_compile "$LINENO"; then :
15104 +rm -f conftest.$ac_objext
15105 +if { (ac_try="$ac_compile"
15106 +case "(($ac_try" in
15107 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 + *) ac_try_echo=$ac_try;;
15110 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15111 +$as_echo "$ac_try_echo") >&5
15112 + (eval "$ac_compile") 2>conftest.er1
15114 + grep -v '^ *+' conftest.er1 >conftest.err
15115 + rm -f conftest.er1
15116 + cat conftest.err >&5
15117 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 + (exit $ac_status); } && {
15119 + test -z "$ac_c_werror_flag" ||
15120 + test ! -s conftest.err
15121 + } && test -s conftest.$ac_objext; then
15122 libffi_cv_as_ascii_pseudo_op=yes
15124 - libffi_cv_as_ascii_pseudo_op=no
15125 + $as_echo "$as_me: failed program was:" >&5
15126 +sed 's/^/| /' conftest.$ac_ext >&5
15128 + libffi_cv_as_ascii_pseudo_op=no
15131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
15135 +{ $as_echo "$as_me:$LINENO: result: $libffi_cv_as_ascii_pseudo_op" >&5
15136 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
15137 if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
15139 -$as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
15140 +cat >>confdefs.h <<\_ACEOF
15141 +#define HAVE_AS_ASCII_PSEUDO_OP 1
15146 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
15147 + { $as_echo "$as_me:$LINENO: checking assembler .string pseudo-op support" >&5
15148 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
15149 -if test "${libffi_cv_as_string_pseudo_op+set}" = set; then :
15150 +if test "${libffi_cv_as_string_pseudo_op+set}" = set; then
15151 $as_echo_n "(cached) " >&6
15154 libffi_cv_as_string_pseudo_op=unknown
15155 # Check if we have .string
15156 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 + cat >conftest.$ac_ext <<_ACEOF
15160 +cat confdefs.h >>conftest.$ac_ext
15161 +cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15163 asm (".string \"string\"");
15165 @@ -12467,19 +14601,42 @@ main ()
15169 -if ac_fn_c_try_compile "$LINENO"; then :
15170 +rm -f conftest.$ac_objext
15171 +if { (ac_try="$ac_compile"
15172 +case "(($ac_try" in
15173 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 + *) ac_try_echo=$ac_try;;
15176 +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15177 +$as_echo "$ac_try_echo") >&5
15178 + (eval "$ac_compile") 2>conftest.er1
15180 + grep -v '^ *+' conftest.er1 >conftest.err
15181 + rm -f conftest.er1
15182 + cat conftest.err >&5
15183 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 + (exit $ac_status); } && {
15185 + test -z "$ac_c_werror_flag" ||
15186 + test ! -s conftest.err
15187 + } && test -s conftest.$ac_objext; then
15188 libffi_cv_as_string_pseudo_op=yes
15190 - libffi_cv_as_string_pseudo_op=no
15191 + $as_echo "$as_me: failed program was:" >&5
15192 +sed 's/^/| /' conftest.$ac_ext >&5
15194 + libffi_cv_as_string_pseudo_op=no
15197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
15201 +{ $as_echo "$as_me:$LINENO: result: $libffi_cv_as_string_pseudo_op" >&5
15202 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
15203 if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
15205 -$as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
15206 +cat >>confdefs.h <<\_ACEOF
15207 +#define HAVE_AS_STRING_PSEUDO_OP 1
15212 @@ -12487,15 +14644,17 @@ fi
15214 *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
15216 -$as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15217 +cat >>confdefs.h <<\_ACEOF
15218 +#define FFI_MMAP_EXEC_WRIT 1
15224 if test x$TARGET = xX86_64; then
15225 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15226 + { $as_echo "$as_me:$LINENO: checking assembler supports unwind section type" >&5
15227 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15228 -if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then :
15229 +if test "${libffi_cv_as_x86_64_unwind_section_type+set}" = set; then
15230 $as_echo_n "(cached) " >&6
15233 @@ -12506,18 +14665,20 @@ else
15237 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
15238 +{ $as_echo "$as_me:$LINENO: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
15239 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
15240 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
15242 -$as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15243 +cat >>confdefs.h <<\_ACEOF
15244 +#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1
15250 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15251 +{ $as_echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
15252 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15253 -if test "${libffi_cv_ro_eh_frame+set}" = set; then :
15254 +if test "${libffi_cv_ro_eh_frame+set}" = set; then
15255 $as_echo_n "(cached) " >&6
15258 @@ -12534,35 +14695,41 @@ else
15262 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
15263 +{ $as_echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
15264 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
15265 if test "x$libffi_cv_ro_eh_frame" = xyes; then
15267 -$as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
15268 +cat >>confdefs.h <<\_ACEOF
15269 +#define HAVE_RO_EH_FRAME 1
15273 -$as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15274 +cat >>confdefs.h <<\_ACEOF
15275 +#define EH_FRAME_FLAGS "a"
15280 -$as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15281 +cat >>confdefs.h <<\_ACEOF
15282 +#define EH_FRAME_FLAGS "aw"
15287 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
15288 +{ $as_echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
15289 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
15290 -if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
15291 +if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
15292 $as_echo_n "(cached) " >&6
15295 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
15296 libffi_cv_hidden_visibility_attribute=no
15297 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
15298 - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15299 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15300 (eval $ac_try) 2>&5
15302 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15303 - test $ac_status = 0; }; }; then
15304 + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 + (exit $ac_status); }; }; then
15306 if grep '\.hidden.*foo' conftest.s >/dev/null; then
15307 libffi_cv_hidden_visibility_attribute=yes
15309 @@ -12570,11 +14737,13 @@ else
15313 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
15314 +{ $as_echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
15315 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
15316 if test $libffi_cv_hidden_visibility_attribute = yes; then
15318 -$as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
15319 +cat >>confdefs.h <<\_ACEOF
15320 +#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
15325 @@ -12585,41 +14754,50 @@ fi
15330 # Check whether --enable-debug was given.
15331 -if test "${enable_debug+set}" = set; then :
15332 +if test "${enable_debug+set}" = set; then
15333 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
15335 -$as_echo "#define FFI_DEBUG 1" >>confdefs.h
15336 +cat >>confdefs.h <<\_ACEOF
15337 +#define FFI_DEBUG 1
15344 # Check whether --enable-structs was given.
15345 -if test "${enable_structs+set}" = set; then :
15346 +if test "${enable_structs+set}" = set; then
15347 enableval=$enable_structs; if test "$enable_structs" = "no"; then
15349 -$as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
15350 +cat >>confdefs.h <<\_ACEOF
15351 +#define FFI_NO_STRUCTS 1
15358 # Check whether --enable-raw-api was given.
15359 -if test "${enable_raw_api+set}" = set; then :
15360 +if test "${enable_raw_api+set}" = set; then
15361 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
15363 -$as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
15364 +cat >>confdefs.h <<\_ACEOF
15365 +#define FFI_NO_RAW_API 1
15372 # Check whether --enable-purify-safety was given.
15373 -if test "${enable_purify_safety+set}" = set; then :
15374 +if test "${enable_purify_safety+set}" = set; then
15375 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
15377 -$as_echo "#define USING_PURIFY 1" >>confdefs.h
15378 +cat >>confdefs.h <<\_ACEOF
15379 +#define USING_PURIFY 1
15384 @@ -12655,7 +14833,7 @@ ac_config_commands="$ac_config_commands
15385 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
15388 -ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
15389 +ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
15392 cat >confcache <<\_ACEOF
15393 @@ -12685,13 +14863,13 @@ _ACEOF
15397 - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15398 + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
15399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15402 _ | IFS | as_nl) ;; #(
15403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15404 - *) { eval $ac_var=; unset $ac_var;} ;;
15405 + *) $as_unset $ac_var ;;
15409 @@ -12699,8 +14877,8 @@ $as_echo "$as_me: WARNING: cache variabl
15411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15412 *${as_nl}ac_space=\ *)
15413 - # `set' does not quote correctly, so add quotes: double-quote
15414 - # substitution turns \\\\ into \\, and sed turns \\ into \.
15415 + # `set' does not quote correctly, so add quotes (double-quote
15416 + # substitution turns \\\\ into \\, and sed turns \\ into \).
15419 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15420 @@ -12723,11 +14901,11 @@ $as_echo "$as_me: WARNING: cache variabl
15421 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15422 if test -w "$cache_file"; then
15423 test "x$cache_file" != "x/dev/null" &&
15424 - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15425 + { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
15426 $as_echo "$as_me: updating cache $cache_file" >&6;}
15427 cat confcache >$cache_file
15429 - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15430 + { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15431 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15434 @@ -12747,8 +14925,8 @@ for ac_i in : $LIBOBJS; do test "x$ac_i"
15435 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15436 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15437 # will be set to the directory where LIBOBJS objects are built.
15438 - as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15439 - as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15440 + ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15441 + ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15443 LIBOBJS=$ac_libobjs
15445 @@ -12764,128 +14942,228 @@ else
15448 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15449 - as_fn_error "conditional \"AMDEP\" was never defined.
15450 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15451 + { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15452 +Usually this means the macro was only invoked conditionally." >&5
15453 +$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
15454 +Usually this means the macro was only invoked conditionally." >&2;}
15455 + { (exit 1); exit 1; }; }
15457 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15458 - as_fn_error "conditional \"am__fastdepCC\" was never defined.
15459 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15460 + { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15461 +Usually this means the macro was only invoked conditionally." >&5
15462 +$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15463 +Usually this means the macro was only invoked conditionally." >&2;}
15464 + { (exit 1); exit 1; }; }
15466 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15467 - as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
15468 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15469 + { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
15470 +Usually this means the macro was only invoked conditionally." >&5
15471 +$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
15472 +Usually this means the macro was only invoked conditionally." >&2;}
15473 + { (exit 1); exit 1; }; }
15475 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15476 - as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15477 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15478 + { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15479 +Usually this means the macro was only invoked conditionally." >&5
15480 +$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15481 +Usually this means the macro was only invoked conditionally." >&2;}
15482 + { (exit 1); exit 1; }; }
15484 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15485 - as_fn_error "conditional \"TESTSUBDIR\" was never defined.
15486 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15487 + { { $as_echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15488 +Usually this means the macro was only invoked conditionally." >&5
15489 +$as_echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15490 +Usually this means the macro was only invoked conditionally." >&2;}
15491 + { (exit 1); exit 1; }; }
15493 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
15494 - as_fn_error "conditional \"MIPS\" was never defined.
15495 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15496 + { { $as_echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
15497 +Usually this means the macro was only invoked conditionally." >&5
15498 +$as_echo "$as_me: error: conditional \"MIPS\" was never defined.
15499 +Usually this means the macro was only invoked conditionally." >&2;}
15500 + { (exit 1); exit 1; }; }
15502 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15503 - as_fn_error "conditional \"SPARC\" was never defined.
15504 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15505 + { { $as_echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
15506 +Usually this means the macro was only invoked conditionally." >&5
15507 +$as_echo "$as_me: error: conditional \"SPARC\" was never defined.
15508 +Usually this means the macro was only invoked conditionally." >&2;}
15509 + { (exit 1); exit 1; }; }
15511 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15512 - as_fn_error "conditional \"X86\" was never defined.
15513 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15514 + { { $as_echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
15515 +Usually this means the macro was only invoked conditionally." >&5
15516 +$as_echo "$as_me: error: conditional \"X86\" was never defined.
15517 +Usually this means the macro was only invoked conditionally." >&2;}
15518 + { (exit 1); exit 1; }; }
15520 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15521 - as_fn_error "conditional \"X86_FREEBSD\" was never defined.
15522 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15523 + { { $as_echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
15524 +Usually this means the macro was only invoked conditionally." >&5
15525 +$as_echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
15526 +Usually this means the macro was only invoked conditionally." >&2;}
15527 + { (exit 1); exit 1; }; }
15529 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15530 - as_fn_error "conditional \"X86_WIN32\" was never defined.
15531 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15532 + { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
15533 +Usually this means the macro was only invoked conditionally." >&5
15534 +$as_echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
15535 +Usually this means the macro was only invoked conditionally." >&2;}
15536 + { (exit 1); exit 1; }; }
15538 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15539 - as_fn_error "conditional \"X86_WIN64\" was never defined.
15540 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15541 + { { $as_echo "$as_me:$LINENO: error: conditional \"X86_WIN64\" was never defined.
15542 +Usually this means the macro was only invoked conditionally." >&5
15543 +$as_echo "$as_me: error: conditional \"X86_WIN64\" was never defined.
15544 +Usually this means the macro was only invoked conditionally." >&2;}
15545 + { (exit 1); exit 1; }; }
15547 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15548 - as_fn_error "conditional \"X86_DARWIN\" was never defined.
15549 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15550 + { { $as_echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
15551 +Usually this means the macro was only invoked conditionally." >&5
15552 +$as_echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
15553 +Usually this means the macro was only invoked conditionally." >&2;}
15554 + { (exit 1); exit 1; }; }
15556 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15557 - as_fn_error "conditional \"ALPHA\" was never defined.
15558 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 + { { $as_echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
15560 +Usually this means the macro was only invoked conditionally." >&5
15561 +$as_echo "$as_me: error: conditional \"ALPHA\" was never defined.
15562 +Usually this means the macro was only invoked conditionally." >&2;}
15563 + { (exit 1); exit 1; }; }
15565 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15566 - as_fn_error "conditional \"IA64\" was never defined.
15567 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15568 + { { $as_echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
15569 +Usually this means the macro was only invoked conditionally." >&5
15570 +$as_echo "$as_me: error: conditional \"IA64\" was never defined.
15571 +Usually this means the macro was only invoked conditionally." >&2;}
15572 + { (exit 1); exit 1; }; }
15574 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15575 - as_fn_error "conditional \"M32R\" was never defined.
15576 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15577 + { { $as_echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
15578 +Usually this means the macro was only invoked conditionally." >&5
15579 +$as_echo "$as_me: error: conditional \"M32R\" was never defined.
15580 +Usually this means the macro was only invoked conditionally." >&2;}
15581 + { (exit 1); exit 1; }; }
15583 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15584 - as_fn_error "conditional \"M68K\" was never defined.
15585 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586 + { { $as_echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
15587 +Usually this means the macro was only invoked conditionally." >&5
15588 +$as_echo "$as_me: error: conditional \"M68K\" was never defined.
15589 +Usually this means the macro was only invoked conditionally." >&2;}
15590 + { (exit 1); exit 1; }; }
15592 +if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15593 + { { $as_echo "$as_me:$LINENO: error: conditional \"MOXIE\" was never defined.
15594 +Usually this means the macro was only invoked conditionally." >&5
15595 +$as_echo "$as_me: error: conditional \"MOXIE\" was never defined.
15596 +Usually this means the macro was only invoked conditionally." >&2;}
15597 + { (exit 1); exit 1; }; }
15599 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15600 - as_fn_error "conditional \"POWERPC\" was never defined.
15601 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602 + { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
15603 +Usually this means the macro was only invoked conditionally." >&5
15604 +$as_echo "$as_me: error: conditional \"POWERPC\" was never defined.
15605 +Usually this means the macro was only invoked conditionally." >&2;}
15606 + { (exit 1); exit 1; }; }
15608 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15609 - as_fn_error "conditional \"POWERPC_AIX\" was never defined.
15610 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611 + { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
15612 +Usually this means the macro was only invoked conditionally." >&5
15613 +$as_echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
15614 +Usually this means the macro was only invoked conditionally." >&2;}
15615 + { (exit 1); exit 1; }; }
15617 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15618 - as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
15619 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15620 + { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
15621 +Usually this means the macro was only invoked conditionally." >&5
15622 +$as_echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
15623 +Usually this means the macro was only invoked conditionally." >&2;}
15624 + { (exit 1); exit 1; }; }
15626 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15627 - as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
15628 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15629 + { { $as_echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
15630 +Usually this means the macro was only invoked conditionally." >&5
15631 +$as_echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
15632 +Usually this means the macro was only invoked conditionally." >&2;}
15633 + { (exit 1); exit 1; }; }
15635 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15636 - as_fn_error "conditional \"ARM\" was never defined.
15637 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15638 + { { $as_echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
15639 +Usually this means the macro was only invoked conditionally." >&5
15640 +$as_echo "$as_me: error: conditional \"ARM\" was never defined.
15641 +Usually this means the macro was only invoked conditionally." >&2;}
15642 + { (exit 1); exit 1; }; }
15644 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15645 - as_fn_error "conditional \"AVR32\" was never defined.
15646 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15647 + { { $as_echo "$as_me:$LINENO: error: conditional \"AVR32\" was never defined.
15648 +Usually this means the macro was only invoked conditionally." >&5
15649 +$as_echo "$as_me: error: conditional \"AVR32\" was never defined.
15650 +Usually this means the macro was only invoked conditionally." >&2;}
15651 + { (exit 1); exit 1; }; }
15653 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15654 - as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
15655 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15656 + { { $as_echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
15657 +Usually this means the macro was only invoked conditionally." >&5
15658 +$as_echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
15659 +Usually this means the macro was only invoked conditionally." >&2;}
15660 + { (exit 1); exit 1; }; }
15662 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15663 - as_fn_error "conditional \"FRV\" was never defined.
15664 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15665 + { { $as_echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
15666 +Usually this means the macro was only invoked conditionally." >&5
15667 +$as_echo "$as_me: error: conditional \"FRV\" was never defined.
15668 +Usually this means the macro was only invoked conditionally." >&2;}
15669 + { (exit 1); exit 1; }; }
15671 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15672 - as_fn_error "conditional \"S390\" was never defined.
15673 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15674 + { { $as_echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
15675 +Usually this means the macro was only invoked conditionally." >&5
15676 +$as_echo "$as_me: error: conditional \"S390\" was never defined.
15677 +Usually this means the macro was only invoked conditionally." >&2;}
15678 + { (exit 1); exit 1; }; }
15680 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15681 - as_fn_error "conditional \"X86_64\" was never defined.
15682 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15683 + { { $as_echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
15684 +Usually this means the macro was only invoked conditionally." >&5
15685 +$as_echo "$as_me: error: conditional \"X86_64\" was never defined.
15686 +Usually this means the macro was only invoked conditionally." >&2;}
15687 + { (exit 1); exit 1; }; }
15689 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15690 - as_fn_error "conditional \"SH\" was never defined.
15691 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15692 + { { $as_echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
15693 +Usually this means the macro was only invoked conditionally." >&5
15694 +$as_echo "$as_me: error: conditional \"SH\" was never defined.
15695 +Usually this means the macro was only invoked conditionally." >&2;}
15696 + { (exit 1); exit 1; }; }
15698 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15699 - as_fn_error "conditional \"SH64\" was never defined.
15700 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15701 + { { $as_echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
15702 +Usually this means the macro was only invoked conditionally." >&5
15703 +$as_echo "$as_me: error: conditional \"SH64\" was never defined.
15704 +Usually this means the macro was only invoked conditionally." >&2;}
15705 + { (exit 1); exit 1; }; }
15707 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15708 - as_fn_error "conditional \"PA_LINUX\" was never defined.
15709 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15710 + { { $as_echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
15711 +Usually this means the macro was only invoked conditionally." >&5
15712 +$as_echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
15713 +Usually this means the macro was only invoked conditionally." >&2;}
15714 + { (exit 1); exit 1; }; }
15716 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15717 - as_fn_error "conditional \"PA_HPUX\" was never defined.
15718 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15719 + { { $as_echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
15720 +Usually this means the macro was only invoked conditionally." >&5
15721 +$as_echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
15722 +Usually this means the macro was only invoked conditionally." >&2;}
15723 + { (exit 1); exit 1; }; }
15725 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15726 - as_fn_error "conditional \"PA64_HPUX\" was never defined.
15727 -Usually this means the macro was only invoked conditionally." "$LINENO" 5
15728 + { { $as_echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
15729 +Usually this means the macro was only invoked conditionally." >&5
15730 +$as_echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
15731 +Usually this means the macro was only invoked conditionally." >&2;}
15732 + { (exit 1); exit 1; }; }
15736 @@ -12893,10 +15171,9 @@ fi
15738 ac_clean_files_save=$ac_clean_files
15739 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15740 -{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15741 +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15742 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15744 -cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15745 +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15747 # Generated by $as_me.
15748 # Run this file to recreate the current configuration.
15749 @@ -12906,18 +15183,17 @@ cat >$CONFIG_STATUS <<_ASEOF || as_write
15751 ac_cs_recheck=false
15754 SHELL=\${CONFIG_SHELL-$SHELL}
15757 -cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15758 -## -------------------- ##
15759 -## M4sh Initialization. ##
15760 -## -------------------- ##
15763 +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15764 +## --------------------- ##
15765 +## M4sh Initialization. ##
15766 +## --------------------- ##
15768 # Be more Bourne compatible
15769 DUALCASE=1; export DUALCASE # for MKS sh
15770 -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15771 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15774 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15775 @@ -12925,15 +15201,23 @@ if test -n "${ZSH_VERSION+set}" && (emul
15776 alias -g '${1+"$@"}'='"$@"'
15777 setopt NO_GLOB_SUBST
15779 - case `(set -o) 2>/dev/null` in #(
15781 - set -o posix ;; #(
15784 + case `(set -o) 2>/dev/null` in
15785 + *posix*) set -o posix ;;
15794 +# Avoid depending upon Character Ranges.
15795 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15796 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15797 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15798 +as_cr_digits='0123456789'
15799 +as_cr_alnum=$as_cr_Letters$as_cr_digits
15804 @@ -12941,13 +15225,7 @@ export as_nl
15805 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15806 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15807 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15808 -# Prefer a ksh shell builtin over an external printf program on Solaris,
15809 -# but without wasting forks for bash or zsh.
15810 -if test -z "$BASH_VERSION$ZSH_VERSION" \
15811 - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15812 - as_echo='print -r --'
15813 - as_echo_n='print -rn --'
15814 -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15815 +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15816 as_echo='printf %s\n'
15817 as_echo_n='printf %s'
15819 @@ -12958,7 +15236,7 @@ else
15820 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15821 as_echo_n_body='eval
15826 expr "X$arg" : "X\\(.*\\)$as_nl";
15827 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15828 @@ -12981,6 +15259,13 @@ if test "${PATH_SEPARATOR+set}" != set;
15832 +# Support unset when possible.
15833 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15841 # We need space, tab and new line, in precisely that order. Quoting is
15842 @@ -12990,15 +15275,15 @@ fi
15845 # Find who we are. Look in the path if we contain no directory separator.
15848 *[\\/]* ) as_myself=$0 ;;
15849 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15850 for as_dir in $PATH
15853 test -z "$as_dir" && as_dir=.
15854 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15856 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15861 @@ -13010,16 +15295,12 @@ if test "x$as_myself" = x; then
15863 if test ! -f "$as_myself"; then
15864 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15866 + { (exit 1); exit 1; }
15869 -# Unset variables that we do not need and which cause bugs (e.g. in
15870 -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15871 -# suppresses any "Segmentation fault" message there. '((' could
15872 -# trigger a bug in pdksh 5.2.14.
15873 -for as_var in BASH_ENV ENV MAIL MAILPATH
15874 -do eval test x\${$as_var+set} = xset \
15875 - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15876 +# Work around bugs in pre-3.0 UWIN ksh.
15877 +for as_var in ENV MAIL MAILPATH
15878 +do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15882 @@ -13031,89 +15312,7 @@ export LC_ALL
15887 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15890 -# as_fn_error ERROR [LINENO LOG_FD]
15891 -# ---------------------------------
15892 -# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15893 -# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15894 -# script with status $?, using 1 if that was 0.
15897 - as_status=$?; test $as_status -eq 0 && as_status=1
15898 - if test "$3"; then
15899 - as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15900 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15902 - $as_echo "$as_me: error: $1" >&2
15903 - as_fn_exit $as_status
15907 -# as_fn_set_status STATUS
15908 -# -----------------------
15909 -# Set $? to STATUS, without forking.
15910 -as_fn_set_status ()
15913 -} # as_fn_set_status
15915 -# as_fn_exit STATUS
15916 -# -----------------
15917 -# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15921 - as_fn_set_status $1
15927 -# Portably unset VAR.
15930 - { eval $1=; unset $1;}
15932 -as_unset=as_fn_unset
15933 -# as_fn_append VAR VALUE
15934 -# ----------------------
15935 -# Append the text in VALUE to the end of the definition contained in VAR. Take
15936 -# advantage of any shell optimizations that allow amortized linear growth over
15937 -# repeated appends, instead of the typical quadratic growth present in naive
15938 -# implementations.
15939 -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15940 - eval 'as_fn_append ()
15951 -# as_fn_arith ARG...
15952 -# ------------------
15953 -# Perform arithmetic evaluation on the ARGs, and store the result in the
15954 -# global $as_val. Take advantage of shells that can avoid forks. The arguments
15955 -# must be portable across $(()) and expr.
15956 -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15957 - eval 'as_fn_arith ()
15964 - as_val=`expr "$@" || test $? -eq 1`
15969 +# Required to use basename.
15970 if expr a : '\(a\)' >/dev/null 2>&1 &&
15971 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15973 @@ -13127,12 +15326,8 @@ else
15977 -if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15978 - as_dirname=dirname
15983 +# Name of the executable.
15984 as_me=`$as_basename -- "$0" ||
15985 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15986 X"$0" : 'X\(//\)$' \| \
15987 @@ -13152,25 +15347,76 @@ $as_echo X/"$0" |
15991 -# Avoid depending upon Character Ranges.
15992 -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15993 -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15994 -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15995 -as_cr_digits='0123456789'
15996 -as_cr_alnum=$as_cr_Letters$as_cr_digits
16002 + as_lineno_1=$LINENO
16003 + as_lineno_2=$LINENO
16004 + test "x$as_lineno_1" != "x$as_lineno_2" &&
16005 + test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16007 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16008 + # uniformly replaced by the line number. The first 'sed' inserts a
16009 + # line-number line after each line using $LINENO; the second 'sed'
16010 + # does the real work. The second script uses 'N' to pair each
16011 + # line-number line with the line containing $LINENO, and appends
16012 + # trailing '-' during substitution so that $LINENO is not a special
16013 + # case at line end.
16014 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16015 + # scripts with optimization help from Paolo Bonzini. Blame Lee
16016 + # E. McMahon (1931-1989) for sed's syntax. :-)
16022 + s/[$]LINENO.*/&-/
16028 + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16031 + ' >$as_me.lineno &&
16032 + chmod +x "$as_me.lineno" ||
16033 + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16034 + { (exit 1); exit 1; }; }
16036 + # Don't try to exec as it changes $[0], causing all sort of problems
16037 + # (the dirname of $[0] is not the place where we might find the
16038 + # original and so on. Autoconf is especially sensitive to this).
16039 + . "./$as_me.lineno"
16040 + # Exit status is that of the last command.
16045 +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16046 + as_dirname=dirname
16051 ECHO_C= ECHO_N= ECHO_T=
16052 -case `echo -n x` in #(((((
16053 +case `echo -n x` in
16055 - case `echo 'xy\c'` in
16056 + case `echo 'x\c'` in
16057 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16058 - xy) ECHO_C='\c';;
16059 - *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16066 +if expr a : '\(a\)' >/dev/null 2>&1 &&
16067 + test "X`expr 00001 : '.*\(...\)'`" = X001; then
16073 rm -f conf$$ conf$$.exe conf$$.file
16074 if test -d conf$$.dir; then
16075 @@ -13199,56 +15445,8 @@ fi
16076 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16077 rmdir conf$$.dir 2>/dev/null
16082 -# Create "$as_dir" as a directory, including parents if necessary.
16086 - case $as_dir in #(
16087 - -*) as_dir=./$as_dir;;
16089 - test -d "$as_dir" || eval $as_mkdir_p || {
16092 - case $as_dir in #(
16093 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16094 - *) as_qdir=$as_dir;;
16096 - as_dirs="'$as_qdir' $as_dirs"
16097 - as_dir=`$as_dirname -- "$as_dir" ||
16098 -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16099 - X"$as_dir" : 'X\(//\)[^/]' \| \
16100 - X"$as_dir" : 'X\(//\)$' \| \
16101 - X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16102 -$as_echo X"$as_dir" |
16103 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16107 - /^X\(\/\/\)[^/].*/{
16120 - test -d "$as_dir" && break
16122 - test -z "$as_dirs" || eval "mkdir $as_dirs"
16123 - } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16127 if mkdir -p . 2>/dev/null; then
16128 - as_mkdir_p='mkdir -p "$as_dir"'
16131 test -d ./-p && rmdir ./-p
16133 @@ -13267,10 +15465,10 @@ else
16134 if test -d "$1"; then
16141 - case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16142 + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16143 ???[sx]*):;;*)false;;esac;fi
16146 @@ -13285,19 +15483,13 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr
16150 -## ----------------------------------- ##
16151 -## Main body of $CONFIG_STATUS script. ##
16152 -## ----------------------------------- ##
16154 -test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16156 -cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16157 -# Save the log message, to keep $0 and so on meaningful, and to
16158 +# Save the log message, to keep $[0] and so on meaningful, and to
16159 # report actual input values of CONFIG_FILES etc. instead of their
16160 # values after options handling.
16162 -This file was extended by libffi $as_me 3.0.9, which was
16163 -generated by GNU Autoconf 2.64. Invocation command line was
16164 +This file was extended by libffi $as_me 3.0.10rc0, which was
16165 +generated by GNU Autoconf 2.63. Invocation command line was
16167 CONFIG_FILES = $CONFIG_FILES
16168 CONFIG_HEADERS = $CONFIG_HEADERS
16169 @@ -13330,11 +15522,10 @@ _ACEOF
16171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16173 -\`$as_me' instantiates files and other configuration actions
16174 -from templates according to the current configuration. Unless the files
16175 -and actions are specified as TAGs, all are instantiated by default.
16176 +\`$as_me' instantiates files from templates according to the
16177 +current configuration.
16179 -Usage: $0 [OPTION]... [TAG]...
16180 +Usage: $0 [OPTION]... [FILE]...
16182 -h, --help print this help, then exit
16183 -V, --version print version number and configuration settings, then exit
16184 @@ -13359,16 +15550,16 @@ $config_links
16185 Configuration commands:
16188 -Report bugs to <http://gcc.gnu.org/bugs.html>."
16189 +Report bugs to <bug-autoconf@gnu.org>."
16192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16194 -libffi config.status 3.0.9
16195 -configured by $0, generated by GNU Autoconf 2.64,
16196 +libffi config.status 3.0.10rc0
16197 +configured by $0, generated by GNU Autoconf 2.63,
16198 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16200 -Copyright (C) 2009 Free Software Foundation, Inc.
16201 +Copyright (C) 2008 Free Software Foundation, Inc.
16202 This config.status script is free software; the Free Software Foundation
16203 gives unlimited permission to copy, distribute and modify it."
16205 @@ -13411,19 +15602,20 @@ do
16207 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16209 - as_fn_append CONFIG_FILES " '$ac_optarg'"
16210 + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
16211 ac_need_defaults=false;;
16212 --header | --heade | --head | --hea )
16215 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16217 - as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16218 + CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
16219 ac_need_defaults=false;;
16221 # Conflict between --help and --header
16222 - as_fn_error "ambiguous option: \`$1'
16223 -Try \`$0 --help' for more information.";;
16224 + { $as_echo "$as_me: error: ambiguous option: $1
16225 +Try \`$0 --help' for more information." >&2
16226 + { (exit 1); exit 1; }; };;
16227 --help | --hel | -h )
16228 $as_echo "$ac_cs_usage"; exit ;;
16229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16230 @@ -13431,10 +15623,11 @@ Try \`$0 --help' for more information.";
16233 # This is an error.
16234 - -*) as_fn_error "unrecognized option: \`$1'
16235 -Try \`$0 --help' for more information." ;;
16236 + -*) { $as_echo "$as_me: error: unrecognized option: $1
16237 +Try \`$0 --help' for more information." >&2
16238 + { (exit 1); exit 1; }; } ;;
16240 - *) as_fn_append ac_config_targets " $1"
16241 + *) ac_config_targets="$ac_config_targets $1"
16242 ac_need_defaults=false ;;
16245 @@ -13475,20 +15668,6 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
16253 -with_multisubdir="$with_multisubdir"
16254 -with_multisrctop="$with_multisrctop"
16255 -with_target_subdir="$with_target_subdir"
16256 -ac_configure_args="${multilib_arg} ${ac_configure_args}"
16257 -multi_basedir="$multi_basedir"
16258 -CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16261 -GFORTRAN="$GFORTRAN"
16263 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16266 @@ -13499,143 +15678,131 @@ AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac
16267 sed_quote_subst='$sed_quote_subst'
16268 double_quote_subst='$double_quote_subst'
16269 delay_variable_subst='$delay_variable_subst'
16270 -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16271 -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16272 -enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16273 -enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16274 -pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16275 -enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16276 -SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16277 -ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16278 -host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16279 -host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16280 -host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16281 -build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16282 -build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16283 -build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16284 -SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16285 -Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16286 -GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16287 -EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16288 -FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16289 -LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16290 -NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16291 -LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16292 -max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16293 -ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16294 -exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16295 -lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16296 -lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16297 -lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16298 -reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16299 -reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16300 -OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16301 -deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16302 -file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16303 -AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16304 -AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16305 -STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16306 -RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16307 -old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16308 -old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16309 -old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16310 -lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16311 -CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16312 -CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16313 -compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16314 -GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16315 -lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16316 -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16317 -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16318 -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16319 -objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16320 -MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16321 -lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16322 -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16323 -lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16324 -lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16325 -lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16326 -need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16327 -DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16328 -NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16329 -LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16330 -OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16331 -OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16332 -libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16333 -shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16334 -extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16335 -archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16336 -enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16337 -export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16338 -whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16339 -compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16340 -old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16341 -old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16342 -archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16343 -archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16344 -module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16345 -module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16346 -with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16347 -allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16348 -no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16349 -hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16350 -hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16351 -hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16352 -hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16353 -hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16354 -hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16355 -hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16356 -hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16357 -inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16358 -link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16359 -fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16360 -always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16361 -export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16362 -exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16363 -include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16364 -prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16365 -file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16366 -variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16367 -need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16368 -need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16369 -version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16370 -runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16371 -shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16372 -shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16373 -libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16374 -library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16375 -soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16376 -install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16377 -postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16378 -postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16379 -finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16380 -finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16381 -hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16382 -sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16383 -sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16384 -hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16385 -enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16386 -enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16387 -enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16388 -old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16389 -striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16390 +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16391 +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16392 +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16393 +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16394 +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16395 +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16396 +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16397 +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16398 +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16399 +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16400 +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16401 +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16402 +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16403 +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16404 +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16405 +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16406 +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16407 +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16408 +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16409 +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16410 +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16411 +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16412 +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16413 +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16414 +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16415 +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16416 +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16417 +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16418 +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16419 +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16420 +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16421 +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16422 +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16423 +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16424 +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16425 +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16426 +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16427 +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16428 +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16429 +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16430 +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16431 +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16432 +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16433 +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16434 +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16435 +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16436 +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16437 +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16438 +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16439 +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16440 +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16441 +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16442 +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16443 +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16444 +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16445 +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16446 +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16447 +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16448 +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16449 +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16450 +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16451 +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16452 +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16453 +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16454 +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16455 +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16456 +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16457 +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16458 +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16459 +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16460 +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16461 +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16462 +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16463 +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16464 +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16465 +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16466 +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16467 +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16468 +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16469 +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16470 +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16471 +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16472 +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16473 +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16474 +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16475 +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16476 +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16477 +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16478 +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16479 +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16480 +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16481 +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16482 +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16483 +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16484 +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16485 +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16486 +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16487 +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16488 +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16489 +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16490 +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16491 +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16492 +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16493 +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16494 +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16495 +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16496 +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16497 +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16498 +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16499 +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16500 +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16501 +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16502 +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16503 +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16504 +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16505 +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16506 +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16507 +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16510 LTCFLAGS='$LTCFLAGS'
16511 compiler='$compiler_DEFAULT'
16513 -# A function that is used when there is no print builtin or printf.
16514 -func_fallback_echo ()
16516 - eval 'cat <<_LTECHO_EOF
16521 # Quote evaled strings.
16522 -for var in SHELL \
16529 @@ -13659,6 +15826,8 @@ lt_cv_sys_global_symbol_pipe \
16530 lt_cv_sys_global_symbol_to_cdecl \
16531 lt_cv_sys_global_symbol_to_c_name_address \
16532 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16535 lt_prog_compiler_no_builtin_flag \
16536 lt_prog_compiler_wl \
16537 lt_prog_compiler_pic \
16538 @@ -13688,13 +15857,12 @@ variables_saved_for_relink \
16540 library_names_spec \
16542 -install_override_mode \
16546 - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16547 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16548 *[\\\\\\\`\\"\\\$]*)
16549 - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16550 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16553 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16554 @@ -13721,9 +15889,9 @@ postuninstall_cmds \
16556 sys_lib_search_path_spec \
16557 sys_lib_dlsearch_path_spec; do
16558 - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16559 + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16560 *[\\\\\\\`\\"\\\$]*)
16561 - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16562 + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16566 @@ -13731,6 +15899,12 @@ sys_lib_dlsearch_path_spec; do
16570 +# Fix-up fallback echo if it was mangled by the above quoting rules.
16572 +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16576 ac_aux_dir='$ac_aux_dir'
16577 xsi_shell='$xsi_shell'
16578 lt_shell_append='$lt_shell_append'
16579 @@ -13761,7 +15935,6 @@ for ac_config_target in $ac_config_targe
16581 case $ac_config_target in
16582 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16583 - "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16584 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16585 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16586 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16587 @@ -13772,8 +15945,11 @@ do
16588 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16589 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16590 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16591 + "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16593 - *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16594 + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16595 +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16596 + { (exit 1); exit 1; }; };;
16600 @@ -13801,7 +15977,7 @@ $debug ||
16601 trap 'exit_status=$?
16602 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16604 - trap 'as_fn_exit 1' 1 2 13 15
16605 + trap '{ (exit 1); exit 1; }' 1 2 13 15
16607 # Create a (secure) tmp directory for tmp files.
16609 @@ -13812,7 +15988,11 @@ $debug ||
16611 tmp=./conf$$-$RANDOM
16612 (umask 077 && mkdir "$tmp")
16613 -} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16616 + $as_echo "$as_me: cannot create a temporary directory in ." >&2
16617 + { (exit 1); exit 1; }
16620 # Set up the scripts for CONFIG_FILES section.
16621 # No need to generate them if there are no CONFIG_FILES.
16622 @@ -13820,16 +16000,10 @@ $debug ||
16623 if test -n "$CONFIG_FILES"; then
16626 -ac_cr=`echo X | tr X '\015'`
16627 -# On cygwin, bash can eat \r inside `` if the user requested igncr.
16628 -# But we know of no other shell where ac_cr would be empty at this
16629 -# point, so we can use a bashism as a fallback.
16630 -if test "x$ac_cr" = x; then
16631 - eval ac_cr=\$\'\\r\'
16634 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16635 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16636 - ac_cs_awk_cr='\r'
16637 + ac_cs_awk_cr='\\r'
16639 ac_cs_awk_cr=$ac_cr
16641 @@ -13843,18 +16017,24 @@ _ACEOF
16642 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16644 } >conf$$subs.sh ||
16645 - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16646 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16647 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16648 + { (exit 1); exit 1; }; }
16649 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16651 for ac_last_try in false false false false false :; do
16652 . ./conf$$subs.sh ||
16653 - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16654 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16655 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16656 + { (exit 1); exit 1; }; }
16658 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16659 if test $ac_delim_n = $ac_delim_num; then
16661 elif $ac_last_try; then
16662 - as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16663 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16664 +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16665 + { (exit 1); exit 1; }; }
16667 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16669 @@ -13943,7 +16123,9 @@ if sed "s/$ac_cr//" < /dev/null > /dev/n
16672 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16673 - || as_fn_error "could not setup config files machinery" "$LINENO" 5
16674 + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
16675 +$as_echo "$as_me: error: could not setup config files machinery" >&2;}
16676 + { (exit 1); exit 1; }; }
16679 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16680 @@ -13984,7 +16166,9 @@ for ac_last_try in false false :; do
16681 if test -z "$ac_t"; then
16683 elif $ac_last_try; then
16684 - as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16685 + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
16686 +$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
16687 + { (exit 1); exit 1; }; }
16689 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16691 @@ -14069,7 +16253,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
16694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16695 - as_fn_error "could not setup config headers machinery" "$LINENO" 5
16696 + { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
16697 +$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
16698 + { (exit 1); exit 1; }; }
16699 fi # test -n "$CONFIG_HEADERS"
16702 @@ -14082,7 +16268,9 @@ do
16704 case $ac_mode$ac_tag in
16706 - :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16707 + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
16708 +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
16709 + { (exit 1); exit 1; }; };;
16710 :[FH]-) ac_tag=-:-;;
16711 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16713 @@ -14110,10 +16298,12 @@ do
16715 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16717 - as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16718 + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16719 +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16720 + { (exit 1); exit 1; }; };;
16722 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16723 - as_fn_append ac_file_inputs " '$ac_f'"
16724 + ac_file_inputs="$ac_file_inputs '$ac_f'"
16727 # Let's still pretend it is `configure' which instantiates (i.e., don't
16728 @@ -14124,7 +16314,7 @@ do
16730 if test x"$ac_file" != x-; then
16731 configure_input="$ac_file. $configure_input"
16732 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16733 + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
16734 $as_echo "$as_me: creating $ac_file" >&6;}
16736 # Neutralize special characters interpreted by sed in replacement strings.
16737 @@ -14137,7 +16327,9 @@ $as_echo "$as_me: creating $ac_file" >&6
16740 *:-:* | *:-) cat >"$tmp/stdin" \
16741 - || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16742 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16743 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
16744 + { (exit 1); exit 1; }; } ;;
16748 @@ -14165,7 +16357,47 @@ $as_echo X"$ac_file" |
16752 - as_dir="$ac_dir"; as_fn_mkdir_p
16753 + { as_dir="$ac_dir"
16754 + case $as_dir in #(
16755 + -*) as_dir=./$as_dir;;
16757 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16760 + case $as_dir in #(
16761 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16762 + *) as_qdir=$as_dir;;
16764 + as_dirs="'$as_qdir' $as_dirs"
16765 + as_dir=`$as_dirname -- "$as_dir" ||
16766 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16767 + X"$as_dir" : 'X\(//\)[^/]' \| \
16768 + X"$as_dir" : 'X\(//\)$' \| \
16769 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16770 +$as_echo X"$as_dir" |
16771 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16775 + /^X\(\/\/\)[^/].*/{
16788 + test -d "$as_dir" && break
16790 + test -z "$as_dirs" || eval "mkdir $as_dirs"
16791 + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16792 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16793 + { (exit 1); exit 1; }; }; }
16797 @@ -14222,6 +16454,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri
16798 # If the template does not know about datarootdir, expand it.
16799 # FIXME: This hack should be removed a few years after 2.60.
16800 ac_datarootdir_hack=; ac_datarootdir_seen=
16805 @@ -14231,11 +16464,12 @@ ac_sed_dataroot='
16812 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16813 *datarootdir*) ac_datarootdir_seen=yes;;
16814 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16815 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16816 + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16817 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16820 @@ -14245,7 +16479,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_writ
16821 s&@infodir@&$infodir&g
16822 s&@localedir@&$localedir&g
16823 s&@mandir@&$mandir&g
16824 - s&\\\${datarootdir}&$datarootdir&g' ;;
16825 + s&\\\${datarootdir}&$datarootdir&g' ;;
16829 @@ -14274,12 +16508,14 @@ s&@MKDIR_P@&$ac_MKDIR_P&;t t
16830 $ac_datarootdir_hack
16832 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16833 - || as_fn_error "could not create $ac_file" "$LINENO" 5
16834 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16835 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
16836 + { (exit 1); exit 1; }; }
16838 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16839 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16840 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16841 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16842 + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16843 which seems to be undefined. Please make sure it is defined." >&5
16844 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16845 which seems to be undefined. Please make sure it is defined." >&2;}
16846 @@ -14289,7 +16525,9 @@ which seems to be undefined. Please mak
16847 -) cat "$tmp/out" && rm -f "$tmp/out";;
16848 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16850 - || as_fn_error "could not create $ac_file" "$LINENO" 5
16851 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16852 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
16853 + { (exit 1); exit 1; }; }
16857 @@ -14300,19 +16538,25 @@ which seems to be undefined. Please mak
16858 $as_echo "/* $configure_input */" \
16859 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16860 } >"$tmp/config.h" \
16861 - || as_fn_error "could not create $ac_file" "$LINENO" 5
16862 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16863 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
16864 + { (exit 1); exit 1; }; }
16865 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16866 - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16867 + { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16868 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16871 mv "$tmp/config.h" "$ac_file" \
16872 - || as_fn_error "could not create $ac_file" "$LINENO" 5
16873 + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
16874 +$as_echo "$as_me: error: could not create $ac_file" >&2;}
16875 + { (exit 1); exit 1; }; }
16878 $as_echo "/* $configure_input */" \
16879 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16880 - || as_fn_error "could not create -" "$LINENO" 5
16881 + || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
16882 +$as_echo "$as_me: error: could not create -" >&2;}
16883 + { (exit 1); exit 1; }; }
16885 # Compute "$ac_file"'s index in $config_headers.
16887 @@ -14362,11 +16606,13 @@ $as_echo X"$_am_arg" |
16888 ac_source=$srcdir/$ac_source
16891 - { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16892 + { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
16893 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16895 if test ! -r "$ac_source"; then
16896 - as_fn_error "$ac_source: file not found" "$LINENO" 5
16897 + { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
16898 +$as_echo "$as_me: error: $ac_source: file not found" >&2;}
16899 + { (exit 1); exit 1; }; }
16903 @@ -14378,24 +16624,18 @@ $as_echo "$as_me: linking $ac_source to
16904 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16905 ln "$ac_source" "$ac_file" 2>/dev/null ||
16906 cp -p "$ac_source" "$ac_file" ||
16907 - as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16908 + { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
16909 +$as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
16910 + { (exit 1); exit 1; }; }
16913 - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16914 + :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
16915 $as_echo "$as_me: executing $ac_file commands" >&6;}
16920 case $ac_file$ac_mode in
16922 -# Only add multilib support code if we just rebuilt the top-level
16924 -case " $CONFIG_FILES " in
16926 - ac_file=Makefile . ${multi_basedir}/config-ml.in
16929 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16930 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16931 # are listed without --file. Let's play safe and only enable the eval
16932 @@ -14484,7 +16724,47 @@ $as_echo X"$file" |
16936 - as_dir=$dirpart/$fdir; as_fn_mkdir_p
16937 + { as_dir=$dirpart/$fdir
16938 + case $as_dir in #(
16939 + -*) as_dir=./$as_dir;;
16941 + test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16944 + case $as_dir in #(
16945 + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16946 + *) as_qdir=$as_dir;;
16948 + as_dirs="'$as_qdir' $as_dirs"
16949 + as_dir=`$as_dirname -- "$as_dir" ||
16950 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16951 + X"$as_dir" : 'X\(//\)[^/]' \| \
16952 + X"$as_dir" : 'X\(//\)$' \| \
16953 + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16954 +$as_echo X"$as_dir" |
16955 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16959 + /^X\(\/\/\)[^/].*/{
16972 + test -d "$as_dir" && break
16974 + test -z "$as_dirs" || eval "mkdir $as_dirs"
16975 + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16976 +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
16977 + { (exit 1); exit 1; }; }; }
16978 # echo "creating $dirpart/$file"
16979 echo '# dummy' > "$dirpart/$file"
16981 @@ -14512,7 +16792,7 @@ $as_echo X"$file" |
16982 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16984 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16985 -# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16986 +# 2006, 2007, 2008 Free Software Foundation, Inc.
16987 # Written by Gordon Matzigkeit, 1996
16989 # This file is part of GNU Libtool.
16990 @@ -14560,12 +16840,6 @@ pic_mode=$pic_mode
16991 # Whether or not to optimize for fast installation.
16992 fast_install=$enable_fast_install
16994 -# Shell to use when invoking shell scripts.
16997 -# An echo program that protects backslashes.
17001 host_alias=$host_alias
17003 @@ -14615,6 +16889,10 @@ SP2NL=$lt_lt_SP2NL
17004 # turn newlines into spaces.
17007 +# How to create reloadable object files.
17008 +reload_flag=$lt_reload_flag
17009 +reload_cmds=$lt_reload_cmds
17011 # An object symbol dumper.
17012 OBJDUMP=$lt_OBJDUMP
17014 @@ -14636,9 +16914,6 @@ RANLIB=$lt_RANLIB
17015 old_postinstall_cmds=$lt_old_postinstall_cmds
17016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17018 -# Whether to use a lock for old archive extraction.
17019 -lock_old_archive_extraction=$lock_old_archive_extraction
17024 @@ -14660,6 +16935,12 @@ global_symbol_to_c_name_address_lib_pref
17025 # The name of the directory that contains temporary libtool files.
17028 +# Shell to use when invoking shell scripts.
17031 +# An echo program that does not interpret backslashes.
17034 # Used to examine libraries when file_magic_cmd begins with "file".
17035 MAGIC_CMD=$MAGIC_CMD
17037 @@ -14722,9 +17003,6 @@ library_names_spec=$lt_library_names_spe
17038 # The coded name of the library, if different from the real name.
17039 soname_spec=$lt_soname_spec
17041 -# Permission mode override for installation of shared libraries.
17042 -install_override_mode=$lt_install_override_mode
17044 # Command to use after installation of a shared archive.
17045 postinstall_cmds=$lt_postinstall_cmds
17047 @@ -14764,10 +17042,6 @@ striplib=$lt_striplib
17048 # The linker used to build libraries.
17051 -# How to create reloadable object files.
17052 -reload_flag=$lt_reload_flag
17053 -reload_cmds=$lt_reload_cmds
17055 # Commands used to build an old-style archive.
17056 old_archive_cmds=$lt_old_archive_cmds
17058 @@ -15027,7 +17301,7 @@ _LT_EOF
17061 # Extract subdirectory from the argument.
17062 - func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17063 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17064 if test "X$func_dirname_result" = "X${1}"; then
17065 func_dirname_result="${3}"
17067 @@ -15038,7 +17312,7 @@ func_dirname ()
17068 # func_basename file
17071 - func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17072 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17076 @@ -15051,8 +17325,10 @@ func_basename ()
17080 - .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17081 - *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17082 + .*) func_stripname_result=`$ECHO "X${3}" \
17083 + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17084 + *) func_stripname_result=`$ECHO "X${3}" \
17085 + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17089 @@ -15063,20 +17339,20 @@ my_sed_long_arg='1s/^-[^=]*=//'
17093 - func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17094 - func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17095 + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17096 + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17102 - func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17103 + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17106 # func_xform libobj-or-source
17109 - func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17110 + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17113 # func_arith arithmetic-term...
17114 @@ -15140,12 +17416,15 @@ test -d src/$TARGETDIR || mkdir src/$TAR
17119 +{ (exit 0); exit 0; }
17121 +chmod +x $CONFIG_STATUS
17122 ac_clean_files=$ac_clean_files_save
17124 test $ac_write_fail = 0 ||
17125 - as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17126 + { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17127 +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17128 + { (exit 1); exit 1; }; }
17131 # configure is writing to config.log, and then calls config.status.
17132 @@ -15166,10 +17445,10 @@ if test "$no_create" != yes; then
17134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17135 # would make configure fail if this is the last instruction.
17136 - $ac_cs_success || as_fn_exit $?
17137 + $ac_cs_success || { (exit 1); exit 1; }
17139 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17140 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17141 + { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17142 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17145 Index: libffi/configure.ac
17146 ===================================================================
17147 --- libffi.orig/configure.ac
17148 +++ libffi/configure.ac
17150 dnl Process this with autoconf to create configure
17155 -AC_INIT([libffi], [3.0.9], [http://gcc.gnu.org/bugs.html])
17156 +AC_INIT([libffi], [3.0.10rc0], [http://gcc.gnu.org/bugs.html])
17157 AC_CONFIG_HEADERS([fficonfig.h])
17159 -AM_ENABLE_MULTILIB(, ..)
17161 AC_CANONICAL_SYSTEM
17162 target_alias=${target_alias-$host_alias}
17164 @@ -22,13 +20,15 @@ AM_INIT_AUTOMAKE
17165 m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS])
17166 m4_define([_AC_ARG_VAR_PRECIOUS],[])
17168 -m4_rename_force([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
17169 +m4_undefine([_AC_ARG_VAR_PRECIOUS])
17170 +m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
17177 +AC_CONFIG_MACRO_DIR([m4])
17181 @@ -53,6 +53,10 @@ case "$host" in
17183 amd64-*-freebsd* | amd64-*-openbsd*)
17184 TARGET=X86_64; TARGETDIR=x86
17187 + amd64-*-freebsd*)
17188 + TARGET=X86_64; TARGETDIR=x86
17192 @@ -184,6 +188,7 @@ AM_CONDITIONAL(ALPHA, test x$TARGET = xA
17193 AM_CONDITIONAL(IA64, test x$TARGET = xIA64)
17194 AM_CONDITIONAL(M32R, test x$TARGET = xM32R)
17195 AM_CONDITIONAL(M68K, test x$TARGET = xM68K)
17196 +AM_CONDITIONAL(MOXIE, test x$TARGET = xMOXIE)
17197 AM_CONDITIONAL(POWERPC, test x$TARGET = xPOWERPC)
17198 AM_CONDITIONAL(POWERPC_AIX, test x$TARGET = xPOWERPC_AIX)
17199 AM_CONDITIONAL(POWERPC_DARWIN, test x$TARGET = xPOWERPC_DARWIN)
17200 @@ -443,6 +448,6 @@ test -d src/$TARGETDIR || mkdir src/$TAR
17202 AC_CONFIG_LINKS(include/ffitarget.h:src/$TARGETDIR/ffitarget.h)
17204 -AC_CONFIG_FILES(include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile)
17205 +AC_CONFIG_FILES(include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc)
17208 Index: libffi/depcomp
17209 ===================================================================
17214 +# depcomp - compile a program generating dependencies as side-effects
17216 +scriptversion=2006-10-15.18
17218 +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
17219 +# Foundation, Inc.
17221 +# This program is free software; you can redistribute it and/or modify
17222 +# it under the terms of the GNU General Public License as published by
17223 +# the Free Software Foundation; either version 2, or (at your option)
17224 +# any later version.
17226 +# This program is distributed in the hope that it will be useful,
17227 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
17228 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17229 +# GNU General Public License for more details.
17231 +# You should have received a copy of the GNU General Public License
17232 +# along with this program; if not, write to the Free Software
17233 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17234 +# 02110-1301, USA.
17236 +# As a special exception to the GNU General Public License, if you
17237 +# distribute this file as part of a program that contains a
17238 +# configuration script generated by Autoconf, you may include it under
17239 +# the same distribution terms that you use for the rest of that program.
17241 +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
17245 + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
17250 +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
17252 +Run PROGRAMS ARGS to compile a file, generating dependencies
17255 +Environment variables:
17256 + depmode Dependency tracking mode.
17257 + source Source file read by `PROGRAMS ARGS'.
17258 + object Object file output by `PROGRAMS ARGS'.
17259 + DEPDIR directory where to store dependencies.
17260 + depfile Dependency file to output.
17261 + tmpdepfile Temporary file to use when outputing dependencies.
17262 + libtool Whether libtool is used (yes/no).
17264 +Report bugs to <bug-automake@gnu.org>.
17269 + echo "depcomp $scriptversion"
17274 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
17275 + echo "depcomp: Variables source, object and depmode must be set" 1>&2
17279 +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
17280 +depfile=${depfile-`echo "$object" |
17281 + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
17282 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
17284 +rm -f "$tmpdepfile"
17286 +# Some modes work just like other modes, but use different flags. We
17287 +# parameterize here, but still list the modes in the big case below,
17288 +# to make depend.m4 easier to write. Note that we *cannot* use a case
17289 +# here, because this file can only contain one case statement.
17290 +if test "$depmode" = hp; then
17291 + # HP compiler uses -M and no extra arg.
17296 +if test "$depmode" = dashXmstdout; then
17297 + # This is just like dashmstdout with a different argument.
17299 + depmode=dashmstdout
17302 +case "$depmode" in
17304 +## gcc 3 implements dependency tracking that does exactly what
17305 +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
17306 +## it if -MD -MP comes after the -MF stuff. Hmm.
17307 +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
17308 +## the command line argument order; so add the flags where they
17309 +## appear in depend2.am. Note that the slowdown incurred here
17310 +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
17314 + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
17315 + *) set fnord "$@" "$arg" ;;
17322 + if test $stat -eq 0; then :
17324 + rm -f "$tmpdepfile"
17327 + mv "$tmpdepfile" "$depfile"
17331 +## There are various ways to get dependency output from gcc. Here's
17332 +## why we pick this rather obscure method:
17333 +## - Don't want to use -MD because we'd like the dependencies to end
17334 +## up in a subdir. Having to rename by hand is ugly.
17335 +## (We might end up doing this anyway to support other compilers.)
17336 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
17337 +## -MM, not -M (despite what the docs say).
17338 +## - Using -M directly means running the compiler twice (even worse
17339 +## than renaming).
17340 + if test -z "$gccflag"; then
17343 + "$@" -Wp,"$gccflag$tmpdepfile"
17345 + if test $stat -eq 0; then :
17347 + rm -f "$tmpdepfile"
17351 + echo "$object : \\" > "$depfile"
17352 + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
17353 +## The second -e expression handles DOS-style file names with drive letters.
17354 + sed -e 's/^[^:]*: / /' \
17355 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
17356 +## This next piece of magic avoids the `deleted header file' problem.
17357 +## The problem is that when a header file which appears in a .P file
17358 +## is deleted, the dependency causes make to die (because there is
17359 +## typically no way to rebuild the header). We avoid this by adding
17360 +## dummy dependencies for each header file. Too bad gcc doesn't do
17361 +## this for us directly.
17363 +' < "$tmpdepfile" |
17364 +## Some versions of gcc put a space before the `:'. On the theory
17365 +## that the space means something, we add a space to the output as
17367 +## Some versions of the HPUX 10.20 sed can't process this invocation
17368 +## correctly. Breaking it into two sed invocations is a workaround.
17369 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
17370 + rm -f "$tmpdepfile"
17374 + # This case exists only to let depend.m4 do its work. It works by
17375 + # looking at the text of this script. This case will never be run,
17376 + # since it is checked for above.
17381 + if test "$libtool" = yes; then
17382 + "$@" "-Wp,-MDupdate,$tmpdepfile"
17384 + "$@" -MDupdate "$tmpdepfile"
17387 + if test $stat -eq 0; then :
17389 + rm -f "$tmpdepfile"
17394 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
17395 + echo "$object : \\" > "$depfile"
17397 + # Clip off the initial element (the dependent). Don't try to be
17398 + # clever and replace this with sed code, as IRIX sed won't handle
17399 + # lines with more than a fixed number of characters (4096 in
17400 + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
17401 + # the IRIX cc adds comments like `#:fec' to the end of the
17402 + # dependency line.
17404 +' < "$tmpdepfile" \
17405 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
17410 + # The second pass generates a dummy entry for each header file.
17412 +' < "$tmpdepfile" \
17413 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
17416 + # The sourcefile does not contain any dependencies, so just
17417 + # store a dummy comment line, to avoid errors with the Makefile
17418 + # "include basename.Plo" scheme.
17419 + echo "#dummy" > "$depfile"
17421 + rm -f "$tmpdepfile"
17425 + # The C for AIX Compiler uses -M and outputs the dependencies
17426 + # in a .u file. In older versions, this file always lives in the
17427 + # current directory. Also, the AIX compiler puts `$object:' at the
17428 + # start of each line; $object doesn't have directory information.
17429 + # Version 6 uses the directory in both cases.
17430 + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
17431 + tmpdepfile="$stripped.u"
17432 + if test "$libtool" = yes; then
17439 + if test -f "$tmpdepfile"; then :
17441 + stripped=`echo "$stripped" | sed 's,^.*/,,'`
17442 + tmpdepfile="$stripped.u"
17445 + if test $stat -eq 0; then :
17447 + rm -f "$tmpdepfile"
17451 + if test -f "$tmpdepfile"; then
17452 + outname="$stripped.o"
17453 + # Each line is of the form `foo.o: dependent.h'.
17454 + # Do two passes, one to just change these to
17455 + # `$object: dependent.h' and one to simply `dependent.h:'.
17456 + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
17457 + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
17459 + # The sourcefile does not contain any dependencies, so just
17460 + # store a dummy comment line, to avoid errors with the Makefile
17461 + # "include basename.Plo" scheme.
17462 + echo "#dummy" > "$depfile"
17464 + rm -f "$tmpdepfile"
17468 + # Intel's C compiler understands `-MD -MF file'. However on
17469 + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
17470 + # ICC 7.0 will fill foo.d with something like
17471 + # foo.o: sub/foo.c
17472 + # foo.o: sub/foo.h
17473 + # which is wrong. We want:
17474 + # sub/foo.o: sub/foo.c
17475 + # sub/foo.o: sub/foo.h
17478 + # ICC 7.1 will output
17479 + # foo.o: sub/foo.c sub/foo.h
17480 + # and will wrap long lines using \ :
17481 + # foo.o: sub/foo.c ... \
17482 + # sub/foo.h ... \
17485 + "$@" -MD -MF "$tmpdepfile"
17487 + if test $stat -eq 0; then :
17489 + rm -f "$tmpdepfile"
17493 + # Each line is of the form `foo.o: dependent.h',
17494 + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
17495 + # Do two passes, one to just change these to
17496 + # `$object: dependent.h' and one to simply `dependent.h:'.
17497 + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
17498 + # Some versions of the HPUX 10.20 sed can't process this invocation
17499 + # correctly. Breaking it into two sed invocations is a workaround.
17500 + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
17501 + sed -e 's/$/ :/' >> "$depfile"
17502 + rm -f "$tmpdepfile"
17506 + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
17507 + # compilers, which have integrated preprocessors. The correct option
17508 + # to use with these is +Maked; it writes dependencies to a file named
17509 + # 'foo.d', which lands next to the object file, wherever that
17511 + # Much of this is similar to the tru64 case; see comments there.
17512 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
17513 + test "x$dir" = "x$object" && dir=
17514 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
17515 + if test "$libtool" = yes; then
17516 + tmpdepfile1=$dir$base.d
17517 + tmpdepfile2=$dir.libs/$base.d
17520 + tmpdepfile1=$dir$base.d
17521 + tmpdepfile2=$dir$base.d
17525 + if test $stat -eq 0; then :
17527 + rm -f "$tmpdepfile1" "$tmpdepfile2"
17531 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
17533 + test -f "$tmpdepfile" && break
17535 + if test -f "$tmpdepfile"; then
17536 + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
17537 + # Add `dependent.h:' lines.
17538 + sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
17540 + echo "#dummy" > "$depfile"
17542 + rm -f "$tmpdepfile" "$tmpdepfile2"
17546 + # The Tru64 compiler uses -MD to generate dependencies as a side
17547 + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
17548 + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
17549 + # dependencies in `foo.d' instead, so we check for that too.
17550 + # Subdirectories are respected.
17551 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
17552 + test "x$dir" = "x$object" && dir=
17553 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
17555 + if test "$libtool" = yes; then
17556 + # With Tru64 cc, shared objects can also be used to make a
17557 + # static library. This mechanism is used in libtool 1.4 series to
17558 + # handle both shared and static libraries in a single compilation.
17559 + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
17561 + # With libtool 1.5 this exception was removed, and libtool now
17562 + # generates 2 separate objects for the 2 libraries. These two
17563 + # compilations output dependencies in $dir.libs/$base.o.d and
17564 + # in $dir$base.o.d. We have to check for both files, because
17565 + # one of the two compilations can be disabled. We should prefer
17566 + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
17567 + # automatically cleaned when .libs/ is deleted, while ignoring
17568 + # the former would cause a distcleancheck panic.
17569 + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
17570 + tmpdepfile2=$dir$base.o.d # libtool 1.5
17571 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
17572 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
17575 + tmpdepfile1=$dir$base.o.d
17576 + tmpdepfile2=$dir$base.d
17577 + tmpdepfile3=$dir$base.d
17578 + tmpdepfile4=$dir$base.d
17583 + if test $stat -eq 0; then :
17585 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
17589 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
17591 + test -f "$tmpdepfile" && break
17593 + if test -f "$tmpdepfile"; then
17594 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
17595 + # That's a tab and a space in the [].
17596 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
17598 + echo "#dummy" > "$depfile"
17600 + rm -f "$tmpdepfile"
17604 + # This comment above is used by automake to tell side-effect
17605 + # dependency tracking mechanisms from slower ones.
17608 + # Important note: in order to support this mode, a compiler *must*
17609 + # always write the preprocessed file to stdout, regardless of -o.
17612 + # Remove the call to Libtool.
17613 + if test "$libtool" = yes; then
17614 + while test $1 != '--mode=compile'; do
17620 + # Remove `-o $object'.
17632 + set fnord "$@" "$arg"
17639 + test -z "$dashmflag" && dashmflag=-M
17640 + # Require at least two characters before searching for `:'
17641 + # in the target name. This is to cope with DOS-style filenames:
17642 + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
17643 + "$@" $dashmflag |
17644 + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
17646 + cat < "$tmpdepfile" > "$depfile"
17648 +' < "$tmpdepfile" | \
17649 +## Some versions of the HPUX 10.20 sed can't process this invocation
17650 +## correctly. Breaking it into two sed invocations is a workaround.
17651 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
17652 + rm -f "$tmpdepfile"
17656 + # This case only exists to satisfy depend.m4. It is never actually
17657 + # run, as this mode is specially recognized in the preamble.
17663 + # Remove any Libtool call
17664 + if test "$libtool" = yes; then
17665 + while test $1 != '--mode=compile'; do
17673 + for arg in "$@"; do
17681 + set fnord "$@" "$arg"; shift ;;
17682 + # Strip any option that makedepend may not understand. Remove
17683 + # the object too, otherwise makedepend will parse it as a source file.
17687 + set fnord "$@" "$arg"; shift ;;
17690 + obj_suffix="`echo $object | sed 's/^.*\././'`"
17691 + touch "$tmpdepfile"
17692 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
17694 + cat < "$tmpdepfile" > "$depfile"
17695 + sed '1,2d' "$tmpdepfile" | tr ' ' '
17697 +## Some versions of the HPUX 10.20 sed can't process this invocation
17698 +## correctly. Breaking it into two sed invocations is a workaround.
17699 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
17700 + rm -f "$tmpdepfile" "$tmpdepfile".bak
17704 + # Important note: in order to support this mode, a compiler *must*
17705 + # always write the preprocessed file to stdout.
17708 + # Remove the call to Libtool.
17709 + if test "$libtool" = yes; then
17710 + while test $1 != '--mode=compile'; do
17716 + # Remove `-o $object'.
17728 + set fnord "$@" "$arg"
17736 + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
17737 + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
17738 + sed '$ s: \\$::' > "$tmpdepfile"
17740 + echo "$object : \\" > "$depfile"
17741 + cat < "$tmpdepfile" >> "$depfile"
17742 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
17743 + rm -f "$tmpdepfile"
17747 + # Important note: in order to support this mode, a compiler *must*
17748 + # always write the preprocessed file to stdout, regardless of -o,
17749 + # because we must use -o when running libtool.
17755 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
17761 + set fnord "$@" "$arg"
17768 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
17770 + echo "$object : \\" > "$depfile"
17771 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
17772 + echo " " >> "$depfile"
17773 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
17774 + rm -f "$tmpdepfile"
17782 + echo "Unknown depmode $depmode" 1>&2
17789 +# Local Variables:
17790 +# mode: shell-script
17791 +# sh-indentation: 2
17792 +# eval: (add-hook 'write-file-hooks 'time-stamp)
17793 +# time-stamp-start: "scriptversion="
17794 +# time-stamp-format: "%:y-%02m-%02d.%02H"
17795 +# time-stamp-end: "$"
17797 Index: libffi/install-sh
17798 ===================================================================
17800 +++ libffi/install-sh
17803 +# install - install a program, script, or datafile
17805 +scriptversion=2009-04-28.21; # UTC
17807 +# This originates from X11R5 (mit/util/scripts/install.sh), which was
17808 +# later released in X11R6 (xc/config/util/install.sh) with the
17809 +# following copyright and license.
17811 +# Copyright (C) 1994 X Consortium
17813 +# Permission is hereby granted, free of charge, to any person obtaining a copy
17814 +# of this software and associated documentation files (the "Software"), to
17815 +# deal in the Software without restriction, including without limitation the
17816 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
17817 +# sell copies of the Software, and to permit persons to whom the Software is
17818 +# furnished to do so, subject to the following conditions:
17820 +# The above copyright notice and this permission notice shall be included in
17821 +# all copies or substantial portions of the Software.
17823 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17824 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17825 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17826 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
17827 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
17828 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17830 +# Except as contained in this notice, the name of the X Consortium shall not
17831 +# be used in advertising or otherwise to promote the sale, use or other deal-
17832 +# ings in this Software without prior written authorization from the X Consor-
17836 +# FSF changes to this file are in the public domain.
17838 +# Calling this script install-sh is preferred over install.sh, to prevent
17839 +# `make' implicit rules from creating a file called install from it
17840 +# when there is no Makefile.
17842 +# This script is compatible with the BSD install script, but was written
17849 +# set DOITPROG to echo to test this script
17851 +# Don't use :- since 4.3BSD and earlier shells don't like it.
17853 +if test -z "$doit"; then
17859 +# Put in absolute file names if you don't have them in your path;
17860 +# or use environment vars.
17862 +chgrpprog=${CHGRPPROG-chgrp}
17863 +chmodprog=${CHMODPROG-chmod}
17864 +chownprog=${CHOWNPROG-chown}
17865 +cmpprog=${CMPPROG-cmp}
17866 +cpprog=${CPPROG-cp}
17867 +mkdirprog=${MKDIRPROG-mkdir}
17868 +mvprog=${MVPROG-mv}
17869 +rmprog=${RMPROG-rm}
17870 +stripprog=${STRIPPROG-strip}
17873 +initialize_posix_glob='
17874 + test "$posix_glob" != "?" || {
17875 + if (set -f) 2>/dev/null; then
17885 +# Desired mode of installed file.
17889 +chmodcmd=$chmodprog
17892 +rmcmd="$rmprog -f"
17900 +copy_on_change=false
17901 +no_target_directory=
17904 +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
17905 + or: $0 [OPTION]... SRCFILES... DIRECTORY
17906 + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
17907 + or: $0 [OPTION]... -d DIRECTORIES...
17909 +In the 1st form, copy SRCFILE to DSTFILE.
17910 +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
17911 +In the 4th, create DIRECTORIES.
17914 + --help display this help and exit.
17915 + --version display version info and exit.
17918 + -C install only if different (preserve the last data modification time)
17919 + -d create directories instead of installing files.
17920 + -g GROUP $chgrpprog installed files to GROUP.
17921 + -m MODE $chmodprog installed files to MODE.
17922 + -o USER $chownprog installed files to USER.
17923 + -s $stripprog installed files.
17924 + -t DIRECTORY install into DIRECTORY.
17925 + -T report an error if DSTFILE is a directory.
17927 +Environment variables override the default commands:
17928 + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
17932 +while test $# -ne 0; do
17936 + -C) copy_on_change=true;;
17938 + -d) dir_arg=true;;
17940 + -g) chgrpcmd="$chgrpprog $2"
17943 + --help) echo "$usage"; exit $?;;
17947 + *' '* | *' '* | *'
17948 +'* | *'*'* | *'?'* | *'['*)
17949 + echo "$0: invalid mode: $mode" >&2
17954 + -o) chowncmd="$chownprog $2"
17957 + -s) stripcmd=$stripprog;;
17962 + -T) no_target_directory=true;;
17964 + --version) echo "$0 $scriptversion"; exit $?;;
17969 + -*) echo "$0: invalid option: $1" >&2
17977 +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
17978 + # When -d is used, all remaining arguments are directories to create.
17979 + # When -t is used, the destination is already specified.
17980 + # Otherwise, the last argument is the destination. Remove it from $@.
17983 + if test -n "$dst_arg"; then
17984 + # $@ is not empty: it contains at least $arg.
17985 + set fnord "$@" "$dst_arg"
17993 +if test $# -eq 0; then
17994 + if test -z "$dir_arg"; then
17995 + echo "$0: no input file specified." >&2
17998 + # It's OK to call `install-sh -d' without argument.
17999 + # This can happen when creating conditional directories.
18003 +if test -z "$dir_arg"; then
18004 + trap '(exit $?); exit' 1 2 13 15
18006 + # Set umask so as not to create temps with too-generous modes.
18007 + # However, 'strip' requires both read and write access to temps.
18009 + # Optimize common cases.
18010 + *644) cp_umask=133;;
18011 + *755) cp_umask=22;;
18014 + if test -z "$stripcmd"; then
18017 + u_plus_rw='% 200'
18019 + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
18021 + if test -z "$stripcmd"; then
18026 + cp_umask=$mode$u_plus_rw;;
18032 + # Protect names starting with `-'.
18037 + if test -n "$dir_arg"; then
18040 + test -d "$dstdir"
18044 + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
18045 + # might cause directories to be created, which would be especially bad
18046 + # if $src (and thus $dsttmp) contains '*'.
18047 + if test ! -f "$src" && test ! -d "$src"; then
18048 + echo "$0: $src does not exist." >&2
18052 + if test -z "$dst_arg"; then
18053 + echo "$0: no destination specified." >&2
18058 + # Protect names starting with `-'.
18063 + # If destination is a directory, append the input filename; won't work
18064 + # if double slashes aren't ignored.
18065 + if test -d "$dst"; then
18066 + if test -n "$no_target_directory"; then
18067 + echo "$0: $dst_arg: Is a directory" >&2
18071 + dst=$dstdir/`basename "$src"`
18074 + # Prefer dirname, but fall back on a substitute if dirname fails.
18076 + (dirname "$dst") 2>/dev/null ||
18077 + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18078 + X"$dst" : 'X\(//\)[^/]' \| \
18079 + X"$dst" : 'X\(//\)$' \| \
18080 + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
18082 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18086 + /^X\(\/\/\)[^/].*/{
18101 + test -d "$dstdir"
18106 + obsolete_mkdir_used=false
18108 + if test $dstdir_status != 0; then
18109 + case $posix_mkdir in
18111 + # Create intermediate dirs using mode 755 as modified by the umask.
18112 + # This is like FreeBSD 'install' as of 1997-10-28.
18114 + case $stripcmd.$umask in
18115 + # Optimize common cases.
18116 + *[2367][2367]) mkdir_umask=$umask;;
18117 + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
18120 + mkdir_umask=`expr $umask + 22 \
18121 + - $umask % 100 % 40 + $umask % 20 \
18122 + - $umask % 10 % 4 + $umask % 2
18124 + *) mkdir_umask=$umask,go-w;;
18127 + # With -d, create the new directory with the user-specified mode.
18128 + # Otherwise, rely on $mkdir_umask.
18129 + if test -n "$dir_arg"; then
18130 + mkdir_mode=-m$mode
18135 + posix_mkdir=false
18137 + *[123567][0-7][0-7])
18138 + # POSIX mkdir -p sets u+wx bits regardless of umask, which
18139 + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
18142 + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
18143 + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
18145 + if (umask $mkdir_umask &&
18146 + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
18148 + if test -z "$dir_arg" || {
18149 + # Check for POSIX incompatibilities with -m.
18150 + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
18151 + # other-writeable bit of parent directory when it shouldn't.
18152 + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
18153 + ls_ld_tmpdir=`ls -ld "$tmpdir"`
18154 + case $ls_ld_tmpdir in
18155 + d????-?r-*) different_mode=700;;
18156 + d????-?--*) different_mode=755;;
18159 + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
18160 + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
18161 + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
18164 + then posix_mkdir=:
18166 + rmdir "$tmpdir/d" "$tmpdir"
18168 + # Remove any dirs left behind by ancient mkdir implementations.
18169 + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
18176 + $posix_mkdir && (
18177 + umask $mkdir_umask &&
18178 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
18183 + # The umask is ridiculous, or mkdir does not conform to POSIX,
18184 + # or it failed possibly due to a race condition. Create the
18185 + # directory the slow way, step by step, checking for races as we go.
18189 + -*) prefix='./';;
18193 + eval "$initialize_posix_glob"
18197 + $posix_glob set -f
18198 + set fnord $dstdir
18200 + $posix_glob set +f
18207 + test -z "$d" && continue
18210 + if test -d "$prefix"; then
18213 + if $posix_mkdir; then
18214 + (umask=$mkdir_umask &&
18215 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
18216 + # Don't fail if two instances are running concurrently.
18217 + test -d "$prefix" || exit 1
18220 + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
18221 + *) qprefix=$prefix;;
18223 + prefixes="$prefixes '$qprefix'"
18229 + if test -n "$prefixes"; then
18230 + # Don't fail if two instances are running concurrently.
18231 + (umask $mkdir_umask &&
18232 + eval "\$doit_exec \$mkdirprog $prefixes") ||
18233 + test -d "$dstdir" || exit 1
18234 + obsolete_mkdir_used=true
18239 + if test -n "$dir_arg"; then
18240 + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
18241 + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
18242 + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
18243 + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
18246 + # Make a couple of temp file names in the proper directory.
18247 + dsttmp=$dstdir/_inst.$$_
18248 + rmtmp=$dstdir/_rm.$$_
18250 + # Trap to clean up those temp files at exit.
18251 + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
18253 + # Copy the file name to the temp name.
18254 + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
18256 + # and set any options; do chmod last to preserve setuid bits.
18258 + # If any of these fail, we abort the whole thing. If we want to
18259 + # ignore errors from any of these, just make sure not to ignore
18260 + # errors from the above "$doit $cpprog $src $dsttmp" command.
18262 + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
18263 + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
18264 + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
18265 + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
18267 + # If -C, don't bother to copy if it wouldn't change the file.
18268 + if $copy_on_change &&
18269 + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
18270 + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
18272 + eval "$initialize_posix_glob" &&
18273 + $posix_glob set -f &&
18274 + set X $old && old=:$2:$4:$5:$6 &&
18275 + set X $new && new=:$2:$4:$5:$6 &&
18276 + $posix_glob set +f &&
18278 + test "$old" = "$new" &&
18279 + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
18283 + # Rename the file to the real destination.
18284 + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
18286 + # The rename failed, perhaps because mv can't rename something else
18287 + # to itself, or perhaps because mv is so ancient that it does not
18290 + # Now remove or move aside any old file at destination location.
18291 + # We try this two ways since rm can't unlink itself on some
18292 + # systems and the destination file might be busy for other
18293 + # reasons. In this case, the final cleanup might fail but the new
18294 + # file should still install successfully.
18296 + test ! -f "$dst" ||
18297 + $doit $rmcmd -f "$dst" 2>/dev/null ||
18298 + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
18299 + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
18301 + { echo "$0: cannot unlink or rename $dst" >&2
18306 + # Now rename the file to the real destination.
18307 + $doit $mvcmd "$dsttmp" "$dst"
18315 +# Local variables:
18316 +# eval: (add-hook 'write-file-hooks 'time-stamp)
18317 +# time-stamp-start: "scriptversion="
18318 +# time-stamp-format: "%:y-%02m-%02d.%02H"
18319 +# time-stamp-time-zone: "UTC"
18320 +# time-stamp-end: "; # UTC"
18322 Index: libffi/libffi.pc.in
18323 ===================================================================
18325 +++ libffi/libffi.pc.in
18328 +exec_prefix=@exec_prefix@
18330 +includedir=${libdir}/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
18332 +Name: @PACKAGE_NAME@
18333 +Description: Library supporting Foreign Function Interfaces
18334 +Version: @PACKAGE_VERSION@
18335 +Libs: -L${libdir} -lffi
18336 +Cflags: -I${includedir}
18337 Index: libffi/libtool-version
18338 ===================================================================
18339 --- libffi.orig/libtool-version
18340 +++ libffi/libtool-version
18342 # the libtool manual to understand the meaning of the fields. This is
18343 # a separate file so that version updates don't involve re-running
18346 +# Here are a set of rules to help you update your library version
18349 +# 1. Start with version information of `0:0:0' for each libtool library.
18351 +# 2. Update the version information only immediately before a public
18352 +# release of your software. More frequent updates are unnecessary,
18353 +# and only guarantee that the current interface number gets larger
18356 +# 3. If the library source code has changed at all since the last
18357 +# update, then increment revision (`c:r:a' becomes `c:r+1:a').
18359 +# 4. If any interfaces have been added, removed, or changed since the
18360 +# last update, increment current, and set revision to 0.
18362 +# 5. If any interfaces have been added since the last public release,
18363 +# then increment age.
18365 +# 6. If any interfaces have been removed since the last public
18366 +# release, then set age to 0.
18368 # CURRENT:REVISION:AGE
18371 Index: libffi/ltmain.sh
18372 ===================================================================
18374 +++ libffi/ltmain.sh
18376 +# Generated from ltmain.m4sh.
18378 +# ltmain.sh (GNU libtool) 2.2.6b
18379 +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
18381 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
18382 +# This is free software; see the source for copying conditions. There is NO
18383 +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18385 +# GNU Libtool is free software; you can redistribute it and/or modify
18386 +# it under the terms of the GNU General Public License as published by
18387 +# the Free Software Foundation; either version 2 of the License, or
18388 +# (at your option) any later version.
18390 +# As a special exception to the GNU General Public License,
18391 +# if you distribute this file as part of a program or library that
18392 +# is built using GNU Libtool, you may include this file under the
18393 +# same distribution terms that you use for the rest of that program.
18395 +# GNU Libtool is distributed in the hope that it will be useful, but
18396 +# WITHOUT ANY WARRANTY; without even the implied warranty of
18397 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18398 +# General Public License for more details.
18400 +# You should have received a copy of the GNU General Public License
18401 +# along with GNU Libtool; see the file COPYING. If not, a copy
18402 +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
18403 +# or obtained by writing to the Free Software Foundation, Inc.,
18404 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18406 +# Usage: $progname [OPTION]... [MODE-ARG]...
18408 +# Provide generalized library-building support services.
18410 +# --config show all configuration variables
18411 +# --debug enable verbose shell tracing
18412 +# -n, --dry-run display commands without modifying any files
18413 +# --features display basic configuration information and exit
18414 +# --mode=MODE use operation mode MODE
18415 +# --preserve-dup-deps don't remove duplicate dependency libraries
18416 +# --quiet, --silent don't print informational messages
18417 +# --tag=TAG use configuration variables from tag TAG
18418 +# -v, --verbose print informational messages (default)
18419 +# --version print version information
18420 +# -h, --help print short or long help message
18422 +# MODE must be one of the following:
18424 +# clean remove files from the build directory
18425 +# compile compile a source file into a libtool object
18426 +# execute automatically set library path, then run a program
18427 +# finish complete the installation of libtool libraries
18428 +# install install libraries or executables
18429 +# link create a library or an executable
18430 +# uninstall remove libraries from an installed directory
18432 +# MODE-ARGS vary depending on the MODE.
18433 +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
18435 +# When reporting a bug, please describe a test case to reproduce it and
18436 +# include the following information:
18438 +# host-triplet: $host
18441 +# compiler flags: $LTCFLAGS
18442 +# linker: $LD (gnu? $with_gnu_ld)
18443 +# $progname: (GNU libtool) 2.2.6b
18444 +# automake: $automake_version
18445 +# autoconf: $autoconf_version
18447 +# Report bugs to <bug-libtool@gnu.org>.
18453 +package_revision=1.3017
18455 +# Be Bourne compatible
18456 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18459 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18460 + # is contrary to our usage. Disable this feature.
18461 + alias -g '${1+"$@"}'='"$@"'
18462 + setopt NO_GLOB_SUBST
18464 + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18466 +BIN_SH=xpg4; export BIN_SH # for Tru64
18467 +DUALCASE=1; export DUALCASE # for MKS sh
18469 +# NLS nuisances: We save the old values to restore during execute mode.
18470 +# Only set LANG and LC_ALL to C if already set.
18471 +# These must not be set unconditionally because not all systems understand
18472 +# e.g. LANG=C (notably SCO).
18475 +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
18477 + eval "if test \"\${$lt_var+set}\" = set; then
18478 + save_$lt_var=\$$lt_var
18481 + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
18482 + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
18494 +: ${EGREP="/bin/grep -E"}
18495 +: ${FGREP="/bin/grep -F"}
18496 +: ${GREP="/bin/grep"}
18499 +: ${MKDIR="mkdir"}
18502 +: ${SED="/bin/sed"}
18503 +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
18504 +: ${Xsed="$SED -e 1s/^X//"}
18506 +# Global variables:
18509 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
18510 +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
18512 +exit_status=$EXIT_SUCCESS
18514 +# Make sure IFS has a sensible default
18519 +dirname="s,/[^/]*$,,"
18520 +basename="s,^.*/,,"
18522 +# func_dirname_and_basename file append nondir_replacement
18523 +# perform func_basename and func_dirname in a single function
18525 +# dirname: Compute the dirname of FILE. If nonempty,
18526 +# add APPEND to the result, otherwise set result
18527 +# to NONDIR_REPLACEMENT.
18528 +# value returned in "$func_dirname_result"
18529 +# basename: Compute filename of FILE.
18530 +# value retuned in "$func_basename_result"
18531 +# Implementation must be kept synchronized with func_dirname
18532 +# and func_basename. For efficiency, we do not delegate to
18533 +# those functions but instead duplicate the functionality here.
18534 +func_dirname_and_basename ()
18536 + # Extract subdirectory from the argument.
18537 + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
18538 + if test "X$func_dirname_result" = "X${1}"; then
18539 + func_dirname_result="${3}"
18541 + func_dirname_result="$func_dirname_result${2}"
18543 + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
18546 +# Generated shell functions inserted here.
18548 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
18549 +# is ksh but when the shell is invoked as "sh" and the current value of
18550 +# the _XPG environment variable is not equal to 1 (one), the special
18551 +# positional parameter $0, within a function call, is the name of the
18555 +# The name of this program:
18556 +# In the unlikely event $progname began with a '-', it would play havoc with
18557 +# func_echo (imagine progname=-n), so we prepend ./ in that case:
18558 +func_dirname_and_basename "$progpath"
18559 +progname=$func_basename_result
18561 + -*) progname=./$progname ;;
18564 +# Make sure we have an absolute path for reexecution:
18566 + [\\/]*|[A-Za-z]:\\*) ;;
18568 + progdir=$func_dirname_result
18569 + progdir=`cd "$progdir" && pwd`
18570 + progpath="$progdir/$progname"
18575 + for progdir in $PATH; do
18577 + test -x "$progdir/$progname" && break
18580 + test -n "$progdir" || progdir=`pwd`
18581 + progpath="$progdir/$progname"
18585 +# Sed substitution that helps us do robust quoting. It backslashifies
18586 +# metacharacters that are still active within double-quoted strings.
18587 +Xsed="${SED}"' -e 1s/^X//'
18588 +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
18590 +# Same as above, but do not quote variable references.
18591 +double_quote_subst='s/\(["`\\]\)/\\\1/g'
18593 +# Re-`\' parameter expansions in output of double_quote_subst that were
18594 +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
18595 +# in input to double_quote_subst, that '$' was protected from expansion.
18596 +# Since each input `\' is now two `\'s, look for any number of runs of
18597 +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
18602 +sed_double_backslash="\
18605 + s/^$bs2$dollar/$bs&/
18606 + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
18609 +# Standard options:
18616 +# func_echo arg...
18617 +# Echo program name prefixed message, along with the current mode
18618 +# name if it has been set yet.
18621 + $ECHO "$progname${mode+: }$mode: $*"
18624 +# func_verbose arg...
18625 +# Echo program name prefixed message in verbose mode only.
18628 + $opt_verbose && func_echo ${1+"$@"}
18630 + # A bug in bash halts the script if the last line of a function
18631 + # fails when set -e is in force, so we need another command to
18632 + # work around that:
18636 +# func_error arg...
18637 +# Echo program name prefixed message to standard error.
18640 + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
18643 +# func_warning arg...
18644 +# Echo program name prefixed warning message to standard error.
18647 + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
18649 + # bash bug again:
18653 +# func_fatal_error arg...
18654 +# Echo program name prefixed message to standard error, and exit.
18655 +func_fatal_error ()
18657 + func_error ${1+"$@"}
18658 + exit $EXIT_FAILURE
18661 +# func_fatal_help arg...
18662 +# Echo program name prefixed message to standard error, followed by
18663 +# a help hint, and exit.
18664 +func_fatal_help ()
18666 + func_error ${1+"$@"}
18667 + func_fatal_error "$help"
18669 +help="Try \`$progname --help' for more information." ## default
18672 +# func_grep expression filename
18673 +# Check whether EXPRESSION matches any line of FILENAME, without output.
18676 + $GREP "$1" "$2" >/dev/null 2>&1
18680 +# func_mkdir_p directory-path
18681 +# Make sure the entire path to DIRECTORY-PATH is available.
18684 + my_directory_path="$1"
18687 + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
18689 + # Protect directory names starting with `-'
18690 + case $my_directory_path in
18691 + -*) my_directory_path="./$my_directory_path" ;;
18694 + # While some portion of DIR does not yet exist...
18695 + while test ! -d "$my_directory_path"; do
18696 + # ...make a list in topmost first order. Use a colon delimited
18697 + # list incase some portion of path contains whitespace.
18698 + my_dir_list="$my_directory_path:$my_dir_list"
18700 + # If the last portion added has no slash in it, the list is done
18701 + case $my_directory_path in */*) ;; *) break ;; esac
18703 + # ...otherwise throw away the child directory and loop
18704 + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
18706 + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
18708 + save_mkdir_p_IFS="$IFS"; IFS=':'
18709 + for my_dir in $my_dir_list; do
18710 + IFS="$save_mkdir_p_IFS"
18711 + # mkdir can fail with a `File exist' error if two processes
18712 + # try to create one of the directories concurrently. Don't
18713 + # stop in that case!
18714 + $MKDIR "$my_dir" 2>/dev/null || :
18716 + IFS="$save_mkdir_p_IFS"
18718 + # Bail out if we (or some other process) failed to create a directory.
18719 + test -d "$my_directory_path" || \
18720 + func_fatal_error "Failed to create \`$1'"
18725 +# func_mktempdir [string]
18726 +# Make a temporary directory that won't clash with other running
18727 +# libtool processes, and avoids race conditions if possible. If
18728 +# given, STRING is the basename for that directory.
18731 + my_template="${TMPDIR-/tmp}/${1-$progname}"
18733 + if test "$opt_dry_run" = ":"; then
18734 + # Return a directory name, but don't create it in dry-run mode
18735 + my_tmpdir="${my_template}-$$"
18738 + # If mktemp works, use that first and foremost
18739 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
18741 + if test ! -d "$my_tmpdir"; then
18742 + # Failing that, at least try and use $RANDOM to avoid a race
18743 + my_tmpdir="${my_template}-${RANDOM-0}$$"
18745 + save_mktempdir_umask=`umask`
18747 + $MKDIR "$my_tmpdir"
18748 + umask $save_mktempdir_umask
18751 + # If we're not in dry-run mode, bomb out on failure
18752 + test -d "$my_tmpdir" || \
18753 + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
18756 + $ECHO "X$my_tmpdir" | $Xsed
18760 +# func_quote_for_eval arg
18761 +# Aesthetically quote ARG to be evaled later.
18762 +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
18763 +# is double-quoted, suitable for a subsequent eval, whereas
18764 +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
18765 +# which are still active within double quotes backslashified.
18766 +func_quote_for_eval ()
18770 + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
18772 + func_quote_for_eval_unquoted_result="$1" ;;
18775 + case $func_quote_for_eval_unquoted_result in
18776 + # Double-quote args containing shell metacharacters to delay
18777 + # word splitting, command substitution and and variable
18778 + # expansion for a subsequent eval.
18779 + # Many Bourne shells cannot handle close brackets correctly
18780 + # in scan sets, so we specify it separately.
18781 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
18782 + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
18785 + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
18790 +# func_quote_for_expand arg
18791 +# Aesthetically quote ARG to be evaled later; same as above,
18792 +# but do not quote variable references.
18793 +func_quote_for_expand ()
18797 + my_arg=`$ECHO "X$1" | $Xsed \
18798 + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
18804 + # Double-quote args containing shell metacharacters to delay
18805 + # word splitting and command substitution for a subsequent eval.
18806 + # Many Bourne shells cannot handle close brackets correctly
18807 + # in scan sets, so we specify it separately.
18808 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
18809 + my_arg="\"$my_arg\""
18813 + func_quote_for_expand_result="$my_arg"
18817 +# func_show_eval cmd [fail_exp]
18818 +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
18819 +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
18820 +# is given, then evaluate it.
18824 + my_fail_exp="${2-:}"
18826 + ${opt_silent-false} || {
18827 + func_quote_for_expand "$my_cmd"
18828 + eval "func_echo $func_quote_for_expand_result"
18831 + if ${opt_dry_run-false}; then :; else
18834 + if test "$my_status" -eq 0; then :; else
18835 + eval "(exit $my_status); $my_fail_exp"
18841 +# func_show_eval_locale cmd [fail_exp]
18842 +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
18843 +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
18844 +# is given, then evaluate it. Use the saved locale for evaluation.
18845 +func_show_eval_locale ()
18848 + my_fail_exp="${2-:}"
18850 + ${opt_silent-false} || {
18851 + func_quote_for_expand "$my_cmd"
18852 + eval "func_echo $func_quote_for_expand_result"
18855 + if ${opt_dry_run-false}; then :; else
18856 + eval "$lt_user_locale
18859 + eval "$lt_safe_locale"
18860 + if test "$my_status" -eq 0; then :; else
18861 + eval "(exit $my_status); $my_fail_exp"
18871 +# Echo version message to standard output and exit.
18874 + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
18877 + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
18884 +# Echo short help message to standard output and exit.
18887 + $SED -n '/^# Usage:/,/# -h/ {
18890 + s/\$progname/'$progname'/
18894 + $ECHO "run \`$progname --help | more' for full usage"
18899 +# Echo long help message to standard output and exit.
18902 + $SED -n '/^# Usage:/,/# Report bugs to/ {
18905 + s*\$progname*'$progname'*
18906 + s*\$host*'"$host"'*
18907 + s*\$SHELL*'"$SHELL"'*
18908 + s*\$LTCC*'"$LTCC"'*
18909 + s*\$LTCFLAGS*'"$LTCFLAGS"'*
18911 + s/\$with_gnu_ld/'"$with_gnu_ld"'/
18912 + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
18913 + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
18919 +# func_missing_arg argname
18920 +# Echo program name prefixed message to standard error and set global
18922 +func_missing_arg ()
18924 + func_error "missing argument for $1"
18934 +# Check that we have a working $ECHO.
18935 +if test "X$1" = X--no-reexec; then
18936 + # Discard the --no-reexec flag, and continue.
18938 +elif test "X$1" = X--fallback-echo; then
18939 + # Avoid inline document here, it may be left over
18941 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
18942 + # Yippee, $ECHO works!
18945 + # Restart under the correct shell, and then maybe $ECHO will work.
18946 + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
18949 +if test "X$1" = X--fallback-echo; then
18950 + # used as fallback echo
18955 + exit $EXIT_SUCCESS
18958 +magic="%%%MAGIC variable%%%"
18959 +magic_exe="%%%MAGIC EXE variable%%%"
18961 +# Global variables.
18966 +lo2o="s/\\.lo\$/.${objext}/"
18967 +o2lo="s/\\.${objext}\$/.lo/"
18968 +extracted_archives=
18969 +extracted_serial=0
18972 +opt_duplicate_deps=false
18976 +# If this variable is set in any of the actions, the command in it
18977 +# will be execed at the end. This prevents here-documents from being
18978 +# left over by shells.
18981 +# func_fatal_configuration arg...
18982 +# Echo program name prefixed message to standard error, followed by
18983 +# a configuration failure hint, and exit.
18984 +func_fatal_configuration ()
18986 + func_error ${1+"$@"}
18987 + func_error "See the $PACKAGE documentation for more information."
18988 + func_fatal_error "Fatal configuration error."
18993 +# Display the configuration for all the tags in this script.
18996 + re_begincf='^# ### BEGIN LIBTOOL'
18997 + re_endcf='^# ### END LIBTOOL'
18999 + # Default configuration.
19000 + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
19002 + # Now print the configurations for the tags.
19003 + for tagname in $taglist; do
19004 + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
19011 +# Display the features supported by this script.
19014 + $ECHO "host: $host"
19015 + if test "$build_libtool_libs" = yes; then
19016 + $ECHO "enable shared libraries"
19018 + $ECHO "disable shared libraries"
19020 + if test "$build_old_libs" = yes; then
19021 + $ECHO "enable static libraries"
19023 + $ECHO "disable static libraries"
19029 +# func_enable_tag tagname
19030 +# Verify that TAGNAME is valid, and either flag an error and exit, or
19031 +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
19033 +func_enable_tag ()
19035 + # Global variable:
19038 + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
19039 + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
19040 + sed_extractcf="/$re_begincf/,/$re_endcf/p"
19042 + # Validate tagname.
19044 + *[!-_A-Za-z0-9,/]*)
19045 + func_fatal_error "invalid tag name: $tagname"
19049 + # Don't test for the "default" C tag, as we know it's
19050 + # there but not specially marked.
19054 + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
19055 + taglist="$taglist $tagname"
19057 + # Evaluate the configuration. Be careful to quote the path
19058 + # and the sed script, to avoid splitting on whitespace, but
19059 + # also don't use non-portable quotes within backquotes within
19060 + # quotes we have to do it in 2 steps:
19061 + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
19062 + eval "$extractedcf"
19064 + func_error "ignoring unknown tag $tagname"
19070 +# Parse options once, thoroughly. This comes as soon as possible in
19071 +# the script to make things like `libtool --version' happen quickly.
19074 + # Shorthand for --mode=foo, only valid as the first argument
19076 + clean|clea|cle|cl)
19077 + shift; set dummy --mode clean ${1+"$@"}; shift
19079 + compile|compil|compi|comp|com|co|c)
19080 + shift; set dummy --mode compile ${1+"$@"}; shift
19082 + execute|execut|execu|exec|exe|ex|e)
19083 + shift; set dummy --mode execute ${1+"$@"}; shift
19085 + finish|finis|fini|fin|fi|f)
19086 + shift; set dummy --mode finish ${1+"$@"}; shift
19088 + install|instal|insta|inst|ins|in|i)
19089 + shift; set dummy --mode install ${1+"$@"}; shift
19092 + shift; set dummy --mode link ${1+"$@"}; shift
19094 + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
19095 + shift; set dummy --mode uninstall ${1+"$@"}; shift
19099 + # Parse non-mode specific arguments:
19100 + while test "$#" -gt 0; do
19105 + --config) func_config ;;
19107 + --debug) preserve_args="$preserve_args $opt"
19108 + func_echo "enabling shell trace mode"
19109 + opt_debug='set -x'
19113 + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
19114 + execute_dlfiles="$execute_dlfiles $1"
19118 + --dry-run | -n) opt_dry_run=: ;;
19119 + --features) func_features ;;
19120 + --finish) mode="finish" ;;
19122 + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
19124 + # Valid mode arguments:
19134 + # Catch anything else as an error
19135 + *) func_error "invalid argument for $opt"
19145 + --preserve-dup-deps)
19146 + opt_duplicate_deps=: ;;
19148 + --quiet|--silent) preserve_args="$preserve_args $opt"
19152 + --verbose| -v) preserve_args="$preserve_args $opt"
19156 + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
19157 + preserve_args="$preserve_args $opt $1"
19158 + func_enable_tag "$1" # tagname is set here
19162 + # Separate optargs to long options:
19163 + -dlopen=*|--mode=*|--tag=*)
19164 + func_opt_split "$opt"
19165 + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
19169 + -\?|-h) func_usage ;;
19170 + --help) opt_help=: ;;
19171 + --version) func_version ;;
19173 + -*) func_fatal_help "unrecognized option \`$opt'" ;;
19183 + *cygwin* | *mingw* | *pw32* | *cegcc*)
19184 + # don't eliminate duplications in $postdeps and $predeps
19185 + opt_duplicate_compiler_generated_deps=:
19188 + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
19192 + # Having warned about all mis-specified options, bail out if
19193 + # anything was wrong.
19194 + $exit_cmd $EXIT_FAILURE
19197 +# func_check_version_match
19198 +# Ensure that we are using m4 macros, and libtool script from the same
19199 +# release of libtool.
19200 +func_check_version_match ()
19202 + if test "$package_revision" != "$macro_revision"; then
19203 + if test "$VERSION" != "$macro_version"; then
19204 + if test -z "$macro_version"; then
19205 + cat >&2 <<_LT_EOF
19206 +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
19207 +$progname: definition of this LT_INIT comes from an older release.
19208 +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
19209 +$progname: and run autoconf again.
19212 + cat >&2 <<_LT_EOF
19213 +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
19214 +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
19215 +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
19216 +$progname: and run autoconf again.
19220 + cat >&2 <<_LT_EOF
19221 +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
19222 +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
19223 +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
19224 +$progname: of $PACKAGE $VERSION and run autoconf again.
19228 + exit $EXIT_MISMATCH
19238 + # Sanity checks first:
19239 + func_check_version_match
19241 + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
19242 + func_fatal_configuration "not configured to build any kind of library"
19245 + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
19249 + eval std_shrext=\"$shrext_cmds\"
19252 + # Only execute mode is allowed to have -dlopen flags.
19253 + if test -n "$execute_dlfiles" && test "$mode" != execute; then
19254 + func_error "unrecognized option \`-dlopen'"
19255 + $ECHO "$help" 1>&2
19256 + exit $EXIT_FAILURE
19259 + # Change the help message to a mode-specific one.
19260 + generic_help="$help"
19261 + help="Try \`$progname --help --mode=$mode' for more information."
19265 +# func_lalib_p file
19266 +# True iff FILE is a libtool `.la' library or `.lo' object file.
19267 +# This function is only a basic sanity check; it will hardly flush out
19268 +# determined imposters.
19272 + $SED -e 4q "$1" 2>/dev/null \
19273 + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
19276 +# func_lalib_unsafe_p file
19277 +# True iff FILE is a libtool `.la' library or `.lo' object file.
19278 +# This function implements the same check as func_lalib_p without
19279 +# resorting to external programs. To this end, it redirects stdin and
19280 +# closes it afterwards, without saving the original file descriptor.
19281 +# As a safety measure, use it only where a negative result would be
19282 +# fatal anyway. Works if `file' does not exist.
19283 +func_lalib_unsafe_p ()
19286 + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
19287 + for lalib_p_l in 1 2 3 4
19289 + read lalib_p_line
19290 + case "$lalib_p_line" in
19291 + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
19296 + test "$lalib_p" = yes
19299 +# func_ltwrapper_script_p file
19300 +# True iff FILE is a libtool wrapper script
19301 +# This function is only a basic sanity check; it will hardly flush out
19302 +# determined imposters.
19303 +func_ltwrapper_script_p ()
19305 + func_lalib_p "$1"
19308 +# func_ltwrapper_executable_p file
19309 +# True iff FILE is a libtool wrapper executable
19310 +# This function is only a basic sanity check; it will hardly flush out
19311 +# determined imposters.
19312 +func_ltwrapper_executable_p ()
19314 + func_ltwrapper_exec_suffix=
19317 + *) func_ltwrapper_exec_suffix=.exe ;;
19319 + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
19322 +# func_ltwrapper_scriptname file
19323 +# Assumes file is an ltwrapper_executable
19324 +# uses $file to determine the appropriate filename for a
19325 +# temporary ltwrapper_script.
19326 +func_ltwrapper_scriptname ()
19328 + func_ltwrapper_scriptname_result=""
19329 + if func_ltwrapper_executable_p "$1"; then
19330 + func_dirname_and_basename "$1" "" "."
19331 + func_stripname '' '.exe' "$func_basename_result"
19332 + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
19336 +# func_ltwrapper_p file
19337 +# True iff FILE is a libtool wrapper script or wrapper executable
19338 +# This function is only a basic sanity check; it will hardly flush out
19339 +# determined imposters.
19340 +func_ltwrapper_p ()
19342 + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
19346 +# func_execute_cmds commands fail_cmd
19347 +# Execute tilde-delimited COMMANDS.
19348 +# If FAIL_CMD is given, eval that upon failure.
19349 +# FAIL_CMD may read-access the current command in variable CMD!
19350 +func_execute_cmds ()
19353 + save_ifs=$IFS; IFS='~'
19354 + for cmd in $1; do
19356 + eval cmd=\"$cmd\"
19357 + func_show_eval "$cmd" "${2-:}"
19363 +# func_source file
19364 +# Source FILE, adding directory component if necessary.
19365 +# Note that it is not necessary on cygwin/mingw to append a dot to
19366 +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
19367 +# behavior happens only for exec(3), not for open(2)! Also, sourcing
19368 +# `FILE.' does not work on cygwin managed mounts.
19373 + */* | *\\*) . "$1" ;;
19379 +# func_infer_tag arg
19380 +# Infer tagged configuration to use if any are available and
19381 +# if one wasn't chosen via the "--tag" command line option.
19382 +# Only attempt this if the compiler in the base compile
19383 +# command doesn't match the default compiler.
19384 +# arg is usually of the form 'gcc ...'
19388 + if test -n "$available_tags" && test -z "$tagname"; then
19390 + for arg in $CC; do
19391 + func_quote_for_eval "$arg"
19392 + CC_quoted="$CC_quoted $func_quote_for_eval_result"
19395 + # Blanks in the command may have been stripped by the calling shell,
19396 + # but not from the CC environment variable when configure was run.
19397 + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
19398 + # Blanks at the start of $base_compile will cause this to fail
19399 + # if we don't check for them as well.
19401 + for z in $available_tags; do
19402 + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
19403 + # Evaluate the configuration.
19404 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
19406 + for arg in $CC; do
19407 + # Double-quote args containing other shell metacharacters.
19408 + func_quote_for_eval "$arg"
19409 + CC_quoted="$CC_quoted $func_quote_for_eval_result"
19412 + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
19413 + # The compiler in the base compile command matches
19414 + # the one in the tagged configuration.
19415 + # Assume this is the tagged configuration we want.
19422 + # If $tagname still isn't set, then no tagged configuration
19423 + # was found and let the user know that the "--tag" command
19424 + # line option must be used.
19425 + if test -z "$tagname"; then
19426 + func_echo "unable to infer tagged configuration"
19427 + func_fatal_error "specify a tag with \`--tag'"
19429 +# func_verbose "using $tagname tagged configuration"
19438 +# func_write_libtool_object output_name pic_name nonpic_name
19439 +# Create a libtool object file (analogous to a ".la" file),
19440 +# but don't create it if we're doing a dry run.
19441 +func_write_libtool_object ()
19443 + write_libobj=${1}
19444 + if test "$build_libtool_libs" = yes; then
19445 + write_lobj=\'${2}\'
19450 + if test "$build_old_libs" = yes; then
19451 + write_oldobj=\'${3}\'
19453 + write_oldobj=none
19456 + $opt_dry_run || {
19457 + cat >${write_libobj}T <<EOF
19458 +# $write_libobj - a libtool object file
19459 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
19461 +# Please DO NOT delete this file!
19462 +# It is necessary for linking the library.
19464 +# Name of the PIC object.
19465 +pic_object=$write_lobj
19467 +# Name of the non-PIC object
19468 +non_pic_object=$write_oldobj
19471 + $MV "${write_libobj}T" "${write_libobj}"
19475 +# func_mode_compile arg...
19476 +func_mode_compile ()
19479 + # Get the compilation command and the source file.
19481 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
19491 + case $arg_mode in
19493 + # do not "continue". Instead, add this to base_compile
19505 + # Accept any command-line options.
19508 + test -n "$libobj" && \
19509 + func_fatal_error "you cannot specify \`-o' more than once"
19514 + -pie | -fpie | -fPIE)
19515 + pie_flag="$pie_flag $arg"
19519 + -shared | -static | -prefer-pic | -prefer-non-pic)
19520 + later="$later $arg"
19530 + arg_mode=arg # the next one goes into the "base_compile" arg list
19531 + continue # The current "srcfile" will either be retained or
19532 + ;; # replaced later. I would guess that would be a bug.
19535 + func_stripname '-Wc,' '' "$arg"
19536 + args=$func_stripname_result
19538 + save_ifs="$IFS"; IFS=','
19539 + for arg in $args; do
19541 + func_quote_for_eval "$arg"
19542 + lastarg="$lastarg $func_quote_for_eval_result"
19545 + func_stripname ' ' '' "$lastarg"
19546 + lastarg=$func_stripname_result
19548 + # Add the arguments to base_compile.
19549 + base_compile="$base_compile $lastarg"
19554 + # Accept the current argument as the source file.
19555 + # The previous "srcfile" becomes the current argument.
19557 + lastarg="$srcfile"
19562 + esac # case $arg_mode
19564 + # Aesthetically quote the previous argument.
19565 + func_quote_for_eval "$lastarg"
19566 + base_compile="$base_compile $func_quote_for_eval_result"
19569 + case $arg_mode in
19571 + func_fatal_error "you must specify an argument for -Xcompile"
19574 + func_fatal_error "you must specify a target with \`-o'"
19577 + # Get the name of the library object.
19578 + test -z "$libobj" && {
19579 + func_basename "$srcfile"
19580 + libobj="$func_basename_result"
19585 + # Recognize several different file suffixes.
19586 + # If the user specifies -o file.o, it is replaced with file.lo
19588 + *.[cCFSifmso] | \
19589 + *.ada | *.adb | *.ads | *.asm | \
19590 + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
19591 + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
19592 + func_xform "$libobj"
19593 + libobj=$func_xform_result
19598 + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
19600 + func_fatal_error "cannot determine name of library object from \`$libobj'"
19604 + func_infer_tag $base_compile
19606 + for arg in $later; do
19609 + test "$build_libtool_libs" != yes && \
19610 + func_fatal_configuration "can not build a shared library"
19611 + build_old_libs=no
19616 + build_libtool_libs=no
19617 + build_old_libs=yes
19633 + func_quote_for_eval "$libobj"
19634 + test "X$libobj" != "X$func_quote_for_eval_result" \
19635 + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
19636 + && func_warning "libobj name \`$libobj' may not contain shell special characters."
19637 + func_dirname_and_basename "$obj" "/" ""
19638 + objname="$func_basename_result"
19639 + xdir="$func_dirname_result"
19640 + lobj=${xdir}$objdir/$objname
19642 + test -z "$base_compile" && \
19643 + func_fatal_help "you must specify a compilation command"
19645 + # Delete any leftover library objects.
19646 + if test "$build_old_libs" = yes; then
19647 + removelist="$obj $lobj $libobj ${libobj}T"
19649 + removelist="$lobj $libobj ${libobj}T"
19652 + # On Cygwin there's no "real" PIC flag so we must build both object types
19654 + cygwin* | mingw* | pw32* | os2* | cegcc*)
19658 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
19659 + # non-PIC code in shared libraries is not supported
19663 + # Calculate the filename of the output object if compiler does
19664 + # not support -o with -c
19665 + if test "$compiler_c_o" = no; then
19666 + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
19667 + lockfile="$output_obj.lock"
19674 + # Lock this critical section if it is needed
19675 + # We use this script file to make the link, it avoids creating a new file
19676 + if test "$need_locks" = yes; then
19677 + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
19678 + func_echo "Waiting for $lockfile to be removed"
19681 + elif test "$need_locks" = warn; then
19682 + if test -f "$lockfile"; then
19684 +*** ERROR, $lockfile exists and contains:
19685 +`cat $lockfile 2>/dev/null`
19687 +This indicates that another process is trying to use the same
19688 +temporary object file, and libtool could not work around it because
19689 +your compiler does not support \`-c' and \`-o' together. If you
19690 +repeat this compilation, it may succeed, by chance, but you had better
19691 +avoid parallel builds (make -j) in this platform, or get a better
19694 + $opt_dry_run || $RM $removelist
19695 + exit $EXIT_FAILURE
19697 + removelist="$removelist $output_obj"
19698 + $ECHO "$srcfile" > "$lockfile"
19701 + $opt_dry_run || $RM $removelist
19702 + removelist="$removelist $lockfile"
19703 + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
19705 + if test -n "$fix_srcfile_path"; then
19706 + eval srcfile=\"$fix_srcfile_path\"
19708 + func_quote_for_eval "$srcfile"
19709 + qsrcfile=$func_quote_for_eval_result
19711 + # Only build a PIC object if we are building libtool libraries.
19712 + if test "$build_libtool_libs" = yes; then
19713 + # Without this assignment, base_compile gets emptied.
19714 + fbsd_hideous_sh_bug=$base_compile
19716 + if test "$pic_mode" != no; then
19717 + command="$base_compile $qsrcfile $pic_flag"
19719 + # Don't build PIC code
19720 + command="$base_compile $qsrcfile"
19723 + func_mkdir_p "$xdir$objdir"
19725 + if test -z "$output_obj"; then
19726 + # Place PIC objects in $objdir
19727 + command="$command -o $lobj"
19730 + func_show_eval_locale "$command" \
19731 + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
19733 + if test "$need_locks" = warn &&
19734 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
19736 +*** ERROR, $lockfile contains:
19737 +`cat $lockfile 2>/dev/null`
19739 +but it should contain:
19742 +This indicates that another process is trying to use the same
19743 +temporary object file, and libtool could not work around it because
19744 +your compiler does not support \`-c' and \`-o' together. If you
19745 +repeat this compilation, it may succeed, by chance, but you had better
19746 +avoid parallel builds (make -j) in this platform, or get a better
19749 + $opt_dry_run || $RM $removelist
19750 + exit $EXIT_FAILURE
19753 + # Just move the object if needed, then go on to compile the next one
19754 + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
19755 + func_show_eval '$MV "$output_obj" "$lobj"' \
19756 + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
19759 + # Allow error messages only from the first compilation.
19760 + if test "$suppress_opt" = yes; then
19761 + suppress_output=' >/dev/null 2>&1'
19765 + # Only build a position-dependent object if we build old libraries.
19766 + if test "$build_old_libs" = yes; then
19767 + if test "$pic_mode" != yes; then
19768 + # Don't build PIC code
19769 + command="$base_compile $qsrcfile$pie_flag"
19771 + command="$base_compile $qsrcfile $pic_flag"
19773 + if test "$compiler_c_o" = yes; then
19774 + command="$command -o $obj"
19777 + # Suppress compiler output if we already did a PIC compilation.
19778 + command="$command$suppress_output"
19779 + func_show_eval_locale "$command" \
19780 + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
19782 + if test "$need_locks" = warn &&
19783 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
19785 +*** ERROR, $lockfile contains:
19786 +`cat $lockfile 2>/dev/null`
19788 +but it should contain:
19791 +This indicates that another process is trying to use the same
19792 +temporary object file, and libtool could not work around it because
19793 +your compiler does not support \`-c' and \`-o' together. If you
19794 +repeat this compilation, it may succeed, by chance, but you had better
19795 +avoid parallel builds (make -j) in this platform, or get a better
19798 + $opt_dry_run || $RM $removelist
19799 + exit $EXIT_FAILURE
19802 + # Just move the object if needed
19803 + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
19804 + func_show_eval '$MV "$output_obj" "$obj"' \
19805 + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
19809 + $opt_dry_run || {
19810 + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
19812 + # Unlock the critical section if it was locked
19813 + if test "$need_locks" != no; then
19814 + removelist=$lockfile
19819 + exit $EXIT_SUCCESS
19823 +test "$mode" = compile && func_mode_compile ${1+"$@"}
19828 + # We need to display help for each of the modes.
19831 + # Generic help is extracted from the usage comments
19832 + # at the start of this file.
19838 +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
19840 +Remove files from the build directory.
19842 +RM is the name of the program to use to delete files associated with each FILE
19843 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
19846 +If FILE is a libtool library, object or program, all the files associated
19847 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
19852 +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
19854 +Compile a source file into a libtool library object.
19856 +This mode accepts the following additional options:
19858 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
19859 + -no-suppress do not suppress compiler output for multiple passes
19860 + -prefer-pic try to building PIC objects only
19861 + -prefer-non-pic try to building non-PIC objects only
19862 + -shared do not build a \`.o' file suitable for static linking
19863 + -static only build a \`.o' file suitable for static linking
19865 +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
19866 +from the given SOURCEFILE.
19868 +The output file name is determined by removing the directory component from
19869 +SOURCEFILE, then substituting the C source code suffix \`.c' with the
19870 +library object suffix, \`.lo'."
19875 +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
19877 +Automatically set library path, then run a program.
19879 +This mode accepts the following additional options:
19881 + -dlopen FILE add the directory containing FILE to the library path
19883 +This mode sets the library path environment variable according to \`-dlopen'
19886 +If any of the ARGS are libtool executable wrappers, then they are translated
19887 +into their corresponding uninstalled binary, and any of their required library
19888 +directories are added to the library path.
19890 +Then, COMMAND is executed, with ARGS as arguments."
19895 +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
19897 +Complete the installation of libtool libraries.
19899 +Each LIBDIR is a directory that contains libtool libraries.
19901 +The commands that this mode executes may require superuser privileges. Use
19902 +the \`--dry-run' option if you just want to see what would be executed."
19907 +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
19909 +Install executables or libraries.
19911 +INSTALL-COMMAND is the installation command. The first component should be
19912 +either the \`install' or \`cp' program.
19914 +The following components of INSTALL-COMMAND are treated specially:
19916 + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
19918 +The rest of the components are interpreted as arguments to that command (only
19919 +BSD-compatible install options are recognized)."
19924 +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
19926 +Link object files or libraries together to form another library, or to
19927 +create an executable program.
19929 +LINK-COMMAND is a command using the C compiler that you would use to create
19930 +a program from several object files.
19932 +The following components of LINK-COMMAND are treated specially:
19934 + -all-static do not do any dynamic linking at all
19935 + -avoid-version do not add a version suffix if possible
19936 + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
19937 + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
19938 + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
19939 + -export-symbols SYMFILE
19940 + try to export only the symbols listed in SYMFILE
19941 + -export-symbols-regex REGEX
19942 + try to export only the symbols matching REGEX
19943 + -LLIBDIR search LIBDIR for required installed libraries
19944 + -lNAME OUTPUT-FILE requires the installed library libNAME
19945 + -module build a library that can dlopened
19946 + -no-fast-install disable the fast-install mode
19947 + -no-install link a not-installable executable
19948 + -no-undefined declare that a library does not refer to external symbols
19949 + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
19950 + -objectlist FILE Use a list of object files found in FILE to specify objects
19951 + -precious-files-regex REGEX
19952 + don't remove output files matching REGEX
19953 + -release RELEASE specify package release information
19954 + -rpath LIBDIR the created library will eventually be installed in LIBDIR
19955 + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
19956 + -shared only do dynamic linking of libtool libraries
19957 + -shrext SUFFIX override the standard shared library file extension
19958 + -static do not do any dynamic linking of uninstalled libtool libraries
19959 + -static-libtool-libs
19960 + do not do any dynamic linking of libtool libraries
19961 + -version-info CURRENT[:REVISION[:AGE]]
19962 + specify library version info [each variable defaults to 0]
19963 + -weak LIBNAME declare that the target provides the LIBNAME interface
19965 +All other options (arguments beginning with \`-') are ignored.
19967 +Every other argument is treated as a filename. Files ending in \`.la' are
19968 +treated as uninstalled libtool libraries, other files are standard or library
19971 +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
19972 +only library objects (\`.lo' files) may be specified, and \`-rpath' is
19973 +required, except when creating a convenience library.
19975 +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
19976 +using \`ar' and \`ranlib', or on Windows using \`lib'.
19978 +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
19979 +is created, otherwise an executable program is created."
19984 +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
19986 +Remove libraries from an installation directory.
19988 +RM is the name of the program to use to delete files associated with each FILE
19989 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
19992 +If FILE is a libtool library, all the files associated with it are deleted.
19993 +Otherwise, only FILE itself is deleted using RM."
19997 + func_fatal_help "invalid operation mode \`$mode'"
20002 + $ECHO "Try \`$progname --help' for more information about other modes."
20007 + # Now that we've collected a possible --mode arg, show help if necessary
20008 + $opt_help && func_mode_help
20011 +# func_mode_execute arg...
20012 +func_mode_execute ()
20015 + # The first argument is the command name.
20017 + test -z "$cmd" && \
20018 + func_fatal_help "you must specify a COMMAND"
20020 + # Handle -dlopen flags immediately.
20021 + for file in $execute_dlfiles; do
20022 + test -f "$file" \
20023 + || func_fatal_help "\`$file' is not a file"
20028 + # Check to see that this really is a libtool archive.
20029 + func_lalib_unsafe_p "$file" \
20030 + || func_fatal_help "\`$lib' is not a valid libtool archive"
20032 + # Read the libtool library.
20035 + func_source "$file"
20037 + # Skip this library if it cannot be dlopened.
20038 + if test -z "$dlname"; then
20039 + # Warn if it was a shared library.
20040 + test -n "$library_names" && \
20041 + func_warning "\`$file' was not linked with \`-export-dynamic'"
20045 + func_dirname "$file" "" "."
20046 + dir="$func_dirname_result"
20048 + if test -f "$dir/$objdir/$dlname"; then
20049 + dir="$dir/$objdir"
20051 + if test ! -f "$dir/$dlname"; then
20052 + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
20058 + # Just add the directory containing the .lo file.
20059 + func_dirname "$file" "" "."
20060 + dir="$func_dirname_result"
20064 + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
20069 + # Get the absolute pathname.
20070 + absdir=`cd "$dir" && pwd`
20071 + test -n "$absdir" && dir="$absdir"
20073 + # Now add the directory to shlibpath_var.
20074 + if eval "test -z \"\$$shlibpath_var\""; then
20075 + eval "$shlibpath_var=\"\$dir\""
20077 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
20081 + # This variable tells wrapper scripts just to set shlibpath_var
20082 + # rather than running their programs.
20083 + libtool_execute_magic="$magic"
20085 + # Check if any of the arguments is a wrapper script.
20092 + # Do a test to see if this is really a libtool program.
20093 + if func_ltwrapper_script_p "$file"; then
20094 + func_source "$file"
20095 + # Transform arg to wrapped name.
20096 + file="$progdir/$program"
20097 + elif func_ltwrapper_executable_p "$file"; then
20098 + func_ltwrapper_scriptname "$file"
20099 + func_source "$func_ltwrapper_scriptname_result"
20100 + # Transform arg to wrapped name.
20101 + file="$progdir/$program"
20105 + # Quote arguments (to preserve shell metacharacters).
20106 + func_quote_for_eval "$file"
20107 + args="$args $func_quote_for_eval_result"
20110 + if test "X$opt_dry_run" = Xfalse; then
20111 + if test -n "$shlibpath_var"; then
20112 + # Export the shlibpath_var.
20113 + eval "export $shlibpath_var"
20116 + # Restore saved environment variables
20117 + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
20119 + eval "if test \"\${save_$lt_var+set}\" = set; then
20120 + $lt_var=\$save_$lt_var; export $lt_var
20122 + $lt_unset $lt_var
20126 + # Now prepare to actually exec the command.
20127 + exec_cmd="\$cmd$args"
20129 + # Display what would be done.
20130 + if test -n "$shlibpath_var"; then
20131 + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
20132 + $ECHO "export $shlibpath_var"
20134 + $ECHO "$cmd$args"
20135 + exit $EXIT_SUCCESS
20139 +test "$mode" = execute && func_mode_execute ${1+"$@"}
20142 +# func_mode_finish arg...
20143 +func_mode_finish ()
20146 + libdirs="$nonopt"
20149 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
20152 + libdirs="$libdirs $dir"
20155 + for libdir in $libdirs; do
20156 + if test -n "$finish_cmds"; then
20157 + # Do each command in the finish commands.
20158 + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
20161 + if test -n "$finish_eval"; then
20162 + # Do the single finish_eval.
20163 + eval cmds=\"$finish_eval\"
20164 + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
20170 + # Exit here if they wanted silent mode.
20171 + $opt_silent && exit $EXIT_SUCCESS
20173 + $ECHO "X----------------------------------------------------------------------" | $Xsed
20174 + $ECHO "Libraries have been installed in:"
20175 + for libdir in $libdirs; do
20179 + $ECHO "If you ever happen to want to link against installed libraries"
20180 + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
20181 + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
20182 + $ECHO "flag during linking and do at least one of the following:"
20183 + if test -n "$shlibpath_var"; then
20184 + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
20185 + $ECHO " during execution"
20187 + if test -n "$runpath_var"; then
20188 + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
20189 + $ECHO " during linking"
20191 + if test -n "$hardcode_libdir_flag_spec"; then
20193 + eval flag=\"$hardcode_libdir_flag_spec\"
20195 + $ECHO " - use the \`$flag' linker flag"
20197 + if test -n "$admincmds"; then
20198 + $ECHO " - have your system administrator run these commands:$admincmds"
20200 + if test -f /etc/ld.so.conf; then
20201 + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
20205 + $ECHO "See any operating system documentation about shared libraries for"
20207 + solaris2.[6789]|solaris2.1[0-9])
20208 + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
20212 + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
20215 + $ECHO "X----------------------------------------------------------------------" | $Xsed
20216 + exit $EXIT_SUCCESS
20219 +test "$mode" = finish && func_mode_finish ${1+"$@"}
20222 +# func_mode_install arg...
20223 +func_mode_install ()
20226 + # There may be an optional sh(1) argument at the beginning of
20227 + # install_prog (especially on Windows NT).
20228 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
20229 + # Allow the use of GNU shtool's install command.
20230 + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
20231 + # Aesthetically quote it.
20232 + func_quote_for_eval "$nonopt"
20233 + install_prog="$func_quote_for_eval_result "
20241 + # The real first argument should be the name of the installation program.
20242 + # Aesthetically quote it.
20243 + func_quote_for_eval "$arg"
20244 + install_prog="$install_prog$func_quote_for_eval_result"
20246 + # We need to accept at least all the BSD install flags.
20256 + if test -n "$dest"; then
20257 + files="$files $dest"
20265 + case " $install_prog " in
20266 + *[\\\ /]cp\ *) ;;
20280 + # If the previous option needed an argument, then skip it.
20281 + if test -n "$prev"; then
20290 + # Aesthetically quote the argument.
20291 + func_quote_for_eval "$arg"
20292 + install_prog="$install_prog $func_quote_for_eval_result"
20295 + test -z "$install_prog" && \
20296 + func_fatal_help "you must specify an install program"
20298 + test -n "$prev" && \
20299 + func_fatal_help "the \`$prev' option requires an argument"
20301 + if test -z "$files"; then
20302 + if test -z "$dest"; then
20303 + func_fatal_help "no file or destination specified"
20305 + func_fatal_help "you must specify a destination"
20309 + # Strip any trailing slash from the destination.
20310 + func_stripname '' '/' "$dest"
20311 + dest=$func_stripname_result
20313 + # Check to see that the destination is a directory.
20314 + test -d "$dest" && isdir=yes
20315 + if test "$isdir" = yes; then
20319 + func_dirname_and_basename "$dest" "" "."
20320 + destdir="$func_dirname_result"
20321 + destname="$func_basename_result"
20323 + # Not a directory, so check to see that there is only one file specified.
20324 + set dummy $files; shift
20325 + test "$#" -gt 1 && \
20326 + func_fatal_help "\`$dest' is not a directory"
20329 + [\\/]* | [A-Za-z]:[\\/]*) ;;
20331 + for file in $files; do
20335 + func_fatal_help "\`$destdir' must be an absolute directory name"
20342 + # This variable tells wrapper scripts just to set variables rather
20343 + # than running their programs.
20344 + libtool_install_magic="$magic"
20349 + for file in $files; do
20351 + # Do each installation.
20354 + # Do the static libraries later.
20355 + staticlibs="$staticlibs $file"
20359 + # Check to see that this really is a libtool archive.
20360 + func_lalib_unsafe_p "$file" \
20361 + || func_fatal_help "\`$file' is not a valid libtool archive"
20366 + func_source "$file"
20368 + # Add the libdir to current_libdirs if it is the destination.
20369 + if test "X$destdir" = "X$libdir"; then
20370 + case "$current_libdirs " in
20371 + *" $libdir "*) ;;
20372 + *) current_libdirs="$current_libdirs $libdir" ;;
20375 + # Note the libdir as a future libdir.
20376 + case "$future_libdirs " in
20377 + *" $libdir "*) ;;
20378 + *) future_libdirs="$future_libdirs $libdir" ;;
20382 + func_dirname "$file" "/" ""
20383 + dir="$func_dirname_result"
20384 + dir="$dir$objdir"
20386 + if test -n "$relink_command"; then
20387 + # Determine the prefix the user has applied to our future dir.
20388 + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
20390 + # Don't allow the user to place us outside of our expected
20391 + # location b/c this prevents finding dependent libraries that
20392 + # are installed to the same prefix.
20393 + # At present, this check doesn't affect windows .dll's that
20394 + # are installed into $libdir/../bin (currently, that works fine)
20395 + # but it's something to keep an eye on.
20396 + test "$inst_prefix_dir" = "$destdir" && \
20397 + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
20399 + if test -n "$inst_prefix_dir"; then
20400 + # Stick the inst_prefix_dir data into the link command.
20401 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
20403 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
20406 + func_warning "relinking \`$file'"
20407 + func_show_eval "$relink_command" \
20408 + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
20411 + # See the names of the shared library.
20412 + set dummy $library_names; shift
20413 + if test -n "$1"; then
20417 + srcname="$realname"
20418 + test -n "$relink_command" && srcname="$realname"T
20420 + # Install the shared library and build the symlinks.
20421 + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
20423 + tstripme="$stripme"
20425 + cygwin* | mingw* | pw32* | cegcc*)
20426 + case $realname in
20433 + if test -n "$tstripme" && test -n "$striplib"; then
20434 + func_show_eval "$striplib $destdir/$realname" 'exit $?'
20437 + if test "$#" -gt 0; then
20438 + # Delete the old symlinks, and create new ones.
20439 + # Try `ln -sf' first, because the `ln' binary might depend on
20440 + # the symlink we replace! Solaris /bin/ln does not understand -f,
20441 + # so we also need to try rm && ln -s.
20444 + test "$linkname" != "$realname" \
20445 + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
20449 + # Do each command in the postinstall commands.
20450 + lib="$destdir/$realname"
20451 + func_execute_cmds "$postinstall_cmds" 'exit $?'
20454 + # Install the pseudo-library for information purposes.
20455 + func_basename "$file"
20456 + name="$func_basename_result"
20457 + instname="$dir/$name"i
20458 + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
20460 + # Maybe install the static library, too.
20461 + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
20465 + # Install (i.e. copy) a libtool object.
20467 + # Figure out destination file name, if it wasn't already specified.
20468 + if test -n "$destname"; then
20469 + destfile="$destdir/$destname"
20471 + func_basename "$file"
20472 + destfile="$func_basename_result"
20473 + destfile="$destdir/$destfile"
20476 + # Deduce the name of the destination old-style object file.
20477 + case $destfile in
20479 + func_lo2o "$destfile"
20480 + staticdest=$func_lo2o_result
20483 + staticdest="$destfile"
20487 + func_fatal_help "cannot copy a libtool object to \`$destfile'"
20491 + # Install the libtool object if requested.
20492 + test -n "$destfile" && \
20493 + func_show_eval "$install_prog $file $destfile" 'exit $?'
20495 + # Install the old object if enabled.
20496 + if test "$build_old_libs" = yes; then
20497 + # Deduce the name of the old-style object file.
20498 + func_lo2o "$file"
20499 + staticobj=$func_lo2o_result
20500 + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
20502 + exit $EXIT_SUCCESS
20506 + # Figure out destination file name, if it wasn't already specified.
20507 + if test -n "$destname"; then
20508 + destfile="$destdir/$destname"
20510 + func_basename "$file"
20511 + destfile="$func_basename_result"
20512 + destfile="$destdir/$destfile"
20515 + # If the file is missing, and there is a .exe on the end, strip it
20516 + # because it is most likely a libtool script we actually want to
20521 + if test ! -f "$file"; then
20522 + func_stripname '' '.exe' "$file"
20523 + file=$func_stripname_result
20524 + stripped_ext=".exe"
20529 + # Do a test to see if this is really a libtool program.
20531 + *cygwin* | *mingw*)
20532 + if func_ltwrapper_executable_p "$file"; then
20533 + func_ltwrapper_scriptname "$file"
20534 + wrapper=$func_ltwrapper_scriptname_result
20536 + func_stripname '' '.exe' "$file"
20537 + wrapper=$func_stripname_result
20544 + if func_ltwrapper_script_p "$wrapper"; then
20548 + func_source "$wrapper"
20550 + # Check the variables that should have been set.
20551 + test -z "$generated_by_libtool_version" && \
20552 + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
20555 + for lib in $notinst_deplibs; do
20556 + # Check to see that each library is installed.
20558 + if test -f "$lib"; then
20559 + func_source "$lib"
20561 + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
20562 + if test -n "$libdir" && test ! -f "$libfile"; then
20563 + func_warning "\`$lib' has not been installed in \`$libdir'"
20569 + func_source "$wrapper"
20572 + if test "$fast_install" = no && test -n "$relink_command"; then
20573 + $opt_dry_run || {
20574 + if test "$finalize" = yes; then
20575 + tmpdir=`func_mktempdir`
20576 + func_basename "$file$stripped_ext"
20577 + file="$func_basename_result"
20578 + outputname="$tmpdir/$file"
20579 + # Replace the output file specification.
20580 + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
20583 + func_quote_for_expand "$relink_command"
20584 + eval "func_echo $func_quote_for_expand_result"
20586 + if eval "$relink_command"; then :
20588 + func_error "error: relink \`$file' with the above command before installing it"
20589 + $opt_dry_run || ${RM}r "$tmpdir"
20592 + file="$outputname"
20594 + func_warning "cannot relink \`$file'"
20598 + # Install the binary that we compiled earlier.
20599 + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
20603 + # remove .exe since cygwin /usr/bin/install will append another
20605 + case $install_prog,$host in
20606 + */usr/bin/install*,*cygwin*)
20607 + case $file:$destfile in
20612 + destfile=$destfile.exe
20615 + func_stripname '' '.exe' "$destfile"
20616 + destfile=$func_stripname_result
20621 + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
20622 + $opt_dry_run || if test -n "$outputname"; then
20629 + for file in $staticlibs; do
20630 + func_basename "$file"
20631 + name="$func_basename_result"
20633 + # Set up the ranlib parameters.
20634 + oldlib="$destdir/$name"
20636 + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
20638 + if test -n "$stripme" && test -n "$old_striplib"; then
20639 + func_show_eval "$old_striplib $oldlib" 'exit $?'
20642 + # Do each command in the postinstall commands.
20643 + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
20646 + test -n "$future_libdirs" && \
20647 + func_warning "remember to run \`$progname --finish$future_libdirs'"
20649 + if test -n "$current_libdirs"; then
20650 + # Maybe just do a dry run.
20651 + $opt_dry_run && current_libdirs=" -n$current_libdirs"
20652 + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
20654 + exit $EXIT_SUCCESS
20658 +test "$mode" = install && func_mode_install ${1+"$@"}
20661 +# func_generate_dlsyms outputname originator pic_p
20662 +# Extract symbols from dlprefiles and create ${outputname}S.o with
20663 +# a dlpreopen symbol table.
20664 +func_generate_dlsyms ()
20667 + my_outputname="$1"
20668 + my_originator="$2"
20669 + my_pic_p="${3-no}"
20670 + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
20673 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
20674 + if test -n "$NM" && test -n "$global_symbol_pipe"; then
20675 + my_dlsyms="${my_outputname}S.c"
20677 + func_error "not configured to extract global symbols from dlpreopened files"
20681 + if test -n "$my_dlsyms"; then
20682 + case $my_dlsyms in
20685 + # Discover the nlist of each of the dlfiles.
20686 + nlist="$output_objdir/${my_outputname}.nm"
20688 + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
20690 + # Parse the name list into a source file.
20691 + func_verbose "creating $output_objdir/$my_dlsyms"
20693 + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
20694 +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
20695 +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
20697 +#ifdef __cplusplus
20701 +/* External symbol declarations for the compiler. */\
20704 + if test "$dlself" = yes; then
20705 + func_verbose "generating symbol list for \`$output'"
20707 + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
20709 + # Add our own program objects to the symbol list.
20710 + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
20711 + for progfile in $progfiles; do
20712 + func_verbose "extracting global C symbols from \`$progfile'"
20713 + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
20716 + if test -n "$exclude_expsyms"; then
20717 + $opt_dry_run || {
20718 + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
20719 + eval '$MV "$nlist"T "$nlist"'
20723 + if test -n "$export_symbols_regex"; then
20724 + $opt_dry_run || {
20725 + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
20726 + eval '$MV "$nlist"T "$nlist"'
20730 + # Prepare the list of exported symbols
20731 + if test -z "$export_symbols"; then
20732 + export_symbols="$output_objdir/$outputname.exp"
20733 + $opt_dry_run || {
20734 + $RM $export_symbols
20735 + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
20737 + *cygwin* | *mingw* | *cegcc* )
20738 + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
20739 + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
20744 + $opt_dry_run || {
20745 + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
20746 + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
20747 + eval '$MV "$nlist"T "$nlist"'
20749 + *cygwin | *mingw* | *cegcc* )
20750 + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
20751 + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
20758 + for dlprefile in $dlprefiles; do
20759 + func_verbose "extracting global C symbols from \`$dlprefile'"
20760 + func_basename "$dlprefile"
20761 + name="$func_basename_result"
20762 + $opt_dry_run || {
20763 + eval '$ECHO ": $name " >> "$nlist"'
20764 + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
20768 + $opt_dry_run || {
20769 + # Make sure we have at least an empty file.
20770 + test -f "$nlist" || : > "$nlist"
20772 + if test -n "$exclude_expsyms"; then
20773 + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
20774 + $MV "$nlist"T "$nlist"
20777 + # Try sorting and uniquifying the output.
20778 + if $GREP -v "^: " < "$nlist" |
20779 + if sort -k 3 </dev/null >/dev/null 2>&1; then
20784 + uniq > "$nlist"S; then
20787 + $GREP -v "^: " < "$nlist" > "$nlist"S
20790 + if test -f "$nlist"S; then
20791 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
20793 + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
20796 + $ECHO >> "$output_objdir/$my_dlsyms" "\
20798 +/* The mapping between symbol names and symbols. */
20800 + const char *name;
20805 + *cygwin* | *mingw* | *cegcc* )
20806 + $ECHO >> "$output_objdir/$my_dlsyms" "\
20807 +/* DATA imports from DLLs on WIN32 con't be const, because
20808 + runtime relocations are performed -- see ld's documentation
20809 + on pseudo-relocs. */"
20810 + lt_dlsym_const= ;;
20812 + echo >> "$output_objdir/$my_dlsyms" "\
20813 +/* This system does not cope well with relocations in const data */"
20814 + lt_dlsym_const= ;;
20816 + lt_dlsym_const=const ;;
20819 + $ECHO >> "$output_objdir/$my_dlsyms" "\
20820 +extern $lt_dlsym_const lt_dlsymlist
20821 +lt_${my_prefix}_LTX_preloaded_symbols[];
20822 +$lt_dlsym_const lt_dlsymlist
20823 +lt_${my_prefix}_LTX_preloaded_symbols[] =
20825 + { \"$my_originator\", (void *) 0 },"
20827 + case $need_lib_prefix in
20829 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
20832 + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
20835 + $ECHO >> "$output_objdir/$my_dlsyms" "\
20839 +/* This works around a problem in FreeBSD linker */
20840 +#ifdef FREEBSD_WORKAROUND
20841 +static const void *lt_preloaded_setup() {
20842 + return lt_${my_prefix}_LTX_preloaded_symbols;
20846 +#ifdef __cplusplus
20850 + } # !$opt_dry_run
20852 + pic_flag_for_symtable=
20853 + case "$compile_command " in
20854 + *" -static "*) ;;
20857 + # compiling the symbol table file with pic_flag works around
20858 + # a FreeBSD bug that causes programs to crash when -lm is
20859 + # linked before any other PIC object. But we must not use
20860 + # pic_flag when linking with -static. The problem exists in
20861 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
20862 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
20863 + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
20865 + pic_flag_for_symtable=" $pic_flag" ;;
20867 + if test "X$my_pic_p" != Xno; then
20868 + pic_flag_for_symtable=" $pic_flag"
20875 + for arg in $LTCFLAGS; do
20877 + -pie | -fpie | -fPIE) ;;
20878 + *) symtab_cflags="$symtab_cflags $arg" ;;
20882 + # Now compile the dynamic symbol file.
20883 + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
20885 + # Clean up the generated files.
20886 + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
20888 + # Transform the symbol file into the correct name.
20889 + symfileobj="$output_objdir/${my_outputname}S.$objext"
20891 + *cygwin* | *mingw* | *cegcc* )
20892 + if test -f "$output_objdir/$my_outputname.def"; then
20893 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
20894 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
20896 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
20897 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
20901 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
20902 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
20907 + func_fatal_error "unknown suffix for \`$my_dlsyms'"
20911 + # We keep going just in case the user didn't refer to
20912 + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
20913 + # really was required.
20915 + # Nullify the symbol file.
20916 + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
20917 + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
20921 +# func_win32_libid arg
20922 +# return the library type of file 'arg'
20924 +# Need a lot of goo to handle *both* DLLs and import libs
20925 +# Has to be a shell function in order to 'eat' the argument
20926 +# that is supplied when $file_magic_command is called.
20927 +func_win32_libid ()
20930 + win32_libid_type="unknown"
20931 + win32_fileres=`file -L $1 2>/dev/null`
20932 + case $win32_fileres in
20933 + *ar\ archive\ import\ library*) # definitely import
20934 + win32_libid_type="x86 archive import"
20936 + *ar\ archive*) # could be an import, or static
20937 + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
20938 + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
20939 + win32_nmres=`eval $NM -f posix -A $1 |
20948 + case $win32_nmres in
20949 + import*) win32_libid_type="x86 archive import";;
20950 + *) win32_libid_type="x86 archive static";;
20955 + win32_libid_type="x86 DLL"
20957 + *executable*) # but shell scripts are "executable" too...
20958 + case $win32_fileres in
20959 + *MS\ Windows\ PE\ Intel*)
20960 + win32_libid_type="x86 DLL"
20965 + $ECHO "$win32_libid_type"
20970 +# func_extract_an_archive dir oldlib
20971 +func_extract_an_archive ()
20974 + f_ex_an_ar_dir="$1"; shift
20975 + f_ex_an_ar_oldlib="$1"
20976 + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
20977 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
20980 + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
20985 +# func_extract_archives gentop oldlib ...
20986 +func_extract_archives ()
20989 + my_gentop="$1"; shift
20990 + my_oldlibs=${1+"$@"}
20996 + for my_xlib in $my_oldlibs; do
20997 + # Extract the objects.
20999 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
21000 + *) my_xabs=`pwd`"/$my_xlib" ;;
21002 + func_basename "$my_xlib"
21003 + my_xlib="$func_basename_result"
21004 + my_xlib_u=$my_xlib
21006 + case " $extracted_archives " in
21007 + *" $my_xlib_u "*)
21008 + func_arith $extracted_serial + 1
21009 + extracted_serial=$func_arith_result
21010 + my_xlib_u=lt$extracted_serial-$my_xlib ;;
21014 + extracted_archives="$extracted_archives $my_xlib_u"
21015 + my_xdir="$my_gentop/$my_xlib_u"
21017 + func_mkdir_p "$my_xdir"
21021 + func_verbose "Extracting $my_xabs"
21022 + # Do not bother doing anything if just a dry run
21023 + $opt_dry_run || {
21024 + darwin_orig_dir=`pwd`
21025 + cd $my_xdir || exit $?
21026 + darwin_archive=$my_xabs
21027 + darwin_curdir=`pwd`
21028 + darwin_base_archive=`basename "$darwin_archive"`
21029 + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
21030 + if test -n "$darwin_arches"; then
21031 + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
21033 + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
21034 + for darwin_arch in $darwin_arches ; do
21035 + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
21036 + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
21037 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
21038 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
21039 + cd "$darwin_curdir"
21040 + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
21041 + done # $darwin_arches
21042 + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
21043 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
21046 + for darwin_file in $darwin_filelist; do
21047 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
21048 + $LIPO -create -output "$darwin_file" $darwin_files
21049 + done # $darwin_filelist
21051 + cd "$darwin_orig_dir"
21053 + cd $darwin_orig_dir
21054 + func_extract_an_archive "$my_xdir" "$my_xabs"
21055 + fi # $darwin_arches
21056 + } # !$opt_dry_run
21059 + func_extract_an_archive "$my_xdir" "$my_xabs"
21062 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
21065 + func_extract_archives_result="$my_oldobjs"
21070 +# func_emit_wrapper_part1 [arg=no]
21072 +# Emit the first part of a libtool wrapper script on stdout.
21073 +# For more information, see the description associated with
21074 +# func_emit_wrapper(), below.
21075 +func_emit_wrapper_part1 ()
21077 + func_emit_wrapper_part1_arg1=no
21078 + if test -n "$1" ; then
21079 + func_emit_wrapper_part1_arg1=$1
21085 +# $output - temporary wrapper script for $objdir/$outputname
21086 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
21088 +# The $output program cannot be directly executed until all the libtool
21089 +# libraries that it depends on are installed.
21091 +# This wrapper script should never be moved out of the build directory.
21092 +# If it is, it will not operate correctly.
21094 +# Sed substitution that helps us do robust quoting. It backslashifies
21095 +# metacharacters that are still active within double-quoted strings.
21096 +Xsed='${SED} -e 1s/^X//'
21097 +sed_quote_subst='$sed_quote_subst'
21099 +# Be Bourne compatible
21100 +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
21103 + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
21104 + # is contrary to our usage. Disable this feature.
21105 + alias -g '\${1+\"\$@\"}'='\"\$@\"'
21106 + setopt NO_GLOB_SUBST
21108 + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
21110 +BIN_SH=xpg4; export BIN_SH # for Tru64
21111 +DUALCASE=1; export DUALCASE # for MKS sh
21113 +# The HP-UX ksh and POSIX shell print the target directory to stdout
21114 +# if CDPATH is set.
21115 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21117 +relink_command=\"$relink_command\"
21119 +# This environment variable determines our operation mode.
21120 +if test \"\$libtool_install_magic\" = \"$magic\"; then
21121 + # install mode needs the following variables:
21122 + generated_by_libtool_version='$macro_version'
21123 + notinst_deplibs='$notinst_deplibs'
21125 + # When we are sourced in execute mode, \$file and \$ECHO are already set.
21126 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
21129 + # Make sure echo works.
21130 + if test \"X\$1\" = X--no-reexec; then
21131 + # Discard the --no-reexec flag, and continue.
21133 + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
21134 + # Yippee, \$ECHO works!
21137 + # Restart under the correct shell, and then maybe \$ECHO will work.
21138 + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
21144 + # Find the directory that this script lives in.
21145 + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
21146 + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
21148 + # Follow symbolic links until we get to the real thisdir.
21149 + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
21150 + while test -n \"\$file\"; do
21151 + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
21153 + # If there was a directory component, then change thisdir.
21154 + if test \"x\$destdir\" != \"x\$file\"; then
21155 + case \"\$destdir\" in
21156 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
21157 + *) thisdir=\"\$thisdir/\$destdir\" ;;
21161 + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
21162 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
21166 +# end: func_emit_wrapper_part1
21168 +# func_emit_wrapper_part2 [arg=no]
21170 +# Emit the second part of a libtool wrapper script on stdout.
21171 +# For more information, see the description associated with
21172 +# func_emit_wrapper(), below.
21173 +func_emit_wrapper_part2 ()
21175 + func_emit_wrapper_part2_arg1=no
21176 + if test -n "$1" ; then
21177 + func_emit_wrapper_part2_arg1=$1
21182 + # Usually 'no', except on cygwin/mingw when embedded into
21184 + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
21185 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
21186 + # special case for '.'
21187 + if test \"\$thisdir\" = \".\"; then
21190 + # remove .libs from thisdir
21191 + case \"\$thisdir\" in
21192 + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
21193 + $objdir ) thisdir=. ;;
21197 + # Try to get the absolute directory name.
21198 + absdir=\`cd \"\$thisdir\" && pwd\`
21199 + test -n \"\$absdir\" && thisdir=\"\$absdir\"
21202 + if test "$fast_install" = yes; then
21204 + program=lt-'$outputname'$exeext
21205 + progdir=\"\$thisdir/$objdir\"
21207 + if test ! -f \"\$progdir/\$program\" ||
21208 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
21209 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
21211 + file=\"\$\$-\$program\"
21213 + if test ! -d \"\$progdir\"; then
21214 + $MKDIR \"\$progdir\"
21216 + $RM \"\$progdir/\$file\"
21221 + # relink executable if necessary
21222 + if test -n \"\$relink_command\"; then
21223 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
21225 + $ECHO \"\$relink_command_output\" >&2
21226 + $RM \"\$progdir/\$file\"
21231 + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
21232 + { $RM \"\$progdir/\$program\";
21233 + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
21234 + $RM \"\$progdir/\$file\"
21238 + program='$outputname'
21239 + progdir=\"\$thisdir/$objdir\"
21245 + if test -f \"\$progdir/\$program\"; then"
21247 + # Export our shlibpath_var if we have one.
21248 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
21250 + # Add our own library path to $shlibpath_var
21251 + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
21253 + # Some systems cannot cope with colon-terminated $shlibpath_var
21254 + # The second colon is a workaround for a bug in BeOS R4 sed
21255 + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
21257 + export $shlibpath_var
21261 + # fixup the dll searchpath if we need to.
21262 + if test -n "$dllsearchpath"; then
21264 + # Add the dll search path components to the executable PATH
21265 + PATH=$dllsearchpath:\$PATH
21270 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
21271 + # Run the actual program with our arguments.
21274 + # Backslashes separate directories on plain windows
21275 + *-*-mingw | *-*-os2* | *-cegcc*)
21277 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
21283 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
21288 + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
21292 + # The program doesn't exist.
21293 + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
21294 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
21295 + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
21301 +# end: func_emit_wrapper_part2
21304 +# func_emit_wrapper [arg=no]
21306 +# Emit a libtool wrapper script on stdout.
21307 +# Don't directly open a file because we may want to
21308 +# incorporate the script contents within a cygwin/mingw
21309 +# wrapper executable. Must ONLY be called from within
21310 +# func_mode_link because it depends on a number of variables
21313 +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
21314 +# variable will take. If 'yes', then the emitted script
21315 +# will assume that the directory in which it is stored is
21316 +# the $objdir directory. This is a cygwin/mingw-specific
21318 +func_emit_wrapper ()
21320 + func_emit_wrapper_arg1=no
21321 + if test -n "$1" ; then
21322 + func_emit_wrapper_arg1=$1
21325 + # split this up so that func_emit_cwrapperexe_src
21326 + # can call each part independently.
21327 + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
21328 + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
21332 +# func_to_host_path arg
21334 +# Convert paths to host format when used with build tools.
21335 +# Intended for use with "native" mingw (where libtool itself
21336 +# is running under the msys shell), or in the following cross-
21337 +# build environments:
21339 +# mingw (msys) mingw [e.g. native]
21341 +# *nix + wine mingw
21342 +# where wine is equipped with the `winepath' executable.
21343 +# In the native mingw case, the (msys) shell automatically
21344 +# converts paths for any non-msys applications it launches,
21345 +# but that facility isn't available from inside the cwrapper.
21346 +# Similar accommodations are necessary for $host mingw and
21347 +# $build cygwin. Calling this function does no harm for other
21348 +# $host/$build combinations not listed above.
21350 +# ARG is the path (on $build) that should be converted to
21351 +# the proper representation for $host. The result is stored
21352 +# in $func_to_host_path_result.
21353 +func_to_host_path ()
21355 + func_to_host_path_result="$1"
21356 + if test -n "$1" ; then
21359 + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
21361 + *mingw* ) # actually, msys
21362 + # awkward: cmd appends spaces to result
21363 + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
21364 + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
21365 + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
21366 + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
21367 + $SED -e "$lt_sed_naive_backslashify"`
21370 + func_to_host_path_tmp1=`cygpath -w "$1"`
21371 + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
21372 + $SED -e "$lt_sed_naive_backslashify"`
21375 + # Unfortunately, winepath does not exit with a non-zero
21376 + # error code, so we are forced to check the contents of
21377 + # stdout. On the other hand, if the command is not
21378 + # found, the shell will set an exit code of 127 and print
21379 + # *an error message* to stdout. So we must check for both
21380 + # error code of zero AND non-empty stdout, which explains
21381 + # the odd construction:
21382 + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
21383 + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
21384 + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
21385 + $SED -e "$lt_sed_naive_backslashify"`
21387 + # Allow warning below.
21388 + func_to_host_path_result=""
21392 + if test -z "$func_to_host_path_result" ; then
21393 + func_error "Could not determine host path corresponding to"
21394 + func_error " '$1'"
21395 + func_error "Continuing, but uninstalled executables may not work."
21397 + func_to_host_path_result="$1"
21403 +# end: func_to_host_path
21405 +# func_to_host_pathlist arg
21407 +# Convert pathlists to host format when used with build tools.
21408 +# See func_to_host_path(), above. This function supports the
21409 +# following $build/$host combinations (but does no harm for
21410 +# combinations not listed here):
21412 +# mingw (msys) mingw [e.g. native]
21414 +# *nix + wine mingw
21416 +# Path separators are also converted from $build format to
21417 +# $host format. If ARG begins or ends with a path separator
21418 +# character, it is preserved (but converted to $host format)
21421 +# ARG is a pathlist (on $build) that should be converted to
21422 +# the proper representation on $host. The result is stored
21423 +# in $func_to_host_pathlist_result.
21424 +func_to_host_pathlist ()
21426 + func_to_host_pathlist_result="$1"
21427 + if test -n "$1" ; then
21430 + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
21431 + # Remove leading and trailing path separator characters from
21432 + # ARG. msys behavior is inconsistent here, cygpath turns them
21433 + # into '.;' and ';.', and winepath ignores them completely.
21434 + func_to_host_pathlist_tmp2="$1"
21435 + # Once set for this call, this variable should not be
21436 + # reassigned. It is used in tha fallback case.
21437 + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
21438 + $SED -e 's|^:*||' -e 's|:*$||'`
21440 + *mingw* ) # Actually, msys.
21441 + # Awkward: cmd appends spaces to result.
21442 + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
21443 + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
21444 + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
21445 + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
21446 + $SED -e "$lt_sed_naive_backslashify"`
21449 + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
21450 + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
21451 + $SED -e "$lt_sed_naive_backslashify"`
21454 + # unfortunately, winepath doesn't convert pathlists
21455 + func_to_host_pathlist_result=""
21456 + func_to_host_pathlist_oldIFS=$IFS
21458 + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
21459 + IFS=$func_to_host_pathlist_oldIFS
21460 + if test -n "$func_to_host_pathlist_f" ; then
21461 + func_to_host_path "$func_to_host_pathlist_f"
21462 + if test -n "$func_to_host_path_result" ; then
21463 + if test -z "$func_to_host_pathlist_result" ; then
21464 + func_to_host_pathlist_result="$func_to_host_path_result"
21466 + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
21472 + IFS=$func_to_host_pathlist_oldIFS
21475 + if test -z "$func_to_host_pathlist_result" ; then
21476 + func_error "Could not determine the host path(s) corresponding to"
21477 + func_error " '$1'"
21478 + func_error "Continuing, but uninstalled executables may not work."
21479 + # Fallback. This may break if $1 contains DOS-style drive
21480 + # specifications. The fix is not to complicate the expression
21481 + # below, but for the user to provide a working wine installation
21482 + # with winepath so that path translation in the cross-to-mingw
21483 + # case works properly.
21484 + lt_replace_pathsep_nix_to_dos="s|:|;|g"
21485 + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
21486 + $SED -e "$lt_replace_pathsep_nix_to_dos"`
21488 + # Now, add the leading and trailing path separators back
21490 + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
21494 + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
21501 +# end: func_to_host_pathlist
21503 +# func_emit_cwrapperexe_src
21504 +# emit the source code for a wrapper executable on stdout
21505 +# Must ONLY be called from within func_mode_link because
21506 +# it depends on a number of variable set therein.
21507 +func_emit_cwrapperexe_src ()
21511 +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
21512 + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
21514 + The $output program cannot be directly executed until all the libtool
21515 + libraries that it depends on are installed.
21517 + This wrapper executable should never be moved out of the build directory.
21518 + If it is, it will not operate correctly.
21520 + Currently, it simply execs the wrapper *script* "$SHELL $output",
21521 + but could eventually absorb all of the scripts functionality and
21522 + exec $objdir/$outputname directly.
21526 +#include <stdio.h>
21527 +#include <stdlib.h>
21529 +# include <direct.h>
21530 +# include <process.h>
21532 +# define setmode _setmode
21534 +# include <unistd.h>
21535 +# include <stdint.h>
21536 +# ifdef __CYGWIN__
21538 +# define HAVE_SETENV
21539 +# ifdef __STRICT_ANSI__
21540 +char *realpath (const char *, char *);
21541 +int putenv (char *);
21542 +int setenv (const char *, const char *, int);
21546 +#include <malloc.h>
21547 +#include <stdarg.h>
21548 +#include <assert.h>
21549 +#include <string.h>
21550 +#include <ctype.h>
21551 +#include <errno.h>
21552 +#include <fcntl.h>
21553 +#include <sys/stat.h>
21555 +#if defined(PATH_MAX)
21556 +# define LT_PATHMAX PATH_MAX
21557 +#elif defined(MAXPATHLEN)
21558 +# define LT_PATHMAX MAXPATHLEN
21560 +# define LT_PATHMAX 1024
21564 +# define S_IXOTH 0
21567 +# define S_IXGRP 0
21571 +# define S_IXUSR _S_IEXEC
21572 +# define stat _stat
21573 +# ifndef _INTPTR_T_DEFINED
21574 +# define intptr_t int
21578 +#ifndef DIR_SEPARATOR
21579 +# define DIR_SEPARATOR '/'
21580 +# define PATH_SEPARATOR ':'
21583 +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
21584 + defined (__OS2__)
21585 +# define HAVE_DOS_BASED_FILE_SYSTEM
21586 +# define FOPEN_WB "wb"
21587 +# ifndef DIR_SEPARATOR_2
21588 +# define DIR_SEPARATOR_2 '\\'
21590 +# ifndef PATH_SEPARATOR_2
21591 +# define PATH_SEPARATOR_2 ';'
21595 +#ifndef DIR_SEPARATOR_2
21596 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
21597 +#else /* DIR_SEPARATOR_2 */
21598 +# define IS_DIR_SEPARATOR(ch) \
21599 + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
21600 +#endif /* DIR_SEPARATOR_2 */
21602 +#ifndef PATH_SEPARATOR_2
21603 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
21604 +#else /* PATH_SEPARATOR_2 */
21605 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
21606 +#endif /* PATH_SEPARATOR_2 */
21609 +# define FOPEN_WB "wb"
21613 +# define FOPEN_WB "w"
21616 +# define _O_BINARY 0
21619 +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
21620 +#define XFREE(stale) do { \
21621 + if (stale) { free ((void *) stale); stale = 0; } \
21624 +#undef LTWRAPPER_DEBUGPRINTF
21625 +#if defined DEBUGWRAPPER
21626 +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
21628 +ltwrapper_debugprintf (const char *fmt, ...)
21631 + va_start (args, fmt);
21632 + (void) vfprintf (stderr, fmt, args);
21636 +# define LTWRAPPER_DEBUGPRINTF(args)
21639 +const char *program_name = NULL;
21641 +void *xmalloc (size_t num);
21642 +char *xstrdup (const char *string);
21643 +const char *base_name (const char *name);
21644 +char *find_executable (const char *wrapper);
21645 +char *chase_symlinks (const char *pathspec);
21646 +int make_executable (const char *path);
21647 +int check_executable (const char *path);
21648 +char *strendzap (char *str, const char *pat);
21649 +void lt_fatal (const char *message, ...);
21650 +void lt_setenv (const char *name, const char *value);
21651 +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
21652 +void lt_opt_process_env_set (const char *arg);
21653 +void lt_opt_process_env_prepend (const char *arg);
21654 +void lt_opt_process_env_append (const char *arg);
21655 +int lt_split_name_value (const char *arg, char** name, char** value);
21656 +void lt_update_exe_path (const char *name, const char *value);
21657 +void lt_update_lib_path (const char *name, const char *value);
21659 +static const char *script_text_part1 =
21662 + func_emit_wrapper_part1 yes |
21663 + $SED -e 's/\([\\"]\)/\\\1/g' \
21664 + -e 's/^/ "/' -e 's/$/\\n"/'
21668 +static const char *script_text_part2 =
21670 + func_emit_wrapper_part2 yes |
21671 + $SED -e 's/\([\\"]\)/\\\1/g' \
21672 + -e 's/^/ "/' -e 's/$/\\n"/'
21676 +const char * MAGIC_EXE = "$magic_exe";
21677 +const char * LIB_PATH_VARNAME = "$shlibpath_var";
21680 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
21681 + func_to_host_pathlist "$temp_rpath"
21683 +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
21687 +const char * LIB_PATH_VALUE = "";
21691 + if test -n "$dllsearchpath"; then
21692 + func_to_host_pathlist "$dllsearchpath:"
21694 +const char * EXE_PATH_VARNAME = "PATH";
21695 +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
21699 +const char * EXE_PATH_VARNAME = "";
21700 +const char * EXE_PATH_VALUE = "";
21704 + if test "$fast_install" = yes; then
21706 +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
21710 +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
21717 +#define LTWRAPPER_OPTION_PREFIX "--lt-"
21718 +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
21720 +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
21721 +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
21723 +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
21725 +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
21726 +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
21727 + /* argument is putenv-style "foo=bar", value of foo is set to bar */
21729 +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
21730 +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
21731 + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
21733 +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
21734 +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
21735 + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
21738 +main (int argc, char *argv[])
21742 + char *tmp_pathspec;
21743 + char *actual_cwrapper_path;
21744 + char *actual_cwrapper_name;
21745 + char *target_name;
21746 + char *lt_argv_zero;
21747 + intptr_t rval = 127;
21751 + program_name = (char *) xstrdup (base_name (argv[0]));
21752 + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
21753 + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
21755 + /* very simple arg parsing; don't want to rely on getopt */
21756 + for (i = 1; i < argc; i++)
21758 + if (strcmp (argv[i], dumpscript_opt) == 0)
21762 + *mingw* | *cygwin* )
21763 + # make stdout use "unix" line endings
21764 + echo " setmode(1,_O_BINARY);"
21769 + printf ("%s", script_text_part1);
21770 + printf ("%s", script_text_part2);
21775 + newargz = XMALLOC (char *, argc + 1);
21776 + tmp_pathspec = find_executable (argv[0]);
21777 + if (tmp_pathspec == NULL)
21778 + lt_fatal ("Couldn't find %s", argv[0]);
21779 + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
21782 + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
21783 + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
21784 + actual_cwrapper_path));
21785 + XFREE (tmp_pathspec);
21787 + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
21788 + strendzap (actual_cwrapper_path, actual_cwrapper_name);
21790 + /* wrapper name transforms */
21791 + strendzap (actual_cwrapper_name, ".exe");
21792 + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
21793 + XFREE (actual_cwrapper_name);
21794 + actual_cwrapper_name = tmp_pathspec;
21795 + tmp_pathspec = 0;
21797 + /* target_name transforms -- use actual target program name; might have lt- prefix */
21798 + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
21799 + strendzap (target_name, ".exe");
21800 + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
21801 + XFREE (target_name);
21802 + target_name = tmp_pathspec;
21803 + tmp_pathspec = 0;
21805 + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
21811 + XMALLOC (char, (strlen (actual_cwrapper_path) +
21812 + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
21813 + strcpy (newargz[0], actual_cwrapper_path);
21814 + strcat (newargz[0], "$objdir");
21815 + strcat (newargz[0], "/");
21819 + /* stop here, and copy so we don't have to do this twice */
21820 + tmp_pathspec = xstrdup (newargz[0]);
21822 + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
21823 + strcat (newargz[0], actual_cwrapper_name);
21825 + /* DO want the lt- prefix here if it exists, so use target_name */
21826 + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
21827 + XFREE (tmp_pathspec);
21828 + tmp_pathspec = NULL;
21836 + while ((p = strchr (newargz[0], '\\')) != NULL)
21840 + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
21850 + XFREE (target_name);
21851 + XFREE (actual_cwrapper_path);
21852 + XFREE (actual_cwrapper_name);
21854 + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
21855 + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
21856 + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
21857 + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
21860 + for (i = 1; i < argc; i++)
21862 + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
21864 + if (argv[i][env_set_opt_len] == '=')
21866 + const char *p = argv[i] + env_set_opt_len + 1;
21867 + lt_opt_process_env_set (p);
21869 + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
21871 + lt_opt_process_env_set (argv[++i]); /* don't copy */
21874 + lt_fatal ("%s missing required argument", env_set_opt);
21877 + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
21879 + if (argv[i][env_prepend_opt_len] == '=')
21881 + const char *p = argv[i] + env_prepend_opt_len + 1;
21882 + lt_opt_process_env_prepend (p);
21884 + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
21886 + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
21889 + lt_fatal ("%s missing required argument", env_prepend_opt);
21892 + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
21894 + if (argv[i][env_append_opt_len] == '=')
21896 + const char *p = argv[i] + env_append_opt_len + 1;
21897 + lt_opt_process_env_append (p);
21899 + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
21901 + lt_opt_process_env_append (argv[++i]); /* don't copy */
21904 + lt_fatal ("%s missing required argument", env_append_opt);
21907 + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
21909 + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
21910 + namespace, but it is not one of the ones we know about and
21911 + have already dealt with, above (inluding dump-script), then
21912 + report an error. Otherwise, targets might begin to believe
21913 + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
21914 + namespace. The first time any user complains about this, we'll
21915 + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
21916 + or a configure.ac-settable value.
21918 + lt_fatal ("Unrecognized option in %s namespace: '%s'",
21919 + ltwrapper_option_prefix, argv[i]);
21921 + /* otherwise ... */
21922 + newargz[++newargc] = xstrdup (argv[i]);
21924 + newargz[++newargc] = NULL;
21926 + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
21927 + for (i = 0; i < newargc; i++)
21929 + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
21937 + /* execv doesn't actually work on mingw as expected on unix */
21938 + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
21941 + /* failed to start process */
21942 + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
21950 + execv (lt_argv_zero, newargz);
21951 + return rval; /* =127, but avoids unused variable warning */
21960 +xmalloc (size_t num)
21962 + void *p = (void *) malloc (num);
21964 + lt_fatal ("Memory exhausted");
21970 +xstrdup (const char *string)
21972 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
21977 +base_name (const char *name)
21979 + const char *base;
21981 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
21982 + /* Skip over the disk name in MSDOS pathnames. */
21983 + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
21987 + for (base = name; *name; name++)
21988 + if (IS_DIR_SEPARATOR (*name))
21994 +check_executable (const char *path)
21998 + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
21999 + path ? (*path ? path : "EMPTY!") : "NULL!"));
22000 + if ((!path) || (!*path))
22003 + if ((stat (path, &st) >= 0)
22004 + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
22011 +make_executable (const char *path)
22016 + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
22017 + path ? (*path ? path : "EMPTY!") : "NULL!"));
22018 + if ((!path) || (!*path))
22021 + if (stat (path, &st) >= 0)
22023 + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
22028 +/* Searches for the full path of the wrapper. Returns
22029 + newly allocated full path name if found, NULL otherwise
22030 + Does not chase symlinks, even on platforms that support them.
22033 +find_executable (const char *wrapper)
22035 + int has_slash = 0;
22037 + const char *p_next;
22038 + /* static buffer for getcwd */
22039 + char tmp[LT_PATHMAX + 1];
22041 + char *concat_name;
22043 + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
22044 + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
22046 + if ((wrapper == NULL) || (*wrapper == '\0'))
22049 + /* Absolute path? */
22050 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
22051 + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
22053 + concat_name = xstrdup (wrapper);
22054 + if (check_executable (concat_name))
22055 + return concat_name;
22056 + XFREE (concat_name);
22061 + if (IS_DIR_SEPARATOR (wrapper[0]))
22063 + concat_name = xstrdup (wrapper);
22064 + if (check_executable (concat_name))
22065 + return concat_name;
22066 + XFREE (concat_name);
22068 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
22072 + for (p = wrapper; *p; p++)
22080 + /* no slashes; search PATH */
22081 + const char *path = getenv ("PATH");
22082 + if (path != NULL)
22084 + for (p = path; *p; p = p_next)
22088 + for (q = p; *q; q++)
22089 + if (IS_PATH_SEPARATOR (*q))
22092 + p_next = (*q == '\0' ? q : q + 1);
22095 + /* empty path: current directory */
22096 + if (getcwd (tmp, LT_PATHMAX) == NULL)
22097 + lt_fatal ("getcwd failed");
22098 + tmp_len = strlen (tmp);
22100 + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
22101 + memcpy (concat_name, tmp, tmp_len);
22102 + concat_name[tmp_len] = '/';
22103 + strcpy (concat_name + tmp_len + 1, wrapper);
22108 + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
22109 + memcpy (concat_name, p, p_len);
22110 + concat_name[p_len] = '/';
22111 + strcpy (concat_name + p_len + 1, wrapper);
22113 + if (check_executable (concat_name))
22114 + return concat_name;
22115 + XFREE (concat_name);
22118 + /* not found in PATH; assume curdir */
22120 + /* Relative path | not found in path: prepend cwd */
22121 + if (getcwd (tmp, LT_PATHMAX) == NULL)
22122 + lt_fatal ("getcwd failed");
22123 + tmp_len = strlen (tmp);
22124 + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
22125 + memcpy (concat_name, tmp, tmp_len);
22126 + concat_name[tmp_len] = '/';
22127 + strcpy (concat_name + tmp_len + 1, wrapper);
22129 + if (check_executable (concat_name))
22130 + return concat_name;
22131 + XFREE (concat_name);
22136 +chase_symlinks (const char *pathspec)
22139 + return xstrdup (pathspec);
22141 + char buf[LT_PATHMAX];
22143 + char *tmp_pathspec = xstrdup (pathspec);
22145 + int has_symlinks = 0;
22146 + while (strlen (tmp_pathspec) && !has_symlinks)
22148 + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
22150 + if (lstat (tmp_pathspec, &s) == 0)
22152 + if (S_ISLNK (s.st_mode) != 0)
22154 + has_symlinks = 1;
22158 + /* search backwards for last DIR_SEPARATOR */
22159 + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
22160 + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
22162 + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
22164 + /* no more DIR_SEPARATORS left */
22171 + char *errstr = strerror (errno);
22172 + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
22175 + XFREE (tmp_pathspec);
22177 + if (!has_symlinks)
22179 + return xstrdup (pathspec);
22182 + tmp_pathspec = realpath (pathspec, buf);
22183 + if (tmp_pathspec == 0)
22185 + lt_fatal ("Could not follow symlinks for %s", pathspec);
22187 + return xstrdup (tmp_pathspec);
22192 +strendzap (char *str, const char *pat)
22194 + size_t len, patlen;
22196 + assert (str != NULL);
22197 + assert (pat != NULL);
22199 + len = strlen (str);
22200 + patlen = strlen (pat);
22202 + if (patlen <= len)
22204 + str += len - patlen;
22205 + if (strcmp (str, pat) == 0)
22212 +lt_error_core (int exit_status, const char *mode,
22213 + const char *message, va_list ap)
22215 + fprintf (stderr, "%s: %s: ", program_name, mode);
22216 + vfprintf (stderr, message, ap);
22217 + fprintf (stderr, ".\n");
22219 + if (exit_status >= 0)
22220 + exit (exit_status);
22224 +lt_fatal (const char *message, ...)
22227 + va_start (ap, message);
22228 + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
22233 +lt_setenv (const char *name, const char *value)
22235 + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
22236 + (name ? name : "<NULL>"),
22237 + (value ? value : "<NULL>")));
22239 +#ifdef HAVE_SETENV
22240 + /* always make a copy, for consistency with !HAVE_SETENV */
22241 + char *str = xstrdup (value);
22242 + setenv (name, str, 1);
22244 + int len = strlen (name) + 1 + strlen (value) + 1;
22245 + char *str = XMALLOC (char, len);
22246 + sprintf (str, "%s=%s", name, value);
22247 + if (putenv (str) != EXIT_SUCCESS)
22256 +lt_extend_str (const char *orig_value, const char *add, int to_end)
22259 + if (orig_value && *orig_value)
22261 + int orig_value_len = strlen (orig_value);
22262 + int add_len = strlen (add);
22263 + new_value = XMALLOC (char, add_len + orig_value_len + 1);
22266 + strcpy (new_value, orig_value);
22267 + strcpy (new_value + orig_value_len, add);
22271 + strcpy (new_value, add);
22272 + strcpy (new_value + add_len, orig_value);
22277 + new_value = xstrdup (add);
22279 + return new_value;
22283 +lt_split_name_value (const char *arg, char** name, char** value)
22287 + if (!arg || !*arg)
22290 + p = strchr (arg, (int)'=');
22295 + *value = xstrdup (++p);
22297 + len = strlen (arg) - strlen (*value);
22298 + *name = XMALLOC (char, len);
22299 + strncpy (*name, arg, len-1);
22300 + (*name)[len - 1] = '\0';
22306 +lt_opt_process_env_set (const char *arg)
22308 + char *name = NULL;
22309 + char *value = NULL;
22311 + if (lt_split_name_value (arg, &name, &value) != 0)
22315 + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
22318 + lt_setenv (name, value);
22324 +lt_opt_process_env_prepend (const char *arg)
22326 + char *name = NULL;
22327 + char *value = NULL;
22328 + char *new_value = NULL;
22330 + if (lt_split_name_value (arg, &name, &value) != 0)
22334 + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
22337 + new_value = lt_extend_str (getenv (name), value, 0);
22338 + lt_setenv (name, new_value);
22339 + XFREE (new_value);
22345 +lt_opt_process_env_append (const char *arg)
22347 + char *name = NULL;
22348 + char *value = NULL;
22349 + char *new_value = NULL;
22351 + if (lt_split_name_value (arg, &name, &value) != 0)
22355 + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
22358 + new_value = lt_extend_str (getenv (name), value, 1);
22359 + lt_setenv (name, new_value);
22360 + XFREE (new_value);
22366 +lt_update_exe_path (const char *name, const char *value)
22368 + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
22369 + (name ? name : "<NULL>"),
22370 + (value ? value : "<NULL>")));
22372 + if (name && *name && value && *value)
22374 + char *new_value = lt_extend_str (getenv (name), value, 0);
22375 + /* some systems can't cope with a ':'-terminated path #' */
22376 + int len = strlen (new_value);
22377 + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
22379 + new_value[len-1] = '\0';
22381 + lt_setenv (name, new_value);
22382 + XFREE (new_value);
22387 +lt_update_lib_path (const char *name, const char *value)
22389 + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
22390 + (name ? name : "<NULL>"),
22391 + (value ? value : "<NULL>")));
22393 + if (name && *name && value && *value)
22395 + char *new_value = lt_extend_str (getenv (name), value, 0);
22396 + lt_setenv (name, new_value);
22397 + XFREE (new_value);
22404 +# end: func_emit_cwrapperexe_src
22406 +# func_mode_link arg...
22411 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
22412 + # It is impossible to link a dll without this setting, and
22413 + # we shouldn't force the makefile maintainer to figure out
22414 + # which system we are compiling for in order to pass an extra
22415 + # flag for every libtool invocation.
22416 + # allow_undefined=no
22418 + # FIXME: Unfortunately, there are problems with the above when trying
22419 + # to make a dll which has undefined symbols, in which case not
22420 + # even a static library is built. For now, we need to specify
22421 + # -no-undefined on the libtool link line when we can be certain
22422 + # that all symbols are satisfied, otherwise we get a static library.
22423 + allow_undefined=yes
22426 + allow_undefined=yes
22429 + libtool_args=$nonopt
22430 + base_compile="$nonopt $@"
22431 + compile_command=$nonopt
22432 + finalize_command=$nonopt
22436 + compile_shlibpath=
22437 + finalize_shlibpath=
22445 + lib_search_path=`pwd`
22447 + new_inherited_linker_flags=
22453 + export_dynamic=no
22455 + export_symbols_regex=
22463 + precious_files_regex=
22464 + prefer_static_libs=no
22477 + single_module="${wl}-single_module"
22478 + func_infer_tag $base_compile
22480 + # We need to know -static, to get the right output filenames.
22485 + test "$build_libtool_libs" != yes && \
22486 + func_fatal_configuration "can not build a shared library"
22487 + build_old_libs=no
22490 + -all-static | -static | -static-libtool-libs)
22493 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
22494 + func_warning "complete static linking is impossible in this configuration"
22496 + if test -n "$link_static_flag"; then
22497 + dlopen_self=$dlopen_self_static
22499 + prefer_static_libs=yes
22502 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
22503 + dlopen_self=$dlopen_self_static
22505 + prefer_static_libs=built
22507 + -static-libtool-libs)
22508 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
22509 + dlopen_self=$dlopen_self_static
22511 + prefer_static_libs=yes
22514 + build_libtool_libs=no
22515 + build_old_libs=yes
22521 + # See if our shared archives depend on static archives.
22522 + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
22524 + # Go through the arguments, transforming them on the way.
22525 + while test "$#" -gt 0; do
22528 + func_quote_for_eval "$arg"
22529 + qarg=$func_quote_for_eval_unquoted_result
22530 + func_append libtool_args " $func_quote_for_eval_result"
22532 + # If the previous option needs an argument, assign it.
22533 + if test -n "$prev"; then
22536 + func_append compile_command " @OUTPUT@"
22537 + func_append finalize_command " @OUTPUT@"
22542 + dlfiles|dlprefiles)
22543 + if test "$preload" = no; then
22544 + # Add the symbol object into the linking commands.
22545 + func_append compile_command " @SYMFILE@"
22546 + func_append finalize_command " @SYMFILE@"
22550 + *.la | *.lo) ;; # We handle these cases below.
22552 + if test "$dlself" = no; then
22554 + export_dynamic=yes
22560 + if test "$prev" = dlprefiles; then
22562 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
22566 + export_dynamic=yes
22572 + if test "$prev" = dlfiles; then
22573 + dlfiles="$dlfiles $arg"
22575 + dlprefiles="$dlprefiles $arg"
22583 + export_symbols="$arg"
22585 + || func_fatal_error "symbol file \`$arg' does not exist"
22590 + export_symbols_regex="$arg"
22597 + case "$deplibs " in
22598 + *" $qarg.ltframework "*) ;;
22599 + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
22608 + inst_prefix_dir="$arg"
22613 + if test -f "$arg"; then
22616 + for fil in `cat "$save_arg"`
22618 +# moreargs="$moreargs $fil"
22620 + # A libtool-controlled object.
22622 + # Check to see that this really is a libtool object.
22623 + if func_lalib_unsafe_p "$arg"; then
22627 + # Read the .lo file
22628 + func_source "$arg"
22630 + if test -z "$pic_object" ||
22631 + test -z "$non_pic_object" ||
22632 + test "$pic_object" = none &&
22633 + test "$non_pic_object" = none; then
22634 + func_fatal_error "cannot find name of object for \`$arg'"
22637 + # Extract subdirectory from the argument.
22638 + func_dirname "$arg" "/" ""
22639 + xdir="$func_dirname_result"
22641 + if test "$pic_object" != none; then
22642 + # Prepend the subdirectory the object is found in.
22643 + pic_object="$xdir$pic_object"
22645 + if test "$prev" = dlfiles; then
22646 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
22647 + dlfiles="$dlfiles $pic_object"
22651 + # If libtool objects are unsupported, then we need to preload.
22656 + # CHECK ME: I think I busted this. -Ossama
22657 + if test "$prev" = dlprefiles; then
22658 + # Preload the old-style object.
22659 + dlprefiles="$dlprefiles $pic_object"
22664 + func_append libobjs " $pic_object"
22665 + arg="$pic_object"
22668 + # Non-PIC object.
22669 + if test "$non_pic_object" != none; then
22670 + # Prepend the subdirectory the object is found in.
22671 + non_pic_object="$xdir$non_pic_object"
22673 + # A standard non-PIC object
22674 + func_append non_pic_objects " $non_pic_object"
22675 + if test -z "$pic_object" || test "$pic_object" = none ; then
22676 + arg="$non_pic_object"
22679 + # If the PIC object exists, use it instead.
22680 + # $xdir was prepended to $pic_object above.
22681 + non_pic_object="$pic_object"
22682 + func_append non_pic_objects " $non_pic_object"
22685 + # Only an error if not doing a dry-run.
22686 + if $opt_dry_run; then
22687 + # Extract subdirectory from the argument.
22688 + func_dirname "$arg" "/" ""
22689 + xdir="$func_dirname_result"
22692 + pic_object=$xdir$objdir/$func_lo2o_result
22693 + non_pic_object=$xdir$func_lo2o_result
22694 + func_append libobjs " $pic_object"
22695 + func_append non_pic_objects " $non_pic_object"
22697 + func_fatal_error "\`$arg' is not a valid libtool object"
22702 + func_fatal_error "link input file \`$arg' does not exist"
22709 + precious_files_regex="$arg"
22719 + # We need an absolute path.
22721 + [\\/]* | [A-Za-z]:[\\/]*) ;;
22723 + func_fatal_error "only absolute run-paths are allowed"
22726 + if test "$prev" = rpath; then
22727 + case "$rpath " in
22729 + *) rpath="$rpath $arg" ;;
22732 + case "$xrpath " in
22734 + *) xrpath="$xrpath $arg" ;;
22741 + shrext_cmds="$arg"
22746 + weak_libs="$weak_libs $arg"
22751 + linker_flags="$linker_flags $qarg"
22752 + compiler_flags="$compiler_flags $qarg"
22754 + func_append compile_command " $qarg"
22755 + func_append finalize_command " $qarg"
22759 + compiler_flags="$compiler_flags $qarg"
22761 + func_append compile_command " $qarg"
22762 + func_append finalize_command " $qarg"
22766 + linker_flags="$linker_flags $qarg"
22767 + compiler_flags="$compiler_flags $wl$qarg"
22769 + func_append compile_command " $wl$qarg"
22770 + func_append finalize_command " $wl$qarg"
22774 + eval "$prev=\"\$arg\""
22779 + fi # test -n "$prev"
22785 + if test -n "$link_static_flag"; then
22786 + # See comment for -static flag below, for more details.
22787 + func_append compile_command " $link_static_flag"
22788 + func_append finalize_command " $link_static_flag"
22793 + -allow-undefined)
22794 + # FIXME: remove this flag sometime in the future.
22795 + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
22799 + avoid_version=yes
22814 + export_dynamic=yes
22818 + -export-symbols | -export-symbols-regex)
22819 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
22820 + func_fatal_error "more than one -exported-symbols argument is not allowed"
22822 + if test "X$arg" = "X-export-symbols"; then
22825 + prev=expsyms_regex
22835 + -inst-prefix-dir)
22840 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
22841 + # so, if we see these flags be careful not to treat them like -L
22843 + case $with_gcc/$host in
22844 + no/*-*-irix* | /*-*-irix*)
22845 + func_append compile_command " $arg"
22846 + func_append finalize_command " $arg"
22853 + func_stripname '-L' '' "$arg"
22854 + dir=$func_stripname_result
22855 + if test -z "$dir"; then
22856 + if test "$#" -gt 0; then
22857 + func_fatal_error "require no space between \`-L' and \`$1'"
22859 + func_fatal_error "need path for \`-L' option"
22862 + # We need an absolute path.
22864 + [\\/]* | [A-Za-z]:[\\/]*) ;;
22866 + absdir=`cd "$dir" && pwd`
22867 + test -z "$absdir" && \
22868 + func_fatal_error "cannot determine absolute directory name of \`$dir'"
22872 + case "$deplibs " in
22875 + deplibs="$deplibs -L$dir"
22876 + lib_search_path="$lib_search_path $dir"
22880 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
22881 + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
22882 + case :$dllsearchpath: in
22884 + ::) dllsearchpath=$dir;;
22885 + *) dllsearchpath="$dllsearchpath:$dir";;
22887 + case :$dllsearchpath: in
22888 + *":$testbindir:"*) ;;
22889 + ::) dllsearchpath=$testbindir;;
22890 + *) dllsearchpath="$dllsearchpath:$testbindir";;
22898 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
22900 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
22901 + # These systems don't actually have a C or math library (as such)
22905 + # These systems don't actually have a C library (as such)
22906 + test "X$arg" = "X-lc" && continue
22908 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
22909 + # Do not include libc due to us having libc/libc_r.
22910 + test "X$arg" = "X-lc" && continue
22912 + *-*-rhapsody* | *-*-darwin1.[012])
22913 + # Rhapsody C and math libraries are in the System framework
22914 + deplibs="$deplibs System.ltframework"
22917 + *-*-sco3.2v5* | *-*-sco5v6*)
22918 + # Causes problems with __ctype
22919 + test "X$arg" = "X-lc" && continue
22921 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
22922 + # Compiler inserts libc in the correct place for threads to work
22923 + test "X$arg" = "X-lc" && continue
22926 + elif test "X$arg" = "X-lc_r"; then
22928 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
22929 + # Do not include libc_r directly, use -pthread flag.
22934 + deplibs="$deplibs $arg"
22943 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
22944 + # classes, name mangling, and exception handling.
22945 + # Darwin uses the -arch flag to determine output architecture.
22946 + -model|-arch|-isysroot)
22947 + compiler_flags="$compiler_flags $arg"
22948 + func_append compile_command " $arg"
22949 + func_append finalize_command " $arg"
22954 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
22955 + compiler_flags="$compiler_flags $arg"
22956 + func_append compile_command " $arg"
22957 + func_append finalize_command " $arg"
22958 + case "$new_inherited_linker_flags " in
22960 + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
22966 + single_module="${wl}-multi_module"
22970 + -no-fast-install)
22977 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
22978 + # The PATH hackery in wrapper scripts is required on Windows
22979 + # and Darwin in order for the loader to find any dlls it needs.
22980 + func_warning "\`-no-install' is ignored for $host"
22981 + func_warning "assuming \`-no-fast-install' instead"
22984 + *) no_install=yes ;;
22990 + allow_undefined=no
22999 + -o) prev=output ;;
23001 + -precious-files-regex)
23002 + prev=precious_regex
23022 + func_stripname '-R' '' "$arg"
23023 + dir=$func_stripname_result
23024 + # We need an absolute path.
23026 + [\\/]* | [A-Za-z]:[\\/]*) ;;
23028 + func_fatal_error "only absolute run-paths are allowed"
23031 + case "$xrpath " in
23033 + *) xrpath="$xrpath $dir" ;;
23039 + # The effects of -shared are defined in a previous loop.
23048 + -static | -static-libtool-libs)
23049 + # The effects of -static are defined in a previous loop.
23050 + # We used to do the same as -all-static on platforms that
23051 + # didn't have a PIC flag, but the assumption that the effects
23052 + # would be equivalent was wrong. It would break on at least
23053 + # Digital Unix and AIX.
23079 + func_stripname '-Wc,' '' "$arg"
23080 + args=$func_stripname_result
23082 + save_ifs="$IFS"; IFS=','
23083 + for flag in $args; do
23085 + func_quote_for_eval "$flag"
23086 + arg="$arg $wl$func_quote_for_eval_result"
23087 + compiler_flags="$compiler_flags $func_quote_for_eval_result"
23090 + func_stripname ' ' '' "$arg"
23091 + arg=$func_stripname_result
23095 + func_stripname '-Wl,' '' "$arg"
23096 + args=$func_stripname_result
23098 + save_ifs="$IFS"; IFS=','
23099 + for flag in $args; do
23101 + func_quote_for_eval "$flag"
23102 + arg="$arg $wl$func_quote_for_eval_result"
23103 + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
23104 + linker_flags="$linker_flags $func_quote_for_eval_result"
23107 + func_stripname ' ' '' "$arg"
23108 + arg=$func_stripname_result
23126 + # -msg_* for osf cc
23128 + func_quote_for_eval "$arg"
23129 + arg="$func_quote_for_eval_result"
23132 + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
23133 + # -r[0-9][0-9]* specifies the processor on the SGI compiler
23134 + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
23135 + # +DA*, +DD* enable 64-bit mode on the HP compiler
23136 + # -q* pass through compiler args for the IBM compiler
23137 + # -m*, -t[45]*, -txscale* pass through architecture-specific
23138 + # compiler args for GCC
23139 + # -F/path gives path to uninstalled frameworks, gcc on darwin
23140 + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
23141 + # @file GCC response files
23142 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
23143 + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
23144 + func_quote_for_eval "$arg"
23145 + arg="$func_quote_for_eval_result"
23146 + func_append compile_command " $arg"
23147 + func_append finalize_command " $arg"
23148 + compiler_flags="$compiler_flags $arg"
23152 + # Some other compiler flag.
23154 + func_quote_for_eval "$arg"
23155 + arg="$func_quote_for_eval_result"
23159 + # A standard object.
23160 + objs="$objs $arg"
23164 + # A libtool-controlled object.
23166 + # Check to see that this really is a libtool object.
23167 + if func_lalib_unsafe_p "$arg"; then
23171 + # Read the .lo file
23172 + func_source "$arg"
23174 + if test -z "$pic_object" ||
23175 + test -z "$non_pic_object" ||
23176 + test "$pic_object" = none &&
23177 + test "$non_pic_object" = none; then
23178 + func_fatal_error "cannot find name of object for \`$arg'"
23181 + # Extract subdirectory from the argument.
23182 + func_dirname "$arg" "/" ""
23183 + xdir="$func_dirname_result"
23185 + if test "$pic_object" != none; then
23186 + # Prepend the subdirectory the object is found in.
23187 + pic_object="$xdir$pic_object"
23189 + if test "$prev" = dlfiles; then
23190 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
23191 + dlfiles="$dlfiles $pic_object"
23195 + # If libtool objects are unsupported, then we need to preload.
23200 + # CHECK ME: I think I busted this. -Ossama
23201 + if test "$prev" = dlprefiles; then
23202 + # Preload the old-style object.
23203 + dlprefiles="$dlprefiles $pic_object"
23208 + func_append libobjs " $pic_object"
23209 + arg="$pic_object"
23212 + # Non-PIC object.
23213 + if test "$non_pic_object" != none; then
23214 + # Prepend the subdirectory the object is found in.
23215 + non_pic_object="$xdir$non_pic_object"
23217 + # A standard non-PIC object
23218 + func_append non_pic_objects " $non_pic_object"
23219 + if test -z "$pic_object" || test "$pic_object" = none ; then
23220 + arg="$non_pic_object"
23223 + # If the PIC object exists, use it instead.
23224 + # $xdir was prepended to $pic_object above.
23225 + non_pic_object="$pic_object"
23226 + func_append non_pic_objects " $non_pic_object"
23229 + # Only an error if not doing a dry-run.
23230 + if $opt_dry_run; then
23231 + # Extract subdirectory from the argument.
23232 + func_dirname "$arg" "/" ""
23233 + xdir="$func_dirname_result"
23236 + pic_object=$xdir$objdir/$func_lo2o_result
23237 + non_pic_object=$xdir$func_lo2o_result
23238 + func_append libobjs " $pic_object"
23239 + func_append non_pic_objects " $non_pic_object"
23241 + func_fatal_error "\`$arg' is not a valid libtool object"
23248 + deplibs="$deplibs $arg"
23249 + old_deplibs="$old_deplibs $arg"
23254 + # A libtool-controlled library.
23256 + if test "$prev" = dlfiles; then
23257 + # This library was specified with -dlopen.
23258 + dlfiles="$dlfiles $arg"
23260 + elif test "$prev" = dlprefiles; then
23261 + # The library was specified with -dlpreopen.
23262 + dlprefiles="$dlprefiles $arg"
23265 + deplibs="$deplibs $arg"
23270 + # Some other compiler argument.
23272 + # Unknown arguments in both finalize_command and compile_command need
23273 + # to be aesthetically quoted because they are evaled later.
23274 + func_quote_for_eval "$arg"
23275 + arg="$func_quote_for_eval_result"
23279 + # Now actually substitute the argument into the commands.
23280 + if test -n "$arg"; then
23281 + func_append compile_command " $arg"
23282 + func_append finalize_command " $arg"
23284 + done # argument parsing loop
23286 + test -n "$prev" && \
23287 + func_fatal_help "the \`$prevarg' option requires an argument"
23289 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
23290 + eval arg=\"$export_dynamic_flag_spec\"
23291 + func_append compile_command " $arg"
23292 + func_append finalize_command " $arg"
23296 + # calculate the name of the file, without its directory
23297 + func_basename "$output"
23298 + outputname="$func_basename_result"
23299 + libobjs_save="$libobjs"
23301 + if test -n "$shlibpath_var"; then
23302 + # get the directories listed in $shlibpath_var
23303 + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
23305 + shlib_search_path=
23307 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
23308 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
23310 + func_dirname "$output" "/" ""
23311 + output_objdir="$func_dirname_result$objdir"
23312 + # Create the object directory.
23313 + func_mkdir_p "$output_objdir"
23315 + # Determine the type of output
23318 + func_fatal_help "you must specify an output file"
23320 + *.$libext) linkmode=oldlib ;;
23321 + *.lo | *.$objext) linkmode=obj ;;
23322 + *.la) linkmode=lib ;;
23323 + *) linkmode=prog ;; # Anything else should be a program.
23329 + # Find all interdependent deplibs by searching for libraries
23330 + # that are linked more than once (e.g. -la -lb -la)
23331 + for deplib in $deplibs; do
23332 + if $opt_duplicate_deps ; then
23334 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
23337 + libs="$libs $deplib"
23340 + if test "$linkmode" = lib; then
23341 + libs="$predeps $libs $compiler_lib_search_path $postdeps"
23343 + # Compute libraries that are listed more than once in $predeps
23344 + # $postdeps and mark them as special (i.e., whose duplicates are
23345 + # not to be eliminated).
23347 + if $opt_duplicate_compiler_generated_deps; then
23348 + for pre_post_dep in $predeps $postdeps; do
23349 + case "$pre_post_deps " in
23350 + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
23352 + pre_post_deps="$pre_post_deps $pre_post_dep"
23359 + newdependency_libs=
23360 + newlib_search_path=
23361 + need_relink=no # whether we're linking any uninstalled libtool libraries
23362 + notinst_deplibs= # not-installed libtool libraries
23363 + notinst_path= # paths that contain not-installed libtool libraries
23365 + case $linkmode in
23367 + passes="conv dlpreopen link"
23368 + for file in $dlfiles $dlprefiles; do
23372 + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
23379 + finalize_deplibs=
23383 + passes="conv scan dlopen dlpreopen link"
23389 + for pass in $passes; do
23390 + # The preopen pass in lib mode reverses $deplibs; put it back here
23391 + # so that -L comes before libs that need it for instance...
23392 + if test "$linkmode,$pass" = "lib,link"; then
23393 + ## FIXME: Find the place where the list is rebuilt in the wrong
23394 + ## order, and fix it there properly
23396 + for deplib in $deplibs; do
23397 + tmp_deplibs="$deplib $tmp_deplibs"
23399 + deplibs="$tmp_deplibs"
23402 + if test "$linkmode,$pass" = "lib,link" ||
23403 + test "$linkmode,$pass" = "prog,scan"; then
23407 + if test "$linkmode" = prog; then
23409 + dlopen) libs="$dlfiles" ;;
23410 + dlpreopen) libs="$dlprefiles" ;;
23411 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
23414 + if test "$linkmode,$pass" = "lib,dlpreopen"; then
23415 + # Collect and forward deplibs of preopened libtool libs
23416 + for lib in $dlprefiles; do
23417 + # Ignore non-libtool-libs
23420 + *.la) func_source "$lib" ;;
23423 + # Collect preopened libtool deplibs, except any this library
23424 + # has declared as weak libs
23425 + for deplib in $dependency_libs; do
23426 + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
23427 + case " $weak_libs " in
23428 + *" $deplib_base "*) ;;
23429 + *) deplibs="$deplibs $deplib" ;;
23433 + libs="$dlprefiles"
23435 + if test "$pass" = dlopen; then
23436 + # Collect dlpreopened libraries
23437 + save_deplibs="$deplibs"
23441 + for deplib in $libs; do
23445 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
23446 + if test "$linkmode,$pass" = "prog,link"; then
23447 + compile_deplibs="$deplib $compile_deplibs"
23448 + finalize_deplibs="$deplib $finalize_deplibs"
23450 + compiler_flags="$compiler_flags $deplib"
23451 + if test "$linkmode" = lib ; then
23452 + case "$new_inherited_linker_flags " in
23453 + *" $deplib "*) ;;
23454 + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
23461 + if test "$linkmode" != lib && test "$linkmode" != prog; then
23462 + func_warning "\`-l' is ignored for archives/objects"
23465 + func_stripname '-l' '' "$deplib"
23466 + name=$func_stripname_result
23467 + if test "$linkmode" = lib; then
23468 + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
23470 + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
23472 + for searchdir in $searchdirs; do
23473 + for search_ext in .la $std_shrext .so .a; do
23474 + # Search the libtool library
23475 + lib="$searchdir/lib${name}${search_ext}"
23476 + if test -f "$lib"; then
23477 + if test "$search_ext" = ".la"; then
23486 + if test "$found" != yes; then
23487 + # deplib doesn't seem to be a libtool library
23488 + if test "$linkmode,$pass" = "prog,link"; then
23489 + compile_deplibs="$deplib $compile_deplibs"
23490 + finalize_deplibs="$deplib $finalize_deplibs"
23492 + deplibs="$deplib $deplibs"
23493 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
23496 + else # deplib is a libtool library
23497 + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
23498 + # We need to do some special things here, and not later.
23499 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
23500 + case " $predeps $postdeps " in
23502 + if func_lalib_p "$lib"; then
23505 + func_source "$lib"
23506 + for l in $old_library $library_names; do
23509 + if test "X$ll" = "X$old_library" ; then # only static version available
23511 + func_dirname "$lib" "" "."
23512 + ladir="$func_dirname_result"
23513 + lib=$ladir/$old_library
23514 + if test "$linkmode,$pass" = "prog,link"; then
23515 + compile_deplibs="$deplib $compile_deplibs"
23516 + finalize_deplibs="$deplib $finalize_deplibs"
23518 + deplibs="$deplib $deplibs"
23519 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
23531 + if test "$linkmode,$pass" = "prog,link"; then
23532 + compile_deplibs="$deplib $compile_deplibs"
23533 + finalize_deplibs="$deplib $finalize_deplibs"
23535 + deplibs="$deplib $deplibs"
23536 + if test "$linkmode" = lib ; then
23537 + case "$new_inherited_linker_flags " in
23538 + *" $deplib "*) ;;
23539 + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
23546 + case $linkmode in
23548 + deplibs="$deplib $deplibs"
23549 + test "$pass" = conv && continue
23550 + newdependency_libs="$deplib $newdependency_libs"
23551 + func_stripname '-L' '' "$deplib"
23552 + newlib_search_path="$newlib_search_path $func_stripname_result"
23555 + if test "$pass" = conv; then
23556 + deplibs="$deplib $deplibs"
23559 + if test "$pass" = scan; then
23560 + deplibs="$deplib $deplibs"
23562 + compile_deplibs="$deplib $compile_deplibs"
23563 + finalize_deplibs="$deplib $finalize_deplibs"
23565 + func_stripname '-L' '' "$deplib"
23566 + newlib_search_path="$newlib_search_path $func_stripname_result"
23569 + func_warning "\`-L' is ignored for archives/objects"
23575 + if test "$pass" = link; then
23576 + func_stripname '-R' '' "$deplib"
23577 + dir=$func_stripname_result
23578 + # Make sure the xrpath contains only unique directories.
23579 + case "$xrpath " in
23581 + *) xrpath="$xrpath $dir" ;;
23584 + deplibs="$deplib $deplibs"
23587 + *.la) lib="$deplib" ;;
23589 + if test "$pass" = conv; then
23590 + deplibs="$deplib $deplibs"
23593 + case $linkmode in
23595 + # Linking convenience modules into shared libraries is allowed,
23596 + # but linking other static libraries is non-portable.
23597 + case " $dlpreconveniencelibs " in
23598 + *" $deplib "*) ;;
23601 + case $deplibs_check_method in
23603 + set dummy $deplibs_check_method; shift
23604 + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
23605 + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
23606 + | $EGREP "$match_pattern_regex" > /dev/null; then
23614 + if test "$valid_a_lib" != yes; then
23616 + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
23617 + $ECHO "*** I have the capability to make that library automatically link in when"
23618 + $ECHO "*** you link to this library. But I can only do this if you have a"
23619 + $ECHO "*** shared version of the library, which you do not appear to have"
23620 + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
23621 + $ECHO "*** that it is just a static archive that I should not use here."
23624 + $ECHO "*** Warning: Linking the shared library $output against the"
23625 + $ECHO "*** static library $deplib is not portable!"
23626 + deplibs="$deplib $deplibs"
23633 + if test "$pass" != link; then
23634 + deplibs="$deplib $deplibs"
23636 + compile_deplibs="$deplib $compile_deplibs"
23637 + finalize_deplibs="$deplib $finalize_deplibs"
23643 + *.lo | *.$objext)
23644 + if test "$pass" = conv; then
23645 + deplibs="$deplib $deplibs"
23646 + elif test "$linkmode" = prog; then
23647 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
23648 + # If there is no dlopen support or we're linking statically,
23649 + # we need to preload.
23650 + newdlprefiles="$newdlprefiles $deplib"
23651 + compile_deplibs="$deplib $compile_deplibs"
23652 + finalize_deplibs="$deplib $finalize_deplibs"
23654 + newdlfiles="$newdlfiles $deplib"
23663 + esac # case $deplib
23665 + if test "$found" = yes || test -f "$lib"; then :
23667 + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
23670 + # Check to see that this really is a libtool archive.
23671 + func_lalib_unsafe_p "$lib" \
23672 + || func_fatal_error "\`$lib' is not a valid libtool archive"
23674 + func_dirname "$lib" "" "."
23675 + ladir="$func_dirname_result"
23683 + inherited_linker_flags=
23684 + # If the library was installed with an old release of libtool,
23685 + # it will not redefine variables installed, or shouldnotlink
23691 + # Read the .la file
23692 + func_source "$lib"
23694 + # Convert "-framework foo" to "foo.ltframework"
23695 + if test -n "$inherited_linker_flags"; then
23696 + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
23697 + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
23698 + case " $new_inherited_linker_flags " in
23699 + *" $tmp_inherited_linker_flag "*) ;;
23700 + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
23704 + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
23705 + if test "$linkmode,$pass" = "lib,link" ||
23706 + test "$linkmode,$pass" = "prog,scan" ||
23707 + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
23708 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
23709 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
23712 + if test "$pass" = conv; then
23713 + # Only check for convenience libraries
23714 + deplibs="$lib $deplibs"
23715 + if test -z "$libdir"; then
23716 + if test -z "$old_library"; then
23717 + func_fatal_error "cannot find name of link library for \`$lib'"
23719 + # It is a libtool convenience library, so add in its objects.
23720 + convenience="$convenience $ladir/$objdir/$old_library"
23721 + old_convenience="$old_convenience $ladir/$objdir/$old_library"
23722 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
23723 + func_fatal_error "\`$lib' is not a convenience library"
23726 + for deplib in $dependency_libs; do
23727 + deplibs="$deplib $deplibs"
23728 + if $opt_duplicate_deps ; then
23729 + case "$tmp_libs " in
23730 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
23733 + tmp_libs="$tmp_libs $deplib"
23736 + fi # $pass = conv
23739 + # Get the name of the library we link against.
23741 + for l in $old_library $library_names; do
23744 + if test -z "$linklib"; then
23745 + func_fatal_error "cannot find name of link library for \`$lib'"
23748 + # This library was specified with -dlopen.
23749 + if test "$pass" = dlopen; then
23750 + if test -z "$libdir"; then
23751 + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
23753 + if test -z "$dlname" ||
23754 + test "$dlopen_support" != yes ||
23755 + test "$build_libtool_libs" = no; then
23756 + # If there is no dlname, no dlopen support or we're linking
23757 + # statically, we need to preload. We also need to preload any
23758 + # dependent libraries so libltdl's deplib preloader doesn't
23759 + # bomb out in the load deplibs phase.
23760 + dlprefiles="$dlprefiles $lib $dependency_libs"
23762 + newdlfiles="$newdlfiles $lib"
23765 + fi # $pass = dlopen
23767 + # We need an absolute path.
23769 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
23771 + abs_ladir=`cd "$ladir" && pwd`
23772 + if test -z "$abs_ladir"; then
23773 + func_warning "cannot determine absolute directory name of \`$ladir'"
23774 + func_warning "passing it literally to the linker, although it might fail"
23775 + abs_ladir="$ladir"
23779 + func_basename "$lib"
23780 + laname="$func_basename_result"
23782 + # Find the relevant object directory and library name.
23783 + if test "X$installed" = Xyes; then
23784 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
23785 + func_warning "library \`$lib' was moved."
23787 + absdir="$abs_ladir"
23788 + libdir="$abs_ladir"
23793 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
23795 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
23797 + absdir="$abs_ladir"
23798 + # Remove this search path later
23799 + notinst_path="$notinst_path $abs_ladir"
23801 + dir="$ladir/$objdir"
23802 + absdir="$abs_ladir/$objdir"
23803 + # Remove this search path later
23804 + notinst_path="$notinst_path $abs_ladir"
23806 + fi # $installed = yes
23807 + func_stripname 'lib' '.la' "$laname"
23808 + name=$func_stripname_result
23810 + # This library was specified with -dlpreopen.
23811 + if test "$pass" = dlpreopen; then
23812 + if test -z "$libdir" && test "$linkmode" = prog; then
23813 + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
23815 + # Prefer using a static library (so that no silly _DYNAMIC symbols
23816 + # are required to link).
23817 + if test -n "$old_library"; then
23818 + newdlprefiles="$newdlprefiles $dir/$old_library"
23819 + # Keep a list of preopened convenience libraries to check
23820 + # that they are being used correctly in the link pass.
23821 + test -z "$libdir" && \
23822 + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
23823 + # Otherwise, use the dlname, so that lt_dlopen finds it.
23824 + elif test -n "$dlname"; then
23825 + newdlprefiles="$newdlprefiles $dir/$dlname"
23827 + newdlprefiles="$newdlprefiles $dir/$linklib"
23829 + fi # $pass = dlpreopen
23831 + if test -z "$libdir"; then
23832 + # Link the convenience library
23833 + if test "$linkmode" = lib; then
23834 + deplibs="$dir/$old_library $deplibs"
23835 + elif test "$linkmode,$pass" = "prog,link"; then
23836 + compile_deplibs="$dir/$old_library $compile_deplibs"
23837 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
23839 + deplibs="$lib $deplibs" # used for prog,scan pass
23845 + if test "$linkmode" = prog && test "$pass" != link; then
23846 + newlib_search_path="$newlib_search_path $ladir"
23847 + deplibs="$lib $deplibs"
23849 + linkalldeplibs=no
23850 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
23851 + test "$build_libtool_libs" = no; then
23852 + linkalldeplibs=yes
23856 + for deplib in $dependency_libs; do
23858 + -L*) func_stripname '-L' '' "$deplib"
23859 + newlib_search_path="$newlib_search_path $func_stripname_result"
23862 + # Need to link against all dependency_libs?
23863 + if test "$linkalldeplibs" = yes; then
23864 + deplibs="$deplib $deplibs"
23866 + # Need to hardcode shared library paths
23867 + # or/and link against static libraries
23868 + newdependency_libs="$deplib $newdependency_libs"
23870 + if $opt_duplicate_deps ; then
23871 + case "$tmp_libs " in
23872 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
23875 + tmp_libs="$tmp_libs $deplib"
23876 + done # for deplib
23878 + fi # $linkmode = prog...
23880 + if test "$linkmode,$pass" = "prog,link"; then
23881 + if test -n "$library_names" &&
23882 + { { test "$prefer_static_libs" = no ||
23883 + test "$prefer_static_libs,$installed" = "built,yes"; } ||
23884 + test -z "$old_library"; }; then
23885 + # We need to hardcode the library path
23886 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
23887 + # Make sure the rpath contains only unique directories.
23888 + case "$temp_rpath:" in
23890 + *) temp_rpath="$temp_rpath$absdir:" ;;
23894 + # Hardcode the library path.
23895 + # Skip directories that are in the system default run-time
23897 + case " $sys_lib_dlsearch_path " in
23898 + *" $absdir "*) ;;
23900 + case "$compile_rpath " in
23901 + *" $absdir "*) ;;
23902 + *) compile_rpath="$compile_rpath $absdir"
23906 + case " $sys_lib_dlsearch_path " in
23907 + *" $libdir "*) ;;
23909 + case "$finalize_rpath " in
23910 + *" $libdir "*) ;;
23911 + *) finalize_rpath="$finalize_rpath $libdir"
23915 + fi # $linkmode,$pass = prog,link...
23917 + if test "$alldeplibs" = yes &&
23918 + { test "$deplibs_check_method" = pass_all ||
23919 + { test "$build_libtool_libs" = yes &&
23920 + test -n "$library_names"; }; }; then
23921 + # We only need to search for static libraries
23926 + link_static=no # Whether the deplib will be linked statically
23927 + use_static_libs=$prefer_static_libs
23928 + if test "$use_static_libs" = built && test "$installed" = yes; then
23929 + use_static_libs=no
23931 + if test -n "$library_names" &&
23932 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
23934 + *cygwin* | *mingw* | *cegcc*)
23935 + # No point in relinking DLLs because paths are not encoded
23936 + notinst_deplibs="$notinst_deplibs $lib"
23940 + if test "$installed" = no; then
23941 + notinst_deplibs="$notinst_deplibs $lib"
23946 + # This is a shared library
23948 + # Warn about portability, can't link against -module's on some
23949 + # systems (darwin). Don't bleat about dlopened modules though!
23951 + for dlpremoduletest in $dlprefiles; do
23952 + if test "X$dlpremoduletest" = "X$lib"; then
23953 + dlopenmodule="$dlpremoduletest"
23957 + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
23959 + if test "$linkmode" = prog; then
23960 + $ECHO "*** Warning: Linking the executable $output against the loadable module"
23962 + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
23964 + $ECHO "*** $linklib is not portable!"
23966 + if test "$linkmode" = lib &&
23967 + test "$hardcode_into_libs" = yes; then
23968 + # Hardcode the library path.
23969 + # Skip directories that are in the system default run-time
23971 + case " $sys_lib_dlsearch_path " in
23972 + *" $absdir "*) ;;
23974 + case "$compile_rpath " in
23975 + *" $absdir "*) ;;
23976 + *) compile_rpath="$compile_rpath $absdir"
23980 + case " $sys_lib_dlsearch_path " in
23981 + *" $libdir "*) ;;
23983 + case "$finalize_rpath " in
23984 + *" $libdir "*) ;;
23985 + *) finalize_rpath="$finalize_rpath $libdir"
23991 + if test -n "$old_archive_from_expsyms_cmds"; then
23992 + # figure out the soname
23993 + set dummy $library_names
23997 + libname=`eval "\\$ECHO \"$libname_spec\""`
23998 + # use dlname if we got it. it's perfectly good, no?
23999 + if test -n "$dlname"; then
24001 + elif test -n "$soname_spec"; then
24004 + *cygwin* | mingw* | *cegcc*)
24005 + func_arith $current - $age
24006 + major=$func_arith_result
24007 + versuffix="-$major"
24010 + eval soname=\"$soname_spec\"
24012 + soname="$realname"
24015 + # Make a new name for the extract_expsyms_cmds to use
24017 + func_basename "$soroot"
24018 + soname="$func_basename_result"
24019 + func_stripname 'lib' '.dll' "$soname"
24020 + newlib=libimp-$func_stripname_result.a
24022 + # If the library has no export list, then create one now
24023 + if test -f "$output_objdir/$soname-def"; then :
24025 + func_verbose "extracting exported symbol list from \`$soname'"
24026 + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
24030 + if test -f "$output_objdir/$newlib"; then :; else
24031 + func_verbose "generating import library for \`$soname'"
24032 + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
24034 + # make sure the library variables are pointing to the new library
24035 + dir=$output_objdir
24037 + fi # test -n "$old_archive_from_expsyms_cmds"
24039 + if test "$linkmode" = prog || test "$mode" != relink; then
24044 + case $hardcode_action in
24045 + immediate | unsupported)
24046 + if test "$hardcode_direct" = no; then
24047 + add="$dir/$linklib"
24049 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
24050 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
24051 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
24052 + *-*-unixware7*) add_dir="-L$dir" ;;
24054 + # if the lib is a (non-dlopened) module then we can not
24055 + # link against it, someone is ignoring the earlier warnings
24056 + if /usr/bin/file -L $add 2> /dev/null |
24057 + $GREP ": [^:]* bundle" >/dev/null ; then
24058 + if test "X$dlopenmodule" != "X$lib"; then
24059 + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
24060 + if test -z "$old_library" ; then
24062 + $ECHO "*** And there doesn't seem to be a static archive available"
24063 + $ECHO "*** The link will probably fail, sorry"
24065 + add="$dir/$old_library"
24067 + elif test -n "$old_library"; then
24068 + add="$dir/$old_library"
24072 + elif test "$hardcode_minus_L" = no; then
24074 + *-*-sunos*) add_shlibpath="$dir" ;;
24078 + elif test "$hardcode_shlibpath_var" = no; then
24079 + add_shlibpath="$dir"
24086 + if test "$hardcode_direct" = yes &&
24087 + test "$hardcode_direct_absolute" = no; then
24088 + add="$dir/$linklib"
24089 + elif test "$hardcode_minus_L" = yes; then
24091 + # Try looking first in the location we're being installed to.
24092 + if test -n "$inst_prefix_dir"; then
24095 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
24100 + elif test "$hardcode_shlibpath_var" = yes; then
24101 + add_shlibpath="$dir"
24107 + *) lib_linked=no ;;
24110 + if test "$lib_linked" != yes; then
24111 + func_fatal_configuration "unsupported hardcode properties"
24114 + if test -n "$add_shlibpath"; then
24115 + case :$compile_shlibpath: in
24116 + *":$add_shlibpath:"*) ;;
24117 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
24120 + if test "$linkmode" = prog; then
24121 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
24122 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
24124 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
24125 + test -n "$add" && deplibs="$add $deplibs"
24126 + if test "$hardcode_direct" != yes &&
24127 + test "$hardcode_minus_L" != yes &&
24128 + test "$hardcode_shlibpath_var" = yes; then
24129 + case :$finalize_shlibpath: in
24130 + *":$libdir:"*) ;;
24131 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
24137 + if test "$linkmode" = prog || test "$mode" = relink; then
24141 + # Finalize command for both is simple: just hardcode it.
24142 + if test "$hardcode_direct" = yes &&
24143 + test "$hardcode_direct_absolute" = no; then
24144 + add="$libdir/$linklib"
24145 + elif test "$hardcode_minus_L" = yes; then
24146 + add_dir="-L$libdir"
24148 + elif test "$hardcode_shlibpath_var" = yes; then
24149 + case :$finalize_shlibpath: in
24150 + *":$libdir:"*) ;;
24151 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
24154 + elif test "$hardcode_automatic" = yes; then
24155 + if test -n "$inst_prefix_dir" &&
24156 + test -f "$inst_prefix_dir$libdir/$linklib" ; then
24157 + add="$inst_prefix_dir$libdir/$linklib"
24159 + add="$libdir/$linklib"
24162 + # We cannot seem to hardcode it, guess we'll fake it.
24163 + add_dir="-L$libdir"
24164 + # Try looking first in the location we're being installed to.
24165 + if test -n "$inst_prefix_dir"; then
24168 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
24175 + if test "$linkmode" = prog; then
24176 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
24177 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
24179 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
24180 + test -n "$add" && deplibs="$add $deplibs"
24183 + elif test "$linkmode" = prog; then
24184 + # Here we assume that one of hardcode_direct or hardcode_minus_L
24185 + # is not unsupported. This is valid on all known static and
24186 + # shared platforms.
24187 + if test "$hardcode_direct" != unsupported; then
24188 + test -n "$old_library" && linklib="$old_library"
24189 + compile_deplibs="$dir/$linklib $compile_deplibs"
24190 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
24192 + compile_deplibs="-l$name -L$dir $compile_deplibs"
24193 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
24195 + elif test "$build_libtool_libs" = yes; then
24196 + # Not a shared library
24197 + if test "$deplibs_check_method" != pass_all; then
24198 + # We're trying link a shared library against a static one
24199 + # but the system doesn't support it.
24201 + # Just print a warning and add the library to dependency_libs so
24202 + # that the program can be linked against the static library.
24204 + $ECHO "*** Warning: This system can not link to static lib archive $lib."
24205 + $ECHO "*** I have the capability to make that library automatically link in when"
24206 + $ECHO "*** you link to this library. But I can only do this if you have a"
24207 + $ECHO "*** shared version of the library, which you do not appear to have."
24208 + if test "$module" = yes; then
24209 + $ECHO "*** But as you try to build a module library, libtool will still create "
24210 + $ECHO "*** a static module, that should work as long as the dlopening application"
24211 + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
24212 + if test -z "$global_symbol_pipe"; then
24214 + $ECHO "*** However, this would only work if libtool was able to extract symbol"
24215 + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
24216 + $ECHO "*** not find such a program. So, this module is probably useless."
24217 + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
24219 + if test "$build_old_libs" = no; then
24220 + build_libtool_libs=module
24221 + build_old_libs=yes
24223 + build_libtool_libs=no
24227 + deplibs="$dir/$old_library $deplibs"
24230 + fi # link shared/static library?
24232 + if test "$linkmode" = lib; then
24233 + if test -n "$dependency_libs" &&
24234 + { test "$hardcode_into_libs" != yes ||
24235 + test "$build_old_libs" = yes ||
24236 + test "$link_static" = yes; }; then
24237 + # Extract -R from dependency_libs
24239 + for libdir in $dependency_libs; do
24241 + -R*) func_stripname '-R' '' "$libdir"
24242 + temp_xrpath=$func_stripname_result
24243 + case " $xrpath " in
24244 + *" $temp_xrpath "*) ;;
24245 + *) xrpath="$xrpath $temp_xrpath";;
24247 + *) temp_deplibs="$temp_deplibs $libdir";;
24250 + dependency_libs="$temp_deplibs"
24253 + newlib_search_path="$newlib_search_path $absdir"
24254 + # Link against this library
24255 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
24256 + # ... and its dependency_libs
24258 + for deplib in $dependency_libs; do
24259 + newdependency_libs="$deplib $newdependency_libs"
24260 + if $opt_duplicate_deps ; then
24261 + case "$tmp_libs " in
24262 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
24265 + tmp_libs="$tmp_libs $deplib"
24268 + if test "$link_all_deplibs" != no; then
24269 + # Add the search paths of all dependency libraries
24270 + for deplib in $dependency_libs; do
24272 + -L*) path="$deplib" ;;
24274 + func_dirname "$deplib" "" "."
24275 + dir="$func_dirname_result"
24276 + # We need an absolute path.
24278 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
24280 + absdir=`cd "$dir" && pwd`
24281 + if test -z "$absdir"; then
24282 + func_warning "cannot determine absolute directory name of \`$dir'"
24287 + if $GREP "^installed=no" $deplib > /dev/null; then
24291 + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
24292 + if test -n "$deplibrary_names" ; then
24293 + for tmp in $deplibrary_names ; do
24296 + if test -f "$absdir/$objdir/$depdepl" ; then
24297 + depdepl="$absdir/$objdir/$depdepl"
24298 + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
24299 + if test -z "$darwin_install_name"; then
24300 + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
24302 + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
24303 + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
24309 + path="-L$absdir/$objdir"
24313 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
24314 + test -z "$libdir" && \
24315 + func_fatal_error "\`$deplib' is not a valid libtool archive"
24316 + test "$absdir" != "$libdir" && \
24317 + func_warning "\`$deplib' seems to be moved"
24323 + case " $deplibs " in
24325 + *) deplibs="$path $deplibs" ;;
24328 + fi # link_all_deplibs != no
24329 + fi # linkmode = lib
24330 + done # for deplib in $libs
24331 + if test "$pass" = link; then
24332 + if test "$linkmode" = "prog"; then
24333 + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
24334 + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
24336 + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
24339 + dependency_libs="$newdependency_libs"
24340 + if test "$pass" = dlpreopen; then
24341 + # Link the dlpreopened libraries before other libraries
24342 + for deplib in $save_deplibs; do
24343 + deplibs="$deplib $deplibs"
24346 + if test "$pass" != dlopen; then
24347 + if test "$pass" != conv; then
24348 + # Make sure lib_search_path contains only unique directories.
24350 + for dir in $newlib_search_path; do
24351 + case "$lib_search_path " in
24353 + *) lib_search_path="$lib_search_path $dir" ;;
24356 + newlib_search_path=
24359 + if test "$linkmode,$pass" != "prog,link"; then
24362 + vars="compile_deplibs finalize_deplibs"
24364 + for var in $vars dependency_libs; do
24365 + # Add libraries to $var in reverse order
24366 + eval tmp_libs=\"\$$var\"
24368 + for deplib in $tmp_libs; do
24369 + # FIXME: Pedantically, this is the right thing to do, so
24370 + # that some nasty dependency loop isn't accidentally
24372 + #new_libs="$deplib $new_libs"
24373 + # Pragmatically, this seems to cause very few problems in
24376 + -L*) new_libs="$deplib $new_libs" ;;
24379 + # And here is the reason: when a library appears more
24380 + # than once as an explicit dependence of a library, or
24381 + # is implicitly linked in more than once by the
24382 + # compiler, it is considered special, and multiple
24383 + # occurrences thereof are not removed. Compare this
24384 + # with having the same library being listed as a
24385 + # dependency of multiple other libraries: in this case,
24386 + # we know (pedantically, we assume) the library does not
24387 + # need to be listed more than once, so we keep only the
24388 + # last copy. This is not always right, but it is rare
24389 + # enough that we require users that really mean to play
24390 + # such unportable linking tricks to link the library
24391 + # using -Wl,-lname, so that libtool does not consider it
24392 + # for duplicate removal.
24393 + case " $specialdeplibs " in
24394 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
24396 + case " $new_libs " in
24397 + *" $deplib "*) ;;
24398 + *) new_libs="$deplib $new_libs" ;;
24406 + for deplib in $new_libs; do
24409 + case " $tmp_libs " in
24410 + *" $deplib "*) ;;
24411 + *) tmp_libs="$tmp_libs $deplib" ;;
24414 + *) tmp_libs="$tmp_libs $deplib" ;;
24417 + eval $var=\"$tmp_libs\"
24420 + # Last step: remove runtime libs from dependency_libs
24421 + # (they stay in deplibs)
24423 + for i in $dependency_libs ; do
24424 + case " $predeps $postdeps $compiler_lib_search_path " in
24429 + if test -n "$i" ; then
24430 + tmp_libs="$tmp_libs $i"
24433 + dependency_libs=$tmp_libs
24435 + if test "$linkmode" = prog; then
24436 + dlfiles="$newdlfiles"
24438 + if test "$linkmode" = prog || test "$linkmode" = lib; then
24439 + dlprefiles="$newdlprefiles"
24442 + case $linkmode in
24444 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
24445 + func_warning "\`-dlopen' is ignored for archives"
24448 + case " $deplibs" in
24450 + func_warning "\`-l' and \`-L' are ignored for archives" ;;
24453 + test -n "$rpath" && \
24454 + func_warning "\`-rpath' is ignored for archives"
24456 + test -n "$xrpath" && \
24457 + func_warning "\`-R' is ignored for archives"
24459 + test -n "$vinfo" && \
24460 + func_warning "\`-version-info/-version-number' is ignored for archives"
24462 + test -n "$release" && \
24463 + func_warning "\`-release' is ignored for archives"
24465 + test -n "$export_symbols$export_symbols_regex" && \
24466 + func_warning "\`-export-symbols' is ignored for archives"
24468 + # Now set the variables for building old libraries.
24469 + build_libtool_libs=no
24470 + oldlibs="$output"
24471 + objs="$objs$old_deplibs"
24475 + # Make sure we only generate libraries of the form `libNAME.la'.
24476 + case $outputname in
24478 + func_stripname 'lib' '.la' "$outputname"
24479 + name=$func_stripname_result
24480 + eval shared_ext=\"$shrext_cmds\"
24481 + eval libname=\"$libname_spec\"
24484 + test "$module" = no && \
24485 + func_fatal_help "libtool library \`$output' must begin with \`lib'"
24487 + if test "$need_lib_prefix" != no; then
24488 + # Add the "lib" prefix for modules if required
24489 + func_stripname '' '.la' "$outputname"
24490 + name=$func_stripname_result
24491 + eval shared_ext=\"$shrext_cmds\"
24492 + eval libname=\"$libname_spec\"
24494 + func_stripname '' '.la' "$outputname"
24495 + libname=$func_stripname_result
24500 + if test -n "$objs"; then
24501 + if test "$deplibs_check_method" != pass_all; then
24502 + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
24505 + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
24506 + $ECHO "*** objects $objs is not portable!"
24507 + libobjs="$libobjs $objs"
24511 + test "$dlself" != no && \
24512 + func_warning "\`-dlopen self' is ignored for libtool libraries"
24516 + test "$#" -gt 1 && \
24517 + func_warning "ignoring multiple \`-rpath's for a libtool library"
24519 + install_libdir="$1"
24522 + if test -z "$rpath"; then
24523 + if test "$build_libtool_libs" = yes; then
24524 + # Building a libtool convenience library.
24525 + # Some compilers have problems with a `.al' extension so
24526 + # convenience libraries should have the same extension an
24527 + # archive normally would.
24528 + oldlibs="$output_objdir/$libname.$libext $oldlibs"
24529 + build_libtool_libs=convenience
24530 + build_old_libs=yes
24533 + test -n "$vinfo" && \
24534 + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
24536 + test -n "$release" && \
24537 + func_warning "\`-release' is ignored for convenience libraries"
24540 + # Parse the version information argument.
24541 + save_ifs="$IFS"; IFS=':'
24542 + set dummy $vinfo 0 0 0
24546 + test -n "$7" && \
24547 + func_fatal_help "too many parameters to \`-version-info'"
24549 + # convert absolute version numbers to libtool ages
24550 + # this retains compatibility with .la files and attempts
24551 + # to make the code below a bit more comprehensible
24553 + case $vinfo_number in
24555 + number_major="$1"
24556 + number_minor="$2"
24557 + number_revision="$3"
24559 + # There are really only two kinds -- those that
24560 + # use the current revision as the major version
24561 + # and those that subtract age and use age as
24562 + # a minor version. But, then there is irix
24563 + # which has an extra 1 added just for fun
24565 + case $version_type in
24566 + darwin|linux|osf|windows|none)
24567 + func_arith $number_major + $number_minor
24568 + current=$func_arith_result
24569 + age="$number_minor"
24570 + revision="$number_revision"
24572 + freebsd-aout|freebsd-elf|sunos)
24573 + current="$number_major"
24574 + revision="$number_minor"
24578 + func_arith $number_major + $number_minor
24579 + current=$func_arith_result
24580 + age="$number_minor"
24581 + revision="$number_minor"
24582 + lt_irix_increment=no
24593 + # Check that each of the things are valid numbers.
24595 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
24597 + func_error "CURRENT \`$current' must be a nonnegative integer"
24598 + func_fatal_error "\`$vinfo' is not valid version information"
24602 + case $revision in
24603 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
24605 + func_error "REVISION \`$revision' must be a nonnegative integer"
24606 + func_fatal_error "\`$vinfo' is not valid version information"
24611 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
24613 + func_error "AGE \`$age' must be a nonnegative integer"
24614 + func_fatal_error "\`$vinfo' is not valid version information"
24618 + if test "$age" -gt "$current"; then
24619 + func_error "AGE \`$age' is greater than the current interface number \`$current'"
24620 + func_fatal_error "\`$vinfo' is not valid version information"
24623 + # Calculate the version variables.
24627 + case $version_type in
24631 + # Like Linux, but with the current version available in
24632 + # verstring for coding it into the library header
24633 + func_arith $current - $age
24634 + major=.$func_arith_result
24635 + versuffix="$major.$age.$revision"
24636 + # Darwin ld doesn't like 0 for these options...
24637 + func_arith $current + 1
24638 + minor_current=$func_arith_result
24639 + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
24640 + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
24644 + major=".$current"
24645 + versuffix=".$current.$revision";
24649 + major=".$current"
24650 + versuffix=".$current"
24653 + irix | nonstopux)
24654 + if test "X$lt_irix_increment" = "Xno"; then
24655 + func_arith $current - $age
24657 + func_arith $current - $age + 1
24659 + major=$func_arith_result
24661 + case $version_type in
24662 + nonstopux) verstring_prefix=nonstopux ;;
24663 + *) verstring_prefix=sgi ;;
24665 + verstring="$verstring_prefix$major.$revision"
24667 + # Add in all the interfaces that we are compatible with.
24669 + while test "$loop" -ne 0; do
24670 + func_arith $revision - $loop
24671 + iface=$func_arith_result
24672 + func_arith $loop - 1
24673 + loop=$func_arith_result
24674 + verstring="$verstring_prefix$major.$iface:$verstring"
24677 + # Before this point, $major must not contain `.'.
24679 + versuffix="$major.$revision"
24683 + func_arith $current - $age
24684 + major=.$func_arith_result
24685 + versuffix="$major.$age.$revision"
24689 + func_arith $current - $age
24690 + major=.$func_arith_result
24691 + versuffix=".$current.$age.$revision"
24692 + verstring="$current.$age.$revision"
24694 + # Add in all the interfaces that we are compatible with.
24696 + while test "$loop" -ne 0; do
24697 + func_arith $current - $loop
24698 + iface=$func_arith_result
24699 + func_arith $loop - 1
24700 + loop=$func_arith_result
24701 + verstring="$verstring:${iface}.0"
24704 + # Make executables depend on our current version.
24705 + verstring="$verstring:${current}.0"
24709 + major=".$current"
24710 + versuffix=".$current"
24714 + major=".$current"
24715 + versuffix=".$current.$revision"
24719 + # Use '-' rather than '.', since we only want one
24720 + # extension on DOS 8.3 filesystems.
24721 + func_arith $current - $age
24722 + major=$func_arith_result
24723 + versuffix="-$major"
24727 + func_fatal_configuration "unknown library version type \`$version_type'"
24731 + # Clear the version info if we defaulted, and they specified a release.
24732 + if test -z "$vinfo" && test -n "$release"; then
24734 + case $version_type in
24736 + # we can't check for "0.0" in archive_cmds due to quoting
24737 + # problems, so we reset it completely
24744 + if test "$need_version" = no; then
24751 + # Remove version info from name if versioning should be avoided
24752 + if test "$avoid_version" = yes && test "$need_version" = no; then
24758 + # Check to see if the archive will have undefined symbols.
24759 + if test "$allow_undefined" = yes; then
24760 + if test "$allow_undefined_flag" = unsupported; then
24761 + func_warning "undefined symbols not allowed in $host shared libraries"
24762 + build_libtool_libs=no
24763 + build_old_libs=yes
24766 + # Don't allow undefined symbols.
24767 + allow_undefined_flag="$no_undefined_flag"
24772 + func_generate_dlsyms "$libname" "$libname" "yes"
24773 + libobjs="$libobjs $symfileobj"
24774 + test "X$libobjs" = "X " && libobjs=
24776 + if test "$mode" != relink; then
24777 + # Remove our outputs, but don't remove object files since they
24778 + # may have been created when compiling PIC objects.
24780 + tempremovelist=`$ECHO "$output_objdir/*"`
24781 + for p in $tempremovelist; do
24783 + *.$objext | *.gcno)
24785 + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
24786 + if test "X$precious_files_regex" != "X"; then
24787 + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
24792 + removelist="$removelist $p"
24797 + test -n "$removelist" && \
24798 + func_show_eval "${RM}r \$removelist"
24801 + # Now set the variables for building old libraries.
24802 + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
24803 + oldlibs="$oldlibs $output_objdir/$libname.$libext"
24805 + # Transform .lo files to .o files.
24806 + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
24809 + # Eliminate all temporary directories.
24810 + #for path in $notinst_path; do
24811 + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
24812 + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
24813 + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
24816 + if test -n "$xrpath"; then
24817 + # If the user specified any rpath flags, then add them.
24819 + for libdir in $xrpath; do
24820 + temp_xrpath="$temp_xrpath -R$libdir"
24821 + case "$finalize_rpath " in
24822 + *" $libdir "*) ;;
24823 + *) finalize_rpath="$finalize_rpath $libdir" ;;
24826 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
24827 + dependency_libs="$temp_xrpath $dependency_libs"
24831 + # Make sure dlfiles contains only unique files that won't be dlpreopened
24832 + old_dlfiles="$dlfiles"
24834 + for lib in $old_dlfiles; do
24835 + case " $dlprefiles $dlfiles " in
24837 + *) dlfiles="$dlfiles $lib" ;;
24841 + # Make sure dlprefiles contains only unique files
24842 + old_dlprefiles="$dlprefiles"
24844 + for lib in $old_dlprefiles; do
24845 + case "$dlprefiles " in
24847 + *) dlprefiles="$dlprefiles $lib" ;;
24851 + if test "$build_libtool_libs" = yes; then
24852 + if test -n "$rpath"; then
24854 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
24855 + # these systems don't actually have a c library (as such)!
24857 + *-*-rhapsody* | *-*-darwin1.[012])
24858 + # Rhapsody C library is in the System framework
24859 + deplibs="$deplibs System.ltframework"
24862 + # Don't link with libc until the a.out ld.so is fixed.
24864 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
24865 + # Do not include libc due to us having libc/libc_r.
24867 + *-*-sco3.2v5* | *-*-sco5v6*)
24868 + # Causes problems with __ctype
24870 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
24871 + # Compiler inserts libc in the correct place for threads to work
24874 + # Add libc to deplibs on all other systems if necessary.
24875 + if test "$build_libtool_need_lc" = "yes"; then
24876 + deplibs="$deplibs -lc"
24882 + # Transform deplibs into only deplibs that can be linked in shared.
24884 + libname_save=$libname
24885 + release_save=$release
24886 + versuffix_save=$versuffix
24887 + major_save=$major
24888 + # I'm not sure if I'm treating the release correctly. I think
24889 + # release should show up in the -l (ie -lgmp5) so we don't want to
24890 + # add it in twice. Is that correct?
24896 + case $deplibs_check_method in
24898 + # Don't check for shared/static. Everything works.
24899 + # This might be a little naive. We might want to check
24900 + # whether the library exists or not. But this is on
24901 + # osf3 & osf4 and I'm not really sure... Just
24902 + # implementing what was already the behavior.
24903 + newdeplibs=$deplibs
24906 + # This code stresses the "libraries are programs" paradigm to its
24907 + # limits. Maybe even breaks it. We compile a program, linking it
24908 + # against the deplibs as a proxy for the library. Then we can check
24909 + # whether they linked in statically or dynamically with ldd.
24910 + $opt_dry_run || $RM conftest.c
24911 + cat > conftest.c <<EOF
24912 + int main() { return 0; }
24914 + $opt_dry_run || $RM conftest
24915 + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
24916 + ldd_output=`ldd conftest`
24917 + for i in $deplibs; do
24920 + func_stripname -l '' "$i"
24921 + name=$func_stripname_result
24922 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
24923 + case " $predeps $postdeps " in
24925 + newdeplibs="$newdeplibs $i"
24930 + if test -n "$i" ; then
24931 + libname=`eval "\\$ECHO \"$libname_spec\""`
24932 + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
24933 + set dummy $deplib_matches; shift
24935 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
24936 + newdeplibs="$newdeplibs $i"
24940 + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
24941 + $ECHO "*** I have the capability to make that library automatically link in when"
24942 + $ECHO "*** you link to this library. But I can only do this if you have a"
24943 + $ECHO "*** shared version of the library, which I believe you do not have"
24944 + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
24945 + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
24950 + newdeplibs="$newdeplibs $i"
24955 + # Error occurred in the first compile. Let's try to salvage
24956 + # the situation: Compile a separate program for each library.
24957 + for i in $deplibs; do
24960 + func_stripname -l '' "$i"
24961 + name=$func_stripname_result
24962 + $opt_dry_run || $RM conftest
24963 + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
24964 + ldd_output=`ldd conftest`
24965 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
24966 + case " $predeps $postdeps " in
24968 + newdeplibs="$newdeplibs $i"
24973 + if test -n "$i" ; then
24974 + libname=`eval "\\$ECHO \"$libname_spec\""`
24975 + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
24976 + set dummy $deplib_matches; shift
24978 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
24979 + newdeplibs="$newdeplibs $i"
24983 + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
24984 + $ECHO "*** I have the capability to make that library automatically link in when"
24985 + $ECHO "*** you link to this library. But I can only do this if you have a"
24986 + $ECHO "*** shared version of the library, which you do not appear to have"
24987 + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
24988 + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
24994 + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
24995 + $ECHO "*** make it link in! You will probably need to install it or some"
24996 + $ECHO "*** library that it depends on before this library will be fully"
24997 + $ECHO "*** functional. Installing it before continuing would be even better."
25001 + newdeplibs="$newdeplibs $i"
25008 + set dummy $deplibs_check_method; shift
25009 + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
25010 + for a_deplib in $deplibs; do
25011 + case $a_deplib in
25013 + func_stripname -l '' "$a_deplib"
25014 + name=$func_stripname_result
25015 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
25016 + case " $predeps $postdeps " in
25018 + newdeplibs="$newdeplibs $a_deplib"
25023 + if test -n "$a_deplib" ; then
25024 + libname=`eval "\\$ECHO \"$libname_spec\""`
25025 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
25026 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
25027 + for potent_lib in $potential_libs; do
25028 + # Follow soft links.
25029 + if ls -lLd "$potent_lib" 2>/dev/null |
25030 + $GREP " -> " >/dev/null; then
25033 + # The statement above tries to avoid entering an
25034 + # endless loop below, in case of cyclic links.
25035 + # We might still enter an endless loop, since a link
25036 + # loop can be closed while we follow links,
25038 + potlib="$potent_lib"
25039 + while test -h "$potlib" 2>/dev/null; do
25040 + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
25041 + case $potliblink in
25042 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
25043 + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
25046 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
25048 + $EGREP "$file_magic_regex" > /dev/null; then
25049 + newdeplibs="$newdeplibs $a_deplib"
25056 + if test -n "$a_deplib" ; then
25059 + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
25060 + $ECHO "*** I have the capability to make that library automatically link in when"
25061 + $ECHO "*** you link to this library. But I can only do this if you have a"
25062 + $ECHO "*** shared version of the library, which you do not appear to have"
25063 + $ECHO "*** because I did check the linker path looking for a file starting"
25064 + if test -z "$potlib" ; then
25065 + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
25067 + $ECHO "*** with $libname and none of the candidates passed a file format test"
25068 + $ECHO "*** using a file magic. Last file checked: $potlib"
25073 + # Add a -L argument.
25074 + newdeplibs="$newdeplibs $a_deplib"
25077 + done # Gone through all deplibs.
25080 + set dummy $deplibs_check_method; shift
25081 + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
25082 + for a_deplib in $deplibs; do
25083 + case $a_deplib in
25085 + func_stripname -l '' "$a_deplib"
25086 + name=$func_stripname_result
25087 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
25088 + case " $predeps $postdeps " in
25090 + newdeplibs="$newdeplibs $a_deplib"
25095 + if test -n "$a_deplib" ; then
25096 + libname=`eval "\\$ECHO \"$libname_spec\""`
25097 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
25098 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
25099 + for potent_lib in $potential_libs; do
25100 + potlib="$potent_lib" # see symlink-check above in file_magic test
25101 + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
25102 + $EGREP "$match_pattern_regex" > /dev/null; then
25103 + newdeplibs="$newdeplibs $a_deplib"
25110 + if test -n "$a_deplib" ; then
25113 + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
25114 + $ECHO "*** I have the capability to make that library automatically link in when"
25115 + $ECHO "*** you link to this library. But I can only do this if you have a"
25116 + $ECHO "*** shared version of the library, which you do not appear to have"
25117 + $ECHO "*** because I did check the linker path looking for a file starting"
25118 + if test -z "$potlib" ; then
25119 + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
25121 + $ECHO "*** with $libname and none of the candidates passed a file format test"
25122 + $ECHO "*** using a regex pattern. Last file checked: $potlib"
25127 + # Add a -L argument.
25128 + newdeplibs="$newdeplibs $a_deplib"
25131 + done # Gone through all deplibs.
25133 + none | unknown | *)
25135 + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
25136 + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
25137 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
25138 + for i in $predeps $postdeps ; do
25139 + # can't use Xsed below, because $i might contain '/'
25140 + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
25143 + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
25144 + $GREP . >/dev/null; then
25146 + if test "X$deplibs_check_method" = "Xnone"; then
25147 + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
25149 + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
25151 + $ECHO "*** All declared inter-library dependencies are being dropped."
25156 + versuffix=$versuffix_save
25157 + major=$major_save
25158 + release=$release_save
25159 + libname=$libname_save
25163 + *-*-rhapsody* | *-*-darwin1.[012])
25164 + # On Rhapsody replace the C library with the System framework
25165 + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
25169 + if test "$droppeddeps" = yes; then
25170 + if test "$module" = yes; then
25172 + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
25173 + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
25174 + $ECHO "*** a static module, that should work as long as the dlopening"
25175 + $ECHO "*** application is linked with the -dlopen flag."
25176 + if test -z "$global_symbol_pipe"; then
25178 + $ECHO "*** However, this would only work if libtool was able to extract symbol"
25179 + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
25180 + $ECHO "*** not find such a program. So, this module is probably useless."
25181 + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
25183 + if test "$build_old_libs" = no; then
25184 + oldlibs="$output_objdir/$libname.$libext"
25185 + build_libtool_libs=module
25186 + build_old_libs=yes
25188 + build_libtool_libs=no
25191 + $ECHO "*** The inter-library dependencies that have been dropped here will be"
25192 + $ECHO "*** automatically added whenever a program is linked with this library"
25193 + $ECHO "*** or is declared to -dlopen it."
25195 + if test "$allow_undefined" = no; then
25197 + $ECHO "*** Since this library must not contain undefined symbols,"
25198 + $ECHO "*** because either the platform does not support them or"
25199 + $ECHO "*** it was explicitly requested with -no-undefined,"
25200 + $ECHO "*** libtool will only create a static version of it."
25201 + if test "$build_old_libs" = no; then
25202 + oldlibs="$output_objdir/$libname.$libext"
25203 + build_libtool_libs=module
25204 + build_old_libs=yes
25206 + build_libtool_libs=no
25211 + # Done checking deplibs!
25212 + deplibs=$newdeplibs
25214 + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
25217 + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
25218 + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
25219 + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
25223 + # move library search paths that coincide with paths to not yet
25224 + # installed libraries to the beginning of the library search list
25226 + for path in $notinst_path; do
25227 + case " $new_libs " in
25228 + *" -L$path/$objdir "*) ;;
25230 + case " $deplibs " in
25231 + *" -L$path/$objdir "*)
25232 + new_libs="$new_libs -L$path/$objdir" ;;
25237 + for deplib in $deplibs; do
25240 + case " $new_libs " in
25241 + *" $deplib "*) ;;
25242 + *) new_libs="$new_libs $deplib" ;;
25245 + *) new_libs="$new_libs $deplib" ;;
25248 + deplibs="$new_libs"
25250 + # All the library-specific variables (install_libdir is set above).
25255 + # Test again, we may have decided not to build it any more
25256 + if test "$build_libtool_libs" = yes; then
25257 + if test "$hardcode_into_libs" = yes; then
25258 + # Hardcode the library paths
25259 + hardcode_libdirs=
25261 + rpath="$finalize_rpath"
25262 + test "$mode" != relink && rpath="$compile_rpath$rpath"
25263 + for libdir in $rpath; do
25264 + if test -n "$hardcode_libdir_flag_spec"; then
25265 + if test -n "$hardcode_libdir_separator"; then
25266 + if test -z "$hardcode_libdirs"; then
25267 + hardcode_libdirs="$libdir"
25269 + # Just accumulate the unique libdirs.
25270 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
25271 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
25274 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
25279 + eval flag=\"$hardcode_libdir_flag_spec\"
25280 + dep_rpath="$dep_rpath $flag"
25282 + elif test -n "$runpath_var"; then
25283 + case "$perm_rpath " in
25284 + *" $libdir "*) ;;
25285 + *) perm_rpath="$perm_rpath $libdir" ;;
25289 + # Substitute the hardcoded libdirs into the rpath.
25290 + if test -n "$hardcode_libdir_separator" &&
25291 + test -n "$hardcode_libdirs"; then
25292 + libdir="$hardcode_libdirs"
25293 + if test -n "$hardcode_libdir_flag_spec_ld"; then
25294 + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
25296 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
25299 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
25300 + # We should set the runpath_var.
25302 + for dir in $perm_rpath; do
25303 + rpath="$rpath$dir:"
25305 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
25307 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
25310 + shlibpath="$finalize_shlibpath"
25311 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
25312 + if test -n "$shlibpath"; then
25313 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
25316 + # Get the real and link names of the library.
25317 + eval shared_ext=\"$shrext_cmds\"
25318 + eval library_names=\"$library_names_spec\"
25319 + set dummy $library_names
25324 + if test -n "$soname_spec"; then
25325 + eval soname=\"$soname_spec\"
25327 + soname="$realname"
25329 + if test -z "$dlname"; then
25333 + lib="$output_objdir/$realname"
25337 + linknames="$linknames $link"
25340 + # Use standard objects if they are pic
25341 + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
25342 + test "X$libobjs" = "X " && libobjs=
25345 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
25346 + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
25347 + export_symbols="$output_objdir/$libname.uexp"
25348 + delfiles="$delfiles $export_symbols"
25351 + orig_export_symbols=
25353 + cygwin* | mingw* | cegcc*)
25354 + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
25355 + # exporting using user supplied symfile
25356 + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
25357 + # and it's NOT already a .def file. Must figure out
25358 + # which of the given symbols are data symbols and tag
25359 + # them as such. So, trigger use of export_symbols_cmds.
25360 + # export_symbols gets reassigned inside the "prepare
25361 + # the list of exported symbols" if statement, so the
25362 + # include_expsyms logic still works.
25363 + orig_export_symbols="$export_symbols"
25365 + always_export_symbols=yes
25371 + # Prepare the list of exported symbols
25372 + if test -z "$export_symbols"; then
25373 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
25374 + func_verbose "generating symbol list for \`$libname.la'"
25375 + export_symbols="$output_objdir/$libname.exp"
25376 + $opt_dry_run || $RM $export_symbols
25377 + cmds=$export_symbols_cmds
25378 + save_ifs="$IFS"; IFS='~'
25379 + for cmd in $cmds; do
25381 + eval cmd=\"$cmd\"
25383 + len=$func_len_result
25384 + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
25385 + func_show_eval "$cmd" 'exit $?'
25386 + skipped_export=false
25388 + # The command line is too long to execute in one step.
25389 + func_verbose "using reloadable object file for export list..."
25391 + # Break out early, otherwise skipped_export may be
25392 + # set to false by a later but shorter cmd.
25397 + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
25398 + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
25399 + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
25404 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
25405 + tmp_export_symbols="$export_symbols"
25406 + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
25407 + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
25410 + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
25411 + # The given exports_symbols file has to be filtered, so filter it.
25412 + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
25413 + # FIXME: $output_objdir/$libname.filter potentially contains lots of
25414 + # 's' commands which not all seds can handle. GNU sed should be fine
25415 + # though. Also, the filter scales superlinearly with the number of
25416 + # global variables. join(1) would be nice here, but unfortunately
25417 + # isn't a blessed tool.
25418 + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
25419 + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
25420 + export_symbols=$output_objdir/$libname.def
25421 + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
25425 + for test_deplib in $deplibs; do
25426 + case " $convenience " in
25427 + *" $test_deplib "*) ;;
25429 + tmp_deplibs="$tmp_deplibs $test_deplib"
25433 + deplibs="$tmp_deplibs"
25435 + if test -n "$convenience"; then
25436 + if test -n "$whole_archive_flag_spec" &&
25437 + test "$compiler_needs_object" = yes &&
25438 + test -z "$libobjs"; then
25439 + # extract the archives, so we have objects to list.
25440 + # TODO: could optimize this to just extract one archive.
25441 + whole_archive_flag_spec=
25443 + if test -n "$whole_archive_flag_spec"; then
25444 + save_libobjs=$libobjs
25445 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
25446 + test "X$libobjs" = "X " && libobjs=
25448 + gentop="$output_objdir/${outputname}x"
25449 + generated="$generated $gentop"
25451 + func_extract_archives $gentop $convenience
25452 + libobjs="$libobjs $func_extract_archives_result"
25453 + test "X$libobjs" = "X " && libobjs=
25457 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
25458 + eval flag=\"$thread_safe_flag_spec\"
25459 + linker_flags="$linker_flags $flag"
25462 + # Make a backup of the uninstalled library when relinking
25463 + if test "$mode" = relink; then
25464 + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
25467 + # Do each of the archive commands.
25468 + if test "$module" = yes && test -n "$module_cmds" ; then
25469 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
25470 + eval test_cmds=\"$module_expsym_cmds\"
25471 + cmds=$module_expsym_cmds
25473 + eval test_cmds=\"$module_cmds\"
25474 + cmds=$module_cmds
25477 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
25478 + eval test_cmds=\"$archive_expsym_cmds\"
25479 + cmds=$archive_expsym_cmds
25481 + eval test_cmds=\"$archive_cmds\"
25482 + cmds=$archive_cmds
25486 + if test "X$skipped_export" != "X:" &&
25487 + func_len " $test_cmds" &&
25488 + len=$func_len_result &&
25489 + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
25492 + # The command line is too long to link in one step, link piecewise
25493 + # or, if using GNU ld and skipped_export is not :, use a linker
25496 + # Save the value of $output and $libobjs because we want to
25497 + # use them later. If we have whole_archive_flag_spec, we
25498 + # want to use save_libobjs as it was before
25499 + # whole_archive_flag_spec was expanded, because we can't
25500 + # assume the linker understands whole_archive_flag_spec.
25501 + # This may have to be revisited, in case too many
25502 + # convenience libraries get linked in and end up exceeding
25504 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
25505 + save_libobjs=$libobjs
25507 + save_output=$output
25508 + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
25510 + # Clear the reloadable object creation command queue and
25511 + # initialize k to one.
25518 + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
25519 + output=${output_objdir}/${output_la}.lnkscript
25520 + func_verbose "creating GNU ld script: $output"
25521 + $ECHO 'INPUT (' > $output
25522 + for obj in $save_libobjs
25524 + $ECHO "$obj" >> $output
25526 + $ECHO ')' >> $output
25527 + delfiles="$delfiles $output"
25528 + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
25529 + output=${output_objdir}/${output_la}.lnk
25530 + func_verbose "creating linker input file list: $output"
25532 + set x $save_libobjs
25535 + if test "$compiler_needs_object" = yes; then
25541 + $ECHO "$obj" >> $output
25543 + delfiles="$delfiles $output"
25544 + output=$firstobj\"$file_list_spec$output\"
25546 + if test -n "$save_libobjs"; then
25547 + func_verbose "creating reloadable object files..."
25548 + output=$output_objdir/$output_la-${k}.$objext
25549 + eval test_cmds=\"$reload_cmds\"
25550 + func_len " $test_cmds"
25551 + len0=$func_len_result
25554 + # Loop over the list of objects to be linked.
25555 + for obj in $save_libobjs
25558 + func_arith $len + $func_len_result
25559 + len=$func_arith_result
25560 + if test "X$objlist" = X ||
25561 + test "$len" -lt "$max_cmd_len"; then
25562 + func_append objlist " $obj"
25564 + # The command $test_cmds is almost too long, add a
25565 + # command to the queue.
25566 + if test "$k" -eq 1 ; then
25567 + # The first file doesn't have a previous command to add.
25568 + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
25570 + # All subsequent reloadable object files will link in
25571 + # the last one created.
25572 + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
25574 + last_robj=$output_objdir/$output_la-${k}.$objext
25575 + func_arith $k + 1
25576 + k=$func_arith_result
25577 + output=$output_objdir/$output_la-${k}.$objext
25579 + func_len " $last_robj"
25580 + func_arith $len0 + $func_len_result
25581 + len=$func_arith_result
25584 + # Handle the remaining objects by creating one last
25585 + # reloadable object file. All subsequent reloadable object
25586 + # files will link in the last one created.
25587 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
25588 + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
25589 + if test -n "$last_robj"; then
25590 + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
25592 + delfiles="$delfiles $output"
25598 + if ${skipped_export-false}; then
25599 + func_verbose "generating symbol list for \`$libname.la'"
25600 + export_symbols="$output_objdir/$libname.exp"
25601 + $opt_dry_run || $RM $export_symbols
25603 + # Append the command to create the export file.
25604 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
25605 + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
25606 + if test -n "$last_robj"; then
25607 + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
25611 + test -n "$save_libobjs" &&
25612 + func_verbose "creating a temporary reloadable object file: $output"
25614 + # Loop through the commands generated above and execute them.
25615 + save_ifs="$IFS"; IFS='~'
25616 + for cmd in $concat_cmds; do
25619 + func_quote_for_expand "$cmd"
25620 + eval "func_echo $func_quote_for_expand_result"
25622 + $opt_dry_run || eval "$cmd" || {
25625 + # Restore the uninstalled library and exit
25626 + if test "$mode" = relink; then
25627 + ( cd "$output_objdir" && \
25628 + $RM "${realname}T" && \
25629 + $MV "${realname}U" "$realname" )
25637 + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
25638 + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
25639 + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
25643 + if ${skipped_export-false}; then
25644 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
25645 + tmp_export_symbols="$export_symbols"
25646 + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
25647 + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
25650 + if test -n "$orig_export_symbols"; then
25651 + # The given exports_symbols file has to be filtered, so filter it.
25652 + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
25653 + # FIXME: $output_objdir/$libname.filter potentially contains lots of
25654 + # 's' commands which not all seds can handle. GNU sed should be fine
25655 + # though. Also, the filter scales superlinearly with the number of
25656 + # global variables. join(1) would be nice here, but unfortunately
25657 + # isn't a blessed tool.
25658 + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
25659 + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
25660 + export_symbols=$output_objdir/$libname.def
25661 + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
25666 + # Restore the value of output.
25667 + output=$save_output
25669 + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
25670 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
25671 + test "X$libobjs" = "X " && libobjs=
25673 + # Expand the library linking commands again to reset the
25674 + # value of $libobjs for piecewise linking.
25676 + # Do each of the archive commands.
25677 + if test "$module" = yes && test -n "$module_cmds" ; then
25678 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
25679 + cmds=$module_expsym_cmds
25681 + cmds=$module_cmds
25684 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
25685 + cmds=$archive_expsym_cmds
25687 + cmds=$archive_cmds
25692 + if test -n "$delfiles"; then
25693 + # Append the command to remove temporary files to $cmds.
25694 + eval cmds=\"\$cmds~\$RM $delfiles\"
25697 + # Add any objects from preloaded convenience libraries
25698 + if test -n "$dlprefiles"; then
25699 + gentop="$output_objdir/${outputname}x"
25700 + generated="$generated $gentop"
25702 + func_extract_archives $gentop $dlprefiles
25703 + libobjs="$libobjs $func_extract_archives_result"
25704 + test "X$libobjs" = "X " && libobjs=
25707 + save_ifs="$IFS"; IFS='~'
25708 + for cmd in $cmds; do
25710 + eval cmd=\"$cmd\"
25712 + func_quote_for_expand "$cmd"
25713 + eval "func_echo $func_quote_for_expand_result"
25715 + $opt_dry_run || eval "$cmd" || {
25718 + # Restore the uninstalled library and exit
25719 + if test "$mode" = relink; then
25720 + ( cd "$output_objdir" && \
25721 + $RM "${realname}T" && \
25722 + $MV "${realname}U" "$realname" )
25730 + # Restore the uninstalled library and exit
25731 + if test "$mode" = relink; then
25732 + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
25734 + if test -n "$convenience"; then
25735 + if test -z "$whole_archive_flag_spec"; then
25736 + func_show_eval '${RM}r "$gentop"'
25740 + exit $EXIT_SUCCESS
25743 + # Create links to the real library.
25744 + for linkname in $linknames; do
25745 + if test "$realname" != "$linkname"; then
25746 + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
25750 + # If -module or -export-dynamic was specified, set the dlname.
25751 + if test "$module" = yes || test "$export_dynamic" = yes; then
25752 + # On all known operating systems, these are identical.
25759 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
25760 + func_warning "\`-dlopen' is ignored for objects"
25763 + case " $deplibs" in
25765 + func_warning "\`-l' and \`-L' are ignored for objects" ;;
25768 + test -n "$rpath" && \
25769 + func_warning "\`-rpath' is ignored for objects"
25771 + test -n "$xrpath" && \
25772 + func_warning "\`-R' is ignored for objects"
25774 + test -n "$vinfo" && \
25775 + func_warning "\`-version-info' is ignored for objects"
25777 + test -n "$release" && \
25778 + func_warning "\`-release' is ignored for objects"
25782 + test -n "$objs$old_deplibs" && \
25783 + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
25786 + func_lo2o "$libobj"
25787 + obj=$func_lo2o_result
25795 + # Delete the old objects.
25796 + $opt_dry_run || $RM $obj $libobj
25798 + # Objects from convenience libraries. This assumes
25799 + # single-version convenience libraries. Whenever we create
25800 + # different ones for PIC/non-PIC, this we'll have to duplicate
25801 + # the extraction.
25802 + reload_conv_objs=
25804 + # reload_cmds runs $LD directly, so let us get rid of
25805 + # -Wl from whole_archive_flag_spec and hope we can get by with
25806 + # turning comma into space..
25809 + if test -n "$convenience"; then
25810 + if test -n "$whole_archive_flag_spec"; then
25811 + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
25812 + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
25814 + gentop="$output_objdir/${obj}x"
25815 + generated="$generated $gentop"
25817 + func_extract_archives $gentop $convenience
25818 + reload_conv_objs="$reload_objs $func_extract_archives_result"
25822 + # Create the old-style object.
25823 + reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
25826 + func_execute_cmds "$reload_cmds" 'exit $?'
25828 + # Exit if we aren't doing a library object file.
25829 + if test -z "$libobj"; then
25830 + if test -n "$gentop"; then
25831 + func_show_eval '${RM}r "$gentop"'
25834 + exit $EXIT_SUCCESS
25837 + if test "$build_libtool_libs" != yes; then
25838 + if test -n "$gentop"; then
25839 + func_show_eval '${RM}r "$gentop"'
25842 + # Create an invalid libtool object if no PIC, so that we don't
25843 + # accidentally link it into a program.
25844 + # $show "echo timestamp > $libobj"
25845 + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
25846 + exit $EXIT_SUCCESS
25849 + if test -n "$pic_flag" || test "$pic_mode" != default; then
25850 + # Only do commands if we really have different PIC objects.
25851 + reload_objs="$libobjs $reload_conv_objs"
25853 + func_execute_cmds "$reload_cmds" 'exit $?'
25856 + if test -n "$gentop"; then
25857 + func_show_eval '${RM}r "$gentop"'
25860 + exit $EXIT_SUCCESS
25865 + *cygwin*) func_stripname '' '.exe' "$output"
25866 + output=$func_stripname_result.exe;;
25868 + test -n "$vinfo" && \
25869 + func_warning "\`-version-info' is ignored for programs"
25871 + test -n "$release" && \
25872 + func_warning "\`-release' is ignored for programs"
25874 + test "$preload" = yes \
25875 + && test "$dlopen_support" = unknown \
25876 + && test "$dlopen_self" = unknown \
25877 + && test "$dlopen_self_static" = unknown && \
25878 + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
25881 + *-*-rhapsody* | *-*-darwin1.[012])
25882 + # On Rhapsody replace the C library is the System framework
25883 + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
25884 + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
25890 + # Don't allow lazy linking, it breaks C++ global constructors
25891 + # But is supposedly fixed on 10.4 or later (yay!).
25892 + if test "$tagname" = CXX ; then
25893 + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
25895 + compile_command="$compile_command ${wl}-bind_at_load"
25896 + finalize_command="$finalize_command ${wl}-bind_at_load"
25900 + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
25901 + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
25902 + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
25907 + # move library search paths that coincide with paths to not yet
25908 + # installed libraries to the beginning of the library search list
25910 + for path in $notinst_path; do
25911 + case " $new_libs " in
25912 + *" -L$path/$objdir "*) ;;
25914 + case " $compile_deplibs " in
25915 + *" -L$path/$objdir "*)
25916 + new_libs="$new_libs -L$path/$objdir" ;;
25921 + for deplib in $compile_deplibs; do
25924 + case " $new_libs " in
25925 + *" $deplib "*) ;;
25926 + *) new_libs="$new_libs $deplib" ;;
25929 + *) new_libs="$new_libs $deplib" ;;
25932 + compile_deplibs="$new_libs"
25935 + compile_command="$compile_command $compile_deplibs"
25936 + finalize_command="$finalize_command $finalize_deplibs"
25938 + if test -n "$rpath$xrpath"; then
25939 + # If the user specified any rpath flags, then add them.
25940 + for libdir in $rpath $xrpath; do
25941 + # This is the magic to use -rpath.
25942 + case "$finalize_rpath " in
25943 + *" $libdir "*) ;;
25944 + *) finalize_rpath="$finalize_rpath $libdir" ;;
25949 + # Now hardcode the library paths
25951 + hardcode_libdirs=
25952 + for libdir in $compile_rpath $finalize_rpath; do
25953 + if test -n "$hardcode_libdir_flag_spec"; then
25954 + if test -n "$hardcode_libdir_separator"; then
25955 + if test -z "$hardcode_libdirs"; then
25956 + hardcode_libdirs="$libdir"
25958 + # Just accumulate the unique libdirs.
25959 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
25960 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
25963 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
25968 + eval flag=\"$hardcode_libdir_flag_spec\"
25969 + rpath="$rpath $flag"
25971 + elif test -n "$runpath_var"; then
25972 + case "$perm_rpath " in
25973 + *" $libdir "*) ;;
25974 + *) perm_rpath="$perm_rpath $libdir" ;;
25978 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
25979 + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
25980 + case :$dllsearchpath: in
25981 + *":$libdir:"*) ;;
25982 + ::) dllsearchpath=$libdir;;
25983 + *) dllsearchpath="$dllsearchpath:$libdir";;
25985 + case :$dllsearchpath: in
25986 + *":$testbindir:"*) ;;
25987 + ::) dllsearchpath=$testbindir;;
25988 + *) dllsearchpath="$dllsearchpath:$testbindir";;
25993 + # Substitute the hardcoded libdirs into the rpath.
25994 + if test -n "$hardcode_libdir_separator" &&
25995 + test -n "$hardcode_libdirs"; then
25996 + libdir="$hardcode_libdirs"
25997 + eval rpath=\" $hardcode_libdir_flag_spec\"
25999 + compile_rpath="$rpath"
26002 + hardcode_libdirs=
26003 + for libdir in $finalize_rpath; do
26004 + if test -n "$hardcode_libdir_flag_spec"; then
26005 + if test -n "$hardcode_libdir_separator"; then
26006 + if test -z "$hardcode_libdirs"; then
26007 + hardcode_libdirs="$libdir"
26009 + # Just accumulate the unique libdirs.
26010 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
26011 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
26014 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
26019 + eval flag=\"$hardcode_libdir_flag_spec\"
26020 + rpath="$rpath $flag"
26022 + elif test -n "$runpath_var"; then
26023 + case "$finalize_perm_rpath " in
26024 + *" $libdir "*) ;;
26025 + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
26029 + # Substitute the hardcoded libdirs into the rpath.
26030 + if test -n "$hardcode_libdir_separator" &&
26031 + test -n "$hardcode_libdirs"; then
26032 + libdir="$hardcode_libdirs"
26033 + eval rpath=\" $hardcode_libdir_flag_spec\"
26035 + finalize_rpath="$rpath"
26037 + if test -n "$libobjs" && test "$build_old_libs" = yes; then
26038 + # Transform all the library objects into standard objects.
26039 + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
26040 + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
26043 + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
26045 + # template prelinking step
26046 + if test -n "$prelink_cmds"; then
26047 + func_execute_cmds "$prelink_cmds" 'exit $?'
26050 + wrappers_required=yes
26052 + *cygwin* | *mingw* )
26053 + if test "$build_libtool_libs" != yes; then
26054 + wrappers_required=no
26058 + # Disable wrappers for cegcc, we are cross compiling anyway.
26059 + wrappers_required=no
26062 + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
26063 + wrappers_required=no
26067 + if test "$wrappers_required" = no; then
26068 + # Replace the output file specification.
26069 + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
26070 + link_command="$compile_command$compile_rpath"
26072 + # We have no uninstalled library dependencies, so finalize right now.
26074 + func_show_eval "$link_command" 'exit_status=$?'
26076 + # Delete the generated files.
26077 + if test -f "$output_objdir/${outputname}S.${objext}"; then
26078 + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
26081 + exit $exit_status
26084 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
26085 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
26087 + if test -n "$finalize_shlibpath"; then
26088 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
26093 + if test -n "$runpath_var"; then
26094 + if test -n "$perm_rpath"; then
26095 + # We should set the runpath_var.
26097 + for dir in $perm_rpath; do
26098 + rpath="$rpath$dir:"
26100 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
26102 + if test -n "$finalize_perm_rpath"; then
26103 + # We should set the runpath_var.
26105 + for dir in $finalize_perm_rpath; do
26106 + rpath="$rpath$dir:"
26108 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
26112 + if test "$no_install" = yes; then
26113 + # We don't need to create a wrapper script.
26114 + link_command="$compile_var$compile_command$compile_rpath"
26115 + # Replace the output file specification.
26116 + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
26117 + # Delete the old output file.
26118 + $opt_dry_run || $RM $output
26119 + # Link the executable and exit
26120 + func_show_eval "$link_command" 'exit $?'
26121 + exit $EXIT_SUCCESS
26124 + if test "$hardcode_action" = relink; then
26125 + # Fast installation is not supported
26126 + link_command="$compile_var$compile_command$compile_rpath"
26127 + relink_command="$finalize_var$finalize_command$finalize_rpath"
26129 + func_warning "this platform does not like uninstalled shared libraries"
26130 + func_warning "\`$output' will be relinked during installation"
26132 + if test "$fast_install" != no; then
26133 + link_command="$finalize_var$compile_command$finalize_rpath"
26134 + if test "$fast_install" = yes; then
26135 + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
26137 + # fast_install is set to needless
26141 + link_command="$compile_var$compile_command$compile_rpath"
26142 + relink_command="$finalize_var$finalize_command$finalize_rpath"
26146 + # Replace the output file specification.
26147 + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
26149 + # Delete the old output files.
26150 + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
26152 + func_show_eval "$link_command" 'exit $?'
26154 + # Now create the wrapper script.
26155 + func_verbose "creating $output"
26157 + # Quote the relink command for shipping.
26158 + if test -n "$relink_command"; then
26159 + # Preserve any variables that may affect compiler behavior
26160 + for var in $variables_saved_for_relink; do
26161 + if eval test -z \"\${$var+set}\"; then
26162 + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
26163 + elif eval var_value=\$$var; test -z "$var_value"; then
26164 + relink_command="$var=; export $var; $relink_command"
26166 + func_quote_for_eval "$var_value"
26167 + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
26170 + relink_command="(cd `pwd`; $relink_command)"
26171 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
26174 + # Quote $ECHO for shipping.
26175 + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
26176 + case $progpath in
26177 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
26178 + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
26180 + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
26182 + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
26185 + # Only actually do things if not in dry run mode.
26186 + $opt_dry_run || {
26187 + # win32 will think the script is a binary if it has
26188 + # a .exe suffix, so we strip it off here.
26190 + *.exe) func_stripname '' '.exe' "$output"
26191 + output=$func_stripname_result ;;
26193 + # test for cygwin because mv fails w/o .exe extensions
26197 + func_stripname '' '.exe' "$outputname"
26198 + outputname=$func_stripname_result ;;
26202 + *cygwin* | *mingw* )
26203 + func_dirname_and_basename "$output" "" "."
26204 + output_name=$func_basename_result
26205 + output_path=$func_dirname_result
26206 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
26207 + cwrapper="$output_path/$output_name.exe"
26208 + $RM $cwrappersource $cwrapper
26209 + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
26211 + func_emit_cwrapperexe_src > $cwrappersource
26213 + # The wrapper executable is built using the $host compiler,
26214 + # because it contains $host paths and files. If cross-
26215 + # compiling, it, like the target executable, must be
26216 + # executed on the $host or under an emulation environment.
26217 + $opt_dry_run || {
26218 + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
26222 + # Now, create the wrapper script for func_source use:
26223 + func_ltwrapper_scriptname $cwrapper
26224 + $RM $func_ltwrapper_scriptname_result
26225 + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
26226 + $opt_dry_run || {
26227 + # note: this script will not be executed, so do not chmod.
26228 + if test "x$build" = "x$host" ; then
26229 + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
26231 + func_emit_wrapper no > $func_ltwrapper_scriptname_result
26237 + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
26239 + func_emit_wrapper no > $output
26244 + exit $EXIT_SUCCESS
26248 + # See if we need to build an old-fashioned archive.
26249 + for oldlib in $oldlibs; do
26251 + if test "$build_libtool_libs" = convenience; then
26252 + oldobjs="$libobjs_save $symfileobj"
26253 + addlibs="$convenience"
26254 + build_libtool_libs=no
26256 + if test "$build_libtool_libs" = module; then
26257 + oldobjs="$libobjs_save"
26258 + build_libtool_libs=no
26260 + oldobjs="$old_deplibs $non_pic_objects"
26261 + if test "$preload" = yes && test -f "$symfileobj"; then
26262 + oldobjs="$oldobjs $symfileobj"
26265 + addlibs="$old_convenience"
26268 + if test -n "$addlibs"; then
26269 + gentop="$output_objdir/${outputname}x"
26270 + generated="$generated $gentop"
26272 + func_extract_archives $gentop $addlibs
26273 + oldobjs="$oldobjs $func_extract_archives_result"
26276 + # Do each command in the archive commands.
26277 + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
26278 + cmds=$old_archive_from_new_cmds
26281 + # Add any objects from preloaded convenience libraries
26282 + if test -n "$dlprefiles"; then
26283 + gentop="$output_objdir/${outputname}x"
26284 + generated="$generated $gentop"
26286 + func_extract_archives $gentop $dlprefiles
26287 + oldobjs="$oldobjs $func_extract_archives_result"
26290 + # POSIX demands no paths to be encoded in archives. We have
26291 + # to avoid creating archives with duplicate basenames if we
26292 + # might have to extract them afterwards, e.g., when creating a
26293 + # static archive out of a convenience library, or when linking
26294 + # the entirety of a libtool archive into another (currently
26295 + # not supported by libtool).
26296 + if (for obj in $oldobjs
26298 + func_basename "$obj"
26299 + $ECHO "$func_basename_result"
26300 + done | sort | sort -uc >/dev/null 2>&1); then
26303 + $ECHO "copying selected object files to avoid basename conflicts..."
26304 + gentop="$output_objdir/${outputname}x"
26305 + generated="$generated $gentop"
26306 + func_mkdir_p "$gentop"
26307 + save_oldobjs=$oldobjs
26310 + for obj in $save_oldobjs
26312 + func_basename "$obj"
26313 + objbase="$func_basename_result"
26314 + case " $oldobjs " in
26315 + " ") oldobjs=$obj ;;
26316 + *[\ /]"$objbase "*)
26318 + # Make sure we don't pick an alternate name that also
26320 + newobj=lt$counter-$objbase
26321 + func_arith $counter + 1
26322 + counter=$func_arith_result
26323 + case " $oldobjs " in
26324 + *[\ /]"$newobj "*) ;;
26325 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
26328 + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
26329 + oldobjs="$oldobjs $gentop/$newobj"
26331 + *) oldobjs="$oldobjs $obj" ;;
26335 + eval cmds=\"$old_archive_cmds\"
26337 + func_len " $cmds"
26338 + len=$func_len_result
26339 + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
26340 + cmds=$old_archive_cmds
26342 + # the command line is too long to link in one step, link in parts
26343 + func_verbose "using piecewise archive linking..."
26344 + save_RANLIB=$RANLIB
26348 + save_oldobjs=$oldobjs
26350 + # Is there a better way of finding the last object in the list?
26351 + for obj in $save_oldobjs
26355 + eval test_cmds=\"$old_archive_cmds\"
26356 + func_len " $test_cmds"
26357 + len0=$func_len_result
26359 + for obj in $save_oldobjs
26362 + func_arith $len + $func_len_result
26363 + len=$func_arith_result
26364 + func_append objlist " $obj"
26365 + if test "$len" -lt "$max_cmd_len"; then
26368 + # the above command should be used before it gets too long
26370 + if test "$obj" = "$last_oldobj" ; then
26371 + RANLIB=$save_RANLIB
26373 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
26374 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
26379 + RANLIB=$save_RANLIB
26381 + if test "X$oldobjs" = "X" ; then
26382 + eval cmds=\"\$concat_cmds\"
26384 + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
26388 + func_execute_cmds "$cmds" 'exit $?'
26391 + test -n "$generated" && \
26392 + func_show_eval "${RM}r$generated"
26394 + # Now create the libtool archive.
26398 + test "$build_old_libs" = yes && old_library="$libname.$libext"
26399 + func_verbose "creating $output"
26401 + # Preserve any variables that may affect compiler behavior
26402 + for var in $variables_saved_for_relink; do
26403 + if eval test -z \"\${$var+set}\"; then
26404 + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
26405 + elif eval var_value=\$$var; test -z "$var_value"; then
26406 + relink_command="$var=; export $var; $relink_command"
26408 + func_quote_for_eval "$var_value"
26409 + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
26412 + # Quote the link command for shipping.
26413 + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
26414 + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
26415 + if test "$hardcode_automatic" = yes ; then
26419 + # Only create the output if not a dry run.
26420 + $opt_dry_run || {
26421 + for installed in no yes; do
26422 + if test "$installed" = yes; then
26423 + if test -z "$install_libdir"; then
26426 + output="$output_objdir/$outputname"i
26427 + # Replace all uninstalled libtool libraries with the installed ones
26428 + newdependency_libs=
26429 + for deplib in $dependency_libs; do
26432 + func_basename "$deplib"
26433 + name="$func_basename_result"
26434 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
26435 + test -z "$libdir" && \
26436 + func_fatal_error "\`$deplib' is not a valid libtool archive"
26437 + newdependency_libs="$newdependency_libs $libdir/$name"
26439 + *) newdependency_libs="$newdependency_libs $deplib" ;;
26442 + dependency_libs="$newdependency_libs"
26445 + for lib in $dlfiles; do
26448 + func_basename "$lib"
26449 + name="$func_basename_result"
26450 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
26451 + test -z "$libdir" && \
26452 + func_fatal_error "\`$lib' is not a valid libtool archive"
26453 + newdlfiles="$newdlfiles $libdir/$name"
26455 + *) newdlfiles="$newdlfiles $lib" ;;
26458 + dlfiles="$newdlfiles"
26460 + for lib in $dlprefiles; do
26463 + # Only pass preopened files to the pseudo-archive (for
26464 + # eventual linking with the app. that links it) if we
26465 + # didn't already link the preopened objects directly into
26467 + func_basename "$lib"
26468 + name="$func_basename_result"
26469 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
26470 + test -z "$libdir" && \
26471 + func_fatal_error "\`$lib' is not a valid libtool archive"
26472 + newdlprefiles="$newdlprefiles $libdir/$name"
26476 + dlprefiles="$newdlprefiles"
26479 + for lib in $dlfiles; do
26481 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
26482 + *) abs=`pwd`"/$lib" ;;
26484 + newdlfiles="$newdlfiles $abs"
26486 + dlfiles="$newdlfiles"
26488 + for lib in $dlprefiles; do
26490 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
26491 + *) abs=`pwd`"/$lib" ;;
26493 + newdlprefiles="$newdlprefiles $abs"
26495 + dlprefiles="$newdlprefiles"
26498 + # place dlname in correct position for cygwin
26500 + case $host,$output,$installed,$module,$dlname in
26501 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
26503 + $ECHO > $output "\
26504 +# $outputname - a libtool library file
26505 +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
26507 +# Please DO NOT delete this file!
26508 +# It is necessary for linking the library.
26510 +# The name that we can dlopen(3).
26513 +# Names of this library.
26514 +library_names='$library_names'
26516 +# The name of the static archive.
26517 +old_library='$old_library'
26519 +# Linker flags that can not go in dependency_libs.
26520 +inherited_linker_flags='$new_inherited_linker_flags'
26522 +# Libraries that this one depends upon.
26523 +dependency_libs='$dependency_libs'
26525 +# Names of additional weak libraries provided by this library
26526 +weak_library_names='$weak_libs'
26528 +# Version information for $libname.
26531 +revision=$revision
26533 +# Is this an already installed library?
26534 +installed=$installed
26536 +# Should we warn about portability when linking against -modules?
26537 +shouldnotlink=$module
26539 +# Files to dlopen/dlpreopen
26541 +dlpreopen='$dlprefiles'
26543 +# Directory that this library needs to be installed in:
26544 +libdir='$install_libdir'"
26545 + if test "$installed" = no && test "$need_relink" = yes; then
26546 + $ECHO >> $output "\
26547 +relink_command=\"$relink_command\""
26552 + # Do a symbolic link so that the libtool archive can be found in
26553 + # LD_LIBRARY_PATH before the program is installed.
26554 + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
26557 + exit $EXIT_SUCCESS
26560 +{ test "$mode" = link || test "$mode" = relink; } &&
26561 + func_mode_link ${1+"$@"}
26564 +# func_mode_uninstall arg...
26565 +func_mode_uninstall ()
26573 + # This variable tells wrapper scripts just to set variables rather
26574 + # than running their programs.
26575 + libtool_install_magic="$magic"
26580 + -f) RM="$RM $arg"; rmforce=yes ;;
26581 + -*) RM="$RM $arg" ;;
26582 + *) files="$files $arg" ;;
26586 + test -z "$RM" && \
26587 + func_fatal_help "you must specify an RM program"
26591 + origobjdir="$objdir"
26592 + for file in $files; do
26593 + func_dirname "$file" "" "."
26594 + dir="$func_dirname_result"
26595 + if test "X$dir" = X.; then
26596 + objdir="$origobjdir"
26598 + objdir="$dir/$origobjdir"
26600 + func_basename "$file"
26601 + name="$func_basename_result"
26602 + test "$mode" = uninstall && objdir="$dir"
26604 + # Remember objdir for removal later, being careful to avoid duplicates
26605 + if test "$mode" = clean; then
26606 + case " $rmdirs " in
26607 + *" $objdir "*) ;;
26608 + *) rmdirs="$rmdirs $objdir" ;;
26612 + # Don't error if the file doesn't exist and rm -f was used.
26613 + if { test -L "$file"; } >/dev/null 2>&1 ||
26614 + { test -h "$file"; } >/dev/null 2>&1 ||
26615 + test -f "$file"; then
26617 + elif test -d "$file"; then
26620 + elif test "$rmforce" = yes; then
26628 + # Possibly a libtool archive, so verify it.
26629 + if func_lalib_p "$file"; then
26630 + func_source $dir/$name
26632 + # Delete the libtool libraries and symlinks.
26633 + for n in $library_names; do
26634 + rmfiles="$rmfiles $objdir/$n"
26636 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
26640 + case " $library_names " in
26641 + # " " in the beginning catches empty $dlname
26642 + *" $dlname "*) ;;
26643 + *) rmfiles="$rmfiles $objdir/$dlname" ;;
26645 + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
26648 + if test -n "$library_names"; then
26649 + # Do each command in the postuninstall commands.
26650 + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
26653 + if test -n "$old_library"; then
26654 + # Do each command in the old_postuninstall commands.
26655 + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
26657 + # FIXME: should reinstall the best remaining shared library.
26664 + # Possibly a libtool object, so verify it.
26665 + if func_lalib_p "$file"; then
26667 + # Read the .lo file
26668 + func_source $dir/$name
26670 + # Add PIC object to the list of files to remove.
26671 + if test -n "$pic_object" &&
26672 + test "$pic_object" != none; then
26673 + rmfiles="$rmfiles $dir/$pic_object"
26676 + # Add non-PIC object to the list of files to remove.
26677 + if test -n "$non_pic_object" &&
26678 + test "$non_pic_object" != none; then
26679 + rmfiles="$rmfiles $dir/$non_pic_object"
26685 + if test "$mode" = clean ; then
26689 + func_stripname '' '.exe' "$file"
26690 + file=$func_stripname_result
26691 + func_stripname '' '.exe' "$name"
26692 + noexename=$func_stripname_result
26693 + # $file with .exe has already been added to rmfiles,
26694 + # add $file without .exe
26695 + rmfiles="$rmfiles $file"
26698 + # Do a test to see if this is a libtool program.
26699 + if func_ltwrapper_p "$file"; then
26700 + if func_ltwrapper_executable_p "$file"; then
26701 + func_ltwrapper_scriptname "$file"
26703 + func_source $func_ltwrapper_scriptname_result
26704 + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
26707 + func_source $dir/$noexename
26710 + # note $name still contains .exe if it was in $file originally
26711 + # as does the version of $file that was added into $rmfiles
26712 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
26713 + if test "$fast_install" = yes && test -n "$relink_command"; then
26714 + rmfiles="$rmfiles $objdir/lt-$name"
26716 + if test "X$noexename" != "X$name" ; then
26717 + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
26723 + func_show_eval "$RM $rmfiles" 'exit_status=1'
26725 + objdir="$origobjdir"
26727 + # Try to remove the ${objdir}s in the directories where we deleted files
26728 + for dir in $rmdirs; do
26729 + if test -d "$dir"; then
26730 + func_show_eval "rmdir $dir >/dev/null 2>&1"
26734 + exit $exit_status
26737 +{ test "$mode" = uninstall || test "$mode" = clean; } &&
26738 + func_mode_uninstall ${1+"$@"}
26740 +test -z "$mode" && {
26741 + help="$generic_help"
26742 + func_fatal_help "you must specify a MODE"
26745 +test -z "$exec_cmd" && \
26746 + func_fatal_help "invalid operation mode \`$mode'"
26748 +if test -n "$exec_cmd"; then
26749 + eval exec "$exec_cmd"
26750 + exit $EXIT_FAILURE
26756 +# The TAGs below are defined such that we never get into a situation
26757 +# in which we disable both kinds of libraries. Given conflicting
26758 +# choices, we go for a static library, that is the most portable,
26759 +# since we can't tell whether shared libraries were disabled because
26760 +# the user asked for that or because the platform doesn't support
26761 +# them. This is particularly important on AIX, because we don't
26762 +# support having both static and shared libraries enabled at the same
26763 +# time on that platform, so we default to a shared-only configuration.
26764 +# If a disable-shared tag is given, we'll fallback to a static-only
26765 +# configuration. But we'll never go from static-only to shared-only.
26767 +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
26768 +build_libtool_libs=no
26769 +build_old_libs=yes
26770 +# ### END LIBTOOL TAG CONFIG: disable-shared
26772 +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
26773 +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
26774 +# ### END LIBTOOL TAG CONFIG: disable-static
26776 +# Local Variables:
26777 +# mode:shell-script
26778 +# sh-indentation:2
26782 Index: libffi/mdate-sh
26783 ===================================================================
26785 +++ libffi/mdate-sh
26788 +# Get modification time of a file or directory and pretty-print it.
26790 +scriptversion=2005-06-29.22
26792 +# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005 Free Software
26793 +# Foundation, Inc.
26794 +# written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995
26796 +# This program is free software; you can redistribute it and/or modify
26797 +# it under the terms of the GNU General Public License as published by
26798 +# the Free Software Foundation; either version 2, or (at your option)
26799 +# any later version.
26801 +# This program is distributed in the hope that it will be useful,
26802 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
26803 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26804 +# GNU General Public License for more details.
26806 +# You should have received a copy of the GNU General Public License
26807 +# along with this program; if not, write to the Free Software Foundation,
26808 +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26810 +# As a special exception to the GNU General Public License, if you
26811 +# distribute this file as part of a program that contains a
26812 +# configuration script generated by Autoconf, you may include it under
26813 +# the same distribution terms that you use for the rest of that program.
26815 +# This file is maintained in Automake, please report
26816 +# bugs to <bug-automake@gnu.org> or send patches to
26817 +# <automake-patches@gnu.org>.
26821 + echo "$0: No file. Try \`$0 --help' for more information." 1>&2
26826 +Usage: mdate-sh [--help] [--version] FILE
26828 +Pretty-print the modification time of FILE.
26830 +Report bugs to <bug-automake@gnu.org>.
26835 + echo "mdate-sh $scriptversion"
26840 +# Prevent date giving response in another language.
26848 +# GNU ls changes its time format in response to the TIME_STYLE
26849 +# variable. Since we cannot assume `unset' works, revert this
26850 +# variable to its documented default.
26851 +if test "${TIME_STYLE+set}" = set; then
26852 + TIME_STYLE=posix-long-iso
26853 + export TIME_STYLE
26858 +# Find out how to get the extended ls output of a file or directory.
26859 +if ls -L /dev/null 1>/dev/null 2>&1; then
26860 + ls_command='ls -L -l -d'
26862 + ls_command='ls -l -d'
26865 +# A `ls -l' line looks as follows on OS/2.
26866 +# drwxrwx--- 0 Aug 11 2001 foo
26867 +# This differs from Unix, which adds ownership information.
26868 +# drwxrwx--- 2 root root 4096 Aug 11 2001 foo
26870 +# To find the date, we split the line on spaces and iterate on words
26871 +# until we find a month. This cannot work with files whose owner is a
26872 +# user named `Jan', or `Feb', etc. However, it's unlikely that `/'
26873 +# will be owned by a user whose name is a month. So we first look at
26874 +# the extended ls output of the root directory to decide how many
26875 +# words should be skipped to get the date.
26877 +# On HPUX /bin/sh, "set" interprets "-rw-r--r--" as options, so the "x" below.
26880 +# Find which argument is the month.
26886 + # Add another shift to the command.
26887 + command="$command shift;"
26889 + Jan) month=January; nummonth=1;;
26890 + Feb) month=February; nummonth=2;;
26891 + Mar) month=March; nummonth=3;;
26892 + Apr) month=April; nummonth=4;;
26893 + May) month=May; nummonth=5;;
26894 + Jun) month=June; nummonth=6;;
26895 + Jul) month=July; nummonth=7;;
26896 + Aug) month=August; nummonth=8;;
26897 + Sep) month=September; nummonth=9;;
26898 + Oct) month=October; nummonth=10;;
26899 + Nov) month=November; nummonth=11;;
26900 + Dec) month=December; nummonth=12;;
26904 +# Get the extended ls output of the file or directory.
26905 +set dummy x`eval "$ls_command \"\$save_arg1\""`
26907 +# Remove all preceding arguments
26910 +# Because of the dummy argument above, month is in $2.
26912 +# On a POSIX system, we should have
26918 +# $4 = year or time
26921 +# On Darwin 7.7.0 and 7.6.0, we have
26926 +# $3 = year or time
26931 + Jan) month=January; nummonth=1;;
26932 + Feb) month=February; nummonth=2;;
26933 + Mar) month=March; nummonth=3;;
26934 + Apr) month=April; nummonth=4;;
26935 + May) month=May; nummonth=5;;
26936 + Jun) month=June; nummonth=6;;
26937 + Jul) month=July; nummonth=7;;
26938 + Aug) month=August; nummonth=8;;
26939 + Sep) month=September; nummonth=9;;
26940 + Oct) month=October; nummonth=10;;
26941 + Nov) month=November; nummonth=11;;
26942 + Dec) month=December; nummonth=12;;
26947 + *) day=$3; shift;;
26950 +# Here we have to deal with the problem that the ls output gives either
26951 +# the time of day or the year.
26953 + *:*) set `date`; eval year=\$$#
26955 + Jan) nummonthtod=1;;
26956 + Feb) nummonthtod=2;;
26957 + Mar) nummonthtod=3;;
26958 + Apr) nummonthtod=4;;
26959 + May) nummonthtod=5;;
26960 + Jun) nummonthtod=6;;
26961 + Jul) nummonthtod=7;;
26962 + Aug) nummonthtod=8;;
26963 + Sep) nummonthtod=9;;
26964 + Oct) nummonthtod=10;;
26965 + Nov) nummonthtod=11;;
26966 + Dec) nummonthtod=12;;
26968 + # For the first six month of the year the time notation can also
26969 + # be used for files modified in the last year.
26970 + if (expr $nummonth \> $nummonthtod) > /dev/null;
26972 + year=`expr $year - 1`
26978 +echo $day $month $year
26980 +# Local Variables:
26981 +# mode: shell-script
26982 +# sh-indentation: 2
26983 +# eval: (add-hook 'write-file-hooks 'time-stamp)
26984 +# time-stamp-start: "scriptversion="
26985 +# time-stamp-format: "%:y-%02m-%02d.%02H"
26986 +# time-stamp-end: "$"
26988 Index: libffi/missing
26989 ===================================================================
26994 +# Common stub for a few missing GNU programs while installing.
26996 +scriptversion=2005-06-08.21
26998 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
26999 +# Free Software Foundation, Inc.
27000 +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
27002 +# This program is free software; you can redistribute it and/or modify
27003 +# it under the terms of the GNU General Public License as published by
27004 +# the Free Software Foundation; either version 2, or (at your option)
27005 +# any later version.
27007 +# This program is distributed in the hope that it will be useful,
27008 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
27009 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27010 +# GNU General Public License for more details.
27012 +# You should have received a copy of the GNU General Public License
27013 +# along with this program; if not, write to the Free Software
27014 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
27015 +# 02110-1301, USA.
27017 +# As a special exception to the GNU General Public License, if you
27018 +# distribute this file as part of a program that contains a
27019 +# configuration script generated by Autoconf, you may include it under
27020 +# the same distribution terms that you use for the rest of that program.
27022 +if test $# -eq 0; then
27023 + echo 1>&2 "Try \`$0 --help' for more information"
27029 +# In the cases where this matters, `missing' is being run in the
27031 +if test -f configure.ac; then
27032 + configure_ac=configure.ac
27034 + configure_ac=configure.in
27037 +msg="missing on your system"
27041 + # Try to run requested program, and just exit if it succeeds.
27045 + # Exit code 63 means version mismatch. This often happens
27046 + # when the user try to use an ancient version of a tool on
27047 + # a file that requires a minimum version. In this case we
27048 + # we should proceed has if the program had been absent, or
27049 + # if --run hadn't been passed.
27050 + if test $? = 63; then
27052 + msg="probably too old"
27056 + -h|--h|--he|--hel|--help)
27058 +$0 [OPTION]... PROGRAM [ARGUMENT]...
27060 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
27061 +error status if there is no known handling for PROGRAM.
27064 + -h, --help display this help and exit
27065 + -v, --version output version information and exit
27066 + --run try to run the given command, and emulate it if it fails
27068 +Supported PROGRAM values:
27069 + aclocal touch file \`aclocal.m4'
27070 + autoconf touch file \`configure'
27071 + autoheader touch file \`config.h.in'
27072 + automake touch all \`Makefile.in' files
27073 + bison create \`y.tab.[ch]', if possible, from existing .[ch]
27074 + flex create \`lex.yy.c', if possible, from existing .c
27075 + help2man touch the output file
27076 + lex create \`lex.yy.c', if possible, from existing .c
27077 + makeinfo touch the output file
27078 + tar try tar, gnutar, gtar, then tar without non-portable flags
27079 + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
27081 +Send bug reports to <bug-automake@gnu.org>."
27085 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
27086 + echo "missing $scriptversion (GNU Automake)"
27091 + echo 1>&2 "$0: Unknown \`$1' option"
27092 + echo 1>&2 "Try \`$0 --help' for more information"
27098 +# Now exit if we have it, but it failed. Also exit now if we
27099 +# don't have it and --version was passed (most likely to detect
27103 + # Not GNU programs, they don't have --version.
27107 + if test -n "$run"; then
27108 + echo 1>&2 "ERROR: \`tar' requires --run"
27110 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
27116 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
27117 + # We have it, but it failed.
27119 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
27120 + # Could not run --version or --help. This is probably someone
27121 + # running `$TOOL --version' or `$TOOL --help' to check whether
27122 + # $TOOL exists and not knowing $TOOL uses missing.
27128 +# If it does not exist, or fails to run (possibly an outdated version),
27129 +# try to emulate it.
27133 +WARNING: \`$1' is $msg. You should only need it if
27134 + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
27135 + to install the \`Automake' and \`Perl' packages. Grab them from
27136 + any GNU archive site."
27142 +WARNING: \`$1' is $msg. You should only need it if
27143 + you modified \`${configure_ac}'. You might want to install the
27144 + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
27151 +WARNING: \`$1' is $msg. You should only need it if
27152 + you modified \`acconfig.h' or \`${configure_ac}'. You might want
27153 + to install the \`Autoconf' and \`GNU m4' packages. Grab them
27154 + from any GNU archive site."
27155 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
27156 + test -z "$files" && files="config.h"
27158 + for f in $files; do
27160 + *:*) touch_files="$touch_files "`echo "$f" |
27161 + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
27162 + *) touch_files="$touch_files $f.in";;
27165 + touch $touch_files
27170 +WARNING: \`$1' is $msg. You should only need it if
27171 + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
27172 + You might want to install the \`Automake' and \`Perl' packages.
27173 + Grab them from any GNU archive site."
27174 + find . -type f -name Makefile.am -print |
27175 + sed 's/\.am$/.in/' |
27176 + while read f; do touch "$f"; done
27181 +WARNING: \`$1' is needed, but is $msg.
27182 + You might have modified some files without having the
27183 + proper tools for further handling them.
27184 + You can get \`$1' as part of \`Autoconf' from any GNU
27187 + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
27188 + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
27189 + if test -f "$file"; then
27192 + test -z "$file" || exec >$file
27193 + echo "#! /bin/sh"
27194 + echo "# Created by GNU Automake missing as a replacement of"
27204 +WARNING: \`$1' $msg. You should only need it if
27205 + you modified a \`.y' file. You may need the \`Bison' package
27206 + in order for those modifications to take effect. You can get
27207 + \`Bison' from any GNU archive site."
27208 + rm -f y.tab.c y.tab.h
27209 + if [ $# -ne 1 ]; then
27210 + eval LASTARG="\${$#}"
27211 + case "$LASTARG" in
27213 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
27214 + if [ -f "$SRCFILE" ]; then
27215 + cp "$SRCFILE" y.tab.c
27217 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
27218 + if [ -f "$SRCFILE" ]; then
27219 + cp "$SRCFILE" y.tab.h
27224 + if [ ! -f y.tab.h ]; then
27227 + if [ ! -f y.tab.c ]; then
27228 + echo 'main() { return 0; }' >y.tab.c
27234 +WARNING: \`$1' is $msg. You should only need it if
27235 + you modified a \`.l' file. You may need the \`Flex' package
27236 + in order for those modifications to take effect. You can get
27237 + \`Flex' from any GNU archive site."
27239 + if [ $# -ne 1 ]; then
27240 + eval LASTARG="\${$#}"
27241 + case "$LASTARG" in
27243 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
27244 + if [ -f "$SRCFILE" ]; then
27245 + cp "$SRCFILE" lex.yy.c
27250 + if [ ! -f lex.yy.c ]; then
27251 + echo 'main() { return 0; }' >lex.yy.c
27257 +WARNING: \`$1' is $msg. You should only need it if
27258 + you modified a dependency of a manual page. You may need the
27259 + \`Help2man' package in order for those modifications to take
27260 + effect. You can get \`Help2man' from any GNU archive site."
27262 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
27263 + if test -z "$file"; then
27264 + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
27266 + if [ -f "$file" ]; then
27269 + test -z "$file" || exec >$file
27270 + echo ".ab help2man is required to generate this page"
27277 +WARNING: \`$1' is $msg. You should only need it if
27278 + you modified a \`.texi' or \`.texinfo' file, or any other file
27279 + indirectly affecting the aspect of the manual. The spurious
27280 + call might also be the consequence of using a buggy \`make' (AIX,
27281 + DU, IRIX). You might want to install the \`Texinfo' package or
27282 + the \`GNU make' package. Grab either from any GNU archive site."
27283 + # The file to touch is that specified with -o ...
27284 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
27285 + if test -z "$file"; then
27286 + # ... or it is the one specified with @setfilename ...
27287 + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
27288 + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
27289 + # ... or it is derived from the source name (dir/f.texi becomes f.info)
27290 + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
27292 + # If the file does not exist, the user really needs makeinfo;
27293 + # let's fail without touching anything.
27294 + test -f $file || exit 1
27301 + # We have already tried tar in the generic part.
27302 + # Look for gnutar/gtar before invocation to avoid ugly error
27304 + if (gnutar --version > /dev/null 2>&1); then
27305 + gnutar "$@" && exit 0
27307 + if (gtar --version > /dev/null 2>&1); then
27308 + gtar "$@" && exit 0
27312 + case "$firstarg" in
27314 + firstarg=`echo "$firstarg" | sed s/o//`
27315 + tar "$firstarg" "$@" && exit 0
27318 + case "$firstarg" in
27320 + firstarg=`echo "$firstarg" | sed s/h//`
27321 + tar "$firstarg" "$@" && exit 0
27327 +WARNING: I can't seem to be able to run \`tar' with the given arguments.
27328 + You may want to install GNU tar or Free paxutils, or check the
27329 + command line arguments."
27335 +WARNING: \`$1' is needed, and is $msg.
27336 + You might have modified some files without having the
27337 + proper tools for further handling them. Check the \`README' file,
27338 + it often tells you about the needed prerequisites for installing
27339 + this package. You may also peek at any GNU archive site, in case
27340 + some other package would contain this missing \`$1' program."
27347 +# Local variables:
27348 +# eval: (add-hook 'write-file-hooks 'time-stamp)
27349 +# time-stamp-start: "scriptversion="
27350 +# time-stamp-format: "%:y-%02m-%02d.%02H"
27351 +# time-stamp-end: "$"
27353 Index: libffi/texinfo.tex
27354 ===================================================================
27356 +++ libffi/texinfo.tex
27358 +% texinfo.tex -- TeX macros to handle Texinfo files.
27360 +% Load plain if necessary, i.e., if running under initex.
27361 +\expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi
27363 +\def\texinfoversion{2005-07-05.19}
27365 +% Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995,
27366 +% 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software
27367 +% Foundation, Inc.
27369 +% This texinfo.tex file is free software; you can redistribute it and/or
27370 +% modify it under the terms of the GNU General Public License as
27371 +% published by the Free Software Foundation; either version 2, or (at
27372 +% your option) any later version.
27374 +% This texinfo.tex file is distributed in the hope that it will be
27375 +% useful, but WITHOUT ANY WARRANTY; without even the implied warranty
27376 +% of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27377 +% General Public License for more details.
27379 +% You should have received a copy of the GNU General Public License
27380 +% along with this texinfo.tex file; see the file COPYING. If not, write
27381 +% to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
27382 +% Boston, MA 02110-1301, USA.
27384 +% As a special exception, when this file is read by TeX when processing
27385 +% a Texinfo source document, you may use the result without
27386 +% restriction. (This has been our intent since Texinfo was invented.)
27388 +% Please try the latest version of texinfo.tex before submitting bug
27389 +% reports; you can get the latest version from:
27390 +% http://www.gnu.org/software/texinfo/ (the Texinfo home page), or
27391 +% ftp://tug.org/tex/texinfo.tex
27392 +% (and all CTAN mirrors, see http://www.ctan.org).
27393 +% The texinfo.tex in any given distribution could well be out
27394 +% of date, so if that's what you're using, please check.
27396 +% Send bug reports to bug-texinfo@gnu.org. Please include including a
27397 +% complete document in each bug report with which we can reproduce the
27398 +% problem. Patches are, of course, greatly appreciated.
27400 +% To process a Texinfo manual with TeX, it's most reliable to use the
27401 +% texi2dvi shell script that comes with the distribution. For a simple
27402 +% manual foo.texi, however, you can get away with this:
27407 +% dvips foo.dvi -o # or whatever; this makes foo.ps.
27408 +% The extra TeX runs get the cross-reference information correct.
27409 +% Sometimes one run after texindex suffices, and sometimes you need more
27410 +% than two; texi2dvi does it as many times as necessary.
27412 +% It is possible to adapt texinfo.tex for other languages, to some
27413 +% extent. You can get the existing language-specific files from the
27414 +% full Texinfo distribution.
27416 +% The GNU Texinfo home page is http://www.gnu.org/software/texinfo.
27419 +\message{Loading texinfo [version \texinfoversion]:}
27421 +% If in a .fmt file, print the version number
27422 +% and turn on active characters that we couldn't do earlier because
27423 +% they might have appeared in the input file name.
27424 +\everyjob{\message{[Texinfo version \texinfoversion]}%
27425 + \catcode`+=\active \catcode`\_=\active}
27430 +% We never want plain's \outer definition of \+ in Texinfo.
27431 +% For @tex, we can use \tabalign.
27434 +% Save some plain tex macros whose names we will redefine.
27436 +\let\ptexbullet=\bullet
27440 +\let\ptexdots=\dots
27442 +\let\ptexequiv=\equiv
27443 +\let\ptexexclam=\!
27444 +\let\ptexfootnote=\footnote
27448 +\let\ptexindent=\indent
27449 +\let\ptexinsert=\insert
27450 +\let\ptexlbrace=\{
27452 +\let\ptexnewwrite\newwrite
27453 +\let\ptexnoindent=\noindent
27455 +\let\ptexrbrace=\}
27460 +% If this character appears in an error message or help string, it
27461 +% starts a new line in the output.
27462 +\newlinechar = `^^J
27464 +% Use TeX 3.0's \inputlineno to get the line number, for better error
27465 +% messages, but if we're using an old version of TeX, don't do anything.
27467 +\ifx\inputlineno\thisisundefined
27468 + \let\linenumber = \empty % Pre-3.0.
27470 + \def\linenumber{l.\the\inputlineno:\space}
27473 +% Set up fixed words for English if not already set.
27474 +\ifx\putwordAppendix\undefined \gdef\putwordAppendix{Appendix}\fi
27475 +\ifx\putwordChapter\undefined \gdef\putwordChapter{Chapter}\fi
27476 +\ifx\putwordfile\undefined \gdef\putwordfile{file}\fi
27477 +\ifx\putwordin\undefined \gdef\putwordin{in}\fi
27478 +\ifx\putwordIndexIsEmpty\undefined \gdef\putwordIndexIsEmpty{(Index is empty)}\fi
27479 +\ifx\putwordIndexNonexistent\undefined \gdef\putwordIndexNonexistent{(Index is nonexistent)}\fi
27480 +\ifx\putwordInfo\undefined \gdef\putwordInfo{Info}\fi
27481 +\ifx\putwordInstanceVariableof\undefined \gdef\putwordInstanceVariableof{Instance Variable of}\fi
27482 +\ifx\putwordMethodon\undefined \gdef\putwordMethodon{Method on}\fi
27483 +\ifx\putwordNoTitle\undefined \gdef\putwordNoTitle{No Title}\fi
27484 +\ifx\putwordof\undefined \gdef\putwordof{of}\fi
27485 +\ifx\putwordon\undefined \gdef\putwordon{on}\fi
27486 +\ifx\putwordpage\undefined \gdef\putwordpage{page}\fi
27487 +\ifx\putwordsection\undefined \gdef\putwordsection{section}\fi
27488 +\ifx\putwordSection\undefined \gdef\putwordSection{Section}\fi
27489 +\ifx\putwordsee\undefined \gdef\putwordsee{see}\fi
27490 +\ifx\putwordSee\undefined \gdef\putwordSee{See}\fi
27491 +\ifx\putwordShortTOC\undefined \gdef\putwordShortTOC{Short Contents}\fi
27492 +\ifx\putwordTOC\undefined \gdef\putwordTOC{Table of Contents}\fi
27494 +\ifx\putwordMJan\undefined \gdef\putwordMJan{January}\fi
27495 +\ifx\putwordMFeb\undefined \gdef\putwordMFeb{February}\fi
27496 +\ifx\putwordMMar\undefined \gdef\putwordMMar{March}\fi
27497 +\ifx\putwordMApr\undefined \gdef\putwordMApr{April}\fi
27498 +\ifx\putwordMMay\undefined \gdef\putwordMMay{May}\fi
27499 +\ifx\putwordMJun\undefined \gdef\putwordMJun{June}\fi
27500 +\ifx\putwordMJul\undefined \gdef\putwordMJul{July}\fi
27501 +\ifx\putwordMAug\undefined \gdef\putwordMAug{August}\fi
27502 +\ifx\putwordMSep\undefined \gdef\putwordMSep{September}\fi
27503 +\ifx\putwordMOct\undefined \gdef\putwordMOct{October}\fi
27504 +\ifx\putwordMNov\undefined \gdef\putwordMNov{November}\fi
27505 +\ifx\putwordMDec\undefined \gdef\putwordMDec{December}\fi
27507 +\ifx\putwordDefmac\undefined \gdef\putwordDefmac{Macro}\fi
27508 +\ifx\putwordDefspec\undefined \gdef\putwordDefspec{Special Form}\fi
27509 +\ifx\putwordDefvar\undefined \gdef\putwordDefvar{Variable}\fi
27510 +\ifx\putwordDefopt\undefined \gdef\putwordDefopt{User Option}\fi
27511 +\ifx\putwordDeffunc\undefined \gdef\putwordDeffunc{Function}\fi
27513 +% In some macros, we cannot use the `\? notation---the left quote is
27514 +% in some cases the escape char.
27515 +\chardef\backChar = `\\
27516 +\chardef\colonChar = `\:
27517 +\chardef\commaChar = `\,
27518 +\chardef\dotChar = `\.
27519 +\chardef\exclamChar= `\!
27520 +\chardef\plusChar = `\+
27521 +\chardef\questChar = `\?
27522 +\chardef\semiChar = `\;
27523 +\chardef\underChar = `\_
27525 +\chardef\spaceChar = `\ %
27526 +\chardef\spacecat = 10
27527 +\def\spaceisspace{\catcode\spaceChar=\spacecat}
27529 +{% for help with debugging.
27530 + % example usage: \expandafter\show\activebackslash
27531 + \catcode`\! = 0 \catcode`\\ = \active
27532 + !global!def!activebackslash{\}
27539 +% The following is used inside several \edef's.
27540 +\def\makecsname#1{\expandafter\noexpand\csname#1\endcsname}
27542 +% Hyphenation fixes.
27544 + Flor-i-da Ghost-script Ghost-view Mac-OS Post-Script
27545 + ap-pen-dix bit-map bit-maps
27546 + data-base data-bases eshell fall-ing half-way long-est man-u-script
27547 + man-u-scripts mini-buf-fer mini-buf-fers over-view par-a-digm
27548 + par-a-digms rath-er rec-tan-gu-lar ro-bot-ics se-vere-ly set-up spa-ces
27549 + spell-ing spell-ings
27550 + stand-alone strong-est time-stamp time-stamps which-ever white-space
27551 + wide-spread wrap-around
27554 +% Margin to add to right of even pages, to left of odd pages.
27555 +\newdimen\bindingoffset
27556 +\newdimen\normaloffset
27557 +\newdimen\pagewidth \newdimen\pageheight
27559 +% For a final copy, take out the rectangles
27560 +% that mark overfull boxes (in case you have decided
27561 +% that the text looks ok even though it passes the margin).
27563 +\def\finalout{\overfullrule=0pt}
27565 +% @| inserts a changebar to the left of the current line. It should
27566 +% surround any changed text. This approach does *not* work if the
27567 +% change spans more than two lines of output. To handle that, we would
27568 +% have adopt a much more difficult approach (putting marks into the main
27569 +% vertical list for the beginning and end of each change).
27572 + % \vadjust can only be used in horizontal mode.
27575 + % Append this vertical mode material after the current line in the output.
27577 + % We want to insert a rule with the height and depth of the current
27578 + % leading; that is exactly what \strutbox is supposed to record.
27579 + \vskip-\baselineskip
27581 + % \vadjust-items are inserted at the left edge of the type. So
27582 + % the \llap here moves out into the left-hand margin.
27585 + % For a thicker or thinner bar, change the `1pt'.
27586 + \vrule height\baselineskip width1pt
27588 + % This is the space between the bar and the text.
27594 +% Sometimes it is convenient to have everything in the transcript file
27595 +% and nothing on the terminal. We don't just call \tracingall here,
27596 +% since that produces some useless output on the terminal. We also make
27597 +% some effort to order the tracing commands to reduce output in the log
27598 +% file; cf. trace.sty in LaTeX.
27600 +\def\gloggingall{\begingroup \globaldefs = 1 \loggingall \endgroup}%
27604 + \tracinglostchars2 % 2 gives us more in etex
27605 + \tracingparagraphs1
27608 + \tracingrestores1
27609 + \showboxbreadth\maxdimen \showboxdepth\maxdimen
27610 + \ifx\eTeXversion\undefined\else % etex gives us more logging
27611 + \tracingscantokens1
27617 + \tracingcommands3 % 3 gives us more in etex
27618 + \errorcontextlines16
27621 +% add check for \lastpenalty to plain's definitions. If the last thing
27622 +% we did was a \nobreak, we don't want to insert more space.
27624 +\def\smallbreak{\ifnum\lastpenalty<10000\par\ifdim\lastskip<\smallskipamount
27625 + \removelastskip\penalty-50\smallskip\fi\fi}
27626 +\def\medbreak{\ifnum\lastpenalty<10000\par\ifdim\lastskip<\medskipamount
27627 + \removelastskip\penalty-100\medskip\fi\fi}
27628 +\def\bigbreak{\ifnum\lastpenalty<10000\par\ifdim\lastskip<\bigskipamount
27629 + \removelastskip\penalty-200\bigskip\fi\fi}
27631 +% For @cropmarks command.
27632 +% Do @cropmarks to get crop marks.
27634 +\newif\ifcropmarks
27635 +\let\cropmarks = \cropmarkstrue
27637 +% Dimensions to add cropmarks at corners.
27638 +% Added by P. A. MacKay, 12 Nov. 1986
27640 +\newdimen\outerhsize \newdimen\outervsize % set by the paper size routines
27641 +\newdimen\cornerlong \cornerlong=1pc
27642 +\newdimen\cornerthick \cornerthick=.3pt
27643 +\newdimen\topandbottommargin \topandbottommargin=.75in
27645 +% Main output routine.
27646 +\chardef\PAGE = 255
27647 +\output = {\onepageout{\pagecontents\PAGE}}
27649 +\newbox\headlinebox
27650 +\newbox\footlinebox
27652 +% \onepageout takes a vbox as an argument. Note that \pagecontents
27653 +% does insertions, but you have to call it yourself.
27654 +\def\onepageout#1{%
27655 + \ifcropmarks \hoffset=0pt \else \hoffset=\normaloffset \fi
27657 + \ifodd\pageno \advance\hoffset by \bindingoffset
27658 + \else \advance\hoffset by -\bindingoffset\fi
27660 + % Do this outside of the \shipout so @code etc. will be expanded in
27661 + % the headline as they should be, not taken literally (outputting ''code).
27662 + \setbox\headlinebox = \vbox{\let\hsize=\pagewidth \makeheadline}%
27663 + \setbox\footlinebox = \vbox{\let\hsize=\pagewidth \makefootline}%
27666 + % Have to do this stuff outside the \shipout because we want it to
27667 + % take effect in \write's, yet the group defined by the \vbox ends
27668 + % before the \shipout runs.
27670 + \indexdummies % don't expand commands in the output.
27672 + % Do this early so pdf references go to the beginning of the page.
27673 + \ifpdfmakepagedest \pdfdest name{\the\pageno} xyz\fi
27675 + \ifcropmarks \vbox to \outervsize\bgroup
27676 + \hsize = \outerhsize
27677 + \vskip-\topandbottommargin
27679 + \line{\ewtop\hfil\ewtop}%
27682 + \vbox{\moveleft\cornerthick\nstop}%
27684 + \vbox{\moveright\cornerthick\nstop}%
27687 + \vskip\topandbottommargin
27689 + \hfil % center the page within the outer (page) hsize.
27690 + \ifodd\pageno\hskip\bindingoffset\fi
27694 + \unvbox\headlinebox
27696 + \ifdim\ht\footlinebox > 0pt
27697 + % Only leave this space if the footline is nonempty.
27698 + % (We lessened \vsize for it in \oddfootingxxx.)
27699 + % The \baselineskip=24pt in plain's \makefootline has no effect.
27700 + \vskip 2\baselineskip
27701 + \unvbox\footlinebox
27705 + \egroup % end of \vbox\bgroup
27706 + \hfil\egroup % end of (centering) \line\bgroup
27707 + \vskip\topandbottommargin plus1fill minus1fill
27708 + \boxmaxdepth = \cornerthick
27711 + \vbox{\moveleft\cornerthick\nsbot}%
27713 + \vbox{\moveright\cornerthick\nsbot}%
27716 + \line{\ewbot\hfil\ewbot}%
27718 + \egroup % \vbox from first cropmarks clause
27720 + }% end of \shipout\vbox
27721 + }% end of group with \indexdummies
27723 + \ifnum\outputpenalty>-20000 \else\dosupereject\fi
27726 +\newinsert\margin \dimen\margin=\maxdimen
27728 +\def\pagebody#1{\vbox to\pageheight{\boxmaxdepth=\maxdepth #1}}
27730 +\gdef\pagecontents#1{\ifvoid\topins\else\unvbox\topins\fi
27731 +% marginal hacks, juha@viisa.uucp (Juha Takala)
27732 +\ifvoid\margin\else % marginal info is present
27733 + \rlap{\kern\hsize\vbox to\z@{\kern1pt\box\margin \vss}}\fi
27734 +\dimen@=\dp#1 \unvbox#1
27735 +\ifvoid\footins\else\vskip\skip\footins\footnoterule \unvbox\footins\fi
27736 +\ifr@ggedbottom \kern-\dimen@ \vfil \fi}
27739 +% Here are the rules for the cropmarks. Note that they are
27740 +% offset so that the space between them is truly \outerhsize or \outervsize
27741 +% (P. A. MacKay, 12 November, 1986)
27743 +\def\ewtop{\vrule height\cornerthick depth0pt width\cornerlong}
27745 + {\hrule height\cornerthick depth\cornerlong width\cornerthick}}
27746 +\def\ewbot{\vrule height0pt depth\cornerthick width\cornerlong}
27748 + {\hrule height\cornerlong depth\cornerthick width\cornerthick}}
27750 +% Parse an argument, then pass it to #1. The argument is the rest of
27751 +% the input line (except we remove a trailing comment). #1 should be a
27752 +% macro which expects an ordinary undelimited TeX argument.
27754 +\def\parsearg{\parseargusing{}}
27755 +\def\parseargusing#1#2{%
27761 + \parseargline\empty% Insert the \empty token, see \finishparsearg below.
27765 + \gdef\parseargline#1^^M{%
27766 + \endgroup % End of the group started in \parsearg.
27767 + \argremovecomment #1\comment\ArgTerm%
27771 +% First remove any @comment, then any @c comment.
27772 +\def\argremovecomment#1\comment#2\ArgTerm{\argremovec #1\c\ArgTerm}
27773 +\def\argremovec#1\c#2\ArgTerm{\argcheckspaces#1\^^M\ArgTerm}
27775 +% Each occurence of `\^^M' or `<space>\^^M' is replaced by a single space.
27777 +% \argremovec might leave us with trailing space, e.g.,
27778 +% @end itemize @c foo
27779 +% This space token undergoes the same procedure and is eventually removed
27780 +% by \finishparsearg.
27782 +\def\argcheckspaces#1\^^M{\argcheckspacesX#1\^^M \^^M}
27783 +\def\argcheckspacesX#1 \^^M{\argcheckspacesY#1\^^M}
27784 +\def\argcheckspacesY#1\^^M#2\^^M#3\ArgTerm{%
27787 + % We cannot use \next here, as it holds the macro to run;
27788 + % thus we reuse \temp.
27789 + \let\temp\finishparsearg
27791 + \let\temp\argcheckspaces
27793 + % Put the space token in:
27794 + \temp#1 #3\ArgTerm
27797 +% If a _delimited_ argument is enclosed in braces, they get stripped; so
27798 +% to get _exactly_ the rest of the line, we had to prevent such situation.
27799 +% We prepended an \empty token at the very beginning and we expand it now,
27800 +% just before passing the control to \next.
27801 +% (Similarily, we have to think about #3 of \argcheckspacesY above: it is
27802 +% either the null string, or it ends with \^^M---thus there is no danger
27803 +% that a pair of braces would be stripped.
27805 +% But first, we have to remove the trailing space token.
27807 +\def\finishparsearg#1 \ArgTerm{\expandafter\next\expandafter{#1}}
27809 +% \parseargdef\foo{...}
27810 +% is roughly equivalent to
27811 +% \def\foo{\parsearg\Xfoo}
27812 +% \def\Xfoo#1{...}
27814 +% Actually, I use \csname\string\foo\endcsname, ie. \\foo, as it is my
27815 +% favourite TeX trick. --kasal, 16nov03
27817 +\def\parseargdef#1{%
27818 + \expandafter \doparseargdef \csname\string#1\endcsname #1%
27820 +\def\doparseargdef#1#2{%
27821 + \def#2{\parsearg#1}%
27825 +% Several utility definitions with active space:
27828 + \gdef\obeyedspace{ }
27830 + % Make each space character in the input produce a normal interword
27831 + % space in the output. Don't allow a line break at this space, as this
27832 + % is used only in environments like @example, where each line of input
27833 + % should produce a line of output anyway.
27835 + \gdef\sepspaces{\obeyspaces\let =\tie}
27837 + % If an index command is used in an @example environment, any spaces
27838 + % therein should become regular spaces in the raw index file, not the
27839 + % expansion of \tie (\leavevmode \penalty \@M \ ).
27840 + \gdef\unsepspaces{\let =\space}
27844 +\def\flushcr{\ifx\par\lisppar \def\next##1{}\else \let\next=\relax \fi \next}
27846 +% Define the framework for environments in texinfo.tex. It's used like this:
27848 +% \envdef\foo{...}
27851 +% It's the responsibility of \envdef to insert \begingroup before the
27852 +% actual body; @end closes the group after calling \Efoo. \envdef also
27853 +% defines \thisenv, so the current environment is known; @end checks
27854 +% whether the environment name matches. The \checkenv macro can also be
27855 +% used to check whether the current environment is the one expected.
27857 +% Non-false conditionals (@iftex, @ifset) don't fit into this, so they
27858 +% are not treated as enviroments; they don't open a group. (The
27859 +% implementation of @end takes care not to call \endgroup in this
27863 +% At runtime, environments start with this:
27864 +\def\startenvironment#1{\begingroup\def\thisenv{#1}}
27866 +\let\thisenv\empty
27868 +% ... but they get defined via ``\envdef\foo{...}'':
27869 +\long\def\envdef#1#2{\def#1{\startenvironment#1#2}}
27870 +\def\envparseargdef#1#2{\parseargdef#1{\startenvironment#1#2}}
27872 +% Check whether we're in the right environment:
27875 + \ifx\thisenv\temp
27881 +% Evironment mismatch, #1 expected:
27883 + \errhelp = \EMsimple
27884 + \errmessage{This command can appear only \inenvironment\temp,
27885 + not \inenvironment\thisenv}%
27887 +\def\inenvironment#1{%
27889 + out of any environment%
27891 + in environment \expandafter\string#1%
27895 +% @end foo executes the definition of \Efoo.
27896 +% But first, it executes a specialized version of \checkenv
27898 +\parseargdef\end{%
27899 + \if 1\csname iscond.#1\endcsname
27901 + % The general wording of \badenverr may not be ideal, but... --kasal, 06nov03
27902 + \expandafter\checkenv\csname#1\endcsname
27903 + \csname E#1\endcsname
27908 +\newhelp\EMsimple{Press RETURN to continue.}
27911 +%% Simple single-character @ commands
27914 +% Kludge this until the fonts are right (grr).
27915 +\def\@{{\tt\char64}}
27917 +% This is turned off because it was never documented
27918 +% and you can use @w{...} around a quote to suppress ligatures.
27919 +%% Define @` and @' to be the same as ` and '
27920 +%% but suppressing ligatures.
27924 +% Used to generate quoted braces.
27925 +\def\mylbrace {{\tt\char123}}
27926 +\def\myrbrace {{\tt\char125}}
27930 + % Definitions to produce \{ and \} commands for indices,
27931 + % and @{ and @} for the aux/toc files.
27932 + \catcode`\{ = \other \catcode`\} = \other
27933 + \catcode`\[ = 1 \catcode`\] = 2
27934 + \catcode`\! = 0 \catcode`\\ = \other
27935 + !gdef!lbracecmd[\{]%
27936 + !gdef!rbracecmd[\}]%
27937 + !gdef!lbraceatcmd[@{]%
27938 + !gdef!rbraceatcmd[@}]%
27941 +% @comma{} to avoid , parsing problems.
27944 +% Accents: @, @dotaccent @ringaccent @ubaraccent @udotaccent
27945 +% Others are defined by plain TeX: @` @' @" @^ @~ @= @u @v @H.
27947 +\let\dotaccent = \.
27948 +\def\ringaccent#1{{\accent23 #1}}
27949 +\let\tieaccent = \t
27950 +\let\ubaraccent = \b
27951 +\let\udotaccent = \d
27953 +% Other special characters: @questiondown @exclamdown @ordf @ordm
27954 +% Plain TeX defines: @AA @AE @O @OE @L (plus lowercase versions) @ss.
27955 +\def\questiondown{?`}
27956 +\def\exclamdown{!`}
27957 +\def\ordf{\leavevmode\raise1ex\hbox{\selectfonts\lllsize \underbar{a}}}
27958 +\def\ordm{\leavevmode\raise1ex\hbox{\selectfonts\lllsize \underbar{o}}}
27960 +% Dotless i and dotless j, used for accents.
27965 + \ifx\temp\imacro \ptexi
27966 + \else\ifx\temp\jmacro \j
27967 + \else \errmessage{@dotless can be used only with i or j}%
27971 +% The \TeX{} logo, as in plain, but resetting the spacing so that a
27972 +% period following counts as ending a sentence. (Idea found in latex.)
27974 +\edef\TeX{\TeX \spacefactor=1000 }
27976 +% @LaTeX{} logo. Not quite the same results as the definition in
27977 +% latex.ltx, since we use a different font for the raised A; it's most
27978 +% convenient for us to use an explicitly smaller font, rather than using
27979 +% the \scriptstyle font (since we don't reset \scriptstyle and
27980 +% \scriptscriptstyle).
27984 + {\setbox0=\hbox{T}%
27985 + \vbox to \ht0{\hbox{\selectfonts\lllsize A}\vss}}%
27990 +% Be sure we're in horizontal mode when doing a tie, since we make space
27991 +% equivalent to this in @example-like environments. Otherwise, a space
27992 +% at the beginning of a line will start with \penalty -- and
27993 +% since \penalty is valid in vertical mode, we'd end up putting the
27994 +% penalty on the vertical list instead of in the new paragraph.
27996 + % Avoid using \@M directly, because that causes trouble
27997 + % if the definition is written into an index file.
27998 + \global\let\tiepenalty = \@M
27999 + \gdef\tie{\leavevmode\penalty\tiepenalty\ }
28002 +% @: forces normal size whitespace following.
28003 +\def\:{\spacefactor=1000 }
28005 +% @* forces a line break.
28006 +\def\*{\hfil\break\hbox{}\ignorespaces}
28008 +% @/ allows a line break.
28009 +\let\/=\allowbreak
28011 +% @. is an end-of-sentence period.
28012 +\def\.{.\spacefactor=\endofsentencespacefactor\space}
28014 +% @! is an end-of-sentence bang.
28015 +\def\!{!\spacefactor=\endofsentencespacefactor\space}
28017 +% @? is an end-of-sentence query.
28018 +\def\?{?\spacefactor=\endofsentencespacefactor\space}
28020 +% @frenchspacing on|off says whether to put extra space after punctuation.
28025 +\parseargdef\frenchspacing{%
28027 + \ifx\temp\onword \plainfrenchspacing
28028 + \else\ifx\temp\offword \plainnonfrenchspacing
28030 + \errhelp = \EMsimple
28031 + \errmessage{Unknown @frenchspacing option `\temp', must be on/off}%
28035 +% @w prevents a word break. Without the \leavevmode, @w at the
28036 +% beginning of a paragraph, when TeX is still in vertical mode, would
28037 +% produce a whole line of output instead of starting the paragraph.
28038 +\def\w#1{\leavevmode\hbox{#1}}
28040 +% @group ... @end group forces ... to be all on one page, by enclosing
28041 +% it in a TeX vbox. We use \vtop instead of \vbox to construct the box
28042 +% to keep its height that of a normal line. According to the rules for
28043 +% \topskip (p.114 of the TeXbook), the glue inserted is
28044 +% max (\topskip - \ht (first item), 0). If that height is large,
28045 +% therefore, no glue is inserted, and the space between the headline and
28046 +% the text is small, which looks bad.
28048 +% Another complication is that the group might be very large. This can
28049 +% cause the glue on the previous page to be unduly stretched, because it
28050 +% does not have much material. In this case, it's better to add an
28051 +% explicit \vfill so that the extra space is at the bottom. The
28052 +% threshold for doing this is if the group is more than \vfilllimit
28053 +% percent of a page (\vfilllimit can be changed inside of @tex).
28056 +\def\vfilllimit{0.7}
28059 + \ifnum\catcode`\^^M=\active \else
28060 + \errhelp = \groupinvalidhelp
28061 + \errmessage{@group invalid in context where filling is enabled}%
28063 + \startsavinginserts
28065 + \setbox\groupbox = \vtop\bgroup
28066 + % Do @comment since we are called inside an environment such as
28067 + % @example, where each end-of-line in the input causes an
28068 + % end-of-line in the output. We don't want the end-of-line after
28069 + % the `@group' to put extra space in the output. Since @group
28070 + % should appear on a line by itself (according to the Texinfo
28071 + % manual), we don't worry about eating any user text.
28075 +% The \vtop produces a box with normal height and large depth; thus, TeX puts
28076 +% \baselineskip glue before it, and (when the next line of text is done)
28077 +% \lineskip glue after it. Thus, space below is not quite equal to space
28078 +% above. But it's pretty close.
28080 + % To get correct interline space between the last line of the group
28081 + % and the first line afterwards, we have to propagate \prevdepth.
28082 + \endgraf % Not \par, as it may have been set to \lisppar.
28083 + \global\dimen1 = \prevdepth
28084 + \egroup % End the \vtop.
28085 + % \dimen0 is the vertical size of the group's box.
28086 + \dimen0 = \ht\groupbox \advance\dimen0 by \dp\groupbox
28087 + % \dimen2 is how much space is left on the page (more or less).
28088 + \dimen2 = \pageheight \advance\dimen2 by -\pagetotal
28089 + % if the group doesn't fit on the current page, and it's a big big
28090 + % group, force a page break.
28091 + \ifdim \dimen0 > \dimen2
28092 + \ifdim \pagetotal < \vfilllimit\pageheight
28097 + \prevdepth = \dimen1
28101 +% TeX puts in an \escapechar (i.e., `@') at the beginning of the help
28102 +% message, so this ends up printing `@group can only ...'.
28104 +\newhelp\groupinvalidhelp{%
28105 +group can only be used in environments such as @example,^^J%
28106 +where each line of input produces a line of output.}
28108 +% @need space-in-mils
28109 +% forces a page break if there is not space-in-mils remaining.
28111 +\newdimen\mil \mil=0.001in
28113 +% Old definition--didn't work.
28114 +%\parseargdef\need{\par %
28115 +%% This method tries to make TeX break the page naturally
28116 +%% if the depth of the box does not fit.
28117 +%{\baselineskip=0pt%
28118 +%\vtop to #1\mil{\vfil}\kern -#1\mil\nobreak
28119 +%\prevdepth=-1000pt
28122 +\parseargdef\need{%
28123 + % Ensure vertical mode, so we don't make a big box in the middle of a
28127 + % If the @need value is less than one line space, it's useless.
28129 + \dimen2 = \ht\strutbox
28130 + \advance\dimen2 by \dp\strutbox
28131 + \ifdim\dimen0 > \dimen2
28133 + % Do a \strut just to make the height of this box be normal, so the
28134 + % normal leading is inserted relative to the preceding line.
28135 + % And a page break here is fine.
28136 + \vtop to #1\mil{\strut\vfil}%
28138 + % TeX does not even consider page breaks if a penalty added to the
28139 + % main vertical list is 10000 or more. But in order to see if the
28140 + % empty box we just added fits on the page, we must make it consider
28141 + % page breaks. On the other hand, we don't want to actually break the
28142 + % page after the empty box. So we use a penalty of 9999.
28144 + % There is an extremely small chance that TeX will actually break the
28145 + % page at this \penalty, if there are no other feasible breakpoints in
28146 + % sight. (If the user is using lots of big @group commands, which
28147 + % almost-but-not-quite fill up a page, TeX will have a hard time doing
28148 + % good page breaking, for example.) However, I could not construct an
28149 + % example where a page broke at this \penalty; if it happens in a real
28150 + % document, then we can reconsider our strategy.
28153 + % Back up by the size of the box, whether we did a page break or not.
28156 + % Do not allow a page break right after this kern.
28161 +% @br forces paragraph break (and is undocumented).
28165 +% @page forces the start of a new page.
28167 +\def\page{\par\vfill\supereject}
28169 +% @exdent text....
28170 +% outputs text on separate line in roman font, starting at standard page margin
28172 +% This records the amount of indent in the innermost environment.
28173 +% That's how much \exdent should take out.
28174 +\newskip\exdentamount
28176 +% This defn is used inside fill environments such as @defun.
28177 +\parseargdef\exdent{\hfil\break\hbox{\kern -\exdentamount{\rm#1}}\hfil\break}
28179 +% This defn is used inside nofill environments such as @example.
28180 +\parseargdef\nofillexdent{{\advance \leftskip by -\exdentamount
28181 + \leftline{\hskip\leftskip{\rm#1}}}}
28183 +% @inmargin{WHICH}{TEXT} puts TEXT in the WHICH margin next to the current
28184 +% paragraph. For more general purposes, use the \margin insertion
28185 +% class. WHICH is `l' or `r'.
28187 +\newskip\inmarginspacing \inmarginspacing=1cm
28188 +\def\strutdepth{\dp\strutbox}
28190 +\def\doinmargin#1#2{\strut\vadjust{%
28192 + \kern-\strutdepth
28193 + \vtop to \strutdepth{%
28194 + \baselineskip=\strutdepth
28196 + % if you have multiple lines of stuff to put here, you'll need to
28197 + % make the vbox yourself of the appropriate size.
28199 + \llap{\ignorespaces #2\hskip\inmarginspacing}%
28201 + \rlap{\hskip\hsize \hskip\inmarginspacing \ignorespaces #2}%
28206 +\def\inleftmargin{\doinmargin l}
28207 +\def\inrightmargin{\doinmargin r}
28209 +% @inmargin{TEXT [, RIGHT-TEXT]}
28210 +% (if RIGHT-TEXT is given, use TEXT for left page, RIGHT-TEXT for right;
28211 +% else use TEXT for both).
28213 +\def\inmargin#1{\parseinmargin #1,,\finish}
28214 +\def\parseinmargin#1,#2,#3\finish{% not perfect, but better than nothing.
28215 + \setbox0 = \hbox{\ignorespaces #2}%
28217 + \def\lefttext{#1}% have both texts
28218 + \def\righttext{#2}%
28220 + \def\lefttext{#1}% have only one text
28221 + \def\righttext{#1}%
28225 + \def\temp{\inrightmargin\righttext}% odd page -> outside is right margin
28227 + \def\temp{\inleftmargin\lefttext}%
28232 +% @include file insert text of that file as input.
28234 +\def\include{\parseargusing\filenamecatcodes\includezzz}
28235 +\def\includezzz#1{%
28236 + \pushthisfilestack
28237 + \def\thisfile{#1}%
28239 + \makevalueexpandable
28240 + \def\temp{\input #1 }%
28243 + \popthisfilestack
28245 +\def\filenamecatcodes{%
28246 + \catcode`\\=\other
28247 + \catcode`~=\other
28248 + \catcode`^=\other
28249 + \catcode`_=\other
28250 + \catcode`|=\other
28251 + \catcode`<=\other
28252 + \catcode`>=\other
28253 + \catcode`+=\other
28254 + \catcode`-=\other
28257 +\def\pushthisfilestack{%
28258 + \expandafter\pushthisfilestackX\popthisfilestack\StackTerm
28260 +\def\pushthisfilestackX{%
28261 + \expandafter\pushthisfilestackY\thisfile\StackTerm
28263 +\def\pushthisfilestackY #1\StackTerm #2\StackTerm {%
28264 + \gdef\popthisfilestack{\gdef\thisfile{#1}\gdef\popthisfilestack{#2}}%
28267 +\def\popthisfilestack{\errthisfilestackempty}
28268 +\def\errthisfilestackempty{\errmessage{Internal error:
28269 + the stack of filenames is empty.}}
28274 +% outputs that line, centered.
28276 +\parseargdef\center{%
28278 + \let\next\centerH
28280 + \let\next\centerV
28282 + \next{\hfil \ignorespaces#1\unskip \hfil}%
28287 + \advance\hsize by -\leftskip
28288 + \advance\hsize by -\rightskip
28293 +\def\centerV#1{\line{\kern\leftskip #1\kern\rightskip}}
28295 +% @sp n outputs n lines of vertical space
28297 +\parseargdef\sp{\vskip #1\baselineskip}
28299 +% @comment ...line which is ignored...
28300 +% @c is the same as @comment
28301 +% @ignore ... @end ignore is another way to write a comment
28303 +\def\comment{\begingroup \catcode`\^^M=\other%
28304 +\catcode`\@=\other \catcode`\{=\other \catcode`\}=\other%
28306 +{\catcode`\^^M=\other \gdef\commentxxx#1^^M{\endgroup}}
28310 +% @paragraphindent NCHARS
28311 +% We'll use ems for NCHARS, close enough.
28312 +% NCHARS can also be the word `asis' or `none'.
28313 +% We cannot feasibly implement @paragraphindent asis, though.
28315 +\def\asisword{asis} % no translation, these are keywords
28316 +\def\noneword{none}
28318 +\parseargdef\paragraphindent{%
28320 + \ifx\temp\asisword
28322 + \ifx\temp\noneword
28323 + \defaultparindent = 0pt
28325 + \defaultparindent = #1em
28328 + \parindent = \defaultparindent
28331 +% @exampleindent NCHARS
28332 +% We'll use ems for NCHARS like @paragraphindent.
28333 +% It seems @exampleindent asis isn't necessary, but
28334 +% I preserve it to make it similar to @paragraphindent.
28335 +\parseargdef\exampleindent{%
28337 + \ifx\temp\asisword
28339 + \ifx\temp\noneword
28340 + \lispnarrowing = 0pt
28342 + \lispnarrowing = #1em
28347 +% @firstparagraphindent WORD
28348 +% If WORD is `none', then suppress indentation of the first paragraph
28349 +% after a section heading. If WORD is `insert', then do indent at such
28352 +% The paragraph indentation is suppressed or not by calling
28353 +% \suppressfirstparagraphindent, which the sectioning commands do.
28354 +% We switch the definition of this back and forth according to WORD.
28355 +% By default, we suppress indentation.
28357 +\def\suppressfirstparagraphindent{\dosuppressfirstparagraphindent}
28358 +\def\insertword{insert}
28360 +\parseargdef\firstparagraphindent{%
28362 + \ifx\temp\noneword
28363 + \let\suppressfirstparagraphindent = \dosuppressfirstparagraphindent
28364 + \else\ifx\temp\insertword
28365 + \let\suppressfirstparagraphindent = \relax
28367 + \errhelp = \EMsimple
28368 + \errmessage{Unknown @firstparagraphindent option `\temp'}%
28372 +% Here is how we actually suppress indentation. Redefine \everypar to
28373 +% \kern backwards by \parindent, and then reset itself to empty.
28375 +% We also make \indent itself not actually do anything until the next
28378 +\gdef\dosuppressfirstparagraphindent{%
28380 + \restorefirstparagraphindent
28384 + \restorefirstparagraphindent
28387 + \global\everypar = {%
28388 + \kern -\parindent
28389 + \restorefirstparagraphindent
28393 +\gdef\restorefirstparagraphindent{%
28394 + \global \let \indent = \ptexindent
28395 + \global \let \noindent = \ptexnoindent
28396 + \global \everypar = {}%
28400 +% @asis just yields its argument. Used with @table, for example.
28404 +% @math outputs its argument in math mode.
28406 +% One complication: _ usually means subscripts, but it could also mean
28407 +% an actual _ character, as in @math{@var{some_variable} + 1}. So make
28408 +% _ active, and distinguish by seeing if the current family is \slfam,
28409 +% which is what @var uses.
28411 + \catcode\underChar = \active
28412 + \gdef\mathunderscore{%
28413 + \catcode\underChar=\active
28414 + \def_{\ifnum\fam=\slfam \_\else\sb\fi}%
28417 +% Another complication: we want \\ (and @\) to output a \ character.
28418 +% FYI, plain.tex uses \\ as a temporary control sequence (why?), but
28419 +% this is not advertised and we don't care. Texinfo does not
28420 +% otherwise define @\.
28422 +% The \mathchar is class=0=ordinary, family=7=ttfam, position=5C=\.
28423 +\def\mathbackslash{\ifnum\fam=\ttfam \mathchar"075C \else\backslash \fi}
28428 + \let\\ = \mathbackslash
28432 +\def\finishmath#1{#1$\endgroup} % Close the group opened by \tex.
28434 +% Some active characters (such as <) are spaced differently in math.
28435 +% We have to reset their definitions in case the @math was an argument
28436 +% to a command which sets the catcodes (such as @item or @section).
28439 + \catcode`^ = \active
28440 + \catcode`< = \active
28441 + \catcode`> = \active
28442 + \catcode`+ = \active
28443 + \gdef\mathactive{%
28445 + \let< = \ptexless
28447 + \let+ = \ptexplus
28451 +% @bullet and @minus need the same treatment as @math, just above.
28452 +\def\bullet{$\ptexbullet$}
28455 +% @dots{} outputs an ellipsis using the current font.
28456 +% We do .5em per period so that it has the same spacing in a typewriter
28457 +% font as three actual period characters.
28462 + \hskip 0pt plus 0.25fil
28464 + \hskip 0pt plus 0.5fil
28468 +% @enddots{} is an end-of-sentence ellipsis.
28472 + \spacefactor=\endofsentencespacefactor
28475 +% @comma{} is so commas can be inserted into text without messing up
28476 +% Texinfo's parsing.
28480 +% @refill is a no-op.
28481 +\let\refill=\relax
28483 +% If working on a large document in chapters, it is convenient to
28484 +% be able to disable indexing, cross-referencing, and contents, for test runs.
28485 +% This is done with @novalidate (before @setfilename).
28487 +\newif\iflinks \linkstrue % by default we want the aux files.
28488 +\let\novalidate = \linksfalse
28490 +% @setfilename is done at the beginning of every texinfo file.
28491 +% So open here the files we need to have open while reading the input.
28492 +% This makes it possible to make a .fmt file for texinfo.
28493 +\def\setfilename{%
28494 + \fixbackslash % Turn off hack to swallow `\input texinfo'.
28497 + % Open the new aux file. TeX will close it automatically at exit.
28498 + \immediate\openout\auxfile=\jobname.aux
28499 + \fi % \openindices needs to do some work in any case.
28501 + \let\setfilename=\comment % Ignore extra @setfilename cmds.
28503 + % If texinfo.cnf is present on the system, read it.
28504 + % Useful for site-wide @afourpaper, etc.
28505 + \openin 1 texinfo.cnf
28506 + \ifeof 1 \else \input texinfo.cnf \fi
28509 + \comment % Ignore the actual filename.
28512 +% Called from \setfilename.
28514 +\def\openindices{%
28516 + \newcodeindex{fn}%
28517 + \newcodeindex{vr}%
28518 + \newcodeindex{tp}%
28519 + \newcodeindex{ky}%
28520 + \newcodeindex{pg}%
28524 +\outer\def\bye{\pagealignmacro\tracingstats=1\ptexend}
28528 +% adobe `portable' document format
28530 +\newcount\lnkcount
28532 +\newcount\filenamelength
28541 +\newif\ifpdfmakepagedest
28543 +% when pdftex is run in dvi mode, \pdfoutput is defined (so \pdfoutput=1
28544 +% can be set). So we test for \relax and 0 as well as \undefined,
28545 +% borrowed from ifpdf.sty.
28546 +\ifx\pdfoutput\undefined
28548 + \ifx\pdfoutput\relax
28550 + \ifcase\pdfoutput
28557 +% PDF uses PostScript string constants for the names of xref targets, to
28558 +% for display in the outlines, and in other places. Thus, we have to
28559 +% double any backslashes. Otherwise, a name like "\node" will be
28560 +% interpreted as a newline (\n), followed by o, d, e. Not good.
28561 +% http://www.ntg.nl/pipermail/ntg-pdftex/2004-July/000654.html
28562 +% (and related messages, the final outcome is that it is up to the TeX
28563 +% user to double the backslashes and otherwise make the string valid, so
28566 +% double active backslashes.
28568 +{\catcode`\@=0 \catcode`\\=\active
28569 + @gdef@activebackslash{@catcode`@\=@active @otherbackslash}
28570 + @gdef@activebackslashdouble{%
28571 + @catcode@backChar=@active
28572 + @let\=@doublebackslash}
28575 +% To handle parens, we must adopt a different approach, since parens are
28576 +% not active characters. hyperref.dtx (which has the same problem as
28577 +% us) handles it with this amazing macro to replace tokens. I've
28578 +% tinkered with it a little for texinfo, but it's definitely from there.
28580 +% #1 is the tokens to replace.
28581 +% #2 is the replacement.
28582 +% #3 is the control sequence with the string.
28584 +\def\HyPsdSubst#1#2#3{%
28585 + \def\HyPsdReplace##1#1##2\END{%
28590 + \HyReturnAfterFi{%
28591 + \HyPsdReplace##2\END
28595 + \xdef#3{\expandafter\HyPsdReplace#3#1\END}%
28597 +\long\def\HyReturnAfterFi#1\fi{\fi#1}
28599 +% #1 is a control sequence in which to do the replacements.
28600 +\def\backslashparens#1{%
28601 + \xdef#1{#1}% redefine it as its expansion; the definition is simply
28602 + % \lastnode when called from \setref -> \pdfmkdest.
28603 + \HyPsdSubst{(}{\backslashlparen}{#1}%
28604 + \HyPsdSubst{)}{\backslashrparen}{#1}%
28607 +{\catcode\exclamChar = 0 \catcode\backChar = \other
28608 + !gdef!backslashlparen{\(}%
28609 + !gdef!backslashrparen{\)}%
28614 + \pdfcatalog{/PageMode /UseOutlines}%
28615 + \def\dopdfimage#1#2#3{%
28616 + \def\imagewidth{#2}%
28617 + \def\imageheight{#3}%
28618 + % without \immediate, pdftex seg faults when the same image is
28619 + % included twice. (Version 3.14159-pre-1.0-unofficial-20010704.)
28620 + \ifnum\pdftexversion < 14
28621 + \immediate\pdfimage
28623 + \immediate\pdfximage
28625 + \ifx\empty\imagewidth\else width \imagewidth \fi
28626 + \ifx\empty\imageheight\else height \imageheight \fi
28627 + \ifnum\pdftexversion<13
28632 + \ifnum\pdftexversion < 14 \else
28633 + \pdfrefximage \pdflastximage
28635 + \def\pdfmkdest#1{{%
28636 + % We have to set dummies so commands such as @code, and characters
28637 + % such as \, aren't expanded when present in a section title.
28639 + \activebackslashdouble
28640 + \def\pdfdestname{#1}%
28641 + \backslashparens\pdfdestname
28642 + \pdfdest name{\pdfdestname} xyz%
28645 + % used to mark target names; must be expandable.
28646 + \def\pdfmkpgn#1{#1}%
28648 + \let\linkcolor = \Blue % was Cyan, but that seems light?
28649 + \def\endlink{\Black\pdfendlink}
28650 + % Adding outlines to PDF; macros for calculating structure of outlines
28651 + % come from Petr Olsak
28652 + \def\expnumber#1{\expandafter\ifx\csname#1\endcsname\relax 0%
28653 + \else \csname#1\endcsname \fi}
28654 + \def\advancenumber#1{\tempnum=\expnumber{#1}\relax
28655 + \advance\tempnum by 1
28656 + \expandafter\xdef\csname#1\endcsname{\the\tempnum}}
28658 + % #1 is the section text, which is what will be displayed in the
28659 + % outline by the pdf viewer. #2 is the pdf expression for the number
28660 + % of subentries (or empty, for subsubsections). #3 is the node text,
28661 + % which might be empty if this toc entry had no corresponding node.
28662 + % #4 is the page number
28664 + \def\dopdfoutline#1#2#3#4{%
28665 + % Generate a link to the node text if that exists; else, use the
28666 + % page number. We could generate a destination for the section
28667 + % text in the case where a section has no node, but it doesn't
28668 + % seem worth the trouble, since most documents are normally structured.
28669 + \def\pdfoutlinedest{#3}%
28670 + \ifx\pdfoutlinedest\empty
28671 + \def\pdfoutlinedest{#4}%
28673 + % Doubled backslashes in the name.
28674 + {\activebackslashdouble \xdef\pdfoutlinedest{#3}%
28675 + \backslashparens\pdfoutlinedest}%
28678 + % Also double the backslashes in the display string.
28679 + {\activebackslashdouble \xdef\pdfoutlinetext{#1}%
28680 + \backslashparens\pdfoutlinetext}%
28682 + \pdfoutline goto name{\pdfmkpgn{\pdfoutlinedest}}#2{\pdfoutlinetext}%
28685 + \def\pdfmakeoutlines{%
28687 + % Thanh's hack / proper braces in bookmarks
28688 + \edef\mylbrace{\iftrue \string{\else}\fi}\let\{=\mylbrace
28689 + \edef\myrbrace{\iffalse{\else\string}\fi}\let\}=\myrbrace
28691 + % Read toc silently, to get counts of subentries for \pdfoutline.
28692 + \def\numchapentry##1##2##3##4{%
28693 + \def\thischapnum{##2}%
28694 + \def\thissecnum{0}%
28695 + \def\thissubsecnum{0}%
28697 + \def\numsecentry##1##2##3##4{%
28698 + \advancenumber{chap\thischapnum}%
28699 + \def\thissecnum{##2}%
28700 + \def\thissubsecnum{0}%
28702 + \def\numsubsecentry##1##2##3##4{%
28703 + \advancenumber{sec\thissecnum}%
28704 + \def\thissubsecnum{##2}%
28706 + \def\numsubsubsecentry##1##2##3##4{%
28707 + \advancenumber{subsec\thissubsecnum}%
28709 + \def\thischapnum{0}%
28710 + \def\thissecnum{0}%
28711 + \def\thissubsecnum{0}%
28713 + % use \def rather than \let here because we redefine \chapentry et
28714 + % al. a second time, below.
28715 + \def\appentry{\numchapentry}%
28716 + \def\appsecentry{\numsecentry}%
28717 + \def\appsubsecentry{\numsubsecentry}%
28718 + \def\appsubsubsecentry{\numsubsubsecentry}%
28719 + \def\unnchapentry{\numchapentry}%
28720 + \def\unnsecentry{\numsecentry}%
28721 + \def\unnsubsecentry{\numsubsecentry}%
28722 + \def\unnsubsubsecentry{\numsubsubsecentry}%
28723 + \readdatafile{toc}%
28725 + % Read toc second time, this time actually producing the outlines.
28726 + % The `-' means take the \expnumber as the absolute number of
28727 + % subentries, which we calculated on our first read of the .toc above.
28729 + % We use the node names as the destinations.
28730 + \def\numchapentry##1##2##3##4{%
28731 + \dopdfoutline{##1}{count-\expnumber{chap##2}}{##3}{##4}}%
28732 + \def\numsecentry##1##2##3##4{%
28733 + \dopdfoutline{##1}{count-\expnumber{sec##2}}{##3}{##4}}%
28734 + \def\numsubsecentry##1##2##3##4{%
28735 + \dopdfoutline{##1}{count-\expnumber{subsec##2}}{##3}{##4}}%
28736 + \def\numsubsubsecentry##1##2##3##4{% count is always zero
28737 + \dopdfoutline{##1}{}{##3}{##4}}%
28739 + % PDF outlines are displayed using system fonts, instead of
28740 + % document fonts. Therefore we cannot use special characters,
28741 + % since the encoding is unknown. For example, the eogonek from
28742 + % Latin 2 (0xea) gets translated to a | character. Info from
28743 + % Staszek Wawrykiewicz, 19 Jan 2004 04:09:24 +0100.
28745 + % xx to do this right, we have to translate 8-bit characters to
28746 + % their "best" equivalent, based on the @documentencoding. Right
28747 + % now, I guess we'll just let the pdf reader have its way.
28751 + \input \jobname.toc
28755 + \def\skipspaces#1{\def\PP{#1}\def\D{|}%
28756 + \ifx\PP\D\let\nextsp\relax
28757 + \else\let\nextsp\skipspaces
28758 + \ifx\p\space\else\addtokens{\filename}{\PP}%
28759 + \advance\filenamelength by 1
28763 + \def\getfilename#1{\filenamelength=0\expandafter\skipspaces#1|\relax}
28764 + \ifnum\pdftexversion < 14
28765 + \let \startlink \pdfannotlink
28767 + \let \startlink \pdfstartlink
28771 + \normalturnoffactive\def\@{@}%
28772 + \makevalueexpandable
28774 + \startlink attr{/Border [0 0 0]}%
28775 + user{/Subtype /Link /A << /S /URI /URI (#1) >>}%
28777 + \def\pdfgettoks#1.{\setbox\boxA=\hbox{\toksA={#1.}\toksB={}\maketoks}}
28778 + \def\addtokens#1#2{\edef\addtoks{\noexpand#1={\the#1#2}}\addtoks}
28779 + \def\adn#1{\addtokens{\toksC}{#1}\global\countA=1\let\next=\maketoks}
28780 + \def\poptoks#1#2|ENDTOKS|{\let\first=#1\toksD={#1}\toksA={#2}}
28782 + \expandafter\poptoks\the\toksA|ENDTOKS|\relax
28784 + \else\ifx\first1\adn1 \else\ifx\first2\adn2 \else\ifx\first3\adn3
28785 + \else\ifx\first4\adn4 \else\ifx\first5\adn5 \else\ifx\first6\adn6
28786 + \else\ifx\first7\adn7 \else\ifx\first8\adn8 \else\ifx\first9\adn9
28788 + \ifnum0=\countA\else\makelink\fi
28789 + \ifx\first.\let\next=\done\else
28790 + \let\next=\maketoks
28791 + \addtokens{\toksB}{\the\toksD}
28792 + \ifx\first,\addtokens{\toksB}{\space}\fi
28794 + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
28796 + \def\makelink{\addtokens{\toksB}%
28797 + {\noexpand\pdflink{\the\toksC}}\toksC={}\global\countA=0}
28799 + \startlink attr{/Border [0 0 0]} goto name{\pdfmkpgn{#1}}
28800 + \linkcolor #1\endlink}
28801 + \def\done{\edef\st{\global\noexpand\toksA={\the\toksB}}\st}
28803 + \let\pdfmkdest = \gobble
28804 + \let\pdfurl = \gobble
28805 + \let\endlink = \relax
28806 + \let\linkcolor = \relax
28807 + \let\pdfmakeoutlines = \relax
28808 +\fi % \ifx\pdfoutput
28813 +% Change the current font style to #1, remembering it in \curfontstyle.
28814 +% For now, we do not accumulate font styles: @b{@i{foo}} prints foo in
28815 +% italics, not bold italics.
28817 +\def\setfontstyle#1{%
28818 + \def\curfontstyle{#1}% not as a control sequence, because we are \edef'd.
28819 + \csname ten#1\endcsname % change the current font
28822 +% Select #1 fonts with the current style.
28824 +\def\selectfonts#1{\csname #1fonts\endcsname \csname\curfontstyle\endcsname}
28826 +\def\rm{\fam=0 \setfontstyle{rm}}
28827 +\def\it{\fam=\itfam \setfontstyle{it}}
28828 +\def\sl{\fam=\slfam \setfontstyle{sl}}
28829 +\def\bf{\fam=\bffam \setfontstyle{bf}}\def\bfstylename{bf}
28830 +\def\tt{\fam=\ttfam \setfontstyle{tt}}
28832 +% Texinfo sort of supports the sans serif font style, which plain TeX does not.
28833 +% So we set up a \sf.
28835 +\def\sf{\fam=\sffam \setfontstyle{sf}}
28836 +\let\li = \sf % Sometimes we call it \li, not \sf.
28838 +% We don't need math for this font style.
28839 +\def\ttsl{\setfontstyle{ttsl}}
28841 +% Default leading.
28842 +\newdimen\textleading \textleading = 13.2pt
28844 +% Set the baselineskip to #1, and the lineskip and strut size
28845 +% correspondingly. There is no deep meaning behind these magic numbers
28846 +% used as factors; they just match (closely enough) what Knuth defined.
28848 +\def\lineskipfactor{.08333}
28849 +\def\strutheightpercent{.70833}
28850 +\def\strutdepthpercent {.29167}
28852 +\def\setleading#1{%
28853 + \normalbaselineskip = #1\relax
28854 + \normallineskip = \lineskipfactor\normalbaselineskip
28856 + \setbox\strutbox =\hbox{%
28857 + \vrule width0pt height\strutheightpercent\baselineskip
28858 + depth \strutdepthpercent \baselineskip
28862 +% Set the font macro #1 to the font named #2, adding on the
28863 +% specified font prefix (normally `cm').
28864 +% #3 is the font's design size, #4 is a scale factor
28865 +\def\setfont#1#2#3#4{\font#1=\fontprefix#2#3 scaled #4}
28867 +% Use cm as the default font prefix.
28868 +% To specify the font prefix, you must define \fontprefix
28869 +% before you read in texinfo.tex.
28870 +\ifx\fontprefix\undefined
28871 +\def\fontprefix{cm}
28873 +% Support font families that don't use the same naming scheme as CM.
28875 +\def\rmbshape{bx} %where the normal face is bold
28880 +\def\ttslshape{sltt}
28882 +\def\itbshape{bxti}
28884 +\def\slbshape{bxsl}
28888 +\def\scbshape{csc}
28890 +% Text fonts (11.2pt, magstep1).
28891 +\def\textnominalsize{11pt}
28892 +\edef\mainmagstep{\magstephalf}
28893 +\setfont\textrm\rmshape{10}{\mainmagstep}
28894 +\setfont\texttt\ttshape{10}{\mainmagstep}
28895 +\setfont\textbf\bfshape{10}{\mainmagstep}
28896 +\setfont\textit\itshape{10}{\mainmagstep}
28897 +\setfont\textsl\slshape{10}{\mainmagstep}
28898 +\setfont\textsf\sfshape{10}{\mainmagstep}
28899 +\setfont\textsc\scshape{10}{\mainmagstep}
28900 +\setfont\textttsl\ttslshape{10}{\mainmagstep}
28901 +\font\texti=cmmi10 scaled \mainmagstep
28902 +\font\textsy=cmsy10 scaled \mainmagstep
28904 +% A few fonts for @defun names and args.
28905 +\setfont\defbf\bfshape{10}{\magstep1}
28906 +\setfont\deftt\ttshape{10}{\magstep1}
28907 +\setfont\defttsl\ttslshape{10}{\magstep1}
28908 +\def\df{\let\tentt=\deftt \let\tenbf = \defbf \let\tenttsl=\defttsl \bf}
28910 +% Fonts for indices, footnotes, small examples (9pt).
28911 +\def\smallnominalsize{9pt}
28912 +\setfont\smallrm\rmshape{9}{1000}
28913 +\setfont\smalltt\ttshape{9}{1000}
28914 +\setfont\smallbf\bfshape{10}{900}
28915 +\setfont\smallit\itshape{9}{1000}
28916 +\setfont\smallsl\slshape{9}{1000}
28917 +\setfont\smallsf\sfshape{9}{1000}
28918 +\setfont\smallsc\scshape{10}{900}
28919 +\setfont\smallttsl\ttslshape{10}{900}
28920 +\font\smalli=cmmi9
28921 +\font\smallsy=cmsy9
28923 +% Fonts for small examples (8pt).
28924 +\def\smallernominalsize{8pt}
28925 +\setfont\smallerrm\rmshape{8}{1000}
28926 +\setfont\smallertt\ttshape{8}{1000}
28927 +\setfont\smallerbf\bfshape{10}{800}
28928 +\setfont\smallerit\itshape{8}{1000}
28929 +\setfont\smallersl\slshape{8}{1000}
28930 +\setfont\smallersf\sfshape{8}{1000}
28931 +\setfont\smallersc\scshape{10}{800}
28932 +\setfont\smallerttsl\ttslshape{10}{800}
28933 +\font\smalleri=cmmi8
28934 +\font\smallersy=cmsy8
28936 +% Fonts for title page (20.4pt):
28937 +\def\titlenominalsize{20pt}
28938 +\setfont\titlerm\rmbshape{12}{\magstep3}
28939 +\setfont\titleit\itbshape{10}{\magstep4}
28940 +\setfont\titlesl\slbshape{10}{\magstep4}
28941 +\setfont\titlett\ttbshape{12}{\magstep3}
28942 +\setfont\titlettsl\ttslshape{10}{\magstep4}
28943 +\setfont\titlesf\sfbshape{17}{\magstep1}
28944 +\let\titlebf=\titlerm
28945 +\setfont\titlesc\scbshape{10}{\magstep4}
28946 +\font\titlei=cmmi12 scaled \magstep3
28947 +\font\titlesy=cmsy10 scaled \magstep4
28948 +\def\authorrm{\secrm}
28949 +\def\authortt{\sectt}
28951 +% Chapter (and unnumbered) fonts (17.28pt).
28952 +\def\chapnominalsize{17pt}
28953 +\setfont\chaprm\rmbshape{12}{\magstep2}
28954 +\setfont\chapit\itbshape{10}{\magstep3}
28955 +\setfont\chapsl\slbshape{10}{\magstep3}
28956 +\setfont\chaptt\ttbshape{12}{\magstep2}
28957 +\setfont\chapttsl\ttslshape{10}{\magstep3}
28958 +\setfont\chapsf\sfbshape{17}{1000}
28959 +\let\chapbf=\chaprm
28960 +\setfont\chapsc\scbshape{10}{\magstep3}
28961 +\font\chapi=cmmi12 scaled \magstep2
28962 +\font\chapsy=cmsy10 scaled \magstep3
28964 +% Section fonts (14.4pt).
28965 +\def\secnominalsize{14pt}
28966 +\setfont\secrm\rmbshape{12}{\magstep1}
28967 +\setfont\secit\itbshape{10}{\magstep2}
28968 +\setfont\secsl\slbshape{10}{\magstep2}
28969 +\setfont\sectt\ttbshape{12}{\magstep1}
28970 +\setfont\secttsl\ttslshape{10}{\magstep2}
28971 +\setfont\secsf\sfbshape{12}{\magstep1}
28973 +\setfont\secsc\scbshape{10}{\magstep2}
28974 +\font\seci=cmmi12 scaled \magstep1
28975 +\font\secsy=cmsy10 scaled \magstep2
28977 +% Subsection fonts (13.15pt).
28978 +\def\ssecnominalsize{13pt}
28979 +\setfont\ssecrm\rmbshape{12}{\magstephalf}
28980 +\setfont\ssecit\itbshape{10}{1315}
28981 +\setfont\ssecsl\slbshape{10}{1315}
28982 +\setfont\ssectt\ttbshape{12}{\magstephalf}
28983 +\setfont\ssecttsl\ttslshape{10}{1315}
28984 +\setfont\ssecsf\sfbshape{12}{\magstephalf}
28985 +\let\ssecbf\ssecrm
28986 +\setfont\ssecsc\scbshape{10}{1315}
28987 +\font\sseci=cmmi12 scaled \magstephalf
28988 +\font\ssecsy=cmsy10 scaled 1315
28990 +% Reduced fonts for @acro in text (10pt).
28991 +\def\reducednominalsize{10pt}
28992 +\setfont\reducedrm\rmshape{10}{1000}
28993 +\setfont\reducedtt\ttshape{10}{1000}
28994 +\setfont\reducedbf\bfshape{10}{1000}
28995 +\setfont\reducedit\itshape{10}{1000}
28996 +\setfont\reducedsl\slshape{10}{1000}
28997 +\setfont\reducedsf\sfshape{10}{1000}
28998 +\setfont\reducedsc\scshape{10}{1000}
28999 +\setfont\reducedttsl\ttslshape{10}{1000}
29000 +\font\reducedi=cmmi10
29001 +\font\reducedsy=cmsy10
29003 +% In order for the font changes to affect most math symbols and letters,
29004 +% we have to define the \textfont of the standard families. Since
29005 +% texinfo doesn't allow for producing subscripts and superscripts except
29006 +% in the main text, we don't bother to reset \scriptfont and
29007 +% \scriptscriptfont (which would also require loading a lot more fonts).
29009 +\def\resetmathfonts{%
29010 + \textfont0=\tenrm \textfont1=\teni \textfont2=\tensy
29011 + \textfont\itfam=\tenit \textfont\slfam=\tensl \textfont\bffam=\tenbf
29012 + \textfont\ttfam=\tentt \textfont\sffam=\tensf
29015 +% The font-changing commands redefine the meanings of \tenSTYLE, instead
29016 +% of just \STYLE. We do this because \STYLE needs to also set the
29017 +% current \fam for math mode. Our \STYLE (e.g., \rm) commands hardwire
29018 +% \tenSTYLE to set the current font.
29020 +% Each font-changing command also sets the names \lsize (one size lower)
29021 +% and \lllsize (three sizes lower). These relative commands are used in
29022 +% the LaTeX logo and acronyms.
29024 +% This all needs generalizing, badly.
29027 + \let\tenrm=\textrm \let\tenit=\textit \let\tensl=\textsl
29028 + \let\tenbf=\textbf \let\tentt=\texttt \let\smallcaps=\textsc
29029 + \let\tensf=\textsf \let\teni=\texti \let\tensy=\textsy
29030 + \let\tenttsl=\textttsl
29031 + \def\curfontsize{text}%
29032 + \def\lsize{reduced}\def\lllsize{smaller}%
29033 + \resetmathfonts \setleading{\textleading}}
29035 + \let\tenrm=\titlerm \let\tenit=\titleit \let\tensl=\titlesl
29036 + \let\tenbf=\titlebf \let\tentt=\titlett \let\smallcaps=\titlesc
29037 + \let\tensf=\titlesf \let\teni=\titlei \let\tensy=\titlesy
29038 + \let\tenttsl=\titlettsl
29039 + \def\curfontsize{title}%
29040 + \def\lsize{chap}\def\lllsize{subsec}%
29041 + \resetmathfonts \setleading{25pt}}
29042 +\def\titlefont#1{{\titlefonts\rm #1}}
29044 + \let\tenrm=\chaprm \let\tenit=\chapit \let\tensl=\chapsl
29045 + \let\tenbf=\chapbf \let\tentt=\chaptt \let\smallcaps=\chapsc
29046 + \let\tensf=\chapsf \let\teni=\chapi \let\tensy=\chapsy
29047 + \let\tenttsl=\chapttsl
29048 + \def\curfontsize{chap}%
29049 + \def\lsize{sec}\def\lllsize{text}%
29050 + \resetmathfonts \setleading{19pt}}
29052 + \let\tenrm=\secrm \let\tenit=\secit \let\tensl=\secsl
29053 + \let\tenbf=\secbf \let\tentt=\sectt \let\smallcaps=\secsc
29054 + \let\tensf=\secsf \let\teni=\seci \let\tensy=\secsy
29055 + \let\tenttsl=\secttsl
29056 + \def\curfontsize{sec}%
29057 + \def\lsize{subsec}\def\lllsize{reduced}%
29058 + \resetmathfonts \setleading{16pt}}
29059 +\def\subsecfonts{%
29060 + \let\tenrm=\ssecrm \let\tenit=\ssecit \let\tensl=\ssecsl
29061 + \let\tenbf=\ssecbf \let\tentt=\ssectt \let\smallcaps=\ssecsc
29062 + \let\tensf=\ssecsf \let\teni=\sseci \let\tensy=\ssecsy
29063 + \let\tenttsl=\ssecttsl
29064 + \def\curfontsize{ssec}%
29065 + \def\lsize{text}\def\lllsize{small}%
29066 + \resetmathfonts \setleading{15pt}}
29067 +\let\subsubsecfonts = \subsecfonts
29068 +\def\reducedfonts{%
29069 + \let\tenrm=\reducedrm \let\tenit=\reducedit \let\tensl=\reducedsl
29070 + \let\tenbf=\reducedbf \let\tentt=\reducedtt \let\reducedcaps=\reducedsc
29071 + \let\tensf=\reducedsf \let\teni=\reducedi \let\tensy=\reducedsy
29072 + \let\tenttsl=\reducedttsl
29073 + \def\curfontsize{reduced}%
29074 + \def\lsize{small}\def\lllsize{smaller}%
29075 + \resetmathfonts \setleading{10.5pt}}
29077 + \let\tenrm=\smallrm \let\tenit=\smallit \let\tensl=\smallsl
29078 + \let\tenbf=\smallbf \let\tentt=\smalltt \let\smallcaps=\smallsc
29079 + \let\tensf=\smallsf \let\teni=\smalli \let\tensy=\smallsy
29080 + \let\tenttsl=\smallttsl
29081 + \def\curfontsize{small}%
29082 + \def\lsize{smaller}\def\lllsize{smaller}%
29083 + \resetmathfonts \setleading{10.5pt}}
29084 +\def\smallerfonts{%
29085 + \let\tenrm=\smallerrm \let\tenit=\smallerit \let\tensl=\smallersl
29086 + \let\tenbf=\smallerbf \let\tentt=\smallertt \let\smallcaps=\smallersc
29087 + \let\tensf=\smallersf \let\teni=\smalleri \let\tensy=\smallersy
29088 + \let\tenttsl=\smallerttsl
29089 + \def\curfontsize{smaller}%
29090 + \def\lsize{smaller}\def\lllsize{smaller}%
29091 + \resetmathfonts \setleading{9.5pt}}
29093 +% Set the fonts to use with the @small... environments.
29094 +\let\smallexamplefonts = \smallfonts
29096 +% About \smallexamplefonts. If we use \smallfonts (9pt), @smallexample
29097 +% can fit this many characters:
29098 +% 8.5x11=86 smallbook=72 a4=90 a5=69
29099 +% If we use \scriptfonts (8pt), then we can fit this many characters:
29100 +% 8.5x11=90+ smallbook=80 a4=90+ a5=77
29101 +% For me, subjectively, the few extra characters that fit aren't worth
29102 +% the additional smallness of 8pt. So I'm making the default 9pt.
29104 +% By the way, for comparison, here's what fits with @example (10pt):
29105 +% 8.5x11=71 smallbook=60 a4=75 a5=58
29107 +% I wish the USA used A4 paper.
29108 +% --karl, 24jan03.
29111 +% Set up the default fonts, so we can use them for creating boxes.
29115 +% Define these so they can be easily changed for other fonts.
29116 +\def\angleleft{$\langle$}
29117 +\def\angleright{$\rangle$}
29119 +% Count depth in font-changes, for error checks
29120 +\newcount\fontdepth \fontdepth=0
29122 +% Fonts for short table of contents.
29123 +\setfont\shortcontrm\rmshape{12}{1000}
29124 +\setfont\shortcontbf\bfshape{10}{\magstep1} % no cmb12
29125 +\setfont\shortcontsl\slshape{12}{1000}
29126 +\setfont\shortconttt\ttshape{12}{1000}
29128 +%% Add scribe-like font environments, plus @l for inline lisp (usually sans
29129 +%% serif) and @ii for TeX italic
29131 +% \smartitalic{ARG} outputs arg in italics, followed by an italic correction
29132 +% unless the following character is such as not to need one.
29133 +\def\smartitalicx{\ifx\next,\else\ifx\next-\else\ifx\next.\else
29134 + \ptexslash\fi\fi\fi}
29135 +\def\smartslanted#1{{\ifusingtt\ttsl\sl #1}\futurelet\next\smartitalicx}
29136 +\def\smartitalic#1{{\ifusingtt\ttsl\it #1}\futurelet\next\smartitalicx}
29138 +% like \smartslanted except unconditionally uses \ttsl.
29139 +% @var is set to this for defun arguments.
29140 +\def\ttslanted#1{{\ttsl #1}\futurelet\next\smartitalicx}
29142 +% like \smartslanted except unconditionally use \sl. We never want
29143 +% ttsl for book titles, do we?
29144 +\def\cite#1{{\sl #1}\futurelet\next\smartitalicx}
29146 +\let\i=\smartitalic
29147 +\let\slanted=\smartslanted
29148 +\let\var=\smartslanted
29149 +\let\dfn=\smartslanted
29150 +\let\emph=\smartitalic
29152 +% @b, explicit bold.
29153 +\def\b#1{{\bf #1}}
29156 +% @sansserif, explicit sans.
29157 +\def\sansserif#1{{\sf #1}}
29159 +% We can't just use \exhyphenpenalty, because that only has effect at
29160 +% the end of a paragraph. Restore normal hyphenation at the end of the
29161 +% group within which \nohyphenation is presumably called.
29163 +\def\nohyphenation{\hyphenchar\font = -1 \aftergroup\restorehyphenation}
29164 +\def\restorehyphenation{\hyphenchar\font = `- }
29166 +% Set sfcode to normal for the chars that usually have another value.
29167 +% Can't use plain's \frenchspacing because it uses the `\x notation, and
29168 +% sometimes \x has an active definition that messes things up.
29171 + \def\plainfrenchspacing{%
29172 + \sfcode\dotChar =\@m \sfcode\questChar=\@m \sfcode\exclamChar=\@m
29173 + \sfcode\colonChar=\@m \sfcode\semiChar =\@m \sfcode\commaChar =\@m
29174 + \def\endofsentencespacefactor{1000}% for @. and friends
29176 + \def\plainnonfrenchspacing{%
29177 + \sfcode`\.3000\sfcode`\?3000\sfcode`\!3000
29178 + \sfcode`\:2000\sfcode`\;1500\sfcode`\,1250
29179 + \def\endofsentencespacefactor{3000}% for @. and friends
29182 +\def\endofsentencespacefactor{3000}% default
29185 + {\tt \rawbackslash \plainfrenchspacing #1}%
29188 +\def\samp#1{`\tclose{#1}'\null}
29189 +\setfont\keyrm\rmshape{8}{1000}
29191 +\def\key#1{{\keyrm\textfont2=\keysy \leavevmode\hbox{%
29192 + \raise0.4pt\hbox{\angleleft}\kern-.08em\vtop{%
29193 + \vbox{\hrule\kern-0.4pt
29194 + \hbox{\raise0.4pt\hbox{\vphantom{\angleleft}}#1}}%
29195 + \kern-0.4pt\hrule}%
29196 + \kern-.06em\raise0.4pt\hbox{\angleright}}}}
29197 +% The old definition, with no lozenge:
29198 +%\def\key #1{{\ttsl \nohyphenation \uppercase{#1}}\null}
29199 +\def\ctrl #1{{\tt \rawbackslash \hat}#1}
29201 +% @file, @option are the same as @samp.
29205 +% @code is a modification of @t,
29206 +% which makes spaces the same size as normal in the surrounding text.
29209 + % Change normal interword space to be same as for the current font.
29210 + \spaceskip = \fontdimen2\font
29212 + % Switch to typewriter.
29215 + % But `\ ' produces the large typewriter interword space.
29216 + \def\ {{\spaceskip = 0pt{} }}%
29218 + % Turn off hyphenation.
29222 + \plainfrenchspacing
29228 +% We *must* turn on hyphenation at `-' and `_' in @code.
29229 +% Otherwise, it is too hard to avoid overfull hboxes
29230 +% in the Emacs manual, the Library manual, etc.
29232 +% Unfortunately, TeX uses one parameter (\hyphenchar) to control
29233 +% both hyphenation at - and hyphenation within words.
29234 +% We must therefore turn them both off (\tclose does that)
29235 +% and arrange explicitly to hyphenate at a dash.
29238 + \catcode`\-=\active
29239 + \catcode`\_=\active
29241 + \global\def\code{\begingroup
29242 + \catcode`\-=\active \catcode`\_=\active
29243 + \ifallowcodebreaks
29255 +\def\codedash{-\discretionary{}{}{}}
29257 + % this is all so @math{@code{var_name}+1} can work. In math mode, _
29258 + % is "active" (mathcode"8000) and \normalunderscore (or \char95, etc.)
29259 + % will therefore expand the active definition of _, which is us
29260 + % (inside @code that is), therefore an endless loop.
29261 + \ifusingtt{\ifmmode
29262 + \mathchar"075F % class 0=ordinary, family 7=ttfam, pos 0x5F=_.
29263 + \else\normalunderscore \fi
29264 + \discretionary{}{}{}}%
29267 +\def\codex #1{\tclose{#1}\endgroup}
29269 +% An additional complication: the above will allow breaks after, e.g.,
29270 +% each of the four underscores in __typeof__. This is undesirable in
29271 +% some manuals, especially if they don't have long identifiers in
29272 +% general. @allowcodebreaks provides a way to control this.
29274 +\newif\ifallowcodebreaks \allowcodebreakstrue
29276 +\def\keywordtrue{true}
29277 +\def\keywordfalse{false}
29279 +\parseargdef\allowcodebreaks{%
29281 + \ifx\txiarg\keywordtrue
29282 + \allowcodebreakstrue
29283 + \else\ifx\txiarg\keywordfalse
29284 + \allowcodebreaksfalse
29286 + \errhelp = \EMsimple
29287 + \errmessage{Unknown @allowcodebreaks option `\txiarg'}%
29291 +% @kbd is like @code, except that if the argument is just one @key command,
29292 +% then @kbd has no effect.
29294 +% @kbdinputstyle -- arg is `distinct' (@kbd uses slanted tty font always),
29295 +% `example' (@kbd uses ttsl only inside of @example and friends),
29296 +% or `code' (@kbd uses normal tty font always).
29297 +\parseargdef\kbdinputstyle{%
29299 + \ifx\txiarg\worddistinct
29300 + \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\ttsl}%
29301 + \else\ifx\txiarg\wordexample
29302 + \gdef\kbdexamplefont{\ttsl}\gdef\kbdfont{\tt}%
29303 + \else\ifx\txiarg\wordcode
29304 + \gdef\kbdexamplefont{\tt}\gdef\kbdfont{\tt}%
29306 + \errhelp = \EMsimple
29307 + \errmessage{Unknown @kbdinputstyle option `\txiarg'}%
29310 +\def\worddistinct{distinct}
29311 +\def\wordexample{example}
29312 +\def\wordcode{code}
29314 +% Default is `distinct.'
29315 +\kbdinputstyle distinct
29318 +\def\kbdfoo#1#2#3\par{\def\one{#1}\def\three{#3}\def\threex{??}%
29319 +\ifx\one\xkey\ifx\threex\three \key{#2}%
29320 +\else{\tclose{\kbdfont\look}}\fi
29321 +\else{\tclose{\kbdfont\look}}\fi}
29323 +% For @indicateurl, @env, @command quotes seem unnecessary, so use \code.
29324 +\let\indicateurl=\code
29326 +\let\command=\code
29328 +% @uref (abbreviation for `urlref') takes an optional (comma-separated)
29329 +% second argument specifying the text to display and an optional third
29330 +% arg as text to display instead of (rather than in addition to) the url
29331 +% itself. First (mandatory) arg is the url. Perhaps eventually put in
29332 +% a hypertex \special here.
29334 +\def\uref#1{\douref #1,,,\finish}
29335 +\def\douref#1,#2,#3,#4\finish{\begingroup
29338 + \setbox0 = \hbox{\ignorespaces #3}%
29340 + \unhbox0 % third arg given, show only that
29342 + \setbox0 = \hbox{\ignorespaces #2}%
29345 + \unhbox0 % PDF: 2nd arg given, show only it
29347 + \unhbox0\ (\code{#1})% DVI: 2nd arg given, show both it and url
29350 + \code{#1}% only url given, so show it
29356 +% @url synonym for @uref, since that's how everyone uses it.
29360 +% rms does not like angle brackets --karl, 17may97.
29361 +% So now @email is just like @uref, unless we are pdf.
29363 +%\def\email#1{\angleleft{\tt #1}\angleright}
29365 + \def\email#1{\doemail#1,,\finish}
29366 + \def\doemail#1,#2,#3\finish{\begingroup
29368 + \pdfurl{mailto:#1}%
29369 + \setbox0 = \hbox{\ignorespaces #2}%
29370 + \ifdim\wd0>0pt\unhbox0\else\code{#1}\fi
29377 +% Check if we are currently using a typewriter font. Since all the
29378 +% Computer Modern typewriter fonts have zero interword stretch (and
29379 +% shrink), and it is reasonable to expect all typewriter fonts to have
29380 +% this property, we can check that font parameter.
29382 +\def\ifmonospace{\ifdim\fontdimen3\font=0pt }
29384 +% Typeset a dimension, e.g., `in' or `pt'. The only reason for the
29385 +% argument is to make the input look right: @dmn{pt} instead of @dmn{}pt.
29387 +\def\dmn#1{\thinspace #1}
29389 +\def\kbd#1{\def\look{#1}\expandafter\kbdfoo\look??\par}
29391 +% @l was never documented to mean ``switch to the Lisp font'',
29392 +% and it is not used as such in any manual I can find. We need it for
29393 +% Polish suppressed-l. --karl, 22sep96.
29394 +%\def\l#1{{\li #1}\null}
29396 +% Explicit font changes: @r, @sc, undocumented @ii.
29397 +\def\r#1{{\rm #1}} % roman font
29398 +\def\sc#1{{\smallcaps#1}} % smallcaps font
29399 +\def\ii#1{{\it #1}} % italic font
29401 +% @acronym for "FBI", "NATO", and the like.
29402 +% We print this one point size smaller, since it's intended for
29405 +\def\acronym#1{\doacronym #1,,\finish}
29406 +\def\doacronym#1,#2,#3\finish{%
29407 + {\selectfonts\lsize #1}%
29409 + \ifx\temp\empty \else
29410 + \space ({\unsepspaces \ignorespaces \temp \unskip})%
29414 +% @abbr for "Comput. J." and the like.
29415 +% No font change, but don't do end-of-sentence spacing.
29417 +\def\abbr#1{\doabbr #1,,\finish}
29418 +\def\doabbr#1,#2,#3\finish{%
29419 + {\plainfrenchspacing #1}%
29421 + \ifx\temp\empty \else
29422 + \space ({\unsepspaces \ignorespaces \temp \unskip})%
29426 +% @pounds{} is a sterling sign, which Knuth put in the CM italic font.
29428 +\def\pounds{{\it\$}}
29430 +% @euro{} comes from a separate font, depending on the current style.
29431 +% We use the free feym* fonts from the eurosym package by Henrik
29432 +% Theiling, which support regular, slanted, bold and bold slanted (and
29433 +% "outlined" (blackboard board, sort of) versions, which we don't need).
29434 +% It is available from http://www.ctan.org/tex-archive/fonts/eurosym.
29436 +% Although only regular is the truly official Euro symbol, we ignore
29437 +% that. The Euro is designed to be slightly taller than the regular
29443 +% feybo - bold slanted
29445 +% There is no good (free) typewriter version, to my knowledge.
29446 +% A feymr10 euro is ~7.3pt wide, while a normal cmtt10 char is ~5.25pt wide.
29449 +% Also doesn't work in math. Do we need to do math with euro symbols?
29453 +\def\euro{{\eurofont e}}
29455 + % We set the font at each command, rather than predefining it in
29456 + % \textfonts and the other font-switching commands, so that
29457 + % installations which never need the symbol don't have to have the
29458 + % font installed.
29460 + % There is only one designed size (nominal 10pt), so we always scale
29461 + % that to the current nominal size.
29463 + % By the way, simply using "at 1em" works for cmr10 and the like, but
29464 + % does not work for cmbx10 and other extended/shrunken fonts.
29466 + \def\eurosize{\csname\curfontsize nominalsize\endcsname}%
29468 + \ifx\curfontstyle\bfstylename
29470 + \font\thiseurofont = \ifusingit{feybo10}{feybr10} at \eurosize
29473 + \font\thiseurofont = \ifusingit{feymo10}{feymr10} at \eurosize
29478 +% @registeredsymbol - R in a circle. The font for the R should really
29479 +% be smaller yet, but lllsize is the best we can do for now.
29480 +% Adapted from the plain.tex definition of \copyright.
29482 +\def\registeredsymbol{%
29483 + $^{{\ooalign{\hfil\raise.07ex\hbox{\selectfonts\lllsize R}%
29484 + \hfil\crcr\Orb}}%
29488 +% Laurent Siebenmann reports \Orb undefined with:
29489 +% Textures 1.7.7 (preloaded format=plain 93.10.14) (68K) 16 APR 2004 02:38
29490 +% so we'll define it if necessary.
29492 +\ifx\Orb\undefined
29493 +\def\Orb{\mathhexbox20D}
29497 +\message{page headings,}
29499 +\newskip\titlepagetopglue \titlepagetopglue = 1.5in
29500 +\newskip\titlepagebottomglue \titlepagebottomglue = 2pc
29502 +% First the title page. Must do @settitle before @titlepage.
29503 +\newif\ifseenauthor
29504 +\newif\iffinishedtitlepage
29506 +% Do an implicit @contents or @shortcontents after @end titlepage if the
29507 +% user says @setcontentsaftertitlepage or @setshortcontentsaftertitlepage.
29509 +\newif\ifsetcontentsaftertitlepage
29510 + \let\setcontentsaftertitlepage = \setcontentsaftertitlepagetrue
29511 +\newif\ifsetshortcontentsaftertitlepage
29512 + \let\setshortcontentsaftertitlepage = \setshortcontentsaftertitlepagetrue
29514 +\parseargdef\shorttitlepage{\begingroup\hbox{}\vskip 1.5in \chaprm \centerline{#1}%
29515 + \endgroup\page\hbox{}\page}
29517 +\envdef\titlepage{%
29518 + % Open one extra group, as we want to close it in the middle of \Etitlepage.
29520 + \parindent=0pt \textfonts
29521 + % Leave some space at the very top of the page.
29522 + \vglue\titlepagetopglue
29523 + % No rule at page bottom unless we print one at the top with @title.
29524 + \finishedtitlepagetrue
29526 + % Most title ``pages'' are actually two pages long, with space
29527 + % at the top of the second. We don't want the ragged left on the second.
29528 + \let\oldpage = \page
29530 + \iffinishedtitlepage\else
29533 + \let\page = \oldpage
29540 + \iffinishedtitlepage\else
29543 + % It is important to do the page break before ending the group,
29544 + % because the headline and footline are only empty inside the group.
29545 + % If we use the new definition of \page, we always get a blank page
29546 + % after the title page, which we certainly don't want.
29550 + % Need this before the \...aftertitlepage checks so that if they are
29551 + % in effect the toc pages will come out with page numbers.
29554 + % If they want short, they certainly want long too.
29555 + \ifsetshortcontentsaftertitlepage
29558 + \global\let\shortcontents = \relax
29559 + \global\let\contents = \relax
29562 + \ifsetcontentsaftertitlepage
29564 + \global\let\contents = \relax
29565 + \global\let\shortcontents = \relax
29569 +\def\finishtitlepage{%
29570 + \vskip4pt \hrule height 2pt width \hsize
29571 + \vskip\titlepagebottomglue
29572 + \finishedtitlepagetrue
29575 +%%% Macros to be used within @titlepage:
29577 +\let\subtitlerm=\tenrm
29578 +\def\subtitlefont{\subtitlerm \normalbaselineskip = 13pt \normalbaselines}
29580 +\def\authorfont{\authorrm \normalbaselineskip = 16pt \normalbaselines
29581 + \let\tt=\authortt}
29583 +\parseargdef\title{%
29584 + \checkenv\titlepage
29585 + \leftline{\titlefonts\rm #1}
29586 + % print a rule at the page bottom also.
29587 + \finishedtitlepagefalse
29588 + \vskip4pt \hrule height 4pt width \hsize \vskip4pt
29591 +\parseargdef\subtitle{%
29592 + \checkenv\titlepage
29593 + {\subtitlefont \rightline{#1}}%
29596 +% @author should come last, but may come many times.
29597 +% It can also be used inside @quotation.
29599 +\parseargdef\author{%
29600 + \def\temp{\quotation}%
29601 + \ifx\thisenv\temp
29602 + \def\quotationauthor{#1}% printed in \Equotation.
29604 + \checkenv\titlepage
29605 + \ifseenauthor\else \vskip 0pt plus 1filll \seenauthortrue \fi
29606 + {\authorfont \leftline{#1}}%
29611 +%%% Set up page headings and footings.
29613 +\let\thispage=\folio
29615 +\newtoks\evenheadline % headline on even pages
29616 +\newtoks\oddheadline % headline on odd pages
29617 +\newtoks\evenfootline % footline on even pages
29618 +\newtoks\oddfootline % footline on odd pages
29620 +% Now make TeX use those variables
29621 +\headline={{\textfonts\rm \ifodd\pageno \the\oddheadline
29622 + \else \the\evenheadline \fi}}
29623 +\footline={{\textfonts\rm \ifodd\pageno \the\oddfootline
29624 + \else \the\evenfootline \fi}\HEADINGShook}
29625 +\let\HEADINGShook=\relax
29627 +% Commands to set those variables.
29628 +% For example, this is what @headings on does
29629 +% @evenheading @thistitle|@thispage|@thischapter
29630 +% @oddheading @thischapter|@thispage|@thistitle
29631 +% @evenfooting @thisfile||
29632 +% @oddfooting ||@thisfile
29635 +\def\evenheading{\parsearg\evenheadingxxx}
29636 +\def\evenheadingxxx #1{\evenheadingyyy #1\|\|\|\|\finish}
29637 +\def\evenheadingyyy #1\|#2\|#3\|#4\finish{%
29638 +\global\evenheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}}}
29640 +\def\oddheading{\parsearg\oddheadingxxx}
29641 +\def\oddheadingxxx #1{\oddheadingyyy #1\|\|\|\|\finish}
29642 +\def\oddheadingyyy #1\|#2\|#3\|#4\finish{%
29643 +\global\oddheadline={\rlap{\centerline{#2}}\line{#1\hfil#3}}}
29645 +\parseargdef\everyheading{\oddheadingxxx{#1}\evenheadingxxx{#1}}%
29647 +\def\evenfooting{\parsearg\evenfootingxxx}
29648 +\def\evenfootingxxx #1{\evenfootingyyy #1\|\|\|\|\finish}
29649 +\def\evenfootingyyy #1\|#2\|#3\|#4\finish{%
29650 +\global\evenfootline={\rlap{\centerline{#2}}\line{#1\hfil#3}}}
29652 +\def\oddfooting{\parsearg\oddfootingxxx}
29653 +\def\oddfootingxxx #1{\oddfootingyyy #1\|\|\|\|\finish}
29654 +\def\oddfootingyyy #1\|#2\|#3\|#4\finish{%
29655 + \global\oddfootline = {\rlap{\centerline{#2}}\line{#1\hfil#3}}%
29657 + % Leave some space for the footline. Hopefully ok to assume
29658 + % @evenfooting will not be used by itself.
29659 + \global\advance\pageheight by -\baselineskip
29660 + \global\advance\vsize by -\baselineskip
29663 +\parseargdef\everyfooting{\oddfootingxxx{#1}\evenfootingxxx{#1}}
29666 +% @headings double turns headings on for double-sided printing.
29667 +% @headings single turns headings on for single-sided printing.
29668 +% @headings off turns them off.
29669 +% @headings on same as @headings double, retained for compatibility.
29670 +% @headings after turns on double-sided headings after this page.
29671 +% @headings doubleafter turns on double-sided headings after this page.
29672 +% @headings singleafter turns on single-sided headings after this page.
29673 +% By default, they are off at the start of a document,
29674 +% and turned `on' after @end titlepage.
29676 +\def\headings #1 {\csname HEADINGS#1\endcsname}
29678 +\def\HEADINGSoff{%
29679 +\global\evenheadline={\hfil} \global\evenfootline={\hfil}
29680 +\global\oddheadline={\hfil} \global\oddfootline={\hfil}}
29682 +% When we turn headings on, set the page number to 1.
29683 +% For double-sided printing, put current file name in lower left corner,
29684 +% chapter name on inside top of right hand pages, document
29685 +% title on inside top of left hand pages, and page numbers on outside top
29686 +% edge of all pages.
29687 +\def\HEADINGSdouble{%
29689 +\global\evenfootline={\hfil}
29690 +\global\oddfootline={\hfil}
29691 +\global\evenheadline={\line{\folio\hfil\thistitle}}
29692 +\global\oddheadline={\line{\thischapter\hfil\folio}}
29693 +\global\let\contentsalignmacro = \chapoddpage
29695 +\let\contentsalignmacro = \chappager
29697 +% For single-sided printing, chapter title goes across top left of page,
29698 +% page number on top right.
29699 +\def\HEADINGSsingle{%
29701 +\global\evenfootline={\hfil}
29702 +\global\oddfootline={\hfil}
29703 +\global\evenheadline={\line{\thischapter\hfil\folio}}
29704 +\global\oddheadline={\line{\thischapter\hfil\folio}}
29705 +\global\let\contentsalignmacro = \chappager
29707 +\def\HEADINGSon{\HEADINGSdouble}
29709 +\def\HEADINGSafter{\let\HEADINGShook=\HEADINGSdoublex}
29710 +\let\HEADINGSdoubleafter=\HEADINGSafter
29711 +\def\HEADINGSdoublex{%
29712 +\global\evenfootline={\hfil}
29713 +\global\oddfootline={\hfil}
29714 +\global\evenheadline={\line{\folio\hfil\thistitle}}
29715 +\global\oddheadline={\line{\thischapter\hfil\folio}}
29716 +\global\let\contentsalignmacro = \chapoddpage
29719 +\def\HEADINGSsingleafter{\let\HEADINGShook=\HEADINGSsinglex}
29720 +\def\HEADINGSsinglex{%
29721 +\global\evenfootline={\hfil}
29722 +\global\oddfootline={\hfil}
29723 +\global\evenheadline={\line{\thischapter\hfil\folio}}
29724 +\global\oddheadline={\line{\thischapter\hfil\folio}}
29725 +\global\let\contentsalignmacro = \chappager
29728 +% Subroutines used in generating headings
29729 +% This produces Day Month Year style of output.
29730 +% Only define if not already defined, in case a txi-??.tex file has set
29731 +% up a different format (e.g., txi-cs.tex does this).
29732 +\ifx\today\undefined
29734 + \number\day\space
29736 + \or\putwordMJan\or\putwordMFeb\or\putwordMMar\or\putwordMApr
29737 + \or\putwordMMay\or\putwordMJun\or\putwordMJul\or\putwordMAug
29738 + \or\putwordMSep\or\putwordMOct\or\putwordMNov\or\putwordMDec
29740 + \space\number\year}
29743 +% @settitle line... specifies the title of the document, for headings.
29744 +% It generates no output of its own.
29745 +\def\thistitle{\putwordNoTitle}
29746 +\def\settitle{\parsearg{\gdef\thistitle}}
29750 +% Tables -- @table, @ftable, @vtable, @item(x).
29752 +% default indentation of table text
29753 +\newdimen\tableindent \tableindent=.8in
29754 +% default indentation of @itemize and @enumerate text
29755 +\newdimen\itemindent \itemindent=.3in
29756 +% margin between end of table item and start of table text.
29757 +\newdimen\itemmargin \itemmargin=.1in
29759 +% used internally for \itemindent minus \itemmargin
29762 +% Note @table, @ftable, and @vtable define @item, @itemx, etc., with
29764 +% They also define \itemindex
29765 +% to index the item name in whatever manner is desired (perhaps none).
29767 +\newif\ifitemxneedsnegativevskip
29769 +\def\itemxpar{\par\ifitemxneedsnegativevskip\nobreak\vskip-\parskip\nobreak\fi}
29771 +\def\internalBitem{\smallbreak \parsearg\itemzzz}
29772 +\def\internalBitemx{\itemxpar \parsearg\itemzzz}
29774 +\def\itemzzz #1{\begingroup %
29775 + \advance\hsize by -\rightskip
29776 + \advance\hsize by -\tableindent
29777 + \setbox0=\hbox{\itemindicate{#1}}%
29779 + \nobreak % This prevents a break before @itemx.
29781 + % If the item text does not fit in the space we have, put it on a line
29782 + % by itself, and do not allow a page break either before or after that
29783 + % line. We do not start a paragraph here because then if the next
29784 + % command is, e.g., @kindex, the whatsit would get put into the
29785 + % horizontal list on a line by itself, resulting in extra blank space.
29786 + \ifdim \wd0>\itemmax
29788 + % Make this a paragraph so we get the \parskip glue and wrapping,
29789 + % but leave it ragged-right.
29791 + \advance\leftskip by-\tableindent
29792 + \advance\hsize by\tableindent
29793 + \advance\rightskip by0pt plus1fil
29794 + \leavevmode\unhbox0\par
29797 + % We're going to be starting a paragraph, but we don't want the
29798 + % \parskip glue -- logically it's part of the @item we just started.
29799 + \nobreak \vskip-\parskip
29801 + % Stop a page break at the \parskip glue coming up. However, if
29802 + % what follows is an environment such as @example, there will be no
29803 + % \parskip glue; then the negative vskip we just inserted would
29804 + % cause the example and the item to crash together. So we use this
29805 + % bizarre value of 10001 as a signal to \aboveenvbreak to insert
29806 + % \parskip glue after all. Section titles are handled this way also.
29810 + \itemxneedsnegativevskipfalse
29812 + % The item text fits into the space. Start a paragraph, so that the
29813 + % following text (if any) will end up on the same line.
29815 + % Do this with kerns and \unhbox so that if there is a footnote in
29816 + % the item text, it can migrate to the main vertical list and
29817 + % eventually be printed.
29818 + \nobreak\kern-\tableindent
29819 + \dimen0 = \itemmax \advance\dimen0 by \itemmargin \advance\dimen0 by -\wd0
29821 + \nobreak\kern\dimen0
29823 + \itemxneedsnegativevskiptrue
29827 +\def\item{\errmessage{@item while not in a list environment}}
29828 +\def\itemx{\errmessage{@itemx while not in a list environment}}
29830 +% @table, @ftable, @vtable.
29832 + \let\itemindex\gobble
29833 + \tablecheck{table}%
29836 + \def\itemindex ##1{\doind {fn}{\code{##1}}}%
29837 + \tablecheck{ftable}%
29840 + \def\itemindex ##1{\doind {vr}{\code{##1}}}%
29841 + \tablecheck{vtable}%
29843 +\def\tablecheck#1{%
29844 + \ifnum \the\catcode`\^^M=\active
29846 + \errmessage{This command won't work in this context; perhaps the problem is
29847 + that we are \inenvironment\thisenv}%
29848 + \def\next{\doignore{#1}}%
29855 + \def\itemindicate{#1}%
29860 + \makevalueexpandable
29861 + \edef\temp{\noexpand\tablez #1\space\space\space}%
29863 + }\temp \endtablez
29865 +\def\tablez #1 #2 #3 #4\endtablez{%
29867 + \ifnum 0#1>0 \advance \leftskip by #1\mil \fi
29868 + \ifnum 0#2>0 \tableindent=#2\mil \fi
29869 + \ifnum 0#3>0 \advance \rightskip by #3\mil \fi
29870 + \itemmax=\tableindent
29871 + \advance \itemmax by -\itemmargin
29872 + \advance \leftskip by \tableindent
29873 + \exdentamount=\tableindent
29875 + \parskip = \smallskipamount
29876 + \ifdim \parskip=0pt \parskip=2pt \fi
29877 + \let\item = \internalBitem
29878 + \let\itemx = \internalBitemx
29880 +\def\Etable{\endgraf\afterenvbreak}
29881 +\let\Eftable\Etable
29882 +\let\Evtable\Etable
29883 +\let\Eitemize\Etable
29884 +\let\Eenumerate\Etable
29886 +% This is the counter used by @enumerate, which is really @itemize
29890 +\envdef\itemize{\parsearg\doitemize}
29892 +\def\doitemize#1{%
29894 + \itemmax=\itemindent
29895 + \advance\itemmax by -\itemmargin
29896 + \advance\leftskip by \itemindent
29897 + \exdentamount=\itemindent
29899 + \parskip=\smallskipamount
29900 + \ifdim\parskip=0pt \parskip=2pt \fi
29901 + \def\itemcontents{#1}%
29902 + % @itemize with no arg is equivalent to @itemize @bullet.
29903 + \ifx\itemcontents\empty\def\itemcontents{\bullet}\fi
29904 + \let\item=\itemizeitem
29907 +% Definition of @item while inside @itemize and @enumerate.
29909 +\def\itemizeitem{%
29910 + \advance\itemno by 1 % for enumerations
29911 + {\let\par=\endgraf \smallbreak}% reasonable place to break
29913 + % If the document has an @itemize directly after a section title, a
29914 + % \nobreak will be last on the list, and \sectionheading will have
29915 + % done a \vskip-\parskip. In that case, we don't want to zero
29916 + % parskip, or the item text will crash with the heading. On the
29917 + % other hand, when there is normal text preceding the item (as there
29918 + % usually is), we do want to zero parskip, or there would be too much
29919 + % space. In that case, we won't have a \nobreak before. At least
29920 + % that's the theory.
29921 + \ifnum\lastpenalty<10000 \parskip=0in \fi
29923 + \hbox to 0pt{\hss \itemcontents \kern\itemmargin}%
29924 + \vadjust{\penalty 1200}}% not good to break after first line of item.
29928 +% \splitoff TOKENS\endmark defines \first to be the first token in
29929 +% TOKENS, and \rest to be the remainder.
29931 +\def\splitoff#1#2\endmark{\def\first{#1}\def\rest{#2}}%
29933 +% Allow an optional argument of an uppercase letter, lowercase letter,
29934 +% or number, to specify the first label in the enumerated list. No
29935 +% argument is the same as `1'.
29937 +\envparseargdef\enumerate{\enumeratey #1 \endenumeratey}
29938 +\def\enumeratey #1 #2\endenumeratey{%
29939 + % If we were given no argument, pretend we were given `1'.
29941 + \ifx\thearg\empty \def\thearg{1}\fi
29943 + % Detect if the argument is a single token. If so, it might be a
29944 + % letter. Otherwise, the only valid thing it can be is a number.
29945 + % (We will always have one token, because of the test we just made.
29946 + % This is a good thing, since \splitoff doesn't work given nothing at
29947 + % all -- the first parameter is undelimited.)
29948 + \expandafter\splitoff\thearg\endmark
29950 + % Only one token in the argument. It could still be anything.
29951 + % A ``lowercase letter'' is one whose \lccode is nonzero.
29952 + % An ``uppercase letter'' is one whose \lccode is both nonzero, and
29953 + % not equal to itself.
29954 + % Otherwise, we assume it's a number.
29956 + % We need the \relax at the end of the \ifnum lines to stop TeX from
29957 + % continuing to look for a <number>.
29959 + \ifnum\lccode\expandafter`\thearg=0\relax
29960 + \numericenumerate % a number (we hope)
29963 + \ifnum\lccode\expandafter`\thearg=\expandafter`\thearg\relax
29964 + \lowercaseenumerate % lowercase letter
29966 + \uppercaseenumerate % uppercase letter
29970 + % Multiple tokens in the argument. We hope it's a number.
29971 + \numericenumerate
29975 +% An @enumerate whose labels are integers. The starting integer is
29976 +% given in \thearg.
29978 +\def\numericenumerate{%
29979 + \itemno = \thearg
29980 + \startenumeration{\the\itemno}%
29983 +% The starting (lowercase) letter is in \thearg.
29984 +\def\lowercaseenumerate{%
29985 + \itemno = \expandafter`\thearg
29986 + \startenumeration{%
29987 + % Be sure we're not beyond the end of the alphabet.
29989 + \errmessage{No more lowercase letters in @enumerate; get a bigger
29992 + \char\lccode\itemno
29996 +% The starting (uppercase) letter is in \thearg.
29997 +\def\uppercaseenumerate{%
29998 + \itemno = \expandafter`\thearg
29999 + \startenumeration{%
30000 + % Be sure we're not beyond the end of the alphabet.
30002 + \errmessage{No more uppercase letters in @enumerate; get a bigger
30005 + \char\uccode\itemno
30009 +% Call \doitemize, adding a period to the first argument and supplying the
30010 +% common last two arguments. Also subtract one from the initial value in
30011 +% \itemno, since @item increments \itemno.
30013 +\def\startenumeration#1{%
30014 + \advance\itemno by -1
30015 + \doitemize{#1.}\flushcr
30018 +% @alphaenumerate and @capsenumerate are abbreviations for giving an arg
30021 +\def\alphaenumerate{\enumerate{a}}
30022 +\def\capsenumerate{\enumerate{A}}
30023 +\def\Ealphaenumerate{\Eenumerate}
30024 +\def\Ecapsenumerate{\Eenumerate}
30027 +% @multitable macros
30028 +% Amy Hendrickson, 8/18/94, 3/6/96
30030 +% @multitable ... @end multitable will make as many columns as desired.
30031 +% Contents of each column will wrap at width given in preamble. Width
30032 +% can be specified either with sample text given in a template line,
30033 +% or in percent of \hsize, the current width of text on page.
30035 +% Table can continue over pages but will only break between lines.
30037 +% To make preamble:
30039 +% Either define widths of columns in terms of percent of \hsize:
30040 +% @multitable @columnfractions .25 .3 .45
30043 +% Numbers following @columnfractions are the percent of the total
30044 +% current hsize to be used for each column. You may use as many
30045 +% columns as desired.
30048 +% Or use a template:
30049 +% @multitable {Column 1 template} {Column 2 template} {Column 3 template}
30051 +% using the widest term desired in each column.
30053 +% Each new table line starts with @item, each subsequent new column
30054 +% starts with @tab. Empty columns may be produced by supplying @tab's
30055 +% with nothing between them for as many times as empty columns are needed,
30056 +% ie, @tab@tab@tab will produce two empty columns.
30058 +% @item, @tab do not need to be on their own lines, but it will not hurt
30061 +% Sample multitable:
30063 +% @multitable {Column 1 template} {Column 2 template} {Column 3 template}
30064 +% @item first col stuff @tab second col stuff @tab third col
30068 +% second col stuff
30071 +% @item first col stuff @tab second col stuff
30072 +% @tab Many paragraphs of text may be used in any column.
30074 +% They will wrap at the width determined by the template.
30075 +% @item@tab@tab This will be in third column.
30078 +% Default dimensions may be reset by user.
30079 +% @multitableparskip is vertical space between paragraphs in table.
30080 +% @multitableparindent is paragraph indent in table.
30081 +% @multitablecolmargin is horizontal space to be left between columns.
30082 +% @multitablelinespace is space to leave between table items, baseline
30084 +% 0pt means it depends on current normal line spacing.
30086 +\newskip\multitableparskip
30087 +\newskip\multitableparindent
30088 +\newdimen\multitablecolspace
30089 +\newskip\multitablelinespace
30090 +\multitableparskip=0pt
30091 +\multitableparindent=6pt
30092 +\multitablecolspace=12pt
30093 +\multitablelinespace=0pt
30095 +% Macros used to set up halign preamble:
30097 +\let\endsetuptable\relax
30098 +\def\xendsetuptable{\endsetuptable}
30099 +\let\columnfractions\relax
30100 +\def\xcolumnfractions{\columnfractions}
30101 +\newif\ifsetpercent
30103 +% #1 is the @columnfraction, usually a decimal number like .5, but might
30104 +% be just 1. We just use it, whatever it is.
30106 +\def\pickupwholefraction#1 {%
30107 + \global\advance\colcount by 1
30108 + \expandafter\xdef\csname col\the\colcount\endcsname{#1\hsize}%
30112 +\newcount\colcount
30113 +\def\setuptable#1{%
30114 + \def\firstarg{#1}%
30115 + \ifx\firstarg\xendsetuptable
30118 + \ifx\firstarg\xcolumnfractions
30119 + \global\setpercenttrue
30122 + \let\go\pickupwholefraction
30124 + \global\advance\colcount by 1
30125 + \setbox0=\hbox{#1\unskip\space}% Add a normal word space as a
30126 + % separator; typically that is always in the input, anyway.
30127 + \expandafter\xdef\csname col\the\colcount\endcsname{\the\wd0}%
30130 + \ifx\go\pickupwholefraction
30131 + % Put the argument back for the \pickupwholefraction call, so
30132 + % we'll always have a period there to be parsed.
30133 + \def\go{\pickupwholefraction#1}%
30135 + \let\go = \setuptable
30141 +% multitable-only commands.
30143 +% @headitem starts a heading row, which we typeset in bold.
30144 +% Assignments have to be global since we are inside the implicit group
30145 +% of an alignment entry. Note that \everycr resets \everytab.
30146 +\def\headitem{\checkenv\multitable \crcr \global\everytab={\bf}\the\everytab}%
30148 +% A \tab used to include \hskip1sp. But then the space in a template
30149 +% line is not enough. That is bad. So let's go back to just `&' until
30150 +% we encounter the problem it was intended to solve again.
30151 +% --karl, nathan@acm.org, 20apr99.
30152 +\def\tab{\checkenv\multitable &\the\everytab}%
30154 +% @multitable ... @end multitable definitions:
30156 +\newtoks\everytab % insert after every tab.
30158 +\envdef\multitable{%
30160 + \startsavinginserts
30162 + % @item within a multitable starts a normal row.
30163 + % We use \def instead of \let so that if one of the multitable entries
30164 + % contains an @itemize, we don't choke on the \item (seen as \crcr aka
30165 + % \endtemplate) expanding \doitemize.
30166 + \def\item{\crcr}%
30170 + \setmultitablespacing
30171 + \parskip=\multitableparskip
30172 + \parindent=\multitableparindent
30173 + \overfullrule=0pt
30174 + \global\colcount=0
30178 + \global\everytab={}%
30179 + \global\colcount=0 % Reset the column counter.
30180 + % Check for saved footnotes, etc.
30182 + % Keeps underfull box messages off when table breaks over pages.
30184 + % Maybe so, but it also creates really weird page breaks when the
30185 + % table breaks over pages. Wouldn't \vfil be better? Wait until the
30186 + % problem manifests itself, so it can be fixed for real --karl.
30190 + \parsearg\domultitable
30192 +\def\domultitable#1{%
30193 + % To parse everything between @multitable and @item:
30194 + \setuptable#1 \endsetuptable
30196 + % This preamble sets up a generic column definition, which will
30197 + % be used as many times as user calls for columns.
30198 + % \vtop will set a single line and will also let text wrap and
30199 + % continue for many paragraphs if desired.
30200 + \halign\bgroup &%
30201 + \global\advance\colcount by 1
30204 + % Use the current \colcount to find the correct column width:
30205 + \hsize=\expandafter\csname col\the\colcount\endcsname
30207 + % In order to keep entries from bumping into each other
30208 + % we will add a \leftskip of \multitablecolspace to all columns after
30211 + % If a template has been used, we will add \multitablecolspace
30212 + % to the width of each template entry.
30214 + % If the user has set preamble in terms of percent of \hsize we will
30215 + % use that dimension as the width of the column, and the \leftskip
30216 + % will keep entries from bumping into each other. Table will start at
30217 + % left margin and final column will justify at right margin.
30219 + % Make sure we don't inherit \rightskip from the outer environment.
30221 + \ifnum\colcount=1
30222 + % The first column will be indented with the surrounding text.
30223 + \advance\hsize by\leftskip
30225 + \ifsetpercent \else
30226 + % If user has not set preamble in terms of percent of \hsize
30227 + % we will advance \hsize by \multitablecolspace.
30228 + \advance\hsize by \multitablecolspace
30230 + % In either case we will make \leftskip=\multitablecolspace:
30231 + \leftskip=\multitablecolspace
30233 + % Ignoring space at the beginning and end avoids an occasional spurious
30234 + % blank line, when TeX decides to break the line at the space before the
30235 + % box from the multistrut, so the strut ends up on a line by itself.
30237 + % @multitable @columnfractions .11 .89
30239 + % @tab Legal holiday which is valid in major parts of the whole country.
30240 + % Is automatically provided with highlighting sequences respectively
30241 + % marking characters.
30242 + \noindent\ignorespaces##\unskip\multistrut
30245 +\def\Emultitable{%
30247 + \egroup % end the \halign
30248 + \global\setpercentfalse
30251 +\def\setmultitablespacing{%
30252 + \def\multistrut{\strut}% just use the standard line spacing
30254 + % Compute \multitablelinespace (if not defined by user) for use in
30255 + % \multitableparskip calculation. We used define \multistrut based on
30256 + % this, but (ironically) that caused the spacing to be off.
30257 + % See bug-texinfo report from Werner Lemberg, 31 Oct 2004 12:52:20 +0100.
30258 +\ifdim\multitablelinespace=0pt
30259 +\setbox0=\vbox{X}\global\multitablelinespace=\the\baselineskip
30260 +\global\advance\multitablelinespace by-\ht0
30262 +%% Test to see if parskip is larger than space between lines of
30263 +%% table. If not, do nothing.
30264 +%% If so, set to same dimension as multitablelinespace.
30265 +\ifdim\multitableparskip>\multitablelinespace
30266 +\global\multitableparskip=\multitablelinespace
30267 +\global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller
30268 + %% than skip between lines in the table.
30270 +\ifdim\multitableparskip=0pt
30271 +\global\multitableparskip=\multitablelinespace
30272 +\global\advance\multitableparskip-7pt %% to keep parskip somewhat smaller
30273 + %% than skip between lines in the table.
30277 +\message{conditionals,}
30279 +% @iftex, @ifnotdocbook, @ifnothtml, @ifnotinfo, @ifnotplaintext,
30280 +% @ifnotxml always succeed. They currently do nothing; we don't
30281 +% attempt to check whether the conditionals are properly nested. But we
30282 +% have to remember that they are conditionals, so that @end doesn't
30283 +% attempt to close an environment group.
30286 + \expandafter\let\csname #1\endcsname = \relax
30287 + \expandafter\let\csname iscond.#1\endcsname = 1
30290 +\makecond{ifnotdocbook}
30291 +\makecond{ifnothtml}
30292 +\makecond{ifnotinfo}
30293 +\makecond{ifnotplaintext}
30294 +\makecond{ifnotxml}
30296 +% Ignore @ignore, @ifhtml, @ifinfo, and the like.
30298 +\def\direntry{\doignore{direntry}}
30299 +\def\documentdescription{\doignore{documentdescription}}
30300 +\def\docbook{\doignore{docbook}}
30301 +\def\html{\doignore{html}}
30302 +\def\ifdocbook{\doignore{ifdocbook}}
30303 +\def\ifhtml{\doignore{ifhtml}}
30304 +\def\ifinfo{\doignore{ifinfo}}
30305 +\def\ifnottex{\doignore{ifnottex}}
30306 +\def\ifplaintext{\doignore{ifplaintext}}
30307 +\def\ifxml{\doignore{ifxml}}
30308 +\def\ignore{\doignore{ignore}}
30309 +\def\menu{\doignore{menu}}
30310 +\def\xml{\doignore{xml}}
30312 +% Ignore text until a line `@end #1', keeping track of nested conditionals.
30314 +% A count to remember the depth of nesting.
30315 +\newcount\doignorecount
30317 +\def\doignore#1{\begingroup
30318 + % Scan in ``verbatim'' mode:
30319 + \catcode`\@ = \other
30320 + \catcode`\{ = \other
30321 + \catcode`\} = \other
30323 + % Make sure that spaces turn into tokens that match what \doignoretext wants.
30326 + % Count number of #1's that we've seen.
30327 + \doignorecount = 0
30329 + % Swallow text until we reach the matching `@end #1'.
30333 +{ \catcode`_=11 % We want to use \_STOP_ which cannot appear in texinfo source.
30336 + \gdef\dodoignore#1{%
30337 + % #1 contains the command name as a string, e.g., `ifinfo'.
30339 + % Define a command to find the next `@end #1', which must be on a line
30341 + \long\def\doignoretext##1^^M@end #1{\doignoretextyyy##1^^M@#1\_STOP_}%
30342 + % And this command to find another #1 command, at the beginning of a
30343 + % line. (Otherwise, we would consider a line `@c @ifset', for
30344 + % example, to count as an @ifset for nesting.)
30345 + \long\def\doignoretextyyy##1^^M@#1##2\_STOP_{\doignoreyyy{##2}\_STOP_}%
30347 + % And now expand that command.
30349 + \doignoretext ^^M%
30353 +\def\doignoreyyy#1{%
30355 + \ifx\temp\empty % Nothing found.
30356 + \let\next\doignoretextzzz
30357 + \else % Found a nested condition, ...
30358 + \advance\doignorecount by 1
30359 + \let\next\doignoretextyyy % ..., look for another.
30360 + % If we're here, #1 ends with ^^M\ifinfo (for example).
30362 + \next #1% the token \_STOP_ is present just after this macro.
30365 +% We have to swallow the remaining "\_STOP_".
30367 +\def\doignoretextzzz#1{%
30368 + \ifnum\doignorecount = 0 % We have just found the outermost @end.
30369 + \let\next\enddoignore
30370 + \else % Still inside a nested condition.
30371 + \advance\doignorecount by -1
30372 + \let\next\doignoretext % Look for the next @end.
30377 +% Finish off ignored text.
30378 +\def\enddoignore{\endgroup\ignorespaces}
30381 +% @set VAR sets the variable VAR to an empty value.
30382 +% @set VAR REST-OF-LINE sets VAR to the value REST-OF-LINE.
30384 +% Since we want to separate VAR from REST-OF-LINE (which might be
30385 +% empty), we can't just use \parsearg; we have to insert a space of our
30386 +% own to delimit the rest of the line, and then take it out again if we
30388 +% We rely on the fact that \parsearg sets \catcode`\ =10.
30390 +\parseargdef\set{\setyyy#1 \endsetyyy}
30391 +\def\setyyy#1 #2\endsetyyy{%
30393 + \makevalueexpandable
30395 + \edef\next{\gdef\makecsname{SET#1}}%
30399 + \setzzz#2\endsetzzz
30403 +% Remove the trailing space \setxxx inserted.
30404 +\def\setzzz#1 \endsetzzz{\next{#1}}
30406 +% @clear VAR clears (i.e., unsets) the variable VAR.
30408 +\parseargdef\clear{%
30410 + \makevalueexpandable
30411 + \global\expandafter\let\csname SET#1\endcsname=\relax
30415 +% @value{foo} gets the text saved in variable foo.
30416 +\def\value{\begingroup\makevalueexpandable\valuexxx}
30417 +\def\valuexxx#1{\expandablevalue{#1}\endgroup}
30419 + \catcode`\- = \active \catcode`\_ = \active
30421 + \gdef\makevalueexpandable{%
30422 + \let\value = \expandablevalue
30423 + % We don't want these characters active, ...
30424 + \catcode`\-=\other \catcode`\_=\other
30425 + % ..., but we might end up with active ones in the argument if
30426 + % we're called from @code, as @code{@value{foo-bar_}}, though.
30427 + % So \let them to their normal equivalents.
30428 + \let-\realdash \let_\normalunderscore
30432 +% We have this subroutine so that we can handle at least some @value's
30433 +% properly in indexes (we call \makevalueexpandable in \indexdummies).
30434 +% The command has to be fully expandable (if the variable is set), since
30435 +% the result winds up in the index file. This means that if the
30436 +% variable's value contains other Texinfo commands, it's almost certain
30437 +% it will fail (although perhaps we could fix that with sufficient work
30438 +% to do a one-level expansion on the result, instead of complete).
30440 +\def\expandablevalue#1{%
30441 + \expandafter\ifx\csname SET#1\endcsname\relax
30442 + {[No value for ``#1'']}%
30443 + \message{Variable `#1', used in @value, is not set.}%
30445 + \csname SET#1\endcsname
30449 +% @ifset VAR ... @end ifset reads the `...' iff VAR has been defined
30452 +% To get special treatment of `@end ifset,' call \makeond and the redefine.
30455 +\def\ifset{\parsearg{\doifset{\let\next=\ifsetfail}}}
30456 +\def\doifset#1#2{%
30458 + \makevalueexpandable
30460 + \expandafter\ifx\csname SET#2\endcsname\relax
30461 + #1% If not set, redefine \next.
30466 +\def\ifsetfail{\doignore{ifset}}
30468 +% @ifclear VAR ... @end ifclear reads the `...' iff VAR has never been
30469 +% defined with @set, or has been undefined with @clear.
30471 +% The `\else' inside the `\doifset' parameter is a trick to reuse the
30472 +% above code: if the variable is not set, do nothing, if it is set,
30473 +% then redefine \next to \ifclearfail.
30475 +\makecond{ifclear}
30476 +\def\ifclear{\parsearg{\doifset{\else \let\next=\ifclearfail}}}
30477 +\def\ifclearfail{\doignore{ifclear}}
30479 +% @dircategory CATEGORY -- specify a category of the dir file
30480 +% which this file should belong to. Ignore this in TeX.
30481 +\let\dircategory=\comment
30483 +% @defininfoenclose.
30484 +\let\definfoenclose=\comment
30487 +\message{indexing,}
30488 +% Index generation facilities
30490 +% Define \newwrite to be identical to plain tex's \newwrite
30491 +% except not \outer, so it can be used within macros and \if's.
30492 +\edef\newwrite{\makecsname{ptexnewwrite}}
30494 +% \newindex {foo} defines an index named foo.
30495 +% It automatically defines \fooindex such that
30496 +% \fooindex ...rest of line... puts an entry in the index foo.
30497 +% It also defines \fooindfile to be the number of the output channel for
30498 +% the file that accumulates this index. The file's extension is foo.
30499 +% The name of an index should be no more than 2 characters long
30500 +% for the sake of vms.
30504 + \expandafter\newwrite \csname#1indfile\endcsname
30505 + \openout \csname#1indfile\endcsname \jobname.#1 % Open the file
30507 + \expandafter\xdef\csname#1index\endcsname{% % Define @#1index
30508 + \noexpand\doindex{#1}}
30511 +% @defindex foo == \newindex{foo}
30513 +\def\defindex{\parsearg\newindex}
30515 +% Define @defcodeindex, like @defindex except put all entries in @code.
30517 +\def\defcodeindex{\parsearg\newcodeindex}
30519 +\def\newcodeindex#1{%
30521 + \expandafter\newwrite \csname#1indfile\endcsname
30522 + \openout \csname#1indfile\endcsname \jobname.#1
30524 + \expandafter\xdef\csname#1index\endcsname{%
30525 + \noexpand\docodeindex{#1}}%
30529 +% @synindex foo bar makes index foo feed into index bar.
30530 +% Do this instead of @defindex foo if you don't want it as a separate index.
30532 +% @syncodeindex foo bar similar, but put all entries made for index foo
30535 +\def\synindex#1 #2 {\dosynindex\doindex{#1}{#2}}
30536 +\def\syncodeindex#1 #2 {\dosynindex\docodeindex{#1}{#2}}
30538 +% #1 is \doindex or \docodeindex, #2 the index getting redefined (foo),
30539 +% #3 the target index (bar).
30540 +\def\dosynindex#1#2#3{%
30541 + % Only do \closeout if we haven't already done it, else we'll end up
30542 + % closing the target index.
30543 + \expandafter \ifx\csname donesynindex#2\endcsname \undefined
30544 + % The \closeout helps reduce unnecessary open files; the limit on the
30545 + % Acorn RISC OS is a mere 16 files.
30546 + \expandafter\closeout\csname#2indfile\endcsname
30547 + \expandafter\let\csname\donesynindex#2\endcsname = 1
30549 + % redefine \fooindfile:
30550 + \expandafter\let\expandafter\temp\expandafter=\csname#3indfile\endcsname
30551 + \expandafter\let\csname#2indfile\endcsname=\temp
30552 + % redefine \fooindex:
30553 + \expandafter\xdef\csname#2index\endcsname{\noexpand#1{#3}}%
30556 +% Define \doindex, the driver for all \fooindex macros.
30557 +% Argument #1 is generated by the calling \fooindex macro,
30558 +% and it is "foo", the name of the index.
30560 +% \doindex just uses \parsearg; it calls \doind for the actual work.
30561 +% This is because \doind is more useful to call from other macros.
30563 +% There is also \dosubind {index}{topic}{subtopic}
30564 +% which makes an entry in a two-level index such as the operation index.
30566 +\def\doindex#1{\edef\indexname{#1}\parsearg\singleindexer}
30567 +\def\singleindexer #1{\doind{\indexname}{#1}}
30569 +% like the previous two, but they put @code around the argument.
30570 +\def\docodeindex#1{\edef\indexname{#1}\parsearg\singlecodeindexer}
30571 +\def\singlecodeindexer #1{\doind{\indexname}{\code{#1}}}
30573 +% Take care of Texinfo commands that can appear in an index entry.
30574 +% Since there are some commands we want to expand, and others we don't,
30575 +% we have to laboriously prevent expansion for those that we don't.
30577 +\def\indexdummies{%
30578 + \escapechar = `\\ % use backslash in output files.
30579 + \def\@{@}% change to @@ when we switch to @ as escape char in index files.
30580 + \def\ {\realbackslash\space }%
30581 + % Need these in case \tex is in effect and \{ is a \delimiter again.
30582 + % But can't use \lbracecmd and \rbracecmd because texindex assumes
30583 + % braces and backslashes are used only as delimiters.
30584 + \let\{ = \mylbrace
30585 + \let\} = \myrbrace
30587 + % Do the redefinitions.
30591 +% For the aux and toc files, @ is the escape character. So we want to
30592 +% redefine everything using @ as the escape character (instead of
30593 +% \realbackslash, still used for index files). When everything uses @,
30594 +% this will be simpler.
30599 + \let\{ = \lbraceatcmd
30600 + \let\} = \rbraceatcmd
30602 + % Do the redefinitions.
30606 +% Called from \indexdummies and \atdummies.
30608 +\def\commondummies{%
30610 + % \definedummyword defines \#1 as \string\#1\space, thus effectively
30611 + % preventing its expansion. This is used only for control% words,
30612 + % not control letters, because the \space would be incorrect for
30613 + % control characters, but is needed to separate the control word
30614 + % from whatever follows.
30616 + % For control letters, we have \definedummyletter, which omits the
30619 + % These can be used both for control words that take an argument and
30620 + % those that do not. If it is followed by {arg} in the input, then
30621 + % that will dutifully get written to the index (or wherever).
30623 + \def\definedummyword ##1{\def##1{\string##1\space}}%
30624 + \def\definedummyletter##1{\def##1{\string##1}}%
30625 + \let\definedummyaccent\definedummyletter
30627 + \commondummiesnofonts
30629 + \definedummyletter\_%
30631 + % Non-English letters.
30632 + \definedummyword\AA
30633 + \definedummyword\AE
30634 + \definedummyword\L
30635 + \definedummyword\OE
30636 + \definedummyword\O
30637 + \definedummyword\aa
30638 + \definedummyword\ae
30639 + \definedummyword\l
30640 + \definedummyword\oe
30641 + \definedummyword\o
30642 + \definedummyword\ss
30643 + \definedummyword\exclamdown
30644 + \definedummyword\questiondown
30645 + \definedummyword\ordf
30646 + \definedummyword\ordm
30648 + % Although these internal commands shouldn't show up, sometimes they do.
30649 + \definedummyword\bf
30650 + \definedummyword\gtr
30651 + \definedummyword\hat
30652 + \definedummyword\less
30653 + \definedummyword\sf
30654 + \definedummyword\sl
30655 + \definedummyword\tclose
30656 + \definedummyword\tt
30658 + \definedummyword\LaTeX
30659 + \definedummyword\TeX
30661 + % Assorted special characters.
30662 + \definedummyword\bullet
30663 + \definedummyword\comma
30664 + \definedummyword\copyright
30665 + \definedummyword\registeredsymbol
30666 + \definedummyword\dots
30667 + \definedummyword\enddots
30668 + \definedummyword\equiv
30669 + \definedummyword\error
30670 + \definedummyword\euro
30671 + \definedummyword\expansion
30672 + \definedummyword\minus
30673 + \definedummyword\pounds
30674 + \definedummyword\point
30675 + \definedummyword\print
30676 + \definedummyword\result
30678 + % We want to disable all macros so that they are not expanded by \write.
30681 + \normalturnoffactive
30683 + % Handle some cases of @value -- where it does not contain any
30684 + % (non-fully-expandable) commands.
30685 + \makevalueexpandable
30688 +% \commondummiesnofonts: common to \commondummies and \indexnofonts.
30690 +% Better have this without active chars.
30692 + \catcode`\~=\other
30693 + \gdef\commondummiesnofonts{%
30694 + % Control letters and accents.
30695 + \definedummyletter\!%
30696 + \definedummyaccent\"%
30697 + \definedummyaccent\'%
30698 + \definedummyletter\*%
30699 + \definedummyaccent\,%
30700 + \definedummyletter\.%
30701 + \definedummyletter\/%
30702 + \definedummyletter\:%
30703 + \definedummyaccent\=%
30704 + \definedummyletter\?%
30705 + \definedummyaccent\^%
30706 + \definedummyaccent\`%
30707 + \definedummyaccent\~%
30708 + \definedummyword\u
30709 + \definedummyword\v
30710 + \definedummyword\H
30711 + \definedummyword\dotaccent
30712 + \definedummyword\ringaccent
30713 + \definedummyword\tieaccent
30714 + \definedummyword\ubaraccent
30715 + \definedummyword\udotaccent
30716 + \definedummyword\dotless
30718 + % Texinfo font commands.
30719 + \definedummyword\b
30720 + \definedummyword\i
30721 + \definedummyword\r
30722 + \definedummyword\sc
30723 + \definedummyword\t
30725 + % Commands that take arguments.
30726 + \definedummyword\acronym
30727 + \definedummyword\cite
30728 + \definedummyword\code
30729 + \definedummyword\command
30730 + \definedummyword\dfn
30731 + \definedummyword\emph
30732 + \definedummyword\env
30733 + \definedummyword\file
30734 + \definedummyword\kbd
30735 + \definedummyword\key
30736 + \definedummyword\math
30737 + \definedummyword\option
30738 + \definedummyword\samp
30739 + \definedummyword\strong
30740 + \definedummyword\tie
30741 + \definedummyword\uref
30742 + \definedummyword\url
30743 + \definedummyword\var
30744 + \definedummyword\verb
30745 + \definedummyword\w
30749 +% \indexnofonts is used when outputting the strings to sort the index
30750 +% by, and when constructing control sequence names. It eliminates all
30751 +% control sequences and just writes whatever the best ASCII sort string
30752 +% would be for a given command (usually its argument).
30754 +\def\indexnofonts{%
30755 + % Accent commands should become @asis.
30756 + \def\definedummyaccent##1{\let##1\asis}%
30757 + % We can just ignore other control letters.
30758 + \def\definedummyletter##1{\let##1\empty}%
30759 + % Hopefully, all control words can become @asis.
30760 + \let\definedummyword\definedummyaccent
30762 + \commondummiesnofonts
30764 + % Don't no-op \tt, since it isn't a user-level command
30765 + % and is used in the definitions of the active chars like <, >, |, etc.
30766 + % Likewise with the other plain tex font commands.
30771 + % how to handle braces?
30772 + \def\_{\normalunderscore}%
30774 + % Non-English letters.
30786 + \def\exclamdown{!}%
30787 + \def\questiondown{?}%
30791 + \def\LaTeX{LaTeX}%
30794 + % Assorted special characters.
30795 + % (The following {} will end up in the sort string, but that's ok.)
30796 + \def\bullet{bullet}%
30798 + \def\copyright{copyright}%
30799 + \def\registeredsymbol{R}%
30801 + \def\enddots{...}%
30803 + \def\error{error}%
30805 + \def\expansion{==>}%
30807 + \def\pounds{pounds}%
30812 + % We need to get rid of all macros, leaving only the arguments (if present).
30813 + % Of course this is not nearly correct, but it is the best we can do for now.
30814 + % makeinfo does not expand macros in the argument to @deffn, which ends up
30815 + % writing an index entry, and texindex isn't prepared for an index sort entry
30816 + % that starts with \.
30818 + % Since macro invocations are followed by braces, we can just redefine them
30819 + % to take a single TeX argument. The case of a macro invocation that
30820 + % goes to end-of-line is not handled.
30825 +\let\indexbackslash=0 %overridden during \printindex.
30826 +\let\SETmarginindex=\relax % put index entries in margin (undocumented)?
30828 +% Most index entries go through here, but \dosubind is the general case.
30829 +% #1 is the index name, #2 is the entry text.
30830 +\def\doind#1#2{\dosubind{#1}{#2}{}}
30832 +% Workhorse for all \fooindexes.
30833 +% #1 is name of index, #2 is stuff to put there, #3 is subentry --
30834 +% empty if called from \doind, as we usually are (the main exception
30835 +% is with most defuns, which call us directly).
30837 +\def\dosubind#1#2#3{%
30840 + % Store the main index entry text (including the third arg).
30842 + % If third arg is present, precede it with a space.
30843 + \def\thirdarg{#3}%
30844 + \ifx\thirdarg\empty \else
30845 + \toks0 = \expandafter{\the\toks0 \space #3}%
30848 + \edef\writeto{\csname#1indfile\endcsname}%
30851 + \dosubindsanitize
30859 +% Write the entry in \toks0 to the index file:
30861 +\def\dosubindwrite{%
30862 + % Put the index entry in the margin if desired.
30863 + \ifx\SETmarginindex\relax\else
30864 + \insert\margin{\hbox{\vrule height8pt depth3pt width0pt \the\toks0}}%
30867 + % Remember, we are within a group.
30868 + \indexdummies % Must do this here, since \bf, etc expand at this stage
30869 + \def\backslashcurfont{\indexbackslash}% \indexbackslash isn't defined now
30870 + % so it will be output as is; and it will print as backslash.
30872 + % Process the index entry with all font commands turned off, to
30873 + % get the string to sort by.
30875 + \edef\temp{\the\toks0}% need full expansion
30876 + \xdef\indexsorttmp{\temp}%
30879 + % Set up the complete index entry, with both the sort key and
30880 + % the original text, including any font commands. We write
30881 + % three arguments to \entry to the .?? file (four in the
30882 + % subentry case), texindex reduces to two when writing the .??s
30886 + \string\entry{\indexsorttmp}{\noexpand\folio}{\the\toks0}}%
30891 +% Take care of unwanted page breaks:
30893 +% If a skip is the last thing on the list now, preserve it
30894 +% by backing up by \lastskip, doing the \write, then inserting
30895 +% the skip again. Otherwise, the whatsit generated by the
30896 +% \write will make \lastskip zero. The result is that sequences
30899 +% @tindex whatever
30901 +% will have extra space inserted, because the \medbreak in the
30902 +% start of the @defun won't see the skip inserted by the @end of
30903 +% the previous defun.
30905 +% But don't do any of this if we're not in vertical mode. We
30906 +% don't want to do a \vskip and prematurely end a paragraph.
30908 +% Avoid page breaks due to these extra skips, too.
30910 +% But wait, there is a catch there:
30911 +% We'll have to check whether \lastskip is zero skip. \ifdim is not
30912 +% sufficient for this purpose, as it ignores stretch and shrink parts
30913 +% of the skip. The only way seems to be to check the textual
30914 +% representation of the skip.
30916 +% The following is almost like \def\zeroskipmacro{0.0pt} except that
30917 +% the ``p'' and ``t'' characters have catcode \other, not 11 (letter).
30919 +\edef\zeroskipmacro{\expandafter\the\csname z@skip\endcsname}
30923 +\def\dosubindsanitize{%
30924 + % \lastskip and \lastpenalty cannot both be nonzero simultaneously.
30925 + \skip0 = \lastskip
30926 + \edef\lastskipmacro{\the\lastskip}%
30927 + \count255 = \lastpenalty
30929 + % If \lastskip is nonzero, that means the last item was a
30930 + % skip. And since a skip is discardable, that means this
30931 + % -\skip0 glue we're inserting is preceded by a
30932 + % non-discardable item, therefore it is not a potential
30933 + % breakpoint, therefore no \nobreak needed.
30934 + \ifx\lastskipmacro\zeroskipmacro
30941 + \ifx\lastskipmacro\zeroskipmacro
30942 + % If \lastskip was zero, perhaps the last item was a penalty, and
30943 + % perhaps it was >=10000, e.g., a \nobreak. In that case, we want
30944 + % to re-insert the same penalty (values >10000 are used for various
30945 + % signals); since we just inserted a non-discardable item, any
30946 + % following glue (such as a \parskip) would be a breakpoint. For example:
30948 + % @deffn deffn-whatever
30949 + % @vindex index-whatever
30951 + % would allow a break between the index-whatever whatsit
30952 + % and the "Description." paragraph.
30953 + \ifnum\count255>9999 \penalty\count255 \fi
30955 + % On the other hand, if we had a nonzero \lastskip,
30956 + % this make-up glue would be preceded by a non-discardable item
30957 + % (the whatsit from the \write), so we must insert a \nobreak.
30958 + \nobreak\vskip\skip0
30962 +% The index entry written in the file actually looks like
30963 +% \entry {sortstring}{page}{topic}
30965 +% \entry {sortstring}{page}{topic}{subtopic}
30966 +% The texindex program reads in these files and writes files
30967 +% containing these kinds of lines:
30969 +% before the first topic whose initial is c
30970 +% \entry {topic}{pagelist}
30971 +% for a topic that is used without subtopics
30972 +% \primary {topic}
30973 +% for the beginning of a topic that is used with subtopics
30974 +% \secondary {subtopic}{pagelist}
30975 +% for each subtopic.
30977 +% Define the user-accessible indexing commands
30978 +% @findex, @vindex, @kindex, @cindex.
30980 +\def\findex {\fnindex}
30981 +\def\kindex {\kyindex}
30982 +\def\cindex {\cpindex}
30983 +\def\vindex {\vrindex}
30984 +\def\tindex {\tpindex}
30985 +\def\pindex {\pgindex}
30987 +\def\cindexsub {\begingroup\obeylines\cindexsub}
30989 +\gdef\cindexsub "#1" #2^^M{\endgroup %
30990 +\dosubind{cp}{#2}{#1}}}
30992 +% Define the macros used in formatting output of the sorted index material.
30994 +% @printindex causes a particular index (the ??s file) to get printed.
30995 +% It does not print any chapter heading (usually an @unnumbered).
30997 +\parseargdef\printindex{\begingroup
30998 + \dobreak \chapheadingskip{10000}%
31001 + \tolerance = 9500
31002 + \everypar = {}% don't want the \kern\-parindent from indentation suppression.
31004 + % See if the index file exists and is nonempty.
31005 + % Change catcode of @ here so that if the index file contains
31007 + % as its first line, TeX doesn't complain about mismatched braces
31008 + % (because it thinks @} is a control sequence).
31010 + \openin 1 \jobname.#1s
31012 + % \enddoublecolumns gets confused if there is no text in the index,
31013 + % and it loses the chapter title and the aux file entries for the
31014 + % index. The easiest way to prevent this problem is to make sure
31015 + % there is some text.
31016 + \putwordIndexNonexistent
31019 + % If the index file exists but is empty, then \openin leaves \ifeof
31020 + % false. We have to make TeX try to read something from the file, so
31021 + % it can discover if there is anything in it.
31024 + \putwordIndexIsEmpty
31026 + % Index files are almost Texinfo source, but we use \ as the escape
31027 + % character. It would be better to use @, but that's too big a change
31028 + % to make right now.
31029 + \def\indexbackslash{\backslashcurfont}%
31031 + \escapechar = `\\
31032 + \begindoublecolumns
31033 + \input \jobname.#1s
31034 + \enddoublecolumns
31040 +% These macros are used by the sorted index file itself.
31041 +% Change them to control the appearance of the index.
31044 + % Some minor font changes for the special characters.
31045 + \let\tentt=\sectt \let\tt=\sectt \let\sf=\sectt
31047 + % Remove any glue we may have, we'll be inserting our own.
31050 + % We like breaks before the index initials, so insert a bonus.
31052 + \vskip 0pt plus 3\baselineskip
31054 + \vskip 0pt plus -3\baselineskip
31056 + % Typeset the initial. Making this add up to a whole number of
31057 + % baselineskips increases the chance of the dots lining up from column
31058 + % to column. It still won't often be perfect, because of the stretch
31059 + % we need before each entry, but it's better.
31061 + % No shrink because it confuses \balancecolumns.
31062 + \vskip 1.67\baselineskip plus .5\baselineskip
31063 + \leftline{\secbf #1}%
31064 + % Do our best not to break after the initial.
31066 + \vskip .33\baselineskip plus .1\baselineskip
31069 +% \entry typesets a paragraph consisting of the text (#1), dot leaders, and
31070 +% then page number (#2) flushed to the right margin. It is used for index
31071 +% and table of contents entries. The paragraph is indented by \leftskip.
31073 +% A straightforward implementation would start like this:
31074 +% \def\entry#1#2{...
31075 +% But this frozes the catcodes in the argument, and can cause problems to
31076 +% @code, which sets - active. This problem was fixed by a kludge---
31077 +% ``-'' was active throughout whole index, but this isn't really right.
31079 +% The right solution is to prevent \entry from swallowing the whole text.
31080 +% --kasal, 21nov03
31084 + % Start a new paragraph if necessary, so our assignments below can't
31085 + % affect previous text.
31088 + % Do not fill out the last line with white space.
31089 + \parfillskip = 0in
31091 + % No extra space above this paragraph.
31094 + % Do not prefer a separate line ending with a hyphen to fewer lines.
31095 + \finalhyphendemerits = 0
31097 + % \hangindent is only relevant when the entry text and page number
31098 + % don't both fit on one line. In that case, bob suggests starting the
31099 + % dots pretty far over on the line. Unfortunately, a large
31100 + % indentation looks wrong when the entry text itself is broken across
31101 + % lines. So we use a small indentation and put up with long leaders.
31103 + % \hangafter is reset to 1 (which is the value we want) at the start
31104 + % of each paragraph, so we need not do anything with that.
31105 + \hangindent = 2em
31107 + % When the entry text needs to be broken, just fill out the first line
31108 + % with blank space.
31109 + \rightskip = 0pt plus1fil
31111 + % A bit of stretch before each entry for the benefit of balancing
31113 + \vskip 0pt plus1pt
31115 + % Swallow the left brace of the text (first parameter):
31116 + \afterassignment\doentry
31120 + \bgroup % Instead of the swallowed brace.
31122 + \aftergroup\finishentry
31123 + % And now comes the text of the entry.
31125 +\def\finishentry#1{%
31126 + % #1 is the page number.
31128 + % The following is kludged to not output a line of dots in the index if
31129 + % there are no page numbers. The next person who breaks this will be
31130 + % cursed by a Unix daemon.
31131 + \def\tempa{{\rm }}%
31133 + \edef\tempc{\tempa}%
31134 + \edef\tempd{\tempb}%
31139 + % If we must, put the page number on a line of its own, and fill out
31140 + % this line with blank space. (The \hfil is overwhelmed with the
31141 + % fill leaders glue in \indexdotfill if the page number does fit.)
31143 + \null\nobreak\indexdotfill % Have leaders before the page number.
31145 + % The `\ ' here is removed by the implicit \unskip that TeX does as
31146 + % part of (the primitive) \par. Without it, a spurious underfull
31159 +% Like \dotfill except takes at least 1 em.
31160 +\def\indexdotfill{\cleaders
31161 + \hbox{$\mathsurround=0pt \mkern1.5mu ${\it .}$ \mkern1.5mu$}\hskip 1em plus 1fill}
31163 +\def\primary #1{\line{#1\hfil}}
31165 +\newskip\secondaryindent \secondaryindent=0.5cm
31166 +\def\secondary#1#2{{%
31171 + \noindent\hskip\secondaryindent\hbox{#1}\indexdotfill
31173 + \pdfgettoks#2.\ \the\toksA % The page number ends the paragraph.
31180 +% Define two-column mode, which we use to typeset indexes.
31181 +% Adapted from the TeXbook, page 416, which is to say,
31182 +% the manmac.tex format used to print the TeXbook itself.
31185 +\newbox\partialpage
31186 +\newdimen\doublecolumnhsize
31188 +\def\begindoublecolumns{\begingroup % ended by \enddoublecolumns
31189 + % Grab any single-column material above us.
31192 + % Here is a possibility not foreseen in manmac: if we accumulate a
31193 + % whole lot of material, we might end up calling this \output
31194 + % routine twice in a row (see the doublecol-lose test, which is
31195 + % essentially a couple of indexes with @setchapternewpage off). In
31196 + % that case we just ship out what is in \partialpage with the normal
31197 + % output routine. Generally, \partialpage will be empty when this
31198 + % runs and this will be a no-op. See the indexspread.tex test case.
31199 + \ifvoid\partialpage \else
31200 + \onepageout{\pagecontents\partialpage}%
31203 + \global\setbox\partialpage = \vbox{%
31204 + % Unvbox the main output page.
31206 + \kern-\topskip \kern\baselineskip
31209 + \eject % run that output routine to set \partialpage
31211 + % Use the double-column output routine for subsequent pages.
31212 + \output = {\doublecolumnout}%
31214 + % Change the page size parameters. We could do this once outside this
31215 + % routine, in each of @smallbook, @afourpaper, and the default 8.5x11
31216 + % format, but then we repeat the same computation. Repeating a couple
31217 + % of assignments once per index is clearly meaningless for the
31218 + % execution time, so we may as well do it in one place.
31220 + % First we halve the line length, less a little for the gutter between
31221 + % the columns. We compute the gutter based on the line length, so it
31222 + % changes automatically with the paper format. The magic constant
31223 + % below is chosen so that the gutter has the same value (well, +-<1pt)
31224 + % as it did when we hard-coded it.
31226 + % We put the result in a separate register, \doublecolumhsize, so we
31227 + % can restore it in \pagesofar, after \hsize itself has (potentially)
31228 + % been clobbered.
31230 + \doublecolumnhsize = \hsize
31231 + \advance\doublecolumnhsize by -.04154\hsize
31232 + \divide\doublecolumnhsize by 2
31233 + \hsize = \doublecolumnhsize
31235 + % Double the \vsize as well. (We don't need a separate register here,
31236 + % since nobody clobbers \vsize.)
31240 +% The double-column output routine for all double-column pages except
31243 +\def\doublecolumnout{%
31244 + \splittopskip=\topskip \splitmaxdepth=\maxdepth
31245 + % Get the available space for the double columns -- the normal
31246 + % (undoubled) page height minus any material left over from the
31249 + \divide\dimen@ by 2
31250 + \advance\dimen@ by -\ht\partialpage
31252 + % box0 will be the left-hand column, box2 the right.
31253 + \setbox0=\vsplit255 to\dimen@ \setbox2=\vsplit255 to\dimen@
31254 + \onepageout\pagesofar
31256 + \penalty\outputpenalty
31259 +% Re-output the contents of the output page -- any previous material,
31260 +% followed by the two boxes we just split, in box0 and box2.
31262 + \unvbox\partialpage
31264 + \hsize = \doublecolumnhsize
31265 + \wd0=\hsize \wd2=\hsize
31266 + \hbox to\pagewidth{\box0\hfil\box2}%
31269 +% All done with double columns.
31270 +\def\enddoublecolumns{%
31272 + % Split the last of the double-column material. Leave it on the
31273 + % current page, no automatic page break.
31276 + % If we end up splitting too much material for the current page,
31277 + % though, there will be another page break right after this \output
31278 + % invocation ends. Having called \balancecolumns once, we do not
31279 + % want to call it again. Therefore, reset \output to its normal
31280 + % definition right away. (We hope \balancecolumns will never be
31281 + % called on to balance too much material, but if it is, this makes
31282 + % the output somewhat more palatable.)
31283 + \global\output = {\onepageout{\pagecontents\PAGE}}%
31286 + \endgroup % started in \begindoublecolumns
31288 + % \pagegoal was set to the doubled \vsize above, since we restarted
31289 + % the current page. We're now back to normal single-column
31290 + % typesetting, so reset \pagegoal to the normal \vsize (after the
31291 + % \endgroup where \vsize got restored).
31292 + \pagegoal = \vsize
31295 +% Called at the end of the double column material.
31296 +\def\balancecolumns{%
31297 + \setbox0 = \vbox{\unvbox255}% like \box255 but more efficient, see p.120.
31299 + \advance\dimen@ by \topskip
31300 + \advance\dimen@ by-\baselineskip
31301 + \divide\dimen@ by 2 % target to split to
31302 + %debug\message{final 2-column material height=\the\ht0, target=\the\dimen@.}%
31303 + \splittopskip = \topskip
31304 + % Loop until we get a decent breakpoint.
31306 + \vbadness = 10000
31308 + \global\setbox3 = \copy0
31309 + \global\setbox1 = \vsplit3 to \dimen@
31310 + \ifdim\ht3>\dimen@
31311 + \global\advance\dimen@ by 1pt
31314 + %debug\message{split to \the\dimen@, column heights: \the\ht1, \the\ht3.}%
31315 + \setbox0=\vbox to\dimen@{\unvbox1}%
31316 + \setbox2=\vbox to\dimen@{\unvbox3}%
31320 +\catcode`\@ = \other
31323 +\message{sectioning,}
31324 +% Chapters, sections, etc.
31326 +% \unnumberedno is an oxymoron, of course. But we count the unnumbered
31327 +% sections so that we can refer to them unambiguously in the pdf
31328 +% outlines by their "section number". We avoid collisions with chapter
31329 +% numbers by starting them at 10000. (If a document ever has 10000
31330 +% chapters, we're in trouble anyway, I'm sure.)
31331 +\newcount\unnumberedno \unnumberedno = 10000
31333 +\newcount\secno \secno=0
31334 +\newcount\subsecno \subsecno=0
31335 +\newcount\subsubsecno \subsubsecno=0
31337 +% This counter is funny since it counts through charcodes of letters A, B, ...
31338 +\newcount\appendixno \appendixno = `\@
31340 +% \def\appendixletter{\char\the\appendixno}
31341 +% We do the following ugly conditional instead of the above simple
31342 +% construct for the sake of pdftex, which needs the actual
31343 +% letter in the expansion, not just typeset.
31345 +\def\appendixletter{%
31346 + \ifnum\appendixno=`A A%
31347 + \else\ifnum\appendixno=`B B%
31348 + \else\ifnum\appendixno=`C C%
31349 + \else\ifnum\appendixno=`D D%
31350 + \else\ifnum\appendixno=`E E%
31351 + \else\ifnum\appendixno=`F F%
31352 + \else\ifnum\appendixno=`G G%
31353 + \else\ifnum\appendixno=`H H%
31354 + \else\ifnum\appendixno=`I I%
31355 + \else\ifnum\appendixno=`J J%
31356 + \else\ifnum\appendixno=`K K%
31357 + \else\ifnum\appendixno=`L L%
31358 + \else\ifnum\appendixno=`M M%
31359 + \else\ifnum\appendixno=`N N%
31360 + \else\ifnum\appendixno=`O O%
31361 + \else\ifnum\appendixno=`P P%
31362 + \else\ifnum\appendixno=`Q Q%
31363 + \else\ifnum\appendixno=`R R%
31364 + \else\ifnum\appendixno=`S S%
31365 + \else\ifnum\appendixno=`T T%
31366 + \else\ifnum\appendixno=`U U%
31367 + \else\ifnum\appendixno=`V V%
31368 + \else\ifnum\appendixno=`W W%
31369 + \else\ifnum\appendixno=`X X%
31370 + \else\ifnum\appendixno=`Y Y%
31371 + \else\ifnum\appendixno=`Z Z%
31372 + % The \the is necessary, despite appearances, because \appendixletter is
31373 + % expanded while writing the .toc file. \char\appendixno is not
31374 + % expandable, thus it is written literally, thus all appendixes come out
31375 + % with the same letter (or @) in the toc without it.
31376 + \else\char\the\appendixno
31377 + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
31378 + \fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi}
31380 +% Each @chapter defines this as the name of the chapter.
31381 +% page headings and footings can use it. @section does likewise.
31382 +% However, they are not reliable, because we don't use marks.
31383 +\def\thischapter{}
31384 +\def\thissection{}
31386 +\newcount\absseclevel % used to calculate proper heading level
31387 +\newcount\secbase\secbase=0 % @raisesections/@lowersections modify this count
31389 +% @raisesections: treat @section as chapter, @subsection as section, etc.
31390 +\def\raisesections{\global\advance\secbase by -1}
31391 +\let\up=\raisesections % original BFox name
31393 +% @lowersections: treat @chapter as section, @section as subsection, etc.
31394 +\def\lowersections{\global\advance\secbase by 1}
31395 +\let\down=\lowersections % original BFox name
31397 +% we only have subsub.
31398 +\chardef\maxseclevel = 3
31400 +% A numbered section within an unnumbered changes to unnumbered too.
31401 +% To achive this, remember the "biggest" unnum. sec. we are currently in:
31402 +\chardef\unmlevel = \maxseclevel
31404 +% Trace whether the current chapter is an appendix or not:
31405 +% \chapheadtype is "N" or "A", unnumbered chapters are ignored.
31406 +\def\chapheadtype{N}
31408 +% Choose a heading macro
31409 +% #1 is heading type
31410 +% #2 is heading level
31411 +% #3 is text for heading
31412 +\def\genhead#1#2#3{%
31413 + % Compute the abs. sec. level:
31415 + \advance\absseclevel by \secbase
31416 + % Make sure \absseclevel doesn't fall outside the range:
31417 + \ifnum \absseclevel < 0
31420 + \ifnum \absseclevel > 3
31424 + % The heading type:
31425 + \def\headtype{#1}%
31427 + \ifnum \absseclevel < \unmlevel
31428 + \chardef\unmlevel = \absseclevel
31431 + % Check for appendix sections:
31432 + \ifnum \absseclevel = 0
31433 + \edef\chapheadtype{\headtype}%
31435 + \if \headtype A\if \chapheadtype N%
31436 + \errmessage{@appendix... within a non-appendix chapter}%
31439 + % Check for numbered within unnumbered:
31440 + \ifnum \absseclevel > \unmlevel
31441 + \def\headtype{U}%
31443 + \chardef\unmlevel = 3
31446 + % Now print the heading:
31448 + \ifcase\absseclevel
31449 + \unnumberedzzz{#3}%
31450 + \or \unnumberedseczzz{#3}%
31451 + \or \unnumberedsubseczzz{#3}%
31452 + \or \unnumberedsubsubseczzz{#3}%
31456 + \ifcase\absseclevel
31457 + \appendixzzz{#3}%
31458 + \or \appendixsectionzzz{#3}%
31459 + \or \appendixsubseczzz{#3}%
31460 + \or \appendixsubsubseczzz{#3}%
31463 + \ifcase\absseclevel
31466 + \or \numberedsubseczzz{#3}%
31467 + \or \numberedsubsubseczzz{#3}%
31471 + \suppressfirstparagraphindent
31475 +\def\numhead{\genhead N}
31476 +\def\apphead{\genhead A}
31477 +\def\unnmhead{\genhead U}
31479 +% @chapter, @appendix, @unnumbered. Increment top-level counter, reset
31480 +% all lower-level sectioning counters to zero.
31482 +% Also set \chaplevelprefix, which we prepend to @float sequence numbers
31483 +% (e.g., figures), q.v. By default (before any chapter), that is empty.
31484 +\let\chaplevelprefix = \empty
31486 +\outer\parseargdef\chapter{\numhead0{#1}} % normally numhead0 calls chapterzzz
31487 +\def\chapterzzz#1{%
31488 + % section resetting is \global in case the chapter is in a group, such
31489 + % as an @include file.
31490 + \global\secno=0 \global\subsecno=0 \global\subsubsecno=0
31491 + \global\advance\chapno by 1
31493 + % Used for \float.
31494 + \gdef\chaplevelprefix{\the\chapno.}%
31495 + \resetallfloatnos
31497 + \message{\putwordChapter\space \the\chapno}%
31499 + % Write the actual heading.
31500 + \chapmacro{#1}{Ynumbered}{\the\chapno}%
31502 + % So @section and the like are numbered underneath this chapter.
31503 + \global\let\section = \numberedsec
31504 + \global\let\subsection = \numberedsubsec
31505 + \global\let\subsubsection = \numberedsubsubsec
31508 +\outer\parseargdef\appendix{\apphead0{#1}} % normally apphead0 calls appendixzzz
31509 +\def\appendixzzz#1{%
31510 + \global\secno=0 \global\subsecno=0 \global\subsubsecno=0
31511 + \global\advance\appendixno by 1
31512 + \gdef\chaplevelprefix{\appendixletter.}%
31513 + \resetallfloatnos
31515 + \def\appendixnum{\putwordAppendix\space \appendixletter}%
31516 + \message{\appendixnum}%
31518 + \chapmacro{#1}{Yappendix}{\appendixletter}%
31520 + \global\let\section = \appendixsec
31521 + \global\let\subsection = \appendixsubsec
31522 + \global\let\subsubsection = \appendixsubsubsec
31525 +\outer\parseargdef\unnumbered{\unnmhead0{#1}} % normally unnmhead0 calls unnumberedzzz
31526 +\def\unnumberedzzz#1{%
31527 + \global\secno=0 \global\subsecno=0 \global\subsubsecno=0
31528 + \global\advance\unnumberedno by 1
31530 + % Since an unnumbered has no number, no prefix for figures.
31531 + \global\let\chaplevelprefix = \empty
31532 + \resetallfloatnos
31534 + % This used to be simply \message{#1}, but TeX fully expands the
31535 + % argument to \message. Therefore, if #1 contained @-commands, TeX
31536 + % expanded them. For example, in `@unnumbered The @cite{Book}', TeX
31537 + % expanded @cite (which turns out to cause errors because \cite is meant
31538 + % to be executed, not expanded).
31540 + % Anyway, we don't want the fully-expanded definition of @cite to appear
31541 + % as a result of the \message, we just want `@cite' itself. We use
31542 + % \the<toks register> to achieve this: TeX expands \the<toks> only once,
31543 + % simply yielding the contents of <toks register>. (We also do this for
31544 + % the toc entries.)
31546 + \message{(\the\toks0)}%
31548 + \chapmacro{#1}{Ynothing}{\the\unnumberedno}%
31550 + \global\let\section = \unnumberedsec
31551 + \global\let\subsection = \unnumberedsubsec
31552 + \global\let\subsubsection = \unnumberedsubsubsec
31555 +% @centerchap is like @unnumbered, but the heading is centered.
31556 +\outer\parseargdef\centerchap{%
31557 + % Well, we could do the following in a group, but that would break
31558 + % an assumption that \chapmacro is called at the outermost level.
31559 + % Thus we are safer this way: --kasal, 24feb04
31560 + \let\centerparametersmaybe = \centerparameters
31562 + \let\centerparametersmaybe = \relax
31565 +% @top is like @unnumbered.
31566 +\let\top\unnumbered
31569 +\outer\parseargdef\numberedsec{\numhead1{#1}} % normally calls seczzz
31571 + \global\subsecno=0 \global\subsubsecno=0 \global\advance\secno by 1
31572 + \sectionheading{#1}{sec}{Ynumbered}{\the\chapno.\the\secno}%
31575 +\outer\parseargdef\appendixsection{\apphead1{#1}} % normally calls appendixsectionzzz
31576 +\def\appendixsectionzzz#1{%
31577 + \global\subsecno=0 \global\subsubsecno=0 \global\advance\secno by 1
31578 + \sectionheading{#1}{sec}{Yappendix}{\appendixletter.\the\secno}%
31580 +\let\appendixsec\appendixsection
31582 +\outer\parseargdef\unnumberedsec{\unnmhead1{#1}} % normally calls unnumberedseczzz
31583 +\def\unnumberedseczzz#1{%
31584 + \global\subsecno=0 \global\subsubsecno=0 \global\advance\secno by 1
31585 + \sectionheading{#1}{sec}{Ynothing}{\the\unnumberedno.\the\secno}%
31589 +\outer\parseargdef\numberedsubsec{\numhead2{#1}} % normally calls numberedsubseczzz
31590 +\def\numberedsubseczzz#1{%
31591 + \global\subsubsecno=0 \global\advance\subsecno by 1
31592 + \sectionheading{#1}{subsec}{Ynumbered}{\the\chapno.\the\secno.\the\subsecno}%
31595 +\outer\parseargdef\appendixsubsec{\apphead2{#1}} % normally calls appendixsubseczzz
31596 +\def\appendixsubseczzz#1{%
31597 + \global\subsubsecno=0 \global\advance\subsecno by 1
31598 + \sectionheading{#1}{subsec}{Yappendix}%
31599 + {\appendixletter.\the\secno.\the\subsecno}%
31602 +\outer\parseargdef\unnumberedsubsec{\unnmhead2{#1}} %normally calls unnumberedsubseczzz
31603 +\def\unnumberedsubseczzz#1{%
31604 + \global\subsubsecno=0 \global\advance\subsecno by 1
31605 + \sectionheading{#1}{subsec}{Ynothing}%
31606 + {\the\unnumberedno.\the\secno.\the\subsecno}%
31610 +\outer\parseargdef\numberedsubsubsec{\numhead3{#1}} % normally numberedsubsubseczzz
31611 +\def\numberedsubsubseczzz#1{%
31612 + \global\advance\subsubsecno by 1
31613 + \sectionheading{#1}{subsubsec}{Ynumbered}%
31614 + {\the\chapno.\the\secno.\the\subsecno.\the\subsubsecno}%
31617 +\outer\parseargdef\appendixsubsubsec{\apphead3{#1}} % normally appendixsubsubseczzz
31618 +\def\appendixsubsubseczzz#1{%
31619 + \global\advance\subsubsecno by 1
31620 + \sectionheading{#1}{subsubsec}{Yappendix}%
31621 + {\appendixletter.\the\secno.\the\subsecno.\the\subsubsecno}%
31624 +\outer\parseargdef\unnumberedsubsubsec{\unnmhead3{#1}} %normally unnumberedsubsubseczzz
31625 +\def\unnumberedsubsubseczzz#1{%
31626 + \global\advance\subsubsecno by 1
31627 + \sectionheading{#1}{subsubsec}{Ynothing}%
31628 + {\the\unnumberedno.\the\secno.\the\subsecno.\the\subsubsecno}%
31631 +% These macros control what the section commands do, according
31632 +% to what kind of chapter we are in (ordinary, appendix, or unnumbered).
31633 +% Define them by default for a numbered chapter.
31634 +\let\section = \numberedsec
31635 +\let\subsection = \numberedsubsec
31636 +\let\subsubsection = \numberedsubsubsec
31638 +% Define @majorheading, @heading and @subheading
31640 +% NOTE on use of \vbox for chapter headings, section headings, and such:
31641 +% 1) We use \vbox rather than the earlier \line to permit
31642 +% overlong headings to fold.
31643 +% 2) \hyphenpenalty is set to 10000 because hyphenation in a
31644 +% heading is obnoxious; this forbids it.
31645 +% 3) Likewise, headings look best if no \parindent is used, and
31646 +% if justification is not attempted. Hence \raggedright.
31649 +\def\majorheading{%
31650 + {\advance\chapheadingskip by 10pt \chapbreak }%
31651 + \parsearg\chapheadingzzz
31654 +\def\chapheading{\chapbreak \parsearg\chapheadingzzz}
31655 +\def\chapheadingzzz#1{%
31656 + {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000
31657 + \parindent=0pt\raggedright
31659 + \bigskip \par\penalty 200\relax
31660 + \suppressfirstparagraphindent
31663 +% @heading, @subheading, @subsubheading.
31664 +\parseargdef\heading{\sectionheading{#1}{sec}{Yomitfromtoc}{}
31665 + \suppressfirstparagraphindent}
31666 +\parseargdef\subheading{\sectionheading{#1}{subsec}{Yomitfromtoc}{}
31667 + \suppressfirstparagraphindent}
31668 +\parseargdef\subsubheading{\sectionheading{#1}{subsubsec}{Yomitfromtoc}{}
31669 + \suppressfirstparagraphindent}
31671 +% These macros generate a chapter, section, etc. heading only
31672 +% (including whitespace, linebreaking, etc. around it),
31673 +% given all the information in convenient, parsed form.
31675 +%%% Args are the skip and penalty (usually negative)
31676 +\def\dobreak#1#2{\par\ifdim\lastskip<#1\removelastskip\penalty#2\vskip#1\fi}
31678 +%%% Define plain chapter starts, and page on/off switching for it
31679 +% Parameter controlling skip before chapter headings (if needed)
31681 +\newskip\chapheadingskip
31683 +\def\chapbreak{\dobreak \chapheadingskip {-4000}}
31684 +\def\chappager{\par\vfill\supereject}
31685 +\def\chapoddpage{\chappager \ifodd\pageno \else \hbox to 0pt{} \chappager\fi}
31687 +\def\setchapternewpage #1 {\csname CHAPPAG#1\endcsname}
31690 +\global\let\contentsalignmacro = \chappager
31691 +\global\let\pchapsepmacro=\chapbreak
31692 +\global\let\pagealignmacro=\chappager}
31695 +\global\let\contentsalignmacro = \chappager
31696 +\global\let\pchapsepmacro=\chappager
31697 +\global\let\pagealignmacro=\chappager
31698 +\global\def\HEADINGSon{\HEADINGSsingle}}
31701 +\global\let\contentsalignmacro = \chapoddpage
31702 +\global\let\pchapsepmacro=\chapoddpage
31703 +\global\let\pagealignmacro=\chapoddpage
31704 +\global\def\HEADINGSon{\HEADINGSdouble}}
31708 +% Chapter opening.
31710 +% #1 is the text, #2 is the section type (Ynumbered, Ynothing,
31711 +% Yappendix, Yomitfromtoc), #3 the chapter number.
31713 +% To test against our argument.
31714 +\def\Ynothingkeyword{Ynothing}
31715 +\def\Yomitfromtockeyword{Yomitfromtoc}
31716 +\def\Yappendixkeyword{Yappendix}
31718 +\def\chapmacro#1#2#3{%
31723 + % Have to define \thissection before calling \donoderef, because the
31724 + % xref code eventually uses it. On the other hand, it has to be called
31725 + % after \pchapsepmacro, or the headline will change too soon.
31726 + \gdef\thissection{#1}%
31727 + \gdef\thischaptername{#1}%
31729 + % Only insert the separating space if we have a chapter/appendix
31730 + % number, and don't print the unnumbered ``number''.
31731 + \def\temptype{#2}%
31732 + \ifx\temptype\Ynothingkeyword
31733 + \setbox0 = \hbox{}%
31734 + \def\toctype{unnchap}%
31735 + \gdef\thischapter{#1}%
31736 + \else\ifx\temptype\Yomitfromtockeyword
31737 + \setbox0 = \hbox{}% contents like unnumbered, but no toc entry
31738 + \def\toctype{omit}%
31739 + \gdef\thischapter{}%
31740 + \else\ifx\temptype\Yappendixkeyword
31741 + \setbox0 = \hbox{\putwordAppendix{} #3\enspace}%
31742 + \def\toctype{app}%
31743 + % We don't substitute the actual chapter name into \thischapter
31744 + % because we don't want its macros evaluated now. And we don't
31745 + % use \thissection because that changes with each section.
31747 + \xdef\thischapter{\putwordAppendix{} \appendixletter:
31748 + \noexpand\thischaptername}%
31750 + \setbox0 = \hbox{#3\enspace}%
31751 + \def\toctype{numchap}%
31752 + \xdef\thischapter{\putwordChapter{} \the\chapno:
31753 + \noexpand\thischaptername}%
31756 + % Write the toc entry for this chapter. Must come before the
31757 + % \donoderef, because we include the current node name in the toc
31758 + % entry, and \donoderef resets it to empty.
31759 + \writetocentry{\toctype}{#1}{#3}%
31761 + % For pdftex, we have to write out the node definition (aka, make
31762 + % the pdfdest) after any page break, but before the actual text has
31763 + % been typeset. If the destination for the pdf outline is after the
31764 + % text, then jumping from the outline may wind up with the text not
31765 + % being visible, for instance under high magnification.
31768 + % Typeset the actual heading.
31769 + \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright
31770 + \hangindent=\wd0 \centerparametersmaybe
31771 + \unhbox0 #1\par}%
31773 + \nobreak\bigskip % no page break after a chapter title
31777 +% @centerchap -- centered and unnumbered.
31778 +\let\centerparametersmaybe = \relax
31779 +\def\centerparameters{%
31780 + \advance\rightskip by 3\rightskip
31781 + \leftskip = \rightskip
31782 + \parfillskip = 0pt
31786 +% I don't think this chapter style is supported any more, so I'm not
31787 +% updating it with the new noderef stuff. We'll see. --karl, 11aug03.
31789 +\def\setchapterstyle #1 {\csname CHAPF#1\endcsname}
31791 +\def\unnchfopen #1{%
31792 +\chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000
31793 + \parindent=0pt\raggedright
31794 + \rm #1\hfill}}\bigskip \par\nobreak
31796 +\def\chfopen #1#2{\chapoddpage {\chapfonts
31797 +\vbox to 3in{\vfil \hbox to\hsize{\hfil #2} \hbox to\hsize{\hfil #1} \vfil}}%
31798 +\par\penalty 5000 %
31800 +\def\centerchfopen #1{%
31801 +\chapoddpage {\chapfonts \vbox{\hyphenpenalty=10000\tolerance=5000
31803 + \hfill {\rm #1}\hfill}}\bigskip \par\nobreak
31806 + \global\let\chapmacro=\chfopen
31807 + \global\let\centerchapmacro=\centerchfopen}
31810 +% Section titles. These macros combine the section number parts and
31811 +% call the generic \sectionheading to do the printing.
31813 +\newskip\secheadingskip
31814 +\def\secheadingbreak{\dobreak \secheadingskip{-1000}}
31816 +% Subsection titles.
31817 +\newskip\subsecheadingskip
31818 +\def\subsecheadingbreak{\dobreak \subsecheadingskip{-500}}
31820 +% Subsubsection titles.
31821 +\def\subsubsecheadingskip{\subsecheadingskip}
31822 +\def\subsubsecheadingbreak{\subsecheadingbreak}
31825 +% Print any size, any type, section title.
31827 +% #1 is the text, #2 is the section level (sec/subsec/subsubsec), #3 is
31828 +% the section type for xrefs (Ynumbered, Ynothing, Yappendix), #4 is the
31831 +\def\sectionheading#1#2#3#4{%
31833 + % Switch to the right set of fonts.
31834 + \csname #2fonts\endcsname \rm
31836 + % Insert space above the heading.
31837 + \csname #2headingbreak\endcsname
31839 + % Only insert the space after the number if we have a section number.
31840 + \def\sectionlevel{#2}%
31841 + \def\temptype{#3}%
31843 + \ifx\temptype\Ynothingkeyword
31844 + \setbox0 = \hbox{}%
31845 + \def\toctype{unn}%
31846 + \gdef\thissection{#1}%
31847 + \else\ifx\temptype\Yomitfromtockeyword
31848 + % for @headings -- no section number, don't include in toc,
31849 + % and don't redefine \thissection.
31850 + \setbox0 = \hbox{}%
31851 + \def\toctype{omit}%
31852 + \let\sectionlevel=\empty
31853 + \else\ifx\temptype\Yappendixkeyword
31854 + \setbox0 = \hbox{#4\enspace}%
31855 + \def\toctype{app}%
31856 + \gdef\thissection{#1}%
31858 + \setbox0 = \hbox{#4\enspace}%
31859 + \def\toctype{num}%
31860 + \gdef\thissection{#1}%
31863 + % Write the toc entry (before \donoderef). See comments in \chfplain.
31864 + \writetocentry{\toctype\sectionlevel}{#1}{#4}%
31866 + % Write the node reference (= pdf destination for pdftex).
31867 + % Again, see comments in \chfplain.
31870 + % Output the actual section heading.
31871 + \vbox{\hyphenpenalty=10000 \tolerance=5000 \parindent=0pt \raggedright
31872 + \hangindent=\wd0 % zero if no section number
31875 + % Add extra space after the heading -- half of whatever came above it.
31876 + % Don't allow stretch, though.
31877 + \kern .5 \csname #2headingskip\endcsname
31879 + % Do not let the kern be a potential breakpoint, as it would be if it
31880 + % was followed by glue.
31883 + % We'll almost certainly start a paragraph next, so don't let that
31884 + % glue accumulate. (Not a breakpoint because it's preceded by a
31885 + % discardable item.)
31888 + % This is purely so the last item on the list is a known \penalty >
31889 + % 10000. This is so \startdefun can avoid allowing breakpoints after
31890 + % section headings. Otherwise, it would insert a valid breakpoint between:
31892 + % @section sec-whatever
31893 + % @deffn def-whatever
31899 +% Table of contents.
31902 +% Write an entry to the toc file, opening it if necessary.
31903 +% Called from @chapter, etc.
31905 +% Example usage: \writetocentry{sec}{Section Name}{\the\chapno.\the\secno}
31906 +% We append the current node name (if any) and page number as additional
31907 +% arguments for the \{chap,sec,...}entry macros which will eventually
31908 +% read this. The node name is used in the pdf outlines as the
31909 +% destination to jump to.
31911 +% We open the .toc file for writing here instead of at @setfilename (or
31912 +% any other fixed time) so that @contents can be anywhere in the document.
31913 +% But if #1 is `omit', then we don't do anything. This is used for the
31914 +% table of contents chapter openings themselves.
31916 +\newif\iftocfileopened
31917 +\def\omitkeyword{omit}%
31919 +\def\writetocentry#1#2#3{%
31920 + \edef\writetoctype{#1}%
31921 + \ifx\writetoctype\omitkeyword \else
31922 + \iftocfileopened\else
31923 + \immediate\openout\tocfile = \jobname.toc
31924 + \global\tocfileopenedtrue
31930 + \write\tocfile{@#1entry{#2}{#3}{\lastnode}{\noexpand\folio}}}%
31936 + % Tell \shipout to create a pdf destination on each page, if we're
31937 + % writing pdf. These are used in the table of contents. We can't
31938 + % just write one on every page because the title pages are numbered
31939 + % 1 and 2 (the page numbers aren't printed), and so are the first
31940 + % two pages of the document. Thus, we'd have two destinations named
31941 + % `1', and two named `2'.
31942 + \ifpdf \global\pdfmakepagedesttrue \fi
31946 +% These characters do not print properly in the Computer Modern roman
31947 +% fonts, so we must take special care. This is more or less redundant
31948 +% with the Texinfo input format setup at the end of this file.
31950 +\def\activecatcodes{%
31951 + \catcode`\"=\active
31952 + \catcode`\$=\active
31953 + \catcode`\<=\active
31954 + \catcode`\>=\active
31955 + \catcode`\\=\active
31956 + \catcode`\^=\active
31957 + \catcode`\_=\active
31958 + \catcode`\|=\active
31959 + \catcode`\~=\active
31963 +% Read the toc file, which is essentially Texinfo input.
31964 +\def\readtocfile{%
31967 + \input \jobname.toc
31970 +\newskip\contentsrightmargin \contentsrightmargin=1in
31971 +\newcount\savepageno
31972 +\newcount\lastnegativepageno \lastnegativepageno = -1
31974 +% Prepare to read what we've written to \tocfile.
31976 +\def\startcontents#1{%
31977 + % If @setchapternewpage on, and @headings double, the contents should
31978 + % start on an odd page, unlike chapters. Thus, we maintain
31979 + % \contentsalignmacro in parallel with \pagealignmacro.
31980 + % From: Torbjorn Granlund <tege@matematik.su.se>
31981 + \contentsalignmacro
31982 + \immediate\closeout\tocfile
31984 + % Don't need to put `Contents' or `Short Contents' in the headline.
31985 + % It is abundantly clear what they are.
31986 + \def\thischapter{}%
31987 + \chapmacro{#1}{Yomitfromtoc}{}%
31989 + \savepageno = \pageno
31990 + \begingroup % Set up to handle contents files properly.
31991 + \raggedbottom % Worry more about breakpoints than the bottom.
31992 + \advance\hsize by -\contentsrightmargin % Don't use the full line length.
31994 + % Roman numerals for page numbers.
31995 + \ifnum \pageno>0 \global\pageno = \lastnegativepageno \fi
31999 +% Normal (long) toc.
32001 + \startcontents{\putwordTOC}%
32002 + \openin 1 \jobname.toc
32007 + \contentsalignmacro % in case @setchapternewpage odd is in effect
32013 + \lastnegativepageno = \pageno
32014 + \global\pageno = \savepageno
32017 +% And just the chapters.
32018 +\def\summarycontents{%
32019 + \startcontents{\putwordShortTOC}%
32021 + \let\numchapentry = \shortchapentry
32022 + \let\appentry = \shortchapentry
32023 + \let\unnchapentry = \shortunnchapentry
32024 + % We want a true roman here for the page numbers.
32026 + \let\rm=\shortcontrm \let\bf=\shortcontbf
32027 + \let\sl=\shortcontsl \let\tt=\shortconttt
32029 + \hyphenpenalty = 10000
32030 + \advance\baselineskip by 1pt % Open it up a little.
32031 + \def\numsecentry##1##2##3##4{}
32032 + \let\appsecentry = \numsecentry
32033 + \let\unnsecentry = \numsecentry
32034 + \let\numsubsecentry = \numsecentry
32035 + \let\appsubsecentry = \numsecentry
32036 + \let\unnsubsecentry = \numsecentry
32037 + \let\numsubsubsecentry = \numsecentry
32038 + \let\appsubsubsecentry = \numsecentry
32039 + \let\unnsubsubsecentry = \numsecentry
32040 + \openin 1 \jobname.toc
32046 + \contentsalignmacro % in case @setchapternewpage odd is in effect
32048 + \lastnegativepageno = \pageno
32049 + \global\pageno = \savepageno
32051 +\let\shortcontents = \summarycontents
32053 +% Typeset the label for a chapter or appendix for the short contents.
32054 +% The arg is, e.g., `A' for an appendix, or `3' for a chapter.
32056 +\def\shortchaplabel#1{%
32057 + % This space should be enough, since a single number is .5em, and the
32058 + % widest letter (M) is 1em, at least in the Computer Modern fonts.
32059 + % But use \hss just in case.
32060 + % (This space doesn't include the extra space that gets added after
32061 + % the label; that gets put in by \shortchapentry above.)
32063 + % We'd like to right-justify chapter numbers, but that looks strange
32064 + % with appendix letters. And right-justifying numbers and
32065 + % left-justifying letters looks strange when there is less than 10
32066 + % chapters. Have to read the whole toc once to know how many chapters
32067 + % there are before deciding ...
32068 + \hbox to 1em{#1\hss}%
32071 +% These macros generate individual entries in the table of contents.
32072 +% The first argument is the chapter or section name.
32073 +% The last argument is the page number.
32074 +% The arguments in between are the chapter number, section number, ...
32076 +% Chapters, in the main contents.
32077 +\def\numchapentry#1#2#3#4{\dochapentry{#2\labelspace#1}{#4}}
32079 +% Chapters, in the short toc.
32080 +% See comments in \dochapentry re vbox and related settings.
32081 +\def\shortchapentry#1#2#3#4{%
32082 + \tocentry{\shortchaplabel{#2}\labelspace #1}{\doshortpageno\bgroup#4\egroup}%
32085 +% Appendices, in the main contents.
32086 +% Need the word Appendix, and a fixed-size box.
32088 +\def\appendixbox#1{%
32089 + % We use M since it's probably the widest letter.
32090 + \setbox0 = \hbox{\putwordAppendix{} M}%
32091 + \hbox to \wd0{\putwordAppendix{} #1\hss}}
32093 +\def\appentry#1#2#3#4{\dochapentry{\appendixbox{#2}\labelspace#1}{#4}}
32095 +% Unnumbered chapters.
32096 +\def\unnchapentry#1#2#3#4{\dochapentry{#1}{#4}}
32097 +\def\shortunnchapentry#1#2#3#4{\tocentry{#1}{\doshortpageno\bgroup#4\egroup}}
32100 +\def\numsecentry#1#2#3#4{\dosecentry{#2\labelspace#1}{#4}}
32101 +\let\appsecentry=\numsecentry
32102 +\def\unnsecentry#1#2#3#4{\dosecentry{#1}{#4}}
32105 +\def\numsubsecentry#1#2#3#4{\dosubsecentry{#2\labelspace#1}{#4}}
32106 +\let\appsubsecentry=\numsubsecentry
32107 +\def\unnsubsecentry#1#2#3#4{\dosubsecentry{#1}{#4}}
32109 +% And subsubsections.
32110 +\def\numsubsubsecentry#1#2#3#4{\dosubsubsecentry{#2\labelspace#1}{#4}}
32111 +\let\appsubsubsecentry=\numsubsubsecentry
32112 +\def\unnsubsubsecentry#1#2#3#4{\dosubsubsecentry{#1}{#4}}
32114 +% This parameter controls the indentation of the various levels.
32115 +% Same as \defaultparindent.
32116 +\newdimen\tocindent \tocindent = 15pt
32118 +% Now for the actual typesetting. In all these, #1 is the text and #2 is the
32121 +% If the toc has to be broken over pages, we want it to be at chapters
32122 +% if at all possible; hence the \penalty.
32123 +\def\dochapentry#1#2{%
32124 + \penalty-300 \vskip1\baselineskip plus.33\baselineskip minus.25\baselineskip
32127 + \tocentry{#1}{\dopageno\bgroup#2\egroup}%
32129 + \nobreak\vskip .25\baselineskip plus.1\baselineskip
32132 +\def\dosecentry#1#2{\begingroup
32133 + \secentryfonts \leftskip=\tocindent
32134 + \tocentry{#1}{\dopageno\bgroup#2\egroup}%
32137 +\def\dosubsecentry#1#2{\begingroup
32138 + \subsecentryfonts \leftskip=2\tocindent
32139 + \tocentry{#1}{\dopageno\bgroup#2\egroup}%
32142 +\def\dosubsubsecentry#1#2{\begingroup
32143 + \subsubsecentryfonts \leftskip=3\tocindent
32144 + \tocentry{#1}{\dopageno\bgroup#2\egroup}%
32147 +% We use the same \entry macro as for the index entries.
32148 +\let\tocentry = \entry
32150 +% Space between chapter (or whatever) number and the title.
32151 +\def\labelspace{\hskip1em \relax}
32153 +\def\dopageno#1{{\rm #1}}
32154 +\def\doshortpageno#1{{\rm #1}}
32156 +\def\chapentryfonts{\secfonts \rm}
32157 +\def\secentryfonts{\textfonts}
32158 +\def\subsecentryfonts{\textfonts}
32159 +\def\subsubsecentryfonts{\textfonts}
32162 +\message{environments,}
32163 +% @foo ... @end foo.
32165 +% @point{}, @result{}, @expansion{}, @print{}, @equiv{}.
32167 +% Since these characters are used in examples, it should be an even number of
32168 +% \tt widths. Each \tt character is 1en, so two makes it 1em.
32170 +\def\point{$\star$}
32171 +\def\result{\leavevmode\raise.15ex\hbox to 1em{\hfil$\Rightarrow$\hfil}}
32172 +\def\expansion{\leavevmode\raise.1ex\hbox to 1em{\hfil$\mapsto$\hfil}}
32173 +\def\print{\leavevmode\lower.1ex\hbox to 1em{\hfil$\dashv$\hfil}}
32174 +\def\equiv{\leavevmode\lower.1ex\hbox to 1em{\hfil$\ptexequiv$\hfil}}
32176 +% The @error{} command.
32177 +% Adapted from the TeXbook's \boxit.
32181 +{\tentt \global\dimen0 = 3em}% Width of the box.
32182 +\dimen2 = .55pt % Thickness of rules
32183 +% The text. (`r' is open on the right, `e' somewhat less so on the left.)
32184 +\setbox0 = \hbox{\kern-.75pt \tensf error\kern-1.5pt}
32186 +\setbox\errorbox=\hbox to \dimen0{\hfil
32187 + \hsize = \dimen0 \advance\hsize by -5.8pt % Space to left+right.
32188 + \advance\hsize by -2\dimen2 % Rules.
32190 + \hrule height\dimen2
32191 + \hbox{\vrule width\dimen2 \kern3pt % Space to left of text.
32192 + \vtop{\kern2.4pt \box0 \kern2.4pt}% Space above/below.
32193 + \kern3pt\vrule width\dimen2}% Space to right.
32194 + \hrule height\dimen2}
32197 +\def\error{\leavevmode\lower.7ex\copy\errorbox}
32199 +% @tex ... @end tex escapes into raw Tex temporarily.
32200 +% One exception: @ is still an escape character, so that @end tex works.
32201 +% But \@ or @@ will get a plain tex @ character.
32204 + \catcode `\\=0 \catcode `\{=1 \catcode `\}=2
32205 + \catcode `\$=3 \catcode `\&=4 \catcode `\#=6
32206 + \catcode `\^=7 \catcode `\_=8 \catcode `\~=\active \let~=\tie
32208 + \catcode `\+=\other
32209 + \catcode `\"=\other
32210 + \catcode `\|=\other
32211 + \catcode `\<=\other
32212 + \catcode `\>=\other
32216 + \let\bullet=\ptexbullet
32218 + \let\,=\ptexcomma
32220 + \let\dots=\ptexdots
32221 + \let\equiv=\ptexequiv
32222 + \let\!=\ptexexclam
32224 + \let\indent=\ptexindent
32225 + \let\noindent=\ptexnoindent
32226 + \let\{=\ptexlbrace
32228 + \let\}=\ptexrbrace
32229 + \let\/=\ptexslash
32232 + \let\frenchspacing=\plainfrenchspacing
32234 + \def\endldots{\mathinner{\ldots\ldots\ldots\ldots}}%
32235 + \def\enddots{\relax\ifmmode\endldots\else$\mathsurround=0pt \endldots\,$\fi}%
32238 +% There is no need to define \Etex.
32240 +% Define @lisp ... @end lisp.
32241 +% @lisp environment forms a group so it can rebind things,
32242 +% including the definition of @end lisp (which normally is erroneous).
32244 +% Amount to narrow the margins by for @lisp.
32245 +\newskip\lispnarrowing \lispnarrowing=0.4in
32247 +% This is the definition that ^^M gets inside @lisp, @example, and other
32248 +% such environments. \null is better than a space, since it doesn't
32250 +\def\lisppar{\null\endgraf}
32252 +% This space is always present above and below environments.
32253 +\newskip\envskipamount \envskipamount = 0pt
32255 +% Make spacing and below environment symmetrical. We use \parskip here
32256 +% to help in doing that, since in @example-like environments \parskip
32257 +% is reset to zero; thus the \afterenvbreak inserts no space -- but the
32258 +% start of the next paragraph will insert \parskip.
32260 +\def\aboveenvbreak{{%
32261 + % =10000 instead of <10000 because of a special case in \itemzzz and
32262 + % \sectionheading, q.v.
32263 + \ifnum \lastpenalty=10000 \else
32264 + \advance\envskipamount by \parskip
32266 + \ifdim\lastskip<\envskipamount
32268 + % it's not a good place to break if the last penalty was \nobreak
32270 + \ifnum\lastpenalty<10000 \penalty-50 \fi
32271 + \vskip\envskipamount
32276 +\let\afterenvbreak = \aboveenvbreak
32278 +% \nonarrowing is a flag. If "set", @lisp etc don't narrow margins; it will
32279 +% also clear it, so that its embedded environments do the narrowing again.
32280 +\let\nonarrowing=\relax
32282 +% @cartouche ... @end cartouche: draw rectangle w/rounded corners around
32283 +% environment contents.
32284 +\font\circle=lcircle10
32285 +\newdimen\circthick
32286 +\newdimen\cartouter\newdimen\cartinner
32287 +\newskip\normbskip\newskip\normpskip\newskip\normlskip
32288 +\circthick=\fontdimen8\circle
32290 +\def\ctl{{\circle\char'013\hskip -6pt}}% 6pt from pl file: 1/2charwidth
32291 +\def\ctr{{\hskip 6pt\circle\char'010}}
32292 +\def\cbl{{\circle\char'012\hskip -6pt}}
32293 +\def\cbr{{\hskip 6pt\circle\char'011}}
32294 +\def\carttop{\hbox to \cartouter{\hskip\lskip
32295 + \ctl\leaders\hrule height\circthick\hfil\ctr
32297 +\def\cartbot{\hbox to \cartouter{\hskip\lskip
32298 + \cbl\leaders\hrule height\circthick\hfil\cbr
32301 +\newskip\lskip\newskip\rskip
32303 +\envdef\cartouche{%
32304 + \ifhmode\par\fi % can't be in the midst of a paragraph.
32305 + \startsavinginserts
32306 + \lskip=\leftskip \rskip=\rightskip
32307 + \leftskip=0pt\rightskip=0pt % we want these *outside*.
32308 + \cartinner=\hsize \advance\cartinner by-\lskip
32309 + \advance\cartinner by-\rskip
32310 + \cartouter=\hsize
32311 + \advance\cartouter by 18.4pt % allow for 3pt kerns on either
32312 + % side, and for 6pt waste from
32313 + % each corner char, and rule thickness
32314 + \normbskip=\baselineskip \normpskip=\parskip \normlskip=\lineskip
32315 + % Flag to tell @lisp, etc., not to narrow margin.
32316 + \let\nonarrowing = t%
32318 + \baselineskip=0pt\parskip=0pt\lineskip=0pt
32325 + \hsize=\cartinner
32326 + \baselineskip=\normbskip
32327 + \lineskip=\normlskip
32328 + \parskip=\normpskip
32330 + \comment % For explanation, see the end of \def\group.
32345 +% This macro is called at the beginning of all the @example variants,
32347 +\def\nonfillstart{%
32349 + \hfuzz = 12pt % Don't be fussy
32350 + \sepspaces % Make spaces be word-separators rather than space tokens.
32351 + \let\par = \lisppar % don't ignore blank lines
32352 + \obeylines % each line of input is a line of output
32355 + \emergencystretch = 0pt % don't try to avoid overfull boxes
32356 + \ifx\nonarrowing\relax
32357 + \advance \leftskip by \lispnarrowing
32358 + \exdentamount=\lispnarrowing
32360 + \let\nonarrowing = \relax
32362 + \let\exdent=\nofillexdent
32365 +% If you want all examples etc. small: @set dispenvsize small.
32366 +% If you want even small examples the full size: @set dispenvsize nosmall.
32367 +% This affects the following displayed environments:
32368 +% @example, @display, @format, @lisp
32370 +\def\smallword{small}
32371 +\def\nosmallword{nosmall}
32372 +\let\SETdispenvsize\relax
32373 +\def\setnormaldispenv{%
32374 + \ifx\SETdispenvsize\smallword
32375 + \smallexamplefonts \rm
32378 +\def\setsmalldispenv{%
32379 + \ifx\SETdispenvsize\nosmallword
32381 + \smallexamplefonts \rm
32385 +% We often define two environments, @foo and @smallfoo.
32386 +% Let's do it by one command:
32387 +\def\makedispenv #1#2{
32388 + \expandafter\envdef\csname#1\endcsname {\setnormaldispenv #2}
32389 + \expandafter\envdef\csname small#1\endcsname {\setsmalldispenv #2}
32390 + \expandafter\let\csname E#1\endcsname \afterenvbreak
32391 + \expandafter\let\csname Esmall#1\endcsname \afterenvbreak
32394 +% Define two synonyms:
32395 +\def\maketwodispenvs #1#2#3{
32396 + \makedispenv{#1}{#3}
32397 + \makedispenv{#2}{#3}
32400 +% @lisp: indented, narrowed, typewriter font; @example: same as @lisp.
32402 +% @smallexample and @smalllisp: use smaller fonts.
32403 +% Originally contributed by Pavel@xerox.
32405 +\maketwodispenvs {lisp}{example}{%
32408 + \let\kbdfont = \kbdexamplefont % Allow @kbd to do something special.
32409 + \gobble % eat return
32412 +% @display/@smalldisplay: same as @lisp except keep current font.
32414 +\makedispenv {display}{%
32419 +% @format/@smallformat: same as @display except don't narrow margins.
32421 +\makedispenv{format}{%
32422 + \let\nonarrowing = t%
32427 +% @flushleft: same as @format, but doesn't obey \SETdispenvsize.
32428 +\envdef\flushleft{%
32429 + \let\nonarrowing = t%
32433 +\let\Eflushleft = \afterenvbreak
32437 +\envdef\flushright{%
32438 + \let\nonarrowing = t%
32440 + \advance\leftskip by 0pt plus 1fill
32443 +\let\Eflushright = \afterenvbreak
32446 +% @quotation does normal linebreaking (hence we can't use \nonfillstart)
32447 +% and narrows the margins. We keep \parskip nonzero in general, since
32448 +% we're doing normal filling. So, when using \aboveenvbreak and
32449 +% \afterenvbreak, temporarily make \parskip 0.
32451 +\envdef\quotation{%
32452 + {\parskip=0pt \aboveenvbreak}% because \aboveenvbreak inserts \parskip
32455 + % @cartouche defines \nonarrowing to inhibit narrowing at next level down.
32456 + \ifx\nonarrowing\relax
32457 + \advance\leftskip by \lispnarrowing
32458 + \advance\rightskip by \lispnarrowing
32459 + \exdentamount = \lispnarrowing
32461 + \let\nonarrowing = \relax
32463 + \parsearg\quotationlabel
32466 +% We have retained a nonzero parskip for the environment, since we're
32467 +% doing normal filling.
32471 + \ifx\quotationauthor\undefined\else
32473 + \leftline{\kern 2\leftskip \sl ---\quotationauthor}%
32475 + {\parskip=0pt \afterenvbreak}%
32478 +% If we're given an argument, typeset it in bold with a colon after.
32479 +\def\quotationlabel#1{%
32481 + \ifx\temp\empty \else
32487 +% LaTeX-like @verbatim...@end verbatim and @verb{<char>...<char>}
32488 +% If we want to allow any <char> as delimiter,
32489 +% we need the curly braces so that makeinfo sees the @verb command, eg:
32490 +% `@verbx...x' would look like the '@verbx' command. --janneke@gnu.org
32492 +% [Knuth]: Donald Ervin Knuth, 1996. The TeXbook.
32494 +% [Knuth] p.344; only we need to do the other characters Texinfo sets
32495 +% active too. Otherwise, they get lost as the first character on a
32498 + \do\ \do\\\do\{\do\}\do\$\do\&%
32499 + \do\#\do\^\do\^^K\do\_\do\^^A\do\%\do\~%
32500 + \do\<\do\>\do\|\do\@\do+\do\"%
32504 +\def\uncatcodespecials{%
32505 + \def\do##1{\catcode`##1=\other}\dospecials}
32507 +% [Knuth] pp. 380,381,391
32508 +% Disable Spanish ligatures ?` and !` of \tt font
32510 + \catcode`\`=\active\gdef`{\relax\lq}
32513 +% Setup for the @verb command.
32515 +% Eight spaces for a tab
32517 + \catcode`\^^I=\active
32518 + \gdef\tabeightspaces{\catcode`\^^I=\active\def^^I{\ \ \ \ \ \ \ \ }}
32522 + \tt % easiest (and conventionally used) font for verbatim
32523 + \def\par{\leavevmode\endgraf}%
32524 + \catcode`\`=\active
32526 + % Respect line breaks,
32527 + % print special symbols as themselves, and
32528 + % make each space count
32529 + % must do in this order:
32530 + \obeylines \uncatcodespecials \sepspaces
32533 +% Setup for the @verbatim environment
32535 +% Real tab expansion
32536 +\newdimen\tabw \setbox0=\hbox{\tt\space} \tabw=8\wd0 % tab amount
32538 +\def\starttabbox{\setbox0=\hbox\bgroup}
32540 + \catcode`\^^I=\active
32541 + \gdef\tabexpand{%
32542 + \catcode`\^^I=\active
32543 + \def^^I{\leavevmode\egroup
32544 + \dimen0=\wd0 % the width so far, or since the previous tab
32545 + \divide\dimen0 by\tabw
32546 + \multiply\dimen0 by\tabw % compute previous multiple of \tabw
32547 + \advance\dimen0 by\tabw % advance to next multiple of \tabw
32548 + \wd0=\dimen0 \box0 \starttabbox
32552 +\def\setupverbatim{%
32553 + \let\nonarrowing = t%
32555 + % Easiest (and conventionally used) font for verbatim
32557 + \def\par{\leavevmode\egroup\box0\endgraf}%
32558 + \catcode`\`=\active
32560 + % Respect line breaks,
32561 + % print special symbols as themselves, and
32562 + % make each space count
32563 + % must do in this order:
32564 + \obeylines \uncatcodespecials \sepspaces
32565 + \everypar{\starttabbox}%
32568 +% Do the @verb magic: verbatim text is quoted by unique
32569 +% delimiter characters. Before first delimiter expect a
32570 +% right brace, after last delimiter expect closing brace:
32572 +% \def\doverb'{'<char>#1<char>'}'{#1}
32574 +% [Knuth] p. 382; only eat outer {}
32576 + \catcode`[=1\catcode`]=2\catcode`\{=\other\catcode`\}=\other
32577 + \gdef\doverb{#1[\def\next##1#1}[##1\endgroup]\next]
32580 +\def\verb{\begingroup\setupverb\doverb}
32583 +% Do the @verbatim magic: define the macro \doverbatim so that
32584 +% the (first) argument ends when '@end verbatim' is reached, ie:
32586 +% \def\doverbatim#1@end verbatim{#1}
32588 +% For Texinfo it's a lot easier than for LaTeX,
32589 +% because texinfo's \verbatim doesn't stop at '\end{verbatim}':
32590 +% we need not redefine '\', '{' and '}'.
32592 +% Inspired by LaTeX's verbatim command set [latex.ltx]
32595 + \catcode`\ =\active
32597 + % ignore everything up to the first ^^M, that's the newline at the end
32598 + % of the @verbatim input line itself. Otherwise we get an extra blank
32599 + % line in the output.
32600 + \xdef\doverbatim#1^^M#2@end verbatim{#2\noexpand\end\gobble verbatim}%
32601 + % We really want {...\end verbatim} in the body of the macro, but
32602 + % without the active space; thus we have to use \xdef and \gobble.
32605 +\envdef\verbatim{%
32606 + \setupverbatim\doverbatim
32608 +\let\Everbatim = \afterenvbreak
32611 +% @verbatiminclude FILE - insert text of file in verbatim environment.
32613 +\def\verbatiminclude{\parseargusing\filenamecatcodes\doverbatiminclude}
32615 +\def\doverbatiminclude#1{%
32617 + \makevalueexpandable
32624 +% @copying ... @end copying.
32625 +% Save the text away for @insertcopying later.
32627 +% We save the uninterpreted tokens, rather than creating a box.
32628 +% Saving the text in a box would be much easier, but then all the
32629 +% typesetting commands (@smallbook, font changes, etc.) have to be done
32630 +% beforehand -- and a) we want @copying to be done first in the source
32631 +% file; b) letting users define the frontmatter in as flexible order as
32632 +% possible is very desirable.
32634 +\def\copying{\checkenv{}\begingroup\scanargctxt\docopying}
32635 +\def\docopying#1@end copying{\endgroup\def\copyingtext{#1}}
32637 +\def\insertcopying{%
32639 + \parindent = 0pt % paragraph indentation looks wrong on title page
32640 + \scanexp\copyingtext
32647 +\newskip\defbodyindent \defbodyindent=.4in
32648 +\newskip\defargsindent \defargsindent=50pt
32649 +\newskip\deflastargmargin \deflastargmargin=18pt
32651 +% Start the processing of @deffn:
32653 + \ifnum\lastpenalty<10000
32656 + % If there are two @def commands in a row, we'll have a \nobreak,
32657 + % which is there to keep the function description together with its
32658 + % header. But if there's nothing but headers, we need to allow a
32659 + % break somewhere. Check specifically for penalty 10002, inserted
32660 + % by \defargscommonending, instead of 10000, since the sectioning
32661 + % commands also insert a nobreak penalty, and we don't want to allow
32662 + % a break between a section heading and a defun.
32664 + \ifnum\lastpenalty=10002 \penalty2000 \fi
32666 + % Similarly, after a section heading, do not allow a break.
32667 + % But do insert the glue.
32668 + \medskip % preceded by discardable penalty, so not a breakpoint
32672 + \advance\leftskip by \defbodyindent
32673 + \exdentamount=\defbodyindent
32677 + % First, check whether we are in the right environment:
32680 + % As above, allow line break if we have multiple x headers in a row.
32681 + % It's not a great place, though.
32682 + \ifnum\lastpenalty=10002 \penalty3000 \fi
32684 + % And now, it's time to reuse the body of the original defun:
32685 + \expandafter\gobbledefun#1%
32687 +\def\gobbledefun#1\startdefun{}
32689 +% \printdefunline \deffnheader{text}
32691 +\def\printdefunline#1#2{%
32693 + % call \deffnheader:
32696 + \interlinepenalty = 10000
32697 + \advance\rightskip by 0pt plus 1fil
32699 + \nobreak\vskip -\parskip
32700 + \penalty 10002 % signal to \startdefun and \dodefunx
32701 + % Some of the @defun-type tags do not enable magic parentheses,
32702 + % rendering the following check redundant. But we don't optimize.
32703 + \checkparencounts
32707 +\def\Edefun{\endgraf\medbreak}
32709 +% \makedefun{deffn} creates \deffn, \deffnx and \Edeffn;
32710 +% the only thing remainnig is to define \deffnheader.
32712 +\def\makedefun#1{%
32713 + \expandafter\let\csname E#1\endcsname = \Edefun
32714 + \edef\temp{\noexpand\domakedefun
32715 + \makecsname{#1}\makecsname{#1x}\makecsname{#1header}}%
32719 +% \domakedefun \deffn \deffnx \deffnheader
32721 +% Define \deffn and \deffnx, without parameters.
32722 +% \deffnheader has to be defined explicitly.
32724 +\def\domakedefun#1#2#3{%
32727 + \parseargusing\activeparens{\printdefunline#3}%
32729 + \def#2{\dodefunx#1}%
32733 +%%% Untyped functions:
32735 +% @deffn category name args
32736 +\makedefun{deffn}{\deffngeneral{}}
32738 +% @deffn category class name args
32739 +\makedefun{defop}#1 {\defopon{#1\ \putwordon}}
32741 +% \defopon {category on}class name args
32742 +\def\defopon#1#2 {\deffngeneral{\putwordon\ \code{#2}}{#1\ \code{#2}} }
32744 +% \deffngeneral {subind}category name args
32746 +\def\deffngeneral#1#2 #3 #4\endheader{%
32747 + % Remember that \dosubind{fn}{foo}{} is equivalent to \doind{fn}{foo}.
32748 + \dosubind{fn}{\code{#3}}{#1}%
32749 + \defname{#2}{}{#3}\magicamp\defunargs{#4\unskip}%
32752 +%%% Typed functions:
32754 +% @deftypefn category type name args
32755 +\makedefun{deftypefn}{\deftypefngeneral{}}
32757 +% @deftypeop category class type name args
32758 +\makedefun{deftypeop}#1 {\deftypeopon{#1\ \putwordon}}
32760 +% \deftypeopon {category on}class type name args
32761 +\def\deftypeopon#1#2 {\deftypefngeneral{\putwordon\ \code{#2}}{#1\ \code{#2}} }
32763 +% \deftypefngeneral {subind}category type name args
32765 +\def\deftypefngeneral#1#2 #3 #4 #5\endheader{%
32766 + \dosubind{fn}{\code{#4}}{#1}%
32767 + \defname{#2}{#3}{#4}\defunargs{#5\unskip}%
32770 +%%% Typed variables:
32772 +% @deftypevr category type var args
32773 +\makedefun{deftypevr}{\deftypecvgeneral{}}
32775 +% @deftypecv category class type var args
32776 +\makedefun{deftypecv}#1 {\deftypecvof{#1\ \putwordof}}
32778 +% \deftypecvof {category of}class type var args
32779 +\def\deftypecvof#1#2 {\deftypecvgeneral{\putwordof\ \code{#2}}{#1\ \code{#2}} }
32781 +% \deftypecvgeneral {subind}category type var args
32783 +\def\deftypecvgeneral#1#2 #3 #4 #5\endheader{%
32784 + \dosubind{vr}{\code{#4}}{#1}%
32785 + \defname{#2}{#3}{#4}\defunargs{#5\unskip}%
32788 +%%% Untyped variables:
32790 +% @defvr category var args
32791 +\makedefun{defvr}#1 {\deftypevrheader{#1} {} }
32793 +% @defcv category class var args
32794 +\makedefun{defcv}#1 {\defcvof{#1\ \putwordof}}
32796 +% \defcvof {category of}class var args
32797 +\def\defcvof#1#2 {\deftypecvof{#1}#2 {} }
32800 +% @deftp category name args
32801 +\makedefun{deftp}#1 #2 #3\endheader{%
32802 + \doind{tp}{\code{#2}}%
32803 + \defname{#1}{}{#2}\defunargs{#3\unskip}%
32806 +% Remaining @defun-like shortcuts:
32807 +\makedefun{defun}{\deffnheader{\putwordDeffunc} }
32808 +\makedefun{defmac}{\deffnheader{\putwordDefmac} }
32809 +\makedefun{defspec}{\deffnheader{\putwordDefspec} }
32810 +\makedefun{deftypefun}{\deftypefnheader{\putwordDeffunc} }
32811 +\makedefun{defvar}{\defvrheader{\putwordDefvar} }
32812 +\makedefun{defopt}{\defvrheader{\putwordDefopt} }
32813 +\makedefun{deftypevar}{\deftypevrheader{\putwordDefvar} }
32814 +\makedefun{defmethod}{\defopon\putwordMethodon}
32815 +\makedefun{deftypemethod}{\deftypeopon\putwordMethodon}
32816 +\makedefun{defivar}{\defcvof\putwordInstanceVariableof}
32817 +\makedefun{deftypeivar}{\deftypecvof\putwordInstanceVariableof}
32819 +% \defname, which formats the name of the @def (not the args).
32820 +% #1 is the category, such as "Function".
32821 +% #2 is the return type, if any.
32822 +% #3 is the function name.
32824 +% We are followed by (but not passed) the arguments, if any.
32826 +\def\defname#1#2#3{%
32827 + % Get the values of \leftskip and \rightskip as they were outside the @def...
32828 + \advance\leftskip by -\defbodyindent
32830 + % How we'll format the type name. Putting it in brackets helps
32831 + % distinguish it from the body text that may end up on the next line
32834 + \setbox0=\hbox{\kern\deflastargmargin \ifx\temp\empty\else [\rm\temp]\fi}
32836 + % Figure out line sizes for the paragraph shape.
32837 + % The first line needs space for \box0; but if \rightskip is nonzero,
32838 + % we need only space for the part of \box0 which exceeds it:
32839 + \dimen0=\hsize \advance\dimen0 by -\wd0 \advance\dimen0 by \rightskip
32840 + % The continuations:
32841 + \dimen2=\hsize \advance\dimen2 by -\defargsindent
32842 + % (plain.tex says that \dimen1 should be used only as global.)
32843 + \parshape 2 0in \dimen0 \defargsindent \dimen2
32845 + % Put the type name to the right margin.
32848 + \hfil\box0 \kern-\hsize
32849 + % \hsize has to be shortened this way:
32851 + % Intentionally do not respect \rightskip, since we need the space.
32854 + % Allow all lines to be underfull without complaint:
32855 + \tolerance=10000 \hbadness=10000
32856 + \exdentamount=\defbodyindent
32858 + % defun fonts. We use typewriter by default (used to be bold) because:
32859 + % . we're printing identifiers, they should be in tt in principle.
32860 + % . in languages with many accents, such as Czech or French, it's
32861 + % common to leave accents off identifiers. The result looks ok in
32862 + % tt, but exceedingly strange in rm.
32863 + % . we don't want -- and --- to be treated as ligatures.
32864 + % . this still does not fix the ?` and !` ligatures, but so far no
32865 + % one has made identifiers using them :).
32867 + \def\temp{#2}% return value type
32868 + \ifx\temp\empty\else \tclose{\temp} \fi
32869 + #3% output function name
32871 + {\rm\enskip}% hskip 0.5 em of \tenrm
32874 + % arguments will be output next, if any.
32877 +% Print arguments in slanted roman (not ttsl), inconsistently with using
32878 +% tt for the name. This is because literal text is sometimes needed in
32879 +% the argument list (groff manual), and ttsl and tt are not very
32880 +% distinguishable. Prevent hyphenation at `-' chars.
32882 +\def\defunargs#1{%
32883 + % use sl by default (not ttsl),
32884 + % tt for the names.
32885 + \df \sl \hyphenchar\font=0
32887 + % On the other hand, if an argument has two dashes (for instance), we
32888 + % want a way to get ttsl. Let's try @var for that.
32889 + \let\var=\ttslanted
32891 + \sl\hyphenchar\font=45
32894 +% We want ()&[] to print specially on the defun line.
32896 +\def\activeparens{%
32897 + \catcode`\(=\active \catcode`\)=\active
32898 + \catcode`\[=\active \catcode`\]=\active
32899 + \catcode`\&=\active
32902 +% Make control sequences which act like normal parenthesis chars.
32903 +\let\lparen = ( \let\rparen = )
32905 +% Be sure that we always have a definition for `(', etc. For example,
32906 +% if the fn name has parens in it, \boldbrax will not be in effect yet,
32907 +% so TeX would otherwise complain about undefined control sequence.
32910 + \global\let(=\lparen \global\let)=\rparen
32911 + \global\let[=\lbrack \global\let]=\rbrack
32912 + \global\let& = \&
32914 + \gdef\boldbrax{\let(=\opnr\let)=\clnr\let[=\lbrb\let]=\rbrb}
32915 + \gdef\magicamp{\let&=\amprm}
32918 +\newcount\parencount
32920 +% If we encounter &foo, then turn on ()-hacking afterwards
32922 +\def\amprm#1 {\ampseentrue{\bf\ }}
32926 + % At the first level, print parens in roman,
32927 + % otherwise use the default font.
32928 + \ifnum \parencount=1 \rm \fi
32930 + % The \sf parens (in \boldbrax) actually are a little bolder than
32931 + % the contained text. This is especially needed for [ and ] .
32935 +\def\infirstlevel#1{%
32937 + \ifnum\parencount=1
32942 +\def\bfafterword#1 {#1 \bf}
32945 + \global\advance\parencount by 1
32947 + \infirstlevel \bfafterword
32951 + \infirstlevel \sl
32952 + \global\advance\parencount by -1
32955 +\newcount\brackcount
32957 + \global\advance\brackcount by 1
32962 + \global\advance\brackcount by -1
32965 +\def\checkparencounts{%
32966 + \ifnum\parencount=0 \else \badparencount \fi
32967 + \ifnum\brackcount=0 \else \badbrackcount \fi
32969 +\def\badparencount{%
32970 + \errmessage{Unbalanced parentheses in @def}%
32971 + \global\parencount=0
32973 +\def\badbrackcount{%
32974 + \errmessage{Unbalanced square braces in @def}%
32975 + \global\brackcount=0
32982 +% To do this right we need a feature of e-TeX, \scantokens,
32983 +% which we arrange to emulate with a temporary file in ordinary TeX.
32984 +\ifx\eTeXversion\undefined
32985 + \newwrite\macscribble
32986 + \def\scantokens#1{%
32988 + \immediate\openout\macscribble=\jobname.tmp
32989 + \immediate\write\macscribble{\the\toks0}%
32990 + \immediate\closeout\macscribble
32991 + \input \jobname.tmp
32995 +\def\scanmacro#1{%
32997 + \newlinechar`\^^M
32998 + \let\xeatspaces\eatspaces
32999 + % Undo catcode changes of \startcontents and \doprintindex
33000 + % When called from @insertcopying or (short)caption, we need active
33001 + % backslash to get it printed correctly. Previously, we had
33002 + % \catcode`\\=\other instead. We'll see whether a problem appears
33003 + % with macro expansion. --kasal, 19aug04
33004 + \catcode`\@=0 \catcode`\\=\active \escapechar=`\@
33005 + % ... and \example
33008 + % Append \endinput to make sure that TeX does not see the ending newline.
33010 + % I've verified that it is necessary both for e-TeX and for ordinary TeX
33011 + % --kasal, 29nov03
33012 + \scantokens{#1\endinput}%
33017 + \edef\temp{\noexpand\scanmacro{#1}}%
33021 +\newcount\paramno % Count of parameters
33022 +\newtoks\macname % Macro name
33023 +\newif\ifrecursive % Is it recursive?
33025 +% List of all defined macros in the form
33026 +% \definedummyword\macro1\definedummyword\macro2...
33027 +% Currently is also contains all @aliases; the list can be split
33028 +% if there is a need.
33031 +% Add the macro to \macrolist
33032 +\def\addtomacrolist#1{\expandafter \addtomacrolistxxx \csname#1\endcsname}
33033 +\def\addtomacrolistxxx#1{%
33034 + \toks0 = \expandafter{\macrolist\definedummyword#1}%
33035 + \xdef\macrolist{\the\toks0}%
33038 +% Utility routines.
33039 +% This does \let #1 = #2, with \csnames; that is,
33040 +% \let \csname#1\endcsname = \csname#2\endcsname
33041 +% (except of course we have to play expansion games).
33045 + \csname#1\expandafter\endcsname
33046 + \csname#2\endcsname
33049 +% Trim leading and trailing spaces off a string.
33050 +% Concepts from aro-bend problem 15 (see CTAN).
33052 +\gdef\eatspaces #1{\expandafter\trim@\expandafter{#1 }}
33053 +\gdef\trim@ #1{\trim@@ @#1 @ #1 @ @@}
33054 +\gdef\trim@@ #1@ #2@ #3@@{\trim@@@\empty #2 @}
33055 +\def\unbrace#1{#1}
33056 +\unbrace{\gdef\trim@@@ #1 } #2@{#1}
33059 +% Trim a single trailing ^^M off a string.
33060 +{\catcode`\^^M=\other \catcode`\Q=3%
33061 +\gdef\eatcr #1{\eatcra #1Q^^MQ}%
33062 +\gdef\eatcra#1^^MQ{\eatcrb#1Q}%
33063 +\gdef\eatcrb#1Q#2Q{#1}%
33066 +% Macro bodies are absorbed as an argument in a context where
33067 +% all characters are catcode 10, 11 or 12, except \ which is active
33068 +% (as in normal texinfo). It is necessary to change the definition of \.
33070 +% It's necessary to have hard CRs when the macro is executed. This is
33071 +% done by making ^^M (\endlinechar) catcode 12 when reading the macro
33072 +% body, and then making it the \newlinechar in \scanmacro.
33075 + \catcode`\"=\other
33076 + \catcode`\+=\other
33077 + \catcode`\<=\other
33078 + \catcode`\>=\other
33079 + \catcode`\@=\other
33080 + \catcode`\^=\other
33081 + \catcode`\_=\other
33082 + \catcode`\|=\other
33083 + \catcode`\~=\other
33086 +\def\scanargctxt{%
33088 + \catcode`\\=\other
33089 + \catcode`\^^M=\other
33092 +\def\macrobodyctxt{%
33094 + \catcode`\{=\other
33095 + \catcode`\}=\other
33096 + \catcode`\^^M=\other
33097 + \usembodybackslash
33100 +\def\macroargctxt{%
33102 + \catcode`\\=\other
33105 +% \mbodybackslash is the definition of \ in @macro bodies.
33106 +% It maps \foo\ => \csname macarg.foo\endcsname => #N
33107 +% where N is the macro parameter number.
33108 +% We define \csname macarg.\endcsname to be \realbackslash, so
33109 +% \\ in macro replacement text gets you a backslash.
33111 +{\catcode`@=0 @catcode`@\=@active
33112 + @gdef@usembodybackslash{@let\=@mbodybackslash}
33113 + @gdef@mbodybackslash#1\{@csname macarg.#1@endcsname}
33115 +\expandafter\def\csname macarg.\endcsname{\realbackslash}
33117 +\def\macro{\recursivefalse\parsearg\macroxxx}
33118 +\def\rmacro{\recursivetrue\parsearg\macroxxx}
33121 + \getargs{#1}% now \macname is the macname and \argl the arglist
33122 + \ifx\argl\empty % no arguments
33125 + \expandafter\parsemargdef \argl;%
33127 + \if1\csname ismacro.\the\macname\endcsname
33128 + \message{Warning: redefining \the\macname}%
33130 + \expandafter\ifx\csname \the\macname\endcsname \relax
33131 + \else \errmessage{Macro name \the\macname\space already defined}\fi
33132 + \global\cslet{macsave.\the\macname}{\the\macname}%
33133 + \global\expandafter\let\csname ismacro.\the\macname\endcsname=1%
33134 + \addtomacrolist{\the\macname}%
33136 + \begingroup \macrobodyctxt
33137 + \ifrecursive \expandafter\parsermacbody
33138 + \else \expandafter\parsemacbody
33141 +\parseargdef\unmacro{%
33142 + \if1\csname ismacro.#1\endcsname
33143 + \global\cslet{#1}{macsave.#1}%
33144 + \global\expandafter\let \csname ismacro.#1\endcsname=0%
33145 + % Remove the macro name from \macrolist:
33147 + \expandafter\let\csname#1\endcsname \relax
33148 + \let\definedummyword\unmacrodo
33149 + \xdef\macrolist{\macrolist}%
33152 + \errmessage{Macro #1 not defined}%
33156 +% Called by \do from \dounmacro on each macro. The idea is to omit any
33157 +% macro definitions that have been changed to \relax.
33159 +\def\unmacrodo#1{%
33163 + \noexpand\definedummyword \noexpand#1%
33167 +% This makes use of the obscure feature that if the last token of a
33168 +% <parameter list> is #, then the preceding argument is delimited by
33169 +% an opening brace, and that opening brace is not consumed.
33170 +\def\getargs#1{\getargsxxx#1{}}
33171 +\def\getargsxxx#1#{\getmacname #1 \relax\getmacargs}
33172 +\def\getmacname #1 #2\relax{\macname={#1}}
33173 +\def\getmacargs#1{\def\argl{#1}}
33175 +% Parse the optional {params} list. Set up \paramno and \paramlist
33176 +% so \defmacro knows what to do. Define \macarg.blah for each blah
33177 +% in the params list, to be ##N where N is the position in that list.
33178 +% That gets used by \mbodybackslash (above).
33180 +% We need to get `macro parameter char #' into several definitions.
33181 +% The technique used is stolen from LaTeX: let \hash be something
33182 +% unexpandable, insert that wherever you need a #, and then redefine
33183 +% it to # just before using the token list produced.
33185 +% The same technique is used to protect \eatspaces till just before
33186 +% the macro is used.
33188 +\def\parsemargdef#1;{\paramno=0\def\paramlist{}%
33189 + \let\hash\relax\let\xeatspaces\relax\parsemargdefxxx#1,;,}
33190 +\def\parsemargdefxxx#1,{%
33191 + \if#1;\let\next=\relax
33192 + \else \let\next=\parsemargdefxxx
33193 + \advance\paramno by 1%
33194 + \expandafter\edef\csname macarg.\eatspaces{#1}\endcsname
33195 + {\xeatspaces{\hash\the\paramno}}%
33196 + \edef\paramlist{\paramlist\hash\the\paramno,}%
33199 +% These two commands read recursive and nonrecursive macro bodies.
33200 +% (They're different since rec and nonrec macros end differently.)
33202 +\long\def\parsemacbody#1@end macro%
33203 +{\xdef\temp{\eatcr{#1}}\endgroup\defmacro}%
33204 +\long\def\parsermacbody#1@end rmacro%
33205 +{\xdef\temp{\eatcr{#1}}\endgroup\defmacro}%
33207 +% This defines the macro itself. There are six cases: recursive and
33208 +% nonrecursive macros of zero, one, and many arguments.
33209 +% Much magic with \expandafter here.
33210 +% \xdef is used so that macro definitions will survive the file
33211 +% they're defined in; @include reads the file inside a group.
33213 + \let\hash=##% convert placeholders to macro parameter chars
33217 + \expandafter\xdef\csname\the\macname\endcsname{%
33218 + \noexpand\scanmacro{\temp}}%
33220 + \expandafter\xdef\csname\the\macname\endcsname{%
33221 + \bgroup\noexpand\macroargctxt
33222 + \noexpand\braceorline
33223 + \expandafter\noexpand\csname\the\macname xxx\endcsname}%
33224 + \expandafter\xdef\csname\the\macname xxx\endcsname##1{%
33225 + \egroup\noexpand\scanmacro{\temp}}%
33227 + \expandafter\xdef\csname\the\macname\endcsname{%
33228 + \bgroup\noexpand\macroargctxt
33229 + \noexpand\csname\the\macname xx\endcsname}%
33230 + \expandafter\xdef\csname\the\macname xx\endcsname##1{%
33231 + \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}%
33232 + \expandafter\expandafter
33233 + \expandafter\xdef
33234 + \expandafter\expandafter
33235 + \csname\the\macname xxx\endcsname
33236 + \paramlist{\egroup\noexpand\scanmacro{\temp}}%
33241 + \expandafter\xdef\csname\the\macname\endcsname{%
33242 + \noexpand\norecurse{\the\macname}%
33243 + \noexpand\scanmacro{\temp}\egroup}%
33245 + \expandafter\xdef\csname\the\macname\endcsname{%
33246 + \bgroup\noexpand\macroargctxt
33247 + \noexpand\braceorline
33248 + \expandafter\noexpand\csname\the\macname xxx\endcsname}%
33249 + \expandafter\xdef\csname\the\macname xxx\endcsname##1{%
33251 + \noexpand\norecurse{\the\macname}%
33252 + \noexpand\scanmacro{\temp}\egroup}%
33254 + \expandafter\xdef\csname\the\macname\endcsname{%
33255 + \bgroup\noexpand\macroargctxt
33256 + \expandafter\noexpand\csname\the\macname xx\endcsname}%
33257 + \expandafter\xdef\csname\the\macname xx\endcsname##1{%
33258 + \expandafter\noexpand\csname\the\macname xxx\endcsname ##1,}%
33259 + \expandafter\expandafter
33260 + \expandafter\xdef
33261 + \expandafter\expandafter
33262 + \csname\the\macname xxx\endcsname
33265 + \noexpand\norecurse{\the\macname}%
33266 + \noexpand\scanmacro{\temp}\egroup}%
33270 +\def\norecurse#1{\bgroup\cslet{#1}{macsave.#1}}
33272 +% \braceorline decides whether the next nonwhitespace character is a
33273 +% {. If so it reads up to the closing }, if not, it reads the whole
33274 +% line. Whatever was read is then fed to the next control sequence
33275 +% as an argument (by \parsebrace or \parsearg)
33276 +\def\braceorline#1{\let\next=#1\futurelet\nchar\braceorlinexxx}
33277 +\def\braceorlinexxx{%
33278 + \ifx\nchar\bgroup\else
33279 + \expandafter\parsearg
33284 +% We need some trickery to remove the optional spaces around the equal
33285 +% sign. Just make them active and then expand them all to nothing.
33286 +\def\alias{\parseargusing\obeyspaces\aliasxxx}
33287 +\def\aliasxxx #1{\aliasyyy#1\relax}
33288 +\def\aliasyyy #1=#2\relax{%
33290 + \expandafter\let\obeyedspace=\empty
33291 + \addtomacrolist{#1}%
33292 + \xdef\next{\global\let\makecsname{#1}=\makecsname{#2}}%
33298 +\message{cross references,}
33302 +\newif\ifhavexrefs % True if xref values are known.
33303 +\newif\ifwarnedxrefs % True if we warned once that they aren't known.
33305 +% @inforef is relatively simple.
33306 +\def\inforef #1{\inforefzzz #1,,,,**}
33307 +\def\inforefzzz #1,#2,#3,#4**{\putwordSee{} \putwordInfo{} \putwordfile{} \file{\ignorespaces #3{}},
33308 + node \samp{\ignorespaces#1{}}}
33310 +% @node's only job in TeX is to define \lastnode, which is used in
33311 +% cross-references. The @node line might or might not have commas, and
33312 +% might or might not have spaces before the first comma, like:
33313 +% @node foo , bar , ...
33314 +% We don't want such trailing spaces in the node name.
33316 +\parseargdef\node{\checkenv{}\donode #1 ,\finishnodeparse}
33318 +% also remove a trailing comma, in case of something like this:
33319 +% @node Help-Cross, , , Cross-refs
33320 +\def\donode#1 ,#2\finishnodeparse{\dodonode #1,\finishnodeparse}
33321 +\def\dodonode#1,#2\finishnodeparse{\gdef\lastnode{#1}}
33324 +\let\lastnode=\empty
33326 +% Write a cross-reference definition for the current node. #1 is the
33327 +% type (Ynumbered, Yappendix, Ynothing).
33329 +\def\donoderef#1{%
33330 + \ifx\lastnode\empty\else
33331 + \setref{\lastnode}{#1}%
33332 + \global\let\lastnode=\empty
33336 +% @anchor{NAME} -- define xref target at arbitrary point.
33338 +\newcount\savesfregister
33340 +\def\savesf{\relax \ifhmode \savesfregister=\spacefactor \fi}
33341 +\def\restoresf{\relax \ifhmode \spacefactor=\savesfregister \fi}
33342 +\def\anchor#1{\savesf \setref{#1}{Ynothing}\restoresf \ignorespaces}
33344 +% \setref{NAME}{SNT} defines a cross-reference point NAME (a node or an
33345 +% anchor), which consists of three parts:
33346 +% 1) NAME-title - the current sectioning name taken from \thissection,
33347 +% or the anchor name.
33348 +% 2) NAME-snt - section number and type, passed as the SNT arg, or
33349 +% empty for anchors.
33350 +% 3) NAME-pg - the page number.
33352 +% This is called from \donoderef, \anchor, and \dofloat. In the case of
33353 +% floats, there is an additional part, which is not written here:
33354 +% 4) NAME-lof - the text as it should appear in a @listoffloats.
33360 + \atdummies % preserve commands, but don't expand them
33361 + \edef\writexrdef##1##2{%
33362 + \write\auxfile{@xrdef{#1-% #1 of \setref, expanded by the \edef
33363 + ##1}{##2}}% these are parameters of \writexrdef
33365 + \toks0 = \expandafter{\thissection}%
33366 + \immediate \writexrdef{title}{\the\toks0 }%
33367 + \immediate \writexrdef{snt}{\csname #2\endcsname}% \Ynumbered etc.
33368 + \writexrdef{pg}{\folio}% will be written later, during \shipout
33373 +% @xref, @pxref, and @ref generate cross-references. For \xrefX, #1 is
33374 +% the node name, #2 the name of the Info cross-reference, #3 the printed
33375 +% node name, #4 the name of the Info file, #5 the name of the printed
33376 +% manual. All but the node name can be omitted.
33378 +\def\pxref#1{\putwordsee{} \xrefX[#1,,,,,,,]}
33379 +\def\xref#1{\putwordSee{} \xrefX[#1,,,,,,,]}
33380 +\def\ref#1{\xrefX[#1,,,,,,,]}
33381 +\def\xrefX[#1,#2,#3,#4,#5,#6]{\begingroup
33383 + \def\printedmanual{\ignorespaces #5}%
33384 + \def\printedrefname{\ignorespaces #3}%
33385 + \setbox1=\hbox{\printedmanual\unskip}%
33386 + \setbox0=\hbox{\printedrefname\unskip}%
33387 + \ifdim \wd0 = 0pt
33388 + % No printed node name was explicitly given.
33389 + \expandafter\ifx\csname SETxref-automatic-section-title\endcsname\relax
33390 + % Use the node name inside the square brackets.
33391 + \def\printedrefname{\ignorespaces #1}%
33393 + % Use the actual chapter/section title appear inside
33394 + % the square brackets. Use the real section title if we have it.
33395 + \ifdim \wd1 > 0pt
33396 + % It is in another manual, so we don't have it.
33397 + \def\printedrefname{\ignorespaces #1}%
33400 + % We know the real title if we have the xref values.
33401 + \def\printedrefname{\refx{#1-title}{}}%
33403 + % Otherwise just copy the Info node name.
33404 + \def\printedrefname{\ignorespaces #1}%
33410 + % Make link in pdf output.
33413 + \getfilename{#4}%
33415 + % See comments at \activebackslashdouble.
33416 + {\activebackslashdouble \xdef\pdfxrefdest{#1}%
33417 + \backslashparens\pdfxrefdest}%
33419 + \ifnum\filenamelength>0
33420 + \startlink attr{/Border [0 0 0]}%
33421 + goto file{\the\filename.pdf} name{\pdfxrefdest}%
33423 + \startlink attr{/Border [0 0 0]}%
33424 + goto name{\pdfmkpgn{\pdfxrefdest}}%
33430 + % Float references are printed completely differently: "Figure 1.2"
33431 + % instead of "[somenode], p.3". We distinguish them by the
33432 + % LABEL-title being set to a magic string.
33434 + % Have to otherify everything special to allow the \csname to
33435 + % include an _ in the xref name, etc.
33438 + \expandafter\global\expandafter\let\expandafter\Xthisreftitle
33439 + \csname XR#1-title\endcsname
33441 + \iffloat\Xthisreftitle
33442 + % If the user specified the print name (third arg) to the ref,
33443 + % print it instead of our usual "Figure 1.2".
33450 + % if the user also gave the printed manual name (fifth arg), append
33451 + % "in MANUALNAME".
33452 + \ifdim \wd1 > 0pt
33453 + \space \putwordin{} \cite{\printedmanual}%
33456 + % node/anchor (non-float) references.
33458 + % If we use \unhbox0 and \unhbox1 to print the node names, TeX does not
33459 + % insert empty discretionaries after hyphens, which means that it will
33460 + % not find a line break at a hyphen in a node names. Since some manuals
33461 + % are best written with fairly long node names, containing hyphens, this
33462 + % is a loss. Therefore, we give the text of the node name again, so it
33463 + % is as if TeX is seeing it for the first time.
33464 + \ifdim \wd1 > 0pt
33465 + \putwordsection{} ``\printedrefname'' \putwordin{} \cite{\printedmanual}%
33467 + % _ (for example) has to be the character _ for the purposes of the
33468 + % control sequence corresponding to the node, but it has to expand
33469 + % into the usual \leavevmode...\vrule stuff for purposes of
33470 + % printing. So we \turnoffactive for the \refx-snt, back on for the
33471 + % printing, back off for the \refx-pg.
33473 + % Only output a following space if the -snt ref is nonempty; for
33474 + % @unnumbered and @anchor, it won't be.
33475 + \setbox2 = \hbox{\ignorespaces \refx{#1-snt}{}}%
33476 + \ifdim \wd2 > 0pt \refx{#1-snt}\space\fi
33478 + % output the `[mynode]' via a macro so it can be overridden.
33479 + \xrefprintnodename\printedrefname
33481 + % But we always want a comma and a space:
33484 + % output the `page 3'.
33485 + \turnoffactive \putwordpage\tie\refx{#1-pg}{}%
33491 +% This macro is called from \xrefX for the `[nodename]' part of xref
33492 +% output. It's a separate macro only so it can be changed more easily,
33493 +% since square brackets don't work well in some documents. Particularly
33494 +% one that Bob is working on :).
33496 +\def\xrefprintnodename#1{[#1]}
33498 +% Things referred to by \setref.
33501 +\def\Yomitfromtoc{}
33504 + \putwordChapter@tie \the\chapno
33505 + \else \ifnum\subsecno=0
33506 + \putwordSection@tie \the\chapno.\the\secno
33507 + \else \ifnum\subsubsecno=0
33508 + \putwordSection@tie \the\chapno.\the\secno.\the\subsecno
33510 + \putwordSection@tie \the\chapno.\the\secno.\the\subsecno.\the\subsubsecno
33515 + \putwordAppendix@tie @char\the\appendixno{}%
33516 + \else \ifnum\subsecno=0
33517 + \putwordSection@tie @char\the\appendixno.\the\secno
33518 + \else \ifnum\subsubsecno=0
33519 + \putwordSection@tie @char\the\appendixno.\the\secno.\the\subsecno
33521 + \putwordSection@tie
33522 + @char\the\appendixno.\the\secno.\the\subsecno.\the\subsubsecno
33526 +% Define \refx{NAME}{SUFFIX} to reference a cross-reference string named NAME.
33527 +% If its value is nonempty, SUFFIX is output afterward.
33533 + \expandafter\global\expandafter\let\expandafter\thisrefX
33534 + \csname XR#1\endcsname
33536 + \ifx\thisrefX\relax
33537 + % If not defined, say something at least.
33538 + \angleleft un\-de\-fined\angleright
33541 + \message{\linenumber Undefined cross reference `#1'.}%
33543 + \ifwarnedxrefs\else
33544 + \global\warnedxrefstrue
33545 + \message{Cross reference values unknown; you must run TeX again.}%
33550 + % It's defined, so just use it.
33553 + #2% Output the suffix in any case.
33556 +% This is the macro invoked by entries in the aux file. Usually it's
33557 +% just a \def (we prepend XR to the control sequence name to avoid
33558 +% collisions). But if this is a float type, we have more work to do.
33561 + \expandafter\gdef\csname XR#1\endcsname{#2}% remember this xref value.
33563 + % Was that xref control sequence that we just defined for a float?
33564 + \expandafter\iffloat\csname XR#1\endcsname
33565 + % it was a float, and we have the (safe) float type in \iffloattype.
33566 + \expandafter\let\expandafter\floatlist
33567 + \csname floatlist\iffloattype\endcsname
33569 + % Is this the first time we've seen this float type?
33570 + \expandafter\ifx\floatlist\relax
33571 + \toks0 = {\do}% yes, so just \do
33573 + % had it before, so preserve previous elements in list.
33574 + \toks0 = \expandafter{\floatlist\do}%
33577 + % Remember this xref in the control sequence \floatlistFLOATTYPE,
33578 + % for later use in \listoffloats.
33579 + \expandafter\xdef\csname floatlist\iffloattype\endcsname{\the\toks0{#1}}%
33583 +% Read the last existing aux file, if any. No error if none exists.
33586 + \openin 1 \jobname.aux
33588 + \readdatafile{aux}%
33589 + \global\havexrefstrue
33594 +\def\setupdatafile{%
33595 + \catcode`\^^@=\other
33596 + \catcode`\^^A=\other
33597 + \catcode`\^^B=\other
33598 + \catcode`\^^C=\other
33599 + \catcode`\^^D=\other
33600 + \catcode`\^^E=\other
33601 + \catcode`\^^F=\other
33602 + \catcode`\^^G=\other
33603 + \catcode`\^^H=\other
33604 + \catcode`\^^K=\other
33605 + \catcode`\^^L=\other
33606 + \catcode`\^^N=\other
33607 + \catcode`\^^P=\other
33608 + \catcode`\^^Q=\other
33609 + \catcode`\^^R=\other
33610 + \catcode`\^^S=\other
33611 + \catcode`\^^T=\other
33612 + \catcode`\^^U=\other
33613 + \catcode`\^^V=\other
33614 + \catcode`\^^W=\other
33615 + \catcode`\^^X=\other
33616 + \catcode`\^^Z=\other
33617 + \catcode`\^^[=\other
33618 + \catcode`\^^\=\other
33619 + \catcode`\^^]=\other
33620 + \catcode`\^^^=\other
33621 + \catcode`\^^_=\other
33622 + % It was suggested to set the catcode of ^ to 7, which would allow ^^e4 etc.
33623 + % in xref tags, i.e., node names. But since ^^e4 notation isn't
33624 + % supported in the main text, it doesn't seem desirable. Furthermore,
33625 + % that is not enough: for node names that actually contain a ^
33626 + % character, we would end up writing a line like this: 'xrdef {'hat
33627 + % b-title}{'hat b} and \xrdef does a \csname...\endcsname on the first
33628 + % argument, and \hat is not an expandable control sequence. It could
33629 + % all be worked out, but why? Either we support ^^ or we don't.
33631 + % The other change necessary for this was to define \auxhat:
33632 + % \def\auxhat{\def^{'hat }}% extra space so ok if followed by letter
33633 + % and then to call \auxhat in \setq.
33635 + \catcode`\^=\other
33637 + % Special characters. Should be turned off anyway, but...
33638 + \catcode`\~=\other
33639 + \catcode`\[=\other
33640 + \catcode`\]=\other
33641 + \catcode`\"=\other
33642 + \catcode`\_=\other
33643 + \catcode`\|=\other
33644 + \catcode`\<=\other
33645 + \catcode`\>=\other
33646 + \catcode`\$=\other
33647 + \catcode`\#=\other
33648 + \catcode`\&=\other
33649 + \catcode`\%=\other
33650 + \catcode`+=\other % avoid \+ for paranoia even though we've turned it off
33652 + % This is to support \ in node names and titles, since the \
33653 + % characters end up in a \csname. It's easier than
33654 + % leaving it active and making its active definition an actual \
33655 + % character. What I don't understand is why it works in the *value*
33656 + % of the xrdef. Seems like it should be a catcode12 \, and that
33657 + % should not typeset properly. But it works, so I'm moving on for
33658 + % now. --karl, 15jan04.
33659 + \catcode`\\=\other
33661 + % Make the characters 128-255 be printing characters.
33665 + \catcode\count1=\other
33666 + \advance\count1 by 1
33667 + \ifnum \count1<256 \loop \fi
33671 + % @ is our escape character in .aux files, and we need braces.
33677 +\def\readdatafile#1{%
33680 + \input\jobname.#1
33683 +\message{insertions,}
33684 +% including footnotes.
33686 +\newcount \footnoteno
33688 +% The trailing space in the following definition for supereject is
33689 +% vital for proper filling; pages come out unaligned when you do a
33690 +% pagealignmacro call if that space before the closing brace is
33691 +% removed. (Generally, numeric constants should always be followed by a
33692 +% space to prevent strange expansion errors.)
33693 +\def\supereject{\par\penalty -20000\footnoteno =0 }
33695 +% @footnotestyle is meaningful for info output only.
33696 +\let\footnotestyle=\comment
33700 +% Auto-number footnotes. Otherwise like plain.
33702 + \let\indent=\ptexindent
33703 + \let\noindent=\ptexnoindent
33704 + \global\advance\footnoteno by \@ne
33705 + \edef\thisfootno{$^{\the\footnoteno}$}%
33707 + % In case the footnote comes at the end of a sentence, preserve the
33708 + % extra spacing after we do the footnote number.
33710 + \ifhmode\edef\@sf{\spacefactor\the\spacefactor}\ptexslash\fi
33712 + % Remove inadvertent blank space before typesetting the footnote number.
33718 +% Don't bother with the trickery in plain.tex to not require the
33719 +% footnote text as a parameter. Our footnotes don't need to be so general.
33721 +% Oh yes, they do; otherwise, @ifset (and anything else that uses
33722 +% \parseargline) fails inside footnotes because the tokens are fixed when
33723 +% the footnote is read. --karl, 16nov96.
33725 +\gdef\dofootnote{%
33726 + \insert\footins\bgroup
33727 + % We want to typeset this text as a normal paragraph, even if the
33728 + % footnote reference occurs in (for example) a display environment.
33729 + % So reset some parameters.
33730 + \hsize=\pagewidth
33731 + \interlinepenalty\interfootnotelinepenalty
33732 + \splittopskip\ht\strutbox % top baseline for broken footnotes
33733 + \splitmaxdepth\dp\strutbox
33734 + \floatingpenalty\@MM
33736 + \rightskip\z@skip
33737 + \spaceskip\z@skip
33738 + \xspaceskip\z@skip
33739 + \parindent\defaultparindent
33743 + % Because we use hanging indentation in footnotes, a @noindent appears
33744 + % to exdent this text, so make it be a no-op. makeinfo does not use
33745 + % hanging indentation so @noindent can still be needed within footnote
33746 + % text after an @example or the like (not that this is good style).
33747 + \let\noindent = \relax
33749 + % Hang the footnote text off the number. Use \everypar in case the
33750 + % footnote extends for more than one paragraph.
33751 + \everypar = {\hang}%
33752 + \textindent{\thisfootno}%
33754 + % Don't crash into the line above the footnote text. Since this
33755 + % expands into a box, it must come within the paragraph, lest it
33756 + % provide a place where TeX can split the footnote.
33758 + \futurelet\next\fo@t
33760 +}%end \catcode `\@=11
33762 +% In case a @footnote appears in a vbox, save the footnote text and create
33763 +% the real \insert just after the vbox finished. Otherwise, the insertion
33765 +% Similarily, if a @footnote appears inside an alignment, save the footnote
33766 +% text to a box and make the \insert when a row of the table is finished.
33767 +% And the same can be done for other insert classes. --kasal, 16nov03.
33769 +% Replace the \insert primitive by a cheating macro.
33770 +% Deeper inside, just make sure that the saved insertions are not spilled
33771 +% out prematurely.
33773 +\def\startsavinginserts{%
33774 + \ifx \insert\ptexinsert
33775 + \let\insert\saveinsert
33777 + \let\checkinserts\relax
33781 +% This \insert replacement works for both \insert\footins{foo} and
33782 +% \insert\footins\bgroup foo\egroup, but it doesn't work for \insert27{foo}.
33784 +\def\saveinsert#1{%
33785 + \edef\next{\noexpand\savetobox \makeSAVEname#1}%
33786 + \afterassignment\next
33787 + % swallow the left brace
33790 +\def\makeSAVEname#1{\makecsname{SAVE\expandafter\gobble\string#1}}
33791 +\def\savetobox#1{\global\setbox#1 = \vbox\bgroup \unvbox#1}
33793 +\def\checksaveins#1{\ifvoid#1\else \placesaveins#1\fi}
33795 +\def\placesaveins#1{%
33796 + \ptexinsert \csname\expandafter\gobblesave\string#1\endcsname
33800 +% eat @SAVE -- beware, all of them have catcode \other:
33802 + \def\dospecials{\do S\do A\do V\do E} \uncatcodespecials % ;-)
33803 + \gdef\gobblesave @SAVE{}
33807 +\def\newsaveins #1{%
33808 + \edef\next{\noexpand\newsaveinsX \makeSAVEname#1}%
33811 +\def\newsaveinsX #1{%
33812 + \csname newbox\endcsname #1%
33813 + \expandafter\def\expandafter\checkinserts\expandafter{\checkinserts
33814 + \checksaveins #1}%
33818 +\let\checkinserts\empty
33819 +\newsaveins\footins
33820 +\newsaveins\margin
33823 +% @image. We use the macros from epsf.tex to support this.
33824 +% If epsf.tex is not installed and @image is used, we complain.
33826 +% Check for and read epsf.tex up front. If we read it only at @image
33827 +% time, we might be inside a group, and then its definitions would get
33828 +% undone and the next image would fail.
33829 +\openin 1 = epsf.tex
33831 + % Do not bother showing banner with epsf.tex v2.7k (available in
33832 + % doc/epsf.tex and on ctan).
33833 + \def\epsfannounce{\toks0 = }%
33838 +% We will only complain once about lack of epsf.tex.
33839 +\newif\ifwarnednoepsf
33840 +\newhelp\noepsfhelp{epsf.tex must be installed for images to
33841 + work. It is also included in the Texinfo distribution, or you can get
33842 + it from ftp://tug.org/tex/epsf.tex.}
33845 + \ifx\epsfbox\undefined
33846 + \ifwarnednoepsf \else
33847 + \errhelp = \noepsfhelp
33848 + \errmessage{epsf.tex not found, images will be ignored}%
33849 + \global\warnednoepsftrue
33852 + \imagexxx #1,,,,,\finish
33856 +% Arguments to @image:
33857 +% #1 is (mandatory) image filename; we tack on .eps extension.
33858 +% #2 is (optional) width, #3 is (optional) height.
33859 +% #4 is (ignored optional) html alt text.
33860 +% #5 is (ignored optional) extension.
33861 +% #6 is just the usual extra ignored arg for parsing this stuff.
33862 +\newif\ifimagevmode
33863 +\def\imagexxx#1,#2,#3,#4,#5,#6\finish{\begingroup
33864 + \catcode`\^^M = 5 % in case we're inside an example
33865 + \normalturnoffactive % allow _ et al. in names
33866 + % If the image is by itself, center it.
33870 + % Usually we'll have text after the image which will insert
33871 + % \parskip glue, so insert it here too to equalize the space
33872 + % above and below.
33873 + \nobreak\vskip\parskip
33878 + % Output the image.
33880 + \dopdfimage{#1}{#2}{#3}%
33882 + % \epsfbox itself resets \epsf?size at each figure.
33883 + \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \epsfxsize=#2\relax \fi
33884 + \setbox0 = \hbox{\ignorespaces #3}\ifdim\wd0 > 0pt \epsfysize=#3\relax \fi
33885 + \epsfbox{#1.eps}%
33888 + \ifimagevmode \hss \egroup \bigbreak \fi % space after the image
33892 +% @float FLOATTYPE,LABEL,LOC ... @end float for displayed figures, tables,
33893 +% etc. We don't actually implement floating yet, we always include the
33894 +% float "here". But it seemed the best name for the future.
33896 +\envparseargdef\float{\eatcommaspace\eatcommaspace\dofloat#1, , ,\finish}
33898 +% There may be a space before second and/or third parameter; delete it.
33899 +\def\eatcommaspace#1, {#1,}
33901 +% #1 is the optional FLOATTYPE, the text label for this float, typically
33902 +% "Figure", "Table", "Example", etc. Can't contain commas. If omitted,
33903 +% this float will not be numbered and cannot be referred to.
33905 +% #2 is the optional xref label. Also must be present for the float to
33908 +% #3 is the optional positioning argument; for now, it is ignored. It
33909 +% will somehow specify the positions allowed to float to (here, top, bottom).
33911 +% We keep a separate counter for each FLOATTYPE, which we reset at each
33912 +% chapter-level command.
33913 +\let\resetallfloatnos=\empty
33915 +\def\dofloat#1,#2,#3,#4\finish{%
33916 + \let\thiscaption=\empty
33917 + \let\thisshortcaption=\empty
33919 + % don't lose footnotes inside @float.
33921 + % BEWARE: when the floats start float, we have to issue warning whenever an
33922 + % insert appears inside a float which could possibly float. --kasal, 26may04
33924 + \startsavinginserts
33926 + % We can't be used inside a paragraph.
33930 + \def\floattype{#1}%
33931 + \def\floatlabel{#2}%
33932 + \def\floatloc{#3}% we do nothing with this yet.
33934 + \ifx\floattype\empty
33935 + \let\safefloattype=\empty
33938 + % the floattype might have accents or other special characters,
33939 + % but we need to use it in a control sequence name.
33942 + \xdef\safefloattype{\floattype}%
33946 + % If label is given but no type, we handle that as the empty type.
33947 + \ifx\floatlabel\empty \else
33948 + % We want each FLOATTYPE to be numbered separately (Figure 1,
33949 + % Table 1, Figure 2, ...). (And if no label, no number.)
33951 + \expandafter\getfloatno\csname\safefloattype floatno\endcsname
33952 + \global\advance\floatno by 1
33955 + % This magic value for \thissection is output by \setref as the
33956 + % XREFLABEL-title value. \xrefX uses it to distinguish float
33957 + % labels (which have a completely different output format) from
33958 + % node and anchor labels. And \xrdef uses it to construct the
33959 + % lists of floats.
33961 + \edef\thissection{\floatmagic=\safefloattype}%
33962 + \setref{\floatlabel}{Yfloat}%
33966 + % start with \parskip glue, I guess.
33969 + % Don't suppress indentation if a float happens to start a section.
33970 + \restorefirstparagraphindent
33973 +% we have these possibilities:
33974 +% @float Foo,lbl & @caption{Cap}: Foo 1.1: Cap
33975 +% @float Foo,lbl & no caption: Foo 1.1
33976 +% @float Foo & @caption{Cap}: Foo: Cap
33977 +% @float Foo & no caption: Foo
33978 +% @float ,lbl & Caption{Cap}: 1.1: Cap
33979 +% @float ,lbl & no caption: 1.1
33980 +% @float & @caption{Cap}: Cap
33981 +% @float & no caption:
33984 + \let\floatident = \empty
33986 + % In all cases, if we have a float type, it comes first.
33987 + \ifx\floattype\empty \else \def\floatident{\floattype}\fi
33989 + % If we have an xref label, the number comes next.
33990 + \ifx\floatlabel\empty \else
33991 + \ifx\floattype\empty \else % if also had float type, need tie first.
33992 + \appendtomacro\floatident{\tie}%
33995 + \appendtomacro\floatident{\chaplevelprefix\the\floatno}%
33998 + % Start the printed caption with what we've constructed in
33999 + % \floatident, but keep it separate; we need \floatident again.
34000 + \let\captionline = \floatident
34002 + \ifx\thiscaption\empty \else
34003 + \ifx\floatident\empty \else
34004 + \appendtomacro\captionline{: }% had ident, so need a colon between
34008 + \appendtomacro\captionline{\scanexp\thiscaption}%
34011 + % If we have anything to print, print it, with space before.
34012 + % Eventually this needs to become an \insert.
34013 + \ifx\captionline\empty \else
34017 + % Space below caption.
34021 + % If have an xref label, write the list of floats info. Do this
34022 + % after the caption, to avoid chance of it being a breakpoint.
34023 + \ifx\floatlabel\empty \else
34024 + % Write the text that goes in the lof to the aux file as
34025 + % \floatlabel-lof. Besides \floatident, we include the short
34026 + % caption if specified, else the full caption if specified, else nothing.
34029 + % since we read the caption text in the macro world, where ^^M
34030 + % is turned into a normal character, we have to scan it back, so
34031 + % we don't write the literal three characters "^^M" into the aux file.
34033 + \xdef\noexpand\gtemp{%
34034 + \ifx\thisshortcaption\empty
34037 + \thisshortcaption
34041 + \immediate\write\auxfile{@xrdef{\floatlabel-lof}{\floatident
34042 + \ifx\gtemp\empty \else : \gtemp \fi}}%
34045 + \egroup % end of \vtop
34047 + % place the captured inserts
34049 + % BEWARE: when the floats start float, we have to issue warning whenever an
34050 + % insert appears inside a float which could possibly float. --kasal, 26may04
34055 +% Append the tokens #2 to the definition of macro #1, not expanding either.
34057 +\def\appendtomacro#1#2{%
34058 + \expandafter\def\expandafter#1\expandafter{#1#2}%
34061 +% @caption, @shortcaption
34063 +\def\caption{\docaption\thiscaption}
34064 +\def\shortcaption{\docaption\thisshortcaption}
34065 +\def\docaption{\checkenv\float \bgroup\scanargctxt\defcaption}
34066 +\def\defcaption#1#2{\egroup \def#1{#2}}
34068 +% The parameter is the control sequence identifying the counter we are
34069 +% going to use. Create it if it doesn't exist and assign it to \floatno.
34070 +\def\getfloatno#1{%
34072 + % Haven't seen this figure type before.
34073 + \csname newcount\endcsname #1%
34075 + % Remember to reset this floatno at the next chap.
34076 + \expandafter\gdef\expandafter\resetallfloatnos
34077 + \expandafter{\resetallfloatnos #1=0 }%
34082 +% \setref calls this to get the XREFLABEL-snt value. We want an @xref
34083 +% to the FLOATLABEL to expand to "Figure 3.1". We call \setref when we
34084 +% first read the @float command.
34086 +\def\Yfloat{\floattype@tie \chaplevelprefix\the\floatno}%
34088 +% Magic string used for the XREFLABEL-title value, so \xrefX can
34089 +% distinguish floats from other xref types.
34090 +\def\floatmagic{!!float!!}
34092 +% #1 is the control sequence we are passed; we expand into a conditional
34093 +% which is true if #1 represents a float ref. That is, the magic
34094 +% \thissection value which we \setref above.
34096 +\def\iffloat#1{\expandafter\doiffloat#1==\finish}
34098 +% #1 is (maybe) the \floatmagic string. If so, #2 will be the
34099 +% (safe) float type for this float. We set \iffloattype to #2.
34101 +\def\doiffloat#1=#2=#3\finish{%
34103 + \def\iffloattype{#2}%
34104 + \ifx\temp\floatmagic
34107 +% @listoffloats FLOATTYPE - print a list of floats like a table of contents.
34109 +\parseargdef\listoffloats{%
34110 + \def\floattype{#1}% floattype
34112 + % the floattype might have accents or other special characters,
34113 + % but we need to use it in a control sequence name.
34116 + \xdef\safefloattype{\floattype}%
34119 + % \xrdef saves the floats as a \do-list in \floatlistSAFEFLOATTYPE.
34120 + \expandafter\ifx\csname floatlist\safefloattype\endcsname \relax
34122 + % if the user said @listoffloats foo but never @float foo.
34123 + \message{\linenumber No `\safefloattype' floats to list.}%
34127 + \leftskip=\tocindent % indent these entries like a toc
34128 + \let\do=\listoffloatsdo
34129 + \csname floatlist\safefloattype\endcsname
34134 +% This is called on each entry in a list of floats. We're passed the
34135 +% xref label, in the form LABEL-title, which is how we save it in the
34136 +% aux file. We strip off the -title and look up \XRLABEL-lof, which
34137 +% has the text we're supposed to typeset here.
34139 +% Figures without xref labels will not be included in the list (since
34140 +% they won't appear in the aux file).
34142 +\def\listoffloatsdo#1{\listoffloatsdoentry#1\finish}
34143 +\def\listoffloatsdoentry#1-title\finish{{%
34144 + % Can't fully expand XR#1-lof because it can contain anything. Just
34145 + % pass the control sequence. On the other hand, XR#1-pg is just the
34146 + % page number, and we want to fully expand that so we can get a link
34148 + \toksA = \expandafter{\csname XR#1-lof\endcsname}%
34150 + % use the same \entry macro we use to generate the TOC and index.
34151 + \edef\writeentry{\noexpand\entry{\the\toksA}{\csname XR#1-pg\endcsname}}%
34155 +\message{localization,}
34158 +% @documentlanguage is usually given very early, just after
34159 +% @setfilename. If done too late, it may not override everything
34160 +% properly. Single argument is the language abbreviation.
34161 +% It would be nice if we could set up a hyphenation file here.
34163 +\parseargdef\documentlanguage{%
34164 + \tex % read txi-??.tex file in plain TeX.
34165 + % Read the file if it exists.
34166 + \openin 1 txi-#1.tex
34168 + \errhelp = \nolanghelp
34169 + \errmessage{Cannot read language file txi-#1.tex}%
34171 + \input txi-#1.tex
34176 +\newhelp\nolanghelp{The given language definition file cannot be found or
34177 +is empty. Maybe you need to install it? In the current directory
34178 +should work if nowhere else does.}
34181 +% @documentencoding should change something in TeX eventually, most
34182 +% likely, but for now just recognize it.
34183 +\let\documentencoding = \comment
34186 +% Page size parameters.
34188 +\newdimen\defaultparindent \defaultparindent = 15pt
34190 +\chapheadingskip = 15pt plus 4pt minus 2pt
34191 +\secheadingskip = 12pt plus 3pt minus 2pt
34192 +\subsecheadingskip = 9pt plus 2pt minus 2pt
34194 +% Prevent underfull vbox error messages.
34197 +% Don't be so finicky about underfull hboxes, either.
34200 +% Following George Bush, just get rid of widows and orphans.
34201 +\widowpenalty=10000
34202 +\clubpenalty=10000
34204 +% Use TeX 3.0's \emergencystretch to help line breaking, but if we're
34205 +% using an old version of TeX, don't do anything. We want the amount of
34206 +% stretch added to depend on the line length, hence the dependence on
34207 +% \hsize. We call this whenever the paper size is set.
34209 +\def\setemergencystretch{%
34210 + \ifx\emergencystretch\thisisundefined
34211 + % Allow us to assign to \emergencystretch anyway.
34212 + \def\emergencystretch{\dimen0}%
34214 + \emergencystretch = .15\hsize
34218 +% Parameters in order: 1) textheight; 2) textwidth;
34219 +% 3) voffset; 4) hoffset; 5) binding offset; 6) topskip;
34220 +% 7) physical page height; 8) physical page width.
34222 +% We also call \setleading{\textleading}, so the caller should define
34223 +% \textleading. The caller should also set \parskip.
34225 +\def\internalpagesizes#1#2#3#4#5#6#7#8{%
34226 + \voffset = #3\relax
34227 + \topskip = #6\relax
34228 + \splittopskip = \topskip
34230 + \vsize = #1\relax
34231 + \advance\vsize by \topskip
34232 + \outervsize = \vsize
34233 + \advance\outervsize by 2\topandbottommargin
34234 + \pageheight = \vsize
34236 + \hsize = #2\relax
34237 + \outerhsize = \hsize
34238 + \advance\outerhsize by 0.5in
34239 + \pagewidth = \hsize
34241 + \normaloffset = #4\relax
34242 + \bindingoffset = #5\relax
34245 + \pdfpageheight #7\relax
34246 + \pdfpagewidth #8\relax
34249 + \setleading{\textleading}
34251 + \parindent = \defaultparindent
34252 + \setemergencystretch
34255 +% @letterpaper (the default).
34256 +\def\letterpaper{{\globaldefs = 1
34257 + \parskip = 3pt plus 2pt minus 1pt
34258 + \textleading = 13.2pt
34260 + % If page is nothing but text, make it come out even.
34261 + \internalpagesizes{46\baselineskip}{6in}%
34262 + {\voffset}{.25in}%
34263 + {\bindingoffset}{36pt}%
34267 +% Use @smallbook to reset parameters for 7x9.25 trim size.
34268 +\def\smallbook{{\globaldefs = 1
34269 + \parskip = 2pt plus 1pt
34270 + \textleading = 12pt
34272 + \internalpagesizes{7.5in}{5in}%
34273 + {\voffset}{.25in}%
34274 + {\bindingoffset}{16pt}%
34277 + \lispnarrowing = 0.3in
34280 + \contentsrightmargin = 0pt
34281 + \defbodyindent = .5cm
34284 +% Use @smallerbook to reset parameters for 6x9 trim size.
34285 +% (Just testing, parameters still in flux.)
34286 +\def\smallerbook{{\globaldefs = 1
34287 + \parskip = 1.5pt plus 1pt
34288 + \textleading = 12pt
34290 + \internalpagesizes{7.4in}{4.8in}%
34295 + \lispnarrowing = 0.25in
34298 + \contentsrightmargin = 0pt
34299 + \defbodyindent = .4cm
34302 +% Use @afourpaper to print on European A4 paper.
34303 +\def\afourpaper{{\globaldefs = 1
34304 + \parskip = 3pt plus 2pt minus 1pt
34305 + \textleading = 13.2pt
34307 + % Double-side printing via postscript on Laserjet 4050
34308 + % prints double-sided nicely when \bindingoffset=10mm and \hoffset=-6mm.
34309 + % To change the settings for a different printer or situation, adjust
34310 + % \normaloffset until the front-side and back-side texts align. Then
34311 + % do the same for \bindingoffset. You can set these for testing in
34312 + % your texinfo source file like this:
34314 + % \global\normaloffset = -6mm
34315 + % \global\bindingoffset = 10mm
34317 + \internalpagesizes{51\baselineskip}{160mm}
34318 + {\voffset}{\hoffset}%
34319 + {\bindingoffset}{44pt}%
34324 + \contentsrightmargin = 0pt
34325 + \defbodyindent = 5mm
34328 +% Use @afivepaper to print on European A5 paper.
34329 +% From romildo@urano.iceb.ufop.br, 2 July 2000.
34330 +% He also recommends making @example and @lisp be small.
34331 +\def\afivepaper{{\globaldefs = 1
34332 + \parskip = 2pt plus 1pt minus 0.1pt
34333 + \textleading = 12.5pt
34335 + \internalpagesizes{160mm}{120mm}%
34336 + {\voffset}{\hoffset}%
34337 + {\bindingoffset}{8pt}%
34340 + \lispnarrowing = 0.2in
34343 + \contentsrightmargin = 0pt
34344 + \defbodyindent = 2mm
34345 + \tableindent = 12mm
34348 +% A specific text layout, 24x15cm overall, intended for A4 paper.
34349 +\def\afourlatex{{\globaldefs = 1
34351 + \internalpagesizes{237mm}{150mm}%
34352 + {\voffset}{4.6mm}%
34353 + {\bindingoffset}{7mm}%
34356 + % Must explicitly reset to 0 because we call \afourpaper.
34360 +% Use @afourwide to print on A4 paper in landscape format.
34361 +\def\afourwide{{\globaldefs = 1
34363 + \internalpagesizes{241mm}{165mm}%
34364 + {\voffset}{-2.95mm}%
34365 + {\bindingoffset}{7mm}%
34370 +% @pagesizes TEXTHEIGHT[,TEXTWIDTH]
34371 +% Perhaps we should allow setting the margins, \topskip, \parskip,
34372 +% and/or leading, also. Or perhaps we should compute them somehow.
34374 +\parseargdef\pagesizes{\pagesizesyyy #1,,\finish}
34375 +\def\pagesizesyyy#1,#2,#3\finish{{%
34376 + \setbox0 = \hbox{\ignorespaces #2}\ifdim\wd0 > 0pt \hsize=#2\relax \fi
34379 + \parskip = 3pt plus 2pt minus 1pt
34380 + \setleading{\textleading}%
34383 + \advance\dimen0 by \voffset
34386 + \advance\dimen2 by \normaloffset
34388 + \internalpagesizes{#1}{\hsize}%
34389 + {\voffset}{\normaloffset}%
34390 + {\bindingoffset}{44pt}%
34391 + {\dimen0}{\dimen2}%
34394 +% Set default to letter.
34399 +\message{and turning on texinfo input format.}
34401 +% Define macros to output various characters with catcode for normal text.
34402 +\catcode`\"=\other
34403 +\catcode`\~=\other
34404 +\catcode`\^=\other
34405 +\catcode`\_=\other
34406 +\catcode`\|=\other
34407 +\catcode`\<=\other
34408 +\catcode`\>=\other
34409 +\catcode`\+=\other
34410 +\catcode`\$=\other
34411 +\def\normaldoublequote{"}
34412 +\def\normaltilde{~}
34413 +\def\normalcaret{^}
34414 +\def\normalunderscore{_}
34415 +\def\normalverticalbar{|}
34416 +\def\normalless{<}
34417 +\def\normalgreater{>}
34418 +\def\normalplus{+}
34419 +\def\normaldollar{$}%$ font-lock fix
34421 +% This macro is used to make a character print one way in \tt
34422 +% (where it can probably be output as-is), and another way in other fonts,
34423 +% where something hairier probably needs to be done.
34425 +% #1 is what to print if we are indeed using \tt; #2 is what to print
34426 +% otherwise. Since all the Computer Modern typewriter fonts have zero
34427 +% interword stretch (and shrink), and it is reasonable to expect all
34428 +% typewriter fonts to have this, we can check that font parameter.
34430 +\def\ifusingtt#1#2{\ifdim \fontdimen3\font=0pt #1\else #2\fi}
34432 +% Same as above, but check for italic font. Actually this also catches
34433 +% non-italic slanted fonts since it is impossible to distinguish them from
34434 +% italic fonts. But since this is only used by $ and it uses \sl anyway
34435 +% this is not a problem.
34436 +\def\ifusingit#1#2{\ifdim \fontdimen1\font>0pt #1\else #2\fi}
34438 +% Turn off all special characters except @
34439 +% (and those which the user can use as if they were ordinary).
34440 +% Most of these we simply print from the \tt font, but for some, we can
34441 +% use math or other variants that look better in normal text.
34443 +\catcode`\"=\active
34444 +\def\activedoublequote{{\tt\char34}}
34445 +\let"=\activedoublequote
34446 +\catcode`\~=\active
34447 +\def~{{\tt\char126}}
34449 +\catcode`\^=\active
34452 +\catcode`\_=\active
34453 +\def_{\ifusingtt\normalunderscore\_}
34455 +% Subroutine for the previous macro.
34456 +\def\_{\leavevmode \kern.07em \vbox{\hrule width.3em height.1ex}\kern .07em }
34458 +\catcode`\|=\active
34459 +\def|{{\tt\char124}}
34460 +\chardef \less=`\<
34461 +\catcode`\<=\active
34462 +\def<{{\tt \less}}
34464 +\catcode`\>=\active
34466 +\catcode`\+=\active
34467 +\def+{{\tt \char 43}}
34468 +\catcode`\$=\active
34469 +\def${\ifusingit{{\sl\$}}\normaldollar}%$ font-lock fix
34471 +% If a .fmt file is being used, characters that might appear in a file
34472 +% name cannot be active until we have parsed the command line.
34473 +% So turn them off again, and have \everyjob (or @setfilename) turn them on.
34474 +% \otherifyactive is called near the end of this file.
34475 +\def\otherifyactive{\catcode`+=\other \catcode`\_=\other}
34479 +% \backslashcurfont outputs one backslash character in current font,
34481 +\global\chardef\backslashcurfont=`\\
34482 +\global\let\rawbackslashxx=\backslashcurfont % let existing .??s files work
34484 +% \rawbackslash defines an active \ to do \backslashcurfont.
34485 +% \otherbackslash defines an active \ to be a literal `\' character with
34487 +{\catcode`\\=\active
34488 + @gdef@rawbackslash{@let\=@backslashcurfont}
34489 + @gdef@otherbackslash{@let\=@realbackslash}
34492 +% \realbackslash is an actual character `\' with catcode other, and
34493 +% \doublebackslash is two of them (for the pdf outlines).
34494 +{\catcode`\\=\other @gdef@realbackslash{\} @gdef@doublebackslash{\\}}
34496 +% \normalbackslash outputs one backslash in fixed width font.
34497 +\def\normalbackslash{{\tt\backslashcurfont}}
34499 +\catcode`\\=\active
34501 +% Used sometimes to turn off (effectively) the active characters
34502 +% even after parsing them.
34503 +@def@turnoffactive{%
34504 + @let"=@normaldoublequote
34505 + @let\=@realbackslash
34506 + @let~=@normaltilde
34507 + @let^=@normalcaret
34508 + @let_=@normalunderscore
34509 + @let|=@normalverticalbar
34510 + @let<=@normalless
34511 + @let>=@normalgreater
34512 + @let+=@normalplus
34513 + @let$=@normaldollar %$ font-lock fix
34517 +% Same as @turnoffactive except outputs \ as {\tt\char`\\} instead of
34518 +% the literal character `\'. (Thus, \ is not expandable when this is in
34521 +@def@normalturnoffactive{@turnoffactive @let\=@normalbackslash}
34523 +% Make _ and + \other characters, temporarily.
34524 +% This is canceled by @fixbackslash.
34527 +% If a .fmt file is being used, we don't want the `\input texinfo' to show up.
34528 +% That is what \eatinput is for; after that, the `\' should revert to printing
34531 +@gdef@eatinput input texinfo{@fixbackslash}
34532 +@global@let\ = @eatinput
34534 +% On the other hand, perhaps the file did not have a `\input texinfo'. Then
34535 +% the first `\{ in the file would cause an error. This macro tries to fix
34536 +% that, assuming it is called before the first `\' could plausibly occur.
34537 +% Also turn back on active characters that might appear in the input
34538 +% file name, in case not using a pre-dumped format.
34540 +@gdef@fixbackslash{%
34541 + @ifx\@eatinput @let\ = @normalbackslash @fi
34542 + @catcode`+=@active
34543 + @catcode`@_=@active
34546 +% Say @foo, not \foo, in error messages.
34549 +% These look ok in all fonts, so just make them not special.
34550 +@catcode`@& = @other
34551 +@catcode`@# = @other
34552 +@catcode`@% = @other
34555 +@c Local variables:
34556 +@c eval: (add-hook 'write-file-hooks 'time-stamp)
34557 +@c page-delimiter: "^\\\\message"
34558 +@c time-stamp-start: "def\\\\texinfoversion{"
34559 +@c time-stamp-format: "%:y-%02m-%02d.%02H"
34560 +@c time-stamp-end: "}"
34566 + arch-tag: e1b36e32-c96e-4135-a41a-0b2efa2ea115
34568 Index: libffi/testsuite/lib/libffi-dg.exp
34569 ===================================================================
34570 --- libffi.orig/testsuite/lib/libffi-dg.exp
34571 +++ libffi/testsuite/lib/libffi-dg.exp
34572 @@ -11,12 +11,12 @@
34573 # GNU General Public License for more details.
34575 # You should have received a copy of the GNU General Public License
34576 -# along with this program; see the file COPYING3. If not see
34577 -# <http://www.gnu.org/licenses/>.
34578 +# along with this program; if not, write to the Free Software
34579 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
34581 proc load_gcc_lib { filename } {
34583 - load_file $srcdir/../../gcc/testsuite/lib/$filename
34584 + load_file $srcdir/lib/$filename
34588 @@ -94,7 +94,6 @@ proc libffi-init { args } {
34593 global TOOL_OPTIONS
34595 global libffi_include
34596 @@ -102,10 +101,8 @@ proc libffi-init { args } {
34597 global tool_root_dir
34598 global ld_library_path
34600 - set blddirffi [lookfor_file [get_multilibs] libffi]
34601 + set blddirffi [pwd]/..
34602 verbose "libffi $blddirffi"
34603 - set blddircxx [lookfor_file [get_multilibs] libstdc++-v3]
34604 - verbose "libstdc++ $blddircxx"
34606 set gccdir [lookfor_file $tool_root_dir gcc/libgcc.a]
34607 if {$gccdir != ""} {
34608 @@ -132,8 +129,6 @@ proc libffi-init { args } {
34610 # add the library path for libffi.
34611 append ld_library_path ":${blddirffi}/.libs"
34612 - # add the library path for libstdc++ as well.
34613 - append ld_library_path ":${blddircxx}/src/.libs"
34615 verbose "ld_library_path: $ld_library_path"
34617 @@ -146,7 +141,6 @@ proc libffi-init { args } {
34618 if { $libffi_dir != "" } {
34619 set libffi_dir [file dirname ${libffi_dir}]
34620 set libffi_link_flags "-L${libffi_dir}/.libs"
34621 - lappend libffi_link_flags "-L${blddircxx}/src/.libs"
34624 set_ld_library_path_env_vars
34625 Index: libffi/testsuite/lib/target-libpath.exp
34626 ===================================================================
34628 +++ libffi/testsuite/lib/target-libpath.exp
34630 +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
34632 +# This program is free software; you can redistribute it and/or modify
34633 +# it under the terms of the GNU General Public License as published by
34634 +# the Free Software Foundation; either version 3 of the License, or
34635 +# (at your option) any later version.
34637 +# This program is distributed in the hope that it will be useful,
34638 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
34639 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34640 +# GNU General Public License for more details.
34642 +# You should have received a copy of the GNU General Public License
34643 +# along with GCC; see the file COPYING3. If not see
34644 +# <http://www.gnu.org/licenses/>.
34646 +# This file was contributed by John David Anglin (dave.anglin@nrc-cnrc.gc.ca)
34648 +set orig_environment_saved 0
34649 +set orig_ld_library_path_saved 0
34650 +set orig_ld_run_path_saved 0
34651 +set orig_shlib_path_saved 0
34652 +set orig_ld_libraryn32_path_saved 0
34653 +set orig_ld_library64_path_saved 0
34654 +set orig_ld_library_path_32_saved 0
34655 +set orig_ld_library_path_64_saved 0
34656 +set orig_dyld_library_path_saved 0
34659 +#######################################
34660 +# proc set_ld_library_path_env_vars { }
34661 +#######################################
34663 +proc set_ld_library_path_env_vars { } {
34664 + global ld_library_path
34665 + global orig_environment_saved
34666 + global orig_ld_library_path_saved
34667 + global orig_ld_run_path_saved
34668 + global orig_shlib_path_saved
34669 + global orig_ld_libraryn32_path_saved
34670 + global orig_ld_library64_path_saved
34671 + global orig_ld_library_path_32_saved
34672 + global orig_ld_library_path_64_saved
34673 + global orig_dyld_library_path_saved
34674 + global orig_ld_library_path
34675 + global orig_ld_run_path
34676 + global orig_shlib_path
34677 + global orig_ld_libraryn32_path
34678 + global orig_ld_library64_path
34679 + global orig_ld_library_path_32
34680 + global orig_ld_library_path_64
34681 + global orig_dyld_library_path
34682 + global GCC_EXEC_PREFIX
34684 + # Set the relocated compiler prefix, but only if the user hasn't specified one.
34685 + if { [info exists GCC_EXEC_PREFIX] && ![info exists env(GCC_EXEC_PREFIX)] } {
34686 + setenv GCC_EXEC_PREFIX "$GCC_EXEC_PREFIX"
34689 + # Setting the ld library path causes trouble when testing cross-compilers.
34690 + if { [is_remote target] } {
34694 + if { $orig_environment_saved == 0 } {
34697 + set orig_environment_saved 1
34699 + # Save the original environment.
34700 + if [info exists env(LD_LIBRARY_PATH)] {
34701 + set orig_ld_library_path "$env(LD_LIBRARY_PATH)"
34702 + set orig_ld_library_path_saved 1
34704 + if [info exists env(LD_RUN_PATH)] {
34705 + set orig_ld_run_path "$env(LD_RUN_PATH)"
34706 + set orig_ld_run_path_saved 1
34708 + if [info exists env(SHLIB_PATH)] {
34709 + set orig_shlib_path "$env(SHLIB_PATH)"
34710 + set orig_shlib_path_saved 1
34712 + if [info exists env(LD_LIBRARYN32_PATH)] {
34713 + set orig_ld_libraryn32_path "$env(LD_LIBRARYN32_PATH)"
34714 + set orig_ld_libraryn32_path_saved 1
34716 + if [info exists env(LD_LIBRARY64_PATH)] {
34717 + set orig_ld_library64_path "$env(LD_LIBRARY64_PATH)"
34718 + set orig_ld_library64_path_saved 1
34720 + if [info exists env(LD_LIBRARY_PATH_32)] {
34721 + set orig_ld_library_path_32 "$env(LD_LIBRARY_PATH_32)"
34722 + set orig_ld_library_path_32_saved 1
34724 + if [info exists env(LD_LIBRARY_PATH_64)] {
34725 + set orig_ld_library_path_64 "$env(LD_LIBRARY_PATH_64)"
34726 + set orig_ld_library_path_64_saved 1
34728 + if [info exists env(DYLD_LIBRARY_PATH)] {
34729 + set orig_dyld_library_path "$env(DYLD_LIBRARY_PATH)"
34730 + set orig_dyld_library_path_saved 1
34734 + # We need to set ld library path in the environment. Currently,
34735 + # unix.exp doesn't set the environment correctly for all systems.
34736 + # It only sets SHLIB_PATH and LD_LIBRARY_PATH when it executes a
34737 + # program. We also need the environment set for compilations, etc.
34739 + # On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
34740 + # called LD_LIBRARYN32_PATH (for the N32 ABI) and LD_LIBRARY64_PATH
34741 + # (for the 64-bit ABI). The same applies to Darwin (DYLD_LIBRARY_PATH),
34742 + # Solaris 32 bit (LD_LIBRARY_PATH_32), Solaris 64 bit (LD_LIBRARY_PATH_64),
34743 + # and HP-UX (SHLIB_PATH). In some cases, the variables are independent
34744 + # of LD_LIBRARY_PATH, and in other cases LD_LIBRARY_PATH is used if the
34745 + # variable is not defined.
34747 + # Doing this is somewhat of a hack as ld_library_path gets repeated in
34748 + # SHLIB_PATH and LD_LIBRARY_PATH when unix_load sets these variables.
34749 + if { $orig_ld_library_path_saved } {
34750 + setenv LD_LIBRARY_PATH "$ld_library_path:$orig_ld_library_path"
34752 + setenv LD_LIBRARY_PATH "$ld_library_path"
34754 + if { $orig_ld_run_path_saved } {
34755 + setenv LD_RUN_PATH "$ld_library_path:$orig_ld_run_path"
34757 + setenv LD_RUN_PATH "$ld_library_path"
34759 + # The default shared library dynamic path search for 64-bit
34760 + # HP-UX executables searches LD_LIBRARY_PATH before SHLIB_PATH.
34761 + # LD_LIBRARY_PATH isn't used for 32-bit executables. Thus, we
34762 + # set LD_LIBRARY_PATH and SHLIB_PATH as if they were independent.
34763 + if { $orig_shlib_path_saved } {
34764 + setenv SHLIB_PATH "$ld_library_path:$orig_shlib_path"
34766 + setenv SHLIB_PATH "$ld_library_path"
34768 + if { $orig_ld_libraryn32_path_saved } {
34769 + setenv LD_LIBRARYN32_PATH "$ld_library_path:$orig_ld_libraryn32_path"
34770 + } elseif { $orig_ld_library_path_saved } {
34771 + setenv LD_LIBRARYN32_PATH "$ld_library_path:$orig_ld_library_path"
34773 + setenv LD_LIBRARYN32_PATH "$ld_library_path"
34775 + if { $orig_ld_library64_path_saved } {
34776 + setenv LD_LIBRARY64_PATH "$ld_library_path:$orig_ld_library64_path"
34777 + } elseif { $orig_ld_library_path_saved } {
34778 + setenv LD_LIBRARY64_PATH "$ld_library_path:$orig_ld_library_path"
34780 + setenv LD_LIBRARY64_PATH "$ld_library_path"
34782 + if { $orig_ld_library_path_32_saved } {
34783 + setenv LD_LIBRARY_PATH_32 "$ld_library_path:$orig_ld_library_path_32"
34784 + } elseif { $orig_ld_library_path_saved } {
34785 + setenv LD_LIBRARY_PATH_32 "$ld_library_path:$orig_ld_library_path"
34787 + setenv LD_LIBRARY_PATH_32 "$ld_library_path"
34789 + if { $orig_ld_library_path_64_saved } {
34790 + setenv LD_LIBRARY_PATH_64 "$ld_library_path:$orig_ld_library_path_64"
34791 + } elseif { $orig_ld_library_path_saved } {
34792 + setenv LD_LIBRARY_PATH_64 "$ld_library_path:$orig_ld_library_path"
34794 + setenv LD_LIBRARY_PATH_64 "$ld_library_path"
34796 + if { $orig_dyld_library_path_saved } {
34797 + setenv DYLD_LIBRARY_PATH "$ld_library_path:$orig_dyld_library_path"
34799 + setenv DYLD_LIBRARY_PATH "$ld_library_path"
34802 + verbose -log "set_ld_library_path_env_vars: ld_library_path=$ld_library_path"
34805 +#######################################
34806 +# proc restore_ld_library_path_env_vars { }
34807 +#######################################
34809 +proc restore_ld_library_path_env_vars { } {
34810 + global orig_environment_saved
34811 + global orig_ld_library_path_saved
34812 + global orig_ld_run_path_saved
34813 + global orig_shlib_path_saved
34814 + global orig_ld_libraryn32_path_saved
34815 + global orig_ld_library64_path_saved
34816 + global orig_ld_library_path_32_saved
34817 + global orig_ld_library_path_64_saved
34818 + global orig_dyld_library_path_saved
34819 + global orig_ld_library_path
34820 + global orig_ld_run_path
34821 + global orig_shlib_path
34822 + global orig_ld_libraryn32_path
34823 + global orig_ld_library64_path
34824 + global orig_ld_library_path_32
34825 + global orig_ld_library_path_64
34826 + global orig_dyld_library_path
34828 + if { $orig_environment_saved == 0 } {
34832 + if { $orig_ld_library_path_saved } {
34833 + setenv LD_LIBRARY_PATH "$orig_ld_library_path"
34834 + } elseif [info exists env(LD_LIBRARY_PATH)] {
34835 + unsetenv LD_LIBRARY_PATH
34837 + if { $orig_ld_run_path_saved } {
34838 + setenv LD_RUN_PATH "$orig_ld_run_path"
34839 + } elseif [info exists env(LD_RUN_PATH)] {
34840 + unsetenv LD_RUN_PATH
34842 + if { $orig_shlib_path_saved } {
34843 + setenv SHLIB_PATH "$orig_shlib_path"
34844 + } elseif [info exists env(SHLIB_PATH)] {
34845 + unsetenv SHLIB_PATH
34847 + if { $orig_ld_libraryn32_path_saved } {
34848 + setenv LD_LIBRARYN32_PATH "$orig_ld_libraryn32_path"
34849 + } elseif [info exists env(LD_LIBRARYN32_PATH)] {
34850 + unsetenv LD_LIBRARYN32_PATH
34852 + if { $orig_ld_library64_path_saved } {
34853 + setenv LD_LIBRARY64_PATH "$orig_ld_library64_path"
34854 + } elseif [info exists env(LD_LIBRARY64_PATH)] {
34855 + unsetenv LD_LIBRARY64_PATH
34857 + if { $orig_ld_library_path_32_saved } {
34858 + setenv LD_LIBRARY_PATH_32 "$orig_ld_library_path_32"
34859 + } elseif [info exists env(LD_LIBRARY_PATH_32)] {
34860 + unsetenv LD_LIBRARY_PATH_32
34862 + if { $orig_ld_library_path_64_saved } {
34863 + setenv LD_LIBRARY_PATH_64 "$orig_ld_library_path_64"
34864 + } elseif [info exists env(LD_LIBRARY_PATH_64)] {
34865 + unsetenv LD_LIBRARY_PATH_64
34867 + if { $orig_dyld_library_path_saved } {
34868 + setenv DYLD_LIBRARY_PATH "$orig_dyld_library_path"
34869 + } elseif [info exists env(DYLD_LIBRARY_PATH)] {
34870 + unsetenv DYLD_LIBRARY_PATH
34874 +#######################################
34875 +# proc get_shlib_extension { }
34876 +#######################################
34878 +proc get_shlib_extension { } {
34881 + if { [ istarget *-*-darwin* ] } {
34882 + set shlib_ext "dylib"
34883 + } elseif { [ istarget *-*-cygwin* ] || [ istarget *-*-mingw* ] } {
34884 + set shlib_ext "dll"
34885 + } elseif { [ istarget hppa*-*-hpux* ] } {
34886 + set shlib_ext "sl"
34888 + set shlib_ext "so"
34890 + return $shlib_ext
34893 Index: libffi/testsuite/lib/wrapper.exp
34894 ===================================================================
34896 +++ libffi/testsuite/lib/wrapper.exp
34898 +# Copyright (C) 2004, 2007 Free Software Foundation, Inc.
34900 +# This program is free software; you can redistribute it and/or modify
34901 +# it under the terms of the GNU General Public License as published by
34902 +# the Free Software Foundation; either version 3 of the License, or
34903 +# (at your option) any later version.
34905 +# This program is distributed in the hope that it will be useful,
34906 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
34907 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34908 +# GNU General Public License for more details.
34910 +# You should have received a copy of the GNU General Public License
34911 +# along with GCC; see the file COPYING3. If not see
34912 +# <http://www.gnu.org/licenses/>.
34914 +# This file contains GCC-specifics for status wrappers for test programs.
34916 +# ${tool}_maybe_build_wrapper -- Build wrapper object if the target
34917 +# needs it. FILENAME is the path to the wrapper file. If there are
34918 +# additional arguments, they are command-line options to provide to
34919 +# the compiler when compiling FILENAME.
34921 +proc ${tool}_maybe_build_wrapper { filename args } {
34922 + global gluefile wrap_flags
34924 + if { [target_info needs_status_wrapper] != "" \
34925 + && [target_info needs_status_wrapper] != "0" \
34926 + && ![info exists gluefile] } {
34927 + set saved_wrap_compile_flags [target_info wrap_compile_flags]
34928 + set flags [join $args " "]
34929 + # The wrapper code may contain code that gcc objects on. This
34930 + # became true for dejagnu-1.4.4. The set of warnings and code
34931 + # that gcc objects on may change, so just make sure -w is always
34932 + # passed to turn off all warnings.
34933 + set_currtarget_info wrap_compile_flags \
34934 + "$saved_wrap_compile_flags -w $flags"
34935 + set result [build_wrapper $filename]
34936 + set_currtarget_info wrap_compile_flags "$saved_wrap_compile_flags"
34937 + if { $result != "" } {
34938 + set gluefile [lindex $result 0]
34939 + set wrap_flags [lindex $result 1]
34943 Index: libffi/include/Makefile.am
34944 ===================================================================
34945 --- libffi.orig/include/Makefile.am
34946 +++ libffi/include/Makefile.am
34947 @@ -5,8 +5,5 @@ AUTOMAKE_OPTIONS=foreign
34948 DISTCLEANFILES=ffitarget.h
34949 EXTRA_DIST=ffi.h.in ffi_common.h
34951 -# Where generated headers like ffitarget.h get installed.
34952 -gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
34953 -toollibffidir := $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
34955 -toollibffi_HEADERS = ffi.h ffitarget.h
34956 +includesdir = $(libdir)/@PACKAGE_NAME@-@PACKAGE_VERSION@/include
34957 +nodist_includes_HEADERS = ffi.h ffitarget.h
34958 Index: libffi/README
34959 ===================================================================
34960 --- libffi.orig/README
34963 -This directory contains the libffi package, which is not part of GCC but
34964 -shipped with GCC as convenience.
34969 -libffi-3.0.9 was released on December 31, 2009. Check the libffi web
34970 +libffi-3.0.10 was released on XXXXXXXXXX, 2010. Check the libffi web
34971 page for updates: <URL:http://sourceware.org/libffi/>.
34974 @@ -46,7 +43,7 @@ Libffi has been ported to many different
34975 For specific configuration details and testing status, please
34976 refer to the wiki page here:
34978 - http://www.moxielogic.org/wiki/index.php?title=Libffi_3.0.9
34979 + http://www.moxielogic.org/wiki/index.php?title=Libffi_3.0.10
34981 At the time of release, the following basic configurations have been
34983 @@ -55,6 +52,7 @@ tested:
34984 | Architecture | Operating System |
34985 |--------------+------------------|
34991 @@ -84,6 +82,7 @@ tested:
34992 | X86-64 | FreeBSD |
34994 | X86-64 | OpenBSD |
34995 +| X86-64 | Windows/MingW |
34996 |--------------+------------------|
34998 Please send additional platform test results to
34999 @@ -141,6 +140,10 @@ See the ChangeLog files for details.
35000 Enable builds with Microsoft's compiler.
35001 Enable x86 builds with Sun's compiler.
35004 + Fix the N64 build on mips-sgi-irix6.5.
35005 + Testsuite fixes for Tru64 Unix.
35008 Add AVR32 and win64 ports. Add ARM softfp support.
35009 Many fixes for AIX, Solaris, HP-UX, *BSD.
35010 Index: libffi/testsuite/Makefile.am
35011 ===================================================================
35012 --- libffi.orig/testsuite/Makefile.am
35013 +++ libffi/testsuite/Makefile.am
35014 @@ -14,3 +14,67 @@ RUNTEST = `if [ -f $(top_srcdir)/../deja
35017 CLEANFILES = *.exe core* *.log *.sum
35019 +EXTRA_DIST = libffi.special/special.exp \
35020 +libffi.special/unwindtest_ffi_call.cc libffi.special/unwindtest.cc \
35021 +libffi.special/ffitestcxx.h config/default.exp lib/target-libpath.exp \
35022 +lib/libffi-dg.exp lib/wrapper.exp libffi.call/float.c \
35023 +libffi.call/cls_multi_schar.c libffi.call/float3.c \
35024 +libffi.call/cls_3_1byte.c libffi.call/stret_large2.c \
35025 +libffi.call/cls_5_1_byte.c libffi.call/stret_medium.c \
35026 +libffi.call/promotion.c libffi.call/cls_dbls_struct.c \
35027 +libffi.call/nested_struct.c libffi.call/closure_fn1.c \
35028 +libffi.call/cls_4_1byte.c libffi.call/cls_float.c \
35029 +libffi.call/cls_2byte.c libffi.call/closure_fn4.c \
35030 +libffi.call/return_fl2.c libffi.call/nested_struct7.c \
35031 +libffi.call/cls_uint.c libffi.call/cls_align_sint64.c \
35032 +libffi.call/float1.c libffi.call/cls_19byte.c \
35033 +libffi.call/nested_struct1.c libffi.call/cls_4byte.c \
35034 +libffi.call/return_fl1.c libffi.call/cls_align_pointer.c \
35035 +libffi.call/nested_struct4.c libffi.call/nested_struct3.c \
35036 +libffi.call/struct7.c libffi.call/nested_struct9.c \
35037 +libffi.call/cls_sshort.c libffi.call/cls_ulonglong.c \
35038 +libffi.call/cls_pointer_stack.c libffi.call/cls_multi_uchar.c \
35039 +libffi.call/testclosure.c libffi.call/cls_3byte1.c \
35040 +libffi.call/struct6.c libffi.call/return_uc.c libffi.call/return_ll1.c \
35041 +libffi.call/cls_ushort.c libffi.call/stret_medium2.c \
35042 +libffi.call/cls_multi_ushortchar.c libffi.call/return_dbl2.c \
35043 +libffi.call/closure_loc_fn0.c libffi.call/return_sc.c \
35044 +libffi.call/nested_struct8.c libffi.call/cls_7_1_byte.c \
35045 +libffi.call/return_ll.c libffi.call/cls_pointer.c \
35046 +libffi.call/err_bad_abi.c libffi.call/return_dbl1.c \
35047 +libffi.call/call.exp libffi.call/ffitest.h libffi.call/strlen.c \
35048 +libffi.call/return_sl.c libffi.call/cls_1_1byte.c \
35049 +libffi.call/struct1.c libffi.call/cls_64byte.c libffi.call/return_ul.c \
35050 +libffi.call/cls_double.c libffi.call/many_win32.c \
35051 +libffi.call/cls_16byte.c libffi.call/cls_align_double.c \
35052 +libffi.call/cls_align_uint16.c libffi.call/cls_9byte1.c \
35053 +libffi.call/cls_multi_sshortchar.c libffi.call/cls_multi_ushort.c \
35054 +libffi.call/closure_stdcall.c libffi.call/return_fl.c \
35055 +libffi.call/strlen_win32.c libffi.call/return_ldl.c \
35056 +libffi.call/cls_align_float.c libffi.call/struct3.c \
35057 +libffi.call/cls_uchar.c libffi.call/cls_sint.c libffi.call/float2.c \
35058 +libffi.call/cls_align_longdouble_split.c \
35059 +libffi.call/cls_longdouble_va.c libffi.call/cls_multi_sshort.c \
35060 +libffi.call/stret_large.c libffi.call/cls_align_sint16.c \
35061 +libffi.call/nested_struct6.c libffi.call/cls_5byte.c \
35062 +libffi.call/return_dbl.c libffi.call/cls_20byte.c \
35063 +libffi.call/cls_8byte.c libffi.call/pyobjc-tc.c \
35064 +libffi.call/cls_24byte.c libffi.call/cls_align_longdouble_split2.c \
35065 +libffi.call/cls_6_1_byte.c libffi.call/cls_schar.c \
35066 +libffi.call/cls_18byte.c libffi.call/closure_fn3.c \
35067 +libffi.call/err_bad_typedef.c libffi.call/closure_fn2.c \
35068 +libffi.call/struct2.c libffi.call/cls_3byte2.c \
35069 +libffi.call/cls_align_longdouble.c libffi.call/cls_20byte1.c \
35070 +libffi.call/return_fl3.c libffi.call/cls_align_uint32.c \
35071 +libffi.call/problem1.c libffi.call/float4.c \
35072 +libffi.call/cls_align_uint64.c libffi.call/struct9.c \
35073 +libffi.call/closure_fn5.c libffi.call/cls_align_sint32.c \
35074 +libffi.call/closure_fn0.c libffi.call/closure_fn6.c \
35075 +libffi.call/struct4.c libffi.call/nested_struct2.c \
35076 +libffi.call/cls_6byte.c libffi.call/cls_7byte.c libffi.call/many.c \
35077 +libffi.call/struct8.c libffi.call/negint.c libffi.call/struct5.c \
35078 +libffi.call/cls_12byte.c libffi.call/cls_double_va.c \
35079 +libffi.call/cls_longdouble.c libffi.call/cls_9byte2.c \
35080 +libffi.call/nested_struct10.c libffi.call/nested_struct5.c \
35081 +libffi.call/huge_struct.c