Add hotplug file
[openwrt/svn-archive/archive.git] / libs / libsamplerate / patches / 100-libtoolize.patch
1 diff -urN libsamplerate.old/aclocal.m4 libsamplerate.dev/aclocal.m4
2 --- libsamplerate.old/aclocal.m4 2004-09-12 04:57:31.000000000 +0200
3 +++ libsamplerate.dev/aclocal.m4 2007-11-07 23:58:51.222136120 +0100
4 @@ -1,7 +1,7 @@
5 -# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
6 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
7
8 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
9 -# Free Software Foundation, Inc.
10 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
11 +# 2005 Free Software Foundation, Inc.
12 # This file is free software; the Free Software Foundation
13 # gives unlimited permission to copy and/or distribute it,
14 # with or without modifications, as long as this notice is preserved.
15 @@ -11,3768 +11,3927 @@
16 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
17 # PARTICULAR PURPOSE.
18
19 -dnl @synopsis AC_C_FIND_ENDIAN
20 -dnl
21 -dnl Determine endian-ness of target processor.
22 -dnl @version 1.1 Mar 03 2002
23 -dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
24 -dnl
25 -dnl Majority written from scratch to replace the standard autoconf macro
26 -dnl AC_C_BIGENDIAN. Only part remaining from the original it the invocation
27 -dnl of the AC_TRY_RUN macro.
28 -dnl
29 -dnl Permission to use, copy, modify, distribute, and sell this file for any
30 -dnl purpose is hereby granted without fee, provided that the above copyright
31 -dnl and this permission notice appear in all copies. No representations are
32 -dnl made about the suitability of this software for any purpose. It is
33 -dnl provided "as is" without express or implied warranty.
34 -
35 -dnl Find endian-ness in the following way:
36 -dnl 1) Look in <endian.h>.
37 -dnl 2) If 1) fails, look in <sys/types.h> and <sys/param.h>.
38 -dnl 3) If 1) and 2) fails and not cross compiling run a test program.
39 -dnl 4) If 1) and 2) fails and cross compiling then guess based on target.
40 -
41 -AC_DEFUN([AC_C_FIND_ENDIAN],
42 -[AC_CACHE_CHECK(processor byte ordering,
43 - ac_cv_c_byte_order,
44 -
45 -# Initialize to unknown
46 -ac_cv_c_byte_order=unknown
47 -
48 -if test x$ac_cv_header_endian_h = xyes ; then
49 -
50 - # First try <endian.h> which should set BYTE_ORDER.
51 -
52 - [AC_TRY_LINK([
53 - #include <endian.h>
54 - #if BYTE_ORDER != LITTLE_ENDIAN
55 - not big endian
56 - #endif
57 - ], return 0 ;,
58 - ac_cv_c_byte_order=little
59 - )]
60 -
61 - [AC_TRY_LINK([
62 - #include <endian.h>
63 - #if BYTE_ORDER != BIG_ENDIAN
64 - not big endian
65 - #endif
66 - ], return 0 ;,
67 - ac_cv_c_byte_order=big
68 - )]
69 -
70 - fi
71 -
72 -if test $ac_cv_c_byte_order = unknown ; then
73 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
74
75 - [AC_TRY_LINK([
76 - #include <sys/types.h>
77 - #include <sys/param.h>
78 - #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
79 - bogus endian macros
80 - #endif
81 - ], return 0 ;,
82 -
83 - [AC_TRY_LINK([
84 - #include <sys/types.h>
85 - #include <sys/param.h>
86 - #if BYTE_ORDER != LITTLE_ENDIAN
87 - not big endian
88 - #endif
89 - ], return 0 ;,
90 - ac_cv_c_byte_order=little
91 - )]
92 -
93 - [AC_TRY_LINK([
94 - #include <sys/types.h>
95 - #include <sys/param.h>
96 - #if BYTE_ORDER != LITTLE_ENDIAN
97 - not big endian
98 - #endif
99 - ], return 0 ;,
100 - ac_cv_c_byte_order=little
101 - )]
102 -
103 - )]
104 -
105 - fi
106 -
107 -if test $ac_cv_c_byte_order = unknown ; then
108 - if test $cross_compiling = yes ; then
109 - # This is the last resort. Try to guess the target processor endian-ness
110 - # by looking at the target CPU type.
111 - [
112 - case "$target_cpu" in
113 - alpha* | i?86* | mipsel* | ia64*)
114 - ac_cv_c_big_endian=0
115 - ac_cv_c_little_endian=1
116 - ;;
117 -
118 - m68* | mips* | powerpc* | hppa* | sparc*)
119 - ac_cv_c_big_endian=1
120 - ac_cv_c_little_endian=0
121 - ;;
122 -
123 - esac
124 - ]
125 - else
126 - AC_TRY_RUN(
127 - [[
128 - int main (void)
129 - { /* Are we little or big endian? From Harbison&Steele. */
130 - union
131 - { long l ;
132 - char c [sizeof (long)] ;
133 - } u ;
134 - u.l = 1 ;
135 - return (u.c [sizeof (long) - 1] == 1);
136 - }
137 - ]], , ac_cv_c_byte_order=big,
138 - ac_cv_c_byte_order=unknown
139 - )
140 -
141 - AC_TRY_RUN(
142 - [[int main (void)
143 - { /* Are we little or big endian? From Harbison&Steele. */
144 - union
145 - { long l ;
146 - char c [sizeof (long)] ;
147 - } u ;
148 - u.l = 1 ;
149 - return (u.c [0] == 1);
150 - }]], , ac_cv_c_byte_order=little,
151 - ac_cv_c_byte_order=unknown
152 - )
153 - fi
154 - fi
155 +# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
156
157 -)
158 -]
159
160 -if test $ac_cv_c_byte_order = big ; then
161 - ac_cv_c_big_endian=1
162 - ac_cv_c_little_endian=0
163 -elif test $ac_cv_c_byte_order = little ; then
164 - ac_cv_c_big_endian=0
165 - ac_cv_c_little_endian=1
166 -else
167 - ac_cv_c_big_endian=0
168 - ac_cv_c_little_endian=0
169 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
170 +# -----------------------------------------------------------
171 +# If this macro is not defined by Autoconf, define it here.
172 +m4_ifdef([AC_PROVIDE_IFELSE],
173 + [],
174 + [m4_define([AC_PROVIDE_IFELSE],
175 + [m4_ifdef([AC_PROVIDE_$1],
176 + [$2], [$3])])])
177
178 - AC_MSG_WARN([[*****************************************************************]])
179 - AC_MSG_WARN([[*** Not able to determine endian-ness of target processor. ]])
180 - AC_MSG_WARN([[*** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in ]])
181 - AC_MSG_WARN([[*** src/config.h may need to be hand editied. ]])
182 - AC_MSG_WARN([[*****************************************************************]])
183 - fi
184
185 -)# AC_C_FIND_ENDIAN
186 +# AC_PROG_LIBTOOL
187 +# ---------------
188 +AC_DEFUN([AC_PROG_LIBTOOL],
189 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
190 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
191 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
192 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
193 + [AC_LIBTOOL_CXX],
194 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
195 + ])])
196 +dnl And a similar setup for Fortran 77 support
197 + AC_PROVIDE_IFELSE([AC_PROG_F77],
198 + [AC_LIBTOOL_F77],
199 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
200 +])])
201
202 -dnl @synopsis AC_C99_FUNC_LRINT
203 -dnl
204 -dnl Check whether C99's lrint function is available.
205 -dnl @version 1.3 Feb 12 2002
206 -dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
207 -dnl
208 -dnl Permission to use, copy, modify, distribute, and sell this file for any
209 -dnl purpose is hereby granted without fee, provided that the above copyright
210 -dnl and this permission notice appear in all copies. No representations are
211 -dnl made about the suitability of this software for any purpose. It is
212 -dnl provided "as is" without express or implied warranty.
213 -dnl
214 -AC_DEFUN([AC_C99_FUNC_LRINT],
215 -[AC_CACHE_CHECK(for lrint,
216 - ac_cv_c99_lrint,
217 -[
218 -lrint_save_CFLAGS=$CFLAGS
219 -CFLAGS="-O2 -lm"
220 -AC_TRY_LINK([
221 -#define _ISOC9X_SOURCE 1
222 -#define _ISOC99_SOURCE 1
223 -#define __USE_ISOC99 1
224 -#define __USE_ISOC9X 1
225 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
226 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
227 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
228 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
229 + [AC_LIBTOOL_GCJ],
230 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
231 + [AC_LIBTOOL_GCJ],
232 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
233 + [AC_LIBTOOL_GCJ],
234 + [ifdef([AC_PROG_GCJ],
235 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
236 + ifdef([A][M_PROG_GCJ],
237 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
238 + ifdef([LT_AC_PROG_GCJ],
239 + [define([LT_AC_PROG_GCJ],
240 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
241 +])])# AC_PROG_LIBTOOL
242
243 -#include <math.h>
244 -], if (!lrint(3.14159)) lrint(2.7183);, ac_cv_c99_lrint=yes, ac_cv_c99_lrint=no)
245
246 -CFLAGS=$lrint_save_CFLAGS
247 +# _AC_PROG_LIBTOOL
248 +# ----------------
249 +AC_DEFUN([_AC_PROG_LIBTOOL],
250 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
251 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
252 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
253 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
254
255 -])
256 +# This can be used to rebuild libtool when needed
257 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
258
259 -if test "$ac_cv_c99_lrint" = yes; then
260 - AC_DEFINE(HAVE_LRINT, 1,
261 - [Define if you have C99's lrint function.])
262 -fi
263 -])# AC_C99_FUNC_LRINT
264 -dnl @synopsis AC_C99_FUNC_LRINTF
265 -dnl
266 -dnl Check whether C99's lrintf function is available.
267 -dnl @version 1.3 Feb 12 2002
268 -dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
269 -dnl
270 -dnl Permission to use, copy, modify, distribute, and sell this file for any
271 -dnl purpose is hereby granted without fee, provided that the above copyright
272 -dnl and this permission notice appear in all copies. No representations are
273 -dnl made about the suitability of this software for any purpose. It is
274 -dnl provided "as is" without express or implied warranty.
275 -dnl
276 -AC_DEFUN([AC_C99_FUNC_LRINTF],
277 -[AC_CACHE_CHECK(for lrintf,
278 - ac_cv_c99_lrintf,
279 -[
280 -lrintf_save_CFLAGS=$CFLAGS
281 -CFLAGS="-O2 -lm"
282 -AC_TRY_LINK([
283 -#define _ISOC9X_SOURCE 1
284 -#define _ISOC99_SOURCE 1
285 -#define __USE_ISOC99 1
286 -#define __USE_ISOC9X 1
287 +# Always use our own libtool.
288 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
289 +AC_SUBST(LIBTOOL)dnl
290
291 -#include <math.h>
292 -], if (!lrintf(3.14159)) lrintf(2.7183);, ac_cv_c99_lrintf=yes, ac_cv_c99_lrintf=no)
293 +# Prevent multiple expansion
294 +define([AC_PROG_LIBTOOL], [])
295 +])# _AC_PROG_LIBTOOL
296
297 -CFLAGS=$lrintf_save_CFLAGS
298
299 -])
300 +# AC_LIBTOOL_SETUP
301 +# ----------------
302 +AC_DEFUN([AC_LIBTOOL_SETUP],
303 +[AC_PREREQ(2.50)dnl
304 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
305 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
306 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
307 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
308 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
309 +AC_REQUIRE([AC_PROG_CC])dnl
310 +AC_REQUIRE([AC_PROG_LD])dnl
311 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
312 +AC_REQUIRE([AC_PROG_NM])dnl
313
314 -if test "$ac_cv_c99_lrintf" = yes; then
315 - AC_DEFINE(HAVE_LRINTF, 1,
316 - [Define if you have C99's lrintf function.])
317 -fi
318 -])# AC_C99_FUNC_LRINTF
319 -dnl @synopsis AC_C99_FUNC_LLRINT
320 -dnl
321 -dnl Check whether C99's llrint function is available.
322 -dnl @version 1.1 Sep 30 2002
323 -dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
324 -dnl
325 -dnl Permission to use, copy, modify, distribute, and sell this file for any
326 -dnl purpose is hereby granted without fee, provided that the above copyright
327 -dnl and this permission notice appear in all copies. No representations are
328 -dnl made about the suitability of this software for any purpose. It is
329 -dnl provided "as is" without express or implied warranty.
330 +AC_REQUIRE([AC_PROG_LN_S])dnl
331 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
332 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
333 +AC_REQUIRE([AC_OBJEXT])dnl
334 +AC_REQUIRE([AC_EXEEXT])dnl
335 dnl
336 -AC_DEFUN([AC_C99_FUNC_LLRINT],
337 -[AC_CACHE_CHECK(for llrint,
338 - ac_cv_c99_llrint,
339 -[
340 -llrint_save_CFLAGS=$CFLAGS
341 -CFLAGS="-O2 -lm"
342 -AC_TRY_LINK([
343 -#define _ISOC9X_SOURCE 1
344 -#define _ISOC99_SOURCE 1
345 -#define __USE_ISOC99 1
346 -#define __USE_ISOC9X 1
347 -
348 -#include <math.h>
349 -#include <stdint.h>
350 -], int64_t x ; x = llrint(3.14159) ;, ac_cv_c99_llrint=yes, ac_cv_c99_llrint=no)
351
352 -CFLAGS=$llrint_save_CFLAGS
353 +AC_LIBTOOL_SYS_MAX_CMD_LEN
354 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
355 +AC_LIBTOOL_OBJDIR
356
357 -])
358 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
359 +_LT_AC_PROG_ECHO_BACKSLASH
360
361 -if test "$ac_cv_c99_llrint" = yes; then
362 - AC_DEFINE(HAVE_LLRINT, 1,
363 - [Define if you have C99's llrint function.])
364 -fi
365 -])# AC_C99_FUNC_LLRINT
366 +case $host_os in
367 +aix3*)
368 + # AIX sometimes has problems with the GCC collect2 program. For some
369 + # reason, if we set the COLLECT_NAMES environment variable, the problems
370 + # vanish in a puff of smoke.
371 + if test "X${COLLECT_NAMES+set}" != Xset; then
372 + COLLECT_NAMES=
373 + export COLLECT_NAMES
374 + fi
375 + ;;
376 +esac
377
378 +# Sed substitution that helps us do robust quoting. It backslashifies
379 +# metacharacters that are still active within double-quoted strings.
380 +Xsed='sed -e 1s/^X//'
381 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
382
383 +# Same as above, but do not quote variable references.
384 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
385
386 -dnl @synopsis AC_C_CLIP_MODE
387 -dnl
388 -dnl Determine the clipping mode when converting float to int.
389 -dnl @version 1.0 May 17 2003
390 -dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
391 -dnl
392 -dnl Permission to use, copy, modify, distribute, and sell this file for any
393 -dnl purpose is hereby granted without fee, provided that the above copyright
394 -dnl and this permission notice appear in all copies. No representations are
395 -dnl made about the suitability of this software for any purpose. It is
396 -dnl provided "as is" without express or implied warranty.
397 +# Sed substitution to delay expansion of an escaped shell variable in a
398 +# double_quote_subst'ed string.
399 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
400
401 +# Sed substitution to avoid accidental globbing in evaled expressions
402 +no_glob_subst='s/\*/\\\*/g'
403
404 +# Constants:
405 +rm="rm -f"
406
407 -dnl Find the clipping mode in the following way:
408 -dnl 1) If we are not cross compiling test it.
409 -dnl 2) IF we are cross compiling, assume that clipping isn't done correctly.
410 -
411 -AC_DEFUN([AC_C_CLIP_MODE],
412 -[AC_CACHE_CHECK(processor clipping capabilities,
413 - ac_cv_c_clip_type,
414 -
415 -# Initialize to unknown
416 -ac_cv_c_clip_positive=unknown
417 -ac_cv_c_clip_negative=unknown
418 -
419 -if test $ac_cv_c_clip_positive = unknown ; then
420 - AC_TRY_RUN(
421 - [[
422 - #define _ISOC9X_SOURCE 1
423 - #define _ISOC99_SOURCE 1
424 - #define __USE_ISOC99 1
425 - #define __USE_ISOC9X 1
426 - #include <math.h>
427 - int main (void)
428 - { double fval ;
429 - int k, ival ;
430 -
431 - fval = 1.0 * 0x7FFFFFFF ;
432 - for (k = 0 ; k < 100 ; k++)
433 - { ival = (lrint (fval)) >> 24 ;
434 - if (ival != 127)
435 - return 1 ;
436 -
437 - fval *= 1.2499999 ;
438 - } ;
439 -
440 - return 0 ;
441 - }
442 - ]],
443 - ac_cv_c_clip_positive=yes,
444 - ac_cv_c_clip_positive=no,
445 - ac_cv_c_clip_positive=unknown
446 - )
447 -
448 - AC_TRY_RUN(
449 - [[
450 - #define _ISOC9X_SOURCE 1
451 - #define _ISOC99_SOURCE 1
452 - #define __USE_ISOC99 1
453 - #define __USE_ISOC9X 1
454 - #include <math.h>
455 - int main (void)
456 - { double fval ;
457 - int k, ival ;
458 -
459 - fval = -8.0 * 0x10000000 ;
460 - for (k = 0 ; k < 100 ; k++)
461 - { ival = (lrint (fval)) >> 24 ;
462 - if (ival != -128)
463 - return 1 ;
464 -
465 - fval *= 1.2499999 ;
466 - } ;
467 -
468 - return 0 ;
469 - }
470 - ]],
471 - ac_cv_c_clip_negative=yes,
472 - ac_cv_c_clip_negative=no,
473 - ac_cv_c_clip_negative=unknown
474 - )
475 +# Global variables:
476 +default_ofile=libtool
477 +can_build_shared=yes
478
479 - fi
480 +# All known linkers require a `.a' archive for static linking (except MSVC,
481 +# which needs '.lib').
482 +libext=a
483 +ltmain="$ac_aux_dir/ltmain.sh"
484 +ofile="$default_ofile"
485 +with_gnu_ld="$lt_cv_prog_gnu_ld"
486
487 -if test $ac_cv_c_clip_positive = yes ; then
488 - ac_cv_c_clip_positive=1
489 -else
490 - ac_cv_c_clip_positive=0
491 - fi
492 +AC_CHECK_TOOL(AR, ar, false)
493 +AC_CHECK_TOOL(RANLIB, ranlib, :)
494 +AC_CHECK_TOOL(STRIP, strip, :)
495
496 -if test $ac_cv_c_clip_negative = yes ; then
497 - ac_cv_c_clip_negative=1
498 -else
499 - ac_cv_c_clip_negative=0
500 - fi
501 +old_CC="$CC"
502 +old_CFLAGS="$CFLAGS"
503
504 -[[
505 -case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
506 - "00")
507 - ac_cv_c_clip_type="none"
508 - ;;
509 - "10")
510 - ac_cv_c_clip_type="positive"
511 - ;;
512 - "01")
513 - ac_cv_c_clip_type="negative"
514 - ;;
515 - "11")
516 - ac_cv_c_clip_type="both"
517 - ;;
518 - esac
519 - ]]
520 +# Set sane defaults for various variables
521 +test -z "$AR" && AR=ar
522 +test -z "$AR_FLAGS" && AR_FLAGS=cru
523 +test -z "$AS" && AS=as
524 +test -z "$CC" && CC=cc
525 +test -z "$LTCC" && LTCC=$CC
526 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
527 +test -z "$DLLTOOL" && DLLTOOL=dlltool
528 +test -z "$LD" && LD=ld
529 +test -z "$LN_S" && LN_S="ln -s"
530 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
531 +test -z "$NM" && NM=nm
532 +test -z "$SED" && SED=sed
533 +test -z "$OBJDUMP" && OBJDUMP=objdump
534 +test -z "$RANLIB" && RANLIB=:
535 +test -z "$STRIP" && STRIP=:
536 +test -z "$ac_objext" && ac_objext=o
537
538 -)
539 -]
540 +# Determine commands to create old-style static archives.
541 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
542 +old_postinstall_cmds='chmod 644 $oldlib'
543 +old_postuninstall_cmds=
544
545 -)# AC_C_CLIP_MODE
546 +if test -n "$RANLIB"; then
547 + case $host_os in
548 + openbsd*)
549 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
550 + ;;
551 + *)
552 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
553 + ;;
554 + esac
555 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
556 +fi
557
558 +_LT_CC_BASENAME([$compiler])
559
560 +# Only perform the check for file, if the check method requires it
561 +case $deplibs_check_method in
562 +file_magic*)
563 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
564 + AC_PATH_MAGIC
565 + fi
566 + ;;
567 +esac
568
569 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
570 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
571 +enable_win32_dll=yes, enable_win32_dll=no)
572
573 -ifelse(dnl
574 +AC_ARG_ENABLE([libtool-lock],
575 + [AC_HELP_STRING([--disable-libtool-lock],
576 + [avoid locking (might break parallel builds)])])
577 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
578
579 - Do not edit or modify anything in this comment block.
580 - The arch-tag line is a file identity tag for the GNU Arch
581 - revision control system.
582 +AC_ARG_WITH([pic],
583 + [AC_HELP_STRING([--with-pic],
584 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
585 + [pic_mode="$withval"],
586 + [pic_mode=default])
587 +test -z "$pic_mode" && pic_mode=default
588
589 - arch-tag: 6db7c287-8971-4074-a193-468446194fd0
590 +# Use C for the default configuration in the libtool script
591 +tagname=
592 +AC_LIBTOOL_LANG_C_CONFIG
593 +_LT_AC_TAGCONFIG
594 +])# AC_LIBTOOL_SETUP
595
596 -)dnl
597
598 +# _LT_AC_SYS_COMPILER
599 +# -------------------
600 +AC_DEFUN([_LT_AC_SYS_COMPILER],
601 +[AC_REQUIRE([AC_PROG_CC])dnl
602
603 -# Do all the work for Automake. -*- Autoconf -*-
604 +# If no C compiler was specified, use CC.
605 +LTCC=${LTCC-"$CC"}
606
607 -# This macro actually does too much some checks are only needed if
608 -# your package does certain things. But this isn't really a big deal.
609 +# If no C compiler flags were specified, use CFLAGS.
610 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
611
612 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
613 -# Free Software Foundation, Inc.
614 +# Allow CC to be a program name with arguments.
615 +compiler=$CC
616 +])# _LT_AC_SYS_COMPILER
617
618 -# This program is free software; you can redistribute it and/or modify
619 -# it under the terms of the GNU General Public License as published by
620 -# the Free Software Foundation; either version 2, or (at your option)
621 -# any later version.
622
623 -# This program is distributed in the hope that it will be useful,
624 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
625 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
626 -# GNU General Public License for more details.
627 +# _LT_CC_BASENAME(CC)
628 +# -------------------
629 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
630 +AC_DEFUN([_LT_CC_BASENAME],
631 +[for cc_temp in $1""; do
632 + case $cc_temp in
633 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
634 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
635 + \-*) ;;
636 + *) break;;
637 + esac
638 +done
639 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
640 +])
641
642 -# You should have received a copy of the GNU General Public License
643 -# along with this program; if not, write to the Free Software
644 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
645 -# 02111-1307, USA.
646
647 -# serial 10
648 +# _LT_COMPILER_BOILERPLATE
649 +# ------------------------
650 +# Check for compiler boilerplate output or warnings with
651 +# the simple compiler test code.
652 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
653 +[ac_outfile=conftest.$ac_objext
654 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
655 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
656 +_lt_compiler_boilerplate=`cat conftest.err`
657 +$rm conftest*
658 +])# _LT_COMPILER_BOILERPLATE
659
660 -AC_PREREQ([2.54])
661
662 -# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
663 -# the ones we care about.
664 -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
665 +# _LT_LINKER_BOILERPLATE
666 +# ----------------------
667 +# Check for linker boilerplate output or warnings with
668 +# the simple link test code.
669 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
670 +[ac_outfile=conftest.$ac_objext
671 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
672 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
673 +_lt_linker_boilerplate=`cat conftest.err`
674 +$rm conftest*
675 +])# _LT_LINKER_BOILERPLATE
676
677 -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
678 -# AM_INIT_AUTOMAKE([OPTIONS])
679 -# -----------------------------------------------
680 -# The call with PACKAGE and VERSION arguments is the old style
681 -# call (pre autoconf-2.50), which is being phased out. PACKAGE
682 -# and VERSION should now be passed to AC_INIT and removed from
683 -# the call to AM_INIT_AUTOMAKE.
684 -# We support both call styles for the transition. After
685 -# the next Automake release, Autoconf can make the AC_INIT
686 -# arguments mandatory, and then we can depend on a new Autoconf
687 -# release and drop the old call support.
688 -AC_DEFUN([AM_INIT_AUTOMAKE],
689 -[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
690 - AC_REQUIRE([AC_PROG_INSTALL])dnl
691 -# test to see if srcdir already configured
692 -if test "`cd $srcdir && pwd`" != "`pwd`" &&
693 - test -f $srcdir/config.status; then
694 - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
695 -fi
696
697 -# test whether we have cygpath
698 -if test -z "$CYGPATH_W"; then
699 - if (cygpath --version) >/dev/null 2>/dev/null; then
700 - CYGPATH_W='cygpath -w'
701 - else
702 - CYGPATH_W=echo
703 - fi
704 -fi
705 -AC_SUBST([CYGPATH_W])
706 -
707 -# Define the identity of the package.
708 -dnl Distinguish between old-style and new-style calls.
709 -m4_ifval([$2],
710 -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
711 - AC_SUBST([PACKAGE], [$1])dnl
712 - AC_SUBST([VERSION], [$2])],
713 -[_AM_SET_OPTIONS([$1])dnl
714 - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
715 - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
716 +# _LT_AC_SYS_LIBPATH_AIX
717 +# ----------------------
718 +# Links a minimal program and checks the executable
719 +# for the system default hardcoded library path. In most cases,
720 +# this is /usr/lib:/lib, but when the MPI compilers are used
721 +# the location of the communication and MPI libs are included too.
722 +# If we don't find anything, use the default library path according
723 +# to the aix ld manual.
724 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
725 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
726 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
727 +}'`
728 +# Check for a 64-bit object if we didn't find anything.
729 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
730 +}'`; fi],[])
731 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
732 +])# _LT_AC_SYS_LIBPATH_AIX
733
734 -_AM_IF_OPTION([no-define],,
735 -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
736 - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
737
738 -# Some tools Automake needs.
739 -AC_REQUIRE([AM_SANITY_CHECK])dnl
740 -AC_REQUIRE([AC_ARG_PROGRAM])dnl
741 -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
742 -AM_MISSING_PROG(AUTOCONF, autoconf)
743 -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
744 -AM_MISSING_PROG(AUTOHEADER, autoheader)
745 -AM_MISSING_PROG(MAKEINFO, makeinfo)
746 -AM_MISSING_PROG(AMTAR, tar)
747 -AM_PROG_INSTALL_SH
748 -AM_PROG_INSTALL_STRIP
749 -# We need awk for the "check" target. The system "awk" is bad on
750 -# some platforms.
751 -AC_REQUIRE([AC_PROG_AWK])dnl
752 -AC_REQUIRE([AC_PROG_MAKE_SET])dnl
753 -AC_REQUIRE([AM_SET_LEADING_DOT])dnl
754 +# _LT_AC_SHELL_INIT(ARG)
755 +# ----------------------
756 +AC_DEFUN([_LT_AC_SHELL_INIT],
757 +[ifdef([AC_DIVERSION_NOTICE],
758 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
759 + [AC_DIVERT_PUSH(NOTICE)])
760 +$1
761 +AC_DIVERT_POP
762 +])# _LT_AC_SHELL_INIT
763
764 -_AM_IF_OPTION([no-dependencies],,
765 -[AC_PROVIDE_IFELSE([AC_PROG_CC],
766 - [_AM_DEPENDENCIES(CC)],
767 - [define([AC_PROG_CC],
768 - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
769 -AC_PROVIDE_IFELSE([AC_PROG_CXX],
770 - [_AM_DEPENDENCIES(CXX)],
771 - [define([AC_PROG_CXX],
772 - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
773 -])
774 -])
775
776 +# _LT_AC_PROG_ECHO_BACKSLASH
777 +# --------------------------
778 +# Add some code to the start of the generated configure script which
779 +# will find an echo command which doesn't interpret backslashes.
780 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
781 +[_LT_AC_SHELL_INIT([
782 +# Check that we are running under the correct shell.
783 +SHELL=${CONFIG_SHELL-/bin/sh}
784
785 -# When config.status generates a header, we must update the stamp-h file.
786 -# This file resides in the same directory as the config header
787 -# that is generated. The stamp files are numbered to have different names.
788 +case X$ECHO in
789 +X*--fallback-echo)
790 + # Remove one level of quotation (which was required for Make).
791 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
792 + ;;
793 +esac
794
795 -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
796 -# loop where config.status creates the headers, so we can generate
797 -# our stamp files there.
798 -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
799 -[# Compute $1's index in $config_headers.
800 -_am_stamp_count=1
801 -for _am_header in $config_headers :; do
802 - case $_am_header in
803 - $1 | $1:* )
804 - break ;;
805 - * )
806 - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
807 - esac
808 -done
809 -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
810 +echo=${ECHO-echo}
811 +if test "X[$]1" = X--no-reexec; then
812 + # Discard the --no-reexec flag, and continue.
813 + shift
814 +elif test "X[$]1" = X--fallback-echo; then
815 + # Avoid inline document here, it may be left over
816 + :
817 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
818 + # Yippee, $echo works!
819 + :
820 +else
821 + # Restart under the correct shell.
822 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
823 +fi
824
825 -# Copyright 2002 Free Software Foundation, Inc.
826 +if test "X[$]1" = X--fallback-echo; then
827 + # used as fallback echo
828 + shift
829 + cat <<EOF
830 +[$]*
831 +EOF
832 + exit 0
833 +fi
834
835 -# This program is free software; you can redistribute it and/or modify
836 -# it under the terms of the GNU General Public License as published by
837 -# the Free Software Foundation; either version 2, or (at your option)
838 -# any later version.
839 +# The HP-UX ksh and POSIX shell print the target directory to stdout
840 +# if CDPATH is set.
841 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
842
843 -# This program is distributed in the hope that it will be useful,
844 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
845 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
846 -# GNU General Public License for more details.
847 +if test -z "$ECHO"; then
848 +if test "X${echo_test_string+set}" != Xset; then
849 +# find a string as large as possible, as long as the shell can cope with it
850 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
851 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
852 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
853 + echo_test_string=`eval $cmd` &&
854 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
855 + then
856 + break
857 + fi
858 + done
859 +fi
860
861 -# You should have received a copy of the GNU General Public License
862 -# along with this program; if not, write to the Free Software
863 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
864 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
865 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
866 + test "X$echo_testing_string" = "X$echo_test_string"; then
867 + :
868 +else
869 + # The Solaris, AIX, and Digital Unix default echo programs unquote
870 + # backslashes. This makes it impossible to quote backslashes using
871 + # echo "$something" | sed 's/\\/\\\\/g'
872 + #
873 + # So, first we look for a working echo in the user's PATH.
874
875 -# AM_AUTOMAKE_VERSION(VERSION)
876 -# ----------------------------
877 -# Automake X.Y traces this macro to ensure aclocal.m4 has been
878 -# generated from the m4 files accompanying Automake X.Y.
879 -AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
880 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
881 + for dir in $PATH /usr/ucb; do
882 + IFS="$lt_save_ifs"
883 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
884 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
885 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
886 + test "X$echo_testing_string" = "X$echo_test_string"; then
887 + echo="$dir/echo"
888 + break
889 + fi
890 + done
891 + IFS="$lt_save_ifs"
892
893 -# AM_SET_CURRENT_AUTOMAKE_VERSION
894 -# -------------------------------
895 -# Call AM_AUTOMAKE_VERSION so it can be traced.
896 -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
897 -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
898 - [AM_AUTOMAKE_VERSION([1.7.9])])
899 + if test "X$echo" = Xecho; then
900 + # We didn't find a better echo, so look for alternatives.
901 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
902 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
903 + test "X$echo_testing_string" = "X$echo_test_string"; then
904 + # This shell has a builtin print -r that does the trick.
905 + echo='print -r'
906 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
907 + test "X$CONFIG_SHELL" != X/bin/ksh; then
908 + # If we have ksh, try running configure again with it.
909 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
910 + export ORIGINAL_CONFIG_SHELL
911 + CONFIG_SHELL=/bin/ksh
912 + export CONFIG_SHELL
913 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
914 + else
915 + # Try using printf.
916 + echo='printf %s\n'
917 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
918 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
919 + test "X$echo_testing_string" = "X$echo_test_string"; then
920 + # Cool, printf works
921 + :
922 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
923 + test "X$echo_testing_string" = 'X\t' &&
924 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
925 + test "X$echo_testing_string" = "X$echo_test_string"; then
926 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
927 + export CONFIG_SHELL
928 + SHELL="$CONFIG_SHELL"
929 + export SHELL
930 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
931 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
932 + test "X$echo_testing_string" = 'X\t' &&
933 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
934 + test "X$echo_testing_string" = "X$echo_test_string"; then
935 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
936 + else
937 + # maybe with a smaller string...
938 + prev=:
939
940 -# Helper functions for option handling. -*- Autoconf -*-
941 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
942 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
943 + then
944 + break
945 + fi
946 + prev="$cmd"
947 + done
948
949 -# Copyright 2001, 2002 Free Software Foundation, Inc.
950 + if test "$prev" != 'sed 50q "[$]0"'; then
951 + echo_test_string=`eval $prev`
952 + export echo_test_string
953 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
954 + else
955 + # Oops. We lost completely, so just stick with echo.
956 + echo=echo
957 + fi
958 + fi
959 + fi
960 + fi
961 +fi
962 +fi
963
964 -# This program is free software; you can redistribute it and/or modify
965 -# it under the terms of the GNU General Public License as published by
966 -# the Free Software Foundation; either version 2, or (at your option)
967 -# any later version.
968 +# Copy echo and quote the copy suitably for passing to libtool from
969 +# the Makefile, instead of quoting the original, which is used later.
970 +ECHO=$echo
971 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
972 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
973 +fi
974
975 -# This program is distributed in the hope that it will be useful,
976 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
977 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
978 -# GNU General Public License for more details.
979 +AC_SUBST(ECHO)
980 +])])# _LT_AC_PROG_ECHO_BACKSLASH
981
982 -# You should have received a copy of the GNU General Public License
983 -# along with this program; if not, write to the Free Software
984 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
985 -# 02111-1307, USA.
986
987 -# serial 2
988 +# _LT_AC_LOCK
989 +# -----------
990 +AC_DEFUN([_LT_AC_LOCK],
991 +[AC_ARG_ENABLE([libtool-lock],
992 + [AC_HELP_STRING([--disable-libtool-lock],
993 + [avoid locking (might break parallel builds)])])
994 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
995
996 -# _AM_MANGLE_OPTION(NAME)
997 -# -----------------------
998 -AC_DEFUN([_AM_MANGLE_OPTION],
999 -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1000 -
1001 -# _AM_SET_OPTION(NAME)
1002 -# ------------------------------
1003 -# Set option NAME. Presently that only means defining a flag for this option.
1004 -AC_DEFUN([_AM_SET_OPTION],
1005 -[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1006 +# Some flags need to be propagated to the compiler or linker for good
1007 +# libtool support.
1008 +case $host in
1009 +ia64-*-hpux*)
1010 + # Find out which ABI we are using.
1011 + echo 'int i;' > conftest.$ac_ext
1012 + if AC_TRY_EVAL(ac_compile); then
1013 + case `/usr/bin/file conftest.$ac_objext` in
1014 + *ELF-32*)
1015 + HPUX_IA64_MODE="32"
1016 + ;;
1017 + *ELF-64*)
1018 + HPUX_IA64_MODE="64"
1019 + ;;
1020 + esac
1021 + fi
1022 + rm -rf conftest*
1023 + ;;
1024 +*-*-irix6*)
1025 + # Find out which ABI we are using.
1026 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1027 + if AC_TRY_EVAL(ac_compile); then
1028 + if test "$lt_cv_prog_gnu_ld" = yes; then
1029 + case `/usr/bin/file conftest.$ac_objext` in
1030 + *32-bit*)
1031 + LD="${LD-ld} -melf32bsmip"
1032 + ;;
1033 + *N32*)
1034 + LD="${LD-ld} -melf32bmipn32"
1035 + ;;
1036 + *64-bit*)
1037 + LD="${LD-ld} -melf64bmip"
1038 + ;;
1039 + esac
1040 + else
1041 + case `/usr/bin/file conftest.$ac_objext` in
1042 + *32-bit*)
1043 + LD="${LD-ld} -32"
1044 + ;;
1045 + *N32*)
1046 + LD="${LD-ld} -n32"
1047 + ;;
1048 + *64-bit*)
1049 + LD="${LD-ld} -64"
1050 + ;;
1051 + esac
1052 + fi
1053 + fi
1054 + rm -rf conftest*
1055 + ;;
1056
1057 -# _AM_SET_OPTIONS(OPTIONS)
1058 -# ----------------------------------
1059 -# OPTIONS is a space-separated list of Automake options.
1060 -AC_DEFUN([_AM_SET_OPTIONS],
1061 -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1062 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1063 + # Find out which ABI we are using.
1064 + echo 'int i;' > conftest.$ac_ext
1065 + if AC_TRY_EVAL(ac_compile); then
1066 + case `/usr/bin/file conftest.o` in
1067 + *32-bit*)
1068 + case $host in
1069 + x86_64-*linux*)
1070 + LD="${LD-ld} -m elf_i386"
1071 + ;;
1072 + ppc64-*linux*|powerpc64-*linux*)
1073 + LD="${LD-ld} -m elf32ppclinux"
1074 + ;;
1075 + s390x-*linux*)
1076 + LD="${LD-ld} -m elf_s390"
1077 + ;;
1078 + sparc64-*linux*)
1079 + LD="${LD-ld} -m elf32_sparc"
1080 + ;;
1081 + esac
1082 + ;;
1083 + *64-bit*)
1084 + case $host in
1085 + x86_64-*linux*)
1086 + LD="${LD-ld} -m elf_x86_64"
1087 + ;;
1088 + ppc*-*linux*|powerpc*-*linux*)
1089 + LD="${LD-ld} -m elf64ppc"
1090 + ;;
1091 + s390*-*linux*)
1092 + LD="${LD-ld} -m elf64_s390"
1093 + ;;
1094 + sparc*-*linux*)
1095 + LD="${LD-ld} -m elf64_sparc"
1096 + ;;
1097 + esac
1098 + ;;
1099 + esac
1100 + fi
1101 + rm -rf conftest*
1102 + ;;
1103
1104 -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1105 -# -------------------------------------------
1106 -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1107 -AC_DEFUN([_AM_IF_OPTION],
1108 -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1109 +*-*-sco3.2v5*)
1110 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1111 + SAVE_CFLAGS="$CFLAGS"
1112 + CFLAGS="$CFLAGS -belf"
1113 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1114 + [AC_LANG_PUSH(C)
1115 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1116 + AC_LANG_POP])
1117 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1118 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1119 + CFLAGS="$SAVE_CFLAGS"
1120 + fi
1121 + ;;
1122 +sparc*-*solaris*)
1123 + # Find out which ABI we are using.
1124 + echo 'int i;' > conftest.$ac_ext
1125 + if AC_TRY_EVAL(ac_compile); then
1126 + case `/usr/bin/file conftest.o` in
1127 + *64-bit*)
1128 + case $lt_cv_prog_gnu_ld in
1129 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
1130 + *) LD="${LD-ld} -64" ;;
1131 + esac
1132 + ;;
1133 + esac
1134 + fi
1135 + rm -rf conftest*
1136 + ;;
1137
1138 -#
1139 -# Check to make sure that the build environment is sane.
1140 -#
1141 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1142 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1143 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1144 + AC_CHECK_TOOL(AS, as, false)
1145 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
1146 + ;;
1147 + ])
1148 +esac
1149
1150 -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1151 +need_locks="$enable_libtool_lock"
1152
1153 -# This program is free software; you can redistribute it and/or modify
1154 -# it under the terms of the GNU General Public License as published by
1155 -# the Free Software Foundation; either version 2, or (at your option)
1156 -# any later version.
1157 +])# _LT_AC_LOCK
1158
1159 -# This program is distributed in the hope that it will be useful,
1160 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1161 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1162 -# GNU General Public License for more details.
1163
1164 -# You should have received a copy of the GNU General Public License
1165 -# along with this program; if not, write to the Free Software
1166 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1167 -# 02111-1307, USA.
1168 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1169 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1170 +# ----------------------------------------------------------------
1171 +# Check whether the given compiler option works
1172 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1173 +[AC_REQUIRE([LT_AC_PROG_SED])
1174 +AC_CACHE_CHECK([$1], [$2],
1175 + [$2=no
1176 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1177 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1178 + lt_compiler_flag="$3"
1179 + # Insert the option either (1) after the last *FLAGS variable, or
1180 + # (2) before a word containing "conftest.", or (3) at the end.
1181 + # Note that $ac_compile itself does not contain backslashes and begins
1182 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1183 + # The option is referenced via a variable to avoid confusing sed.
1184 + lt_compile=`echo "$ac_compile" | $SED \
1185 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1186 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1187 + -e 's:$: $lt_compiler_flag:'`
1188 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1189 + (eval "$lt_compile" 2>conftest.err)
1190 + ac_status=$?
1191 + cat conftest.err >&AS_MESSAGE_LOG_FD
1192 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1193 + if (exit $ac_status) && test -s "$ac_outfile"; then
1194 + # The compiler can only warn and ignore the option if not recognized
1195 + # So say no if there are warnings other than the usual output.
1196 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1197 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1198 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1199 + $2=yes
1200 + fi
1201 + fi
1202 + $rm conftest*
1203 +])
1204
1205 -# serial 3
1206 +if test x"[$]$2" = xyes; then
1207 + ifelse([$5], , :, [$5])
1208 +else
1209 + ifelse([$6], , :, [$6])
1210 +fi
1211 +])# AC_LIBTOOL_COMPILER_OPTION
1212
1213 -# AM_SANITY_CHECK
1214 -# ---------------
1215 -AC_DEFUN([AM_SANITY_CHECK],
1216 -[AC_MSG_CHECKING([whether build environment is sane])
1217 -# Just in case
1218 -sleep 1
1219 -echo timestamp > conftest.file
1220 -# Do `set' in a subshell so we don't clobber the current shell's
1221 -# arguments. Must try -L first in case configure is actually a
1222 -# symlink; some systems play weird games with the mod time of symlinks
1223 -# (eg FreeBSD returns the mod time of the symlink's containing
1224 -# directory).
1225 -if (
1226 - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1227 - if test "$[*]" = "X"; then
1228 - # -L didn't work.
1229 - set X `ls -t $srcdir/configure conftest.file`
1230 - fi
1231 - rm -f conftest.file
1232 - if test "$[*]" != "X $srcdir/configure conftest.file" \
1233 - && test "$[*]" != "X conftest.file $srcdir/configure"; then
1234
1235 - # If neither matched, then we have a broken ls. This can happen
1236 - # if, for instance, CONFIG_SHELL is bash and it inherits a
1237 - # broken ls alias from the environment. This has actually
1238 - # happened. Such a system could not be considered "sane".
1239 - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1240 -alias in your environment])
1241 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1242 +# [ACTION-SUCCESS], [ACTION-FAILURE])
1243 +# ------------------------------------------------------------
1244 +# Check whether the given compiler option works
1245 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1246 +[AC_CACHE_CHECK([$1], [$2],
1247 + [$2=no
1248 + save_LDFLAGS="$LDFLAGS"
1249 + LDFLAGS="$LDFLAGS $3"
1250 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
1251 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1252 + # The linker can only warn and ignore the option if not recognized
1253 + # So say no if there are warnings
1254 + if test -s conftest.err; then
1255 + # Append any errors to the config.log.
1256 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
1257 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1258 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1259 + if diff conftest.exp conftest.er2 >/dev/null; then
1260 + $2=yes
1261 + fi
1262 + else
1263 + $2=yes
1264 + fi
1265 fi
1266 + $rm conftest*
1267 + LDFLAGS="$save_LDFLAGS"
1268 +])
1269
1270 - test "$[2]" = conftest.file
1271 - )
1272 -then
1273 - # Ok.
1274 - :
1275 +if test x"[$]$2" = xyes; then
1276 + ifelse([$4], , :, [$4])
1277 else
1278 - AC_MSG_ERROR([newly created file is older than distributed files!
1279 -Check your system clock])
1280 + ifelse([$5], , :, [$5])
1281 fi
1282 -AC_MSG_RESULT(yes)])
1283 -
1284 -# -*- Autoconf -*-
1285 +])# AC_LIBTOOL_LINKER_OPTION
1286
1287
1288 -# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
1289 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
1290 +# --------------------------
1291 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1292 +[# find the maximum length of command line arguments
1293 +AC_MSG_CHECKING([the maximum length of command line arguments])
1294 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1295 + i=0
1296 + teststring="ABCD"
1297
1298 -# This program is free software; you can redistribute it and/or modify
1299 -# it under the terms of the GNU General Public License as published by
1300 -# the Free Software Foundation; either version 2, or (at your option)
1301 -# any later version.
1302 -
1303 -# This program is distributed in the hope that it will be useful,
1304 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1305 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1306 -# GNU General Public License for more details.
1307 -
1308 -# You should have received a copy of the GNU General Public License
1309 -# along with this program; if not, write to the Free Software
1310 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1311 -# 02111-1307, USA.
1312 + case $build_os in
1313 + msdosdjgpp*)
1314 + # On DJGPP, this test can blow up pretty badly due to problems in libc
1315 + # (any single argument exceeding 2000 bytes causes a buffer overrun
1316 + # during glob expansion). Even if it were fixed, the result of this
1317 + # check would be larger than it should be.
1318 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
1319 + ;;
1320
1321 -# serial 3
1322 + gnu*)
1323 + # Under GNU Hurd, this test is not required because there is
1324 + # no limit to the length of command line arguments.
1325 + # Libtool will interpret -1 as no limit whatsoever
1326 + lt_cv_sys_max_cmd_len=-1;
1327 + ;;
1328
1329 -# AM_MISSING_PROG(NAME, PROGRAM)
1330 -# ------------------------------
1331 -AC_DEFUN([AM_MISSING_PROG],
1332 -[AC_REQUIRE([AM_MISSING_HAS_RUN])
1333 -$1=${$1-"${am_missing_run}$2"}
1334 -AC_SUBST($1)])
1335 + cygwin* | mingw*)
1336 + # On Win9x/ME, this test blows up -- it succeeds, but takes
1337 + # about 5 minutes as the teststring grows exponentially.
1338 + # Worse, since 9x/ME are not pre-emptively multitasking,
1339 + # you end up with a "frozen" computer, even though with patience
1340 + # the test eventually succeeds (with a max line length of 256k).
1341 + # Instead, let's just punt: use the minimum linelength reported by
1342 + # all of the supported platforms: 8192 (on NT/2K/XP).
1343 + lt_cv_sys_max_cmd_len=8192;
1344 + ;;
1345
1346 + amigaos*)
1347 + # On AmigaOS with pdksh, this test takes hours, literally.
1348 + # So we just punt and use a minimum line length of 8192.
1349 + lt_cv_sys_max_cmd_len=8192;
1350 + ;;
1351
1352 -# AM_MISSING_HAS_RUN
1353 -# ------------------
1354 -# Define MISSING if not defined so far and test if it supports --run.
1355 -# If it does, set am_missing_run to use it, otherwise, to nothing.
1356 -AC_DEFUN([AM_MISSING_HAS_RUN],
1357 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1358 -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1359 -# Use eval to expand $SHELL
1360 -if eval "$MISSING --run true"; then
1361 - am_missing_run="$MISSING --run "
1362 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1363 + # This has been around since 386BSD, at least. Likely further.
1364 + if test -x /sbin/sysctl; then
1365 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1366 + elif test -x /usr/sbin/sysctl; then
1367 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1368 + else
1369 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1370 + fi
1371 + # And add a safety zone
1372 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1373 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1374 + ;;
1375 +
1376 + interix*)
1377 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
1378 + lt_cv_sys_max_cmd_len=196608
1379 + ;;
1380 +
1381 + osf*)
1382 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1383 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1384 + # nice to cause kernel panics so lets avoid the loop below.
1385 + # First set a reasonable default.
1386 + lt_cv_sys_max_cmd_len=16384
1387 + #
1388 + if test -x /sbin/sysconfig; then
1389 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1390 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
1391 + esac
1392 + fi
1393 + ;;
1394 + sco3.2v5*)
1395 + lt_cv_sys_max_cmd_len=102400
1396 + ;;
1397 + sysv5* | sco5v6* | sysv4.2uw2*)
1398 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1399 + if test -n "$kargmax"; then
1400 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1401 + else
1402 + lt_cv_sys_max_cmd_len=32768
1403 + fi
1404 + ;;
1405 + *)
1406 + # If test is not a shell built-in, we'll probably end up computing a
1407 + # maximum length that is only half of the actual maximum length, but
1408 + # we can't tell.
1409 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1410 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1411 + = "XX$teststring") >/dev/null 2>&1 &&
1412 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
1413 + lt_cv_sys_max_cmd_len=$new_result &&
1414 + test $i != 17 # 1/2 MB should be enough
1415 + do
1416 + i=`expr $i + 1`
1417 + teststring=$teststring$teststring
1418 + done
1419 + teststring=
1420 + # Add a significant safety factor because C++ compilers can tack on massive
1421 + # amounts of additional arguments before passing them to the linker.
1422 + # It appears as though 1/2 is a usable value.
1423 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1424 + ;;
1425 + esac
1426 +])
1427 +if test -n $lt_cv_sys_max_cmd_len ; then
1428 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1429 else
1430 - am_missing_run=
1431 - AC_MSG_WARN([`missing' script is too old or missing])
1432 + AC_MSG_RESULT(none)
1433 fi
1434 -])
1435 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1436
1437 -# AM_AUX_DIR_EXPAND
1438
1439 -# Copyright 2001 Free Software Foundation, Inc.
1440 +# _LT_AC_CHECK_DLFCN
1441 +# ------------------
1442 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
1443 +[AC_CHECK_HEADERS(dlfcn.h)dnl
1444 +])# _LT_AC_CHECK_DLFCN
1445
1446 -# This program is free software; you can redistribute it and/or modify
1447 -# it under the terms of the GNU General Public License as published by
1448 -# the Free Software Foundation; either version 2, or (at your option)
1449 -# any later version.
1450
1451 -# This program is distributed in the hope that it will be useful,
1452 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1453 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1454 -# GNU General Public License for more details.
1455 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1456 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1457 +# ---------------------------------------------------------------------
1458 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1459 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1460 +if test "$cross_compiling" = yes; then :
1461 + [$4]
1462 +else
1463 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1464 + lt_status=$lt_dlunknown
1465 + cat > conftest.$ac_ext <<EOF
1466 +[#line __oline__ "configure"
1467 +#include "confdefs.h"
1468
1469 -# You should have received a copy of the GNU General Public License
1470 -# along with this program; if not, write to the Free Software
1471 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1472 -# 02111-1307, USA.
1473 +#if HAVE_DLFCN_H
1474 +#include <dlfcn.h>
1475 +#endif
1476
1477 -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1478 -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
1479 -# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
1480 -#
1481 -# Of course, Automake must honor this variable whenever it calls a
1482 -# tool from the auxiliary directory. The problem is that $srcdir (and
1483 -# therefore $ac_aux_dir as well) can be either absolute or relative,
1484 -# depending on how configure is run. This is pretty annoying, since
1485 -# it makes $ac_aux_dir quite unusable in subdirectories: in the top
1486 -# source directory, any form will work fine, but in subdirectories a
1487 -# relative path needs to be adjusted first.
1488 -#
1489 -# $ac_aux_dir/missing
1490 -# fails when called from a subdirectory if $ac_aux_dir is relative
1491 -# $top_srcdir/$ac_aux_dir/missing
1492 -# fails if $ac_aux_dir is absolute,
1493 -# fails when called from a subdirectory in a VPATH build with
1494 -# a relative $ac_aux_dir
1495 -#
1496 -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
1497 -# are both prefixed by $srcdir. In an in-source build this is usually
1498 -# harmless because $srcdir is `.', but things will broke when you
1499 -# start a VPATH build or use an absolute $srcdir.
1500 -#
1501 -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
1502 -# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
1503 -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
1504 -# and then we would define $MISSING as
1505 -# MISSING="\${SHELL} $am_aux_dir/missing"
1506 -# This will work as long as MISSING is not called from configure, because
1507 -# unfortunately $(top_srcdir) has no meaning in configure.
1508 -# However there are other variables, like CC, which are often used in
1509 -# configure, and could therefore not use this "fixed" $ac_aux_dir.
1510 -#
1511 -# Another solution, used here, is to always expand $ac_aux_dir to an
1512 -# absolute PATH. The drawback is that using absolute paths prevent a
1513 -# configured tree to be moved without reconfiguration.
1514 +#include <stdio.h>
1515
1516 -# Rely on autoconf to set up CDPATH properly.
1517 -AC_PREREQ([2.50])
1518 +#ifdef RTLD_GLOBAL
1519 +# define LT_DLGLOBAL RTLD_GLOBAL
1520 +#else
1521 +# ifdef DL_GLOBAL
1522 +# define LT_DLGLOBAL DL_GLOBAL
1523 +# else
1524 +# define LT_DLGLOBAL 0
1525 +# endif
1526 +#endif
1527
1528 -AC_DEFUN([AM_AUX_DIR_EXPAND], [
1529 -# expand $ac_aux_dir to an absolute path
1530 -am_aux_dir=`cd $ac_aux_dir && pwd`
1531 -])
1532 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1533 + find out it does not work in some platform. */
1534 +#ifndef LT_DLLAZY_OR_NOW
1535 +# ifdef RTLD_LAZY
1536 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1537 +# else
1538 +# ifdef DL_LAZY
1539 +# define LT_DLLAZY_OR_NOW DL_LAZY
1540 +# else
1541 +# ifdef RTLD_NOW
1542 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1543 +# else
1544 +# ifdef DL_NOW
1545 +# define LT_DLLAZY_OR_NOW DL_NOW
1546 +# else
1547 +# define LT_DLLAZY_OR_NOW 0
1548 +# endif
1549 +# endif
1550 +# endif
1551 +# endif
1552 +#endif
1553
1554 -# AM_PROG_INSTALL_SH
1555 -# ------------------
1556 -# Define $install_sh.
1557 +#ifdef __cplusplus
1558 +extern "C" void exit (int);
1559 +#endif
1560
1561 -# Copyright 2001 Free Software Foundation, Inc.
1562 +void fnord() { int i=42;}
1563 +int main ()
1564 +{
1565 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1566 + int status = $lt_dlunknown;
1567
1568 -# This program is free software; you can redistribute it and/or modify
1569 -# it under the terms of the GNU General Public License as published by
1570 -# the Free Software Foundation; either version 2, or (at your option)
1571 -# any later version.
1572 + if (self)
1573 + {
1574 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1575 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1576 + /* dlclose (self); */
1577 + }
1578 + else
1579 + puts (dlerror ());
1580
1581 -# This program is distributed in the hope that it will be useful,
1582 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1583 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1584 -# GNU General Public License for more details.
1585 + exit (status);
1586 +}]
1587 +EOF
1588 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1589 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1590 + lt_status=$?
1591 + case x$lt_status in
1592 + x$lt_dlno_uscore) $1 ;;
1593 + x$lt_dlneed_uscore) $2 ;;
1594 + x$lt_dlunknown|x*) $3 ;;
1595 + esac
1596 + else :
1597 + # compilation failed
1598 + $3
1599 + fi
1600 +fi
1601 +rm -fr conftest*
1602 +])# _LT_AC_TRY_DLOPEN_SELF
1603
1604 -# You should have received a copy of the GNU General Public License
1605 -# along with this program; if not, write to the Free Software
1606 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1607 -# 02111-1307, USA.
1608
1609 -AC_DEFUN([AM_PROG_INSTALL_SH],
1610 -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1611 -install_sh=${install_sh-"$am_aux_dir/install-sh"}
1612 -AC_SUBST(install_sh)])
1613 +# AC_LIBTOOL_DLOPEN_SELF
1614 +# ----------------------
1615 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1616 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1617 +if test "x$enable_dlopen" != xyes; then
1618 + enable_dlopen=unknown
1619 + enable_dlopen_self=unknown
1620 + enable_dlopen_self_static=unknown
1621 +else
1622 + lt_cv_dlopen=no
1623 + lt_cv_dlopen_libs=
1624
1625 -# AM_PROG_INSTALL_STRIP
1626 + case $host_os in
1627 + beos*)
1628 + lt_cv_dlopen="load_add_on"
1629 + lt_cv_dlopen_libs=
1630 + lt_cv_dlopen_self=yes
1631 + ;;
1632
1633 -# Copyright 2001 Free Software Foundation, Inc.
1634 + mingw* | pw32*)
1635 + lt_cv_dlopen="LoadLibrary"
1636 + lt_cv_dlopen_libs=
1637 + ;;
1638
1639 -# This program is free software; you can redistribute it and/or modify
1640 -# it under the terms of the GNU General Public License as published by
1641 -# the Free Software Foundation; either version 2, or (at your option)
1642 -# any later version.
1643 + cygwin*)
1644 + lt_cv_dlopen="dlopen"
1645 + lt_cv_dlopen_libs=
1646 + ;;
1647
1648 -# This program is distributed in the hope that it will be useful,
1649 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1650 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1651 -# GNU General Public License for more details.
1652 + darwin*)
1653 + # if libdl is installed we need to link against it
1654 + AC_CHECK_LIB([dl], [dlopen],
1655 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1656 + lt_cv_dlopen="dyld"
1657 + lt_cv_dlopen_libs=
1658 + lt_cv_dlopen_self=yes
1659 + ])
1660 + ;;
1661
1662 -# You should have received a copy of the GNU General Public License
1663 -# along with this program; if not, write to the Free Software
1664 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1665 -# 02111-1307, USA.
1666 + *)
1667 + AC_CHECK_FUNC([shl_load],
1668 + [lt_cv_dlopen="shl_load"],
1669 + [AC_CHECK_LIB([dld], [shl_load],
1670 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1671 + [AC_CHECK_FUNC([dlopen],
1672 + [lt_cv_dlopen="dlopen"],
1673 + [AC_CHECK_LIB([dl], [dlopen],
1674 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1675 + [AC_CHECK_LIB([svld], [dlopen],
1676 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1677 + [AC_CHECK_LIB([dld], [dld_link],
1678 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1679 + ])
1680 + ])
1681 + ])
1682 + ])
1683 + ])
1684 + ;;
1685 + esac
1686
1687 -# One issue with vendor `install' (even GNU) is that you can't
1688 -# specify the program used to strip binaries. This is especially
1689 -# annoying in cross-compiling environments, where the build's strip
1690 -# is unlikely to handle the host's binaries.
1691 -# Fortunately install-sh will honor a STRIPPROG variable, so we
1692 -# always use install-sh in `make install-strip', and initialize
1693 -# STRIPPROG with the value of the STRIP variable (set by the user).
1694 -AC_DEFUN([AM_PROG_INSTALL_STRIP],
1695 -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1696 -# Installed binaries are usually stripped using `strip' when the user
1697 -# run `make install-strip'. However `strip' might not be the right
1698 -# tool to use in cross-compilation environments, therefore Automake
1699 -# will honor the `STRIP' environment variable to overrule this program.
1700 -dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1701 -if test "$cross_compiling" != no; then
1702 - AC_CHECK_TOOL([STRIP], [strip], :)
1703 -fi
1704 -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1705 -AC_SUBST([INSTALL_STRIP_PROGRAM])])
1706 + if test "x$lt_cv_dlopen" != xno; then
1707 + enable_dlopen=yes
1708 + else
1709 + enable_dlopen=no
1710 + fi
1711
1712 -# -*- Autoconf -*-
1713 -# Copyright (C) 2003 Free Software Foundation, Inc.
1714 + case $lt_cv_dlopen in
1715 + dlopen)
1716 + save_CPPFLAGS="$CPPFLAGS"
1717 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1718
1719 -# This program is free software; you can redistribute it and/or modify
1720 -# it under the terms of the GNU General Public License as published by
1721 -# the Free Software Foundation; either version 2, or (at your option)
1722 -# any later version.
1723 + save_LDFLAGS="$LDFLAGS"
1724 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1725
1726 -# This program is distributed in the hope that it will be useful,
1727 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1728 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1729 -# GNU General Public License for more details.
1730 + save_LIBS="$LIBS"
1731 + LIBS="$lt_cv_dlopen_libs $LIBS"
1732
1733 -# You should have received a copy of the GNU General Public License
1734 -# along with this program; if not, write to the Free Software
1735 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1736 -# 02111-1307, USA.
1737 + AC_CACHE_CHECK([whether a program can dlopen itself],
1738 + lt_cv_dlopen_self, [dnl
1739 + _LT_AC_TRY_DLOPEN_SELF(
1740 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1741 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1742 + ])
1743
1744 -# serial 1
1745 + if test "x$lt_cv_dlopen_self" = xyes; then
1746 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1747 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1748 + lt_cv_dlopen_self_static, [dnl
1749 + _LT_AC_TRY_DLOPEN_SELF(
1750 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1751 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1752 + ])
1753 + fi
1754
1755 -# Check whether the underlying file-system supports filenames
1756 -# with a leading dot. For instance MS-DOS doesn't.
1757 -AC_DEFUN([AM_SET_LEADING_DOT],
1758 -[rm -rf .tst 2>/dev/null
1759 -mkdir .tst 2>/dev/null
1760 -if test -d .tst; then
1761 - am__leading_dot=.
1762 -else
1763 - am__leading_dot=_
1764 -fi
1765 -rmdir .tst 2>/dev/null
1766 -AC_SUBST([am__leading_dot])])
1767 + CPPFLAGS="$save_CPPFLAGS"
1768 + LDFLAGS="$save_LDFLAGS"
1769 + LIBS="$save_LIBS"
1770 + ;;
1771 + esac
1772
1773 -# serial 5 -*- Autoconf -*-
1774 + case $lt_cv_dlopen_self in
1775 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1776 + *) enable_dlopen_self=unknown ;;
1777 + esac
1778
1779 -# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
1780 + case $lt_cv_dlopen_self_static in
1781 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1782 + *) enable_dlopen_self_static=unknown ;;
1783 + esac
1784 +fi
1785 +])# AC_LIBTOOL_DLOPEN_SELF
1786
1787 -# This program is free software; you can redistribute it and/or modify
1788 -# it under the terms of the GNU General Public License as published by
1789 -# the Free Software Foundation; either version 2, or (at your option)
1790 -# any later version.
1791
1792 -# This program is distributed in the hope that it will be useful,
1793 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
1794 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1795 -# GNU General Public License for more details.
1796 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1797 +# ---------------------------------
1798 +# Check to see if options -c and -o are simultaneously supported by compiler
1799 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1800 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1801 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1802 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1803 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1804 + $rm -r conftest 2>/dev/null
1805 + mkdir conftest
1806 + cd conftest
1807 + mkdir out
1808 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1809
1810 -# You should have received a copy of the GNU General Public License
1811 -# along with this program; if not, write to the Free Software
1812 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1813 -# 02111-1307, USA.
1814 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1815 + # Insert the option either (1) after the last *FLAGS variable, or
1816 + # (2) before a word containing "conftest.", or (3) at the end.
1817 + # Note that $ac_compile itself does not contain backslashes and begins
1818 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1819 + lt_compile=`echo "$ac_compile" | $SED \
1820 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1821 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1822 + -e 's:$: $lt_compiler_flag:'`
1823 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1824 + (eval "$lt_compile" 2>out/conftest.err)
1825 + ac_status=$?
1826 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
1827 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1828 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1829 + then
1830 + # The compiler can only warn and ignore the option if not recognized
1831 + # So say no if there are warnings
1832 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1833 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1834 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1835 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1836 + fi
1837 + fi
1838 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
1839 + $rm conftest*
1840 + # SGI C++ compiler will create directory out/ii_files/ for
1841 + # template instantiation
1842 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1843 + $rm out/* && rmdir out
1844 + cd ..
1845 + rmdir conftest
1846 + $rm conftest*
1847 +])
1848 +])# AC_LIBTOOL_PROG_CC_C_O
1849
1850
1851 -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1852 -# written in clear, in which case automake, when reading aclocal.m4,
1853 -# will think it sees a *use*, and therefore will trigger all it's
1854 -# C support machinery. Also note that it means that autoscan, seeing
1855 -# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1856 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1857 +# -----------------------------------------
1858 +# Check to see if we can do hard links to lock some files if needed
1859 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1860 +[AC_REQUIRE([_LT_AC_LOCK])dnl
1861
1862 +hard_links="nottested"
1863 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1864 + # do not overwrite the value of need_locks provided by the user
1865 + AC_MSG_CHECKING([if we can lock with hard links])
1866 + hard_links=yes
1867 + $rm conftest*
1868 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1869 + touch conftest.a
1870 + ln conftest.a conftest.b 2>&5 || hard_links=no
1871 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1872 + AC_MSG_RESULT([$hard_links])
1873 + if test "$hard_links" = no; then
1874 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1875 + need_locks=warn
1876 + fi
1877 +else
1878 + need_locks=no
1879 +fi
1880 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1881
1882
1883 -# _AM_DEPENDENCIES(NAME)
1884 -# ----------------------
1885 -# See how the compiler implements dependency checking.
1886 -# NAME is "CC", "CXX", "GCJ", or "OBJC".
1887 -# We try a few techniques and use that to set a single cache variable.
1888 -#
1889 -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1890 -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1891 -# dependency, and given that the user is not expected to run this macro,
1892 -# just rely on AC_PROG_CC.
1893 -AC_DEFUN([_AM_DEPENDENCIES],
1894 -[AC_REQUIRE([AM_SET_DEPDIR])dnl
1895 -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1896 -AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1897 -AC_REQUIRE([AM_DEP_TRACK])dnl
1898 +# AC_LIBTOOL_OBJDIR
1899 +# -----------------
1900 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
1901 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1902 +[rm -f .libs 2>/dev/null
1903 +mkdir .libs 2>/dev/null
1904 +if test -d .libs; then
1905 + lt_cv_objdir=.libs
1906 +else
1907 + # MS-DOS does not allow filenames that begin with a dot.
1908 + lt_cv_objdir=_libs
1909 +fi
1910 +rmdir .libs 2>/dev/null])
1911 +objdir=$lt_cv_objdir
1912 +])# AC_LIBTOOL_OBJDIR
1913
1914 -ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1915 - [$1], CXX, [depcc="$CXX" am_compiler_list=],
1916 - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1917 - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1918 - [depcc="$$1" am_compiler_list=])
1919
1920 -AC_CACHE_CHECK([dependency style of $depcc],
1921 - [am_cv_$1_dependencies_compiler_type],
1922 -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1923 - # We make a subdir and do the tests there. Otherwise we can end up
1924 - # making bogus files that we don't know about and never remove. For
1925 - # instance it was reported that on HP-UX the gcc test will end up
1926 - # making a dummy file named `D' -- because `-MD' means `put the output
1927 - # in D'.
1928 - mkdir conftest.dir
1929 - # Copy depcomp to subdir because otherwise we won't find it if we're
1930 - # using a relative directory.
1931 - cp "$am_depcomp" conftest.dir
1932 - cd conftest.dir
1933 - # We will build objects and dependencies in a subdirectory because
1934 - # it helps to detect inapplicable dependency modes. For instance
1935 - # both Tru64's cc and ICC support -MD to output dependencies as a
1936 - # side effect of compilation, but ICC will put the dependencies in
1937 - # the current directory while Tru64 will put them in the object
1938 - # directory.
1939 - mkdir sub
1940 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1941 +# ----------------------------------------------
1942 +# Check hardcoding attributes.
1943 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1944 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
1945 +_LT_AC_TAGVAR(hardcode_action, $1)=
1946 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1947 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1948 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1949
1950 - am_cv_$1_dependencies_compiler_type=none
1951 - if test "$am_compiler_list" = ""; then
1952 - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1953 - fi
1954 - for depmode in $am_compiler_list; do
1955 - # Setup a source with many dependencies, because some compilers
1956 - # like to wrap large dependency lists on column 80 (with \), and
1957 - # we should not choose a depcomp mode which is confused by this.
1958 - #
1959 - # We need to recreate these files for each test, as the compiler may
1960 - # overwrite some of them when testing with obscure command lines.
1961 - # This happens at least with the AIX C compiler.
1962 - : > sub/conftest.c
1963 - for i in 1 2 3 4 5 6; do
1964 - echo '#include "conftst'$i'.h"' >> sub/conftest.c
1965 - : > sub/conftst$i.h
1966 - done
1967 - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1968 -
1969 - case $depmode in
1970 - nosideeffect)
1971 - # after this tag, mechanisms are not by side-effect, so they'll
1972 - # only be used when explicitly requested
1973 - if test "x$enable_dependency_tracking" = xyes; then
1974 - continue
1975 - else
1976 - break
1977 - fi
1978 - ;;
1979 - none) break ;;
1980 - esac
1981 - # We check with `-c' and `-o' for the sake of the "dashmstdout"
1982 - # mode. It turns out that the SunPro C++ compiler does not properly
1983 - # handle `-M -o', and we need to detect this.
1984 - if depmode=$depmode \
1985 - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1986 - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1987 - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1988 - >/dev/null 2>conftest.err &&
1989 - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1990 - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1991 - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1992 - # icc doesn't choke on unknown options, it will just issue warnings
1993 - # (even with -Werror). So we grep stderr for any message
1994 - # that says an option was ignored.
1995 - if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
1996 - am_cv_$1_dependencies_compiler_type=$depmode
1997 - break
1998 - fi
1999 - fi
2000 - done
2001 -
2002 - cd ..
2003 - rm -rf conftest.dir
2004 + # We can hardcode non-existant directories.
2005 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2006 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
2007 + # have to relink, otherwise we might link with an installed library
2008 + # when we should be linking with a yet-to-be-installed one
2009 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2010 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2011 + # Linking always hardcodes the temporary library directory.
2012 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
2013 + else
2014 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2015 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2016 + fi
2017 else
2018 - am_cv_$1_dependencies_compiler_type=none
2019 + # We cannot hardcode anything, or else we can only hardcode existing
2020 + # directories.
2021 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2022 fi
2023 -])
2024 -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
2025 -AM_CONDITIONAL([am__fastdep$1], [
2026 - test "x$enable_dependency_tracking" != xno \
2027 - && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
2028 -])
2029 -
2030 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2031
2032 -# AM_SET_DEPDIR
2033 -# -------------
2034 -# Choose a directory name for dependency files.
2035 -# This macro is AC_REQUIREd in _AM_DEPENDENCIES
2036 -AC_DEFUN([AM_SET_DEPDIR],
2037 -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
2038 -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
2039 -])
2040 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2041 + # Fast installation is not supported
2042 + enable_fast_install=no
2043 +elif test "$shlibpath_overrides_runpath" = yes ||
2044 + test "$enable_shared" = no; then
2045 + # Fast installation is not necessary
2046 + enable_fast_install=needless
2047 +fi
2048 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2049
2050
2051 -# AM_DEP_TRACK
2052 -# ------------
2053 -AC_DEFUN([AM_DEP_TRACK],
2054 -[AC_ARG_ENABLE(dependency-tracking,
2055 -[ --disable-dependency-tracking Speeds up one-time builds
2056 - --enable-dependency-tracking Do not reject slow dependency extractors])
2057 -if test "x$enable_dependency_tracking" != xno; then
2058 - am_depcomp="$ac_aux_dir/depcomp"
2059 - AMDEPBACKSLASH='\'
2060 +# AC_LIBTOOL_SYS_LIB_STRIP
2061 +# ------------------------
2062 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2063 +[striplib=
2064 +old_striplib=
2065 +AC_MSG_CHECKING([whether stripping libraries is possible])
2066 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2067 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2068 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2069 + AC_MSG_RESULT([yes])
2070 +else
2071 +# FIXME - insert some real tests, host_os isn't really good enough
2072 + case $host_os in
2073 + darwin*)
2074 + if test -n "$STRIP" ; then
2075 + striplib="$STRIP -x"
2076 + AC_MSG_RESULT([yes])
2077 + else
2078 + AC_MSG_RESULT([no])
2079 fi
2080 -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
2081 -AC_SUBST([AMDEPBACKSLASH])
2082 -])
2083 -
2084 -# Generate code to set up dependency tracking. -*- Autoconf -*-
2085 + ;;
2086 + *)
2087 + AC_MSG_RESULT([no])
2088 + ;;
2089 + esac
2090 +fi
2091 +])# AC_LIBTOOL_SYS_LIB_STRIP
2092
2093 -# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
2094
2095 -# This program is free software; you can redistribute it and/or modify
2096 -# it under the terms of the GNU General Public License as published by
2097 -# the Free Software Foundation; either version 2, or (at your option)
2098 -# any later version.
2099 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2100 +# -----------------------------
2101 +# PORTME Fill in your ld.so characteristics
2102 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2103 +[AC_MSG_CHECKING([dynamic linker characteristics])
2104 +library_names_spec=
2105 +libname_spec='lib$name'
2106 +soname_spec=
2107 +shrext_cmds=".so"
2108 +postinstall_cmds=
2109 +postuninstall_cmds=
2110 +finish_cmds=
2111 +finish_eval=
2112 +shlibpath_var=
2113 +shlibpath_overrides_runpath=unknown
2114 +version_type=none
2115 +dynamic_linker="$host_os ld.so"
2116 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
2117 +if test "$GCC" = yes; then
2118 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2119 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2120 + # if the path contains ";" then we assume it to be the separator
2121 + # otherwise default to the standard path separator (i.e. ":") - it is
2122 + # assumed that no part of a normal pathname contains ";" but that should
2123 + # okay in the real world where ";" in dirpaths is itself problematic.
2124 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2125 + else
2126 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2127 + fi
2128 +else
2129 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2130 +fi
2131 +need_lib_prefix=unknown
2132 +hardcode_into_libs=no
2133
2134 -# This program is distributed in the hope that it will be useful,
2135 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2136 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2137 -# GNU General Public License for more details.
2138 +# when you set need_version to no, make sure it does not cause -set_version
2139 +# flags to be left without arguments
2140 +need_version=unknown
2141
2142 -# You should have received a copy of the GNU General Public License
2143 -# along with this program; if not, write to the Free Software
2144 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2145 -# 02111-1307, USA.
2146 +case $host_os in
2147 +aix3*)
2148 + version_type=linux
2149 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2150 + shlibpath_var=LIBPATH
2151
2152 -#serial 2
2153 + # AIX 3 has no versioning support, so we append a major version to the name.
2154 + soname_spec='${libname}${release}${shared_ext}$major'
2155 + ;;
2156
2157 -# _AM_OUTPUT_DEPENDENCY_COMMANDS
2158 -# ------------------------------
2159 -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
2160 -[for mf in $CONFIG_FILES; do
2161 - # Strip MF so we end up with the name of the file.
2162 - mf=`echo "$mf" | sed -e 's/:.*$//'`
2163 - # Check whether this is an Automake generated Makefile or not.
2164 - # We used to match only the files named `Makefile.in', but
2165 - # some people rename them; so instead we look at the file content.
2166 - # Grep'ing the first line is not enough: some people post-process
2167 - # each Makefile.in and add a new line on top of each file to say so.
2168 - # So let's grep whole file.
2169 - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
2170 - dirpart=`AS_DIRNAME("$mf")`
2171 +aix4* | aix5*)
2172 + version_type=linux
2173 + need_lib_prefix=no
2174 + need_version=no
2175 + hardcode_into_libs=yes
2176 + if test "$host_cpu" = ia64; then
2177 + # AIX 5 supports IA64
2178 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2179 + shlibpath_var=LD_LIBRARY_PATH
2180 else
2181 - continue
2182 + # With GCC up to 2.95.x, collect2 would create an import file
2183 + # for dependence libraries. The import file would start with
2184 + # the line `#! .'. This would cause the generated library to
2185 + # depend on `.', always an invalid library. This was fixed in
2186 + # development snapshots of GCC prior to 3.0.
2187 + case $host_os in
2188 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2189 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2190 + echo ' yes '
2191 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2192 + :
2193 + else
2194 + can_build_shared=no
2195 + fi
2196 + ;;
2197 + esac
2198 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2199 + # soname into executable. Probably we can add versioning support to
2200 + # collect2, so additional links can be useful in future.
2201 + if test "$aix_use_runtimelinking" = yes; then
2202 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2203 + # instead of lib<name>.a to let people know that these are not
2204 + # typical AIX shared libraries.
2205 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2206 + else
2207 + # We preserve .a as extension for shared libraries through AIX4.2
2208 + # and later when we are not doing run time linking.
2209 + library_names_spec='${libname}${release}.a $libname.a'
2210 + soname_spec='${libname}${release}${shared_ext}$major'
2211 + fi
2212 + shlibpath_var=LIBPATH
2213 fi
2214 - grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
2215 - # Extract the definition of DEP_FILES from the Makefile without
2216 - # running `make'.
2217 - DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
2218 - test -z "$DEPDIR" && continue
2219 - # When using ansi2knr, U may be empty or an underscore; expand it
2220 - U=`sed -n -e '/^U = / s///p' < "$mf"`
2221 - test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
2222 - # We invoke sed twice because it is the simplest approach to
2223 - # changing $(DEPDIR) to its actual value in the expansion.
2224 - for file in `sed -n -e '
2225 - /^DEP_FILES = .*\\\\$/ {
2226 - s/^DEP_FILES = //
2227 - :loop
2228 - s/\\\\$//
2229 - p
2230 - n
2231 - /\\\\$/ b loop
2232 - p
2233 - }
2234 - /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
2235 - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2236 - # Make sure the directory exists.
2237 - test -f "$dirpart/$file" && continue
2238 - fdir=`AS_DIRNAME(["$file"])`
2239 - AS_MKDIR_P([$dirpart/$fdir])
2240 - # echo "creating $dirpart/$file"
2241 - echo '# dummy' > "$dirpart/$file"
2242 - done
2243 -done
2244 -])# _AM_OUTPUT_DEPENDENCY_COMMANDS
2245 + ;;
2246
2247 +amigaos*)
2248 + library_names_spec='$libname.ixlibrary $libname.a'
2249 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
2250 + 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'
2251 + ;;
2252
2253 -# AM_OUTPUT_DEPENDENCY_COMMANDS
2254 -# -----------------------------
2255 -# This macro should only be invoked once -- use via AC_REQUIRE.
2256 -#
2257 -# This code is only required when automatic dependency tracking
2258 -# is enabled. FIXME. This creates each `.P' file that we will
2259 -# need in order to bootstrap the dependency handling code.
2260 -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
2261 -[AC_CONFIG_COMMANDS([depfiles],
2262 - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
2263 - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
2264 -])
2265 -
2266 -# Check to see how 'make' treats includes. -*- Autoconf -*-
2267 -
2268 -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
2269 +beos*)
2270 + library_names_spec='${libname}${shared_ext}'
2271 + dynamic_linker="$host_os ld.so"
2272 + shlibpath_var=LIBRARY_PATH
2273 + ;;
2274
2275 -# This program is free software; you can redistribute it and/or modify
2276 -# it under the terms of the GNU General Public License as published by
2277 -# the Free Software Foundation; either version 2, or (at your option)
2278 -# any later version.
2279 +bsdi[[45]]*)
2280 + version_type=linux
2281 + need_version=no
2282 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2283 + soname_spec='${libname}${release}${shared_ext}$major'
2284 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2285 + shlibpath_var=LD_LIBRARY_PATH
2286 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2287 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2288 + # the default ld.so.conf also contains /usr/contrib/lib and
2289 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2290 + # libtool to hard-code these into programs
2291 + ;;
2292
2293 -# This program is distributed in the hope that it will be useful,
2294 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2295 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2296 -# GNU General Public License for more details.
2297 +cygwin* | mingw* | pw32*)
2298 + version_type=windows
2299 + shrext_cmds=".dll"
2300 + need_version=no
2301 + need_lib_prefix=no
2302
2303 -# You should have received a copy of the GNU General Public License
2304 -# along with this program; if not, write to the Free Software
2305 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2306 -# 02111-1307, USA.
2307 + case $GCC,$host_os in
2308 + yes,cygwin* | yes,mingw* | yes,pw32*)
2309 + library_names_spec='$libname.dll.a'
2310 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
2311 + postinstall_cmds='base_file=`basename \${file}`~
2312 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2313 + dldir=$destdir/`dirname \$dlpath`~
2314 + test -d \$dldir || mkdir -p \$dldir~
2315 + $install_prog $dir/$dlname \$dldir/$dlname~
2316 + chmod a+x \$dldir/$dlname'
2317 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2318 + dlpath=$dir/\$dldll~
2319 + $rm \$dlpath'
2320 + shlibpath_overrides_runpath=yes
2321
2322 -# serial 2
2323 + case $host_os in
2324 + cygwin*)
2325 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2326 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2327 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2328 + ;;
2329 + mingw*)
2330 + # MinGW DLLs use traditional 'lib' prefix
2331 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2332 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2333 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2334 + # It is most probably a Windows format PATH printed by
2335 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
2336 + # path with ; separators, and with drive letters. We can handle the
2337 + # drive letters (cygwin fileutils understands them), so leave them,
2338 + # especially as we might pass files found there to a mingw objdump,
2339 + # which wouldn't understand a cygwinified path. Ahh.
2340 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2341 + else
2342 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2343 + fi
2344 + ;;
2345 + pw32*)
2346 + # pw32 DLLs use 'pw' prefix rather than 'lib'
2347 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2348 + ;;
2349 + esac
2350 + ;;
2351
2352 -# AM_MAKE_INCLUDE()
2353 -# -----------------
2354 -# Check to see how make treats includes.
2355 -AC_DEFUN([AM_MAKE_INCLUDE],
2356 -[am_make=${MAKE-make}
2357 -cat > confinc << 'END'
2358 -am__doit:
2359 - @echo done
2360 -.PHONY: am__doit
2361 -END
2362 -# If we don't find an include directive, just comment out the code.
2363 -AC_MSG_CHECKING([for style of include used by $am_make])
2364 -am__include="#"
2365 -am__quote=
2366 -_am_result=none
2367 -# First try GNU make style include.
2368 -echo "include confinc" > confmf
2369 -# We grep out `Entering directory' and `Leaving directory'
2370 -# messages which can occur if `w' ends up in MAKEFLAGS.
2371 -# In particular we don't look at `^make:' because GNU make might
2372 -# be invoked under some other name (usually "gmake"), in which
2373 -# case it prints its new name instead of `make'.
2374 -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2375 - am__include=include
2376 - am__quote=
2377 - _am_result=GNU
2378 -fi
2379 -# Now try BSD make style include.
2380 -if test "$am__include" = "#"; then
2381 - echo '.include "confinc"' > confmf
2382 - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2383 - am__include=.include
2384 - am__quote="\""
2385 - _am_result=BSD
2386 - fi
2387 -fi
2388 -AC_SUBST([am__include])
2389 -AC_SUBST([am__quote])
2390 -AC_MSG_RESULT([$_am_result])
2391 -rm -f confinc confmf
2392 -])
2393 + *)
2394 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2395 + ;;
2396 + esac
2397 + dynamic_linker='Win32 ld.exe'
2398 + # FIXME: first we should search . and the directory the executable is in
2399 + shlibpath_var=PATH
2400 + ;;
2401
2402 -# AM_CONDITIONAL -*- Autoconf -*-
2403 +darwin* | rhapsody*)
2404 + dynamic_linker="$host_os dyld"
2405 + version_type=darwin
2406 + need_lib_prefix=no
2407 + need_version=no
2408 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2409 + soname_spec='${libname}${release}${major}$shared_ext'
2410 + shlibpath_overrides_runpath=yes
2411 + shlibpath_var=DYLD_LIBRARY_PATH
2412 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2413 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2414 + if test "$GCC" = yes; then
2415 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2416 + else
2417 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2418 + fi
2419 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2420 + ;;
2421
2422 -# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
2423 +dgux*)
2424 + version_type=linux
2425 + need_lib_prefix=no
2426 + need_version=no
2427 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2428 + soname_spec='${libname}${release}${shared_ext}$major'
2429 + shlibpath_var=LD_LIBRARY_PATH
2430 + ;;
2431
2432 -# This program is free software; you can redistribute it and/or modify
2433 -# it under the terms of the GNU General Public License as published by
2434 -# the Free Software Foundation; either version 2, or (at your option)
2435 -# any later version.
2436 +freebsd1*)
2437 + dynamic_linker=no
2438 + ;;
2439
2440 -# This program is distributed in the hope that it will be useful,
2441 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2442 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2443 -# GNU General Public License for more details.
2444 +freebsd* | dragonfly*)
2445 + # DragonFly does not have aout. When/if they implement a new
2446 + # versioning mechanism, adjust this.
2447 + if test -x /usr/bin/objformat; then
2448 + objformat=`/usr/bin/objformat`
2449 + else
2450 + case $host_os in
2451 + freebsd[[123]]*) objformat=aout ;;
2452 + *) objformat=elf ;;
2453 + esac
2454 + fi
2455 + version_type=freebsd-$objformat
2456 + case $version_type in
2457 + freebsd-elf*)
2458 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2459 + need_version=no
2460 + need_lib_prefix=no
2461 + ;;
2462 + freebsd-*)
2463 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2464 + need_version=yes
2465 + ;;
2466 + esac
2467 + shlibpath_var=LD_LIBRARY_PATH
2468 + case $host_os in
2469 + freebsd2*)
2470 + shlibpath_overrides_runpath=yes
2471 + ;;
2472 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2473 + shlibpath_overrides_runpath=yes
2474 + hardcode_into_libs=yes
2475 + ;;
2476 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2477 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2478 + shlibpath_overrides_runpath=no
2479 + hardcode_into_libs=yes
2480 + ;;
2481 + freebsd*) # from 4.6 on
2482 + shlibpath_overrides_runpath=yes
2483 + hardcode_into_libs=yes
2484 + ;;
2485 + esac
2486 + ;;
2487
2488 -# You should have received a copy of the GNU General Public License
2489 -# along with this program; if not, write to the Free Software
2490 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2491 -# 02111-1307, USA.
2492 +gnu*)
2493 + version_type=linux
2494 + need_lib_prefix=no
2495 + need_version=no
2496 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2497 + soname_spec='${libname}${release}${shared_ext}$major'
2498 + shlibpath_var=LD_LIBRARY_PATH
2499 + hardcode_into_libs=yes
2500 + ;;
2501
2502 -# serial 5
2503 +hpux9* | hpux10* | hpux11*)
2504 + # Give a soname corresponding to the major version so that dld.sl refuses to
2505 + # link against other versions.
2506 + version_type=sunos
2507 + need_lib_prefix=no
2508 + need_version=no
2509 + case $host_cpu in
2510 + ia64*)
2511 + shrext_cmds='.so'
2512 + hardcode_into_libs=yes
2513 + dynamic_linker="$host_os dld.so"
2514 + shlibpath_var=LD_LIBRARY_PATH
2515 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2516 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2517 + soname_spec='${libname}${release}${shared_ext}$major'
2518 + if test "X$HPUX_IA64_MODE" = X32; then
2519 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2520 + else
2521 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2522 + fi
2523 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2524 + ;;
2525 + hppa*64*)
2526 + shrext_cmds='.sl'
2527 + hardcode_into_libs=yes
2528 + dynamic_linker="$host_os dld.sl"
2529 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2530 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2531 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2532 + soname_spec='${libname}${release}${shared_ext}$major'
2533 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2534 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2535 + ;;
2536 + *)
2537 + shrext_cmds='.sl'
2538 + dynamic_linker="$host_os dld.sl"
2539 + shlibpath_var=SHLIB_PATH
2540 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2541 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2542 + soname_spec='${libname}${release}${shared_ext}$major'
2543 + ;;
2544 + esac
2545 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
2546 + postinstall_cmds='chmod 555 $lib'
2547 + ;;
2548
2549 -AC_PREREQ(2.52)
2550 +interix3*)
2551 + version_type=linux
2552 + need_lib_prefix=no
2553 + need_version=no
2554 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2555 + soname_spec='${libname}${release}${shared_ext}$major'
2556 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2557 + shlibpath_var=LD_LIBRARY_PATH
2558 + shlibpath_overrides_runpath=no
2559 + hardcode_into_libs=yes
2560 + ;;
2561
2562 -# AM_CONDITIONAL(NAME, SHELL-CONDITION)
2563 -# -------------------------------------
2564 -# Define a conditional.
2565 -AC_DEFUN([AM_CONDITIONAL],
2566 -[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
2567 - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
2568 -AC_SUBST([$1_TRUE])
2569 -AC_SUBST([$1_FALSE])
2570 -if $2; then
2571 - $1_TRUE=
2572 - $1_FALSE='#'
2573 -else
2574 - $1_TRUE='#'
2575 - $1_FALSE=
2576 -fi
2577 -AC_CONFIG_COMMANDS_PRE(
2578 -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
2579 - AC_MSG_ERROR([conditional "$1" was never defined.
2580 -Usually this means the macro was only invoked conditionally.])
2581 -fi])])
2582 -
2583 -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
2584 +irix5* | irix6* | nonstopux*)
2585 + case $host_os in
2586 + nonstopux*) version_type=nonstopux ;;
2587 + *)
2588 + if test "$lt_cv_prog_gnu_ld" = yes; then
2589 + version_type=linux
2590 + else
2591 + version_type=irix
2592 + fi ;;
2593 + esac
2594 + need_lib_prefix=no
2595 + need_version=no
2596 + soname_spec='${libname}${release}${shared_ext}$major'
2597 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2598 + case $host_os in
2599 + irix5* | nonstopux*)
2600 + libsuff= shlibsuff=
2601 + ;;
2602 + *)
2603 + case $LD in # libtool.m4 will add one of these switches to LD
2604 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2605 + libsuff= shlibsuff= libmagic=32-bit;;
2606 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2607 + libsuff=32 shlibsuff=N32 libmagic=N32;;
2608 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2609 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
2610 + *) libsuff= shlibsuff= libmagic=never-match;;
2611 + esac
2612 + ;;
2613 + esac
2614 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2615 + shlibpath_overrides_runpath=no
2616 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2617 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2618 + hardcode_into_libs=yes
2619 + ;;
2620
2621 -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
2622 +# No shared lib support for Linux oldld, aout, or coff.
2623 +linux*oldld* | linux*aout* | linux*coff*)
2624 + dynamic_linker=no
2625 + ;;
2626
2627 -# This program is free software; you can redistribute it and/or modify
2628 -# it under the terms of the GNU General Public License as published by
2629 -# the Free Software Foundation; either version 2, or (at your option)
2630 -# any later version.
2631 +# This must be Linux ELF.
2632 +linux* | k*bsd*-gnu)
2633 + version_type=linux
2634 + need_lib_prefix=no
2635 + need_version=no
2636 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2637 + soname_spec='${libname}${release}${shared_ext}$major'
2638 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2639 + shlibpath_var=LD_LIBRARY_PATH
2640 + shlibpath_overrides_runpath=no
2641 + # This implies no fast_install, which is unacceptable.
2642 + # Some rework will be needed to allow for fast_install
2643 + # before this can be enabled.
2644 + hardcode_into_libs=yes
2645
2646 -# This program is distributed in the hope that it will be useful,
2647 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
2648 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2649 -# GNU General Public License for more details.
2650 + # Append ld.so.conf contents to the search path
2651 + if test -f /etc/ld.so.conf; then
2652 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2653 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2654 + fi
2655
2656 -# You should have received a copy of the GNU General Public License
2657 -# along with this program; if not, write to the Free Software
2658 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2659 -# 02111-1307, USA.
2660 + # We used to test for /lib/ld.so.1 and disable shared libraries on
2661 + # powerpc, because MkLinux only supported shared libraries with the
2662 + # GNU dynamic linker. Since this was broken with cross compilers,
2663 + # most powerpc-linux boxes support dynamic linking these days and
2664 + # people can always --disable-shared, the test was removed, and we
2665 + # assume the GNU/Linux dynamic linker is in use.
2666 + dynamic_linker='GNU/Linux ld.so'
2667 + ;;
2668
2669 -AC_PREREQ([2.52])
2670 +netbsdelf*-gnu)
2671 + version_type=linux
2672 + need_lib_prefix=no
2673 + need_version=no
2674 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2675 + soname_spec='${libname}${release}${shared_ext}$major'
2676 + shlibpath_var=LD_LIBRARY_PATH
2677 + shlibpath_overrides_runpath=no
2678 + hardcode_into_libs=yes
2679 + dynamic_linker='NetBSD ld.elf_so'
2680 + ;;
2681
2682 -# serial 6
2683 +netbsd*)
2684 + version_type=sunos
2685 + need_lib_prefix=no
2686 + need_version=no
2687 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2688 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2689 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2690 + dynamic_linker='NetBSD (a.out) ld.so'
2691 + else
2692 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2693 + soname_spec='${libname}${release}${shared_ext}$major'
2694 + dynamic_linker='NetBSD ld.elf_so'
2695 + fi
2696 + shlibpath_var=LD_LIBRARY_PATH
2697 + shlibpath_overrides_runpath=yes
2698 + hardcode_into_libs=yes
2699 + ;;
2700
2701 -# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
2702 -AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
2703 +newsos6)
2704 + version_type=linux
2705 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2706 + shlibpath_var=LD_LIBRARY_PATH
2707 + shlibpath_overrides_runpath=yes
2708 + ;;
2709
2710 -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2711 +nto-qnx*)
2712 + version_type=linux
2713 + need_lib_prefix=no
2714 + need_version=no
2715 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2716 + soname_spec='${libname}${release}${shared_ext}$major'
2717 + shlibpath_var=LD_LIBRARY_PATH
2718 + shlibpath_overrides_runpath=yes
2719 + ;;
2720
2721 -# serial 47 AC_PROG_LIBTOOL
2722 -# Debian $Rev: 214 $
2723 +openbsd*)
2724 + version_type=sunos
2725 + sys_lib_dlsearch_path_spec="/usr/lib"
2726 + need_lib_prefix=no
2727 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2728 + case $host_os in
2729 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2730 + *) need_version=no ;;
2731 + esac
2732 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2733 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2734 + shlibpath_var=LD_LIBRARY_PATH
2735 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2736 + case $host_os in
2737 + openbsd2.[[89]] | openbsd2.[[89]].*)
2738 + shlibpath_overrides_runpath=no
2739 + ;;
2740 + *)
2741 + shlibpath_overrides_runpath=yes
2742 + ;;
2743 + esac
2744 + else
2745 + shlibpath_overrides_runpath=yes
2746 + fi
2747 + ;;
2748
2749 +os2*)
2750 + libname_spec='$name'
2751 + shrext_cmds=".dll"
2752 + need_lib_prefix=no
2753 + library_names_spec='$libname${shared_ext} $libname.a'
2754 + dynamic_linker='OS/2 ld.exe'
2755 + shlibpath_var=LIBPATH
2756 + ;;
2757
2758 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
2759 -# -----------------------------------------------------------
2760 -# If this macro is not defined by Autoconf, define it here.
2761 -m4_ifdef([AC_PROVIDE_IFELSE],
2762 - [],
2763 - [m4_define([AC_PROVIDE_IFELSE],
2764 - [m4_ifdef([AC_PROVIDE_$1],
2765 - [$2], [$3])])])
2766 +osf3* | osf4* | osf5*)
2767 + version_type=osf
2768 + need_lib_prefix=no
2769 + need_version=no
2770 + soname_spec='${libname}${release}${shared_ext}$major'
2771 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2772 + shlibpath_var=LD_LIBRARY_PATH
2773 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2774 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2775 + ;;
2776
2777 +solaris*)
2778 + version_type=linux
2779 + need_lib_prefix=no
2780 + need_version=no
2781 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2782 + soname_spec='${libname}${release}${shared_ext}$major'
2783 + shlibpath_var=LD_LIBRARY_PATH
2784 + shlibpath_overrides_runpath=yes
2785 + hardcode_into_libs=yes
2786 + # ldd complains unless libraries are executable
2787 + postinstall_cmds='chmod +x $lib'
2788 + ;;
2789
2790 -# AC_PROG_LIBTOOL
2791 -# ---------------
2792 -AC_DEFUN([AC_PROG_LIBTOOL],
2793 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
2794 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
2795 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
2796 - AC_PROVIDE_IFELSE([AC_PROG_CXX],
2797 - [AC_LIBTOOL_CXX],
2798 - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
2799 - ])])
2800 -dnl And a similar setup for Fortran 77 support
2801 - AC_PROVIDE_IFELSE([AC_PROG_F77],
2802 - [AC_LIBTOOL_F77],
2803 - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
2804 -])])
2805 +sunos4*)
2806 + version_type=sunos
2807 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2808 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2809 + shlibpath_var=LD_LIBRARY_PATH
2810 + shlibpath_overrides_runpath=yes
2811 + if test "$with_gnu_ld" = yes; then
2812 + need_lib_prefix=no
2813 + fi
2814 + need_version=yes
2815 + ;;
2816
2817 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
2818 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
2819 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
2820 - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
2821 - [AC_LIBTOOL_GCJ],
2822 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
2823 - [AC_LIBTOOL_GCJ],
2824 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
2825 - [AC_LIBTOOL_GCJ],
2826 - [ifdef([AC_PROG_GCJ],
2827 - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2828 - ifdef([A][M_PROG_GCJ],
2829 - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
2830 - ifdef([LT_AC_PROG_GCJ],
2831 - [define([LT_AC_PROG_GCJ],
2832 - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
2833 -])])# AC_PROG_LIBTOOL
2834 +sysv4 | sysv4.3*)
2835 + version_type=linux
2836 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2837 + soname_spec='${libname}${release}${shared_ext}$major'
2838 + shlibpath_var=LD_LIBRARY_PATH
2839 + case $host_vendor in
2840 + sni)
2841 + shlibpath_overrides_runpath=no
2842 + need_lib_prefix=no
2843 + export_dynamic_flag_spec='${wl}-Blargedynsym'
2844 + runpath_var=LD_RUN_PATH
2845 + ;;
2846 + siemens)
2847 + need_lib_prefix=no
2848 + ;;
2849 + motorola)
2850 + need_lib_prefix=no
2851 + need_version=no
2852 + shlibpath_overrides_runpath=no
2853 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2854 + ;;
2855 + esac
2856 + ;;
2857
2858 +sysv4*MP*)
2859 + if test -d /usr/nec ;then
2860 + version_type=linux
2861 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2862 + soname_spec='$libname${shared_ext}.$major'
2863 + shlibpath_var=LD_LIBRARY_PATH
2864 + fi
2865 + ;;
2866
2867 -# _AC_PROG_LIBTOOL
2868 -# ----------------
2869 -AC_DEFUN([_AC_PROG_LIBTOOL],
2870 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
2871 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
2872 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
2873 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
2874 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2875 + version_type=freebsd-elf
2876 + need_lib_prefix=no
2877 + need_version=no
2878 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2879 + soname_spec='${libname}${release}${shared_ext}$major'
2880 + shlibpath_var=LD_LIBRARY_PATH
2881 + hardcode_into_libs=yes
2882 + if test "$with_gnu_ld" = yes; then
2883 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2884 + shlibpath_overrides_runpath=no
2885 + else
2886 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2887 + shlibpath_overrides_runpath=yes
2888 + case $host_os in
2889 + sco3.2v5*)
2890 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2891 + ;;
2892 + esac
2893 + fi
2894 + sys_lib_dlsearch_path_spec='/usr/lib'
2895 + ;;
2896
2897 -# This can be used to rebuild libtool when needed
2898 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
2899 +uts4*)
2900 + version_type=linux
2901 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2902 + soname_spec='${libname}${release}${shared_ext}$major'
2903 + shlibpath_var=LD_LIBRARY_PATH
2904 + ;;
2905
2906 -# Always use our own libtool.
2907 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2908 -AC_SUBST(LIBTOOL)dnl
2909 +*)
2910 + dynamic_linker=no
2911 + ;;
2912 +esac
2913 +AC_MSG_RESULT([$dynamic_linker])
2914 +test "$dynamic_linker" = no && can_build_shared=no
2915
2916 -# Prevent multiple expansion
2917 -define([AC_PROG_LIBTOOL], [])
2918 -])# _AC_PROG_LIBTOOL
2919 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2920 +if test "$GCC" = yes; then
2921 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2922 +fi
2923 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2924
2925
2926 -# AC_LIBTOOL_SETUP
2927 +# _LT_AC_TAGCONFIG
2928 # ----------------
2929 -AC_DEFUN([AC_LIBTOOL_SETUP],
2930 -[AC_PREREQ(2.50)dnl
2931 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
2932 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
2933 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
2934 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
2935 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2936 -AC_REQUIRE([AC_PROG_CC])dnl
2937 -AC_REQUIRE([AC_PROG_LD])dnl
2938 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
2939 -AC_REQUIRE([AC_PROG_NM])dnl
2940 -
2941 -AC_REQUIRE([AC_PROG_LN_S])dnl
2942 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
2943 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2944 -AC_REQUIRE([AC_OBJEXT])dnl
2945 -AC_REQUIRE([AC_EXEEXT])dnl
2946 -dnl
2947 -
2948 -AC_LIBTOOL_SYS_MAX_CMD_LEN
2949 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2950 -AC_LIBTOOL_OBJDIR
2951 -
2952 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2953 -_LT_AC_PROG_ECHO_BACKSLASH
2954 +AC_DEFUN([_LT_AC_TAGCONFIG],
2955 +[AC_ARG_WITH([tags],
2956 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2957 + [include additional configurations @<:@automatic@:>@])],
2958 + [tagnames="$withval"])
2959
2960 -case $host_os in
2961 -aix3*)
2962 - # AIX sometimes has problems with the GCC collect2 program. For some
2963 - # reason, if we set the COLLECT_NAMES environment variable, the problems
2964 - # vanish in a puff of smoke.
2965 - if test "X${COLLECT_NAMES+set}" != Xset; then
2966 - COLLECT_NAMES=
2967 - export COLLECT_NAMES
2968 +if test -f "$ltmain" && test -n "$tagnames"; then
2969 + if test ! -f "${ofile}"; then
2970 + AC_MSG_WARN([output file `$ofile' does not exist])
2971 fi
2972 - ;;
2973 -esac
2974 -
2975 -# Sed substitution that helps us do robust quoting. It backslashifies
2976 -# metacharacters that are still active within double-quoted strings.
2977 -Xsed='sed -e s/^X//'
2978 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
2979
2980 -# Same as above, but do not quote variable references.
2981 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
2982 + if test -z "$LTCC"; then
2983 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2984 + if test -z "$LTCC"; then
2985 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2986 + else
2987 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2988 + fi
2989 + fi
2990 + if test -z "$LTCFLAGS"; then
2991 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2992 + fi
2993
2994 -# Sed substitution to delay expansion of an escaped shell variable in a
2995 -# double_quote_subst'ed string.
2996 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2997 + # Extract list of available tagged configurations in $ofile.
2998 + # Note that this assumes the entire list is on one line.
2999 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3000
3001 -# Sed substitution to avoid accidental globbing in evaled expressions
3002 -no_glob_subst='s/\*/\\\*/g'
3003 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3004 + for tagname in $tagnames; do
3005 + IFS="$lt_save_ifs"
3006 + # Check whether tagname contains only valid characters
3007 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3008 + "") ;;
3009 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3010 + ;;
3011 + esac
3012
3013 -# Constants:
3014 -rm="rm -f"
3015 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3016 + then
3017 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3018 + fi
3019
3020 -# Global variables:
3021 -default_ofile=libtool
3022 -can_build_shared=yes
3023 + # Update the list of available tags.
3024 + if test -n "$tagname"; then
3025 + echo appending configuration tag \"$tagname\" to $ofile
3026
3027 -# All known linkers require a `.a' archive for static linking (except M$VC,
3028 -# which needs '.lib').
3029 -libext=a
3030 -ltmain="$ac_aux_dir/ltmain.sh"
3031 -ofile="$default_ofile"
3032 -with_gnu_ld="$lt_cv_prog_gnu_ld"
3033 + case $tagname in
3034 + CXX)
3035 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3036 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3037 + (test "X$CXX" != "Xg++"))) ; then
3038 + AC_LIBTOOL_LANG_CXX_CONFIG
3039 + else
3040 + tagname=""
3041 + fi
3042 + ;;
3043
3044 -AC_CHECK_TOOL(AR, ar, false)
3045 -AC_CHECK_TOOL(RANLIB, ranlib, :)
3046 -AC_CHECK_TOOL(STRIP, strip, :)
3047 + F77)
3048 + if test -n "$F77" && test "X$F77" != "Xno"; then
3049 + AC_LIBTOOL_LANG_F77_CONFIG
3050 + else
3051 + tagname=""
3052 + fi
3053 + ;;
3054
3055 -old_CC="$CC"
3056 -old_CFLAGS="$CFLAGS"
3057 + GCJ)
3058 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3059 + AC_LIBTOOL_LANG_GCJ_CONFIG
3060 + else
3061 + tagname=""
3062 + fi
3063 + ;;
3064
3065 -# Set sane defaults for various variables
3066 -test -z "$AR" && AR=ar
3067 -test -z "$AR_FLAGS" && AR_FLAGS=cru
3068 -test -z "$AS" && AS=as
3069 -test -z "$CC" && CC=cc
3070 -test -z "$LTCC" && LTCC=$CC
3071 -test -z "$DLLTOOL" && DLLTOOL=dlltool
3072 -test -z "$LD" && LD=ld
3073 -test -z "$LN_S" && LN_S="ln -s"
3074 -test -z "$MAGIC_CMD" && MAGIC_CMD=file
3075 -test -z "$NM" && NM=nm
3076 -test -z "$SED" && SED=sed
3077 -test -z "$OBJDUMP" && OBJDUMP=objdump
3078 -test -z "$RANLIB" && RANLIB=:
3079 -test -z "$STRIP" && STRIP=:
3080 -test -z "$ac_objext" && ac_objext=o
3081 + RC)
3082 + AC_LIBTOOL_LANG_RC_CONFIG
3083 + ;;
3084
3085 -# Determine commands to create old-style static archives.
3086 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3087 -old_postinstall_cmds='chmod 644 $oldlib'
3088 -old_postuninstall_cmds=
3089 + *)
3090 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3091 + ;;
3092 + esac
3093
3094 -if test -n "$RANLIB"; then
3095 - case $host_os in
3096 - openbsd*)
3097 - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3098 - ;;
3099 - *)
3100 - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3101 - ;;
3102 - esac
3103 - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3104 -fi
3105 + # Append the new tag name to the list of available tags.
3106 + if test -n "$tagname" ; then
3107 + available_tags="$available_tags $tagname"
3108 + fi
3109 + fi
3110 + done
3111 + IFS="$lt_save_ifs"
3112
3113 -# Only perform the check for file, if the check method requires it
3114 -case $deplibs_check_method in
3115 -file_magic*)
3116 - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3117 - AC_PATH_MAGIC
3118 + # Now substitute the updated list of available tags.
3119 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3120 + mv "${ofile}T" "$ofile"
3121 + chmod +x "$ofile"
3122 + else
3123 + rm -f "${ofile}T"
3124 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3125 fi
3126 - ;;
3127 -esac
3128 +fi
3129 +])# _LT_AC_TAGCONFIG
3130
3131 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
3132 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3133 -enable_win32_dll=yes, enable_win32_dll=no)
3134
3135 -AC_ARG_ENABLE([libtool-lock],
3136 - [AC_HELP_STRING([--disable-libtool-lock],
3137 - [avoid locking (might break parallel builds)])])
3138 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3139 +# AC_LIBTOOL_DLOPEN
3140 +# -----------------
3141 +# enable checks for dlopen support
3142 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3143 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3144 +])# AC_LIBTOOL_DLOPEN
3145
3146 -AC_ARG_WITH([pic],
3147 - [AC_HELP_STRING([--with-pic],
3148 - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
3149 - [pic_mode="$withval"],
3150 - [pic_mode=default])
3151 -test -z "$pic_mode" && pic_mode=default
3152
3153 -# Use C for the default configuration in the libtool script
3154 -tagname=
3155 -AC_LIBTOOL_LANG_C_CONFIG
3156 -_LT_AC_TAGCONFIG
3157 -])# AC_LIBTOOL_SETUP
3158 +# AC_LIBTOOL_WIN32_DLL
3159 +# --------------------
3160 +# declare package support for building win32 DLLs
3161 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3162 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3163 +])# AC_LIBTOOL_WIN32_DLL
3164
3165
3166 -# _LT_AC_SYS_COMPILER
3167 -# -------------------
3168 -AC_DEFUN([_LT_AC_SYS_COMPILER],
3169 -[AC_REQUIRE([AC_PROG_CC])dnl
3170 +# AC_ENABLE_SHARED([DEFAULT])
3171 +# ---------------------------
3172 +# implement the --enable-shared flag
3173 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3174 +AC_DEFUN([AC_ENABLE_SHARED],
3175 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3176 +AC_ARG_ENABLE([shared],
3177 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3178 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3179 + [p=${PACKAGE-default}
3180 + case $enableval in
3181 + yes) enable_shared=yes ;;
3182 + no) enable_shared=no ;;
3183 + *)
3184 + enable_shared=no
3185 + # Look at the argument we got. We use all the common list separators.
3186 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3187 + for pkg in $enableval; do
3188 + IFS="$lt_save_ifs"
3189 + if test "X$pkg" = "X$p"; then
3190 + enable_shared=yes
3191 + fi
3192 + done
3193 + IFS="$lt_save_ifs"
3194 + ;;
3195 + esac],
3196 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3197 +])# AC_ENABLE_SHARED
3198
3199 -# If no C compiler was specified, use CC.
3200 -LTCC=${LTCC-"$CC"}
3201
3202 -# Allow CC to be a program name with arguments.
3203 -compiler=$CC
3204 -])# _LT_AC_SYS_COMPILER
3205 +# AC_DISABLE_SHARED
3206 +# -----------------
3207 +# set the default shared flag to --disable-shared
3208 +AC_DEFUN([AC_DISABLE_SHARED],
3209 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3210 +AC_ENABLE_SHARED(no)
3211 +])# AC_DISABLE_SHARED
3212
3213
3214 -# _LT_AC_SYS_LIBPATH_AIX
3215 -# ----------------------
3216 -# Links a minimal program and checks the executable
3217 -# for the system default hardcoded library path. In most cases,
3218 -# this is /usr/lib:/lib, but when the MPI compilers are used
3219 -# the location of the communication and MPI libs are included too.
3220 -# If we don't find anything, use the default library path according
3221 -# to the aix ld manual.
3222 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
3223 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
3224 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
3225 -}'`
3226 -# Check for a 64-bit object if we didn't find anything.
3227 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
3228 -}'`; fi],[])
3229 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
3230 -])# _LT_AC_SYS_LIBPATH_AIX
3231 +# AC_ENABLE_STATIC([DEFAULT])
3232 +# ---------------------------
3233 +# implement the --enable-static flag
3234 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3235 +AC_DEFUN([AC_ENABLE_STATIC],
3236 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3237 +AC_ARG_ENABLE([static],
3238 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3239 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3240 + [p=${PACKAGE-default}
3241 + case $enableval in
3242 + yes) enable_static=yes ;;
3243 + no) enable_static=no ;;
3244 + *)
3245 + enable_static=no
3246 + # Look at the argument we got. We use all the common list separators.
3247 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3248 + for pkg in $enableval; do
3249 + IFS="$lt_save_ifs"
3250 + if test "X$pkg" = "X$p"; then
3251 + enable_static=yes
3252 + fi
3253 + done
3254 + IFS="$lt_save_ifs"
3255 + ;;
3256 + esac],
3257 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3258 +])# AC_ENABLE_STATIC
3259
3260
3261 -# _LT_AC_SHELL_INIT(ARG)
3262 -# ----------------------
3263 -AC_DEFUN([_LT_AC_SHELL_INIT],
3264 -[ifdef([AC_DIVERSION_NOTICE],
3265 - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
3266 - [AC_DIVERT_PUSH(NOTICE)])
3267 -$1
3268 -AC_DIVERT_POP
3269 -])# _LT_AC_SHELL_INIT
3270 +# AC_DISABLE_STATIC
3271 +# -----------------
3272 +# set the default static flag to --disable-static
3273 +AC_DEFUN([AC_DISABLE_STATIC],
3274 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3275 +AC_ENABLE_STATIC(no)
3276 +])# AC_DISABLE_STATIC
3277
3278
3279 -# _LT_AC_PROG_ECHO_BACKSLASH
3280 -# --------------------------
3281 -# Add some code to the start of the generated configure script which
3282 -# will find an echo command which doesn't interpret backslashes.
3283 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
3284 -[_LT_AC_SHELL_INIT([
3285 -# Check that we are running under the correct shell.
3286 -SHELL=${CONFIG_SHELL-/bin/sh}
3287 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3288 +# ---------------------------------
3289 +# implement the --enable-fast-install flag
3290 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3291 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3292 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3293 +AC_ARG_ENABLE([fast-install],
3294 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3295 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3296 + [p=${PACKAGE-default}
3297 + case $enableval in
3298 + yes) enable_fast_install=yes ;;
3299 + no) enable_fast_install=no ;;
3300 + *)
3301 + enable_fast_install=no
3302 + # Look at the argument we got. We use all the common list separators.
3303 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3304 + for pkg in $enableval; do
3305 + IFS="$lt_save_ifs"
3306 + if test "X$pkg" = "X$p"; then
3307 + enable_fast_install=yes
3308 + fi
3309 + done
3310 + IFS="$lt_save_ifs"
3311 + ;;
3312 + esac],
3313 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3314 +])# AC_ENABLE_FAST_INSTALL
3315
3316 -case X$ECHO in
3317 -X*--fallback-echo)
3318 - # Remove one level of quotation (which was required for Make).
3319 - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
3320 - ;;
3321 -esac
3322
3323 -echo=${ECHO-echo}
3324 -if test "X[$]1" = X--no-reexec; then
3325 - # Discard the --no-reexec flag, and continue.
3326 - shift
3327 -elif test "X[$]1" = X--fallback-echo; then
3328 - # Avoid inline document here, it may be left over
3329 - :
3330 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
3331 - # Yippee, $echo works!
3332 - :
3333 -else
3334 - # Restart under the correct shell.
3335 - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
3336 -fi
3337 +# AC_DISABLE_FAST_INSTALL
3338 +# -----------------------
3339 +# set the default to --disable-fast-install
3340 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3341 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3342 +AC_ENABLE_FAST_INSTALL(no)
3343 +])# AC_DISABLE_FAST_INSTALL
3344
3345 -if test "X[$]1" = X--fallback-echo; then
3346 - # used as fallback echo
3347 - shift
3348 - cat <<EOF
3349 -[$]*
3350 -EOF
3351 - exit 0
3352 -fi
3353
3354 -# The HP-UX ksh and POSIX shell print the target directory to stdout
3355 -# if CDPATH is set.
3356 -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
3357 +# AC_LIBTOOL_PICMODE([MODE])
3358 +# --------------------------
3359 +# implement the --with-pic flag
3360 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3361 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3362 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3363 +pic_mode=ifelse($#,1,$1,default)
3364 +])# AC_LIBTOOL_PICMODE
3365
3366 -if test -z "$ECHO"; then
3367 -if test "X${echo_test_string+set}" != Xset; then
3368 -# find a string as large as possible, as long as the shell can cope with it
3369 - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
3370 - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
3371 - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
3372 - echo_test_string="`eval $cmd`" &&
3373 - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
3374 - then
3375 - break
3376 - fi
3377 - done
3378 -fi
3379
3380 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
3381 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
3382 - test "X$echo_testing_string" = "X$echo_test_string"; then
3383 - :
3384 -else
3385 - # The Solaris, AIX, and Digital Unix default echo programs unquote
3386 - # backslashes. This makes it impossible to quote backslashes using
3387 - # echo "$something" | sed 's/\\/\\\\/g'
3388 - #
3389 - # So, first we look for a working echo in the user's PATH.
3390 +# AC_PROG_EGREP
3391 +# -------------
3392 +# This is predefined starting with Autoconf 2.54, so this conditional
3393 +# definition can be removed once we require Autoconf 2.54 or later.
3394 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3395 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3396 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3397 + then ac_cv_prog_egrep='grep -E'
3398 + else ac_cv_prog_egrep='egrep'
3399 + fi])
3400 + EGREP=$ac_cv_prog_egrep
3401 + AC_SUBST([EGREP])
3402 +])])
3403
3404 +
3405 +# AC_PATH_TOOL_PREFIX
3406 +# -------------------
3407 +# find a file program which can recognise shared library
3408 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3409 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3410 +AC_MSG_CHECKING([for $1])
3411 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3412 +[case $MAGIC_CMD in
3413 +[[\\/*] | ?:[\\/]*])
3414 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3415 + ;;
3416 +*)
3417 + lt_save_MAGIC_CMD="$MAGIC_CMD"
3418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3419 - for dir in $PATH /usr/ucb; do
3420 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3421 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3422 +dnl not every word. This closes a longstanding sh security hole.
3423 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3424 + for ac_dir in $ac_dummy; do
3425 IFS="$lt_save_ifs"
3426 - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
3427 - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
3428 - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
3429 - test "X$echo_testing_string" = "X$echo_test_string"; then
3430 - echo="$dir/echo"
3431 - break
3432 - fi
3433 - done
3434 - IFS="$lt_save_ifs"
3435 -
3436 - if test "X$echo" = Xecho; then
3437 - # We didn't find a better echo, so look for alternatives.
3438 - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
3439 - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
3440 - test "X$echo_testing_string" = "X$echo_test_string"; then
3441 - # This shell has a builtin print -r that does the trick.
3442 - echo='print -r'
3443 - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
3444 - test "X$CONFIG_SHELL" != X/bin/ksh; then
3445 - # If we have ksh, try running configure again with it.
3446 - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3447 - export ORIGINAL_CONFIG_SHELL
3448 - CONFIG_SHELL=/bin/ksh
3449 - export CONFIG_SHELL
3450 - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
3451 - else
3452 - # Try using printf.
3453 - echo='printf %s\n'
3454 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
3455 - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
3456 - test "X$echo_testing_string" = "X$echo_test_string"; then
3457 - # Cool, printf works
3458 - :
3459 - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3460 - test "X$echo_testing_string" = 'X\t' &&
3461 - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3462 - test "X$echo_testing_string" = "X$echo_test_string"; then
3463 - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
3464 - export CONFIG_SHELL
3465 - SHELL="$CONFIG_SHELL"
3466 - export SHELL
3467 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
3468 - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3469 - test "X$echo_testing_string" = 'X\t' &&
3470 - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3471 - test "X$echo_testing_string" = "X$echo_test_string"; then
3472 - echo="$CONFIG_SHELL [$]0 --fallback-echo"
3473 - else
3474 - # maybe with a smaller string...
3475 - prev=:
3476 + test -z "$ac_dir" && ac_dir=.
3477 + if test -f $ac_dir/$1; then
3478 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3479 + if test -n "$file_magic_test_file"; then
3480 + case $deplibs_check_method in
3481 + "file_magic "*)
3482 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3483 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3484 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3485 + $EGREP "$file_magic_regex" > /dev/null; then
3486 + :
3487 + else
3488 + cat <<EOF 1>&2
3489
3490 - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
3491 - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
3492 - then
3493 - break
3494 - fi
3495 - prev="$cmd"
3496 - done
3497 +*** Warning: the command libtool uses to detect shared libraries,
3498 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3499 +*** The result is that libtool may fail to recognize shared libraries
3500 +*** as such. This will affect the creation of libtool libraries that
3501 +*** depend on shared libraries, but programs linked with such libtool
3502 +*** libraries will work regardless of this problem. Nevertheless, you
3503 +*** may want to report the problem to your system manager and/or to
3504 +*** bug-libtool@gnu.org
3505
3506 - if test "$prev" != 'sed 50q "[$]0"'; then
3507 - echo_test_string=`eval $prev`
3508 - export echo_test_string
3509 - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
3510 - else
3511 - # Oops. We lost completely, so just stick with echo.
3512 - echo=echo
3513 - fi
3514 +EOF
3515 + fi ;;
3516 + esac
3517 fi
3518 + break
3519 fi
3520 - fi
3521 -fi
3522 + done
3523 + IFS="$lt_save_ifs"
3524 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3525 + ;;
3526 +esac])
3527 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3528 +if test -n "$MAGIC_CMD"; then
3529 + AC_MSG_RESULT($MAGIC_CMD)
3530 +else
3531 + AC_MSG_RESULT(no)
3532 fi
3533 +])# AC_PATH_TOOL_PREFIX
3534
3535 -# Copy echo and quote the copy suitably for passing to libtool from
3536 -# the Makefile, instead of quoting the original, which is used later.
3537 -ECHO=$echo
3538 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
3539 - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
3540 +
3541 +# AC_PATH_MAGIC
3542 +# -------------
3543 +# find a file program which can recognise a shared library
3544 +AC_DEFUN([AC_PATH_MAGIC],
3545 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3546 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3547 + if test -n "$ac_tool_prefix"; then
3548 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3549 + else
3550 + MAGIC_CMD=:
3551 + fi
3552 fi
3553 +])# AC_PATH_MAGIC
3554
3555 -AC_SUBST(ECHO)
3556 -])])# _LT_AC_PROG_ECHO_BACKSLASH
3557
3558 +# AC_PROG_LD
3559 +# ----------
3560 +# find the pathname to the GNU or non-GNU linker
3561 +AC_DEFUN([AC_PROG_LD],
3562 +[AC_ARG_WITH([gnu-ld],
3563 + [AC_HELP_STRING([--with-gnu-ld],
3564 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3565 + [test "$withval" = no || with_gnu_ld=yes],
3566 + [with_gnu_ld=no])
3567 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3568 +AC_REQUIRE([AC_PROG_CC])dnl
3569 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3570 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3571 +ac_prog=ld
3572 +if test "$GCC" = yes; then
3573 + # Check if gcc -print-prog-name=ld gives a path.
3574 + AC_MSG_CHECKING([for ld used by $CC])
3575 + case $host in
3576 + *-*-mingw*)
3577 + # gcc leaves a trailing carriage return which upsets mingw
3578 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3579 + *)
3580 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3581 + esac
3582 + case $ac_prog in
3583 + # Accept absolute paths.
3584 + [[\\/]]* | ?:[[\\/]]*)
3585 + re_direlt='/[[^/]][[^/]]*/\.\./'
3586 + # Canonicalize the pathname of ld
3587 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3588 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3589 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3590 + done
3591 + test -z "$LD" && LD="$ac_prog"
3592 + ;;
3593 + "")
3594 + # If it fails, then pretend we aren't using GCC.
3595 + ac_prog=ld
3596 + ;;
3597 + *)
3598 + # If it is relative, then search for the first ld in PATH.
3599 + with_gnu_ld=unknown
3600 + ;;
3601 + esac
3602 +elif test "$with_gnu_ld" = yes; then
3603 + AC_MSG_CHECKING([for GNU ld])
3604 +else
3605 + AC_MSG_CHECKING([for non-GNU ld])
3606 +fi
3607 +AC_CACHE_VAL(lt_cv_path_LD,
3608 +[if test -z "$LD"; then
3609 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3610 + for ac_dir in $PATH; do
3611 + IFS="$lt_save_ifs"
3612 + test -z "$ac_dir" && ac_dir=.
3613 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3614 + lt_cv_path_LD="$ac_dir/$ac_prog"
3615 + # Check to see if the program is GNU ld. I'd rather use --version,
3616 + # but apparently some variants of GNU ld only accept -v.
3617 + # Break only if it was the GNU/non-GNU ld that we prefer.
3618 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3619 + *GNU* | *'with BFD'*)
3620 + test "$with_gnu_ld" != no && break
3621 + ;;
3622 + *)
3623 + test "$with_gnu_ld" != yes && break
3624 + ;;
3625 + esac
3626 + fi
3627 + done
3628 + IFS="$lt_save_ifs"
3629 +else
3630 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3631 +fi])
3632 +LD="$lt_cv_path_LD"
3633 +if test -n "$LD"; then
3634 + AC_MSG_RESULT($LD)
3635 +else
3636 + AC_MSG_RESULT(no)
3637 +fi
3638 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3639 +AC_PROG_LD_GNU
3640 +])# AC_PROG_LD
3641
3642 -# _LT_AC_LOCK
3643 -# -----------
3644 -AC_DEFUN([_LT_AC_LOCK],
3645 -[AC_ARG_ENABLE([libtool-lock],
3646 - [AC_HELP_STRING([--disable-libtool-lock],
3647 - [avoid locking (might break parallel builds)])])
3648 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3649
3650 -# Some flags need to be propagated to the compiler or linker for good
3651 -# libtool support.
3652 -case $host in
3653 -ia64-*-hpux*)
3654 - # Find out which ABI we are using.
3655 - echo 'int i;' > conftest.$ac_ext
3656 - if AC_TRY_EVAL(ac_compile); then
3657 - case `/usr/bin/file conftest.$ac_objext` in
3658 - *ELF-32*)
3659 - HPUX_IA64_MODE="32"
3660 - ;;
3661 - *ELF-64*)
3662 - HPUX_IA64_MODE="64"
3663 - ;;
3664 - esac
3665 - fi
3666 - rm -rf conftest*
3667 +# AC_PROG_LD_GNU
3668 +# --------------
3669 +AC_DEFUN([AC_PROG_LD_GNU],
3670 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3671 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3672 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3673 +case `$LD -v 2>&1 </dev/null` in
3674 +*GNU* | *'with BFD'*)
3675 + lt_cv_prog_gnu_ld=yes
3676 ;;
3677 -*-*-irix6*)
3678 - # Find out which ABI we are using.
3679 - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
3680 - if AC_TRY_EVAL(ac_compile); then
3681 - if test "$lt_cv_prog_gnu_ld" = yes; then
3682 - case `/usr/bin/file conftest.$ac_objext` in
3683 - *32-bit*)
3684 - LD="${LD-ld} -melf32bsmip"
3685 - ;;
3686 - *N32*)
3687 - LD="${LD-ld} -melf32bmipn32"
3688 - ;;
3689 - *64-bit*)
3690 - LD="${LD-ld} -melf64bmip"
3691 - ;;
3692 - esac
3693 - else
3694 - case `/usr/bin/file conftest.$ac_objext` in
3695 - *32-bit*)
3696 - LD="${LD-ld} -32"
3697 - ;;
3698 - *N32*)
3699 - LD="${LD-ld} -n32"
3700 - ;;
3701 - *64-bit*)
3702 - LD="${LD-ld} -64"
3703 - ;;
3704 - esac
3705 - fi
3706 - fi
3707 - rm -rf conftest*
3708 +*)
3709 + lt_cv_prog_gnu_ld=no
3710 ;;
3711 +esac])
3712 +with_gnu_ld=$lt_cv_prog_gnu_ld
3713 +])# AC_PROG_LD_GNU
3714
3715 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3716 - # Find out which ABI we are using.
3717 - echo 'int i;' > conftest.$ac_ext
3718 - if AC_TRY_EVAL(ac_compile); then
3719 - case "`/usr/bin/file conftest.o`" in
3720 - *32-bit*)
3721 - case $host in
3722 - x86_64-*linux*)
3723 - LD="${LD-ld} -m elf_i386"
3724 - ;;
3725 - ppc64-*linux*|powerpc64-*linux*)
3726 - LD="${LD-ld} -m elf32ppclinux"
3727 - ;;
3728 - s390x-*linux*)
3729 - LD="${LD-ld} -m elf_s390"
3730 - ;;
3731 - sparc64-*linux*)
3732 - LD="${LD-ld} -m elf32_sparc"
3733 - ;;
3734 - esac
3735 - ;;
3736 - *64-bit*)
3737 - case $host in
3738 - x86_64-*linux*)
3739 - LD="${LD-ld} -m elf_x86_64"
3740 - ;;
3741 - ppc*-*linux*|powerpc*-*linux*)
3742 - LD="${LD-ld} -m elf64ppc"
3743 - ;;
3744 - s390*-*linux*)
3745 - LD="${LD-ld} -m elf64_s390"
3746 - ;;
3747 - sparc*-*linux*)
3748 - LD="${LD-ld} -m elf64_sparc"
3749 - ;;
3750 - esac
3751 - ;;
3752 - esac
3753 - fi
3754 - rm -rf conftest*
3755 - ;;
3756
3757 -*-*-sco3.2v5*)
3758 - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3759 - SAVE_CFLAGS="$CFLAGS"
3760 - CFLAGS="$CFLAGS -belf"
3761 - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
3762 - [AC_LANG_PUSH(C)
3763 - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
3764 - AC_LANG_POP])
3765 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3766 - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3767 - CFLAGS="$SAVE_CFLAGS"
3768 - fi
3769 - ;;
3770 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
3771 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3772 - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
3773 - AC_CHECK_TOOL(AS, as, false)
3774 - AC_CHECK_TOOL(OBJDUMP, objdump, false)
3775 - ;;
3776 - ])
3777 +# AC_PROG_LD_RELOAD_FLAG
3778 +# ----------------------
3779 +# find reload flag for linker
3780 +# -- PORTME Some linkers may need a different reload flag.
3781 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3782 +[AC_CACHE_CHECK([for $LD option to reload object files],
3783 + lt_cv_ld_reload_flag,
3784 + [lt_cv_ld_reload_flag='-r'])
3785 +reload_flag=$lt_cv_ld_reload_flag
3786 +case $reload_flag in
3787 +"" | " "*) ;;
3788 +*) reload_flag=" $reload_flag" ;;
3789 +esac
3790 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3791 +case $host_os in
3792 + darwin*)
3793 + if test "$GCC" = yes; then
3794 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3795 + else
3796 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
3797 + fi
3798 + ;;
3799 esac
3800 +])# AC_PROG_LD_RELOAD_FLAG
3801
3802 -need_locks="$enable_libtool_lock"
3803
3804 -])# _LT_AC_LOCK
3805 +# AC_DEPLIBS_CHECK_METHOD
3806 +# -----------------------
3807 +# how to check for library dependencies
3808 +# -- PORTME fill in with the dynamic library characteristics
3809 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3810 +[AC_CACHE_CHECK([how to recognise dependent libraries],
3811 +lt_cv_deplibs_check_method,
3812 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
3813 +lt_cv_file_magic_test_file=
3814 +lt_cv_deplibs_check_method='unknown'
3815 +# Need to set the preceding variable on all platforms that support
3816 +# interlibrary dependencies.
3817 +# 'none' -- dependencies not supported.
3818 +# `unknown' -- same as none, but documents that we really don't know.
3819 +# 'pass_all' -- all dependencies passed with no checks.
3820 +# 'test_compile' -- check by making test program.
3821 +# 'file_magic [[regex]]' -- check by looking for files in library path
3822 +# which responds to the $file_magic_cmd with a given extended regex.
3823 +# If you have `file' or equivalent on your system and you're not sure
3824 +# whether `pass_all' will *always* work, you probably want this one.
3825
3826 +case $host_os in
3827 +aix4* | aix5*)
3828 + lt_cv_deplibs_check_method=pass_all
3829 + ;;
3830
3831 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3832 -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
3833 -# ----------------------------------------------------------------
3834 -# Check whether the given compiler option works
3835 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
3836 -[AC_REQUIRE([LT_AC_PROG_SED])
3837 -AC_CACHE_CHECK([$1], [$2],
3838 - [$2=no
3839 - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
3840 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
3841 - lt_compiler_flag="$3"
3842 - # Insert the option either (1) after the last *FLAGS variable, or
3843 - # (2) before a word containing "conftest.", or (3) at the end.
3844 - # Note that $ac_compile itself does not contain backslashes and begins
3845 - # with a dollar sign (not a hyphen), so the echo should work correctly.
3846 - # The option is referenced via a variable to avoid confusing sed.
3847 - lt_compile=`echo "$ac_compile" | $SED \
3848 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
3849 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
3850 - -e 's:$: $lt_compiler_flag:'`
3851 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
3852 - (eval "$lt_compile" 2>conftest.err)
3853 - ac_status=$?
3854 - cat conftest.err >&AS_MESSAGE_LOG_FD
3855 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
3856 - if (exit $ac_status) && test -s "$ac_outfile"; then
3857 - # The compiler can only warn and ignore the option if not recognized
3858 - # So say no if there are warnings
3859 - if test ! -s conftest.err; then
3860 - $2=yes
3861 - fi
3862 - fi
3863 - $rm conftest*
3864 -])
3865 +beos*)
3866 + lt_cv_deplibs_check_method=pass_all
3867 + ;;
3868
3869 -if test x"[$]$2" = xyes; then
3870 - ifelse([$5], , :, [$5])
3871 -else
3872 - ifelse([$6], , :, [$6])
3873 -fi
3874 -])# AC_LIBTOOL_COMPILER_OPTION
3875 +bsdi[[45]]*)
3876 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3877 + lt_cv_file_magic_cmd='/usr/bin/file -L'
3878 + lt_cv_file_magic_test_file=/shlib/libc.so
3879 + ;;
3880
3881 +cygwin*)
3882 + # func_win32_libid is a shell function defined in ltmain.sh
3883 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3884 + lt_cv_file_magic_cmd='func_win32_libid'
3885 + ;;
3886
3887 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
3888 -# [ACTION-SUCCESS], [ACTION-FAILURE])
3889 -# ------------------------------------------------------------
3890 -# Check whether the given compiler option works
3891 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
3892 -[AC_CACHE_CHECK([$1], [$2],
3893 - [$2=no
3894 - save_LDFLAGS="$LDFLAGS"
3895 - LDFLAGS="$LDFLAGS $3"
3896 - printf "$lt_simple_link_test_code" > conftest.$ac_ext
3897 - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3898 - # The compiler can only warn and ignore the option if not recognized
3899 - # So say no if there are warnings
3900 - if test -s conftest.err; then
3901 - # Append any errors to the config.log.
3902 - cat conftest.err 1>&AS_MESSAGE_LOG_FD
3903 - else
3904 - $2=yes
3905 - fi
3906 - fi
3907 - $rm conftest*
3908 - LDFLAGS="$save_LDFLAGS"
3909 -])
3910 +mingw* | pw32*)
3911 + # Base MSYS/MinGW do not provide the 'file' command needed by
3912 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3913 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3914 + lt_cv_file_magic_cmd='$OBJDUMP -f'
3915 + ;;
3916
3917 -if test x"[$]$2" = xyes; then
3918 - ifelse([$4], , :, [$4])
3919 -else
3920 - ifelse([$5], , :, [$5])
3921 -fi
3922 -])# AC_LIBTOOL_LINKER_OPTION
3923 +darwin* | rhapsody*)
3924 + lt_cv_deplibs_check_method=pass_all
3925 + ;;
3926
3927 +freebsd* | dragonfly*)
3928 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3929 + case $host_cpu in
3930 + i*86 )
3931 + # Not sure whether the presence of OpenBSD here was a mistake.
3932 + # Let's accept both of them until this is cleared up.
3933 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3934 + lt_cv_file_magic_cmd=/usr/bin/file
3935 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3936 + ;;
3937 + esac
3938 + else
3939 + lt_cv_deplibs_check_method=pass_all
3940 + fi
3941 + ;;
3942
3943 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
3944 -# --------------------------
3945 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
3946 -[# find the maximum length of command line arguments
3947 -AC_MSG_CHECKING([the maximum length of command line arguments])
3948 -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
3949 - i=0
3950 - teststring="ABCD"
3951 +gnu*)
3952 + lt_cv_deplibs_check_method=pass_all
3953 + ;;
3954
3955 - case $build_os in
3956 - msdosdjgpp*)
3957 - # On DJGPP, this test can blow up pretty badly due to problems in libc
3958 - # (any single argument exceeding 2000 bytes causes a buffer overrun
3959 - # during glob expansion). Even if it were fixed, the result of this
3960 - # check would be larger than it should be.
3961 - lt_cv_sys_max_cmd_len=12288; # 12K is about right
3962 +hpux10.20* | hpux11*)
3963 + lt_cv_file_magic_cmd=/usr/bin/file
3964 + case $host_cpu in
3965 + ia64*)
3966 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3967 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3968 ;;
3969 -
3970 - gnu*)
3971 - # Under GNU Hurd, this test is not required because there is
3972 - # no limit to the length of command line arguments.
3973 - # Libtool will interpret -1 as no limit whatsoever
3974 - lt_cv_sys_max_cmd_len=-1;
3975 + hppa*64*)
3976 + [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]']
3977 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3978 ;;
3979 -
3980 - cygwin* | mingw*)
3981 - # On Win9x/ME, this test blows up -- it succeeds, but takes
3982 - # about 5 minutes as the teststring grows exponentially.
3983 - # Worse, since 9x/ME are not pre-emptively multitasking,
3984 - # you end up with a "frozen" computer, even though with patience
3985 - # the test eventually succeeds (with a max line length of 256k).
3986 - # Instead, let's just punt: use the minimum linelength reported by
3987 - # all of the supported platforms: 8192 (on NT/2K/XP).
3988 - lt_cv_sys_max_cmd_len=8192;
3989 + *)
3990 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3991 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
3992 ;;
3993 + esac
3994 + ;;
3995
3996 - amigaos*)
3997 - # On AmigaOS with pdksh, this test takes hours, literally.
3998 - # So we just punt and use a minimum line length of 8192.
3999 - lt_cv_sys_max_cmd_len=8192;
4000 - ;;
4001 +interix3*)
4002 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4003 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4004 + ;;
4005
4006 - *)
4007 - # If test is not a shell built-in, we'll probably end up computing a
4008 - # maximum length that is only half of the actual maximum length, but
4009 - # we can't tell.
4010 - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
4011 - = "XX$teststring") >/dev/null 2>&1 &&
4012 - new_result=`expr "X$teststring" : ".*" 2>&1` &&
4013 - lt_cv_sys_max_cmd_len=$new_result &&
4014 - test $i != 17 # 1/2 MB should be enough
4015 - do
4016 - i=`expr $i + 1`
4017 - teststring=$teststring$teststring
4018 - done
4019 - teststring=
4020 - # Add a significant safety factor because C++ compilers can tack on massive
4021 - # amounts of additional arguments before passing them to the linker.
4022 - # It appears as though 1/2 is a usable value.
4023 - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4024 - ;;
4025 +irix5* | irix6* | nonstopux*)
4026 + case $LD in
4027 + *-32|*"-32 ") libmagic=32-bit;;
4028 + *-n32|*"-n32 ") libmagic=N32;;
4029 + *-64|*"-64 ") libmagic=64-bit;;
4030 + *) libmagic=never-match;;
4031 esac
4032 -])
4033 -if test -n $lt_cv_sys_max_cmd_len ; then
4034 - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
4035 -else
4036 - AC_MSG_RESULT(none)
4037 -fi
4038 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
4039 -
4040 -
4041 -# _LT_AC_CHECK_DLFCN
4042 -# --------------------
4043 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
4044 -[AC_CHECK_HEADERS(dlfcn.h)dnl
4045 -])# _LT_AC_CHECK_DLFCN
4046 -
4047 + lt_cv_deplibs_check_method=pass_all
4048 + ;;
4049
4050 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
4051 -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
4052 -# ------------------------------------------------------------------
4053 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
4054 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
4055 -if test "$cross_compiling" = yes; then :
4056 - [$4]
4057 -else
4058 - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4059 - lt_status=$lt_dlunknown
4060 - cat > conftest.$ac_ext <<EOF
4061 -[#line __oline__ "configure"
4062 -#include "confdefs.h"
4063 +# This must be Linux ELF.
4064 +linux* | k*bsd*-gnu)
4065 + lt_cv_deplibs_check_method=pass_all
4066 + ;;
4067
4068 -#if HAVE_DLFCN_H
4069 -#include <dlfcn.h>
4070 -#endif
4071 +netbsd* | netbsdelf*-gnu)
4072 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4073 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4074 + else
4075 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4076 + fi
4077 + ;;
4078
4079 -#include <stdio.h>
4080 +newos6*)
4081 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4082 + lt_cv_file_magic_cmd=/usr/bin/file
4083 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
4084 + ;;
4085
4086 -#ifdef RTLD_GLOBAL
4087 -# define LT_DLGLOBAL RTLD_GLOBAL
4088 -#else
4089 -# ifdef DL_GLOBAL
4090 -# define LT_DLGLOBAL DL_GLOBAL
4091 -# else
4092 -# define LT_DLGLOBAL 0
4093 -# endif
4094 -#endif
4095 +nto-qnx*)
4096 + lt_cv_deplibs_check_method=unknown
4097 + ;;
4098
4099 -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4100 - find out it does not work in some platform. */
4101 -#ifndef LT_DLLAZY_OR_NOW
4102 -# ifdef RTLD_LAZY
4103 -# define LT_DLLAZY_OR_NOW RTLD_LAZY
4104 -# else
4105 -# ifdef DL_LAZY
4106 -# define LT_DLLAZY_OR_NOW DL_LAZY
4107 -# else
4108 -# ifdef RTLD_NOW
4109 -# define LT_DLLAZY_OR_NOW RTLD_NOW
4110 -# else
4111 -# ifdef DL_NOW
4112 -# define LT_DLLAZY_OR_NOW DL_NOW
4113 -# else
4114 -# define LT_DLLAZY_OR_NOW 0
4115 -# endif
4116 -# endif
4117 -# endif
4118 -# endif
4119 -#endif
4120 +openbsd*)
4121 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4122 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4123 + else
4124 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4125 + fi
4126 + ;;
4127
4128 -#ifdef __cplusplus
4129 -extern "C" void exit (int);
4130 -#endif
4131 +osf3* | osf4* | osf5*)
4132 + lt_cv_deplibs_check_method=pass_all
4133 + ;;
4134
4135 -void fnord() { int i=42;}
4136 -int main ()
4137 -{
4138 - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4139 - int status = $lt_dlunknown;
4140 +solaris*)
4141 + lt_cv_deplibs_check_method=pass_all
4142 + ;;
4143
4144 - if (self)
4145 - {
4146 - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4147 - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4148 - /* dlclose (self); */
4149 - }
4150 +sysv4 | sysv4.3*)
4151 + case $host_vendor in
4152 + motorola)
4153 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
4154 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4155 + ;;
4156 + ncr)
4157 + lt_cv_deplibs_check_method=pass_all
4158 + ;;
4159 + sequent)
4160 + lt_cv_file_magic_cmd='/bin/file'
4161 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4162 + ;;
4163 + sni)
4164 + lt_cv_file_magic_cmd='/bin/file'
4165 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4166 + lt_cv_file_magic_test_file=/lib/libc.so
4167 + ;;
4168 + siemens)
4169 + lt_cv_deplibs_check_method=pass_all
4170 + ;;
4171 + pc)
4172 + lt_cv_deplibs_check_method=pass_all
4173 + ;;
4174 + esac
4175 + ;;
4176
4177 - exit (status);
4178 -}]
4179 -EOF
4180 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
4181 - (./conftest; exit; ) 2>/dev/null
4182 - lt_status=$?
4183 - case x$lt_status in
4184 - x$lt_dlno_uscore) $1 ;;
4185 - x$lt_dlneed_uscore) $2 ;;
4186 - x$lt_unknown|x*) $3 ;;
4187 - esac
4188 - else :
4189 - # compilation failed
4190 - $3
4191 - fi
4192 -fi
4193 -rm -fr conftest*
4194 -])# _LT_AC_TRY_DLOPEN_SELF
4195 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4196 + lt_cv_deplibs_check_method=pass_all
4197 + ;;
4198 +esac
4199 +])
4200 +file_magic_cmd=$lt_cv_file_magic_cmd
4201 +deplibs_check_method=$lt_cv_deplibs_check_method
4202 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
4203 +])# AC_DEPLIBS_CHECK_METHOD
4204
4205
4206 -# AC_LIBTOOL_DLOPEN_SELF
4207 -# -------------------
4208 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
4209 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
4210 -if test "x$enable_dlopen" != xyes; then
4211 - enable_dlopen=unknown
4212 - enable_dlopen_self=unknown
4213 - enable_dlopen_self_static=unknown
4214 +# AC_PROG_NM
4215 +# ----------
4216 +# find the pathname to a BSD-compatible name lister
4217 +AC_DEFUN([AC_PROG_NM],
4218 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4219 +[if test -n "$NM"; then
4220 + # Let the user override the test.
4221 + lt_cv_path_NM="$NM"
4222 else
4223 - lt_cv_dlopen=no
4224 - lt_cv_dlopen_libs=
4225 + lt_nm_to_check="${ac_tool_prefix}nm"
4226 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4227 + lt_nm_to_check="$lt_nm_to_check nm"
4228 + fi
4229 + for lt_tmp_nm in $lt_nm_to_check; do
4230 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4231 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4232 + IFS="$lt_save_ifs"
4233 + test -z "$ac_dir" && ac_dir=.
4234 + tmp_nm="$ac_dir/$lt_tmp_nm"
4235 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4236 + # Check to see if the nm accepts a BSD-compat flag.
4237 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4238 + # nm: unknown option "B" ignored
4239 + # Tru64's nm complains that /dev/null is an invalid object file
4240 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4241 + */dev/null* | *'Invalid file or object type'*)
4242 + lt_cv_path_NM="$tmp_nm -B"
4243 + break
4244 + ;;
4245 + *)
4246 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4247 + */dev/null*)
4248 + lt_cv_path_NM="$tmp_nm -p"
4249 + break
4250 + ;;
4251 + *)
4252 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4253 + continue # so that we can try to find one that supports BSD flags
4254 + ;;
4255 + esac
4256 + ;;
4257 + esac
4258 + fi
4259 + done
4260 + IFS="$lt_save_ifs"
4261 + done
4262 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4263 +fi])
4264 +NM="$lt_cv_path_NM"
4265 +])# AC_PROG_NM
4266
4267 - case $host_os in
4268 - beos*)
4269 - lt_cv_dlopen="load_add_on"
4270 - lt_cv_dlopen_libs=
4271 - lt_cv_dlopen_self=yes
4272 - ;;
4273
4274 - mingw* | pw32*)
4275 - lt_cv_dlopen="LoadLibrary"
4276 - lt_cv_dlopen_libs=
4277 - ;;
4278 +# AC_CHECK_LIBM
4279 +# -------------
4280 +# check for math library
4281 +AC_DEFUN([AC_CHECK_LIBM],
4282 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4283 +LIBM=
4284 +case $host in
4285 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4286 + # These system don't have libm, or don't need it
4287 + ;;
4288 +*-ncr-sysv4.3*)
4289 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4290 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4291 + ;;
4292 +*)
4293 + AC_CHECK_LIB(m, cos, LIBM="-lm")
4294 + ;;
4295 +esac
4296 +])# AC_CHECK_LIBM
4297
4298 - cygwin*)
4299 - lt_cv_dlopen="dlopen"
4300 - lt_cv_dlopen_libs=
4301 - ;;
4302
4303 - darwin*)
4304 - # if libdl is installed we need to link against it
4305 - AC_CHECK_LIB([dl], [dlopen],
4306 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
4307 - lt_cv_dlopen="dyld"
4308 - lt_cv_dlopen_libs=
4309 - lt_cv_dlopen_self=yes
4310 - ])
4311 - ;;
4312 -
4313 - *)
4314 - AC_CHECK_FUNC([shl_load],
4315 - [lt_cv_dlopen="shl_load"],
4316 - [AC_CHECK_LIB([dld], [shl_load],
4317 - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
4318 - [AC_CHECK_FUNC([dlopen],
4319 - [lt_cv_dlopen="dlopen"],
4320 - [AC_CHECK_LIB([dl], [dlopen],
4321 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
4322 - [AC_CHECK_LIB([svld], [dlopen],
4323 - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
4324 - [AC_CHECK_LIB([dld], [dld_link],
4325 - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
4326 - ])
4327 - ])
4328 - ])
4329 - ])
4330 - ])
4331 - ;;
4332 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4333 +# -----------------------------------
4334 +# sets LIBLTDL to the link flags for the libltdl convenience library and
4335 +# LTDLINCL to the include flags for the libltdl header and adds
4336 +# --enable-ltdl-convenience to the configure arguments. Note that
4337 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4338 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
4339 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
4340 +# (note the single quotes!). If your package is not flat and you're not
4341 +# using automake, define top_builddir and top_srcdir appropriately in
4342 +# the Makefiles.
4343 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4344 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4345 + case $enable_ltdl_convenience in
4346 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4347 + "") enable_ltdl_convenience=yes
4348 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4349 esac
4350 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4351 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4352 + # For backwards non-gettext consistent compatibility...
4353 + INCLTDL="$LTDLINCL"
4354 +])# AC_LIBLTDL_CONVENIENCE
4355
4356 - if test "x$lt_cv_dlopen" != xno; then
4357 - enable_dlopen=yes
4358 +
4359 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4360 +# -----------------------------------
4361 +# sets LIBLTDL to the link flags for the libltdl installable library and
4362 +# LTDLINCL to the include flags for the libltdl header and adds
4363 +# --enable-ltdl-install to the configure arguments. Note that
4364 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4365 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
4366 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4367 +# '${top_srcdir}/' (note the single quotes!). If your package is not
4368 +# flat and you're not using automake, define top_builddir and top_srcdir
4369 +# appropriately in the Makefiles.
4370 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4371 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4372 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4373 + AC_CHECK_LIB(ltdl, lt_dlinit,
4374 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4375 + [if test x"$enable_ltdl_install" = xno; then
4376 + AC_MSG_WARN([libltdl not installed, but installation disabled])
4377 + else
4378 + enable_ltdl_install=yes
4379 + fi
4380 + ])
4381 + if test x"$enable_ltdl_install" = x"yes"; then
4382 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
4383 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4384 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4385 else
4386 - enable_dlopen=no
4387 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4388 + LIBLTDL="-lltdl"
4389 + LTDLINCL=
4390 fi
4391 + # For backwards non-gettext consistent compatibility...
4392 + INCLTDL="$LTDLINCL"
4393 +])# AC_LIBLTDL_INSTALLABLE
4394
4395 - case $lt_cv_dlopen in
4396 - dlopen)
4397 - save_CPPFLAGS="$CPPFLAGS"
4398 - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4399
4400 - save_LDFLAGS="$LDFLAGS"
4401 - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4402 +# AC_LIBTOOL_CXX
4403 +# --------------
4404 +# enable support for C++ libraries
4405 +AC_DEFUN([AC_LIBTOOL_CXX],
4406 +[AC_REQUIRE([_LT_AC_LANG_CXX])
4407 +])# AC_LIBTOOL_CXX
4408
4409 - save_LIBS="$LIBS"
4410 - LIBS="$lt_cv_dlopen_libs $LIBS"
4411
4412 - AC_CACHE_CHECK([whether a program can dlopen itself],
4413 - lt_cv_dlopen_self, [dnl
4414 - _LT_AC_TRY_DLOPEN_SELF(
4415 - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
4416 - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
4417 - ])
4418 +# _LT_AC_LANG_CXX
4419 +# ---------------
4420 +AC_DEFUN([_LT_AC_LANG_CXX],
4421 +[AC_REQUIRE([AC_PROG_CXX])
4422 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4423 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4424 +])# _LT_AC_LANG_CXX
4425
4426 - if test "x$lt_cv_dlopen_self" = xyes; then
4427 - LDFLAGS="$LDFLAGS $link_static_flag"
4428 - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
4429 - lt_cv_dlopen_self_static, [dnl
4430 - _LT_AC_TRY_DLOPEN_SELF(
4431 - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
4432 - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
4433 - ])
4434 - fi
4435 +# _LT_AC_PROG_CXXCPP
4436 +# ------------------
4437 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
4438 +[
4439 +AC_REQUIRE([AC_PROG_CXX])
4440 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4441 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4442 + (test "X$CXX" != "Xg++"))) ; then
4443 + AC_PROG_CXXCPP
4444 +fi
4445 +])# _LT_AC_PROG_CXXCPP
4446
4447 - CPPFLAGS="$save_CPPFLAGS"
4448 - LDFLAGS="$save_LDFLAGS"
4449 - LIBS="$save_LIBS"
4450 - ;;
4451 - esac
4452 +# AC_LIBTOOL_F77
4453 +# --------------
4454 +# enable support for Fortran 77 libraries
4455 +AC_DEFUN([AC_LIBTOOL_F77],
4456 +[AC_REQUIRE([_LT_AC_LANG_F77])
4457 +])# AC_LIBTOOL_F77
4458
4459 - case $lt_cv_dlopen_self in
4460 - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4461 - *) enable_dlopen_self=unknown ;;
4462 - esac
4463
4464 - case $lt_cv_dlopen_self_static in
4465 - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4466 - *) enable_dlopen_self_static=unknown ;;
4467 - esac
4468 -fi
4469 -])# AC_LIBTOOL_DLOPEN_SELF
4470 +# _LT_AC_LANG_F77
4471 +# ---------------
4472 +AC_DEFUN([_LT_AC_LANG_F77],
4473 +[AC_REQUIRE([AC_PROG_F77])
4474 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4475 +])# _LT_AC_LANG_F77
4476
4477
4478 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
4479 -# ---------------------------------
4480 -# Check to see if options -c and -o are simultaneously supported by compiler
4481 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
4482 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4483 -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
4484 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
4485 - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
4486 - $rm -r conftest 2>/dev/null
4487 - mkdir conftest
4488 - cd conftest
4489 - mkdir out
4490 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
4491 +# AC_LIBTOOL_GCJ
4492 +# --------------
4493 +# enable support for GCJ libraries
4494 +AC_DEFUN([AC_LIBTOOL_GCJ],
4495 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
4496 +])# AC_LIBTOOL_GCJ
4497
4498 - lt_compiler_flag="-o out/conftest2.$ac_objext"
4499 - # Insert the option either (1) after the last *FLAGS variable, or
4500 - # (2) before a word containing "conftest.", or (3) at the end.
4501 - # Note that $ac_compile itself does not contain backslashes and begins
4502 - # with a dollar sign (not a hyphen), so the echo should work correctly.
4503 - lt_compile=`echo "$ac_compile" | $SED \
4504 - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
4505 - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
4506 - -e 's:$: $lt_compiler_flag:'`
4507 - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
4508 - (eval "$lt_compile" 2>out/conftest.err)
4509 - ac_status=$?
4510 - cat out/conftest.err >&AS_MESSAGE_LOG_FD
4511 - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
4512 - if (exit $ac_status) && test -s out/conftest2.$ac_objext
4513 - then
4514 - # The compiler can only warn and ignore the option if not recognized
4515 - # So say no if there are warnings
4516 - if test ! -s out/conftest.err; then
4517 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4518 - fi
4519 - fi
4520 - chmod u+w .
4521 - $rm conftest*
4522 - # SGI C++ compiler will create directory out/ii_files/ for
4523 - # template instantiation
4524 - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
4525 - $rm out/* && rmdir out
4526 - cd ..
4527 - rmdir conftest
4528 - $rm conftest*
4529 -])
4530 -])# AC_LIBTOOL_PROG_CC_C_O
4531
4532 +# _LT_AC_LANG_GCJ
4533 +# ---------------
4534 +AC_DEFUN([_LT_AC_LANG_GCJ],
4535 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4536 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4537 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4538 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4539 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4540 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4541 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4542 +])# _LT_AC_LANG_GCJ
4543
4544 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
4545 -# -----------------------------------------
4546 -# Check to see if we can do hard links to lock some files if needed
4547 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
4548 -[AC_REQUIRE([_LT_AC_LOCK])dnl
4549
4550 -hard_links="nottested"
4551 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
4552 - # do not overwrite the value of need_locks provided by the user
4553 - AC_MSG_CHECKING([if we can lock with hard links])
4554 - hard_links=yes
4555 - $rm conftest*
4556 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
4557 - touch conftest.a
4558 - ln conftest.a conftest.b 2>&5 || hard_links=no
4559 - ln conftest.a conftest.b 2>/dev/null && hard_links=no
4560 - AC_MSG_RESULT([$hard_links])
4561 - if test "$hard_links" = no; then
4562 - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
4563 - need_locks=warn
4564 - fi
4565 -else
4566 - need_locks=no
4567 -fi
4568 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
4569 +# AC_LIBTOOL_RC
4570 +# -------------
4571 +# enable support for Windows resource files
4572 +AC_DEFUN([AC_LIBTOOL_RC],
4573 +[AC_REQUIRE([LT_AC_PROG_RC])
4574 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4575 +])# AC_LIBTOOL_RC
4576
4577
4578 -# AC_LIBTOOL_OBJDIR
4579 -# -----------------
4580 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
4581 -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
4582 -[rm -f .libs 2>/dev/null
4583 -mkdir .libs 2>/dev/null
4584 -if test -d .libs; then
4585 - lt_cv_objdir=.libs
4586 -else
4587 - # MS-DOS does not allow filenames that begin with a dot.
4588 - lt_cv_objdir=_libs
4589 -fi
4590 -rmdir .libs 2>/dev/null])
4591 -objdir=$lt_cv_objdir
4592 -])# AC_LIBTOOL_OBJDIR
4593 +# AC_LIBTOOL_LANG_C_CONFIG
4594 +# ------------------------
4595 +# Ensure that the configuration vars for the C compiler are
4596 +# suitably defined. Those variables are subsequently used by
4597 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4598 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4599 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4600 +[lt_save_CC="$CC"
4601 +AC_LANG_PUSH(C)
4602
4603 +# Source file extension for C test sources.
4604 +ac_ext=c
4605
4606 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
4607 -# ----------------------------------------------
4608 -# Check hardcoding attributes.
4609 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
4610 -[AC_MSG_CHECKING([how to hardcode library paths into programs])
4611 -_LT_AC_TAGVAR(hardcode_action, $1)=
4612 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
4613 - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
4614 - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
4615 +# Object file extension for compiled C test sources.
4616 +objext=o
4617 +_LT_AC_TAGVAR(objext, $1)=$objext
4618
4619 - # We can hardcode non-existant directories.
4620 - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
4621 - # If the only mechanism to avoid hardcoding is shlibpath_var, we
4622 - # have to relink, otherwise we might link with an installed library
4623 - # when we should be linking with a yet-to-be-installed one
4624 - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
4625 - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
4626 - # Linking always hardcodes the temporary library directory.
4627 - _LT_AC_TAGVAR(hardcode_action, $1)=relink
4628 - else
4629 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
4630 - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
4631 - fi
4632 -else
4633 - # We cannot hardcode anything, or else we can only hardcode existing
4634 - # directories.
4635 - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
4636 -fi
4637 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
4638 +# Code to be used in simple compile tests
4639 +lt_simple_compile_test_code="int some_variable = 0;\n"
4640
4641 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
4642 - # Fast installation is not supported
4643 - enable_fast_install=no
4644 -elif test "$shlibpath_overrides_runpath" = yes ||
4645 - test "$enable_shared" = no; then
4646 - # Fast installation is not necessary
4647 - enable_fast_install=needless
4648 -fi
4649 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
4650 +# Code to be used in simple link tests
4651 +lt_simple_link_test_code='int main(){return(0);}\n'
4652
4653 +_LT_AC_SYS_COMPILER
4654
4655 -# AC_LIBTOOL_SYS_LIB_STRIP
4656 -# ------------------------
4657 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
4658 -[striplib=
4659 -old_striplib=
4660 -AC_MSG_CHECKING([whether stripping libraries is possible])
4661 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4662 - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4663 - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4664 - AC_MSG_RESULT([yes])
4665 -else
4666 -# FIXME - insert some real tests, host_os isn't really good enough
4667 - case $host_os in
4668 - darwin*)
4669 - if test -n "$STRIP" ; then
4670 - striplib="$STRIP -x"
4671 - AC_MSG_RESULT([yes])
4672 - else
4673 - AC_MSG_RESULT([no])
4674 -fi
4675 - ;;
4676 - *)
4677 - AC_MSG_RESULT([no])
4678 - ;;
4679 - esac
4680 -fi
4681 -])# AC_LIBTOOL_SYS_LIB_STRIP
4682 +# save warnings/boilerplate of simple test code
4683 +_LT_COMPILER_BOILERPLATE
4684 +_LT_LINKER_BOILERPLATE
4685
4686 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4687 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4688 +AC_LIBTOOL_PROG_CC_C_O($1)
4689 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4690 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4691 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4692 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4693 +AC_LIBTOOL_SYS_LIB_STRIP
4694 +AC_LIBTOOL_DLOPEN_SELF
4695
4696 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
4697 -# -----------------------------
4698 -# PORTME Fill in your ld.so characteristics
4699 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
4700 -[AC_MSG_CHECKING([dynamic linker characteristics])
4701 -library_names_spec=
4702 -libname_spec='lib$name'
4703 -soname_spec=
4704 -shrext_cmds=".so"
4705 -postinstall_cmds=
4706 -postuninstall_cmds=
4707 -finish_cmds=
4708 -finish_eval=
4709 -shlibpath_var=
4710 -shlibpath_overrides_runpath=unknown
4711 -version_type=none
4712 -dynamic_linker="$host_os ld.so"
4713 -sys_lib_dlsearch_path_spec="/lib /usr/lib"
4714 -if test "$GCC" = yes; then
4715 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4716 - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4717 - # if the path contains ";" then we assume it to be the separator
4718 - # otherwise default to the standard path separator (i.e. ":") - it is
4719 - # assumed that no part of a normal pathname contains ";" but that should
4720 - # okay in the real world where ";" in dirpaths is itself problematic.
4721 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4722 - else
4723 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4724 - fi
4725 -else
4726 - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4727 -fi
4728 -need_lib_prefix=unknown
4729 -hardcode_into_libs=no
4730 +# Report which library types will actually be built
4731 +AC_MSG_CHECKING([if libtool supports shared libraries])
4732 +AC_MSG_RESULT([$can_build_shared])
4733
4734 -# when you set need_version to no, make sure it does not cause -set_version
4735 -# flags to be left without arguments
4736 -need_version=unknown
4737 +AC_MSG_CHECKING([whether to build shared libraries])
4738 +test "$can_build_shared" = "no" && enable_shared=no
4739
4740 +# On AIX, shared libraries and static libraries use the same namespace, and
4741 +# are all built from PIC.
4742 case $host_os in
4743 aix3*)
4744 - version_type=linux
4745 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4746 - shlibpath_var=LIBPATH
4747 -
4748 - # AIX 3 has no versioning support, so we append a major version to the name.
4749 - soname_spec='${libname}${release}${shared_ext}$major'
4750 + test "$enable_shared" = yes && enable_static=no
4751 + if test -n "$RANLIB"; then
4752 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
4753 + postinstall_cmds='$RANLIB $lib'
4754 + fi
4755 ;;
4756
4757 aix4* | aix5*)
4758 - version_type=linux
4759 - need_lib_prefix=no
4760 - need_version=no
4761 - hardcode_into_libs=yes
4762 - if test "$host_cpu" = ia64; then
4763 - # AIX 5 supports IA64
4764 - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4765 - shlibpath_var=LD_LIBRARY_PATH
4766 - else
4767 - # With GCC up to 2.95.x, collect2 would create an import file
4768 - # for dependence libraries. The import file would start with
4769 - # the line `#! .'. This would cause the generated library to
4770 - # depend on `.', always an invalid library. This was fixed in
4771 - # development snapshots of GCC prior to 3.0.
4772 - case $host_os in
4773 - aix4 | aix4.[[01]] | aix4.[[01]].*)
4774 - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4775 - echo ' yes '
4776 - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4777 - :
4778 - else
4779 - can_build_shared=no
4780 - fi
4781 - ;;
4782 - esac
4783 - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4784 - # soname into executable. Probably we can add versioning support to
4785 - # collect2, so additional links can be useful in future.
4786 - if test "$aix_use_runtimelinking" = yes; then
4787 - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4788 - # instead of lib<name>.a to let people know that these are not
4789 - # typical AIX shared libraries.
4790 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4791 - else
4792 - # We preserve .a as extension for shared libraries through AIX4.2
4793 - # and later when we are not doing run time linking.
4794 - library_names_spec='${libname}${release}.a $libname.a'
4795 - soname_spec='${libname}${release}${shared_ext}$major'
4796 - fi
4797 - shlibpath_var=LIBPATH
4798 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4799 + test "$enable_shared" = yes && enable_static=no
4800 fi
4801 - ;;
4802 -
4803 -amigaos*)
4804 - library_names_spec='$libname.ixlibrary $libname.a'
4805 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
4806 - 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'
4807 - ;;
4808 + ;;
4809 +esac
4810 +AC_MSG_RESULT([$enable_shared])
4811
4812 -beos*)
4813 - library_names_spec='${libname}${shared_ext}'
4814 - dynamic_linker="$host_os ld.so"
4815 - shlibpath_var=LIBRARY_PATH
4816 - ;;
4817 +AC_MSG_CHECKING([whether to build static libraries])
4818 +# Make sure either enable_shared or enable_static is yes.
4819 +test "$enable_shared" = yes || enable_static=yes
4820 +AC_MSG_RESULT([$enable_static])
4821
4822 -bsdi4*)
4823 - version_type=linux
4824 - need_version=no
4825 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
4826 - soname_spec='${libname}${release}${shared_ext}$major'
4827 - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4828 - shlibpath_var=LD_LIBRARY_PATH
4829 - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4830 - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4831 - # the default ld.so.conf also contains /usr/contrib/lib and
4832 - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4833 - # libtool to hard-code these into programs
4834 - ;;
4835 +AC_LIBTOOL_CONFIG($1)
4836
4837 -cygwin* | mingw* | pw32*)
4838 - version_type=windows
4839 - shrext_cmds=".dll"
4840 - need_version=no
4841 - need_lib_prefix=no
4842 +AC_LANG_POP
4843 +CC="$lt_save_CC"
4844 +])# AC_LIBTOOL_LANG_C_CONFIG
4845
4846 - case $GCC,$host_os in
4847 - yes,cygwin* | yes,mingw* | yes,pw32*)
4848 - library_names_spec='$libname.dll.a'
4849 - # DLL is installed to $(libdir)/../bin by postinstall_cmds
4850 - postinstall_cmds='base_file=`basename \${file}`~
4851 - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
4852 - dldir=$destdir/`dirname \$dlpath`~
4853 - test -d \$dldir || mkdir -p \$dldir~
4854 - $install_prog $dir/$dlname \$dldir/$dlname'
4855 - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
4856 - dlpath=$dir/\$dldll~
4857 - $rm \$dlpath'
4858 - shlibpath_overrides_runpath=yes
4859
4860 - case $host_os in
4861 - cygwin*)
4862 - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
4863 - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4864 - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
4865 - ;;
4866 - mingw*)
4867 - # MinGW DLLs use traditional 'lib' prefix
4868 - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
4869 - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4870 - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
4871 - # It is most probably a Windows format PATH printed by
4872 - # mingw gcc, but we are running on Cygwin. Gcc prints its search
4873 - # path with ; separators, and with drive letters. We can handle the
4874 - # drive letters (cygwin fileutils understands them), so leave them,
4875 - # especially as we might pass files found there to a mingw objdump,
4876 - # which wouldn't understand a cygwinified path. Ahh.
4877 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
4878 - else
4879 - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4880 - fi
4881 - ;;
4882 - pw32*)
4883 - # pw32 DLLs use 'pw' prefix rather than 'lib'
4884 - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
4885 - ;;
4886 - esac
4887 - ;;
4888 +# AC_LIBTOOL_LANG_CXX_CONFIG
4889 +# --------------------------
4890 +# Ensure that the configuration vars for the C compiler are
4891 +# suitably defined. Those variables are subsequently used by
4892 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4893 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4894 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4895 +[AC_LANG_PUSH(C++)
4896 +AC_REQUIRE([AC_PROG_CXX])
4897 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4898
4899 - *)
4900 - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
4901 - ;;
4902 - esac
4903 - dynamic_linker='Win32 ld.exe'
4904 - # FIXME: first we should search . and the directory the executable is in
4905 - shlibpath_var=PATH
4906 - ;;
4907 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4908 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4909 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
4910 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4911 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4912 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
4913 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4914 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4915 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4916 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4917 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4918 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4919 +_LT_AC_TAGVAR(module_cmds, $1)=
4920 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4921 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4922 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4923 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4924 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4925 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4926
4927 -darwin* | rhapsody*)
4928 - dynamic_linker="$host_os dyld"
4929 - version_type=darwin
4930 - need_lib_prefix=no
4931 - need_version=no
4932 - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
4933 - soname_spec='${libname}${release}${major}$shared_ext'
4934 - shlibpath_overrides_runpath=yes
4935 - shlibpath_var=DYLD_LIBRARY_PATH
4936 - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
4937 - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
4938 - if test "$GCC" = yes; then
4939 - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
4940 - else
4941 - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
4942 - fi
4943 - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
4944 - ;;
4945 +# Dependencies to place before and after the object being linked:
4946 +_LT_AC_TAGVAR(predep_objects, $1)=
4947 +_LT_AC_TAGVAR(postdep_objects, $1)=
4948 +_LT_AC_TAGVAR(predeps, $1)=
4949 +_LT_AC_TAGVAR(postdeps, $1)=
4950 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4951
4952 -dgux*)
4953 - version_type=linux
4954 - need_lib_prefix=no
4955 - need_version=no
4956 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
4957 - soname_spec='${libname}${release}${shared_ext}$major'
4958 - shlibpath_var=LD_LIBRARY_PATH
4959 - ;;
4960 +# Source file extension for C++ test sources.
4961 +ac_ext=cpp
4962
4963 -freebsd1*)
4964 - dynamic_linker=no
4965 - ;;
4966 +# Object file extension for compiled C++ test sources.
4967 +objext=o
4968 +_LT_AC_TAGVAR(objext, $1)=$objext
4969
4970 -kfreebsd*-gnu)
4971 - version_type=linux
4972 - need_lib_prefix=no
4973 - need_version=no
4974 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
4975 - soname_spec='${libname}${release}${shared_ext}$major'
4976 - shlibpath_var=LD_LIBRARY_PATH
4977 - shlibpath_overrides_runpath=no
4978 - hardcode_into_libs=yes
4979 - dynamic_linker='GNU ld.so'
4980 - ;;
4981 +# Code to be used in simple compile tests
4982 +lt_simple_compile_test_code="int some_variable = 0;\n"
4983
4984 -freebsd*)
4985 - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4986 - version_type=freebsd-$objformat
4987 - case $version_type in
4988 - freebsd-elf*)
4989 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
4990 - need_version=no
4991 - need_lib_prefix=no
4992 - ;;
4993 - freebsd-*)
4994 - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
4995 - need_version=yes
4996 - ;;
4997 - esac
4998 - shlibpath_var=LD_LIBRARY_PATH
4999 - case $host_os in
5000 - freebsd2*)
5001 - shlibpath_overrides_runpath=yes
5002 - ;;
5003 - freebsd3.[01]* | freebsdelf3.[01]*)
5004 - shlibpath_overrides_runpath=yes
5005 - hardcode_into_libs=yes
5006 - ;;
5007 - *) # from 3.2 on
5008 - shlibpath_overrides_runpath=no
5009 - hardcode_into_libs=yes
5010 - ;;
5011 - esac
5012 - ;;
5013 +# Code to be used in simple link tests
5014 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
5015
5016 -gnu*)
5017 - version_type=linux
5018 - need_lib_prefix=no
5019 - need_version=no
5020 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
5021 - soname_spec='${libname}${release}${shared_ext}$major'
5022 - shlibpath_var=LD_LIBRARY_PATH
5023 - hardcode_into_libs=yes
5024 - ;;
5025 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5026 +_LT_AC_SYS_COMPILER
5027
5028 -hpux9* | hpux10* | hpux11*)
5029 - # Give a soname corresponding to the major version so that dld.sl refuses to
5030 - # link against other versions.
5031 - version_type=sunos
5032 - need_lib_prefix=no
5033 - need_version=no
5034 - case "$host_cpu" in
5035 - ia64*)
5036 - shrext_cmds='.so'
5037 - hardcode_into_libs=yes
5038 - dynamic_linker="$host_os dld.so"
5039 - shlibpath_var=LD_LIBRARY_PATH
5040 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5041 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5042 - soname_spec='${libname}${release}${shared_ext}$major'
5043 - if test "X$HPUX_IA64_MODE" = X32; then
5044 - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5045 - else
5046 - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5047 - fi
5048 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5049 - ;;
5050 - hppa*64*)
5051 - shrext_cmds='.sl'
5052 - hardcode_into_libs=yes
5053 - dynamic_linker="$host_os dld.sl"
5054 - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
5055 - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5056 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5057 - soname_spec='${libname}${release}${shared_ext}$major'
5058 - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5059 - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5060 - ;;
5061 - *)
5062 - shrext_cmds='.sl'
5063 - dynamic_linker="$host_os dld.sl"
5064 - shlibpath_var=SHLIB_PATH
5065 - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5066 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5067 - soname_spec='${libname}${release}${shared_ext}$major'
5068 - ;;
5069 - esac
5070 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
5071 - postinstall_cmds='chmod 555 $lib'
5072 - ;;
5073 +# save warnings/boilerplate of simple test code
5074 +_LT_COMPILER_BOILERPLATE
5075 +_LT_LINKER_BOILERPLATE
5076
5077 -irix5* | irix6* | nonstopux*)
5078 - case $host_os in
5079 - nonstopux*) version_type=nonstopux ;;
5080 - *)
5081 - if test "$lt_cv_prog_gnu_ld" = yes; then
5082 - version_type=linux
5083 - else
5084 - version_type=irix
5085 - fi ;;
5086 - esac
5087 - need_lib_prefix=no
5088 - need_version=no
5089 - soname_spec='${libname}${release}${shared_ext}$major'
5090 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5091 - case $host_os in
5092 - irix5* | nonstopux*)
5093 - libsuff= shlibsuff=
5094 - ;;
5095 - *)
5096 - case $LD in # libtool.m4 will add one of these switches to LD
5097 - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5098 - libsuff= shlibsuff= libmagic=32-bit;;
5099 - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5100 - libsuff=32 shlibsuff=N32 libmagic=N32;;
5101 - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5102 - libsuff=64 shlibsuff=64 libmagic=64-bit;;
5103 - *) libsuff= shlibsuff= libmagic=never-match;;
5104 - esac
5105 - ;;
5106 - esac
5107 - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5108 - shlibpath_overrides_runpath=no
5109 - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5110 - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5111 - hardcode_into_libs=yes
5112 - ;;
5113 +# Allow CC to be a program name with arguments.
5114 +lt_save_CC=$CC
5115 +lt_save_LD=$LD
5116 +lt_save_GCC=$GCC
5117 +GCC=$GXX
5118 +lt_save_with_gnu_ld=$with_gnu_ld
5119 +lt_save_path_LD=$lt_cv_path_LD
5120 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5121 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5122 +else
5123 + $as_unset lt_cv_prog_gnu_ld
5124 +fi
5125 +if test -n "${lt_cv_path_LDCXX+set}"; then
5126 + lt_cv_path_LD=$lt_cv_path_LDCXX
5127 +else
5128 + $as_unset lt_cv_path_LD
5129 +fi
5130 +test -z "${LDCXX+set}" || LD=$LDCXX
5131 +CC=${CXX-"c++"}
5132 +compiler=$CC
5133 +_LT_AC_TAGVAR(compiler, $1)=$CC
5134 +_LT_CC_BASENAME([$compiler])
5135
5136 -# No shared lib support for Linux oldld, aout, or coff.
5137 -linux*oldld* | linux*aout* | linux*coff*)
5138 - dynamic_linker=no
5139 - ;;
5140 +# We don't want -fno-exception wen compiling C++ code, so set the
5141 +# no_builtin_flag separately
5142 +if test "$GXX" = yes; then
5143 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5144 +else
5145 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5146 +fi
5147
5148 -# This must be Linux ELF.
5149 -linux*)
5150 - version_type=linux
5151 - need_lib_prefix=no
5152 - need_version=no
5153 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5154 - soname_spec='${libname}${release}${shared_ext}$major'
5155 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5156 - shlibpath_var=LD_LIBRARY_PATH
5157 - shlibpath_overrides_runpath=no
5158 - # This implies no fast_install, which is unacceptable.
5159 - # Some rework will be needed to allow for fast_install
5160 - # before this can be enabled.
5161 - hardcode_into_libs=yes
5162 +if test "$GXX" = yes; then
5163 + # Set up default GNU C++ configuration
5164
5165 - # Append ld.so.conf contents to the search path
5166 - if test -f /etc/ld.so.conf; then
5167 - lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
5168 - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
5169 - fi
5170 + AC_PROG_LD
5171
5172 - # We used to test for /lib/ld.so.1 and disable shared libraries on
5173 - # powerpc, because MkLinux only supported shared libraries with the
5174 - # GNU dynamic linker. Since this was broken with cross compilers,
5175 - # most powerpc-linux boxes support dynamic linking these days and
5176 - # people can always --disable-shared, the test was removed, and we
5177 - # assume the GNU/Linux dynamic linker is in use.
5178 - dynamic_linker='GNU/Linux ld.so'
5179 - ;;
5180 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
5181 + # archiving commands below assume that GNU ld is being used.
5182 + if test "$with_gnu_ld" = yes; then
5183 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5184 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5185
5186 -netbsdelf*-gnu)
5187 - version_type=linux
5188 - need_lib_prefix=no
5189 - need_version=no
5190 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5191 - soname_spec='${libname}${release}${shared_ext}$major'
5192 - shlibpath_var=LD_LIBRARY_PATH
5193 - shlibpath_overrides_runpath=no
5194 - hardcode_into_libs=yes
5195 - dynamic_linker='NetBSD ld.elf_so'
5196 - ;;
5197 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5198 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5199
5200 -knetbsd*-gnu)
5201 - version_type=linux
5202 - need_lib_prefix=no
5203 - need_version=no
5204 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5205 - soname_spec='${libname}${release}${shared_ext}$major'
5206 - shlibpath_var=LD_LIBRARY_PATH
5207 - shlibpath_overrides_runpath=no
5208 - hardcode_into_libs=yes
5209 - dynamic_linker='GNU ld.so'
5210 - ;;
5211 + # If archive_cmds runs LD, not CC, wlarc should be empty
5212 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5213 + # investigate it a little bit more. (MM)
5214 + wlarc='${wl}'
5215
5216 -netbsd*)
5217 - version_type=sunos
5218 - need_lib_prefix=no
5219 - need_version=no
5220 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5221 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5222 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5223 - dynamic_linker='NetBSD (a.out) ld.so'
5224 + # ancient GNU ld didn't support --whole-archive et. al.
5225 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
5226 + grep 'no-whole-archive' > /dev/null; then
5227 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5228 + else
5229 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5230 + fi
5231 else
5232 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
5233 - soname_spec='${libname}${release}${shared_ext}$major'
5234 - dynamic_linker='NetBSD ld.elf_so'
5235 + with_gnu_ld=no
5236 + wlarc=
5237 +
5238 + # A generic and very simple default shared library creation
5239 + # command for GNU C++ for the case where it uses the native
5240 + # linker, instead of GNU ld. If possible, this setting should
5241 + # overridden to take advantage of the native linker features on
5242 + # the platform it is being used on.
5243 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5244 fi
5245 - shlibpath_var=LD_LIBRARY_PATH
5246 - shlibpath_overrides_runpath=yes
5247 - hardcode_into_libs=yes
5248 - ;;
5249
5250 -newsos6)
5251 - version_type=linux
5252 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5253 - shlibpath_var=LD_LIBRARY_PATH
5254 - shlibpath_overrides_runpath=yes
5255 - ;;
5256 + # Commands to make compiler produce verbose output that lists
5257 + # what "hidden" libraries, object files and flags are used when
5258 + # linking a shared library.
5259 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5260
5261 -nto-qnx*)
5262 - version_type=linux
5263 - need_lib_prefix=no
5264 - need_version=no
5265 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5266 - soname_spec='${libname}${release}${shared_ext}$major'
5267 - shlibpath_var=LD_LIBRARY_PATH
5268 - shlibpath_overrides_runpath=yes
5269 - ;;
5270 +else
5271 + GXX=no
5272 + with_gnu_ld=no
5273 + wlarc=
5274 +fi
5275
5276 -openbsd*)
5277 - version_type=sunos
5278 - need_lib_prefix=no
5279 - need_version=yes
5280 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5281 - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5282 - shlibpath_var=LD_LIBRARY_PATH
5283 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5284 - case $host_os in
5285 - openbsd2.[[89]] | openbsd2.[[89]].*)
5286 - shlibpath_overrides_runpath=no
5287 - ;;
5288 - *)
5289 - shlibpath_overrides_runpath=yes
5290 +# PORTME: fill in a description of your system's C++ link characteristics
5291 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5292 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5293 +case $host_os in
5294 + aix3*)
5295 + # FIXME: insert proper C++ library support
5296 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5297 + ;;
5298 + aix4* | aix5*)
5299 + if test "$host_cpu" = ia64; then
5300 + # On IA64, the linker does run time linking by default, so we don't
5301 + # have to do anything special.
5302 + aix_use_runtimelinking=no
5303 + exp_sym_flag='-Bexport'
5304 + no_entry_flag=""
5305 + else
5306 + aix_use_runtimelinking=no
5307 +
5308 + # Test if we are trying to use run time linking or normal
5309 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5310 + # need to do runtime linking.
5311 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5312 + for ld_flag in $LDFLAGS; do
5313 + case $ld_flag in
5314 + *-brtl*)
5315 + aix_use_runtimelinking=yes
5316 + break
5317 + ;;
5318 + esac
5319 + done
5320 ;;
5321 esac
5322 - else
5323 - shlibpath_overrides_runpath=yes
5324 - fi
5325 - ;;
5326 -
5327 -os2*)
5328 - libname_spec='$name'
5329 - shrext_cmds=".dll"
5330 - need_lib_prefix=no
5331 - library_names_spec='$libname${shared_ext} $libname.a'
5332 - dynamic_linker='OS/2 ld.exe'
5333 - shlibpath_var=LIBPATH
5334 - ;;
5335
5336 -osf3* | osf4* | osf5*)
5337 - version_type=osf
5338 - need_lib_prefix=no
5339 - need_version=no
5340 - soname_spec='${libname}${release}${shared_ext}$major'
5341 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5342 - shlibpath_var=LD_LIBRARY_PATH
5343 - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5344 - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5345 - ;;
5346 + exp_sym_flag='-bexport'
5347 + no_entry_flag='-bnoentry'
5348 + fi
5349
5350 -sco3.2v5*)
5351 - version_type=osf
5352 - soname_spec='${libname}${release}${shared_ext}$major'
5353 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5354 - shlibpath_var=LD_LIBRARY_PATH
5355 - ;;
5356 + # When large executables or shared objects are built, AIX ld can
5357 + # have problems creating the table of contents. If linking a library
5358 + # or program results in "error TOC overflow" add -mminimal-toc to
5359 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5360 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5361
5362 -solaris*)
5363 - version_type=linux
5364 - need_lib_prefix=no
5365 - need_version=no
5366 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5367 - soname_spec='${libname}${release}${shared_ext}$major'
5368 - shlibpath_var=LD_LIBRARY_PATH
5369 - shlibpath_overrides_runpath=yes
5370 - hardcode_into_libs=yes
5371 - # ldd complains unless libraries are executable
5372 - postinstall_cmds='chmod +x $lib'
5373 - ;;
5374 + _LT_AC_TAGVAR(archive_cmds, $1)=''
5375 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5376 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5377 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5378
5379 -sunos4*)
5380 - version_type=sunos
5381 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5382 - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5383 - shlibpath_var=LD_LIBRARY_PATH
5384 - shlibpath_overrides_runpath=yes
5385 - if test "$with_gnu_ld" = yes; then
5386 - need_lib_prefix=no
5387 - fi
5388 - need_version=yes
5389 - ;;
5390 + if test "$GXX" = yes; then
5391 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
5392 + # We only want to do this on AIX 4.2 and lower, the check
5393 + # below for broken collect2 doesn't work under 4.3+
5394 + collect2name=`${CC} -print-prog-name=collect2`
5395 + if test -f "$collect2name" && \
5396 + strings "$collect2name" | grep resolve_lib_name >/dev/null
5397 + then
5398 + # We have reworked collect2
5399 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5400 + else
5401 + # We have old collect2
5402 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5403 + # It fails to find uninstalled libraries when the uninstalled
5404 + # path is not listed in the libpath. Setting hardcode_minus_L
5405 + # to unsupported forces relinking
5406 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5407 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5408 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5409 + fi
5410 + ;;
5411 + esac
5412 + shared_flag='-shared'
5413 + if test "$aix_use_runtimelinking" = yes; then
5414 + shared_flag="$shared_flag "'${wl}-G'
5415 + fi
5416 + else
5417 + # not using gcc
5418 + if test "$host_cpu" = ia64; then
5419 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5420 + # chokes on -Wl,-G. The following line is correct:
5421 + shared_flag='-G'
5422 + else
5423 + if test "$aix_use_runtimelinking" = yes; then
5424 + shared_flag='${wl}-G'
5425 + else
5426 + shared_flag='${wl}-bM:SRE'
5427 + fi
5428 + fi
5429 + fi
5430
5431 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5432 - version_type=linux
5433 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5434 - soname_spec='${libname}${release}${shared_ext}$major'
5435 - shlibpath_var=LD_LIBRARY_PATH
5436 - case $host_vendor in
5437 - sni)
5438 - shlibpath_overrides_runpath=no
5439 - need_lib_prefix=no
5440 - export_dynamic_flag_spec='${wl}-Blargedynsym'
5441 - runpath_var=LD_RUN_PATH
5442 - ;;
5443 - siemens)
5444 - need_lib_prefix=no
5445 - ;;
5446 - motorola)
5447 - need_lib_prefix=no
5448 - need_version=no
5449 - shlibpath_overrides_runpath=no
5450 - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5451 - ;;
5452 - esac
5453 - ;;
5454 + # It seems that -bexpall does not export symbols beginning with
5455 + # underscore (_), so it is better to generate a list of symbols to export.
5456 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5457 + if test "$aix_use_runtimelinking" = yes; then
5458 + # Warning - without using the other runtime loading flags (-brtl),
5459 + # -berok will link without error, but may produce a broken library.
5460 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5461 + # Determine the default libpath from the value encoded in an empty executable.
5462 + _LT_AC_SYS_LIBPATH_AIX
5463 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5464
5465 -sysv4*MP*)
5466 - if test -d /usr/nec ;then
5467 - version_type=linux
5468 - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5469 - soname_spec='$libname${shared_ext}.$major'
5470 - shlibpath_var=LD_LIBRARY_PATH
5471 - fi
5472 - ;;
5473 -
5474 -uts4*)
5475 - version_type=linux
5476 - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5477 - soname_spec='${libname}${release}${shared_ext}$major'
5478 - shlibpath_var=LD_LIBRARY_PATH
5479 - ;;
5480 -
5481 -*)
5482 - dynamic_linker=no
5483 - ;;
5484 -esac
5485 -AC_MSG_RESULT([$dynamic_linker])
5486 -test "$dynamic_linker" = no && can_build_shared=no
5487 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
5488 -
5489 -
5490 -# _LT_AC_TAGCONFIG
5491 -# ----------------
5492 -AC_DEFUN([_LT_AC_TAGCONFIG],
5493 -[AC_ARG_WITH([tags],
5494 - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
5495 - [include additional configurations @<:@automatic@:>@])],
5496 - [tagnames="$withval"])
5497 -
5498 -if test -f "$ltmain" && test -n "$tagnames"; then
5499 - if test ! -f "${ofile}"; then
5500 - AC_MSG_WARN([output file `$ofile' does not exist])
5501 - fi
5502 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5503 + else
5504 + if test "$host_cpu" = ia64; then
5505 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5506 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5507 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5508 + else
5509 + # Determine the default libpath from the value encoded in an empty executable.
5510 + _LT_AC_SYS_LIBPATH_AIX
5511 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5512 + # Warning - without using the other run time loading flags,
5513 + # -berok will link without error, but may produce a broken library.
5514 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5515 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5516 + # Exported symbols can be pulled into shared objects from archives
5517 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5518 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5519 + # This is similar to how AIX traditionally builds its shared libraries.
5520 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
5521 + fi
5522 + fi
5523 + ;;
5524
5525 - if test -z "$LTCC"; then
5526 - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
5527 - if test -z "$LTCC"; then
5528 - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
5529 + beos*)
5530 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5531 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5532 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5533 + # support --undefined. This deserves some investigation. FIXME
5534 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5535 else
5536 - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
5537 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5538 fi
5539 - fi
5540 -
5541 - # Extract list of available tagged configurations in $ofile.
5542 - # Note that this assumes the entire list is on one line.
5543 - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
5544 + ;;
5545
5546 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5547 - for tagname in $tagnames; do
5548 - IFS="$lt_save_ifs"
5549 - # Check whether tagname contains only valid characters
5550 - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
5551 - "") ;;
5552 - *) AC_MSG_ERROR([invalid tag name: $tagname])
5553 + chorus*)
5554 + case $cc_basename in
5555 + *)
5556 + # FIXME: insert proper C++ library support
5557 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5558 ;;
5559 esac
5560 + ;;
5561
5562 - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
5563 - then
5564 - AC_MSG_ERROR([tag name \"$tagname\" already exists])
5565 + cygwin* | mingw* | pw32*)
5566 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5567 + # as there is no search path for DLLs.
5568 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5569 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5570 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
5571 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5572 +
5573 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5574 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5575 + # If the export-symbols file already is a .def file (1st line
5576 + # is EXPORTS), use it as is; otherwise, prepend...
5577 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5578 + cp $export_symbols $output_objdir/$soname.def;
5579 + else
5580 + echo EXPORTS > $output_objdir/$soname.def;
5581 + cat $export_symbols >> $output_objdir/$soname.def;
5582 + fi~
5583 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5584 + else
5585 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5586 fi
5587 + ;;
5588 + darwin* | rhapsody*)
5589 + case $host_os in
5590 + rhapsody* | darwin1.[[012]])
5591 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5592 + ;;
5593 + *) # Darwin 1.3 on
5594 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5595 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5596 + else
5597 + case ${MACOSX_DEPLOYMENT_TARGET} in
5598 + 10.[[012]])
5599 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5600 + ;;
5601 + 10.*)
5602 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5603 + ;;
5604 + esac
5605 + fi
5606 + ;;
5607 + esac
5608 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5609 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5610 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5611 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5612 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5613 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5614
5615 - # Update the list of available tags.
5616 - if test -n "$tagname"; then
5617 - echo appending configuration tag \"$tagname\" to $ofile
5618 + if test "$GXX" = yes ; then
5619 + lt_int_apple_cc_single_mod=no
5620 + output_verbose_link_cmd='echo'
5621 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
5622 + lt_int_apple_cc_single_mod=yes
5623 + fi
5624 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5625 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5626 + else
5627 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5628 + fi
5629 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5630 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5631 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
5632 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5633 + else
5634 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5635 + fi
5636 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5637 + else
5638 + case $cc_basename in
5639 + xlc*)
5640 + output_verbose_link_cmd='echo'
5641 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5642 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5643 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5644 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5645 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5646 + ;;
5647 + *)
5648 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5649 + ;;
5650 + esac
5651 + fi
5652 + ;;
5653
5654 - case $tagname in
5655 - CXX)
5656 - if test -n "$CXX" && test "X$CXX" != "Xno"; then
5657 - AC_LIBTOOL_LANG_CXX_CONFIG
5658 - else
5659 - tagname=""
5660 - fi
5661 + dgux*)
5662 + case $cc_basename in
5663 + ec++*)
5664 + # FIXME: insert proper C++ library support
5665 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5666 ;;
5667 -
5668 - F77)
5669 - if test -n "$F77" && test "X$F77" != "Xno"; then
5670 - AC_LIBTOOL_LANG_F77_CONFIG
5671 - else
5672 - tagname=""
5673 - fi
5674 + ghcx*)
5675 + # Green Hills C++ Compiler
5676 + # FIXME: insert proper C++ library support
5677 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5678 ;;
5679 -
5680 - GCJ)
5681 - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
5682 - AC_LIBTOOL_LANG_GCJ_CONFIG
5683 - else
5684 - tagname=""
5685 - fi
5686 + *)
5687 + # FIXME: insert proper C++ library support
5688 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5689 ;;
5690 + esac
5691 + ;;
5692 + freebsd[[12]]*)
5693 + # C++ shared libraries reported to be fairly broken before switch to ELF
5694 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5695 + ;;
5696 + freebsd-elf*)
5697 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5698 + ;;
5699 + freebsd* | dragonfly*)
5700 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5701 + # conventions
5702 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5703 + ;;
5704 + gnu*)
5705 + ;;
5706 + hpux9*)
5707 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5708 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5709 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5710 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5711 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5712 + # but as the default
5713 + # location of the library.
5714
5715 - RC)
5716 - AC_LIBTOOL_LANG_RC_CONFIG
5717 - ;;
5718 + case $cc_basename in
5719 + CC*)
5720 + # FIXME: insert proper C++ library support
5721 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5722 + ;;
5723 + aCC*)
5724 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5725 + # Commands to make compiler produce verbose output that lists
5726 + # what "hidden" libraries, object files and flags are used when
5727 + # linking a shared library.
5728 + #
5729 + # There doesn't appear to be a way to prevent this compiler from
5730 + # explicitly linking system object files so we need to strip them
5731 + # from the output so that they don't get included in the library
5732 + # dependencies.
5733 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5734 + ;;
5735 + *)
5736 + if test "$GXX" = yes; then
5737 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5738 + else
5739 + # FIXME: insert proper C++ library support
5740 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5741 + fi
5742 + ;;
5743 + esac
5744 + ;;
5745 + hpux10*|hpux11*)
5746 + if test $with_gnu_ld = no; then
5747 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5748 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5749
5750 + case $host_cpu in
5751 + hppa*64*|ia64*)
5752 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5753 + ;;
5754 *)
5755 - AC_MSG_ERROR([Unsupported tag name: $tagname])
5756 - ;;
5757 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5758 + ;;
5759 esac
5760 -
5761 - # Append the new tag name to the list of available tags.
5762 - if test -n "$tagname" ; then
5763 - available_tags="$available_tags $tagname"
5764 - fi
5765 fi
5766 - done
5767 - IFS="$lt_save_ifs"
5768 -
5769 - # Now substitute the updated list of available tags.
5770 - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
5771 - mv "${ofile}T" "$ofile"
5772 - chmod +x "$ofile"
5773 - else
5774 - rm -f "${ofile}T"
5775 - AC_MSG_ERROR([unable to update list of available tagged configurations.])
5776 - fi
5777 -fi
5778 -])# _LT_AC_TAGCONFIG
5779 -
5780 -
5781 -# AC_LIBTOOL_DLOPEN
5782 -# -----------------
5783 -# enable checks for dlopen support
5784 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
5785 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
5786 -])# AC_LIBTOOL_DLOPEN
5787 -
5788 -
5789 -# AC_LIBTOOL_WIN32_DLL
5790 -# --------------------
5791 -# declare package support for building win32 dll's
5792 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
5793 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
5794 -])# AC_LIBTOOL_WIN32_DLL
5795 + case $host_cpu in
5796 + hppa*64*|ia64*)
5797 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5798 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5799 + ;;
5800 + *)
5801 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5802 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5803 + # but as the default
5804 + # location of the library.
5805 + ;;
5806 + esac
5807
5808 + case $cc_basename in
5809 + CC*)
5810 + # FIXME: insert proper C++ library support
5811 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5812 + ;;
5813 + aCC*)
5814 + case $host_cpu in
5815 + hppa*64*)
5816 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5817 + ;;
5818 + ia64*)
5819 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5820 + ;;
5821 + *)
5822 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5823 + ;;
5824 + esac
5825 + # Commands to make compiler produce verbose output that lists
5826 + # what "hidden" libraries, object files and flags are used when
5827 + # linking a shared library.
5828 + #
5829 + # There doesn't appear to be a way to prevent this compiler from
5830 + # explicitly linking system object files so we need to strip them
5831 + # from the output so that they don't get included in the library
5832 + # dependencies.
5833 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5834 + ;;
5835 + *)
5836 + if test "$GXX" = yes; then
5837 + if test $with_gnu_ld = no; then
5838 + case $host_cpu in
5839 + hppa*64*)
5840 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5841 + ;;
5842 + ia64*)
5843 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5844 + ;;
5845 + *)
5846 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5847 + ;;
5848 + esac
5849 + fi
5850 + else
5851 + # FIXME: insert proper C++ library support
5852 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5853 + fi
5854 + ;;
5855 + esac
5856 + ;;
5857 + interix3*)
5858 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
5859 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5860 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5861 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5862 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5863 + # Instead, shared libraries are loaded at an image base (0x10000000 by
5864 + # default) and relocated if they conflict, which is a slow very memory
5865 + # consuming and fragmenting process. To avoid this, we pick a random,
5866 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5867 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5868 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5869 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
5870 + ;;
5871 + irix5* | irix6*)
5872 + case $cc_basename in
5873 + CC*)
5874 + # SGI C++
5875 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5876
5877 -# AC_ENABLE_SHARED([DEFAULT])
5878 -# ---------------------------
5879 -# implement the --enable-shared flag
5880 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
5881 -AC_DEFUN([AC_ENABLE_SHARED],
5882 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
5883 -AC_ARG_ENABLE([shared],
5884 - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
5885 - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
5886 - [p=${PACKAGE-default}
5887 - case $enableval in
5888 - yes) enable_shared=yes ;;
5889 - no) enable_shared=no ;;
5890 - *)
5891 - enable_shared=no
5892 - # Look at the argument we got. We use all the common list separators.
5893 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5894 - for pkg in $enableval; do
5895 - IFS="$lt_save_ifs"
5896 - if test "X$pkg" = "X$p"; then
5897 - enable_shared=yes
5898 + # Archives containing C++ object files must be created using
5899 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5900 + # necessary to make sure instantiated templates are included
5901 + # in the archive.
5902 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5903 + ;;
5904 + *)
5905 + if test "$GXX" = yes; then
5906 + if test "$with_gnu_ld" = no; then
5907 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5908 + else
5909 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
5910 + fi
5911 fi
5912 - done
5913 - IFS="$lt_save_ifs"
5914 - ;;
5915 - esac],
5916 - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
5917 -])# AC_ENABLE_SHARED
5918 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5919 + ;;
5920 + esac
5921 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5922 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5923 + ;;
5924 + linux* | k*bsd*-gnu)
5925 + case $cc_basename in
5926 + KCC*)
5927 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5928
5929 + # KCC will only create a shared library if the output file
5930 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5931 + # to its proper name (with version) after linking.
5932 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5933 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5934 + # Commands to make compiler produce verbose output that lists
5935 + # what "hidden" libraries, object files and flags are used when
5936 + # linking a shared library.
5937 + #
5938 + # There doesn't appear to be a way to prevent this compiler from
5939 + # explicitly linking system object files so we need to strip them
5940 + # from the output so that they don't get included in the library
5941 + # dependencies.
5942 + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5943
5944 -# AC_DISABLE_SHARED
5945 -# -----------------
5946 -#- set the default shared flag to --disable-shared
5947 -AC_DEFUN([AC_DISABLE_SHARED],
5948 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
5949 -AC_ENABLE_SHARED(no)
5950 -])# AC_DISABLE_SHARED
5951 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5952 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5953
5954 + # Archives containing C++ object files must be created using
5955 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5956 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5957 + ;;
5958 + icpc*)
5959 + # Intel C++
5960 + with_gnu_ld=yes
5961 + # version 8.0 and above of icpc choke on multiply defined symbols
5962 + # if we add $predep_objects and $postdep_objects, however 7.1 and
5963 + # earlier do not add the objects themselves.
5964 + case `$CC -V 2>&1` in
5965 + *"Version 7."*)
5966 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5967 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5968 + ;;
5969 + *) # Version 8.0 or newer
5970 + tmp_idyn=
5971 + case $host_cpu in
5972 + ia64*) tmp_idyn=' -i_dynamic';;
5973 + esac
5974 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5975 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5976 + ;;
5977 + esac
5978 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5979 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5980 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5981 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5982 + ;;
5983 + pgCC*)
5984 + # Portland Group C++ compiler
5985 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5986 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5987
5988 -# AC_ENABLE_STATIC([DEFAULT])
5989 -# ---------------------------
5990 -# implement the --enable-static flag
5991 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
5992 -AC_DEFUN([AC_ENABLE_STATIC],
5993 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
5994 -AC_ARG_ENABLE([static],
5995 - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
5996 - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
5997 - [p=${PACKAGE-default}
5998 - case $enableval in
5999 - yes) enable_static=yes ;;
6000 - no) enable_static=no ;;
6001 - *)
6002 - enable_static=no
6003 - # Look at the argument we got. We use all the common list separators.
6004 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6005 - for pkg in $enableval; do
6006 - IFS="$lt_save_ifs"
6007 - if test "X$pkg" = "X$p"; then
6008 - enable_static=yes
6009 - fi
6010 - done
6011 - IFS="$lt_save_ifs"
6012 - ;;
6013 - esac],
6014 - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
6015 -])# AC_ENABLE_STATIC
6016 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6017 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6018 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6019 + ;;
6020 + cxx*)
6021 + # Compaq C++
6022 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6023 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
6024
6025 + runpath_var=LD_RUN_PATH
6026 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6027 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6028
6029 -# AC_DISABLE_STATIC
6030 -# -----------------
6031 -# set the default static flag to --disable-static
6032 -AC_DEFUN([AC_DISABLE_STATIC],
6033 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
6034 -AC_ENABLE_STATIC(no)
6035 -])# AC_DISABLE_STATIC
6036 + # Commands to make compiler produce verbose output that lists
6037 + # what "hidden" libraries, object files and flags are used when
6038 + # linking a shared library.
6039 + #
6040 + # There doesn't appear to be a way to prevent this compiler from
6041 + # explicitly linking system object files so we need to strip them
6042 + # from the output so that they don't get included in the library
6043 + # dependencies.
6044 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6045 + ;;
6046 + esac
6047 + ;;
6048 + lynxos*)
6049 + # FIXME: insert proper C++ library support
6050 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6051 + ;;
6052 + m88k*)
6053 + # FIXME: insert proper C++ library support
6054 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6055 + ;;
6056 + mvs*)
6057 + case $cc_basename in
6058 + cxx*)
6059 + # FIXME: insert proper C++ library support
6060 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6061 + ;;
6062 + *)
6063 + # FIXME: insert proper C++ library support
6064 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6065 + ;;
6066 + esac
6067 + ;;
6068 + netbsd* | netbsdelf*-gnu)
6069 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6070 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6071 + wlarc=
6072 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6073 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6074 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6075 + fi
6076 + # Workaround some broken pre-1.5 toolchains
6077 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6078 + ;;
6079 + openbsd2*)
6080 + # C++ shared libraries are fairly broken
6081 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6082 + ;;
6083 + openbsd*)
6084 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6085 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6086 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6087 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6088 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6089 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6090 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6091 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6092 + fi
6093 + output_verbose_link_cmd='echo'
6094 + ;;
6095 + osf3*)
6096 + case $cc_basename in
6097 + KCC*)
6098 + # Kuck and Associates, Inc. (KAI) C++ Compiler
6099
6100 + # KCC will only create a shared library if the output file
6101 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
6102 + # to its proper name (with version) after linking.
6103 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6104
6105 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
6106 -# ---------------------------------
6107 -# implement the --enable-fast-install flag
6108 -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
6109 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
6110 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
6111 -AC_ARG_ENABLE([fast-install],
6112 - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
6113 - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
6114 - [p=${PACKAGE-default}
6115 - case $enableval in
6116 - yes) enable_fast_install=yes ;;
6117 - no) enable_fast_install=no ;;
6118 - *)
6119 - enable_fast_install=no
6120 - # Look at the argument we got. We use all the common list separators.
6121 - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6122 - for pkg in $enableval; do
6123 - IFS="$lt_save_ifs"
6124 - if test "X$pkg" = "X$p"; then
6125 - enable_fast_install=yes
6126 - fi
6127 - done
6128 - IFS="$lt_save_ifs"
6129 - ;;
6130 - esac],
6131 - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
6132 -])# AC_ENABLE_FAST_INSTALL
6133 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6134 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6135
6136 + # Archives containing C++ object files must be created using
6137 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6138 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6139
6140 -# AC_DISABLE_FAST_INSTALL
6141 -# -----------------------
6142 -# set the default to --disable-fast-install
6143 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
6144 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
6145 -AC_ENABLE_FAST_INSTALL(no)
6146 -])# AC_DISABLE_FAST_INSTALL
6147 + ;;
6148 + RCC*)
6149 + # Rational C++ 2.4.1
6150 + # FIXME: insert proper C++ library support
6151 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6152 + ;;
6153 + cxx*)
6154 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6155 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6156
6157 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6158 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6159
6160 -# AC_LIBTOOL_PICMODE([MODE])
6161 -# --------------------------
6162 -# implement the --with-pic flag
6163 -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
6164 -AC_DEFUN([AC_LIBTOOL_PICMODE],
6165 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
6166 -pic_mode=ifelse($#,1,$1,default)
6167 -])# AC_LIBTOOL_PICMODE
6168 + # Commands to make compiler produce verbose output that lists
6169 + # what "hidden" libraries, object files and flags are used when
6170 + # linking a shared library.
6171 + #
6172 + # There doesn't appear to be a way to prevent this compiler from
6173 + # explicitly linking system object files so we need to strip them
6174 + # from the output so that they don't get included in the library
6175 + # dependencies.
6176 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6177 + ;;
6178 + *)
6179 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6180 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6181 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6182
6183 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6184 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6185
6186 -# AC_PROG_EGREP
6187 -# -------------
6188 -# This is predefined starting with Autoconf 2.54, so this conditional
6189 -# definition can be removed once we require Autoconf 2.54 or later.
6190 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
6191 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
6192 - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6193 - then ac_cv_prog_egrep='grep -E'
6194 - else ac_cv_prog_egrep='egrep'
6195 - fi])
6196 - EGREP=$ac_cv_prog_egrep
6197 - AC_SUBST([EGREP])
6198 -])])
6199 + # Commands to make compiler produce verbose output that lists
6200 + # what "hidden" libraries, object files and flags are used when
6201 + # linking a shared library.
6202 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6203
6204 + else
6205 + # FIXME: insert proper C++ library support
6206 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6207 + fi
6208 + ;;
6209 + esac
6210 + ;;
6211 + osf4* | osf5*)
6212 + case $cc_basename in
6213 + KCC*)
6214 + # Kuck and Associates, Inc. (KAI) C++ Compiler
6215
6216 -# AC_PATH_TOOL_PREFIX
6217 -# -------------------
6218 -# find a file program which can recognise shared library
6219 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
6220 -[AC_REQUIRE([AC_PROG_EGREP])dnl
6221 -AC_MSG_CHECKING([for $1])
6222 -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
6223 -[case $MAGIC_CMD in
6224 -[[\\/*] | ?:[\\/]*])
6225 - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6226 - ;;
6227 -*)
6228 - lt_save_MAGIC_CMD="$MAGIC_CMD"
6229 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6230 -dnl $ac_dummy forces splitting on constant user-supplied paths.
6231 -dnl POSIX.2 word splitting is done only on the output of word expansions,
6232 -dnl not every word. This closes a longstanding sh security hole.
6233 - ac_dummy="ifelse([$2], , $PATH, [$2])"
6234 - for ac_dir in $ac_dummy; do
6235 - IFS="$lt_save_ifs"
6236 - test -z "$ac_dir" && ac_dir=.
6237 - if test -f $ac_dir/$1; then
6238 - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
6239 - if test -n "$file_magic_test_file"; then
6240 - case $deplibs_check_method in
6241 - "file_magic "*)
6242 - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6243 - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6244 - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6245 - $EGREP "$file_magic_regex" > /dev/null; then
6246 - :
6247 - else
6248 - cat <<EOF 1>&2
6249 + # KCC will only create a shared library if the output file
6250 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
6251 + # to its proper name (with version) after linking.
6252 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6253
6254 -*** Warning: the command libtool uses to detect shared libraries,
6255 -*** $file_magic_cmd, produces output that libtool cannot recognize.
6256 -*** The result is that libtool may fail to recognize shared libraries
6257 -*** as such. This will affect the creation of libtool libraries that
6258 -*** depend on shared libraries, but programs linked with such libtool
6259 -*** libraries will work regardless of this problem. Nevertheless, you
6260 -*** may want to report the problem to your system manager and/or to
6261 -*** bug-libtool@gnu.org
6262 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6263 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6264
6265 -EOF
6266 - fi ;;
6267 - esac
6268 - fi
6269 - break
6270 - fi
6271 - done
6272 - IFS="$lt_save_ifs"
6273 - MAGIC_CMD="$lt_save_MAGIC_CMD"
6274 - ;;
6275 -esac])
6276 -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6277 -if test -n "$MAGIC_CMD"; then
6278 - AC_MSG_RESULT($MAGIC_CMD)
6279 -else
6280 - AC_MSG_RESULT(no)
6281 -fi
6282 -])# AC_PATH_TOOL_PREFIX
6283 + # Archives containing C++ object files must be created using
6284 + # the KAI C++ compiler.
6285 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
6286 + ;;
6287 + RCC*)
6288 + # Rational C++ 2.4.1
6289 + # FIXME: insert proper C++ library support
6290 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6291 + ;;
6292 + cxx*)
6293 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6294 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6295 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6296 + echo "-hidden">> $lib.exp~
6297 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
6298 + $rm $lib.exp'
6299
6300 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6301 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6302
6303 -# AC_PATH_MAGIC
6304 -# -------------
6305 -# find a file program which can recognise a shared library
6306 -AC_DEFUN([AC_PATH_MAGIC],
6307 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
6308 -if test -z "$lt_cv_path_MAGIC_CMD"; then
6309 - if test -n "$ac_tool_prefix"; then
6310 - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
6311 - else
6312 - MAGIC_CMD=:
6313 - fi
6314 -fi
6315 -])# AC_PATH_MAGIC
6316 + # Commands to make compiler produce verbose output that lists
6317 + # what "hidden" libraries, object files and flags are used when
6318 + # linking a shared library.
6319 + #
6320 + # There doesn't appear to be a way to prevent this compiler from
6321 + # explicitly linking system object files so we need to strip them
6322 + # from the output so that they don't get included in the library
6323 + # dependencies.
6324 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
6325 + ;;
6326 + *)
6327 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6328 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6329 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6330
6331 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6332 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6333
6334 -# AC_PROG_LD
6335 -# ----------
6336 -# find the pathname to the GNU or non-GNU linker
6337 -AC_DEFUN([AC_PROG_LD],
6338 -[AC_ARG_WITH([gnu-ld],
6339 - [AC_HELP_STRING([--with-gnu-ld],
6340 - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
6341 - [test "$withval" = no || with_gnu_ld=yes],
6342 - [with_gnu_ld=no])
6343 -AC_REQUIRE([LT_AC_PROG_SED])dnl
6344 -AC_REQUIRE([AC_PROG_CC])dnl
6345 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
6346 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
6347 -ac_prog=ld
6348 -if test "$GCC" = yes; then
6349 - # Check if gcc -print-prog-name=ld gives a path.
6350 - AC_MSG_CHECKING([for ld used by $CC])
6351 - case $host in
6352 - *-*-mingw*)
6353 - # gcc leaves a trailing carriage return which upsets mingw
6354 - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6355 - *)
6356 - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6357 - esac
6358 - case $ac_prog in
6359 - # Accept absolute paths.
6360 - [[\\/]]* | ?:[[\\/]]*)
6361 - re_direlt='/[[^/]][[^/]]*/\.\./'
6362 - # Canonicalize the pathname of ld
6363 - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6364 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6365 - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6366 - done
6367 - test -z "$LD" && LD="$ac_prog"
6368 - ;;
6369 - "")
6370 - # If it fails, then pretend we aren't using GCC.
6371 - ac_prog=ld
6372 + # Commands to make compiler produce verbose output that lists
6373 + # what "hidden" libraries, object files and flags are used when
6374 + # linking a shared library.
6375 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6376 +
6377 + else
6378 + # FIXME: insert proper C++ library support
6379 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6380 + fi
6381 + ;;
6382 + esac
6383 ;;
6384 - *)
6385 - # If it is relative, then search for the first ld in PATH.
6386 - with_gnu_ld=unknown
6387 + psos*)
6388 + # FIXME: insert proper C++ library support
6389 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6390 ;;
6391 - esac
6392 -elif test "$with_gnu_ld" = yes; then
6393 - AC_MSG_CHECKING([for GNU ld])
6394 -else
6395 - AC_MSG_CHECKING([for non-GNU ld])
6396 -fi
6397 -AC_CACHE_VAL(lt_cv_path_LD,
6398 -[if test -z "$LD"; then
6399 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6400 - for ac_dir in $PATH; do
6401 - IFS="$lt_save_ifs"
6402 - test -z "$ac_dir" && ac_dir=.
6403 - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6404 - lt_cv_path_LD="$ac_dir/$ac_prog"
6405 - # Check to see if the program is GNU ld. I'd rather use --version,
6406 - # but apparently some GNU ld's only accept -v.
6407 - # Break only if it was the GNU/non-GNU ld that we prefer.
6408 - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6409 - *GNU* | *'with BFD'*)
6410 - test "$with_gnu_ld" != no && break
6411 - ;;
6412 - *)
6413 - test "$with_gnu_ld" != yes && break
6414 - ;;
6415 - esac
6416 - fi
6417 - done
6418 - IFS="$lt_save_ifs"
6419 -else
6420 - lt_cv_path_LD="$LD" # Let the user override the test with a path.
6421 -fi])
6422 -LD="$lt_cv_path_LD"
6423 -if test -n "$LD"; then
6424 - AC_MSG_RESULT($LD)
6425 -else
6426 - AC_MSG_RESULT(no)
6427 -fi
6428 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
6429 -AC_PROG_LD_GNU
6430 -])# AC_PROG_LD
6431 -
6432 -
6433 -# AC_PROG_LD_GNU
6434 -# --------------
6435 -AC_DEFUN([AC_PROG_LD_GNU],
6436 -[AC_REQUIRE([AC_PROG_EGREP])dnl
6437 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
6438 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
6439 -case `$LD -v 2>&1 </dev/null` in
6440 -*GNU* | *'with BFD'*)
6441 - lt_cv_prog_gnu_ld=yes
6442 - ;;
6443 -*)
6444 - lt_cv_prog_gnu_ld=no
6445 - ;;
6446 -esac])
6447 -with_gnu_ld=$lt_cv_prog_gnu_ld
6448 -])# AC_PROG_LD_GNU
6449 -
6450 -
6451 -# AC_PROG_LD_RELOAD_FLAG
6452 -# ----------------------
6453 -# find reload flag for linker
6454 -# -- PORTME Some linkers may need a different reload flag.
6455 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
6456 -[AC_CACHE_CHECK([for $LD option to reload object files],
6457 - lt_cv_ld_reload_flag,
6458 - [lt_cv_ld_reload_flag='-r'])
6459 -reload_flag=$lt_cv_ld_reload_flag
6460 -case $reload_flag in
6461 -"" | " "*) ;;
6462 -*) reload_flag=" $reload_flag" ;;
6463 -esac
6464 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
6465 -])# AC_PROG_LD_RELOAD_FLAG
6466 -
6467 -
6468 -# AC_DEPLIBS_CHECK_METHOD
6469 -# -----------------------
6470 -# how to check for library dependencies
6471 -# -- PORTME fill in with the dynamic library characteristics
6472 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
6473 -[AC_CACHE_CHECK([how to recognise dependent libraries],
6474 -lt_cv_deplibs_check_method,
6475 -[lt_cv_file_magic_cmd='$MAGIC_CMD'
6476 -lt_cv_file_magic_test_file=
6477 -lt_cv_deplibs_check_method='unknown'
6478 -# Need to set the preceding variable on all platforms that support
6479 -# interlibrary dependencies.
6480 -# 'none' -- dependencies not supported.
6481 -# `unknown' -- same as none, but documents that we really don't know.
6482 -# 'pass_all' -- all dependencies passed with no checks.
6483 -# 'test_compile' -- check by making test program.
6484 -# 'file_magic [[regex]]' -- check by looking for files in library path
6485 -# which responds to the $file_magic_cmd with a given extended regex.
6486 -# If you have `file' or equivalent on your system and you're not sure
6487 -# whether `pass_all' will *always* work, you probably want this one.
6488 + sunos4*)
6489 + case $cc_basename in
6490 + CC*)
6491 + # Sun C++ 4.x
6492 + # FIXME: insert proper C++ library support
6493 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6494 + ;;
6495 + lcc*)
6496 + # Lucid
6497 + # FIXME: insert proper C++ library support
6498 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6499 + ;;
6500 + *)
6501 + # FIXME: insert proper C++ library support
6502 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6503 + ;;
6504 + esac
6505 + ;;
6506 + solaris*)
6507 + case $cc_basename in
6508 + CC*)
6509 + # Sun C++ 4.2, 5.x and Centerline C++
6510 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
6511 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6512 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6513 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6514 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6515
6516 -case $host_os in
6517 -aix4* | aix5*)
6518 - lt_cv_deplibs_check_method=pass_all
6519 - ;;
6520 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6521 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6522 + case $host_os in
6523 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6524 + *)
6525 + # The C++ compiler is used as linker so we must use $wl
6526 + # flag to pass the commands to the underlying system
6527 + # linker. We must also pass each convience library through
6528 + # to the system linker between allextract/defaultextract.
6529 + # The C++ compiler will combine linker options so we
6530 + # cannot just pass the convience library names through
6531 + # without $wl.
6532 + # Supported since Solaris 2.6 (maybe 2.5.1?)
6533 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
6534 + ;;
6535 + esac
6536 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6537
6538 -beos*)
6539 - lt_cv_deplibs_check_method=pass_all
6540 - ;;
6541 + output_verbose_link_cmd='echo'
6542
6543 -bsdi4*)
6544 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
6545 - lt_cv_file_magic_cmd='/usr/bin/file -L'
6546 - lt_cv_file_magic_test_file=/shlib/libc.so
6547 - ;;
6548 + # Archives containing C++ object files must be created using
6549 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
6550 + # necessary to make sure instantiated templates are included
6551 + # in the archive.
6552 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6553 + ;;
6554 + gcx*)
6555 + # Green Hills C++ Compiler
6556 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6557
6558 -cygwin*)
6559 - # func_win32_libid is a shell function defined in ltmain.sh
6560 - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6561 - lt_cv_file_magic_cmd='func_win32_libid'
6562 - ;;
6563 + # The C++ compiler must be used to create the archive.
6564 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6565 + ;;
6566 + *)
6567 + # GNU C++ compiler with Solaris linker
6568 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6569 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6570 + if $CC --version | grep -v '^2\.7' > /dev/null; then
6571 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6572 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6573 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6574
6575 -mingw* | pw32*)
6576 - # Base MSYS/MinGW do not provide the 'file' command needed by
6577 - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6578 - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6579 - lt_cv_file_magic_cmd='$OBJDUMP -f'
6580 - ;;
6581 + # Commands to make compiler produce verbose output that lists
6582 + # what "hidden" libraries, object files and flags are used when
6583 + # linking a shared library.
6584 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6585 + else
6586 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
6587 + # platform.
6588 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6589 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6590 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
6591
6592 -darwin* | rhapsody*)
6593 - lt_cv_deplibs_check_method=pass_all
6594 - ;;
6595 + # Commands to make compiler produce verbose output that lists
6596 + # what "hidden" libraries, object files and flags are used when
6597 + # linking a shared library.
6598 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
6599 + fi
6600
6601 -freebsd* | kfreebsd*-gnu)
6602 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6603 - case $host_cpu in
6604 - i*86 )
6605 - # Not sure whether the presence of OpenBSD here was a mistake.
6606 - # Let's accept both of them until this is cleared up.
6607 - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
6608 - lt_cv_file_magic_cmd=/usr/bin/file
6609 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6610 - ;;
6611 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6612 + fi
6613 + ;;
6614 esac
6615 - else
6616 - lt_cv_deplibs_check_method=pass_all
6617 - fi
6618 - ;;
6619 + ;;
6620 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6621 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6622 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6623 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6624 + runpath_var='LD_RUN_PATH'
6625
6626 -gnu*)
6627 - lt_cv_deplibs_check_method=pass_all
6628 - ;;
6629 + case $cc_basename in
6630 + CC*)
6631 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6632 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6633 + ;;
6634 + *)
6635 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6636 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6637 + ;;
6638 + esac
6639 + ;;
6640 + sysv5* | sco3.2v5* | sco5v6*)
6641 + # Note: We can NOT use -z defs as we might desire, because we do not
6642 + # link with -lc, and that would cause any symbols used from libc to
6643 + # always be unresolved, which means just about no library would
6644 + # ever link correctly. If we're not using GNU ld we use -z text
6645 + # though, which does catch some bad symbols but isn't as heavy-handed
6646 + # as -z defs.
6647 + # For security reasons, it is highly recommended that you always
6648 + # use absolute paths for naming shared libraries, and exclude the
6649 + # DT_RUNPATH tag from executables and libraries. But doing so
6650 + # requires that you compile everything twice, which is a pain.
6651 + # So that behaviour is only enabled if SCOABSPATH is set to a
6652 + # non-empty value in the environment. Most likely only useful for
6653 + # creating official distributions of packages.
6654 + # This is a hack until libtool officially supports absolute path
6655 + # names for shared libraries.
6656 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6657 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6658 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6659 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6660 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6661 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6662 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6663 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6664 + runpath_var='LD_RUN_PATH'
6665
6666 -hpux10.20* | hpux11*)
6667 - lt_cv_file_magic_cmd=/usr/bin/file
6668 - case "$host_cpu" in
6669 - ia64*)
6670 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
6671 - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6672 + case $cc_basename in
6673 + CC*)
6674 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6675 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6676 + ;;
6677 + *)
6678 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6679 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6680 + ;;
6681 + esac
6682 ;;
6683 - hppa*64*)
6684 - [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]']
6685 - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6686 + tandem*)
6687 + case $cc_basename in
6688 + NCC*)
6689 + # NonStop-UX NCC 3.20
6690 + # FIXME: insert proper C++ library support
6691 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6692 + ;;
6693 + *)
6694 + # FIXME: insert proper C++ library support
6695 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6696 + ;;
6697 + esac
6698 + ;;
6699 + vxworks*)
6700 + # FIXME: insert proper C++ library support
6701 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6702 ;;
6703 *)
6704 - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
6705 - lt_cv_file_magic_test_file=/usr/lib/libc.sl
6706 + # FIXME: insert proper C++ library support
6707 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6708 ;;
6709 - esac
6710 - ;;
6711 +esac
6712 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6713 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6714
6715 -irix5* | irix6* | nonstopux*)
6716 - case $LD in
6717 - *-32|*"-32 ") libmagic=32-bit;;
6718 - *-n32|*"-n32 ") libmagic=N32;;
6719 - *-64|*"-64 ") libmagic=64-bit;;
6720 - *) libmagic=never-match;;
6721 - esac
6722 - lt_cv_deplibs_check_method=pass_all
6723 - ;;
6724 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
6725 +_LT_AC_TAGVAR(LD, $1)="$LD"
6726
6727 -# This must be Linux ELF.
6728 -linux*)
6729 - lt_cv_deplibs_check_method=pass_all
6730 - ;;
6731 +AC_LIBTOOL_POSTDEP_PREDEP($1)
6732 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
6733 +AC_LIBTOOL_PROG_CC_C_O($1)
6734 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
6735 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
6736 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
6737 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
6738
6739 -netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6740 - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6741 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
6742 - else
6743 - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
6744 - fi
6745 - ;;
6746 +AC_LIBTOOL_CONFIG($1)
6747
6748 -newos6*)
6749 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
6750 - lt_cv_file_magic_cmd=/usr/bin/file
6751 - lt_cv_file_magic_test_file=/usr/lib/libnls.so
6752 - ;;
6753 +AC_LANG_POP
6754 +CC=$lt_save_CC
6755 +LDCXX=$LD
6756 +LD=$lt_save_LD
6757 +GCC=$lt_save_GCC
6758 +with_gnu_ldcxx=$with_gnu_ld
6759 +with_gnu_ld=$lt_save_with_gnu_ld
6760 +lt_cv_path_LDCXX=$lt_cv_path_LD
6761 +lt_cv_path_LD=$lt_save_path_LD
6762 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6763 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6764 +])# AC_LIBTOOL_LANG_CXX_CONFIG
6765
6766 -nto-qnx*)
6767 - lt_cv_deplibs_check_method=unknown
6768 - ;;
6769 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
6770 +# ------------------------------------
6771 +# Figure out "hidden" library dependencies from verbose
6772 +# compiler output when linking a shared library.
6773 +# Parse the compiler output and extract the necessary
6774 +# objects, libraries and library flags.
6775 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
6776 +dnl we can't use the lt_simple_compile_test_code here,
6777 +dnl because it contains code intended for an executable,
6778 +dnl not a library. It's possible we should let each
6779 +dnl tag define a new lt_????_link_test_code variable,
6780 +dnl but it's only used here...
6781 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
6782 +int a;
6783 +void foo (void) { a = 0; }
6784 +EOF
6785 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
6786 +class Foo
6787 +{
6788 +public:
6789 + Foo (void) { a = 0; }
6790 +private:
6791 + int a;
6792 +};
6793 +EOF
6794 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
6795 + subroutine foo
6796 + implicit none
6797 + integer*4 a
6798 + a=0
6799 + return
6800 + end
6801 +EOF
6802 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
6803 +public class foo {
6804 + private int a;
6805 + public void bar (void) {
6806 + a = 0;
6807 + }
6808 +};
6809 +EOF
6810 +])
6811 +dnl Parse the compiler output and extract the necessary
6812 +dnl objects, libraries and library flags.
6813 +if AC_TRY_EVAL(ac_compile); then
6814 + # Parse the compiler output and extract the necessary
6815 + # objects, libraries and library flags.
6816
6817 -openbsd*)
6818 - lt_cv_file_magic_cmd=/usr/bin/file
6819 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6820 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6821 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
6822 - else
6823 - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6824 - fi
6825 - ;;
6826 + # Sentinel used to keep track of whether or not we are before
6827 + # the conftest object file.
6828 + pre_test_object_deps_done=no
6829
6830 -osf3* | osf4* | osf5*)
6831 - lt_cv_deplibs_check_method=pass_all
6832 - ;;
6833 + # The `*' in the case matches for architectures that use `case' in
6834 + # $output_verbose_cmd can trigger glob expansion during the loop
6835 + # eval without this substitution.
6836 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
6837
6838 -sco3.2v5*)
6839 - lt_cv_deplibs_check_method=pass_all
6840 - ;;
6841 + for p in `eval $output_verbose_link_cmd`; do
6842 + case $p in
6843
6844 -solaris*)
6845 - lt_cv_deplibs_check_method=pass_all
6846 - ;;
6847 + -L* | -R* | -l*)
6848 + # Some compilers place space between "-{L,R}" and the path.
6849 + # Remove the space.
6850 + if test $p = "-L" \
6851 + || test $p = "-R"; then
6852 + prev=$p
6853 + continue
6854 + else
6855 + prev=
6856 + fi
6857
6858 -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6859 - case $host_vendor in
6860 - motorola)
6861 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
6862 - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6863 - ;;
6864 - ncr)
6865 - lt_cv_deplibs_check_method=pass_all
6866 - ;;
6867 - sequent)
6868 - lt_cv_file_magic_cmd='/bin/file'
6869 - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
6870 - ;;
6871 - sni)
6872 - lt_cv_file_magic_cmd='/bin/file'
6873 - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
6874 - lt_cv_file_magic_test_file=/lib/libc.so
6875 - ;;
6876 - siemens)
6877 - lt_cv_deplibs_check_method=pass_all
6878 - ;;
6879 - esac
6880 - ;;
6881 + if test "$pre_test_object_deps_done" = no; then
6882 + case $p in
6883 + -L* | -R*)
6884 + # Internal compiler library paths should come after those
6885 + # provided the user. The postdeps already come after the
6886 + # user supplied libs so there is no need to process them.
6887 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
6888 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6889 + else
6890 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6891 + fi
6892 + ;;
6893 + # The "-l" case would never come before the object being
6894 + # linked, so don't bother handling this case.
6895 + esac
6896 + else
6897 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
6898 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
6899 + else
6900 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
6901 + fi
6902 + fi
6903 + ;;
6904
6905 -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
6906 - lt_cv_deplibs_check_method=pass_all
6907 - ;;
6908 -esac
6909 -])
6910 -file_magic_cmd=$lt_cv_file_magic_cmd
6911 -deplibs_check_method=$lt_cv_deplibs_check_method
6912 -test -z "$deplibs_check_method" && deplibs_check_method=unknown
6913 -])# AC_DEPLIBS_CHECK_METHOD
6914 + *.$objext)
6915 + # This assumes that the test object file only shows up
6916 + # once in the compiler output.
6917 + if test "$p" = "conftest.$objext"; then
6918 + pre_test_object_deps_done=yes
6919 + continue
6920 + fi
6921
6922 + if test "$pre_test_object_deps_done" = no; then
6923 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
6924 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
6925 + else
6926 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
6927 + fi
6928 + else
6929 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
6930 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
6931 + else
6932 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
6933 + fi
6934 + fi
6935 + ;;
6936
6937 -# AC_PROG_NM
6938 -# ----------
6939 -# find the pathname to a BSD-compatible name lister
6940 -AC_DEFUN([AC_PROG_NM],
6941 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
6942 -[if test -n "$NM"; then
6943 - # Let the user override the test.
6944 - lt_cv_path_NM="$NM"
6945 -else
6946 - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6947 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6948 - IFS="$lt_save_ifs"
6949 - test -z "$ac_dir" && ac_dir=.
6950 - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6951 - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6952 - # Check to see if the nm accepts a BSD-compat flag.
6953 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6954 - # nm: unknown option "B" ignored
6955 - # Tru64's nm complains that /dev/null is an invalid object file
6956 - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6957 - */dev/null* | *'Invalid file or object type'*)
6958 - lt_cv_path_NM="$tmp_nm -B"
6959 - break
6960 - ;;
6961 - *)
6962 - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6963 - */dev/null*)
6964 - lt_cv_path_NM="$tmp_nm -p"
6965 - break
6966 - ;;
6967 - *)
6968 - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6969 - continue # so that we can try to find one that supports BSD flags
6970 - ;;
6971 - esac
6972 - esac
6973 - fi
6974 + *) ;; # Ignore the rest.
6975 +
6976 + esac
6977 done
6978 - IFS="$lt_save_ifs"
6979 - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6980 -fi])
6981 -NM="$lt_cv_path_NM"
6982 -])# AC_PROG_NM
6983
6984 + # Clean up.
6985 + rm -f a.out a.exe
6986 +else
6987 + echo "libtool.m4: error: problem compiling $1 test program"
6988 +fi
6989
6990 -# AC_CHECK_LIBM
6991 -# -------------
6992 -# check for math library
6993 -AC_DEFUN([AC_CHECK_LIBM],
6994 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
6995 -LIBM=
6996 -case $host in
6997 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
6998 - # These system don't have libm, or don't need it
6999 - ;;
7000 -*-ncr-sysv4.3*)
7001 - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
7002 - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
7003 - ;;
7004 -*)
7005 - AC_CHECK_LIB(m, cos, LIBM="-lm")
7006 - ;;
7007 -esac
7008 -])# AC_CHECK_LIBM
7009 +$rm -f confest.$objext
7010
7011 +# PORTME: override above test on systems where it is broken
7012 +ifelse([$1],[CXX],
7013 +[case $host_os in
7014 +interix3*)
7015 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
7016 + # hack all around it, let's just trust "g++" to DTRT.
7017 + _LT_AC_TAGVAR(predep_objects,$1)=
7018 + _LT_AC_TAGVAR(postdep_objects,$1)=
7019 + _LT_AC_TAGVAR(postdeps,$1)=
7020 + ;;
7021
7022 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
7023 -# -----------------------------------
7024 -# sets LIBLTDL to the link flags for the libltdl convenience library and
7025 -# LTDLINCL to the include flags for the libltdl header and adds
7026 -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
7027 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
7028 -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
7029 -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
7030 -# '${top_srcdir}/' (note the single quotes!). If your package is not
7031 -# flat and you're not using automake, define top_builddir and
7032 -# top_srcdir appropriately in the Makefiles.
7033 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
7034 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7035 - case $enable_ltdl_convenience in
7036 - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
7037 - "") enable_ltdl_convenience=yes
7038 - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
7039 +solaris*)
7040 + case $cc_basename in
7041 + CC*)
7042 + # Adding this requires a known-good setup of shared libraries for
7043 + # Sun compiler versions before 5.6, else PIC objects from an old
7044 + # archive will be linked into the output, leading to subtle bugs.
7045 + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
7046 + ;;
7047 esac
7048 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
7049 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
7050 - # For backwards non-gettext consistent compatibility...
7051 - INCLTDL="$LTDLINCL"
7052 -])# AC_LIBLTDL_CONVENIENCE
7053 + ;;
7054 +esac
7055 +])
7056
7057 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
7058 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7059 +esac
7060 +])# AC_LIBTOOL_POSTDEP_PREDEP
7061
7062 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
7063 -# -----------------------------------
7064 -# sets LIBLTDL to the link flags for the libltdl installable library and
7065 -# LTDLINCL to the include flags for the libltdl header and adds
7066 -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
7067 -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
7068 -# DIRECTORY is not provided and an installed libltdl is not found, it is
7069 -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
7070 -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
7071 -# quotes!). If your package is not flat and you're not using automake,
7072 -# define top_builddir and top_srcdir appropriately in the Makefiles.
7073 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
7074 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
7075 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
7076 - AC_CHECK_LIB(ltdl, lt_dlinit,
7077 - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
7078 - [if test x"$enable_ltdl_install" = xno; then
7079 - AC_MSG_WARN([libltdl not installed, but installation disabled])
7080 - else
7081 - enable_ltdl_install=yes
7082 - fi
7083 - ])
7084 - if test x"$enable_ltdl_install" = x"yes"; then
7085 - ac_configure_args="$ac_configure_args --enable-ltdl-install"
7086 - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
7087 - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
7088 - else
7089 - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
7090 - LIBLTDL="-lltdl"
7091 - LTDLINCL=
7092 - fi
7093 - # For backwards non-gettext consistent compatibility...
7094 - INCLTDL="$LTDLINCL"
7095 -])# AC_LIBLTDL_INSTALLABLE
7096 -
7097 -
7098 -# AC_LIBTOOL_CXX
7099 -# --------------
7100 -# enable support for C++ libraries
7101 -AC_DEFUN([AC_LIBTOOL_CXX],
7102 -[AC_REQUIRE([_LT_AC_LANG_CXX])
7103 -])# AC_LIBTOOL_CXX
7104 -
7105 -
7106 -# _LT_AC_LANG_CXX
7107 -# ---------------
7108 -AC_DEFUN([_LT_AC_LANG_CXX],
7109 -[AC_REQUIRE([AC_PROG_CXX])
7110 -AC_REQUIRE([AC_PROG_CXXCPP])
7111 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
7112 -])# _LT_AC_LANG_CXX
7113 -
7114 -
7115 -# AC_LIBTOOL_F77
7116 -# --------------
7117 -# enable support for Fortran 77 libraries
7118 -AC_DEFUN([AC_LIBTOOL_F77],
7119 -[AC_REQUIRE([_LT_AC_LANG_F77])
7120 -])# AC_LIBTOOL_F77
7121 -
7122 -
7123 -# _LT_AC_LANG_F77
7124 -# ---------------
7125 -AC_DEFUN([_LT_AC_LANG_F77],
7126 -[AC_REQUIRE([AC_PROG_F77])
7127 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
7128 -])# _LT_AC_LANG_F77
7129 -
7130 -
7131 -# AC_LIBTOOL_GCJ
7132 -# --------------
7133 -# enable support for GCJ libraries
7134 -AC_DEFUN([AC_LIBTOOL_GCJ],
7135 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
7136 -])# AC_LIBTOOL_GCJ
7137 -
7138 -
7139 -# _LT_AC_LANG_GCJ
7140 -# ---------------
7141 -AC_DEFUN([_LT_AC_LANG_GCJ],
7142 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
7143 - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
7144 - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
7145 - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
7146 - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
7147 - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
7148 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
7149 -])# _LT_AC_LANG_GCJ
7150 -
7151 -
7152 -# AC_LIBTOOL_RC
7153 -# --------------
7154 -# enable support for Windows resource files
7155 -AC_DEFUN([AC_LIBTOOL_RC],
7156 -[AC_REQUIRE([LT_AC_PROG_RC])
7157 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
7158 -])# AC_LIBTOOL_RC
7159 -
7160 -
7161 -# AC_LIBTOOL_LANG_C_CONFIG
7162 -# ------------------------
7163 +# AC_LIBTOOL_LANG_F77_CONFIG
7164 +# --------------------------
7165 # Ensure that the configuration vars for the C compiler are
7166 # suitably defined. Those variables are subsequently used by
7167 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7168 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
7169 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
7170 -[lt_save_CC="$CC"
7171 -AC_LANG_PUSH(C)
7172 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
7173 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
7174 +[AC_REQUIRE([AC_PROG_F77])
7175 +AC_LANG_PUSH(Fortran 77)
7176
7177 -# Source file extension for C test sources.
7178 -ac_ext=c
7179 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7180 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7181 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
7182 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7183 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7184 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
7185 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7186 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7187 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7188 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7189 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7190 +_LT_AC_TAGVAR(module_cmds, $1)=
7191 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7192 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7193 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7194 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
7195 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7196 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7197
7198 -# Object file extension for compiled C test sources.
7199 +# Source file extension for f77 test sources.
7200 +ac_ext=f
7201 +
7202 +# Object file extension for compiled f77 test sources.
7203 objext=o
7204 _LT_AC_TAGVAR(objext, $1)=$objext
7205
7206 # Code to be used in simple compile tests
7207 -lt_simple_compile_test_code="int some_variable = 0;\n"
7208 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
7209
7210 # Code to be used in simple link tests
7211 -lt_simple_link_test_code='int main(){return(0);}\n'
7212 +lt_simple_link_test_code=" program t\n end\n"
7213
7214 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7215 _LT_AC_SYS_COMPILER
7216
7217 -#
7218 -# Check for any special shared library compilation flags.
7219 -#
7220 -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
7221 -if test "$GCC" = no; then
7222 - case $host_os in
7223 - sco3.2v5*)
7224 - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
7225 - ;;
7226 - esac
7227 -fi
7228 -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
7229 - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
7230 - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
7231 - else
7232 - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
7233 - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
7234 - fi
7235 -fi
7236 -
7237 -
7238 -#
7239 -# Check to make sure the static flag actually works.
7240 -#
7241 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
7242 - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
7243 - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
7244 - [],
7245 - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
7246 +# save warnings/boilerplate of simple test code
7247 +_LT_COMPILER_BOILERPLATE
7248 +_LT_LINKER_BOILERPLATE
7249
7250 +# Allow CC to be a program name with arguments.
7251 +lt_save_CC="$CC"
7252 +CC=${F77-"f77"}
7253 +compiler=$CC
7254 +_LT_AC_TAGVAR(compiler, $1)=$CC
7255 +_LT_CC_BASENAME([$compiler])
7256
7257 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7258 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
7259 -AC_LIBTOOL_PROG_CC_C_O($1)
7260 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7261 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
7262 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7263 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7264 -AC_LIBTOOL_SYS_LIB_STRIP
7265 -AC_LIBTOOL_DLOPEN_SELF($1)
7266 -
7267 -# Report which librarie types wil actually be built
7268 AC_MSG_CHECKING([if libtool supports shared libraries])
7269 AC_MSG_RESULT([$can_build_shared])
7270
7271 @@ -3781,7 +3940,7 @@
7272
7273 # On AIX, shared libraries and static libraries use the same namespace, and
7274 # are all built from PIC.
7275 -case "$host_os" in
7276 +case $host_os in
7277 aix3*)
7278 test "$enable_shared" = yes && enable_static=no
7279 if test -n "$RANLIB"; then
7280 @@ -3789,49 +3948,11 @@
7281 postinstall_cmds='$RANLIB $lib'
7282 fi
7283 ;;
7284 -
7285 aix4* | aix5*)
7286 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7287 test "$enable_shared" = yes && enable_static=no
7288 fi
7289 ;;
7290 - darwin* | rhapsody*)
7291 - if test "$GCC" = yes; then
7292 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7293 - case "$host_os" in
7294 - rhapsody* | darwin1.[[012]])
7295 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
7296 - ;;
7297 - *) # Darwin 1.3 on
7298 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7299 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7300 - else
7301 - case ${MACOSX_DEPLOYMENT_TARGET} in
7302 - 10.[[012]])
7303 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7304 - ;;
7305 - 10.*)
7306 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
7307 - ;;
7308 - esac
7309 - fi
7310 - ;;
7311 - esac
7312 - output_verbose_link_cmd='echo'
7313 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
7314 - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7315 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7316 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7317 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7318 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
7319 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7320 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7321 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
7322 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7323 - else
7324 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7325 - fi
7326 - ;;
7327 esac
7328 AC_MSG_RESULT([$enable_shared])
7329
7330 @@ -3840,3399 +3961,3430 @@
7331 test "$enable_shared" = yes || enable_static=yes
7332 AC_MSG_RESULT([$enable_static])
7333
7334 +_LT_AC_TAGVAR(GCC, $1)="$G77"
7335 +_LT_AC_TAGVAR(LD, $1)="$LD"
7336 +
7337 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
7338 +AC_LIBTOOL_PROG_CC_C_O($1)
7339 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7340 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
7341 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7342 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7343 +
7344 AC_LIBTOOL_CONFIG($1)
7345
7346 AC_LANG_POP
7347 CC="$lt_save_CC"
7348 -])# AC_LIBTOOL_LANG_C_CONFIG
7349 +])# AC_LIBTOOL_LANG_F77_CONFIG
7350
7351
7352 -# AC_LIBTOOL_LANG_CXX_CONFIG
7353 +# AC_LIBTOOL_LANG_GCJ_CONFIG
7354 # --------------------------
7355 # Ensure that the configuration vars for the C compiler are
7356 # suitably defined. Those variables are subsequently used by
7357 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7358 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
7359 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
7360 -[AC_LANG_PUSH(C++)
7361 -AC_REQUIRE([AC_PROG_CXX])
7362 -AC_REQUIRE([AC_PROG_CXXCPP])
7363 -
7364 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7365 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7366 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
7367 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
7368 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7369 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
7370 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7371 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7372 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7373 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7374 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
7375 -_LT_AC_TAGVAR(module_cmds, $1)=
7376 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
7377 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
7378 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7379 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
7380 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7381 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7382 -
7383 -# Dependencies to place before and after the object being linked:
7384 -_LT_AC_TAGVAR(predep_objects, $1)=
7385 -_LT_AC_TAGVAR(postdep_objects, $1)=
7386 -_LT_AC_TAGVAR(predeps, $1)=
7387 -_LT_AC_TAGVAR(postdeps, $1)=
7388 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
7389 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
7390 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
7391 +[AC_LANG_SAVE
7392
7393 -# Source file extension for C++ test sources.
7394 -ac_ext=cc
7395 +# Source file extension for Java test sources.
7396 +ac_ext=java
7397
7398 -# Object file extension for compiled C++ test sources.
7399 +# Object file extension for compiled Java test sources.
7400 objext=o
7401 _LT_AC_TAGVAR(objext, $1)=$objext
7402
7403 # Code to be used in simple compile tests
7404 -lt_simple_compile_test_code="int some_variable = 0;\n"
7405 +lt_simple_compile_test_code="class foo {}\n"
7406
7407 # Code to be used in simple link tests
7408 -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
7409 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
7410
7411 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7412 _LT_AC_SYS_COMPILER
7413
7414 +# save warnings/boilerplate of simple test code
7415 +_LT_COMPILER_BOILERPLATE
7416 +_LT_LINKER_BOILERPLATE
7417 +
7418 # Allow CC to be a program name with arguments.
7419 -lt_save_CC=$CC
7420 -lt_save_LD=$LD
7421 -lt_save_GCC=$GCC
7422 -GCC=$GXX
7423 -lt_save_with_gnu_ld=$with_gnu_ld
7424 -lt_save_path_LD=$lt_cv_path_LD
7425 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
7426 - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
7427 -else
7428 - unset lt_cv_prog_gnu_ld
7429 -fi
7430 -if test -n "${lt_cv_path_LDCXX+set}"; then
7431 - lt_cv_path_LD=$lt_cv_path_LDCXX
7432 -else
7433 - unset lt_cv_path_LD
7434 -fi
7435 -test -z "${LDCXX+set}" || LD=$LDCXX
7436 -CC=${CXX-"c++"}
7437 +lt_save_CC="$CC"
7438 +CC=${GCJ-"gcj"}
7439 compiler=$CC
7440 _LT_AC_TAGVAR(compiler, $1)=$CC
7441 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7442 +_LT_CC_BASENAME([$compiler])
7443
7444 -# We don't want -fno-exception wen compiling C++ code, so set the
7445 -# no_builtin_flag separately
7446 -if test "$GXX" = yes; then
7447 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
7448 -else
7449 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
7450 -fi
7451 -
7452 -if test "$GXX" = yes; then
7453 - # Set up default GNU C++ configuration
7454 -
7455 - AC_PROG_LD
7456 -
7457 - # Check if GNU C++ uses GNU ld as the underlying linker, since the
7458 - # archiving commands below assume that GNU ld is being used.
7459 - if test "$with_gnu_ld" = yes; then
7460 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7461 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7462 -
7463 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7464 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7465 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
7466 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7467
7468 - # If archive_cmds runs LD, not CC, wlarc should be empty
7469 - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
7470 - # investigate it a little bit more. (MM)
7471 - wlarc='${wl}'
7472 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7473
7474 - # ancient GNU ld didn't support --whole-archive et. al.
7475 - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
7476 - grep 'no-whole-archive' > /dev/null; then
7477 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7478 - else
7479 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7480 - fi
7481 - else
7482 - with_gnu_ld=no
7483 - wlarc=
7484 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
7485 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
7486 +AC_LIBTOOL_PROG_CC_C_O($1)
7487 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
7488 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
7489 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
7490 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
7491
7492 - # A generic and very simple default shared library creation
7493 - # command for GNU C++ for the case where it uses the native
7494 - # linker, instead of GNU ld. If possible, this setting should
7495 - # overridden to take advantage of the native linker features on
7496 - # the platform it is being used on.
7497 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7498 - fi
7499 +AC_LIBTOOL_CONFIG($1)
7500
7501 - # Commands to make compiler produce verbose output that lists
7502 - # what "hidden" libraries, object files and flags are used when
7503 - # linking a shared library.
7504 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
7505 +AC_LANG_RESTORE
7506 +CC="$lt_save_CC"
7507 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
7508
7509 -else
7510 - GXX=no
7511 - with_gnu_ld=no
7512 - wlarc=
7513 -fi
7514
7515 -# PORTME: fill in a description of your system's C++ link characteristics
7516 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
7517 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
7518 -case $host_os in
7519 - aix3*)
7520 - # FIXME: insert proper C++ library support
7521 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7522 - ;;
7523 - aix4* | aix5*)
7524 - if test "$host_cpu" = ia64; then
7525 - # On IA64, the linker does run time linking by default, so we don't
7526 - # have to do anything special.
7527 - aix_use_runtimelinking=no
7528 - exp_sym_flag='-Bexport'
7529 - no_entry_flag=""
7530 - else
7531 - aix_use_runtimelinking=no
7532 +# AC_LIBTOOL_LANG_RC_CONFIG
7533 +# -------------------------
7534 +# Ensure that the configuration vars for the Windows resource compiler are
7535 +# suitably defined. Those variables are subsequently used by
7536 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
7537 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
7538 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
7539 +[AC_LANG_SAVE
7540
7541 - # Test if we are trying to use run time linking or normal
7542 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7543 - # need to do runtime linking.
7544 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
7545 - for ld_flag in $LDFLAGS; do
7546 - case $ld_flag in
7547 - *-brtl*)
7548 - aix_use_runtimelinking=yes
7549 - break
7550 - ;;
7551 - esac
7552 - done
7553 - esac
7554 +# Source file extension for RC test sources.
7555 +ac_ext=rc
7556
7557 - exp_sym_flag='-bexport'
7558 - no_entry_flag='-bnoentry'
7559 - fi
7560 +# Object file extension for compiled RC test sources.
7561 +objext=o
7562 +_LT_AC_TAGVAR(objext, $1)=$objext
7563
7564 - # When large executables or shared objects are built, AIX ld can
7565 - # have problems creating the table of contents. If linking a library
7566 - # or program results in "error TOC overflow" add -mminimal-toc to
7567 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7568 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7569 +# Code to be used in simple compile tests
7570 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
7571
7572 - _LT_AC_TAGVAR(archive_cmds, $1)=''
7573 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7574 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7575 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7576 +# Code to be used in simple link tests
7577 +lt_simple_link_test_code="$lt_simple_compile_test_code"
7578
7579 - if test "$GXX" = yes; then
7580 - case $host_os in aix4.[012]|aix4.[012].*)
7581 - # We only want to do this on AIX 4.2 and lower, the check
7582 - # below for broken collect2 doesn't work under 4.3+
7583 - collect2name=`${CC} -print-prog-name=collect2`
7584 - if test -f "$collect2name" && \
7585 - strings "$collect2name" | grep resolve_lib_name >/dev/null
7586 - then
7587 - # We have reworked collect2
7588 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7589 - else
7590 - # We have old collect2
7591 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7592 - # It fails to find uninstalled libraries when the uninstalled
7593 - # path is not listed in the libpath. Setting hardcode_minus_L
7594 - # to unsupported forces relinking
7595 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7596 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7597 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7598 - fi
7599 - esac
7600 - shared_flag='-shared'
7601 - else
7602 - # not using gcc
7603 - if test "$host_cpu" = ia64; then
7604 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7605 - # chokes on -Wl,-G. The following line is correct:
7606 - shared_flag='-G'
7607 - else
7608 - if test "$aix_use_runtimelinking" = yes; then
7609 - shared_flag='${wl}-G'
7610 - else
7611 - shared_flag='${wl}-bM:SRE'
7612 - fi
7613 - fi
7614 - fi
7615 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7616 +_LT_AC_SYS_COMPILER
7617
7618 - # It seems that -bexpall does not export symbols beginning with
7619 - # underscore (_), so it is better to generate a list of symbols to export.
7620 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7621 - if test "$aix_use_runtimelinking" = yes; then
7622 - # Warning - without using the other runtime loading flags (-brtl),
7623 - # -berok will link without error, but may produce a broken library.
7624 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7625 - # Determine the default libpath from the value encoded in an empty executable.
7626 - _LT_AC_SYS_LIBPATH_AIX
7627 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7628 +# save warnings/boilerplate of simple test code
7629 +_LT_COMPILER_BOILERPLATE
7630 +_LT_LINKER_BOILERPLATE
7631
7632 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7633 - else
7634 - if test "$host_cpu" = ia64; then
7635 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7636 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7637 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7638 - else
7639 - # Determine the default libpath from the value encoded in an empty executable.
7640 - _LT_AC_SYS_LIBPATH_AIX
7641 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7642 - # Warning - without using the other run time loading flags,
7643 - # -berok will link without error, but may produce a broken library.
7644 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7645 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7646 - # -bexpall does not export symbols beginning with underscore (_)
7647 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7648 - # Exported symbols can be pulled into shared objects from archives
7649 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
7650 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7651 - # This is similar to how AIX traditionally builds it's shared libraries.
7652 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7653 - fi
7654 - fi
7655 - ;;
7656 - chorus*)
7657 - case $cc_basename in
7658 - *)
7659 - # FIXME: insert proper C++ library support
7660 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7661 - ;;
7662 - esac
7663 - ;;
7664 +# Allow CC to be a program name with arguments.
7665 +lt_save_CC="$CC"
7666 +CC=${RC-"windres"}
7667 +compiler=$CC
7668 +_LT_AC_TAGVAR(compiler, $1)=$CC
7669 +_LT_CC_BASENAME([$compiler])
7670 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7671
7672 - cygwin* | mingw* | pw32*)
7673 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7674 - # as there is no search path for DLLs.
7675 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7676 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7677 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
7678 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7679 +AC_LIBTOOL_CONFIG($1)
7680
7681 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7682 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7683 - # If the export-symbols file already is a .def file (1st line
7684 - # is EXPORTS), use it as is; otherwise, prepend...
7685 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7686 - cp $export_symbols $output_objdir/$soname.def;
7687 - else
7688 - echo EXPORTS > $output_objdir/$soname.def;
7689 - cat $export_symbols >> $output_objdir/$soname.def;
7690 - fi~
7691 - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7692 - else
7693 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7694 - fi
7695 - ;;
7696 +AC_LANG_RESTORE
7697 +CC="$lt_save_CC"
7698 +])# AC_LIBTOOL_LANG_RC_CONFIG
7699
7700 - darwin* | rhapsody*)
7701 - if test "$GXX" = yes; then
7702 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7703 - case "$host_os" in
7704 - rhapsody* | darwin1.[[012]])
7705 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
7706 - ;;
7707 - *) # Darwin 1.3 on
7708 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7709 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7710 - else
7711 - case ${MACOSX_DEPLOYMENT_TARGET} in
7712 - 10.[[012]])
7713 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7714 - ;;
7715 - 10.*)
7716 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
7717 - ;;
7718 - esac
7719 - fi
7720 - ;;
7721 - esac
7722 - lt_int_apple_cc_single_mod=no
7723 - output_verbose_link_cmd='echo'
7724 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7725 - lt_int_apple_cc_single_mod=yes
7726 - fi
7727 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7728 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7729 - else
7730 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7731 - fi
7732 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7733
7734 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7735 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7736 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7737 - else
7738 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7739 - fi
7740 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7741 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
7742 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7743 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7744 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
7745 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7746 - else
7747 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7748 +# AC_LIBTOOL_CONFIG([TAGNAME])
7749 +# ----------------------------
7750 +# If TAGNAME is not passed, then create an initial libtool script
7751 +# with a default configuration from the untagged config vars. Otherwise
7752 +# add code to config.status for appending the configuration named by
7753 +# TAGNAME from the matching tagged config vars.
7754 +AC_DEFUN([AC_LIBTOOL_CONFIG],
7755 +[# The else clause should only fire when bootstrapping the
7756 +# libtool distribution, otherwise you forgot to ship ltmain.sh
7757 +# with your package, and you will get complaints that there are
7758 +# no rules to generate ltmain.sh.
7759 +if test -f "$ltmain"; then
7760 + # See if we are running on zsh, and set the options which allow our commands through
7761 + # without removal of \ escapes.
7762 + if test -n "${ZSH_VERSION+set}" ; then
7763 + setopt NO_GLOB_SUBST
7764 fi
7765 - ;;
7766 -
7767 - dgux*)
7768 - case $cc_basename in
7769 - ec++)
7770 - # FIXME: insert proper C++ library support
7771 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7772 - ;;
7773 - ghcx)
7774 - # Green Hills C++ Compiler
7775 - # FIXME: insert proper C++ library support
7776 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7777 - ;;
7778 - *)
7779 - # FIXME: insert proper C++ library support
7780 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7781 - ;;
7782 - esac
7783 - ;;
7784 - freebsd[12]*)
7785 - # C++ shared libraries reported to be fairly broken before switch to ELF
7786 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7787 - ;;
7788 - freebsd-elf*)
7789 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7790 - ;;
7791 - freebsd* | kfreebsd*-gnu)
7792 - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
7793 - # conventions
7794 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7795 - ;;
7796 - gnu*)
7797 - ;;
7798 - hpux9*)
7799 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7800 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7801 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7802 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7803 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7804 - # but as the default
7805 - # location of the library.
7806 + # Now quote all the things that may contain metacharacters while being
7807 + # careful not to overquote the AC_SUBSTed values. We take copies of the
7808 + # variables and quote the copies for generation of the libtool script.
7809 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
7810 + SED SHELL STRIP \
7811 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
7812 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
7813 + deplibs_check_method reload_flag reload_cmds need_locks \
7814 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
7815 + lt_cv_sys_global_symbol_to_c_name_address \
7816 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7817 + old_postinstall_cmds old_postuninstall_cmds \
7818 + _LT_AC_TAGVAR(compiler, $1) \
7819 + _LT_AC_TAGVAR(CC, $1) \
7820 + _LT_AC_TAGVAR(LD, $1) \
7821 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
7822 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
7823 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
7824 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
7825 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
7826 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
7827 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
7828 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
7829 + _LT_AC_TAGVAR(old_archive_cmds, $1) \
7830 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
7831 + _LT_AC_TAGVAR(predep_objects, $1) \
7832 + _LT_AC_TAGVAR(postdep_objects, $1) \
7833 + _LT_AC_TAGVAR(predeps, $1) \
7834 + _LT_AC_TAGVAR(postdeps, $1) \
7835 + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
7836 + _LT_AC_TAGVAR(archive_cmds, $1) \
7837 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
7838 + _LT_AC_TAGVAR(postinstall_cmds, $1) \
7839 + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
7840 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
7841 + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
7842 + _LT_AC_TAGVAR(no_undefined_flag, $1) \
7843 + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
7844 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
7845 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
7846 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
7847 + _LT_AC_TAGVAR(hardcode_automatic, $1) \
7848 + _LT_AC_TAGVAR(module_cmds, $1) \
7849 + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
7850 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
7851 + _LT_AC_TAGVAR(exclude_expsyms, $1) \
7852 + _LT_AC_TAGVAR(include_expsyms, $1); do
7853
7854 - case $cc_basename in
7855 - CC)
7856 - # FIXME: insert proper C++ library support
7857 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7858 - ;;
7859 - aCC)
7860 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7861 - # Commands to make compiler produce verbose output that lists
7862 - # what "hidden" libraries, object files and flags are used when
7863 - # linking a shared library.
7864 - #
7865 - # There doesn't appear to be a way to prevent this compiler from
7866 - # explicitly linking system object files so we need to strip them
7867 - # from the output so that they don't get included in the library
7868 - # dependencies.
7869 - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7870 - ;;
7871 - *)
7872 - if test "$GXX" = yes; then
7873 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7874 - else
7875 - # FIXME: insert proper C++ library support
7876 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7877 - fi
7878 - ;;
7879 - esac
7880 - ;;
7881 - hpux10*|hpux11*)
7882 - if test $with_gnu_ld = no; then
7883 - case "$host_cpu" in
7884 - hppa*64*)
7885 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7886 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7887 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7888 - ;;
7889 - ia64*)
7890 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7891 - ;;
7892 - *)
7893 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7894 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7895 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7896 - ;;
7897 - esac
7898 - fi
7899 - case "$host_cpu" in
7900 - hppa*64*)
7901 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
7902 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7903 - ;;
7904 - ia64*)
7905 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
7906 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7907 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7908 - # but as the default
7909 - # location of the library.
7910 + case $var in
7911 + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
7912 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
7913 + _LT_AC_TAGVAR(archive_cmds, $1) | \
7914 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
7915 + _LT_AC_TAGVAR(module_cmds, $1) | \
7916 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
7917 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
7918 + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
7919 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
7920 + postinstall_cmds | postuninstall_cmds | \
7921 + old_postinstall_cmds | old_postuninstall_cmds | \
7922 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7923 + # Double-quote double-evaled strings.
7924 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7925 ;;
7926 *)
7927 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7928 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
7929 - # but as the default
7930 - # location of the library.
7931 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7932 ;;
7933 esac
7934 + done
7935
7936 - case $cc_basename in
7937 - CC)
7938 - # FIXME: insert proper C++ library support
7939 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7940 - ;;
7941 - aCC)
7942 - case "$host_cpu" in
7943 - hppa*64*|ia64*)
7944 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
7945 - ;;
7946 - *)
7947 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7948 - ;;
7949 - esac
7950 - # Commands to make compiler produce verbose output that lists
7951 - # what "hidden" libraries, object files and flags are used when
7952 - # linking a shared library.
7953 - #
7954 - # There doesn't appear to be a way to prevent this compiler from
7955 - # explicitly linking system object files so we need to strip them
7956 - # from the output so that they don't get included in the library
7957 - # dependencies.
7958 - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7959 - ;;
7960 - *)
7961 - if test "$GXX" = yes; then
7962 - if test $with_gnu_ld = no; then
7963 - case "$host_cpu" in
7964 - ia64*|hppa*64*)
7965 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
7966 - ;;
7967 - *)
7968 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7969 - ;;
7970 - esac
7971 - fi
7972 - else
7973 - # FIXME: insert proper C++ library support
7974 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
7975 - fi
7976 - ;;
7977 - esac
7978 - ;;
7979 - irix5* | irix6*)
7980 - case $cc_basename in
7981 - CC)
7982 - # SGI C++
7983 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
7984 -
7985 - # Archives containing C++ object files must be created using
7986 - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
7987 - # necessary to make sure instantiated templates are included
7988 - # in the archive.
7989 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
7990 - ;;
7991 - *)
7992 - if test "$GXX" = yes; then
7993 - if test "$with_gnu_ld" = no; then
7994 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
7995 - else
7996 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
7997 - fi
7998 - fi
7999 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8000 - ;;
8001 - esac
8002 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8003 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8004 + case $lt_echo in
8005 + *'\[$]0 --fallback-echo"')
8006 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
8007 ;;
8008 - linux*)
8009 - case $cc_basename in
8010 - KCC)
8011 - # Kuck and Associates, Inc. (KAI) C++ Compiler
8012 -
8013 - # KCC will only create a shared library if the output file
8014 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
8015 - # to its proper name (with version) after linking.
8016 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8017 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
8018 - # Commands to make compiler produce verbose output that lists
8019 - # what "hidden" libraries, object files and flags are used when
8020 - # linking a shared library.
8021 - #
8022 - # There doesn't appear to be a way to prevent this compiler from
8023 - # explicitly linking system object files so we need to strip them
8024 - # from the output so that they don't get included in the library
8025 - # dependencies.
8026 - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
8027 + esac
8028
8029 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
8030 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8031 +ifelse([$1], [],
8032 + [cfgfile="${ofile}T"
8033 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8034 + $rm -f "$cfgfile"
8035 + AC_MSG_NOTICE([creating $ofile])],
8036 + [cfgfile="$ofile"])
8037
8038 - # Archives containing C++ object files must be created using
8039 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
8040 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8041 - ;;
8042 - icpc)
8043 - # Intel C++
8044 - with_gnu_ld=yes
8045 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8046 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8047 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8048 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8049 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
8050 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8051 - ;;
8052 - cxx)
8053 - # Compaq C++
8054 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
8055 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
8056 + cat <<__EOF__ >> "$cfgfile"
8057 +ifelse([$1], [],
8058 +[#! $SHELL
8059
8060 - runpath_var=LD_RUN_PATH
8061 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8062 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8063 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8064 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8065 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8066 +#
8067 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8068 +# Free Software Foundation, Inc.
8069 +#
8070 +# This file is part of GNU Libtool:
8071 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8072 +#
8073 +# This program is free software; you can redistribute it and/or modify
8074 +# it under the terms of the GNU General Public License as published by
8075 +# the Free Software Foundation; either version 2 of the License, or
8076 +# (at your option) any later version.
8077 +#
8078 +# This program is distributed in the hope that it will be useful, but
8079 +# WITHOUT ANY WARRANTY; without even the implied warranty of
8080 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8081 +# General Public License for more details.
8082 +#
8083 +# You should have received a copy of the GNU General Public License
8084 +# along with this program; if not, write to the Free Software
8085 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
8086 +#
8087 +# As a special exception to the GNU General Public License, if you
8088 +# distribute this file as part of a program that contains a
8089 +# configuration script generated by Autoconf, you may include it under
8090 +# the same distribution terms that you use for the rest of that program.
8091
8092 - # Commands to make compiler produce verbose output that lists
8093 - # what "hidden" libraries, object files and flags are used when
8094 - # linking a shared library.
8095 - #
8096 - # There doesn't appear to be a way to prevent this compiler from
8097 - # explicitly linking system object files so we need to strip them
8098 - # from the output so that they don't get included in the library
8099 - # dependencies.
8100 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
8101 - ;;
8102 - esac
8103 - ;;
8104 - lynxos*)
8105 - # FIXME: insert proper C++ library support
8106 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8107 - ;;
8108 - m88k*)
8109 - # FIXME: insert proper C++ library support
8110 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8111 - ;;
8112 - mvs*)
8113 - case $cc_basename in
8114 - cxx)
8115 - # FIXME: insert proper C++ library support
8116 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8117 - ;;
8118 - *)
8119 - # FIXME: insert proper C++ library support
8120 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8121 - ;;
8122 - esac
8123 - ;;
8124 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8125 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8126 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
8127 - wlarc=
8128 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8129 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
8130 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8131 - fi
8132 - # Workaround some broken pre-1.5 toolchains
8133 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
8134 - ;;
8135 - osf3*)
8136 - case $cc_basename in
8137 - KCC)
8138 - # Kuck and Associates, Inc. (KAI) C++ Compiler
8139 +# A sed program that does not truncate output.
8140 +SED=$lt_SED
8141
8142 - # KCC will only create a shared library if the output file
8143 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
8144 - # to its proper name (with version) after linking.
8145 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8146 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8147 +Xsed="$SED -e 1s/^X//"
8148
8149 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8150 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8151 +# The HP-UX ksh and POSIX shell print the target directory to stdout
8152 +# if CDPATH is set.
8153 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8154
8155 - # Archives containing C++ object files must be created using
8156 - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
8157 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
8158 +# The names of the tagged configurations supported by this script.
8159 +available_tags=
8160
8161 - ;;
8162 - RCC)
8163 - # Rational C++ 2.4.1
8164 - # FIXME: insert proper C++ library support
8165 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8166 - ;;
8167 - cxx)
8168 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8169 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
8170 +# ### BEGIN LIBTOOL CONFIG],
8171 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
8172
8173 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8174 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8175 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8176
8177 - # Commands to make compiler produce verbose output that lists
8178 - # what "hidden" libraries, object files and flags are used when
8179 - # linking a shared library.
8180 - #
8181 - # There doesn't appear to be a way to prevent this compiler from
8182 - # explicitly linking system object files so we need to strip them
8183 - # from the output so that they don't get included in the library
8184 - # dependencies.
8185 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
8186 - ;;
8187 - *)
8188 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8189 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8190 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
8191 +# Shell to use when invoking shell scripts.
8192 +SHELL=$lt_SHELL
8193
8194 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8195 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8196 +# Whether or not to build shared libraries.
8197 +build_libtool_libs=$enable_shared
8198
8199 - # Commands to make compiler produce verbose output that lists
8200 - # what "hidden" libraries, object files and flags are used when
8201 - # linking a shared library.
8202 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8203 +# Whether or not to build static libraries.
8204 +build_old_libs=$enable_static
8205
8206 - else
8207 - # FIXME: insert proper C++ library support
8208 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8209 - fi
8210 - ;;
8211 - esac
8212 - ;;
8213 - osf4* | osf5*)
8214 - case $cc_basename in
8215 - KCC)
8216 - # Kuck and Associates, Inc. (KAI) C++ Compiler
8217 +# Whether or not to add -lc for building shared libraries.
8218 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
8219
8220 - # KCC will only create a shared library if the output file
8221 - # ends with ".so" (or ".sl" for HP-UX), so rename the library
8222 - # to its proper name (with version) after linking.
8223 - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
8224 +# Whether or not to disallow shared libs when runtime libs are static
8225 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
8226
8227 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
8228 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8229 +# Whether or not to optimize for fast installation.
8230 +fast_install=$enable_fast_install
8231
8232 - # Archives containing C++ object files must be created using
8233 - # the KAI C++ compiler.
8234 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
8235 - ;;
8236 - RCC)
8237 - # Rational C++ 2.4.1
8238 - # FIXME: insert proper C++ library support
8239 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8240 - ;;
8241 - cxx)
8242 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
8243 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
8244 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
8245 - echo "-hidden">> $lib.exp~
8246 - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
8247 - $rm $lib.exp'
8248 +# The host system.
8249 +host_alias=$host_alias
8250 +host=$host
8251 +host_os=$host_os
8252
8253 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
8254 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8255 +# The build system.
8256 +build_alias=$build_alias
8257 +build=$build
8258 +build_os=$build_os
8259
8260 - # Commands to make compiler produce verbose output that lists
8261 - # what "hidden" libraries, object files and flags are used when
8262 - # linking a shared library.
8263 - #
8264 - # There doesn't appear to be a way to prevent this compiler from
8265 - # explicitly linking system object files so we need to strip them
8266 - # from the output so that they don't get included in the library
8267 - # dependencies.
8268 - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
8269 - ;;
8270 - *)
8271 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8272 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
8273 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
8274 +# An echo program that does not interpret backslashes.
8275 +echo=$lt_echo
8276
8277 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
8278 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
8279 +# The archiver.
8280 +AR=$lt_AR
8281 +AR_FLAGS=$lt_AR_FLAGS
8282
8283 - # Commands to make compiler produce verbose output that lists
8284 - # what "hidden" libraries, object files and flags are used when
8285 - # linking a shared library.
8286 - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
8287 +# A C compiler.
8288 +LTCC=$lt_LTCC
8289
8290 - else
8291 - # FIXME: insert proper C++ library support
8292 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8293 - fi
8294 - ;;
8295 - esac
8296 - ;;
8297 - psos*)
8298 - # FIXME: insert proper C++ library support
8299 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8300 - ;;
8301 - sco*)
8302 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8303 - case $cc_basename in
8304 - CC)
8305 - # FIXME: insert proper C++ library support
8306 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8307 - ;;
8308 - *)
8309 - # FIXME: insert proper C++ library support
8310 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8311 - ;;
8312 - esac
8313 - ;;
8314 - sunos4*)
8315 - case $cc_basename in
8316 - CC)
8317 - # Sun C++ 4.x
8318 - # FIXME: insert proper C++ library support
8319 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8320 - ;;
8321 - lcc)
8322 - # Lucid
8323 - # FIXME: insert proper C++ library support
8324 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8325 - ;;
8326 - *)
8327 - # FIXME: insert proper C++ library support
8328 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8329 - ;;
8330 - esac
8331 - ;;
8332 - solaris*)
8333 - case $cc_basename in
8334 - CC)
8335 - # Sun C++ 4.2, 5.x and Centerline C++
8336 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
8337 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
8338 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8339 - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
8340 +# LTCC compiler flags.
8341 +LTCFLAGS=$lt_LTCFLAGS
8342
8343 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
8344 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
8345 - case $host_os in
8346 - solaris2.[0-5] | solaris2.[0-5].*) ;;
8347 - *)
8348 - # The C++ compiler is used as linker so we must use $wl
8349 - # flag to pass the commands to the underlying system
8350 - # linker.
8351 - # Supported since Solaris 2.6 (maybe 2.5.1?)
8352 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8353 - ;;
8354 - esac
8355 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
8356 +# A language-specific compiler.
8357 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
8358
8359 - # Commands to make compiler produce verbose output that lists
8360 - # what "hidden" libraries, object files and flags are used when
8361 - # linking a shared library.
8362 - #
8363 - # There doesn't appear to be a way to prevent this compiler from
8364 - # explicitly linking system object files so we need to strip them
8365 - # from the output so that they don't get included in the library
8366 - # dependencies.
8367 - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
8368 +# Is the compiler the GNU C compiler?
8369 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
8370
8371 - # Archives containing C++ object files must be created using
8372 - # "CC -xar", where "CC" is the Sun C++ compiler. This is
8373 - # necessary to make sure instantiated templates are included
8374 - # in the archive.
8375 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
8376 - ;;
8377 - gcx)
8378 - # Green Hills C++ Compiler
8379 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8380 +# An ERE matcher.
8381 +EGREP=$lt_EGREP
8382
8383 - # The C++ compiler must be used to create the archive.
8384 - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
8385 - ;;
8386 - *)
8387 - # GNU C++ compiler with Solaris linker
8388 - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
8389 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
8390 - if $CC --version | grep -v '^2\.7' > /dev/null; then
8391 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8392 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8393 - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
8394 +# The linker used to build libraries.
8395 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
8396
8397 - # Commands to make compiler produce verbose output that lists
8398 - # what "hidden" libraries, object files and flags are used when
8399 - # linking a shared library.
8400 - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
8401 - else
8402 - # g++ 2.7 appears to require `-G' NOT `-shared' on this
8403 - # platform.
8404 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8405 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8406 - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
8407 +# Whether we need hard or soft links.
8408 +LN_S=$lt_LN_S
8409
8410 - # Commands to make compiler produce verbose output that lists
8411 - # what "hidden" libraries, object files and flags are used when
8412 - # linking a shared library.
8413 - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
8414 - fi
8415 +# A BSD-compatible nm program.
8416 +NM=$lt_NM
8417
8418 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
8419 - fi
8420 - ;;
8421 - esac
8422 - ;;
8423 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
8424 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8425 - ;;
8426 - tandem*)
8427 - case $cc_basename in
8428 - NCC)
8429 - # NonStop-UX NCC 3.20
8430 - # FIXME: insert proper C++ library support
8431 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8432 - ;;
8433 - *)
8434 - # FIXME: insert proper C++ library support
8435 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8436 - ;;
8437 - esac
8438 - ;;
8439 - vxworks*)
8440 - # FIXME: insert proper C++ library support
8441 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8442 - ;;
8443 - *)
8444 - # FIXME: insert proper C++ library support
8445 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
8446 - ;;
8447 -esac
8448 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
8449 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8450 +# A symbol stripping program
8451 +STRIP=$lt_STRIP
8452
8453 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
8454 -_LT_AC_TAGVAR(LD, $1)="$LD"
8455 +# Used to examine libraries when file_magic_cmd begins "file"
8456 +MAGIC_CMD=$MAGIC_CMD
8457
8458 -AC_LIBTOOL_POSTDEP_PREDEP($1)
8459 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
8460 -AC_LIBTOOL_PROG_CC_C_O($1)
8461 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
8462 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
8463 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
8464 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
8465 -AC_LIBTOOL_SYS_LIB_STRIP
8466 -AC_LIBTOOL_DLOPEN_SELF($1)
8467 +# Used on cygwin: DLL creation program.
8468 +DLLTOOL="$DLLTOOL"
8469
8470 -AC_LIBTOOL_CONFIG($1)
8471 +# Used on cygwin: object dumper.
8472 +OBJDUMP="$OBJDUMP"
8473
8474 -AC_LANG_POP
8475 -CC=$lt_save_CC
8476 -LDCXX=$LD
8477 -LD=$lt_save_LD
8478 -GCC=$lt_save_GCC
8479 -with_gnu_ldcxx=$with_gnu_ld
8480 -with_gnu_ld=$lt_save_with_gnu_ld
8481 -lt_cv_path_LDCXX=$lt_cv_path_LD
8482 -lt_cv_path_LD=$lt_save_path_LD
8483 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
8484 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
8485 -])# AC_LIBTOOL_LANG_CXX_CONFIG
8486 +# Used on cygwin: assembler.
8487 +AS="$AS"
8488
8489 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
8490 -# ------------------------
8491 -# Figure out "hidden" library dependencies from verbose
8492 -# compiler output when linking a shared library.
8493 -# Parse the compiler output and extract the necessary
8494 -# objects, libraries and library flags.
8495 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
8496 -dnl we can't use the lt_simple_compile_test_code here,
8497 -dnl because it contains code intended for an executable,
8498 -dnl not a library. It's possible we should let each
8499 -dnl tag define a new lt_????_link_test_code variable,
8500 -dnl but it's only used here...
8501 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
8502 -int a;
8503 -void foo (void) { a = 0; }
8504 -EOF
8505 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
8506 -class Foo
8507 -{
8508 -public:
8509 - Foo (void) { a = 0; }
8510 -private:
8511 - int a;
8512 -};
8513 -EOF
8514 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
8515 - subroutine foo
8516 - implicit none
8517 - integer*4 a
8518 - a=0
8519 - return
8520 - end
8521 -EOF
8522 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
8523 -public class foo {
8524 - private int a;
8525 - public void bar (void) {
8526 - a = 0;
8527 - }
8528 -};
8529 -EOF
8530 -])
8531 -dnl Parse the compiler output and extract the necessary
8532 -dnl objects, libraries and library flags.
8533 -if AC_TRY_EVAL(ac_compile); then
8534 - # Parse the compiler output and extract the necessary
8535 - # objects, libraries and library flags.
8536 +# The name of the directory that contains temporary libtool files.
8537 +objdir=$objdir
8538
8539 - # Sentinel used to keep track of whether or not we are before
8540 - # the conftest object file.
8541 - pre_test_object_deps_done=no
8542 +# How to create reloadable object files.
8543 +reload_flag=$lt_reload_flag
8544 +reload_cmds=$lt_reload_cmds
8545
8546 - # The `*' in the case matches for architectures that use `case' in
8547 - # $output_verbose_cmd can trigger glob expansion during the loop
8548 - # eval without this substitution.
8549 - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
8550 +# How to pass a linker flag through the compiler.
8551 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
8552
8553 - for p in `eval $output_verbose_link_cmd`; do
8554 - case $p in
8555 +# Object file suffix (normally "o").
8556 +objext="$ac_objext"
8557
8558 - -L* | -R* | -l*)
8559 - # Some compilers place space between "-{L,R}" and the path.
8560 - # Remove the space.
8561 - if test $p = "-L" \
8562 - || test $p = "-R"; then
8563 - prev=$p
8564 - continue
8565 - else
8566 - prev=
8567 - fi
8568 +# Old archive suffix (normally "a").
8569 +libext="$libext"
8570
8571 - if test "$pre_test_object_deps_done" = no; then
8572 - case $p in
8573 - -L* | -R*)
8574 - # Internal compiler library paths should come after those
8575 - # provided the user. The postdeps already come after the
8576 - # user supplied libs so there is no need to process them.
8577 - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
8578 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
8579 - else
8580 - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
8581 - fi
8582 - ;;
8583 - # The "-l" case would never come before the object being
8584 - # linked, so don't bother handling this case.
8585 - esac
8586 - else
8587 - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
8588 - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
8589 - else
8590 - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
8591 - fi
8592 - fi
8593 - ;;
8594 +# Shared library suffix (normally ".so").
8595 +shrext_cmds='$shrext_cmds'
8596
8597 - *.$objext)
8598 - # This assumes that the test object file only shows up
8599 - # once in the compiler output.
8600 - if test "$p" = "conftest.$objext"; then
8601 - pre_test_object_deps_done=yes
8602 - continue
8603 - fi
8604 +# Executable file suffix (normally "").
8605 +exeext="$exeext"
8606
8607 - if test "$pre_test_object_deps_done" = no; then
8608 - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
8609 - _LT_AC_TAGVAR(predep_objects, $1)="$p"
8610 - else
8611 - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
8612 - fi
8613 - else
8614 - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
8615 - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
8616 - else
8617 - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
8618 - fi
8619 - fi
8620 - ;;
8621 +# Additional compiler flags for building library objects.
8622 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
8623 +pic_mode=$pic_mode
8624
8625 - *) ;; # Ignore the rest.
8626 +# What is the maximum length of a command?
8627 +max_cmd_len=$lt_cv_sys_max_cmd_len
8628
8629 - esac
8630 - done
8631 +# Does compiler simultaneously support -c and -o options?
8632 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
8633
8634 - # Clean up.
8635 - rm -f a.out a.exe
8636 -else
8637 - echo "libtool.m4: error: problem compiling $1 test program"
8638 -fi
8639 +# Must we lock files when doing compilation?
8640 +need_locks=$lt_need_locks
8641
8642 -$rm -f confest.$objext
8643 +# Do we need the lib prefix for modules?
8644 +need_lib_prefix=$need_lib_prefix
8645
8646 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
8647 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
8648 -esac
8649 -])# AC_LIBTOOL_POSTDEP_PREDEP
8650 +# Do we need a version for libraries?
8651 +need_version=$need_version
8652
8653 -# AC_LIBTOOL_LANG_F77_CONFIG
8654 -# ------------------------
8655 -# Ensure that the configuration vars for the C compiler are
8656 -# suitably defined. Those variables are subsequently used by
8657 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
8658 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
8659 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
8660 -[AC_REQUIRE([AC_PROG_F77])
8661 -AC_LANG_PUSH(Fortran 77)
8662 +# Whether dlopen is supported.
8663 +dlopen_support=$enable_dlopen
8664
8665 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8666 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
8667 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
8668 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
8669 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
8670 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
8671 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
8672 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
8673 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
8674 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
8675 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
8676 -_LT_AC_TAGVAR(module_cmds, $1)=
8677 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
8678 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
8679 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8680 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
8681 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
8682 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
8683 +# Whether dlopen of programs is supported.
8684 +dlopen_self=$enable_dlopen_self
8685
8686 -# Source file extension for f77 test sources.
8687 -ac_ext=f
8688 +# Whether dlopen of statically linked programs is supported.
8689 +dlopen_self_static=$enable_dlopen_self_static
8690
8691 -# Object file extension for compiled f77 test sources.
8692 -objext=o
8693 -_LT_AC_TAGVAR(objext, $1)=$objext
8694 +# Compiler flag to prevent dynamic linking.
8695 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
8696
8697 -# Code to be used in simple compile tests
8698 -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
8699 +# Compiler flag to turn off builtin functions.
8700 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
8701
8702 -# Code to be used in simple link tests
8703 -lt_simple_link_test_code=" program t\n end\n"
8704 +# Compiler flag to allow reflexive dlopens.
8705 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
8706
8707 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8708 -_LT_AC_SYS_COMPILER
8709 +# Compiler flag to generate shared objects directly from archives.
8710 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
8711
8712 -# Allow CC to be a program name with arguments.
8713 -lt_save_CC="$CC"
8714 -CC=${F77-"f77"}
8715 -compiler=$CC
8716 -_LT_AC_TAGVAR(compiler, $1)=$CC
8717 -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
8718 +# Compiler flag to generate thread-safe objects.
8719 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
8720
8721 -AC_MSG_CHECKING([if libtool supports shared libraries])
8722 -AC_MSG_RESULT([$can_build_shared])
8723 +# Library versioning type.
8724 +version_type=$version_type
8725
8726 -AC_MSG_CHECKING([whether to build shared libraries])
8727 -test "$can_build_shared" = "no" && enable_shared=no
8728 +# Format of library name prefix.
8729 +libname_spec=$lt_libname_spec
8730
8731 -# On AIX, shared libraries and static libraries use the same namespace, and
8732 -# are all built from PIC.
8733 -case "$host_os" in
8734 -aix3*)
8735 - test "$enable_shared" = yes && enable_static=no
8736 - if test -n "$RANLIB"; then
8737 - archive_cmds="$archive_cmds~\$RANLIB \$lib"
8738 - postinstall_cmds='$RANLIB $lib'
8739 - fi
8740 - ;;
8741 -aix4* | aix5*)
8742 - test "$enable_shared" = yes && enable_static=no
8743 - ;;
8744 -esac
8745 -AC_MSG_RESULT([$enable_shared])
8746 +# List of archive names. First name is the real one, the rest are links.
8747 +# The last name is the one that the linker finds with -lNAME.
8748 +library_names_spec=$lt_library_names_spec
8749
8750 -AC_MSG_CHECKING([whether to build static libraries])
8751 -# Make sure either enable_shared or enable_static is yes.
8752 -test "$enable_shared" = yes || enable_static=yes
8753 -AC_MSG_RESULT([$enable_static])
8754 +# The coded name of the library, if different from the real name.
8755 +soname_spec=$lt_soname_spec
8756
8757 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
8758 +# Commands used to build and install an old-style archive.
8759 +RANLIB=$lt_RANLIB
8760 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
8761 +old_postinstall_cmds=$lt_old_postinstall_cmds
8762 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
8763
8764 -_LT_AC_TAGVAR(GCC, $1)="$G77"
8765 -_LT_AC_TAGVAR(LD, $1)="$LD"
8766 +# Create an old-style archive from a shared archive.
8767 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
8768
8769 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
8770 -AC_LIBTOOL_PROG_CC_C_O($1)
8771 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
8772 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
8773 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
8774 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
8775 -AC_LIBTOOL_SYS_LIB_STRIP
8776 +# Create a temporary old-style archive to link instead of a shared archive.
8777 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
8778
8779 +# Commands used to build and install a shared archive.
8780 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
8781 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
8782 +postinstall_cmds=$lt_postinstall_cmds
8783 +postuninstall_cmds=$lt_postuninstall_cmds
8784
8785 -AC_LIBTOOL_CONFIG($1)
8786 +# Commands used to build a loadable module (assumed same as above if empty)
8787 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
8788 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
8789
8790 -AC_LANG_POP
8791 -CC="$lt_save_CC"
8792 -])# AC_LIBTOOL_LANG_F77_CONFIG
8793 +# Commands to strip libraries.
8794 +old_striplib=$lt_old_striplib
8795 +striplib=$lt_striplib
8796
8797 +# Dependencies to place before the objects being linked to create a
8798 +# shared library.
8799 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
8800
8801 -# AC_LIBTOOL_LANG_GCJ_CONFIG
8802 -# --------------------------
8803 -# Ensure that the configuration vars for the C compiler are
8804 -# suitably defined. Those variables are subsequently used by
8805 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
8806 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
8807 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
8808 -[AC_LANG_SAVE
8809 +# Dependencies to place after the objects being linked to create a
8810 +# shared library.
8811 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
8812
8813 -# Source file extension for Java test sources.
8814 -ac_ext=java
8815 +# Dependencies to place before the objects being linked to create a
8816 +# shared library.
8817 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
8818
8819 -# Object file extension for compiled Java test sources.
8820 -objext=o
8821 -_LT_AC_TAGVAR(objext, $1)=$objext
8822 +# Dependencies to place after the objects being linked to create a
8823 +# shared library.
8824 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
8825
8826 -# Code to be used in simple compile tests
8827 -lt_simple_compile_test_code="class foo {}\n"
8828 +# The library search path used internally by the compiler when linking
8829 +# a shared library.
8830 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
8831
8832 -# Code to be used in simple link tests
8833 -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
8834 +# Method to check whether dependent libraries are shared objects.
8835 +deplibs_check_method=$lt_deplibs_check_method
8836
8837 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8838 -_LT_AC_SYS_COMPILER
8839 +# Command to use when deplibs_check_method == file_magic.
8840 +file_magic_cmd=$lt_file_magic_cmd
8841
8842 -# Allow CC to be a program name with arguments.
8843 -lt_save_CC="$CC"
8844 -CC=${GCJ-"gcj"}
8845 -compiler=$CC
8846 -_LT_AC_TAGVAR(compiler, $1)=$CC
8847 +# Flag that allows shared libraries with undefined symbols to be built.
8848 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
8849
8850 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
8851 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
8852 +# Flag that forces no undefined symbols.
8853 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
8854
8855 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
8856 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
8857 -AC_LIBTOOL_PROG_CC_C_O($1)
8858 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
8859 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
8860 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
8861 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
8862 -AC_LIBTOOL_SYS_LIB_STRIP
8863 -AC_LIBTOOL_DLOPEN_SELF($1)
8864 +# Commands used to finish a libtool library installation in a directory.
8865 +finish_cmds=$lt_finish_cmds
8866
8867 -AC_LIBTOOL_CONFIG($1)
8868 +# Same as above, but a single script fragment to be evaled but not shown.
8869 +finish_eval=$lt_finish_eval
8870
8871 -AC_LANG_RESTORE
8872 -CC="$lt_save_CC"
8873 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
8874 +# Take the output of nm and produce a listing of raw symbols and C names.
8875 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8876
8877 +# Transform the output of nm in a proper C declaration
8878 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8879
8880 -# AC_LIBTOOL_LANG_RC_CONFIG
8881 -# --------------------------
8882 -# Ensure that the configuration vars for the Windows resource compiler are
8883 -# suitably defined. Those variables are subsequently used by
8884 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
8885 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
8886 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
8887 -[AC_LANG_SAVE
8888 +# Transform the output of nm in a C name address pair
8889 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8890
8891 -# Source file extension for RC test sources.
8892 -ac_ext=rc
8893 +# This is the shared library runtime path variable.
8894 +runpath_var=$runpath_var
8895
8896 -# Object file extension for compiled RC test sources.
8897 -objext=o
8898 -_LT_AC_TAGVAR(objext, $1)=$objext
8899 +# This is the shared library path variable.
8900 +shlibpath_var=$shlibpath_var
8901
8902 -# Code to be used in simple compile tests
8903 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
8904 +# Is shlibpath searched before the hard-coded library search path?
8905 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8906
8907 -# Code to be used in simple link tests
8908 -lt_simple_link_test_code="$lt_simple_compile_test_code"
8909 +# How to hardcode a shared library path into an executable.
8910 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
8911
8912 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8913 -_LT_AC_SYS_COMPILER
8914 +# Whether we should hardcode library paths into libraries.
8915 +hardcode_into_libs=$hardcode_into_libs
8916
8917 -# Allow CC to be a program name with arguments.
8918 -lt_save_CC="$CC"
8919 -CC=${RC-"windres"}
8920 -compiler=$CC
8921 -_LT_AC_TAGVAR(compiler, $1)=$CC
8922 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8923 +# Flag to hardcode \$libdir into a binary during linking.
8924 +# This must work even if \$libdir does not exist.
8925 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
8926
8927 -AC_LIBTOOL_CONFIG($1)
8928 +# If ld is used when linking, flag to hardcode \$libdir into
8929 +# a binary during linking. This must work even if \$libdir does
8930 +# not exist.
8931 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
8932
8933 -AC_LANG_RESTORE
8934 -CC="$lt_save_CC"
8935 -])# AC_LIBTOOL_LANG_RC_CONFIG
8936 +# Whether we need a single -rpath flag with a separated argument.
8937 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
8938
8939 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8940 +# resulting binary.
8941 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
8942
8943 -# AC_LIBTOOL_CONFIG([TAGNAME])
8944 -# ----------------------------
8945 -# If TAGNAME is not passed, then create an initial libtool script
8946 -# with a default configuration from the untagged config vars. Otherwise
8947 -# add code to config.status for appending the configuration named by
8948 -# TAGNAME from the matching tagged config vars.
8949 -AC_DEFUN([AC_LIBTOOL_CONFIG],
8950 -[# The else clause should only fire when bootstrapping the
8951 -# libtool distribution, otherwise you forgot to ship ltmain.sh
8952 -# with your package, and you will get complaints that there are
8953 -# no rules to generate ltmain.sh.
8954 -if test -f "$ltmain"; then
8955 - # See if we are running on zsh, and set the options which allow our commands through
8956 - # without removal of \ escapes.
8957 - if test -n "${ZSH_VERSION+set}" ; then
8958 - setopt NO_GLOB_SUBST
8959 - fi
8960 - # Now quote all the things that may contain metacharacters while being
8961 - # careful not to overquote the AC_SUBSTed values. We take copies of the
8962 - # variables and quote the copies for generation of the libtool script.
8963 - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8964 - SED SHELL STRIP \
8965 - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8966 - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8967 - deplibs_check_method reload_flag reload_cmds need_locks \
8968 - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8969 - lt_cv_sys_global_symbol_to_c_name_address \
8970 - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8971 - old_postinstall_cmds old_postuninstall_cmds \
8972 - _LT_AC_TAGVAR(compiler, $1) \
8973 - _LT_AC_TAGVAR(CC, $1) \
8974 - _LT_AC_TAGVAR(LD, $1) \
8975 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
8976 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
8977 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
8978 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
8979 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
8980 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
8981 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
8982 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
8983 - _LT_AC_TAGVAR(old_archive_cmds, $1) \
8984 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
8985 - _LT_AC_TAGVAR(predep_objects, $1) \
8986 - _LT_AC_TAGVAR(postdep_objects, $1) \
8987 - _LT_AC_TAGVAR(predeps, $1) \
8988 - _LT_AC_TAGVAR(postdeps, $1) \
8989 - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
8990 - _LT_AC_TAGVAR(archive_cmds, $1) \
8991 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
8992 - _LT_AC_TAGVAR(postinstall_cmds, $1) \
8993 - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
8994 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
8995 - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
8996 - _LT_AC_TAGVAR(no_undefined_flag, $1) \
8997 - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
8998 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
8999 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
9000 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
9001 - _LT_AC_TAGVAR(hardcode_automatic, $1) \
9002 - _LT_AC_TAGVAR(module_cmds, $1) \
9003 - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
9004 - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
9005 - _LT_AC_TAGVAR(exclude_expsyms, $1) \
9006 - _LT_AC_TAGVAR(include_expsyms, $1); do
9007 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9008 +# resulting binary.
9009 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
9010
9011 - case $var in
9012 - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
9013 - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
9014 - _LT_AC_TAGVAR(archive_cmds, $1) | \
9015 - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
9016 - _LT_AC_TAGVAR(module_cmds, $1) | \
9017 - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
9018 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
9019 - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
9020 - extract_expsyms_cmds | reload_cmds | finish_cmds | \
9021 - postinstall_cmds | postuninstall_cmds | \
9022 - old_postinstall_cmds | old_postuninstall_cmds | \
9023 - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9024 - # Double-quote double-evaled strings.
9025 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9026 - ;;
9027 - *)
9028 - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9029 - ;;
9030 - esac
9031 - done
9032 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9033 +# the resulting binary.
9034 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
9035
9036 - case $lt_echo in
9037 - *'\[$]0 --fallback-echo"')
9038 - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
9039 - ;;
9040 - esac
9041 +# Set to yes if building a shared library automatically hardcodes DIR into the library
9042 +# and all subsequent libraries and executables linked against it.
9043 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
9044
9045 -ifelse([$1], [],
9046 - [cfgfile="${ofile}T"
9047 - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9048 - $rm -f "$cfgfile"
9049 - AC_MSG_NOTICE([creating $ofile])],
9050 - [cfgfile="$ofile"])
9051 +# Variables whose values should be saved in libtool wrapper scripts and
9052 +# restored at relink time.
9053 +variables_saved_for_relink="$variables_saved_for_relink"
9054
9055 - cat <<__EOF__ >> "$cfgfile"
9056 -ifelse([$1], [],
9057 -[#! $SHELL
9058 +# Whether libtool must link a program against all its dependency libraries.
9059 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
9060
9061 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9062 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9063 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9064 -#
9065 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9066 -# Free Software Foundation, Inc.
9067 -#
9068 -# This file is part of GNU Libtool:
9069 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9070 -#
9071 -# This program is free software; you can redistribute it and/or modify
9072 -# it under the terms of the GNU General Public License as published by
9073 -# the Free Software Foundation; either version 2 of the License, or
9074 -# (at your option) any later version.
9075 -#
9076 -# This program is distributed in the hope that it will be useful, but
9077 -# WITHOUT ANY WARRANTY; without even the implied warranty of
9078 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9079 -# General Public License for more details.
9080 -#
9081 -# You should have received a copy of the GNU General Public License
9082 -# along with this program; if not, write to the Free Software
9083 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9084 -#
9085 -# As a special exception to the GNU General Public License, if you
9086 -# distribute this file as part of a program that contains a
9087 -# configuration script generated by Autoconf, you may include it under
9088 -# the same distribution terms that you use for the rest of that program.
9089 +# Compile-time system search path for libraries
9090 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9091
9092 -# A sed program that does not truncate output.
9093 -SED=$lt_SED
9094 +# Run-time system search path for libraries
9095 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9096
9097 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9098 -Xsed="$SED -e s/^X//"
9099 +# Fix the shell variable \$srcfile for the compiler.
9100 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
9101
9102 -# The HP-UX ksh and POSIX shell print the target directory to stdout
9103 -# if CDPATH is set.
9104 -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9105 +# Set to yes if exported symbols are required.
9106 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
9107
9108 -# The names of the tagged configurations supported by this script.
9109 -available_tags=
9110 +# The commands to list exported symbols.
9111 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
9112
9113 -# ### BEGIN LIBTOOL CONFIG],
9114 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
9115 +# The commands to extract the exported symbol list from a shared archive.
9116 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
9117
9118 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9119 +# Symbols that should not be listed in the preloaded symbols.
9120 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
9121
9122 -# Shell to use when invoking shell scripts.
9123 -SHELL=$lt_SHELL
9124 +# Symbols that must always be exported.
9125 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
9126
9127 -# Whether or not to build shared libraries.
9128 -build_libtool_libs=$enable_shared
9129 +ifelse([$1],[],
9130 +[# ### END LIBTOOL CONFIG],
9131 +[# ### END LIBTOOL TAG CONFIG: $tagname])
9132
9133 -# Whether or not to build static libraries.
9134 -build_old_libs=$enable_static
9135 +__EOF__
9136
9137 -# Whether or not to add -lc for building shared libraries.
9138 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
9139 +ifelse([$1],[], [
9140 + case $host_os in
9141 + aix3*)
9142 + cat <<\EOF >> "$cfgfile"
9143
9144 -# Whether or not to disallow shared libs when runtime libs are static
9145 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
9146 +# AIX sometimes has problems with the GCC collect2 program. For some
9147 +# reason, if we set the COLLECT_NAMES environment variable, the problems
9148 +# vanish in a puff of smoke.
9149 +if test "X${COLLECT_NAMES+set}" != Xset; then
9150 + COLLECT_NAMES=
9151 + export COLLECT_NAMES
9152 +fi
9153 +EOF
9154 + ;;
9155 + esac
9156
9157 -# Whether or not to optimize for fast installation.
9158 -fast_install=$enable_fast_install
9159 + # We use sed instead of cat because bash on DJGPP gets confused if
9160 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
9161 + # text mode, it properly converts lines to CR/LF. This bash problem
9162 + # is reportedly fixed, but why not run on old versions too?
9163 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9164
9165 -# The host system.
9166 -host_alias=$host_alias
9167 -host=$host
9168 + mv -f "$cfgfile" "$ofile" || \
9169 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9170 + chmod +x "$ofile"
9171 +])
9172 +else
9173 + # If there is no Makefile yet, we rely on a make rule to execute
9174 + # `config.status --recheck' to rerun these tests and create the
9175 + # libtool script then.
9176 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9177 + if test -f "$ltmain_in"; then
9178 + test -f Makefile && make "$ltmain"
9179 + fi
9180 +fi
9181 +])# AC_LIBTOOL_CONFIG
9182
9183 -# An echo program that does not interpret backslashes.
9184 -echo=$lt_echo
9185
9186 -# The archiver.
9187 -AR=$lt_AR
9188 -AR_FLAGS=$lt_AR_FLAGS
9189 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
9190 +# -------------------------------------------
9191 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
9192 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
9193
9194 -# A C compiler.
9195 -LTCC=$lt_LTCC
9196 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
9197
9198 -# A language-specific compiler.
9199 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
9200 +if test "$GCC" = yes; then
9201 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
9202
9203 -# Is the compiler the GNU C compiler?
9204 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
9205 + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
9206 + lt_cv_prog_compiler_rtti_exceptions,
9207 + [-fno-rtti -fno-exceptions], [],
9208 + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
9209 +fi
9210 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
9211
9212 -# An ERE matcher.
9213 -EGREP=$lt_EGREP
9214
9215 -# The linker used to build libraries.
9216 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
9217 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9218 +# ---------------------------------
9219 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
9220 +[AC_REQUIRE([AC_CANONICAL_HOST])
9221 +AC_REQUIRE([AC_PROG_NM])
9222 +AC_REQUIRE([AC_OBJEXT])
9223 +# Check for command to grab the raw symbol name followed by C symbol from nm.
9224 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
9225 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
9226 +[
9227 +# These are sane defaults that work on at least a few old systems.
9228 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9229
9230 -# Whether we need hard or soft links.
9231 -LN_S=$lt_LN_S
9232 +# Character class describing NM global symbol codes.
9233 +symcode='[[BCDEGRST]]'
9234
9235 -# A BSD-compatible nm program.
9236 -NM=$lt_NM
9237 +# Regexp to match symbols that can be accessed directly from C.
9238 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
9239
9240 -# A symbol stripping program
9241 -STRIP=$lt_STRIP
9242 +# Transform an extracted symbol line into a proper C declaration
9243 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9244
9245 -# Used to examine libraries when file_magic_cmd begins "file"
9246 -MAGIC_CMD=$MAGIC_CMD
9247 -
9248 -# Used on cygwin: DLL creation program.
9249 -DLLTOOL="$DLLTOOL"
9250 -
9251 -# Used on cygwin: object dumper.
9252 -OBJDUMP="$OBJDUMP"
9253 -
9254 -# Used on cygwin: assembler.
9255 -AS="$AS"
9256 -
9257 -# The name of the directory that contains temporary libtool files.
9258 -objdir=$objdir
9259 -
9260 -# How to create reloadable object files.
9261 -reload_flag=$lt_reload_flag
9262 -reload_cmds=$lt_reload_cmds
9263 -
9264 -# How to pass a linker flag through the compiler.
9265 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
9266 -
9267 -# Object file suffix (normally "o").
9268 -objext="$ac_objext"
9269 -
9270 -# Old archive suffix (normally "a").
9271 -libext="$libext"
9272 -
9273 -# Shared library suffix (normally ".so").
9274 -shrext_cmds='$shrext_cmds'
9275 -
9276 -# Executable file suffix (normally "").
9277 -exeext="$exeext"
9278 -
9279 -# Additional compiler flags for building library objects.
9280 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
9281 -pic_mode=$pic_mode
9282 -
9283 -# What is the maximum length of a command?
9284 -max_cmd_len=$lt_cv_sys_max_cmd_len
9285 -
9286 -# Does compiler simultaneously support -c and -o options?
9287 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
9288 -
9289 -# Must we lock files when doing compilation ?
9290 -need_locks=$lt_need_locks
9291 -
9292 -# Do we need the lib prefix for modules?
9293 -need_lib_prefix=$need_lib_prefix
9294 +# Transform an extracted symbol line into symbol name and symbol address
9295 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9296
9297 -# Do we need a version for libraries?
9298 -need_version=$need_version
9299 +# Define system-specific variables.
9300 +case $host_os in
9301 +aix*)
9302 + symcode='[[BCDT]]'
9303 + ;;
9304 +cygwin* | mingw* | pw32*)
9305 + symcode='[[ABCDGISTW]]'
9306 + ;;
9307 +hpux*) # Its linker distinguishes data from code symbols
9308 + if test "$host_cpu" = ia64; then
9309 + symcode='[[ABCDEGRST]]'
9310 + fi
9311 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9312 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9313 + ;;
9314 +linux* | k*bsd*-gnu)
9315 + if test "$host_cpu" = ia64; then
9316 + symcode='[[ABCDGIRSTW]]'
9317 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9318 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9319 + fi
9320 + ;;
9321 +irix* | nonstopux*)
9322 + symcode='[[BCDEGRST]]'
9323 + ;;
9324 +osf*)
9325 + symcode='[[BCDEGQRST]]'
9326 + ;;
9327 +solaris*)
9328 + symcode='[[BDRT]]'
9329 + ;;
9330 +sco3.2v5*)
9331 + symcode='[[DT]]'
9332 + ;;
9333 +sysv4.2uw2*)
9334 + symcode='[[DT]]'
9335 + ;;
9336 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
9337 + symcode='[[ABDT]]'
9338 + ;;
9339 +sysv4)
9340 + symcode='[[DFNSTU]]'
9341 + ;;
9342 +esac
9343
9344 -# Whether dlopen is supported.
9345 -dlopen_support=$enable_dlopen
9346 +# Handle CRLF in mingw tool chain
9347 +opt_cr=
9348 +case $build_os in
9349 +mingw*)
9350 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9351 + ;;
9352 +esac
9353
9354 -# Whether dlopen of programs is supported.
9355 -dlopen_self=$enable_dlopen_self
9356 +# If we're using GNU nm, then use its standard symbol codes.
9357 +case `$NM -V 2>&1` in
9358 +*GNU* | *'with BFD'*)
9359 + symcode='[[ABCDGIRSTW]]' ;;
9360 +esac
9361
9362 -# Whether dlopen of statically linked programs is supported.
9363 -dlopen_self_static=$enable_dlopen_self_static
9364 +# Try without a prefix undercore, then with it.
9365 +for ac_symprfx in "" "_"; do
9366
9367 -# Compiler flag to prevent dynamic linking.
9368 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
9369 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9370 + symxfrm="\\1 $ac_symprfx\\2 \\2"
9371
9372 -# Compiler flag to turn off builtin functions.
9373 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
9374 + # Write the raw and C identifiers.
9375 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9376
9377 -# Compiler flag to allow reflexive dlopens.
9378 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
9379 + # Check to see that the pipe works correctly.
9380 + pipe_works=no
9381
9382 -# Compiler flag to generate shared objects directly from archives.
9383 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
9384 + rm -f conftest*
9385 + cat > conftest.$ac_ext <<EOF
9386 +#ifdef __cplusplus
9387 +extern "C" {
9388 +#endif
9389 +char nm_test_var;
9390 +void nm_test_func(){}
9391 +#ifdef __cplusplus
9392 +}
9393 +#endif
9394 +int main(){nm_test_var='a';nm_test_func();return(0);}
9395 +EOF
9396
9397 -# Compiler flag to generate thread-safe objects.
9398 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
9399 + if AC_TRY_EVAL(ac_compile); then
9400 + # Now try to grab the symbols.
9401 + nlist=conftest.nm
9402 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
9403 + # Try sorting and uniquifying the output.
9404 + if sort "$nlist" | uniq > "$nlist"T; then
9405 + mv -f "$nlist"T "$nlist"
9406 + else
9407 + rm -f "$nlist"T
9408 + fi
9409
9410 -# Library versioning type.
9411 -version_type=$version_type
9412 + # Make sure that we snagged all the symbols we need.
9413 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
9414 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
9415 + cat <<EOF > conftest.$ac_ext
9416 +#ifdef __cplusplus
9417 +extern "C" {
9418 +#endif
9419
9420 -# Format of library name prefix.
9421 -libname_spec=$lt_libname_spec
9422 +EOF
9423 + # Now generate the symbol file.
9424 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9425
9426 -# List of archive names. First name is the real one, the rest are links.
9427 -# The last name is the one that the linker finds with -lNAME.
9428 -library_names_spec=$lt_library_names_spec
9429 + cat <<EOF >> conftest.$ac_ext
9430 +#if defined (__STDC__) && __STDC__
9431 +# define lt_ptr_t void *
9432 +#else
9433 +# define lt_ptr_t char *
9434 +# define const
9435 +#endif
9436
9437 -# The coded name of the library, if different from the real name.
9438 -soname_spec=$lt_soname_spec
9439 +/* The mapping between symbol names and symbols. */
9440 +const struct {
9441 + const char *name;
9442 + lt_ptr_t address;
9443 +}
9444 +lt_preloaded_symbols[[]] =
9445 +{
9446 +EOF
9447 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9448 + cat <<\EOF >> conftest.$ac_ext
9449 + {0, (lt_ptr_t) 0}
9450 +};
9451
9452 -# Commands used to build and install an old-style archive.
9453 -RANLIB=$lt_RANLIB
9454 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
9455 -old_postinstall_cmds=$lt_old_postinstall_cmds
9456 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
9457 +#ifdef __cplusplus
9458 +}
9459 +#endif
9460 +EOF
9461 + # Now try linking the two files.
9462 + mv conftest.$ac_objext conftstm.$ac_objext
9463 + lt_save_LIBS="$LIBS"
9464 + lt_save_CFLAGS="$CFLAGS"
9465 + LIBS="conftstm.$ac_objext"
9466 + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
9467 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
9468 + pipe_works=yes
9469 + fi
9470 + LIBS="$lt_save_LIBS"
9471 + CFLAGS="$lt_save_CFLAGS"
9472 + else
9473 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
9474 + fi
9475 + else
9476 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
9477 + fi
9478 + else
9479 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
9480 + fi
9481 + else
9482 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
9483 + cat conftest.$ac_ext >&5
9484 + fi
9485 + rm -f conftest* conftst*
9486
9487 -# Create an old-style archive from a shared archive.
9488 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
9489 + # Do not use the global_symbol_pipe unless it works.
9490 + if test "$pipe_works" = yes; then
9491 + break
9492 + else
9493 + lt_cv_sys_global_symbol_pipe=
9494 + fi
9495 +done
9496 +])
9497 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
9498 + lt_cv_sys_global_symbol_to_cdecl=
9499 +fi
9500 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9501 + AC_MSG_RESULT(failed)
9502 +else
9503 + AC_MSG_RESULT(ok)
9504 +fi
9505 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
9506
9507 -# Create a temporary old-style archive to link instead of a shared archive.
9508 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
9509
9510 -# Commands used to build and install a shared archive.
9511 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
9512 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
9513 -postinstall_cmds=$lt_postinstall_cmds
9514 -postuninstall_cmds=$lt_postuninstall_cmds
9515 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
9516 +# ---------------------------------------
9517 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
9518 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
9519 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9520 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
9521
9522 -# Commands used to build a loadable module (assumed same as above if empty)
9523 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
9524 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
9525 +AC_MSG_CHECKING([for $compiler option to produce PIC])
9526 + ifelse([$1],[CXX],[
9527 + # C++ specific cases for pic, static, wl, etc.
9528 + if test "$GXX" = yes; then
9529 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9530 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9531
9532 -# Commands to strip libraries.
9533 -old_striplib=$lt_old_striplib
9534 -striplib=$lt_striplib
9535 + case $host_os in
9536 + aix*)
9537 + # All AIX code is PIC.
9538 + if test "$host_cpu" = ia64; then
9539 + # AIX 5 now supports IA64 processor
9540 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9541 + fi
9542 + ;;
9543 + amigaos*)
9544 + # FIXME: we need at least 68020 code to build shared libraries, but
9545 + # adding the `-m68020' flag to GCC prevents building anything better,
9546 + # like `-m68040'.
9547 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
9548 + ;;
9549 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9550 + # PIC is the default for these OSes.
9551 + ;;
9552 + mingw* | os2* | pw32*)
9553 + # This hack is so that the source file can tell whether it is being
9554 + # built for inclusion in a dll (and should export symbols for example).
9555 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
9556 + ;;
9557 + darwin* | rhapsody*)
9558 + # PIC is the default on this platform
9559 + # Common symbols not allowed in MH_DYLIB files
9560 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
9561 + ;;
9562 + *djgpp*)
9563 + # DJGPP does not support shared libraries at all
9564 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9565 + ;;
9566 + interix3*)
9567 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9568 + # Instead, we relocate shared libraries at runtime.
9569 + ;;
9570 + sysv4*MP*)
9571 + if test -d /usr/nec; then
9572 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
9573 + fi
9574 + ;;
9575 + hpux*)
9576 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9577 + # not for PA HP-UX.
9578 + case $host_cpu in
9579 + hppa*64*|ia64*)
9580 + ;;
9581 + *)
9582 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9583 + ;;
9584 + esac
9585 + ;;
9586 + *)
9587 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9588 + ;;
9589 + esac
9590 + else
9591 + case $host_os in
9592 + aix4* | aix5*)
9593 + # All AIX code is PIC.
9594 + if test "$host_cpu" = ia64; then
9595 + # AIX 5 now supports IA64 processor
9596 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9597 + else
9598 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
9599 + fi
9600 + ;;
9601 + chorus*)
9602 + case $cc_basename in
9603 + cxch68*)
9604 + # Green Hills C++ Compiler
9605 + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
9606 + ;;
9607 + esac
9608 + ;;
9609 + darwin*)
9610 + # PIC is the default on this platform
9611 + # Common symbols not allowed in MH_DYLIB files
9612 + case $cc_basename in
9613 + xlc*)
9614 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
9615 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9616 + ;;
9617 + esac
9618 + ;;
9619 + dgux*)
9620 + case $cc_basename in
9621 + ec++*)
9622 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9623 + ;;
9624 + ghcx*)
9625 + # Green Hills C++ Compiler
9626 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9627 + ;;
9628 + *)
9629 + ;;
9630 + esac
9631 + ;;
9632 + freebsd* | dragonfly*)
9633 + # FreeBSD uses GNU C++
9634 + ;;
9635 + hpux9* | hpux10* | hpux11*)
9636 + case $cc_basename in
9637 + CC*)
9638 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9639 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
9640 + if test "$host_cpu" != ia64; then
9641 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
9642 + fi
9643 + ;;
9644 + aCC*)
9645 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9646 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
9647 + case $host_cpu in
9648 + hppa*64*|ia64*)
9649 + # +Z the default
9650 + ;;
9651 + *)
9652 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
9653 + ;;
9654 + esac
9655 + ;;
9656 + *)
9657 + ;;
9658 + esac
9659 + ;;
9660 + interix*)
9661 + # This is c89, which is MS Visual C++ (no shared libs)
9662 + # Anyone wants to do a port?
9663 + ;;
9664 + irix5* | irix6* | nonstopux*)
9665 + case $cc_basename in
9666 + CC*)
9667 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9668 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9669 + # CC pic flag -KPIC is the default.
9670 + ;;
9671 + *)
9672 + ;;
9673 + esac
9674 + ;;
9675 + linux* | k*bsd*-gnu)
9676 + case $cc_basename in
9677 + KCC*)
9678 + # KAI C++ Compiler
9679 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
9680 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9681 + ;;
9682 + icpc* | ecpc*)
9683 + # Intel C++
9684 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9685 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9686 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9687 + ;;
9688 + pgCC*)
9689 + # Portland Group C++ compiler.
9690 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9691 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
9692 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9693 + ;;
9694 + cxx*)
9695 + # Compaq C++
9696 + # Make sure the PIC flag is empty. It appears that all Alpha
9697 + # Linux and Compaq Tru64 Unix objects are PIC.
9698 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9699 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9700 + ;;
9701 + *)
9702 + ;;
9703 + esac
9704 + ;;
9705 + lynxos*)
9706 + ;;
9707 + m88k*)
9708 + ;;
9709 + mvs*)
9710 + case $cc_basename in
9711 + cxx*)
9712 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
9713 + ;;
9714 + *)
9715 + ;;
9716 + esac
9717 + ;;
9718 + netbsd* | netbsdelf*-gnu)
9719 + ;;
9720 + osf3* | osf4* | osf5*)
9721 + case $cc_basename in
9722 + KCC*)
9723 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
9724 + ;;
9725 + RCC*)
9726 + # Rational C++ 2.4.1
9727 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9728 + ;;
9729 + cxx*)
9730 + # Digital/Compaq C++
9731 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9732 + # Make sure the PIC flag is empty. It appears that all Alpha
9733 + # Linux and Compaq Tru64 Unix objects are PIC.
9734 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
9735 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9736 + ;;
9737 + *)
9738 + ;;
9739 + esac
9740 + ;;
9741 + psos*)
9742 + ;;
9743 + solaris*)
9744 + case $cc_basename in
9745 + CC*)
9746 + # Sun C++ 4.2, 5.x and Centerline C++
9747 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9748 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9749 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
9750 + ;;
9751 + gcx*)
9752 + # Green Hills C++ Compiler
9753 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
9754 + ;;
9755 + *)
9756 + ;;
9757 + esac
9758 + ;;
9759 + sunos4*)
9760 + case $cc_basename in
9761 + CC*)
9762 + # Sun C++ 4.x
9763 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9764 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9765 + ;;
9766 + lcc*)
9767 + # Lucid
9768 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
9769 + ;;
9770 + *)
9771 + ;;
9772 + esac
9773 + ;;
9774 + tandem*)
9775 + case $cc_basename in
9776 + NCC*)
9777 + # NonStop-UX NCC 3.20
9778 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9779 + ;;
9780 + *)
9781 + ;;
9782 + esac
9783 + ;;
9784 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9785 + case $cc_basename in
9786 + CC*)
9787 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9788 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9789 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9790 + ;;
9791 + esac
9792 + ;;
9793 + vxworks*)
9794 + ;;
9795 + *)
9796 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
9797 + ;;
9798 + esac
9799 + fi
9800 +],
9801 +[
9802 + if test "$GCC" = yes; then
9803 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9804 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9805
9806 -# Dependencies to place before the objects being linked to create a
9807 -# shared library.
9808 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
9809 + case $host_os in
9810 + aix*)
9811 + # All AIX code is PIC.
9812 + if test "$host_cpu" = ia64; then
9813 + # AIX 5 now supports IA64 processor
9814 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9815 + fi
9816 + ;;
9817
9818 -# Dependencies to place after the objects being linked to create a
9819 -# shared library.
9820 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
9821 + amigaos*)
9822 + # FIXME: we need at least 68020 code to build shared libraries, but
9823 + # adding the `-m68020' flag to GCC prevents building anything better,
9824 + # like `-m68040'.
9825 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
9826 + ;;
9827
9828 -# Dependencies to place before the objects being linked to create a
9829 -# shared library.
9830 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
9831 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9832 + # PIC is the default for these OSes.
9833 + ;;
9834
9835 -# Dependencies to place after the objects being linked to create a
9836 -# shared library.
9837 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
9838 + mingw* | pw32* | os2*)
9839 + # This hack is so that the source file can tell whether it is being
9840 + # built for inclusion in a dll (and should export symbols for example).
9841 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
9842 + ;;
9843
9844 -# The library search path used internally by the compiler when linking
9845 -# a shared library.
9846 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
9847 + darwin* | rhapsody*)
9848 + # PIC is the default on this platform
9849 + # Common symbols not allowed in MH_DYLIB files
9850 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
9851 + ;;
9852
9853 -# Method to check whether dependent libraries are shared objects.
9854 -deplibs_check_method=$lt_deplibs_check_method
9855 + interix3*)
9856 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9857 + # Instead, we relocate shared libraries at runtime.
9858 + ;;
9859
9860 -# Command to use when deplibs_check_method == file_magic.
9861 -file_magic_cmd=$lt_file_magic_cmd
9862 + msdosdjgpp*)
9863 + # Just because we use GCC doesn't mean we suddenly get shared libraries
9864 + # on systems that don't support them.
9865 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
9866 + enable_shared=no
9867 + ;;
9868
9869 -# Flag that allows shared libraries with undefined symbols to be built.
9870 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
9871 + sysv4*MP*)
9872 + if test -d /usr/nec; then
9873 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
9874 + fi
9875 + ;;
9876
9877 -# Flag that forces no undefined symbols.
9878 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
9879 + hpux*)
9880 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9881 + # not for PA HP-UX.
9882 + case $host_cpu in
9883 + hppa*64*|ia64*)
9884 + # +Z the default
9885 + ;;
9886 + *)
9887 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9888 + ;;
9889 + esac
9890 + ;;
9891
9892 -# Commands used to finish a libtool library installation in a directory.
9893 -finish_cmds=$lt_finish_cmds
9894 + *)
9895 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
9896 + ;;
9897 + esac
9898 + else
9899 + # PORTME Check for flag to pass linker flags through the system compiler.
9900 + case $host_os in
9901 + aix*)
9902 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9903 + if test "$host_cpu" = ia64; then
9904 + # AIX 5 now supports IA64 processor
9905 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9906 + else
9907 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
9908 + fi
9909 + ;;
9910 + darwin*)
9911 + # PIC is the default on this platform
9912 + # Common symbols not allowed in MH_DYLIB files
9913 + case $cc_basename in
9914 + xlc*)
9915 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
9916 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9917 + ;;
9918 + esac
9919 + ;;
9920
9921 -# Same as above, but a single script fragment to be evaled but not shown.
9922 -finish_eval=$lt_finish_eval
9923 + mingw* | pw32* | os2*)
9924 + # This hack is so that the source file can tell whether it is being
9925 + # built for inclusion in a dll (and should export symbols for example).
9926 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
9927 + ;;
9928
9929 -# Take the output of nm and produce a listing of raw symbols and C names.
9930 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9931 + hpux9* | hpux10* | hpux11*)
9932 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9933 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9934 + # not for PA HP-UX.
9935 + case $host_cpu in
9936 + hppa*64*|ia64*)
9937 + # +Z the default
9938 + ;;
9939 + *)
9940 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
9941 + ;;
9942 + esac
9943 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
9944 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
9945 + ;;
9946
9947 -# Transform the output of nm in a proper C declaration
9948 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9949 + irix5* | irix6* | nonstopux*)
9950 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9951 + # PIC (with -KPIC) is the default.
9952 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9953 + ;;
9954
9955 -# Transform the output of nm in a C name address pair
9956 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9957 + newsos6)
9958 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9959 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9960 + ;;
9961
9962 -# This is the shared library runtime path variable.
9963 -runpath_var=$runpath_var
9964 + linux* | k*bsd*-gnu)
9965 + case $cc_basename in
9966 + icc* | ecc*)
9967 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9968 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9969 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
9970 + ;;
9971 + pgcc* | pgf77* | pgf90* | pgf95*)
9972 + # Portland Group compilers (*not* the Pentium gcc compiler,
9973 + # which looks to be a dead project)
9974 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9975 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
9976 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9977 + ;;
9978 + ccc*)
9979 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9980 + # All Alpha code is PIC.
9981 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9982 + ;;
9983 + esac
9984 + ;;
9985
9986 -# This is the shared library path variable.
9987 -shlibpath_var=$shlibpath_var
9988 + osf3* | osf4* | osf5*)
9989 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
9990 + # All OSF/1 code is PIC.
9991 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
9992 + ;;
9993
9994 -# Is shlibpath searched before the hard-coded library search path?
9995 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9996 + solaris*)
9997 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
9998 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
9999 + case $cc_basename in
10000 + f77* | f90* | f95*)
10001 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
10002 + *)
10003 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
10004 + esac
10005 + ;;
10006
10007 -# How to hardcode a shared library path into an executable.
10008 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
10009 + sunos4*)
10010 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
10011 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
10012 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10013 + ;;
10014
10015 -# Whether we should hardcode library paths into libraries.
10016 -hardcode_into_libs=$hardcode_into_libs
10017 + sysv4 | sysv4.2uw2* | sysv4.3*)
10018 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10019 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10020 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10021 + ;;
10022
10023 -# Flag to hardcode \$libdir into a binary during linking.
10024 -# This must work even if \$libdir does not exist.
10025 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
10026 + sysv4*MP*)
10027 + if test -d /usr/nec ;then
10028 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
10029 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10030 + fi
10031 + ;;
10032 +
10033 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10034 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10035 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
10036 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10037 + ;;
10038 +
10039 + unicos*)
10040 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10041 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10042 + ;;
10043 +
10044 + uts4*)
10045 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
10046 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
10047 + ;;
10048 +
10049 + *)
10050 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
10051 + ;;
10052 + esac
10053 + fi
10054 +])
10055 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
10056 +
10057 +#
10058 +# Check to make sure the PIC flag actually works.
10059 +#
10060 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
10061 + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
10062 + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
10063 + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
10064 + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
10065 + "" | " "*) ;;
10066 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
10067 + esac],
10068 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10069 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
10070 +fi
10071 +case $host_os in
10072 + # For platforms which do not support PIC, -DPIC is meaningless:
10073 + *djgpp*)
10074 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10075 + ;;
10076 + *)
10077 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
10078 + ;;
10079 +esac
10080
10081 -# If ld is used when linking, flag to hardcode \$libdir into
10082 -# a binary during linking. This must work even if \$libdir does
10083 -# not exist.
10084 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
10085 +#
10086 +# Check to make sure the static flag actually works.
10087 +#
10088 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
10089 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
10090 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
10091 + $lt_tmp_static_flag,
10092 + [],
10093 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
10094 +])
10095
10096 -# Whether we need a single -rpath flag with a separated argument.
10097 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
10098
10099 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10100 -# resulting binary.
10101 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
10102 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
10103 +# ------------------------------------
10104 +# See if the linker supports building shared libraries.
10105 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
10106 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
10107 +ifelse([$1],[CXX],[
10108 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10109 + case $host_os in
10110 + aix4* | aix5*)
10111 + # If we're using GNU nm, then we don't want the "-C" option.
10112 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
10113 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10114 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
10115 + else
10116 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
10117 + fi
10118 + ;;
10119 + pw32*)
10120 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
10121 + ;;
10122 + cygwin* | mingw*)
10123 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
10124 + ;;
10125 + linux* | k*bsd*-gnu)
10126 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
10127 + ;;
10128 + *)
10129 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10130 + ;;
10131 + esac
10132 +],[
10133 + runpath_var=
10134 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
10135 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
10136 + _LT_AC_TAGVAR(archive_cmds, $1)=
10137 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
10138 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
10139 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
10140 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
10141 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
10142 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
10143 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
10144 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
10145 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
10146 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
10147 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
10148 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10149 + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
10150 + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
10151 + _LT_AC_TAGVAR(module_cmds, $1)=
10152 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
10153 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
10154 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10155 + # include_expsyms should be a list of space-separated symbols to be *always*
10156 + # included in the symbol list
10157 + _LT_AC_TAGVAR(include_expsyms, $1)=
10158 + # exclude_expsyms can be an extended regexp of symbols to exclude
10159 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
10160 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10161 + # as well as any symbol that contains `d'.
10162 + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
10163 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10164 + # platforms (ab)use it in PIC code, but their linkers get confused if
10165 + # the symbol is explicitly referenced. Since portable code cannot
10166 + # rely on this symbol name, it's probably fine to never include it in
10167 + # preloaded symbol tables.
10168 + extract_expsyms_cmds=
10169 + # Just being paranoid about ensuring that cc_basename is set.
10170 + _LT_CC_BASENAME([$compiler])
10171 + case $host_os in
10172 + cygwin* | mingw* | pw32*)
10173 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
10174 + # When not using gcc, we currently assume that we are using
10175 + # Microsoft Visual C++.
10176 + if test "$GCC" != yes; then
10177 + with_gnu_ld=no
10178 + fi
10179 + ;;
10180 + interix*)
10181 + # we just hope/assume this is gcc and not c89 (= MSVC++)
10182 + with_gnu_ld=yes
10183 + ;;
10184 + openbsd*)
10185 + with_gnu_ld=no
10186 + ;;
10187 + esac
10188
10189 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10190 -# resulting binary.
10191 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
10192 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
10193 + if test "$with_gnu_ld" = yes; then
10194 + # If archive_cmds runs LD, not CC, wlarc should be empty
10195 + wlarc='${wl}'
10196
10197 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10198 -# the resulting binary.
10199 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
10200 + # Set some defaults for GNU ld with shared library support. These
10201 + # are reset later if shared libraries are not supported. Putting them
10202 + # here allows them to be overridden if necessary.
10203 + runpath_var=LD_RUN_PATH
10204 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
10205 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10206 + # ancient GNU ld didn't support --whole-archive et. al.
10207 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10208 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10209 + else
10210 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
10211 + fi
10212 + supports_anon_versioning=no
10213 + case `$LD -v 2>/dev/null` in
10214 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
10215 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10216 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10217 + *\ 2.11.*) ;; # other 2.11 versions
10218 + *) supports_anon_versioning=yes ;;
10219 + esac
10220
10221 -# Set to yes if building a shared library automatically hardcodes DIR into the library
10222 -# and all subsequent libraries and executables linked against it.
10223 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
10224 + # See if GNU ld supports shared libraries.
10225 + case $host_os in
10226 + aix3* | aix4* | aix5*)
10227 + # On AIX/PPC, the GNU linker is very broken
10228 + if test "$host_cpu" != ia64; then
10229 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10230 + cat <<EOF 1>&2
10231
10232 -# Variables whose values should be saved in libtool wrapper scripts and
10233 -# restored at relink time.
10234 -variables_saved_for_relink="$variables_saved_for_relink"
10235 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10236 +*** to be unable to reliably create shared libraries on AIX.
10237 +*** Therefore, libtool is disabling shared libraries support. If you
10238 +*** really care for shared libraries, you may want to modify your PATH
10239 +*** so that a non-GNU linker is found, and then restart.
10240
10241 -# Whether libtool must link a program against all its dependency libraries.
10242 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
10243 +EOF
10244 + fi
10245 + ;;
10246
10247 -# Compile-time system search path for libraries
10248 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10249 + amigaos*)
10250 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10251 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10252 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10253
10254 -# Run-time system search path for libraries
10255 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10256 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10257 + # that the semantics of dynamic libraries on AmigaOS, at least up
10258 + # to version 4, is to share data among multiple programs linked
10259 + # with the same dynamic library. Since this doesn't match the
10260 + # behavior of shared libraries on other platforms, we can't use
10261 + # them.
10262 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10263 + ;;
10264
10265 -# Fix the shell variable \$srcfile for the compiler.
10266 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
10267 + beos*)
10268 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10269 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10270 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10271 + # support --undefined. This deserves some investigation. FIXME
10272 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10273 + else
10274 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10275 + fi
10276 + ;;
10277
10278 -# Set to yes if exported symbols are required.
10279 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
10280 + cygwin* | mingw* | pw32*)
10281 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
10282 + # as there is no search path for DLLs.
10283 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10284 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10285 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
10286 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
10287 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
10288
10289 -# The commands to list exported symbols.
10290 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
10291 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10292 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10293 + # If the export-symbols file already is a .def file (1st line
10294 + # is EXPORTS), use it as is; otherwise, prepend...
10295 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10296 + cp $export_symbols $output_objdir/$soname.def;
10297 + else
10298 + echo EXPORTS > $output_objdir/$soname.def;
10299 + cat $export_symbols >> $output_objdir/$soname.def;
10300 + fi~
10301 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10302 + else
10303 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10304 + fi
10305 + ;;
10306
10307 -# The commands to extract the exported symbol list from a shared archive.
10308 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
10309 + interix3*)
10310 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
10311 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10312 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10313 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10314 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10315 + # Instead, shared libraries are loaded at an image base (0x10000000 by
10316 + # default) and relocated if they conflict, which is a slow very memory
10317 + # consuming and fragmenting process. To avoid this, we pick a random,
10318 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10319 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10320 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10321 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
10322 + ;;
10323
10324 -# Symbols that should not be listed in the preloaded symbols.
10325 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
10326 + linux* | k*bsd*-gnu)
10327 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10328 + tmp_addflag=
10329 + case $cc_basename,$host_cpu in
10330 + pgcc*) # Portland Group C compiler
10331 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10332 + tmp_addflag=' $pic_flag'
10333 + ;;
10334 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10335 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10336 + tmp_addflag=' $pic_flag -Mnomain' ;;
10337 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10338 + tmp_addflag=' -i_dynamic' ;;
10339 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10340 + tmp_addflag=' -i_dynamic -nofor_main' ;;
10341 + ifc* | ifort*) # Intel Fortran compiler
10342 + tmp_addflag=' -nofor_main' ;;
10343 + esac
10344 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10345
10346 -# Symbols that must always be exported.
10347 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
10348 + if test $supports_anon_versioning = yes; then
10349 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
10350 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10351 + $echo "local: *; };" >> $output_objdir/$libname.ver~
10352 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10353 + fi
10354 + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
10355 + else
10356 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10357 + fi
10358 + ;;
10359
10360 -ifelse([$1],[],
10361 -[# ### END LIBTOOL CONFIG],
10362 -[# ### END LIBTOOL TAG CONFIG: $tagname])
10363 + netbsd* | netbsdelf*-gnu)
10364 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10365 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10366 + wlarc=
10367 + else
10368 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10369 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10370 + fi
10371 + ;;
10372
10373 -__EOF__
10374 + solaris*)
10375 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10376 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10377 + cat <<EOF 1>&2
10378
10379 -ifelse([$1],[], [
10380 - case $host_os in
10381 - aix3*)
10382 - cat <<\EOF >> "$cfgfile"
10383 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10384 +*** create shared libraries on Solaris systems. Therefore, libtool
10385 +*** is disabling shared libraries support. We urge you to upgrade GNU
10386 +*** binutils to release 2.9.1 or newer. Another option is to modify
10387 +*** your PATH or compiler configuration so that the native linker is
10388 +*** used, and then restart.
10389
10390 -# AIX sometimes has problems with the GCC collect2 program. For some
10391 -# reason, if we set the COLLECT_NAMES environment variable, the problems
10392 -# vanish in a puff of smoke.
10393 -if test "X${COLLECT_NAMES+set}" != Xset; then
10394 - COLLECT_NAMES=
10395 - export COLLECT_NAMES
10396 -fi
10397 EOF
10398 - ;;
10399 - esac
10400 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10401 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10402 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10403 + else
10404 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10405 + fi
10406 + ;;
10407
10408 - # We use sed instead of cat because bash on DJGPP gets confused if
10409 - # if finds mixed CR/LF and LF-only lines. Since sed operates in
10410 - # text mode, it properly converts lines to CR/LF. This bash problem
10411 - # is reportedly fixed, but why not run on old versions too?
10412 - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10413 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10414 + case `$LD -v 2>&1` in
10415 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
10416 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10417 + cat <<_LT_EOF 1>&2
10418 +
10419 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10420 +*** reliably create shared libraries on SCO systems. Therefore, libtool
10421 +*** is disabling shared libraries support. We urge you to upgrade GNU
10422 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10423 +*** your PATH or compiler configuration so that the native linker is
10424 +*** used, and then restart.
10425
10426 - mv -f "$cfgfile" "$ofile" || \
10427 - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10428 - chmod +x "$ofile"
10429 -])
10430 -else
10431 - # If there is no Makefile yet, we rely on a make rule to execute
10432 - # `config.status --recheck' to rerun these tests and create the
10433 - # libtool script then.
10434 - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10435 - if test -f "$ltmain_in"; then
10436 - test -f Makefile && make "$ltmain"
10437 - fi
10438 -fi
10439 -])# AC_LIBTOOL_CONFIG
10440 +_LT_EOF
10441 + ;;
10442 + *)
10443 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10444 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10445 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10446 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10447 + else
10448 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10449 + fi
10450 + ;;
10451 + esac
10452 + ;;
10453
10454 + sunos4*)
10455 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10456 + wlarc=
10457 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10458 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10459 + ;;
10460
10461 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
10462 -# -------------------------------------------
10463 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
10464 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
10465 + *)
10466 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10467 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10468 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10469 + else
10470 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10471 + fi
10472 + ;;
10473 + esac
10474
10475 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
10476 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
10477 + runpath_var=
10478 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
10479 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
10480 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
10481 + fi
10482 + else
10483 + # PORTME fill in a description of your system's linker (not GNU ld)
10484 + case $host_os in
10485 + aix3*)
10486 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10487 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
10488 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10489 + # Note: this linker hardcodes the directories in LIBPATH if there
10490 + # are no directories specified by -L.
10491 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10492 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10493 + # Neither direct hardcoding nor static linking is supported with a
10494 + # broken collect2.
10495 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
10496 + fi
10497 + ;;
10498
10499 -if test "$GCC" = yes; then
10500 - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
10501 + aix4* | aix5*)
10502 + if test "$host_cpu" = ia64; then
10503 + # On IA64, the linker does run time linking by default, so we don't
10504 + # have to do anything special.
10505 + aix_use_runtimelinking=no
10506 + exp_sym_flag='-Bexport'
10507 + no_entry_flag=""
10508 + else
10509 + # If we're using GNU nm, then we don't want the "-C" option.
10510 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
10511 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10512 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
10513 + else
10514 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
10515 + fi
10516 + aix_use_runtimelinking=no
10517
10518 - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
10519 - lt_cv_prog_compiler_rtti_exceptions,
10520 - [-fno-rtti -fno-exceptions], [],
10521 - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
10522 -fi
10523 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
10524 + # Test if we are trying to use run time linking or normal
10525 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10526 + # need to do runtime linking.
10527 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
10528 + for ld_flag in $LDFLAGS; do
10529 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10530 + aix_use_runtimelinking=yes
10531 + break
10532 + fi
10533 + done
10534 + ;;
10535 + esac
10536
10537 + exp_sym_flag='-bexport'
10538 + no_entry_flag='-bnoentry'
10539 + fi
10540
10541 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
10542 -# ---------------------------------
10543 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
10544 -[AC_REQUIRE([AC_CANONICAL_HOST])
10545 -AC_REQUIRE([AC_PROG_NM])
10546 -AC_REQUIRE([AC_OBJEXT])
10547 -# Check for command to grab the raw symbol name followed by C symbol from nm.
10548 -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
10549 -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
10550 -[
10551 -# These are sane defaults that work on at least a few old systems.
10552 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10553 + # When large executables or shared objects are built, AIX ld can
10554 + # have problems creating the table of contents. If linking a library
10555 + # or program results in "error TOC overflow" add -mminimal-toc to
10556 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10557 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10558
10559 -# Character class describing NM global symbol codes.
10560 -symcode='[[BCDEGRST]]'
10561 + _LT_AC_TAGVAR(archive_cmds, $1)=''
10562 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10563 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
10564 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10565
10566 -# Regexp to match symbols that can be accessed directly from C.
10567 -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
10568 + if test "$GCC" = yes; then
10569 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
10570 + # We only want to do this on AIX 4.2 and lower, the check
10571 + # below for broken collect2 doesn't work under 4.3+
10572 + collect2name=`${CC} -print-prog-name=collect2`
10573 + if test -f "$collect2name" && \
10574 + strings "$collect2name" | grep resolve_lib_name >/dev/null
10575 + then
10576 + # We have reworked collect2
10577 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10578 + else
10579 + # We have old collect2
10580 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
10581 + # It fails to find uninstalled libraries when the uninstalled
10582 + # path is not listed in the libpath. Setting hardcode_minus_L
10583 + # to unsupported forces relinking
10584 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10585 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10586 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
10587 + fi
10588 + ;;
10589 + esac
10590 + shared_flag='-shared'
10591 + if test "$aix_use_runtimelinking" = yes; then
10592 + shared_flag="$shared_flag "'${wl}-G'
10593 + fi
10594 + else
10595 + # not using gcc
10596 + if test "$host_cpu" = ia64; then
10597 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10598 + # chokes on -Wl,-G. The following line is correct:
10599 + shared_flag='-G'
10600 + else
10601 + if test "$aix_use_runtimelinking" = yes; then
10602 + shared_flag='${wl}-G'
10603 + else
10604 + shared_flag='${wl}-bM:SRE'
10605 + fi
10606 + fi
10607 + fi
10608
10609 -# Transform the above into a raw symbol and a C symbol.
10610 -symxfrm='\1 \2\3 \3'
10611 + # It seems that -bexpall does not export symbols beginning with
10612 + # underscore (_), so it is better to generate a list of symbols to export.
10613 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
10614 + if test "$aix_use_runtimelinking" = yes; then
10615 + # Warning - without using the other runtime loading flags (-brtl),
10616 + # -berok will link without error, but may produce a broken library.
10617 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
10618 + # Determine the default libpath from the value encoded in an empty executable.
10619 + _LT_AC_SYS_LIBPATH_AIX
10620 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
10621 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10622 + else
10623 + if test "$host_cpu" = ia64; then
10624 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
10625 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
10626 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10627 + else
10628 + # Determine the default libpath from the value encoded in an empty executable.
10629 + _LT_AC_SYS_LIBPATH_AIX
10630 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
10631 + # Warning - without using the other run time loading flags,
10632 + # -berok will link without error, but may produce a broken library.
10633 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
10634 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
10635 + # Exported symbols can be pulled into shared objects from archives
10636 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
10637 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
10638 + # This is similar to how AIX traditionally builds its shared libraries.
10639 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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'
10640 + fi
10641 + fi
10642 + ;;
10643
10644 -# Transform an extracted symbol line into a proper C declaration
10645 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10646 + amigaos*)
10647 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10648 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10649 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10650 + # see comment about different semantics on the GNU ld section
10651 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10652 + ;;
10653
10654 -# Transform an extracted symbol line into symbol name and symbol address
10655 -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10656 + bsdi[[45]]*)
10657 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
10658 + ;;
10659
10660 -# Define system-specific variables.
10661 -case $host_os in
10662 -aix*)
10663 - symcode='[[BCDT]]'
10664 - ;;
10665 -cygwin* | mingw* | pw32*)
10666 - symcode='[[ABCDGISTW]]'
10667 - ;;
10668 -hpux*) # Its linker distinguishes data from code symbols
10669 - if test "$host_cpu" = ia64; then
10670 - symcode='[[ABCDEGRST]]'
10671 - fi
10672 - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10673 - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10674 - ;;
10675 -irix* | nonstopux*)
10676 - symcode='[[BCDEGRST]]'
10677 - ;;
10678 -osf*)
10679 - symcode='[[BCDEGQRST]]'
10680 - ;;
10681 -solaris* | sysv5*)
10682 - symcode='[[BDRT]]'
10683 - ;;
10684 -sysv4)
10685 - symcode='[[DFNSTU]]'
10686 - ;;
10687 -esac
10688 + cygwin* | mingw* | pw32*)
10689 + # When not using gcc, we currently assume that we are using
10690 + # Microsoft Visual C++.
10691 + # hardcode_libdir_flag_spec is actually meaningless, as there is
10692 + # no search path for DLLs.
10693 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
10694 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
10695 + # Tell ltmain to make .lib files, not .a files.
10696 + libext=lib
10697 + # Tell ltmain to make .dll files, not .so files.
10698 + shrext_cmds=".dll"
10699 + # FIXME: Setting linknames here is a bad hack.
10700 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10701 + # The linker will automatically build a .lib file if we build a DLL.
10702 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
10703 + # FIXME: Should let the user specify the lib program.
10704 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
10705 + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
10706 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
10707 + ;;
10708
10709 -# Handle CRLF in mingw tool chain
10710 -opt_cr=
10711 -case $build_os in
10712 -mingw*)
10713 - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10714 - ;;
10715 -esac
10716 + darwin* | rhapsody*)
10717 + case $host_os in
10718 + rhapsody* | darwin1.[[012]])
10719 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
10720 + ;;
10721 + *) # Darwin 1.3 on
10722 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10723 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10724 + else
10725 + case ${MACOSX_DEPLOYMENT_TARGET} in
10726 + 10.[[012]])
10727 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10728 + ;;
10729 + 10.*)
10730 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
10731 + ;;
10732 + esac
10733 + fi
10734 + ;;
10735 + esac
10736 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
10737 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
10738 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
10739 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10740 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
10741 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10742 + if test "$GCC" = yes ; then
10743 + output_verbose_link_cmd='echo'
10744 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10745 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10746 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10747 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10748 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10749 + else
10750 + case $cc_basename in
10751 + xlc*)
10752 + output_verbose_link_cmd='echo'
10753 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10754 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10755 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10756 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10757 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10758 + ;;
10759 + *)
10760 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10761 + ;;
10762 + esac
10763 + fi
10764 + ;;
10765
10766 -# If we're using GNU nm, then use its standard symbol codes.
10767 -case `$NM -V 2>&1` in
10768 -*GNU* | *'with BFD'*)
10769 - symcode='[[ABCDGIRSTW]]' ;;
10770 -esac
10771 + dgux*)
10772 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10773 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
10774 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10775 + ;;
10776
10777 -# Try without a prefix undercore, then with it.
10778 -for ac_symprfx in "" "_"; do
10779 + freebsd1*)
10780 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
10781 + ;;
10782
10783 - # Write the raw and C identifiers.
10784 - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10785 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10786 + # support. Future versions do this automatically, but an explicit c++rt0.o
10787 + # does not break anything, and helps significantly (at the cost of a little
10788 + # extra space).
10789 + freebsd2.2*)
10790 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10791 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10792 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10793 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10794 + ;;
10795
10796 - # Check to see that the pipe works correctly.
10797 - pipe_works=no
10798 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10799 + freebsd2*)
10800 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10801 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10802 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10803 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10804 + ;;
10805
10806 - rm -f conftest*
10807 - cat > conftest.$ac_ext <<EOF
10808 -#ifdef __cplusplus
10809 -extern "C" {
10810 -#endif
10811 -char nm_test_var;
10812 -void nm_test_func(){}
10813 -#ifdef __cplusplus
10814 -}
10815 -#endif
10816 -int main(){nm_test_var='a';nm_test_func();return(0);}
10817 -EOF
10818 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10819 + freebsd* | dragonfly*)
10820 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10821 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10822 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10823 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10824 + ;;
10825
10826 - if AC_TRY_EVAL(ac_compile); then
10827 - # Now try to grab the symbols.
10828 - nlist=conftest.nm
10829 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
10830 - # Try sorting and uniquifying the output.
10831 - if sort "$nlist" | uniq > "$nlist"T; then
10832 - mv -f "$nlist"T "$nlist"
10833 + hpux9*)
10834 + if test "$GCC" = yes; then
10835 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10836 else
10837 - rm -f "$nlist"T
10838 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10839 fi
10840 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10841 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10842 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10843
10844 - # Make sure that we snagged all the symbols we need.
10845 - if grep ' nm_test_var$' "$nlist" >/dev/null; then
10846 - if grep ' nm_test_func$' "$nlist" >/dev/null; then
10847 - cat <<EOF > conftest.$ac_ext
10848 -#ifdef __cplusplus
10849 -extern "C" {
10850 -#endif
10851 -
10852 -EOF
10853 - # Now generate the symbol file.
10854 - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10855 -
10856 - cat <<EOF >> conftest.$ac_ext
10857 -#if defined (__STDC__) && __STDC__
10858 -# define lt_ptr_t void *
10859 -#else
10860 -# define lt_ptr_t char *
10861 -# define const
10862 -#endif
10863 -
10864 -/* The mapping between symbol names and symbols. */
10865 -const struct {
10866 - const char *name;
10867 - lt_ptr_t address;
10868 -}
10869 -lt_preloaded_symbols[[]] =
10870 -{
10871 -EOF
10872 - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10873 - cat <<\EOF >> conftest.$ac_ext
10874 - {0, (lt_ptr_t) 0}
10875 -};
10876 + # hardcode_minus_L: Not really in the search PATH,
10877 + # but as the default location of the library.
10878 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10879 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10880 + ;;
10881
10882 -#ifdef __cplusplus
10883 -}
10884 -#endif
10885 -EOF
10886 - # Now try linking the two files.
10887 - mv conftest.$ac_objext conftstm.$ac_objext
10888 - lt_save_LIBS="$LIBS"
10889 - lt_save_CFLAGS="$CFLAGS"
10890 - LIBS="conftstm.$ac_objext"
10891 - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
10892 - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
10893 - pipe_works=yes
10894 - fi
10895 - LIBS="$lt_save_LIBS"
10896 - CFLAGS="$lt_save_CFLAGS"
10897 - else
10898 - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
10899 - fi
10900 + hpux10*)
10901 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10902 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10903 else
10904 - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
10905 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10906 fi
10907 - else
10908 - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
10909 - fi
10910 - else
10911 - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
10912 - cat conftest.$ac_ext >&5
10913 - fi
10914 - rm -f conftest* conftst*
10915 + if test "$with_gnu_ld" = no; then
10916 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10917 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10918
10919 - # Do not use the global_symbol_pipe unless it works.
10920 - if test "$pipe_works" = yes; then
10921 - break
10922 - else
10923 - lt_cv_sys_global_symbol_pipe=
10924 - fi
10925 -done
10926 -])
10927 -if test -z "$lt_cv_sys_global_symbol_pipe"; then
10928 - lt_cv_sys_global_symbol_to_cdecl=
10929 -fi
10930 -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10931 - AC_MSG_RESULT(failed)
10932 -else
10933 - AC_MSG_RESULT(ok)
10934 -fi
10935 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
10936 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10937 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10938
10939 + # hardcode_minus_L: Not really in the search PATH,
10940 + # but as the default location of the library.
10941 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
10942 + fi
10943 + ;;
10944
10945 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
10946 -# ---------------------------------------
10947 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
10948 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
10949 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10950 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
10951 + hpux11*)
10952 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10953 + case $host_cpu in
10954 + hppa*64*)
10955 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 + ;;
10957 + ia64*)
10958 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10959 + ;;
10960 + *)
10961 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10962 + ;;
10963 + esac
10964 + else
10965 + case $host_cpu in
10966 + hppa*64*)
10967 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10968 + ;;
10969 + ia64*)
10970 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10971 + ;;
10972 + *)
10973 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10974 + ;;
10975 + esac
10976 + fi
10977 + if test "$with_gnu_ld" = no; then
10978 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
10979 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
10980
10981 -AC_MSG_CHECKING([for $compiler option to produce PIC])
10982 - ifelse([$1],[CXX],[
10983 - # C++ specific cases for pic, static, wl, etc.
10984 - if test "$GXX" = yes; then
10985 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
10986 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
10987 + case $host_cpu in
10988 + hppa*64*|ia64*)
10989 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
10990 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
10991 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10992 + ;;
10993 + *)
10994 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
10995 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
10996
10997 - case $host_os in
10998 - aix*)
10999 - # All AIX code is PIC.
11000 - if test "$host_cpu" = ia64; then
11001 - # AIX 5 now supports IA64 processor
11002 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11003 + # hardcode_minus_L: Not really in the search PATH,
11004 + # but as the default location of the library.
11005 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11006 + ;;
11007 + esac
11008 fi
11009 ;;
11010 - amigaos*)
11011 - # FIXME: we need at least 68020 code to build shared libraries, but
11012 - # adding the `-m68020' flag to GCC prevents building anything better,
11013 - # like `-m68040'.
11014 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
11015 - ;;
11016 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11017 - # PIC is the default for these OSes.
11018 - ;;
11019 - mingw* | os2* | pw32*)
11020 - # This hack is so that the source file can tell whether it is being
11021 - # built for inclusion in a dll (and should export symbols for example).
11022 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
11023 +
11024 + irix5* | irix6* | nonstopux*)
11025 + if test "$GCC" = yes; then
11026 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11027 + else
11028 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11029 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
11030 + fi
11031 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11032 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11033 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11034 ;;
11035 - darwin* | rhapsody*)
11036 - # PIC is the default on this platform
11037 - # Common symbols not allowed in MH_DYLIB files
11038 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
11039 +
11040 + netbsd* | netbsdelf*-gnu)
11041 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11042 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11043 + else
11044 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11045 + fi
11046 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11047 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11048 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11049 ;;
11050 - *djgpp*)
11051 - # DJGPP does not support shared libraries at all
11052 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11053 +
11054 + newsos6)
11055 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11056 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11057 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11058 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11059 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11060 ;;
11061 - sysv4*MP*)
11062 - if test -d /usr/nec; then
11063 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
11064 +
11065 + openbsd*)
11066 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11067 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11068 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11069 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11070 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11071 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11072 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
11073 + else
11074 + case $host_os in
11075 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
11076 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11077 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11078 + ;;
11079 + *)
11080 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11081 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11082 + ;;
11083 + esac
11084 fi
11085 ;;
11086 - hpux*)
11087 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11088 - # not for PA HP-UX.
11089 - case "$host_cpu" in
11090 - hppa*64*|ia64*)
11091 - ;;
11092 - *)
11093 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11094 - ;;
11095 - esac
11096 - ;;
11097 - *)
11098 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11099 +
11100 + os2*)
11101 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11102 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11103 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11104 + _LT_AC_TAGVAR(archive_cmds, $1)='$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'
11105 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11106 ;;
11107 - esac
11108 - else
11109 - case $host_os in
11110 - aix4* | aix5*)
11111 - # All AIX code is PIC.
11112 - if test "$host_cpu" = ia64; then
11113 - # AIX 5 now supports IA64 processor
11114 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11115 - else
11116 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
11117 - fi
11118 - ;;
11119 - chorus*)
11120 - case $cc_basename in
11121 - cxch68)
11122 - # Green Hills C++ Compiler
11123 - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11124 - ;;
11125 - esac
11126 - ;;
11127 - dgux*)
11128 - case $cc_basename in
11129 - ec++)
11130 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11131 - ;;
11132 - ghcx)
11133 - # Green Hills C++ Compiler
11134 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11135 - ;;
11136 - *)
11137 - ;;
11138 - esac
11139 - ;;
11140 - freebsd* | kfreebsd*-gnu)
11141 - # FreeBSD uses GNU C++
11142 - ;;
11143 - hpux9* | hpux10* | hpux11*)
11144 - case $cc_basename in
11145 - CC)
11146 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11147 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11148 - if test "$host_cpu" != ia64; then
11149 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
11150 - fi
11151 - ;;
11152 - aCC)
11153 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11154 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11155 - case "$host_cpu" in
11156 - hppa*64*|ia64*)
11157 - # +Z the default
11158 - ;;
11159 - *)
11160 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
11161 - ;;
11162 - esac
11163 - ;;
11164 - *)
11165 - ;;
11166 - esac
11167 - ;;
11168 - irix5* | irix6* | nonstopux*)
11169 - case $cc_basename in
11170 - CC)
11171 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11172 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11173 - # CC pic flag -KPIC is the default.
11174 - ;;
11175 - *)
11176 - ;;
11177 - esac
11178 - ;;
11179 - linux*)
11180 - case $cc_basename in
11181 - KCC)
11182 - # KAI C++ Compiler
11183 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
11184 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11185 - ;;
11186 - icpc)
11187 - # Intel C++
11188 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11189 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11190 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
11191 - ;;
11192 - cxx)
11193 - # Compaq C++
11194 - # Make sure the PIC flag is empty. It appears that all Alpha
11195 - # Linux and Compaq Tru64 Unix objects are PIC.
11196 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11197 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11198 - ;;
11199 - *)
11200 - ;;
11201 - esac
11202 - ;;
11203 - lynxos*)
11204 - ;;
11205 - m88k*)
11206 - ;;
11207 - mvs*)
11208 - case $cc_basename in
11209 - cxx)
11210 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
11211 - ;;
11212 - *)
11213 - ;;
11214 - esac
11215 - ;;
11216 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11217 - ;;
11218 - osf3* | osf4* | osf5*)
11219 - case $cc_basename in
11220 - KCC)
11221 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
11222 - ;;
11223 - RCC)
11224 - # Rational C++ 2.4.1
11225 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11226 - ;;
11227 - cxx)
11228 - # Digital/Compaq C++
11229 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11230 - # Make sure the PIC flag is empty. It appears that all Alpha
11231 - # Linux and Compaq Tru64 Unix objects are PIC.
11232 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11233 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11234 - ;;
11235 - *)
11236 - ;;
11237 - esac
11238 - ;;
11239 - psos*)
11240 - ;;
11241 - sco*)
11242 - case $cc_basename in
11243 - CC)
11244 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11245 - ;;
11246 - *)
11247 - ;;
11248 - esac
11249 - ;;
11250 - solaris*)
11251 - case $cc_basename in
11252 - CC)
11253 - # Sun C++ 4.2, 5.x and Centerline C++
11254 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11255 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11256 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
11257 - ;;
11258 - gcx)
11259 - # Green Hills C++ Compiler
11260 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
11261 - ;;
11262 - *)
11263 - ;;
11264 - esac
11265 - ;;
11266 - sunos4*)
11267 - case $cc_basename in
11268 - CC)
11269 - # Sun C++ 4.x
11270 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11271 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11272 - ;;
11273 - lcc)
11274 - # Lucid
11275 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11276 - ;;
11277 - *)
11278 - ;;
11279 - esac
11280 - ;;
11281 - tandem*)
11282 - case $cc_basename in
11283 - NCC)
11284 - # NonStop-UX NCC 3.20
11285 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11286 - ;;
11287 - *)
11288 - ;;
11289 - esac
11290 - ;;
11291 - unixware*)
11292 - ;;
11293 - vxworks*)
11294 - ;;
11295 - *)
11296 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
11297 - ;;
11298 - esac
11299 - fi
11300 -],
11301 -[
11302 - if test "$GCC" = yes; then
11303 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11304 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
11305
11306 - case $host_os in
11307 - aix*)
11308 - # All AIX code is PIC.
11309 - if test "$host_cpu" = ia64; then
11310 - # AIX 5 now supports IA64 processor
11311 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11312 + osf3*)
11313 + if test "$GCC" = yes; then
11314 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
11315 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11316 + else
11317 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
11318 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11319 fi
11320 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11321 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11322 ;;
11323
11324 - amigaos*)
11325 - # FIXME: we need at least 68020 code to build shared libraries, but
11326 - # adding the `-m68020' flag to GCC prevents building anything better,
11327 - # like `-m68040'.
11328 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
11329 + osf4* | osf5*) # as osf3* with the addition of -msym flag
11330 + if test "$GCC" = yes; then
11331 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
11332 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11333 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
11334 + else
11335 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
11336 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11337 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11338 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11339 +
11340 + # Both c and cxx compiler support -rpath directly
11341 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
11342 + fi
11343 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
11344 ;;
11345
11346 - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11347 - # PIC is the default for these OSes.
11348 + solaris*)
11349 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
11350 + if test "$GCC" = yes; then
11351 + wlarc='${wl}'
11352 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11353 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11354 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11355 + else
11356 + wlarc=''
11357 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11358 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11359 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11360 + fi
11361 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11362 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11363 + case $host_os in
11364 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
11365 + *)
11366 + # The compiler driver will combine linker options so we
11367 + # cannot just pass the convience library names through
11368 + # without $wl, iff we do not link with $LD.
11369 + # Luckily, gcc supports the same syntax we need for Sun Studio.
11370 + # Supported since Solaris 2.6 (maybe 2.5.1?)
11371 + case $wlarc in
11372 + '')
11373 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
11374 + *)
11375 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
11376 + esac ;;
11377 + esac
11378 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11379 ;;
11380
11381 - mingw* | pw32* | os2*)
11382 - # This hack is so that the source file can tell whether it is being
11383 - # built for inclusion in a dll (and should export symbols for example).
11384 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
11385 + sunos4*)
11386 + if test "x$host_vendor" = xsequent; then
11387 + # Use $CC to link under sequent, because it throws in some extra .o
11388 + # files that make .init and .fini sections work.
11389 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11390 + else
11391 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11392 + fi
11393 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11394 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
11395 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
11396 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11397 ;;
11398
11399 - darwin* | rhapsody*)
11400 - # PIC is the default on this platform
11401 - # Common symbols not allowed in MH_DYLIB files
11402 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
11403 + sysv4)
11404 + case $host_vendor in
11405 + sni)
11406 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11407 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
11408 + ;;
11409 + siemens)
11410 + ## LD is ld it makes a PLAMLIB
11411 + ## CC just makes a GrossModule.
11412 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11413 + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
11414 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
11415 + ;;
11416 + motorola)
11417 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11418 + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
11419 + ;;
11420 + esac
11421 + runpath_var='LD_RUN_PATH'
11422 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11423 ;;
11424
11425 - msdosdjgpp*)
11426 - # Just because we use GCC doesn't mean we suddenly get shared libraries
11427 - # on systems that don't support them.
11428 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
11429 - enable_shared=no
11430 + sysv4.3*)
11431 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11432 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11433 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
11434 ;;
11435
11436 sysv4*MP*)
11437 if test -d /usr/nec; then
11438 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
11439 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11440 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11441 + runpath_var=LD_RUN_PATH
11442 + hardcode_runpath_var=yes
11443 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
11444 fi
11445 ;;
11446
11447 - hpux*)
11448 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11449 - # not for PA HP-UX.
11450 - case "$host_cpu" in
11451 - hppa*64*|ia64*)
11452 - # +Z the default
11453 - ;;
11454 - *)
11455 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11456 - ;;
11457 - esac
11458 - ;;
11459 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
11460 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
11461 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11462 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11463 + runpath_var='LD_RUN_PATH'
11464
11465 - *)
11466 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
11467 - ;;
11468 - esac
11469 - else
11470 - # PORTME Check for flag to pass linker flags through the system compiler.
11471 - case $host_os in
11472 - aix*)
11473 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11474 - if test "$host_cpu" = ia64; then
11475 - # AIX 5 now supports IA64 processor
11476 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11477 + if test "$GCC" = yes; then
11478 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11479 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11480 else
11481 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
11482 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11483 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11484 fi
11485 ;;
11486
11487 - mingw* | pw32* | os2*)
11488 - # This hack is so that the source file can tell whether it is being
11489 - # built for inclusion in a dll (and should export symbols for example).
11490 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
11491 - ;;
11492 + sysv5* | sco3.2v5* | sco5v6*)
11493 + # Note: We can NOT use -z defs as we might desire, because we do not
11494 + # link with -lc, and that would cause any symbols used from libc to
11495 + # always be unresolved, which means just about no library would
11496 + # ever link correctly. If we're not using GNU ld we use -z text
11497 + # though, which does catch some bad symbols but isn't as heavy-handed
11498 + # as -z defs.
11499 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
11500 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
11501 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11502 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11503 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11504 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
11505 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
11506 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
11507 + runpath_var='LD_RUN_PATH'
11508
11509 - hpux9* | hpux10* | hpux11*)
11510 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11511 - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11512 - # not for PA HP-UX.
11513 - case "$host_cpu" in
11514 - hppa*64*|ia64*)
11515 - # +Z the default
11516 - ;;
11517 - *)
11518 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
11519 - ;;
11520 - esac
11521 - # Is there a better lt_prog_compiler_static that works with the bundled CC?
11522 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
11523 + if test "$GCC" = yes; then
11524 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11525 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11526 + else
11527 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11528 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11529 + fi
11530 ;;
11531
11532 - irix5* | irix6* | nonstopux*)
11533 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11534 - # PIC (with -KPIC) is the default.
11535 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11536 + uts4*)
11537 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11538 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
11539 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11540 ;;
11541
11542 - newsos6)
11543 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11544 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11545 + *)
11546 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
11547 ;;
11548 + esac
11549 + fi
11550 +])
11551 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
11552 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
11553
11554 - linux*)
11555 - case $CC in
11556 - icc* | ecc*)
11557 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11558 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11559 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
11560 - ;;
11561 - ccc*)
11562 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11563 - # All Alpha code is PIC.
11564 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11565 - ;;
11566 - esac
11567 +#
11568 +# Do we need to explicitly link libc?
11569 +#
11570 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
11571 +x|xyes)
11572 + # Assume -lc should be added
11573 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
11574 +
11575 + if test "$enable_shared" = yes && test "$GCC" = yes; then
11576 + case $_LT_AC_TAGVAR(archive_cmds, $1) in
11577 + *'~'*)
11578 + # FIXME: we may have to deal with multi-command sequences.
11579 ;;
11580 + '$CC '*)
11581 + # Test whether the compiler implicitly links with -lc since on some
11582 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
11583 + # to ld, don't add -lc before -lgcc.
11584 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
11585 + $rm conftest*
11586 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11587
11588 - osf3* | osf4* | osf5*)
11589 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11590 - # All OSF/1 code is PIC.
11591 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11592 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
11593 + soname=conftest
11594 + lib=conftest
11595 + libobjs=conftest.$ac_objext
11596 + deplibs=
11597 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
11598 + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
11599 + compiler_flags=-v
11600 + linker_flags=-v
11601 + verstring=
11602 + output_objdir=.
11603 + libname=conftest
11604 + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
11605 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
11606 + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
11607 + then
11608 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
11609 + else
11610 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
11611 + fi
11612 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
11613 + else
11614 + cat conftest.err 1>&5
11615 + fi
11616 + $rm conftest*
11617 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
11618 ;;
11619 + esac
11620 + fi
11621 + ;;
11622 +esac
11623 +])# AC_LIBTOOL_PROG_LD_SHLIBS
11624 +
11625 +
11626 +# _LT_AC_FILE_LTDLL_C
11627 +# -------------------
11628 +# Be careful that the start marker always follows a newline.
11629 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
11630 +# /* ltdll.c starts here */
11631 +# #define WIN32_LEAN_AND_MEAN
11632 +# #include <windows.h>
11633 +# #undef WIN32_LEAN_AND_MEAN
11634 +# #include <stdio.h>
11635 +#
11636 +# #ifndef __CYGWIN__
11637 +# # ifdef __CYGWIN32__
11638 +# # define __CYGWIN__ __CYGWIN32__
11639 +# # endif
11640 +# #endif
11641 +#
11642 +# #ifdef __cplusplus
11643 +# extern "C" {
11644 +# #endif
11645 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
11646 +# #ifdef __cplusplus
11647 +# }
11648 +# #endif
11649 +#
11650 +# #ifdef __CYGWIN__
11651 +# #include <cygwin/cygwin_dll.h>
11652 +# DECLARE_CYGWIN_DLL( DllMain );
11653 +# #endif
11654 +# HINSTANCE __hDllInstance_base;
11655 +#
11656 +# BOOL APIENTRY
11657 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
11658 +# {
11659 +# __hDllInstance_base = hInst;
11660 +# return TRUE;
11661 +# }
11662 +# /* ltdll.c ends here */
11663 +])# _LT_AC_FILE_LTDLL_C
11664
11665 - sco3.2v5*)
11666 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
11667 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
11668 - ;;
11669
11670 - solaris*)
11671 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11672 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11673 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11674 - ;;
11675 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
11676 +# ---------------------------------
11677 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
11678
11679 - sunos4*)
11680 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
11681 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
11682 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11683 - ;;
11684
11685 - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11686 - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11687 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11688 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11689 - ;;
11690 +# old names
11691 +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
11692 +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
11693 +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
11694 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
11695 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
11696 +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
11697 +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
11698
11699 - sysv4*MP*)
11700 - if test -d /usr/nec ;then
11701 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
11702 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11703 - fi
11704 - ;;
11705 +# This is just to silence aclocal about the macro not being used
11706 +ifelse([AC_DISABLE_FAST_INSTALL])
11707
11708 - uts4*)
11709 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
11710 - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11711 - ;;
11712 +AC_DEFUN([LT_AC_PROG_GCJ],
11713 +[AC_CHECK_TOOL(GCJ, gcj, no)
11714 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
11715 + AC_SUBST(GCJFLAGS)
11716 +])
11717
11718 - *)
11719 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
11720 - ;;
11721 - esac
11722 +AC_DEFUN([LT_AC_PROG_RC],
11723 +[AC_CHECK_TOOL(RC, windres, no)
11724 +])
11725 +
11726 +# NOTE: This macro has been submitted for inclusion into #
11727 +# GNU Autoconf as AC_PROG_SED. When it is available in #
11728 +# a released version of Autoconf we should remove this #
11729 +# macro and use it instead. #
11730 +# LT_AC_PROG_SED
11731 +# --------------
11732 +# Check for a fully-functional sed program, that truncates
11733 +# as few characters as possible. Prefer GNU sed if found.
11734 +AC_DEFUN([LT_AC_PROG_SED],
11735 +[AC_MSG_CHECKING([for a sed that does not truncate output])
11736 +AC_CACHE_VAL(lt_cv_path_SED,
11737 +[# Loop through the user's path and test for sed and gsed.
11738 +# Then use that list of sed's as ones to test for truncation.
11739 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 +for as_dir in $PATH
11741 +do
11742 + IFS=$as_save_IFS
11743 + test -z "$as_dir" && as_dir=.
11744 + for lt_ac_prog in sed gsed; do
11745 + for ac_exec_ext in '' $ac_executable_extensions; do
11746 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
11747 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
11748 + fi
11749 + done
11750 + done
11751 +done
11752 +lt_ac_max=0
11753 +lt_ac_count=0
11754 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
11755 +# along with /bin/sed that truncates output.
11756 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
11757 + test ! -f $lt_ac_sed && continue
11758 + cat /dev/null > conftest.in
11759 + lt_ac_count=0
11760 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
11761 + # Check for GNU sed and select it if it is found.
11762 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
11763 + lt_cv_path_SED=$lt_ac_sed
11764 + break
11765 fi
11766 + while true; do
11767 + cat conftest.in conftest.in >conftest.tmp
11768 + mv conftest.tmp conftest.in
11769 + cp conftest.in conftest.nl
11770 + echo >>conftest.nl
11771 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
11772 + cmp -s conftest.out conftest.nl || break
11773 + # 10000 chars as input seems more than enough
11774 + test $lt_ac_count -gt 10 && break
11775 + lt_ac_count=`expr $lt_ac_count + 1`
11776 + if test $lt_ac_count -gt $lt_ac_max; then
11777 + lt_ac_max=$lt_ac_count
11778 + lt_cv_path_SED=$lt_ac_sed
11779 + fi
11780 + done
11781 +done
11782 +])
11783 +SED=$lt_cv_path_SED
11784 +AC_MSG_RESULT([$SED])
11785 ])
11786 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
11787
11788 +# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
11789 +#
11790 +# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
11791 #
11792 -# Check to make sure the PIC flag actually works.
11793 +# This program is free software; you can redistribute it and/or modify
11794 +# it under the terms of the GNU General Public License as published by
11795 +# the Free Software Foundation; either version 2 of the License, or
11796 +# (at your option) any later version.
11797 #
11798 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
11799 - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
11800 - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
11801 - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
11802 - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
11803 - "" | " "*) ;;
11804 - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
11805 - esac],
11806 - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11807 - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
11808 -fi
11809 -case "$host_os" in
11810 - # For platforms which do not support PIC, -DPIC is meaningless:
11811 - *djgpp*)
11812 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
11813 - ;;
11814 - *)
11815 - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
11816 - ;;
11817 -esac
11818 -])
11819 +# This program is distributed in the hope that it will be useful, but
11820 +# WITHOUT ANY WARRANTY; without even the implied warranty of
11821 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11822 +# General Public License for more details.
11823 +#
11824 +# You should have received a copy of the GNU General Public License
11825 +# along with this program; if not, write to the Free Software
11826 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11827 +#
11828 +# As a special exception to the GNU General Public License, if you
11829 +# distribute this file as part of a program that contains a
11830 +# configuration script generated by Autoconf, you may include it under
11831 +# the same distribution terms that you use for the rest of that program.
11832
11833 +# PKG_PROG_PKG_CONFIG([MIN-VERSION])
11834 +# ----------------------------------
11835 +AC_DEFUN([PKG_PROG_PKG_CONFIG],
11836 +[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
11837 +m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
11838 +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
11839 +if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11840 + AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
11841 +fi
11842 +if test -n "$PKG_CONFIG"; then
11843 + _pkg_min_version=m4_default([$1], [0.9.0])
11844 + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
11845 + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11846 + AC_MSG_RESULT([yes])
11847 + else
11848 + AC_MSG_RESULT([no])
11849 + PKG_CONFIG=""
11850 + fi
11851 +
11852 +fi[]dnl
11853 +])# PKG_PROG_PKG_CONFIG
11854
11855 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
11856 -# ------------------------------------
11857 -# See if the linker supports building shared libraries.
11858 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
11859 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
11860 -ifelse([$1],[CXX],[
11861 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11862 - case $host_os in
11863 - aix4* | aix5*)
11864 - # If we're using GNU nm, then we don't want the "-C" option.
11865 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
11866 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11867 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
11868 +# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
11869 +#
11870 +# Check to see whether a particular set of modules exists. Similar
11871 +# to PKG_CHECK_MODULES(), but does not set variables or print errors.
11872 +#
11873 +#
11874 +# Similar to PKG_CHECK_MODULES, make sure that the first instance of
11875 +# this or PKG_CHECK_MODULES is called, or make sure to call
11876 +# PKG_CHECK_EXISTS manually
11877 +# --------------------------------------------------------------
11878 +AC_DEFUN([PKG_CHECK_EXISTS],
11879 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
11880 +if test -n "$PKG_CONFIG" && \
11881 + AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
11882 + m4_ifval([$2], [$2], [:])
11883 +m4_ifvaln([$3], [else
11884 + $3])dnl
11885 +fi])
11886 +
11887 +
11888 +# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
11889 +# ---------------------------------------------
11890 +m4_define([_PKG_CONFIG],
11891 +[if test -n "$PKG_CONFIG"; then
11892 + if test -n "$$1"; then
11893 + pkg_cv_[]$1="$$1"
11894 else
11895 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
11896 + PKG_CHECK_EXISTS([$3],
11897 + [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
11898 + [pkg_failed=yes])
11899 fi
11900 - ;;
11901 - pw32*)
11902 - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
11903 - ;;
11904 - cygwin* | mingw*)
11905 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
11906 - ;;
11907 - linux*)
11908 - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
11909 - ;;
11910 - *)
11911 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11912 - ;;
11913 - esac
11914 -],[
11915 - runpath_var=
11916 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
11917 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
11918 - _LT_AC_TAGVAR(archive_cmds, $1)=
11919 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
11920 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
11921 - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
11922 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
11923 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
11924 - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
11925 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
11926 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
11927 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
11928 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
11929 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
11930 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
11931 - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
11932 - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
11933 - _LT_AC_TAGVAR(module_cmds, $1)=
11934 - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
11935 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
11936 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11937 - # include_expsyms should be a list of space-separated symbols to be *always*
11938 - # included in the symbol list
11939 - _LT_AC_TAGVAR(include_expsyms, $1)=
11940 - # exclude_expsyms can be an extended regexp of symbols to exclude
11941 - # it will be wrapped by ` (' and `)$', so one must not match beginning or
11942 - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11943 - # as well as any symbol that contains `d'.
11944 - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
11945 - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11946 - # platforms (ab)use it in PIC code, but their linkers get confused if
11947 - # the symbol is explicitly referenced. Since portable code cannot
11948 - # rely on this symbol name, it's probably fine to never include it in
11949 - # preloaded symbol tables.
11950 - extract_expsyms_cmds=
11951 +else
11952 + pkg_failed=untried
11953 +fi[]dnl
11954 +])# _PKG_CONFIG
11955
11956 - case $host_os in
11957 - cygwin* | mingw* | pw32*)
11958 - # FIXME: the MSVC++ port hasn't been tested in a loooong time
11959 - # When not using gcc, we currently assume that we are using
11960 - # Microsoft Visual C++.
11961 - if test "$GCC" != yes; then
11962 - with_gnu_ld=no
11963 - fi
11964 - ;;
11965 - openbsd*)
11966 - with_gnu_ld=no
11967 - ;;
11968 - esac
11969 +# _PKG_SHORT_ERRORS_SUPPORTED
11970 +# -----------------------------
11971 +AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
11972 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
11973 +if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11974 + _pkg_short_errors_supported=yes
11975 +else
11976 + _pkg_short_errors_supported=no
11977 +fi[]dnl
11978 +])# _PKG_SHORT_ERRORS_SUPPORTED
11979
11980 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
11981 - if test "$with_gnu_ld" = yes; then
11982 - # If archive_cmds runs LD, not CC, wlarc should be empty
11983 - wlarc='${wl}'
11984
11985 - # See if GNU ld supports shared libraries.
11986 - case $host_os in
11987 - aix3* | aix4* | aix5*)
11988 - # On AIX/PPC, the GNU linker is very broken
11989 - if test "$host_cpu" != ia64; then
11990 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
11991 - cat <<EOF 1>&2
11992 +# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
11993 +# [ACTION-IF-NOT-FOUND])
11994 +#
11995 +#
11996 +# Note that if there is a possibility the first call to
11997 +# PKG_CHECK_MODULES might not happen, you should be sure to include an
11998 +# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
11999 +#
12000 +#
12001 +# --------------------------------------------------------------
12002 +AC_DEFUN([PKG_CHECK_MODULES],
12003 +[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
12004 +AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
12005 +AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
12006 +
12007 +pkg_failed=no
12008 +AC_MSG_CHECKING([for $1])
12009 +
12010 +_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
12011 +_PKG_CONFIG([$1][_LIBS], [libs], [$2])
12012 +
12013 +m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
12014 +and $1[]_LIBS to avoid the need to call pkg-config.
12015 +See the pkg-config man page for more details.])
12016 +
12017 +if test $pkg_failed = yes; then
12018 + _PKG_SHORT_ERRORS_SUPPORTED
12019 + if test $_pkg_short_errors_supported = yes; then
12020 + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
12021 + else
12022 + $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
12023 + fi
12024 + # Put the nasty error message in config.log where it belongs
12025 + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
12026
12027 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12028 -*** to be unable to reliably create shared libraries on AIX.
12029 -*** Therefore, libtool is disabling shared libraries support. If you
12030 -*** really care for shared libraries, you may want to modify your PATH
12031 -*** so that a non-GNU linker is found, and then restart.
12032 + ifelse([$4], , [AC_MSG_ERROR(dnl
12033 +[Package requirements ($2) were not met:
12034
12035 -EOF
12036 - fi
12037 - ;;
12038 +$$1_PKG_ERRORS
12039
12040 - amigaos*)
12041 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12042 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12043 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12044 +Consider adjusting the PKG_CONFIG_PATH environment variable if you
12045 +installed software in a non-standard prefix.
12046 +
12047 +_PKG_TEXT
12048 +])],
12049 + [AC_MSG_RESULT([no])
12050 + $4])
12051 +elif test $pkg_failed = untried; then
12052 + ifelse([$4], , [AC_MSG_FAILURE(dnl
12053 +[The pkg-config script could not be found or is too old. Make sure it
12054 +is in your PATH or set the PKG_CONFIG environment variable to the full
12055 +path to pkg-config.
12056
12057 - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12058 - # that the semantics of dynamic libraries on AmigaOS, at least up
12059 - # to version 4, is to share data among multiple programs linked
12060 - # with the same dynamic library. Since this doesn't match the
12061 - # behavior of shared libraries on other platforms, we can't use
12062 - # them.
12063 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12064 - ;;
12065 +_PKG_TEXT
12066
12067 - beos*)
12068 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12069 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12070 - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12071 - # support --undefined. This deserves some investigation. FIXME
12072 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12073 - else
12074 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12075 - fi
12076 - ;;
12077 +To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
12078 + [$4])
12079 +else
12080 + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
12081 + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
12082 + AC_MSG_RESULT([yes])
12083 + ifelse([$3], , :, [$3])
12084 +fi[]dnl
12085 +])# PKG_CHECK_MODULES
12086
12087 - cygwin* | mingw* | pw32*)
12088 - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
12089 - # as there is no search path for DLLs.
12090 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12091 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12092 - _LT_AC_TAGVAR(always_export_symbols, $1)=no
12093 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
12094 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
12095 +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
12096 +#
12097 +# This file is free software; the Free Software Foundation
12098 +# gives unlimited permission to copy and/or distribute it,
12099 +# with or without modifications, as long as this notice is preserved.
12100
12101 - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12102 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12103 - # If the export-symbols file already is a .def file (1st line
12104 - # is EXPORTS), use it as is; otherwise, prepend...
12105 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12106 - cp $export_symbols $output_objdir/$soname.def;
12107 - else
12108 - echo EXPORTS > $output_objdir/$soname.def;
12109 - cat $export_symbols >> $output_objdir/$soname.def;
12110 - fi~
12111 - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12112 - else
12113 - ld_shlibs=no
12114 - fi
12115 - ;;
12116 +# AM_AUTOMAKE_VERSION(VERSION)
12117 +# ----------------------------
12118 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
12119 +# generated from the m4 files accompanying Automake X.Y.
12120 +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
12121
12122 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12123 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12124 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12125 - wlarc=
12126 - else
12127 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12128 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12129 - fi
12130 - ;;
12131 +# AM_SET_CURRENT_AUTOMAKE_VERSION
12132 +# -------------------------------
12133 +# Call AM_AUTOMAKE_VERSION so it can be traced.
12134 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
12135 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
12136 + [AM_AUTOMAKE_VERSION([1.9.6])])
12137
12138 - solaris* | sysv5*)
12139 - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12140 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12141 - cat <<EOF 1>&2
12142 +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
12143
12144 -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12145 -*** create shared libraries on Solaris systems. Therefore, libtool
12146 -*** is disabling shared libraries support. We urge you to upgrade GNU
12147 -*** binutils to release 2.9.1 or newer. Another option is to modify
12148 -*** your PATH or compiler configuration so that the native linker is
12149 -*** used, and then restart.
12150 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
12151 +#
12152 +# This file is free software; the Free Software Foundation
12153 +# gives unlimited permission to copy and/or distribute it,
12154 +# with or without modifications, as long as this notice is preserved.
12155
12156 -EOF
12157 - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12158 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12159 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12160 - else
12161 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12162 - fi
12163 - ;;
12164 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
12165 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
12166 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
12167 +#
12168 +# Of course, Automake must honor this variable whenever it calls a
12169 +# tool from the auxiliary directory. The problem is that $srcdir (and
12170 +# therefore $ac_aux_dir as well) can be either absolute or relative,
12171 +# depending on how configure is run. This is pretty annoying, since
12172 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
12173 +# source directory, any form will work fine, but in subdirectories a
12174 +# relative path needs to be adjusted first.
12175 +#
12176 +# $ac_aux_dir/missing
12177 +# fails when called from a subdirectory if $ac_aux_dir is relative
12178 +# $top_srcdir/$ac_aux_dir/missing
12179 +# fails if $ac_aux_dir is absolute,
12180 +# fails when called from a subdirectory in a VPATH build with
12181 +# a relative $ac_aux_dir
12182 +#
12183 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
12184 +# are both prefixed by $srcdir. In an in-source build this is usually
12185 +# harmless because $srcdir is `.', but things will broke when you
12186 +# start a VPATH build or use an absolute $srcdir.
12187 +#
12188 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
12189 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
12190 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
12191 +# and then we would define $MISSING as
12192 +# MISSING="\${SHELL} $am_aux_dir/missing"
12193 +# This will work as long as MISSING is not called from configure, because
12194 +# unfortunately $(top_srcdir) has no meaning in configure.
12195 +# However there are other variables, like CC, which are often used in
12196 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
12197 +#
12198 +# Another solution, used here, is to always expand $ac_aux_dir to an
12199 +# absolute PATH. The drawback is that using absolute paths prevent a
12200 +# configured tree to be moved without reconfiguration.
12201
12202 - sunos4*)
12203 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12204 - wlarc=
12205 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12206 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12207 - ;;
12208 +AC_DEFUN([AM_AUX_DIR_EXPAND],
12209 +[dnl Rely on autoconf to set up CDPATH properly.
12210 +AC_PREREQ([2.50])dnl
12211 +# expand $ac_aux_dir to an absolute path
12212 +am_aux_dir=`cd $ac_aux_dir && pwd`
12213 +])
12214
12215 - linux*)
12216 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12217 - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12218 - _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
12219 - supports_anon_versioning=no
12220 - case `$LD -v 2>/dev/null` in
12221 - *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
12222 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12223 - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12224 - *\ 2.11.*) ;; # other 2.11 versions
12225 - *) supports_anon_versioning=yes ;;
12226 - esac
12227 - if test $supports_anon_versioning = yes; then
12228 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
12229 -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12230 -$echo "local: *; };" >> $output_objdir/$libname.ver~
12231 - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12232 - else
12233 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
12234 - fi
12235 - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
12236 - else
12237 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12238 - fi
12239 - ;;
12240 +# AM_CONDITIONAL -*- Autoconf -*-
12241
12242 - *)
12243 - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12244 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12245 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12246 - else
12247 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12248 - fi
12249 - ;;
12250 - esac
12251 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
12252 +# Free Software Foundation, Inc.
12253 +#
12254 +# This file is free software; the Free Software Foundation
12255 +# gives unlimited permission to copy and/or distribute it,
12256 +# with or without modifications, as long as this notice is preserved.
12257
12258 - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
12259 - runpath_var=LD_RUN_PATH
12260 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
12261 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
12262 - # ancient GNU ld didn't support --whole-archive et. al.
12263 - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12264 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12265 - else
12266 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
12267 - fi
12268 - fi
12269 - else
12270 - # PORTME fill in a description of your system's linker (not GNU ld)
12271 - case $host_os in
12272 - aix3*)
12273 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12274 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
12275 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12276 - # Note: this linker hardcodes the directories in LIBPATH if there
12277 - # are no directories specified by -L.
12278 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12279 - if test "$GCC" = yes && test -z "$link_static_flag"; then
12280 - # Neither direct hardcoding nor static linking is supported with a
12281 - # broken collect2.
12282 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
12283 - fi
12284 - ;;
12285 +# serial 7
12286
12287 - aix4* | aix5*)
12288 - if test "$host_cpu" = ia64; then
12289 - # On IA64, the linker does run time linking by default, so we don't
12290 - # have to do anything special.
12291 - aix_use_runtimelinking=no
12292 - exp_sym_flag='-Bexport'
12293 - no_entry_flag=""
12294 - else
12295 - # If we're using GNU nm, then we don't want the "-C" option.
12296 - # -C means demangle to AIX nm, but means don't demangle with GNU nm
12297 - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12298 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
12299 - else
12300 - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
12301 - fi
12302 - aix_use_runtimelinking=no
12303 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
12304 +# -------------------------------------
12305 +# Define a conditional.
12306 +AC_DEFUN([AM_CONDITIONAL],
12307 +[AC_PREREQ(2.52)dnl
12308 + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
12309 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
12310 +AC_SUBST([$1_TRUE])
12311 +AC_SUBST([$1_FALSE])
12312 +if $2; then
12313 + $1_TRUE=
12314 + $1_FALSE='#'
12315 +else
12316 + $1_TRUE='#'
12317 + $1_FALSE=
12318 +fi
12319 +AC_CONFIG_COMMANDS_PRE(
12320 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
12321 + AC_MSG_ERROR([[conditional "$1" was never defined.
12322 +Usually this means the macro was only invoked conditionally.]])
12323 +fi])])
12324
12325 - # Test if we are trying to use run time linking or normal
12326 - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12327 - # need to do runtime linking.
12328 - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
12329 - for ld_flag in $LDFLAGS; do
12330 - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12331 - aix_use_runtimelinking=yes
12332 - break
12333 - fi
12334 - done
12335 - esac
12336
12337 - exp_sym_flag='-bexport'
12338 - no_entry_flag='-bnoentry'
12339 - fi
12340 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
12341 +# Free Software Foundation, Inc.
12342 +#
12343 +# This file is free software; the Free Software Foundation
12344 +# gives unlimited permission to copy and/or distribute it,
12345 +# with or without modifications, as long as this notice is preserved.
12346 +
12347 +# serial 8
12348 +
12349 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
12350 +# written in clear, in which case automake, when reading aclocal.m4,
12351 +# will think it sees a *use*, and therefore will trigger all it's
12352 +# C support machinery. Also note that it means that autoscan, seeing
12353 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
12354 +
12355 +
12356 +# _AM_DEPENDENCIES(NAME)
12357 +# ----------------------
12358 +# See how the compiler implements dependency checking.
12359 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
12360 +# We try a few techniques and use that to set a single cache variable.
12361 +#
12362 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
12363 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
12364 +# dependency, and given that the user is not expected to run this macro,
12365 +# just rely on AC_PROG_CC.
12366 +AC_DEFUN([_AM_DEPENDENCIES],
12367 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
12368 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
12369 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
12370 +AC_REQUIRE([AM_DEP_TRACK])dnl
12371
12372 - # When large executables or shared objects are built, AIX ld can
12373 - # have problems creating the table of contents. If linking a library
12374 - # or program results in "error TOC overflow" add -mminimal-toc to
12375 - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12376 - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12377 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
12378 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
12379 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
12380 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
12381 + [depcc="$$1" am_compiler_list=])
12382
12383 - _LT_AC_TAGVAR(archive_cmds, $1)=''
12384 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12385 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
12386 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12387 +AC_CACHE_CHECK([dependency style of $depcc],
12388 + [am_cv_$1_dependencies_compiler_type],
12389 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12390 + # We make a subdir and do the tests there. Otherwise we can end up
12391 + # making bogus files that we don't know about and never remove. For
12392 + # instance it was reported that on HP-UX the gcc test will end up
12393 + # making a dummy file named `D' -- because `-MD' means `put the output
12394 + # in D'.
12395 + mkdir conftest.dir
12396 + # Copy depcomp to subdir because otherwise we won't find it if we're
12397 + # using a relative directory.
12398 + cp "$am_depcomp" conftest.dir
12399 + cd conftest.dir
12400 + # We will build objects and dependencies in a subdirectory because
12401 + # it helps to detect inapplicable dependency modes. For instance
12402 + # both Tru64's cc and ICC support -MD to output dependencies as a
12403 + # side effect of compilation, but ICC will put the dependencies in
12404 + # the current directory while Tru64 will put them in the object
12405 + # directory.
12406 + mkdir sub
12407
12408 - if test "$GCC" = yes; then
12409 - case $host_os in aix4.[012]|aix4.[012].*)
12410 - # We only want to do this on AIX 4.2 and lower, the check
12411 - # below for broken collect2 doesn't work under 4.3+
12412 - collect2name=`${CC} -print-prog-name=collect2`
12413 - if test -f "$collect2name" && \
12414 - strings "$collect2name" | grep resolve_lib_name >/dev/null
12415 - then
12416 - # We have reworked collect2
12417 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12418 - else
12419 - # We have old collect2
12420 - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
12421 - # It fails to find uninstalled libraries when the uninstalled
12422 - # path is not listed in the libpath. Setting hardcode_minus_L
12423 - # to unsupported forces relinking
12424 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12425 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12426 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
12427 - fi
12428 - esac
12429 - shared_flag='-shared'
12430 - else
12431 - # not using gcc
12432 - if test "$host_cpu" = ia64; then
12433 - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12434 - # chokes on -Wl,-G. The following line is correct:
12435 - shared_flag='-G'
12436 - else
12437 - if test "$aix_use_runtimelinking" = yes; then
12438 - shared_flag='${wl}-G'
12439 - else
12440 - shared_flag='${wl}-bM:SRE'
12441 - fi
12442 - fi
12443 - fi
12444 + am_cv_$1_dependencies_compiler_type=none
12445 + if test "$am_compiler_list" = ""; then
12446 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
12447 + fi
12448 + for depmode in $am_compiler_list; do
12449 + # Setup a source with many dependencies, because some compilers
12450 + # like to wrap large dependency lists on column 80 (with \), and
12451 + # we should not choose a depcomp mode which is confused by this.
12452 + #
12453 + # We need to recreate these files for each test, as the compiler may
12454 + # overwrite some of them when testing with obscure command lines.
12455 + # This happens at least with the AIX C compiler.
12456 + : > sub/conftest.c
12457 + for i in 1 2 3 4 5 6; do
12458 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
12459 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12460 + # Solaris 8's {/usr,}/bin/sh.
12461 + touch sub/conftst$i.h
12462 + done
12463 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12464
12465 - # It seems that -bexpall does not export symbols beginning with
12466 - # underscore (_), so it is better to generate a list of symbols to export.
12467 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
12468 - if test "$aix_use_runtimelinking" = yes; then
12469 - # Warning - without using the other runtime loading flags (-brtl),
12470 - # -berok will link without error, but may produce a broken library.
12471 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
12472 - # Determine the default libpath from the value encoded in an empty executable.
12473 - _LT_AC_SYS_LIBPATH_AIX
12474 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
12475 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12476 - else
12477 - if test "$host_cpu" = ia64; then
12478 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
12479 - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
12480 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12481 - else
12482 - # Determine the default libpath from the value encoded in an empty executable.
12483 - _LT_AC_SYS_LIBPATH_AIX
12484 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
12485 - # Warning - without using the other run time loading flags,
12486 - # -berok will link without error, but may produce a broken library.
12487 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
12488 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
12489 - # -bexpall does not export symbols beginning with underscore (_)
12490 - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
12491 - # Exported symbols can be pulled into shared objects from archives
12492 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
12493 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
12494 - # This is similar to how AIX traditionally builds it's shared libraries.
12495 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12496 - fi
12497 + case $depmode in
12498 + nosideeffect)
12499 + # after this tag, mechanisms are not by side-effect, so they'll
12500 + # only be used when explicitly requested
12501 + if test "x$enable_dependency_tracking" = xyes; then
12502 + continue
12503 + else
12504 + break
12505 fi
12506 ;;
12507 + none) break ;;
12508 + esac
12509 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
12510 + # mode. It turns out that the SunPro C++ compiler does not properly
12511 + # handle `-M -o', and we need to detect this.
12512 + if depmode=$depmode \
12513 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12514 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12515 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12516 + >/dev/null 2>conftest.err &&
12517 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12518 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12519 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12520 + # icc doesn't choke on unknown options, it will just issue warnings
12521 + # or remarks (even with -Werror). So we grep stderr for any message
12522 + # that says an option was ignored or not supported.
12523 + # When given -MP, icc 7.0 and 7.1 complain thusly:
12524 + # icc: Command line warning: ignoring option '-M'; no argument required
12525 + # The diagnosis changed in icc 8.0:
12526 + # icc: Command line remark: option '-MP' not supported
12527 + if (grep 'ignoring option' conftest.err ||
12528 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12529 + am_cv_$1_dependencies_compiler_type=$depmode
12530 + break
12531 + fi
12532 + fi
12533 + done
12534
12535 - amigaos*)
12536 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
12537 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12538 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12539 - # see comment about different semantics on the GNU ld section
12540 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12541 - ;;
12542 + cd ..
12543 + rm -rf conftest.dir
12544 +else
12545 + am_cv_$1_dependencies_compiler_type=none
12546 +fi
12547 +])
12548 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
12549 +AM_CONDITIONAL([am__fastdep$1], [
12550 + test "x$enable_dependency_tracking" != xno \
12551 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
12552 +])
12553
12554 - bsdi4*)
12555 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
12556 - ;;
12557
12558 - cygwin* | mingw* | pw32*)
12559 - # When not using gcc, we currently assume that we are using
12560 - # Microsoft Visual C++.
12561 - # hardcode_libdir_flag_spec is actually meaningless, as there is
12562 - # no search path for DLLs.
12563 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
12564 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12565 - # Tell ltmain to make .lib files, not .a files.
12566 - libext=lib
12567 - # Tell ltmain to make .dll files, not .so files.
12568 - shrext_cmds=".dll"
12569 - # FIXME: Setting linknames here is a bad hack.
12570 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12571 - # The linker will automatically build a .lib file if we build a DLL.
12572 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
12573 - # FIXME: Should let the user specify the lib program.
12574 - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
12575 - fix_srcfile_path='`cygpath -w "$srcfile"`'
12576 - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
12577 - ;;
12578 +# AM_SET_DEPDIR
12579 +# -------------
12580 +# Choose a directory name for dependency files.
12581 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
12582 +AC_DEFUN([AM_SET_DEPDIR],
12583 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
12584 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
12585 +])
12586
12587 - darwin* | rhapsody*)
12588 - if test "$GXX" = yes ; then
12589 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12590 - case "$host_os" in
12591 - rhapsody* | darwin1.[[012]])
12592 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
12593 - ;;
12594 - *) # Darwin 1.3 on
12595 - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12596 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
12597 - else
12598 - case ${MACOSX_DEPLOYMENT_TARGET} in
12599 - 10.[[012]])
12600 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
12601 - ;;
12602 - 10.*)
12603 - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
12604 - ;;
12605 - esac
12606 - fi
12607 - ;;
12608 - esac
12609 - lt_int_apple_cc_single_mod=no
12610 - output_verbose_link_cmd='echo'
12611 - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12612 - lt_int_apple_cc_single_mod=yes
12613 - fi
12614 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12615 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12616 - else
12617 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12618 - fi
12619 - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12620 - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12621 - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12622 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12623 - else
12624 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12625 - fi
12626 - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12627 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12628 - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
12629 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
12630 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
12631 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12632 - else
12633 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12634 - fi
12635 - ;;
12636
12637 - dgux*)
12638 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12639 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12640 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12641 - ;;
12642 +# AM_DEP_TRACK
12643 +# ------------
12644 +AC_DEFUN([AM_DEP_TRACK],
12645 +[AC_ARG_ENABLE(dependency-tracking,
12646 +[ --disable-dependency-tracking speeds up one-time build
12647 + --enable-dependency-tracking do not reject slow dependency extractors])
12648 +if test "x$enable_dependency_tracking" != xno; then
12649 + am_depcomp="$ac_aux_dir/depcomp"
12650 + AMDEPBACKSLASH='\'
12651 +fi
12652 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
12653 +AC_SUBST([AMDEPBACKSLASH])
12654 +])
12655
12656 - freebsd1*)
12657 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
12658 - ;;
12659 +# Generate code to set up dependency tracking. -*- Autoconf -*-
12660
12661 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12662 - # support. Future versions do this automatically, but an explicit c++rt0.o
12663 - # does not break anything, and helps significantly (at the cost of a little
12664 - # extra space).
12665 - freebsd2.2*)
12666 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12667 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12668 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12669 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12670 - ;;
12671 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
12672 +# Free Software Foundation, Inc.
12673 +#
12674 +# This file is free software; the Free Software Foundation
12675 +# gives unlimited permission to copy and/or distribute it,
12676 +# with or without modifications, as long as this notice is preserved.
12677 +
12678 +#serial 3
12679 +
12680 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
12681 +# ------------------------------
12682 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
12683 +[for mf in $CONFIG_FILES; do
12684 + # Strip MF so we end up with the name of the file.
12685 + mf=`echo "$mf" | sed -e 's/:.*$//'`
12686 + # Check whether this is an Automake generated Makefile or not.
12687 + # We used to match only the files named `Makefile.in', but
12688 + # some people rename them; so instead we look at the file content.
12689 + # Grep'ing the first line is not enough: some people post-process
12690 + # each Makefile.in and add a new line on top of each file to say so.
12691 + # So let's grep whole file.
12692 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12693 + dirpart=`AS_DIRNAME("$mf")`
12694 + else
12695 + continue
12696 + fi
12697 + # Extract the definition of DEPDIR, am__include, and am__quote
12698 + # from the Makefile without running `make'.
12699 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12700 + test -z "$DEPDIR" && continue
12701 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
12702 + test -z "am__include" && continue
12703 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12704 + # When using ansi2knr, U may be empty or an underscore; expand it
12705 + U=`sed -n 's/^U = //p' < "$mf"`
12706 + # Find all dependency output files, they are included files with
12707 + # $(DEPDIR) in their names. We invoke sed twice because it is the
12708 + # simplest approach to changing $(DEPDIR) to its actual value in the
12709 + # expansion.
12710 + for file in `sed -n "
12711 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12712 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12713 + # Make sure the directory exists.
12714 + test -f "$dirpart/$file" && continue
12715 + fdir=`AS_DIRNAME(["$file"])`
12716 + AS_MKDIR_P([$dirpart/$fdir])
12717 + # echo "creating $dirpart/$file"
12718 + echo '# dummy' > "$dirpart/$file"
12719 + done
12720 +done
12721 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
12722
12723 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12724 - freebsd2*)
12725 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12726 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12727 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12728 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12729 - ;;
12730
12731 - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12732 - freebsd* | kfreebsd*-gnu)
12733 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12734 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12735 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12736 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12737 - ;;
12738 +# AM_OUTPUT_DEPENDENCY_COMMANDS
12739 +# -----------------------------
12740 +# This macro should only be invoked once -- use via AC_REQUIRE.
12741 +#
12742 +# This code is only required when automatic dependency tracking
12743 +# is enabled. FIXME. This creates each `.P' file that we will
12744 +# need in order to bootstrap the dependency handling code.
12745 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
12746 +[AC_CONFIG_COMMANDS([depfiles],
12747 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
12748 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
12749 +])
12750
12751 - hpux9*)
12752 - if test "$GCC" = yes; then
12753 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12754 - else
12755 - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12756 - fi
12757 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12758 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12759 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12760 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
12761 +# Free Software Foundation, Inc.
12762 +#
12763 +# This file is free software; the Free Software Foundation
12764 +# gives unlimited permission to copy and/or distribute it,
12765 +# with or without modifications, as long as this notice is preserved.
12766
12767 - # hardcode_minus_L: Not really in the search PATH,
12768 - # but as the default location of the library.
12769 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12770 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12771 - ;;
12772 +# serial 8
12773
12774 - hpux10* | hpux11*)
12775 - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12776 - case "$host_cpu" in
12777 - hppa*64*|ia64*)
12778 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12779 - ;;
12780 - *)
12781 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12782 - ;;
12783 - esac
12784 - else
12785 - case "$host_cpu" in
12786 - hppa*64*|ia64*)
12787 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12788 - ;;
12789 - *)
12790 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12791 - ;;
12792 - esac
12793 - fi
12794 - if test "$with_gnu_ld" = no; then
12795 - case "$host_cpu" in
12796 - hppa*64*)
12797 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12798 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
12799 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12800 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12801 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12802 - ;;
12803 - ia64*)
12804 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12805 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
12806 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12807 +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
12808 +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
12809
12810 - # hardcode_minus_L: Not really in the search PATH,
12811 - # but as the default location of the library.
12812 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12813 - ;;
12814 - *)
12815 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
12816 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12817 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12818 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12819 +# Do all the work for Automake. -*- Autoconf -*-
12820
12821 - # hardcode_minus_L: Not really in the search PATH,
12822 - # but as the default location of the library.
12823 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12824 - ;;
12825 - esac
12826 - fi
12827 - ;;
12828 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
12829 +# Free Software Foundation, Inc.
12830 +#
12831 +# This file is free software; the Free Software Foundation
12832 +# gives unlimited permission to copy and/or distribute it,
12833 +# with or without modifications, as long as this notice is preserved.
12834
12835 - irix5* | irix6* | nonstopux*)
12836 - if test "$GCC" = yes; then
12837 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12838 - else
12839 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12840 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
12841 - fi
12842 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12843 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12844 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12845 - ;;
12846 +# serial 12
12847
12848 - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12849 - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12850 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12851 - else
12852 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12853 - fi
12854 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12855 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12856 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12857 - ;;
12858 +# This macro actually does too much. Some checks are only needed if
12859 +# your package does certain things. But this isn't really a big deal.
12860
12861 - newsos6)
12862 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12863 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12864 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12865 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12866 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12867 - ;;
12868 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
12869 +# AM_INIT_AUTOMAKE([OPTIONS])
12870 +# -----------------------------------------------
12871 +# The call with PACKAGE and VERSION arguments is the old style
12872 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
12873 +# and VERSION should now be passed to AC_INIT and removed from
12874 +# the call to AM_INIT_AUTOMAKE.
12875 +# We support both call styles for the transition. After
12876 +# the next Automake release, Autoconf can make the AC_INIT
12877 +# arguments mandatory, and then we can depend on a new Autoconf
12878 +# release and drop the old call support.
12879 +AC_DEFUN([AM_INIT_AUTOMAKE],
12880 +[AC_PREREQ([2.58])dnl
12881 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
12882 +dnl the ones we care about.
12883 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
12884 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
12885 +AC_REQUIRE([AC_PROG_INSTALL])dnl
12886 +# test to see if srcdir already configured
12887 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
12888 + test -f $srcdir/config.status; then
12889 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
12890 +fi
12891
12892 - openbsd*)
12893 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
12894 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12895 - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12896 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12897 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
12898 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12899 - else
12900 - case $host_os in
12901 - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
12902 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12903 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12904 - ;;
12905 - *)
12906 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12907 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
12908 - ;;
12909 - esac
12910 - fi
12911 - ;;
12912 +# test whether we have cygpath
12913 +if test -z "$CYGPATH_W"; then
12914 + if (cygpath --version) >/dev/null 2>/dev/null; then
12915 + CYGPATH_W='cygpath -w'
12916 + else
12917 + CYGPATH_W=echo
12918 + fi
12919 +fi
12920 +AC_SUBST([CYGPATH_W])
12921
12922 - os2*)
12923 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
12924 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
12925 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
12926 - _LT_AC_TAGVAR(archive_cmds, $1)='$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'
12927 - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12928 - ;;
12929 +# Define the identity of the package.
12930 +dnl Distinguish between old-style and new-style calls.
12931 +m4_ifval([$2],
12932 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
12933 + AC_SUBST([PACKAGE], [$1])dnl
12934 + AC_SUBST([VERSION], [$2])],
12935 +[_AM_SET_OPTIONS([$1])dnl
12936 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
12937 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
12938
12939 - osf3*)
12940 - if test "$GCC" = yes; then
12941 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
12942 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12943 - else
12944 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
12945 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12946 - fi
12947 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12948 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12949 - ;;
12950 +_AM_IF_OPTION([no-define],,
12951 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
12952 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
12953
12954 - osf4* | osf5*) # as osf3* with the addition of -msym flag
12955 - if test "$GCC" = yes; then
12956 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
12957 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12958 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
12959 - else
12960 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
12961 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12962 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12963 - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12964 +# Some tools Automake needs.
12965 +AC_REQUIRE([AM_SANITY_CHECK])dnl
12966 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
12967 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
12968 +AM_MISSING_PROG(AUTOCONF, autoconf)
12969 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
12970 +AM_MISSING_PROG(AUTOHEADER, autoheader)
12971 +AM_MISSING_PROG(MAKEINFO, makeinfo)
12972 +AM_PROG_INSTALL_SH
12973 +AM_PROG_INSTALL_STRIP
12974 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
12975 +# We need awk for the "check" target. The system "awk" is bad on
12976 +# some platforms.
12977 +AC_REQUIRE([AC_PROG_AWK])dnl
12978 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
12979 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
12980 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
12981 + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
12982 + [_AM_PROG_TAR([v7])])])
12983 +_AM_IF_OPTION([no-dependencies],,
12984 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
12985 + [_AM_DEPENDENCIES(CC)],
12986 + [define([AC_PROG_CC],
12987 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
12988 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
12989 + [_AM_DEPENDENCIES(CXX)],
12990 + [define([AC_PROG_CXX],
12991 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
12992 +])
12993 +])
12994
12995 - # Both c and cxx compiler support -rpath directly
12996 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
12997 - fi
12998 - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
12999 - ;;
13000
13001 - sco3.2v5*)
13002 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13003 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13004 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
13005 - runpath_var=LD_RUN_PATH
13006 - hardcode_runpath_var=yes
13007 - ;;
13008 +# When config.status generates a header, we must update the stamp-h file.
13009 +# This file resides in the same directory as the config header
13010 +# that is generated. The stamp files are numbered to have different names.
13011
13012 - solaris*)
13013 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
13014 - if test "$GCC" = yes; then
13015 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13016 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13017 - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13018 - else
13019 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13020 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13021 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13022 - fi
13023 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
13024 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13025 - case $host_os in
13026 - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
13027 - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13028 - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
13029 - esac
13030 - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
13031 - ;;
13032 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
13033 +# loop where config.status creates the headers, so we can generate
13034 +# our stamp files there.
13035 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
13036 +[# Compute $1's index in $config_headers.
13037 +_am_stamp_count=1
13038 +for _am_header in $config_headers :; do
13039 + case $_am_header in
13040 + $1 | $1:* )
13041 + break ;;
13042 + * )
13043 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13044 + esac
13045 +done
13046 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
13047
13048 - sunos4*)
13049 - if test "x$host_vendor" = xsequent; then
13050 - # Use $CC to link under sequent, because it throws in some extra .o
13051 - # files that make .init and .fini sections work.
13052 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13053 - else
13054 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13055 - fi
13056 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
13057 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
13058 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
13059 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13060 - ;;
13061 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
13062 +#
13063 +# This file is free software; the Free Software Foundation
13064 +# gives unlimited permission to copy and/or distribute it,
13065 +# with or without modifications, as long as this notice is preserved.
13066
13067 - sysv4)
13068 - case $host_vendor in
13069 - sni)
13070 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13071 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
13072 - ;;
13073 - siemens)
13074 - ## LD is ld it makes a PLAMLIB
13075 - ## CC just makes a GrossModule.
13076 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13077 - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
13078 - _LT_AC_TAGVAR(hardcode_direct, $1)=no
13079 - ;;
13080 - motorola)
13081 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13082 - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
13083 - ;;
13084 - esac
13085 - runpath_var='LD_RUN_PATH'
13086 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13087 - ;;
13088 +# AM_PROG_INSTALL_SH
13089 +# ------------------
13090 +# Define $install_sh.
13091 +AC_DEFUN([AM_PROG_INSTALL_SH],
13092 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
13093 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
13094 +AC_SUBST(install_sh)])
13095
13096 - sysv4.3*)
13097 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13098 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13099 - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
13100 - ;;
13101 +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
13102 +#
13103 +# This file is free software; the Free Software Foundation
13104 +# gives unlimited permission to copy and/or distribute it,
13105 +# with or without modifications, as long as this notice is preserved.
13106
13107 - sysv4*MP*)
13108 - if test -d /usr/nec; then
13109 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13110 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13111 - runpath_var=LD_RUN_PATH
13112 - hardcode_runpath_var=yes
13113 - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
13114 - fi
13115 - ;;
13116 +# serial 2
13117
13118 - sysv4.2uw2*)
13119 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13120 - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
13121 - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
13122 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13123 - hardcode_runpath_var=yes
13124 - runpath_var=LD_RUN_PATH
13125 - ;;
13126 +# Check whether the underlying file-system supports filenames
13127 +# with a leading dot. For instance MS-DOS doesn't.
13128 +AC_DEFUN([AM_SET_LEADING_DOT],
13129 +[rm -rf .tst 2>/dev/null
13130 +mkdir .tst 2>/dev/null
13131 +if test -d .tst; then
13132 + am__leading_dot=.
13133 +else
13134 + am__leading_dot=_
13135 +fi
13136 +rmdir .tst 2>/dev/null
13137 +AC_SUBST([am__leading_dot])])
13138
13139 - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
13140 - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
13141 - if test "$GCC" = yes; then
13142 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13143 - else
13144 - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13145 - fi
13146 - runpath_var='LD_RUN_PATH'
13147 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13148 - ;;
13149 +# Check to see how 'make' treats includes. -*- Autoconf -*-
13150
13151 - sysv5*)
13152 - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
13153 - # $CC -shared without GNU ld will not create a library from C++
13154 - # object files and a static libstdc++, better avoid it by now
13155 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13156 - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13157 - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13158 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
13159 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13160 - runpath_var='LD_RUN_PATH'
13161 - ;;
13162 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
13163 +#
13164 +# This file is free software; the Free Software Foundation
13165 +# gives unlimited permission to copy and/or distribute it,
13166 +# with or without modifications, as long as this notice is preserved.
13167
13168 - uts4*)
13169 - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13170 - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
13171 - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
13172 - ;;
13173 +# serial 3
13174
13175 - *)
13176 - _LT_AC_TAGVAR(ld_shlibs, $1)=no
13177 - ;;
13178 - esac
13179 - fi
13180 +# AM_MAKE_INCLUDE()
13181 +# -----------------
13182 +# Check to see how make treats includes.
13183 +AC_DEFUN([AM_MAKE_INCLUDE],
13184 +[am_make=${MAKE-make}
13185 +cat > confinc << 'END'
13186 +am__doit:
13187 + @echo done
13188 +.PHONY: am__doit
13189 +END
13190 +# If we don't find an include directive, just comment out the code.
13191 +AC_MSG_CHECKING([for style of include used by $am_make])
13192 +am__include="#"
13193 +am__quote=
13194 +_am_result=none
13195 +# First try GNU make style include.
13196 +echo "include confinc" > confmf
13197 +# We grep out `Entering directory' and `Leaving directory'
13198 +# messages which can occur if `w' ends up in MAKEFLAGS.
13199 +# In particular we don't look at `^make:' because GNU make might
13200 +# be invoked under some other name (usually "gmake"), in which
13201 +# case it prints its new name instead of `make'.
13202 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
13203 + am__include=include
13204 + am__quote=
13205 + _am_result=GNU
13206 +fi
13207 +# Now try BSD make style include.
13208 +if test "$am__include" = "#"; then
13209 + echo '.include "confinc"' > confmf
13210 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
13211 + am__include=.include
13212 + am__quote="\""
13213 + _am_result=BSD
13214 + fi
13215 +fi
13216 +AC_SUBST([am__include])
13217 +AC_SUBST([am__quote])
13218 +AC_MSG_RESULT([$_am_result])
13219 +rm -f confinc confmf
13220 ])
13221 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
13222 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
13223
13224 -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13225 -if test "$GCC" = yes; then
13226 - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13227 -fi
13228 +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
13229
13230 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
13231 +# Free Software Foundation, Inc.
13232 #
13233 -# Do we need to explicitly link libc?
13234 -#
13235 -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
13236 -x|xyes)
13237 - # Assume -lc should be added
13238 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
13239 +# This file is free software; the Free Software Foundation
13240 +# gives unlimited permission to copy and/or distribute it,
13241 +# with or without modifications, as long as this notice is preserved.
13242
13243 - if test "$enable_shared" = yes && test "$GCC" = yes; then
13244 - case $_LT_AC_TAGVAR(archive_cmds, $1) in
13245 - *'~'*)
13246 - # FIXME: we may have to deal with multi-command sequences.
13247 - ;;
13248 - '$CC '*)
13249 - # Test whether the compiler implicitly links with -lc since on some
13250 - # systems, -lgcc has to come before -lc. If gcc already passes -lc
13251 - # to ld, don't add -lc before -lgcc.
13252 - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
13253 - $rm conftest*
13254 - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13255 +# serial 4
13256
13257 - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
13258 - soname=conftest
13259 - lib=conftest
13260 - libobjs=conftest.$ac_objext
13261 - deplibs=
13262 - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
13263 - compiler_flags=-v
13264 - linker_flags=-v
13265 - verstring=
13266 - output_objdir=.
13267 - libname=conftest
13268 - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
13269 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
13270 - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
13271 - then
13272 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
13273 - else
13274 - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
13275 - fi
13276 - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
13277 - else
13278 - cat conftest.err 1>&5
13279 - fi
13280 - $rm conftest*
13281 - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
13282 - ;;
13283 - esac
13284 - fi
13285 - ;;
13286 -esac
13287 -])# AC_LIBTOOL_PROG_LD_SHLIBS
13288 +# AM_MISSING_PROG(NAME, PROGRAM)
13289 +# ------------------------------
13290 +AC_DEFUN([AM_MISSING_PROG],
13291 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
13292 +$1=${$1-"${am_missing_run}$2"}
13293 +AC_SUBST($1)])
13294 +
13295 +
13296 +# AM_MISSING_HAS_RUN
13297 +# ------------------
13298 +# Define MISSING if not defined so far and test if it supports --run.
13299 +# If it does, set am_missing_run to use it, otherwise, to nothing.
13300 +AC_DEFUN([AM_MISSING_HAS_RUN],
13301 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
13302 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
13303 +# Use eval to expand $SHELL
13304 +if eval "$MISSING --run true"; then
13305 + am_missing_run="$MISSING --run "
13306 +else
13307 + am_missing_run=
13308 + AC_MSG_WARN([`missing' script is too old or missing])
13309 +fi
13310 +])
13311
13312 +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
13313 +#
13314 +# This file is free software; the Free Software Foundation
13315 +# gives unlimited permission to copy and/or distribute it,
13316 +# with or without modifications, as long as this notice is preserved.
13317
13318 -# _LT_AC_FILE_LTDLL_C
13319 -# -------------------
13320 -# Be careful that the start marker always follows a newline.
13321 -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
13322 -# /* ltdll.c starts here */
13323 -# #define WIN32_LEAN_AND_MEAN
13324 -# #include <windows.h>
13325 -# #undef WIN32_LEAN_AND_MEAN
13326 -# #include <stdio.h>
13327 +# AM_PROG_MKDIR_P
13328 +# ---------------
13329 +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
13330 #
13331 -# #ifndef __CYGWIN__
13332 -# # ifdef __CYGWIN32__
13333 -# # define __CYGWIN__ __CYGWIN32__
13334 -# # endif
13335 -# #endif
13336 +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
13337 +# created by `make install' are always world readable, even if the
13338 +# installer happens to have an overly restrictive umask (e.g. 077).
13339 +# This was a mistake. There are at least two reasons why we must not
13340 +# use `-m 0755':
13341 +# - it causes special bits like SGID to be ignored,
13342 +# - it may be too restrictive (some setups expect 775 directories).
13343 #
13344 -# #ifdef __cplusplus
13345 -# extern "C" {
13346 -# #endif
13347 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
13348 -# #ifdef __cplusplus
13349 -# }
13350 -# #endif
13351 +# Do not use -m 0755 and let people choose whatever they expect by
13352 +# setting umask.
13353 #
13354 -# #ifdef __CYGWIN__
13355 -# #include <cygwin/cygwin_dll.h>
13356 -# DECLARE_CYGWIN_DLL( DllMain );
13357 -# #endif
13358 -# HINSTANCE __hDllInstance_base;
13359 +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
13360 +# Some implementations (such as Solaris 8's) are not thread-safe: if a
13361 +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
13362 +# concurrently, both version can detect that a/ is missing, but only
13363 +# one can create it and the other will error out. Consequently we
13364 +# restrict ourselves to GNU make (using the --version option ensures
13365 +# this.)
13366 +AC_DEFUN([AM_PROG_MKDIR_P],
13367 +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
13368 + # We used to keeping the `.' as first argument, in order to
13369 + # allow $(mkdir_p) to be used without argument. As in
13370 + # $(mkdir_p) $(somedir)
13371 + # where $(somedir) is conditionally defined. However this is wrong
13372 + # for two reasons:
13373 + # 1. if the package is installed by a user who cannot write `.'
13374 + # make install will fail,
13375 + # 2. the above comment should most certainly read
13376 + # $(mkdir_p) $(DESTDIR)$(somedir)
13377 + # so it does not work when $(somedir) is undefined and
13378 + # $(DESTDIR) is not.
13379 + # To support the latter case, we have to write
13380 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
13381 + # so the `.' trick is pointless.
13382 + mkdir_p='mkdir -p --'
13383 +else
13384 + # On NextStep and OpenStep, the `mkdir' command does not
13385 + # recognize any option. It will interpret all options as
13386 + # directories to create, and then abort because `.' already
13387 + # exists.
13388 + for d in ./-p ./--version;
13389 + do
13390 + test -d $d && rmdir $d
13391 + done
13392 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
13393 + if test -f "$ac_aux_dir/mkinstalldirs"; then
13394 + mkdir_p='$(mkinstalldirs)'
13395 + else
13396 + mkdir_p='$(install_sh) -d'
13397 + fi
13398 +fi
13399 +AC_SUBST([mkdir_p])])
13400 +
13401 +# Helper functions for option handling. -*- Autoconf -*-
13402 +
13403 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
13404 #
13405 -# BOOL APIENTRY
13406 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
13407 -# {
13408 -# __hDllInstance_base = hInst;
13409 -# return TRUE;
13410 -# }
13411 -# /* ltdll.c ends here */
13412 -])# _LT_AC_FILE_LTDLL_C
13413 +# This file is free software; the Free Software Foundation
13414 +# gives unlimited permission to copy and/or distribute it,
13415 +# with or without modifications, as long as this notice is preserved.
13416
13417 +# serial 3
13418
13419 -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
13420 -# ---------------------------------
13421 -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
13422 +# _AM_MANGLE_OPTION(NAME)
13423 +# -----------------------
13424 +AC_DEFUN([_AM_MANGLE_OPTION],
13425 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
13426
13427 +# _AM_SET_OPTION(NAME)
13428 +# ------------------------------
13429 +# Set option NAME. Presently that only means defining a flag for this option.
13430 +AC_DEFUN([_AM_SET_OPTION],
13431 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
13432
13433 -# old names
13434 -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
13435 -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
13436 -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
13437 -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
13438 -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
13439 -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
13440 -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
13441 +# _AM_SET_OPTIONS(OPTIONS)
13442 +# ----------------------------------
13443 +# OPTIONS is a space-separated list of Automake options.
13444 +AC_DEFUN([_AM_SET_OPTIONS],
13445 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
13446
13447 -# This is just to silence aclocal about the macro not being used
13448 -ifelse([AC_DISABLE_FAST_INSTALL])
13449 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
13450 +# -------------------------------------------
13451 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
13452 +AC_DEFUN([_AM_IF_OPTION],
13453 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
13454
13455 -AC_DEFUN([LT_AC_PROG_GCJ],
13456 -[AC_CHECK_TOOL(GCJ, gcj, no)
13457 - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13458 - AC_SUBST(GCJFLAGS)
13459 -])
13460 +# Check to make sure that the build environment is sane. -*- Autoconf -*-
13461
13462 -AC_DEFUN([LT_AC_PROG_RC],
13463 -[AC_CHECK_TOOL(RC, windres, no)
13464 -])
13465 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
13466 +# Free Software Foundation, Inc.
13467 +#
13468 +# This file is free software; the Free Software Foundation
13469 +# gives unlimited permission to copy and/or distribute it,
13470 +# with or without modifications, as long as this notice is preserved.
13471
13472 -# NOTE: This macro has been submitted for inclusion into #
13473 -# GNU Autoconf as AC_PROG_SED. When it is available in #
13474 -# a released version of Autoconf we should remove this #
13475 -# macro and use it instead. #
13476 -# LT_AC_PROG_SED
13477 -# --------------
13478 -# Check for a fully-functional sed program, that truncates
13479 -# as few characters as possible. Prefer GNU sed if found.
13480 -AC_DEFUN([LT_AC_PROG_SED],
13481 -[AC_MSG_CHECKING([for a sed that does not truncate output])
13482 -AC_CACHE_VAL(lt_cv_path_SED,
13483 -[# Loop through the user's path and test for sed and gsed.
13484 -# Then use that list of sed's as ones to test for truncation.
13485 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 -for as_dir in $PATH
13487 -do
13488 - IFS=$as_save_IFS
13489 - test -z "$as_dir" && as_dir=.
13490 - for lt_ac_prog in sed gsed; do
13491 - for ac_exec_ext in '' $ac_executable_extensions; do
13492 - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
13493 - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
13494 - fi
13495 - done
13496 - done
13497 -done
13498 -lt_ac_max=0
13499 -lt_ac_count=0
13500 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
13501 -# along with /bin/sed that truncates output.
13502 -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
13503 - test ! -f $lt_ac_sed && break
13504 - cat /dev/null > conftest.in
13505 - lt_ac_count=0
13506 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
13507 - # Check for GNU sed and select it if it is found.
13508 - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
13509 - lt_cv_path_SED=$lt_ac_sed
13510 - break
13511 - fi
13512 - while true; do
13513 - cat conftest.in conftest.in >conftest.tmp
13514 - mv conftest.tmp conftest.in
13515 - cp conftest.in conftest.nl
13516 - echo >>conftest.nl
13517 - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
13518 - cmp -s conftest.out conftest.nl || break
13519 - # 10000 chars as input seems more than enough
13520 - test $lt_ac_count -gt 10 && break
13521 - lt_ac_count=`expr $lt_ac_count + 1`
13522 - if test $lt_ac_count -gt $lt_ac_max; then
13523 - lt_ac_max=$lt_ac_count
13524 - lt_cv_path_SED=$lt_ac_sed
13525 - fi
13526 - done
13527 -done
13528 -SED=$lt_cv_path_SED
13529 -])
13530 -AC_MSG_RESULT([$SED])
13531 -])
13532 +# serial 4
13533
13534 +# AM_SANITY_CHECK
13535 +# ---------------
13536 +AC_DEFUN([AM_SANITY_CHECK],
13537 +[AC_MSG_CHECKING([whether build environment is sane])
13538 +# Just in case
13539 +sleep 1
13540 +echo timestamp > conftest.file
13541 +# Do `set' in a subshell so we don't clobber the current shell's
13542 +# arguments. Must try -L first in case configure is actually a
13543 +# symlink; some systems play weird games with the mod time of symlinks
13544 +# (eg FreeBSD returns the mod time of the symlink's containing
13545 +# directory).
13546 +if (
13547 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
13548 + if test "$[*]" = "X"; then
13549 + # -L didn't work.
13550 + set X `ls -t $srcdir/configure conftest.file`
13551 + fi
13552 + rm -f conftest.file
13553 + if test "$[*]" != "X $srcdir/configure conftest.file" \
13554 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
13555
13556 -dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
13557 -dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
13558 -dnl also defines GSTUFF_PKG_ERRORS on error
13559 -AC_DEFUN(PKG_CHECK_MODULES, [
13560 - succeeded=no
13561 -
13562 - if test -z "$PKG_CONFIG"; then
13563 - AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
13564 - fi
13565 + # If neither matched, then we have a broken ls. This can happen
13566 + # if, for instance, CONFIG_SHELL is bash and it inherits a
13567 + # broken ls alias from the environment. This has actually
13568 + # happened. Such a system could not be considered "sane".
13569 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
13570 +alias in your environment])
13571 + fi
13572
13573 - if test "$PKG_CONFIG" = "no" ; then
13574 - echo "*** The pkg-config script could not be found. Make sure it is"
13575 - echo "*** in your path, or set the PKG_CONFIG environment variable"
13576 - echo "*** to the full path to pkg-config."
13577 - echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13578 - else
13579 - PKG_CONFIG_MIN_VERSION=0.9.0
13580 - if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13581 - AC_MSG_CHECKING(for $2)
13582 -
13583 - if $PKG_CONFIG --exists "$2" ; then
13584 - AC_MSG_RESULT(yes)
13585 - succeeded=yes
13586 -
13587 - AC_MSG_CHECKING($1_CFLAGS)
13588 - $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
13589 - AC_MSG_RESULT($$1_CFLAGS)
13590 -
13591 - AC_MSG_CHECKING($1_LIBS)
13592 - $1_LIBS=`$PKG_CONFIG --libs "$2"`
13593 - AC_MSG_RESULT($$1_LIBS)
13594 - else
13595 - $1_CFLAGS=""
13596 - $1_LIBS=""
13597 - ## If we have a custom action on failure, don't print errors, but
13598 - ## do set a variable so people can do so.
13599 - $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
13600 - ifelse([$4], ,echo $$1_PKG_ERRORS,)
13601 - fi
13602 + test "$[2]" = conftest.file
13603 + )
13604 +then
13605 + # Ok.
13606 + :
13607 +else
13608 + AC_MSG_ERROR([newly created file is older than distributed files!
13609 +Check your system clock])
13610 +fi
13611 +AC_MSG_RESULT(yes)])
13612
13613 - AC_SUBST($1_CFLAGS)
13614 - AC_SUBST($1_LIBS)
13615 - else
13616 - echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13617 - echo "*** See http://www.freedesktop.org/software/pkgconfig"
13618 - fi
13619 - fi
13620 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
13621 +#
13622 +# This file is free software; the Free Software Foundation
13623 +# gives unlimited permission to copy and/or distribute it,
13624 +# with or without modifications, as long as this notice is preserved.
13625
13626 - if test $succeeded = yes; then
13627 - ifelse([$3], , :, [$3])
13628 - else
13629 - ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
13630 - fi
13631 -])
13632 +# AM_PROG_INSTALL_STRIP
13633 +# ---------------------
13634 +# One issue with vendor `install' (even GNU) is that you can't
13635 +# specify the program used to strip binaries. This is especially
13636 +# annoying in cross-compiling environments, where the build's strip
13637 +# is unlikely to handle the host's binaries.
13638 +# Fortunately install-sh will honor a STRIPPROG variable, so we
13639 +# always use install-sh in `make install-strip', and initialize
13640 +# STRIPPROG with the value of the STRIP variable (set by the user).
13641 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
13642 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
13643 +# Installed binaries are usually stripped using `strip' when the user
13644 +# run `make install-strip'. However `strip' might not be the right
13645 +# tool to use in cross-compilation environments, therefore Automake
13646 +# will honor the `STRIP' environment variable to overrule this program.
13647 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
13648 +if test "$cross_compiling" != no; then
13649 + AC_CHECK_TOOL([STRIP], [strip], :)
13650 +fi
13651 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
13652 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
13653 +
13654 +# Check how to create a tarball. -*- Autoconf -*-
13655 +
13656 +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
13657 +#
13658 +# This file is free software; the Free Software Foundation
13659 +# gives unlimited permission to copy and/or distribute it,
13660 +# with or without modifications, as long as this notice is preserved.
13661 +
13662 +# serial 2
13663 +
13664 +# _AM_PROG_TAR(FORMAT)
13665 +# --------------------
13666 +# Check how to create a tarball in format FORMAT.
13667 +# FORMAT should be one of `v7', `ustar', or `pax'.
13668 +#
13669 +# Substitute a variable $(am__tar) that is a command
13670 +# writing to stdout a FORMAT-tarball containing the directory
13671 +# $tardir.
13672 +# tardir=directory && $(am__tar) > result.tar
13673 +#
13674 +# Substitute a variable $(am__untar) that extract such
13675 +# a tarball read from stdin.
13676 +# $(am__untar) < result.tar
13677 +AC_DEFUN([_AM_PROG_TAR],
13678 +[# Always define AMTAR for backward compatibility.
13679 +AM_MISSING_PROG([AMTAR], [tar])
13680 +m4_if([$1], [v7],
13681 + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
13682 + [m4_case([$1], [ustar],, [pax],,
13683 + [m4_fatal([Unknown tar format])])
13684 +AC_MSG_CHECKING([how to create a $1 tar archive])
13685 +# Loop over all known methods to create a tar archive until one works.
13686 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
13687 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
13688 +# Do not fold the above two line into one, because Tru64 sh and
13689 +# Solaris sh will not grok spaces in the rhs of `-'.
13690 +for _am_tool in $_am_tools
13691 +do
13692 + case $_am_tool in
13693 + gnutar)
13694 + for _am_tar in tar gnutar gtar;
13695 + do
13696 + AM_RUN_LOG([$_am_tar --version]) && break
13697 + done
13698 + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
13699 + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
13700 + am__untar="$_am_tar -xf -"
13701 + ;;
13702 + plaintar)
13703 + # Must skip GNU tar: if it does not support --format= it doesn't create
13704 + # ustar tarball either.
13705 + (tar --version) >/dev/null 2>&1 && continue
13706 + am__tar='tar chf - "$$tardir"'
13707 + am__tar_='tar chf - "$tardir"'
13708 + am__untar='tar xf -'
13709 + ;;
13710 + pax)
13711 + am__tar='pax -L -x $1 -w "$$tardir"'
13712 + am__tar_='pax -L -x $1 -w "$tardir"'
13713 + am__untar='pax -r'
13714 + ;;
13715 + cpio)
13716 + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
13717 + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
13718 + am__untar='cpio -i -H $1 -d'
13719 + ;;
13720 + none)
13721 + am__tar=false
13722 + am__tar_=false
13723 + am__untar=false
13724 + ;;
13725 + esac
13726
13727 + # If the value was cached, stop now. We just wanted to have am__tar
13728 + # and am__untar set.
13729 + test -n "${am_cv_prog_tar_$1}" && break
13730 +
13731 + # tar/untar a dummy directory, and stop if the command works
13732 + rm -rf conftest.dir
13733 + mkdir conftest.dir
13734 + echo GrepMe > conftest.dir/file
13735 + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
13736 + rm -rf conftest.dir
13737 + if test -s conftest.tar; then
13738 + AM_RUN_LOG([$am__untar <conftest.tar])
13739 + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
13740 + fi
13741 +done
13742 +rm -rf conftest.dir
13743
13744 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
13745 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
13746 +AC_SUBST([am__tar])
13747 +AC_SUBST([am__untar])
13748 +]) # _AM_PROG_TAR
13749
13750 +m4_include([acinclude.m4])
13751 diff -urN libsamplerate.old/ltmain.sh libsamplerate.dev/ltmain.sh
13752 --- libsamplerate.old/ltmain.sh 2007-11-07 23:58:24.448610386 +0100
13753 +++ libsamplerate.dev/ltmain.sh 2006-03-22 01:06:55.000000000 +0100
13754 @@ -1,7 +1,7 @@
13755 # ltmain.sh - Provide generalized library-building support services.
13756 # NOTE: Changing this file will not affect anything until you rerun configure.
13757 #
13758 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
13759 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
13760 # Free Software Foundation, Inc.
13761 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13762 #
13763 @@ -17,7 +17,7 @@
13764 #
13765 # You should have received a copy of the GNU General Public License
13766 # along with this program; if not, write to the Free Software
13767 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
13768 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13769 #
13770 # As a special exception to the GNU General Public License, if you
13771 # distribute this file as part of a program that contains a
13772 @@ -43,9 +43,14 @@
13773
13774 PROGRAM=ltmain.sh
13775 PACKAGE=libtool
13776 -VERSION=1.5.6
13777 -TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 215 $"
13778 +VERSION="1.5.22 Debian 1.5.22-4"
13779 +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
13780
13781 +# See if we are running on zsh, and set the options which allow our
13782 +# commands through without removal of \ escapes.
13783 +if test -n "${ZSH_VERSION+set}" ; then
13784 + setopt NO_GLOB_SUBST
13785 +fi
13786
13787 # Check that we have a working $echo.
13788 if test "X$1" = X--no-reexec; then
13789 @@ -83,14 +88,15 @@
13790 Xsed="${SED}"' -e 1s/^X//'
13791 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
13792 # test EBCDIC or ASCII
13793 -case `echo A|tr A '\301'` in
13794 - A) # EBCDIC based system
13795 - SP2NL="tr '\100' '\n'"
13796 - NL2SP="tr '\r\n' '\100\100'"
13797 +case `echo X|tr X '\101'` in
13798 + A) # ASCII based system
13799 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13800 + SP2NL='tr \040 \012'
13801 + NL2SP='tr \015\012 \040\040'
13802 ;;
13803 - *) # Assume ASCII based system
13804 - SP2NL="tr '\040' '\012'"
13805 - NL2SP="tr '\015\012' '\040\040'"
13806 + *) # EBCDIC based system
13807 + SP2NL='tr \100 \n'
13808 + NL2SP='tr \r\n \100\100'
13809 ;;
13810 esac
13811
13812 @@ -107,8 +113,9 @@
13813 fi
13814
13815 # Make sure IFS has a sensible default
13816 -: ${IFS="
13817 -"}
13818 +lt_nl='
13819 +'
13820 +IFS=" $lt_nl"
13821
13822 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
13823 $echo "$modename: not configured to build any kind of library" 1>&2
13824 @@ -125,6 +132,8 @@
13825 show="$echo"
13826 show_help=
13827 execute_dlfiles=
13828 +duplicate_deps=no
13829 +preserve_args=
13830 lo2o="s/\\.lo\$/.${objext}/"
13831 o2lo="s/\\.${objext}\$/.lo/"
13832
13833 @@ -132,13 +141,51 @@
13834 # Shell function definitions:
13835 # This seems to be the best place for them
13836
13837 +# func_mktempdir [string]
13838 +# Make a temporary directory that won't clash with other running
13839 +# libtool processes, and avoids race conditions if possible. If
13840 +# given, STRING is the basename for that directory.
13841 +func_mktempdir ()
13842 +{
13843 + my_template="${TMPDIR-/tmp}/${1-$progname}"
13844 +
13845 + if test "$run" = ":"; then
13846 + # Return a directory name, but don't create it in dry-run mode
13847 + my_tmpdir="${my_template}-$$"
13848 + else
13849 +
13850 + # If mktemp works, use that first and foremost
13851 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
13852 +
13853 + if test ! -d "$my_tmpdir"; then
13854 + # Failing that, at least try and use $RANDOM to avoid a race
13855 + my_tmpdir="${my_template}-${RANDOM-0}$$"
13856 +
13857 + save_mktempdir_umask=`umask`
13858 + umask 0077
13859 + $mkdir "$my_tmpdir"
13860 + umask $save_mktempdir_umask
13861 + fi
13862 +
13863 + # If we're not in dry-run mode, bomb out on failure
13864 + test -d "$my_tmpdir" || {
13865 + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
13866 + exit $EXIT_FAILURE
13867 + }
13868 + fi
13869 +
13870 + $echo "X$my_tmpdir" | $Xsed
13871 +}
13872 +
13873 +
13874 # func_win32_libid arg
13875 # return the library type of file 'arg'
13876 #
13877 # Need a lot of goo to handle *both* DLLs and import libs
13878 # Has to be a shell function in order to 'eat' the argument
13879 # that is supplied when $file_magic_command is called.
13880 -func_win32_libid () {
13881 +func_win32_libid ()
13882 +{
13883 win32_libid_type="unknown"
13884 win32_fileres=`file -L $1 2>/dev/null`
13885 case $win32_fileres in
13886 @@ -149,12 +196,11 @@
13887 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
13888 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
13889 win32_nmres=`eval $NM -f posix -A $1 | \
13890 - sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
13891 - if test "X$win32_nmres" = "Ximport" ; then
13892 - win32_libid_type="x86 archive import"
13893 - else
13894 - win32_libid_type="x86 archive static"
13895 - fi
13896 + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
13897 + case $win32_nmres in
13898 + import*) win32_libid_type="x86 archive import";;
13899 + *) win32_libid_type="x86 archive static";;
13900 + esac
13901 fi
13902 ;;
13903 *DLL*)
13904 @@ -178,7 +224,8 @@
13905 # Only attempt this if the compiler in the base compile
13906 # command doesn't match the default compiler.
13907 # arg is usually of the form 'gcc ...'
13908 -func_infer_tag () {
13909 +func_infer_tag ()
13910 +{
13911 if test -n "$available_tags" && test -z "$tagname"; then
13912 CC_quoted=
13913 for arg in $CC; do
13914 @@ -235,12 +282,116 @@
13915 esac
13916 fi
13917 }
13918 +
13919 +
13920 +# func_extract_an_archive dir oldlib
13921 +func_extract_an_archive ()
13922 +{
13923 + f_ex_an_ar_dir="$1"; shift
13924 + f_ex_an_ar_oldlib="$1"
13925 +
13926 + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
13927 + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
13928 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
13929 + :
13930 + else
13931 + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
13932 + exit $EXIT_FAILURE
13933 + fi
13934 +}
13935 +
13936 +# func_extract_archives gentop oldlib ...
13937 +func_extract_archives ()
13938 +{
13939 + my_gentop="$1"; shift
13940 + my_oldlibs=${1+"$@"}
13941 + my_oldobjs=""
13942 + my_xlib=""
13943 + my_xabs=""
13944 + my_xdir=""
13945 + my_status=""
13946 +
13947 + $show "${rm}r $my_gentop"
13948 + $run ${rm}r "$my_gentop"
13949 + $show "$mkdir $my_gentop"
13950 + $run $mkdir "$my_gentop"
13951 + my_status=$?
13952 + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
13953 + exit $my_status
13954 + fi
13955 +
13956 + for my_xlib in $my_oldlibs; do
13957 + # Extract the objects.
13958 + case $my_xlib in
13959 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
13960 + *) my_xabs=`pwd`"/$my_xlib" ;;
13961 + esac
13962 + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
13963 + my_xdir="$my_gentop/$my_xlib"
13964 +
13965 + $show "${rm}r $my_xdir"
13966 + $run ${rm}r "$my_xdir"
13967 + $show "$mkdir $my_xdir"
13968 + $run $mkdir "$my_xdir"
13969 + exit_status=$?
13970 + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
13971 + exit $exit_status
13972 + fi
13973 + case $host in
13974 + *-darwin*)
13975 + $show "Extracting $my_xabs"
13976 + # Do not bother doing anything if just a dry run
13977 + if test -z "$run"; then
13978 + darwin_orig_dir=`pwd`
13979 + cd $my_xdir || exit $?
13980 + darwin_archive=$my_xabs
13981 + darwin_curdir=`pwd`
13982 + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
13983 + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
13984 + if test -n "$darwin_arches"; then
13985 + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
13986 + darwin_arch=
13987 + $show "$darwin_base_archive has multiple architectures $darwin_arches"
13988 + for darwin_arch in $darwin_arches ; do
13989 + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
13990 + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
13991 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
13992 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
13993 + cd "$darwin_curdir"
13994 + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
13995 + done # $darwin_arches
13996 + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
13997 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
13998 + darwin_file=
13999 + darwin_files=
14000 + for darwin_file in $darwin_filelist; do
14001 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
14002 + lipo -create -output "$darwin_file" $darwin_files
14003 + done # $darwin_filelist
14004 + ${rm}r unfat-$$
14005 + cd "$darwin_orig_dir"
14006 + else
14007 + cd "$darwin_orig_dir"
14008 + func_extract_an_archive "$my_xdir" "$my_xabs"
14009 + fi # $darwin_arches
14010 + fi # $run
14011 + ;;
14012 + *)
14013 + func_extract_an_archive "$my_xdir" "$my_xabs"
14014 + ;;
14015 + esac
14016 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
14017 + done
14018 + func_extract_archives_result="$my_oldobjs"
14019 +}
14020 # End of Shell function definitions
14021 #####################################
14022
14023 # Darwin sucks
14024 eval std_shrext=\"$shrext_cmds\"
14025
14026 +disable_libs=no
14027 +
14028 # Parse our command line options once, thoroughly.
14029 while test "$#" -gt 0
14030 do
14031 @@ -305,10 +456,10 @@
14032 --version)
14033 $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
14034 $echo
14035 - $echo "Copyright (C) 2003 Free Software Foundation, Inc."
14036 + $echo "Copyright (C) 2005 Free Software Foundation, Inc."
14037 $echo "This is free software; see the source for copying conditions. There is NO"
14038 $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
14039 - exit $EXIT_SUCCESS
14040 + exit $?
14041 ;;
14042
14043 --config)
14044 @@ -317,7 +468,7 @@
14045 for tagname in $taglist; do
14046 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
14047 done
14048 - exit $EXIT_SUCCESS
14049 + exit $?
14050 ;;
14051
14052 --debug)
14053 @@ -342,7 +493,7 @@
14054 else
14055 $echo "disable static libraries"
14056 fi
14057 - exit $EXIT_SUCCESS
14058 + exit $?
14059 ;;
14060
14061 --finish) mode="finish" ;;
14062 @@ -357,7 +508,11 @@
14063 preserve_args="$preserve_args $arg"
14064 ;;
14065
14066 - --tag) prevopt="--tag" prev=tag ;;
14067 + --tag)
14068 + prevopt="--tag"
14069 + prev=tag
14070 + preserve_args="$preserve_args --tag"
14071 + ;;
14072 --tag=*)
14073 set tag "$optarg" ${1+"$@"}
14074 shift
14075 @@ -389,6 +544,18 @@
14076 exit $EXIT_FAILURE
14077 fi
14078
14079 +case $disable_libs in
14080 +no)
14081 + ;;
14082 +shared)
14083 + build_libtool_libs=no
14084 + build_old_libs=yes
14085 + ;;
14086 +static)
14087 + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
14088 + ;;
14089 +esac
14090 +
14091 # If this variable is set in any of the actions, the command in it
14092 # will be execed at the end. This prevents here-documents from being
14093 # left over by shells.
14094 @@ -399,7 +566,7 @@
14095 # Infer the operation mode.
14096 if test -z "$mode"; then
14097 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
14098 - $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
14099 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
14100 case $nonopt in
14101 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
14102 mode=link
14103 @@ -465,7 +632,7 @@
14104
14105 for arg
14106 do
14107 - case "$arg_mode" in
14108 + case $arg_mode in
14109 arg )
14110 # do not "continue". Instead, add this to base_compile
14111 lastarg="$arg"
14112 @@ -547,7 +714,10 @@
14113 case $lastarg in
14114 # Double-quote args containing other shell metacharacters.
14115 # Many Bourne shells cannot handle close brackets correctly
14116 - # in scan sets, so we specify it separately.
14117 + # in scan sets, and some SunOS ksh mistreat backslash-escaping
14118 + # in scan sets (worked around with variable expansion),
14119 + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
14120 + # at all, so we specify them separately.
14121 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14122 lastarg="\"$lastarg\""
14123 ;;
14124 @@ -621,6 +791,14 @@
14125 esac
14126 done
14127
14128 + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
14129 + case $qlibobj in
14130 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14131 + qlibobj="\"$qlibobj\"" ;;
14132 + esac
14133 + test "X$libobj" != "X$qlibobj" \
14134 + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
14135 + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
14136 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
14137 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
14138 if test "X$xdir" = "X$obj"; then
14139 @@ -693,12 +871,17 @@
14140 $run $rm $removelist
14141 exit $EXIT_FAILURE
14142 fi
14143 - $echo $srcfile > "$lockfile"
14144 + $echo "$srcfile" > "$lockfile"
14145 fi
14146
14147 if test -n "$fix_srcfile_path"; then
14148 eval srcfile=\"$fix_srcfile_path\"
14149 fi
14150 + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
14151 + case $qsrcfile in
14152 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14153 + qsrcfile="\"$qsrcfile\"" ;;
14154 + esac
14155
14156 $run $rm "$libobj" "${libobj}T"
14157
14158 @@ -720,18 +903,18 @@
14159 fbsd_hideous_sh_bug=$base_compile
14160
14161 if test "$pic_mode" != no; then
14162 - command="$base_compile $srcfile $pic_flag"
14163 + command="$base_compile $qsrcfile $pic_flag"
14164 else
14165 # Don't build PIC code
14166 - command="$base_compile $srcfile"
14167 + command="$base_compile $qsrcfile"
14168 fi
14169
14170 if test ! -d "${xdir}$objdir"; then
14171 $show "$mkdir ${xdir}$objdir"
14172 $run $mkdir ${xdir}$objdir
14173 - status=$?
14174 - if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
14175 - exit $status
14176 + exit_status=$?
14177 + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
14178 + exit $exit_status
14179 fi
14180 fi
14181
14182 @@ -803,9 +986,9 @@
14183 if test "$build_old_libs" = yes; then
14184 if test "$pic_mode" != yes; then
14185 # Don't build PIC code
14186 - command="$base_compile $srcfile"
14187 + command="$base_compile $qsrcfile"
14188 else
14189 - command="$base_compile $srcfile $pic_flag"
14190 + command="$base_compile $qsrcfile $pic_flag"
14191 fi
14192 if test "$compiler_c_o" = yes; then
14193 command="$command -o $obj"
14194 @@ -934,6 +1117,7 @@
14195 no_install=no
14196 objs=
14197 non_pic_objects=
14198 + notinst_path= # paths that contain not-installed libtool libraries
14199 precious_files_regex=
14200 prefer_static_libs=no
14201 preload=no
14202 @@ -962,14 +1146,15 @@
14203 if test -n "$link_static_flag"; then
14204 dlopen_self=$dlopen_self_static
14205 fi
14206 + prefer_static_libs=yes
14207 else
14208 if test -z "$pic_flag" && test -n "$link_static_flag"; then
14209 dlopen_self=$dlopen_self_static
14210 fi
14211 + prefer_static_libs=built
14212 fi
14213 build_libtool_libs=no
14214 build_old_libs=yes
14215 - prefer_static_libs=yes
14216 break
14217 ;;
14218 esac
14219 @@ -1144,6 +1329,11 @@
14220 if test -z "$pic_object" || test "$pic_object" = none ; then
14221 arg="$non_pic_object"
14222 fi
14223 + else
14224 + # If the PIC object exists, use it instead.
14225 + # $xdir was prepended to $pic_object above.
14226 + non_pic_object="$pic_object"
14227 + non_pic_objects="$non_pic_objects $non_pic_object"
14228 fi
14229 else
14230 # Only an error if not doing a dry-run.
14231 @@ -1227,6 +1417,13 @@
14232 prev=
14233 continue
14234 ;;
14235 + darwin_framework|darwin_framework_skip)
14236 + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
14237 + compile_command="$compile_command $arg"
14238 + finalize_command="$finalize_command $arg"
14239 + prev=
14240 + continue
14241 + ;;
14242 *)
14243 eval "$prev=\"\$arg\""
14244 prev=
14245 @@ -1285,6 +1482,18 @@
14246 continue
14247 ;;
14248
14249 + -framework|-arch|-isysroot)
14250 + case " $CC " in
14251 + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
14252 + prev=darwin_framework_skip ;;
14253 + *) compiler_flags="$compiler_flags $arg"
14254 + prev=darwin_framework ;;
14255 + esac
14256 + compile_command="$compile_command $arg"
14257 + finalize_command="$finalize_command $arg"
14258 + continue
14259 + ;;
14260 +
14261 -inst-prefix-dir)
14262 prev=inst_prefix
14263 continue
14264 @@ -1311,7 +1520,8 @@
14265 absdir=`cd "$dir" && pwd`
14266 if test -z "$absdir"; then
14267 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
14268 - exit $EXIT_FAILURE
14269 + absdir="$dir"
14270 + notinst_path="$notinst_path $dir"
14271 fi
14272 dir="$absdir"
14273 ;;
14274 @@ -1325,10 +1535,15 @@
14275 esac
14276 case $host in
14277 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
14278 + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
14279 case :$dllsearchpath: in
14280 *":$dir:"*) ;;
14281 *) dllsearchpath="$dllsearchpath:$dir";;
14282 esac
14283 + case :$dllsearchpath: in
14284 + *":$testbindir:"*) ;;
14285 + *) dllsearchpath="$dllsearchpath:$testbindir";;
14286 + esac
14287 ;;
14288 esac
14289 continue
14290 @@ -1337,15 +1552,15 @@
14291 -l*)
14292 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
14293 case $host in
14294 - *-*-cygwin* | *-*-pw32* | *-*-beos*)
14295 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
14296 # These systems don't actually have a C or math library (as such)
14297 continue
14298 ;;
14299 - *-*-mingw* | *-*-os2*)
14300 + *-*-os2*)
14301 # These systems don't actually have a C library (as such)
14302 test "X$arg" = "X-lc" && continue
14303 ;;
14304 - *-*-openbsd* | *-*-freebsd*)
14305 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
14306 # Do not include libc due to us having libc/libc_r.
14307 test "X$arg" = "X-lc" && continue
14308 ;;
14309 @@ -1353,10 +1568,19 @@
14310 # Rhapsody C and math libraries are in the System framework
14311 deplibs="$deplibs -framework System"
14312 continue
14313 + ;;
14314 + *-*-sco3.2v5* | *-*-sco5v6*)
14315 + # Causes problems with __ctype
14316 + test "X$arg" = "X-lc" && continue
14317 + ;;
14318 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
14319 + # Compiler inserts libc in the correct place for threads to work
14320 + test "X$arg" = "X-lc" && continue
14321 + ;;
14322 esac
14323 elif test "X$arg" = "X-lc_r"; then
14324 case $host in
14325 - *-*-openbsd* | *-*-freebsd*)
14326 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
14327 # Do not include libc_r directly, use -pthread flag.
14328 continue
14329 ;;
14330 @@ -1366,8 +1590,20 @@
14331 continue
14332 ;;
14333
14334 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
14335 + # classes, name mangling, and exception handling.
14336 + -model)
14337 + compile_command="$compile_command $arg"
14338 + compiler_flags="$compiler_flags $arg"
14339 + finalize_command="$finalize_command $arg"
14340 + prev=xcompiler
14341 + continue
14342 + ;;
14343 +
14344 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
14345 - deplibs="$deplibs $arg"
14346 + compiler_flags="$compiler_flags $arg"
14347 + compile_command="$compile_command $arg"
14348 + finalize_command="$finalize_command $arg"
14349 continue
14350 ;;
14351
14352 @@ -1376,13 +1612,19 @@
14353 continue
14354 ;;
14355
14356 - # gcc -m* arguments should be passed to the linker via $compiler_flags
14357 - # in order to pass architecture information to the linker
14358 - # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
14359 - # but this is not reliable with gcc because gcc may use -mfoo to
14360 - # select a different linker, different libraries, etc, while
14361 - # -Wl,-mfoo simply passes -mfoo to the linker.
14362 - -m*)
14363 + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
14364 + # -r[0-9][0-9]* specifies the processor on the SGI compiler
14365 + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
14366 + # +DA*, +DD* enable 64-bit mode on the HP compiler
14367 + # -q* pass through compiler args for the IBM compiler
14368 + # -m* pass through architecture-specific compiler args for GCC
14369 + # -m*, -t[45]*, -txscale* pass through architecture-specific
14370 + # compiler args for GCC
14371 + # -pg pass through profiling flag for GCC
14372 + # @file GCC response files
14373 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
14374 + -t[45]*|-txscale*|@*)
14375 +
14376 # Unknown arguments in both finalize_command and compile_command need
14377 # to be aesthetically quoted because they are evaled later.
14378 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
14379 @@ -1393,9 +1635,7 @@
14380 esac
14381 compile_command="$compile_command $arg"
14382 finalize_command="$finalize_command $arg"
14383 - if test "$with_gcc" = "yes" ; then
14384 - compiler_flags="$compiler_flags $arg"
14385 - fi
14386 + compiler_flags="$compiler_flags $arg"
14387 continue
14388 ;;
14389
14390 @@ -1633,6 +1873,11 @@
14391 if test -z "$pic_object" || test "$pic_object" = none ; then
14392 arg="$non_pic_object"
14393 fi
14394 + else
14395 + # If the PIC object exists, use it instead.
14396 + # $xdir was prepended to $pic_object above.
14397 + non_pic_object="$pic_object"
14398 + non_pic_objects="$non_pic_objects $non_pic_object"
14399 fi
14400 else
14401 # Only an error if not doing a dry-run.
14402 @@ -1738,9 +1983,9 @@
14403 if test ! -d "$output_objdir"; then
14404 $show "$mkdir $output_objdir"
14405 $run $mkdir $output_objdir
14406 - status=$?
14407 - if test "$status" -ne 0 && test ! -d "$output_objdir"; then
14408 - exit $status
14409 + exit_status=$?
14410 + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
14411 + exit $exit_status
14412 fi
14413 fi
14414
14415 @@ -1803,7 +2048,6 @@
14416 newlib_search_path=
14417 need_relink=no # whether we're linking any uninstalled libtool libraries
14418 notinst_deplibs= # not-installed libtool libraries
14419 - notinst_path= # paths that contain not-installed libtool libraries
14420 case $linkmode in
14421 lib)
14422 passes="conv link"
14423 @@ -1858,7 +2102,7 @@
14424 compile_deplibs="$deplib $compile_deplibs"
14425 finalize_deplibs="$deplib $finalize_deplibs"
14426 else
14427 - deplibs="$deplib $deplibs"
14428 + compiler_flags="$compiler_flags $deplib"
14429 fi
14430 continue
14431 ;;
14432 @@ -1867,10 +2111,6 @@
14433 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
14434 continue
14435 fi
14436 - if test "$pass" = conv; then
14437 - deplibs="$deplib $deplibs"
14438 - continue
14439 - fi
14440 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
14441 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
14442 for search_ext in .la $std_shrext .so .a; do
14443 @@ -1981,7 +2221,22 @@
14444 fi
14445 case $linkmode in
14446 lib)
14447 - if test "$deplibs_check_method" != pass_all; then
14448 + valid_a_lib=no
14449 + case $deplibs_check_method in
14450 + match_pattern*)
14451 + set dummy $deplibs_check_method
14452 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
14453 + if eval $echo \"$deplib\" 2>/dev/null \
14454 + | $SED 10q \
14455 + | $EGREP "$match_pattern_regex" > /dev/null; then
14456 + valid_a_lib=yes
14457 + fi
14458 + ;;
14459 + pass_all)
14460 + valid_a_lib=yes
14461 + ;;
14462 + esac
14463 + if test "$valid_a_lib" != yes; then
14464 $echo
14465 $echo "*** Warning: Trying to link with static lib archive $deplib."
14466 $echo "*** I have the capability to make that library automatically link in when"
14467 @@ -2031,7 +2286,7 @@
14468 esac # case $deplib
14469 if test "$found" = yes || test -f "$lib"; then :
14470 else
14471 - $echo "$modename: cannot find the library \`$lib'" 1>&2
14472 + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
14473 exit $EXIT_FAILURE
14474 fi
14475
14476 @@ -2055,6 +2310,8 @@
14477 # it will not redefine variables installed, or shouldnotlink
14478 installed=yes
14479 shouldnotlink=no
14480 + avoidtemprpath=
14481 +
14482
14483 # Read the .la file
14484 case $lib in
14485 @@ -2153,11 +2410,19 @@
14486 dir="$libdir"
14487 absdir="$libdir"
14488 fi
14489 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
14490 else
14491 - dir="$ladir/$objdir"
14492 - absdir="$abs_ladir/$objdir"
14493 - # Remove this search path later
14494 - notinst_path="$notinst_path $abs_ladir"
14495 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
14496 + dir="$ladir"
14497 + absdir="$abs_ladir"
14498 + # Remove this search path later
14499 + notinst_path="$notinst_path $abs_ladir"
14500 + else
14501 + dir="$ladir/$objdir"
14502 + absdir="$abs_ladir/$objdir"
14503 + # Remove this search path later
14504 + notinst_path="$notinst_path $abs_ladir"
14505 + fi
14506 fi # $installed = yes
14507 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
14508
14509 @@ -2230,12 +2495,12 @@
14510 if test -n "$library_names" &&
14511 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
14512 # We need to hardcode the library path
14513 - if test -n "$shlibpath_var"; then
14514 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
14515 # Make sure the rpath contains only unique directories.
14516 case "$temp_rpath " in
14517 *" $dir "*) ;;
14518 *" $absdir "*) ;;
14519 - *) temp_rpath="$temp_rpath $dir" ;;
14520 + *) temp_rpath="$temp_rpath $absdir" ;;
14521 esac
14522 fi
14523
14524 @@ -2272,8 +2537,12 @@
14525 fi
14526
14527 link_static=no # Whether the deplib will be linked statically
14528 + use_static_libs=$prefer_static_libs
14529 + if test "$use_static_libs" = built && test "$installed" = yes ; then
14530 + use_static_libs=no
14531 + fi
14532 if test -n "$library_names" &&
14533 - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
14534 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
14535 if test "$installed" = no; then
14536 notinst_deplibs="$notinst_deplibs $lib"
14537 need_relink=yes
14538 @@ -2386,11 +2655,15 @@
14539 if test "$hardcode_direct" = no; then
14540 add="$dir/$linklib"
14541 case $host in
14542 - *-*-sco3.2v5* ) add_dir="-L$dir" ;;
14543 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
14544 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
14545 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
14546 + *-*-unixware7*) add_dir="-L$dir" ;;
14547 *-*-darwin* )
14548 # if the lib is a module then we can not link against
14549 # it, someone is ignoring the new warnings I added
14550 - if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
14551 + if /usr/bin/file -L $add 2> /dev/null |
14552 + $EGREP ": [^:]* bundle" >/dev/null ; then
14553 $echo "** Warning, lib $linklib is a module, not a shared library"
14554 if test -z "$old_library" ; then
14555 $echo
14556 @@ -2421,7 +2694,7 @@
14557 add_dir="-L$dir"
14558 # Try looking first in the location we're being installed to.
14559 if test -n "$inst_prefix_dir"; then
14560 - case "$libdir" in
14561 + case $libdir in
14562 [\\/]*)
14563 add_dir="$add_dir -L$inst_prefix_dir$libdir"
14564 ;;
14565 @@ -2494,7 +2767,7 @@
14566 add_dir="-L$libdir"
14567 # Try looking first in the location we're being installed to.
14568 if test -n "$inst_prefix_dir"; then
14569 - case "$libdir" in
14570 + case $libdir in
14571 [\\/]*)
14572 add_dir="$add_dir -L$inst_prefix_dir$libdir"
14573 ;;
14574 @@ -2555,8 +2828,6 @@
14575 fi
14576 fi
14577 else
14578 - convenience="$convenience $dir/$old_library"
14579 - old_convenience="$old_convenience $dir/$old_library"
14580 deplibs="$dir/$old_library $deplibs"
14581 link_static=yes
14582 fi
14583 @@ -2674,12 +2945,12 @@
14584 *) continue ;;
14585 esac
14586 case " $deplibs " in
14587 - *" $depdepl "*) ;;
14588 - *) deplibs="$depdepl $deplibs" ;;
14589 + *" $path "*) ;;
14590 + *) deplibs="$path $deplibs" ;;
14591 esac
14592 case " $deplibs " in
14593 - *" $path "*) ;;
14594 - *) deplibs="$deplibs $path" ;;
14595 + *" $depdepl "*) ;;
14596 + *) deplibs="$depdepl $deplibs" ;;
14597 esac
14598 done
14599 fi # link_all_deplibs != no
14600 @@ -2949,27 +3220,27 @@
14601
14602 # Check that each of the things are valid numbers.
14603 case $current in
14604 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
14605 + 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]) ;;
14606 *)
14607 - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
14608 + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
14609 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
14610 exit $EXIT_FAILURE
14611 ;;
14612 esac
14613
14614 case $revision in
14615 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
14616 + 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]) ;;
14617 *)
14618 - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
14619 + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
14620 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
14621 exit $EXIT_FAILURE
14622 ;;
14623 esac
14624
14625 case $age in
14626 - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
14627 + 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]) ;;
14628 *)
14629 - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
14630 + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
14631 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
14632 exit $EXIT_FAILURE
14633 ;;
14634 @@ -2995,7 +3266,7 @@
14635 versuffix="$major.$age.$revision"
14636 # Darwin ld doesn't like 0 for these options...
14637 minor_current=`expr $current + 1`
14638 - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
14639 + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
14640 ;;
14641
14642 freebsd-aout)
14643 @@ -3148,9 +3419,9 @@
14644
14645 # Eliminate all temporary directories.
14646 for path in $notinst_path; do
14647 - lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
14648 - deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
14649 - dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
14650 + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
14651 + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
14652 + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
14653 done
14654
14655 if test -n "$xrpath"; then
14656 @@ -3201,9 +3472,14 @@
14657 *-*-netbsd*)
14658 # Don't link with libc until the a.out ld.so is fixed.
14659 ;;
14660 - *-*-openbsd* | *-*-freebsd*)
14661 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
14662 # Do not include libc due to us having libc/libc_r.
14663 - test "X$arg" = "X-lc" && continue
14664 + ;;
14665 + *-*-sco3.2v5* | *-*-sco5v6*)
14666 + # Causes problems with __ctype
14667 + ;;
14668 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
14669 + # Compiler inserts libc in the correct place for threads to work
14670 ;;
14671 *)
14672 # Add libc to deplibs on all other systems if necessary.
14673 @@ -3247,11 +3523,11 @@
14674 int main() { return 0; }
14675 EOF
14676 $rm conftest
14677 - $LTCC -o conftest conftest.c $deplibs
14678 + $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
14679 if test "$?" -eq 0 ; then
14680 ldd_output=`ldd conftest`
14681 for i in $deplibs; do
14682 - name="`expr $i : '-l\(.*\)'`"
14683 + name=`expr $i : '-l\(.*\)'`
14684 # If $name is empty we are operating on a -L argument.
14685 if test "$name" != "" && test "$name" -ne "0"; then
14686 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
14687 @@ -3288,11 +3564,11 @@
14688 # Error occurred in the first compile. Let's try to salvage
14689 # the situation: Compile a separate program for each library.
14690 for i in $deplibs; do
14691 - name="`expr $i : '-l\(.*\)'`"
14692 + name=`expr $i : '-l\(.*\)'`
14693 # If $name is empty we are operating on a -L argument.
14694 if test "$name" != "" && test "$name" != "0"; then
14695 $rm conftest
14696 - $LTCC -o conftest conftest.c $i
14697 + $LTCC $LTCFLAGS -o conftest conftest.c $i
14698 # Did it work?
14699 if test "$?" -eq 0 ; then
14700 ldd_output=`ldd conftest`
14701 @@ -3340,7 +3616,7 @@
14702 set dummy $deplibs_check_method
14703 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
14704 for a_deplib in $deplibs; do
14705 - name="`expr $a_deplib : '-l\(.*\)'`"
14706 + name=`expr $a_deplib : '-l\(.*\)'`
14707 # If $name is empty we are operating on a -L argument.
14708 if test "$name" != "" && test "$name" != "0"; then
14709 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
14710 @@ -3409,7 +3685,7 @@
14711 set dummy $deplibs_check_method
14712 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
14713 for a_deplib in $deplibs; do
14714 - name="`expr $a_deplib : '-l\(.*\)'`"
14715 + name=`expr $a_deplib : '-l\(.*\)'`
14716 # If $name is empty we are operating on a -L argument.
14717 if test -n "$name" && test "$name" != "0"; then
14718 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
14719 @@ -3539,6 +3815,35 @@
14720 deplibs=$newdeplibs
14721 fi
14722
14723 +
14724 + # move library search paths that coincide with paths to not yet
14725 + # installed libraries to the beginning of the library search list
14726 + new_libs=
14727 + for path in $notinst_path; do
14728 + case " $new_libs " in
14729 + *" -L$path/$objdir "*) ;;
14730 + *)
14731 + case " $deplibs " in
14732 + *" -L$path/$objdir "*)
14733 + new_libs="$new_libs -L$path/$objdir" ;;
14734 + esac
14735 + ;;
14736 + esac
14737 + done
14738 + for deplib in $deplibs; do
14739 + case $deplib in
14740 + -L*)
14741 + case " $new_libs " in
14742 + *" $deplib "*) ;;
14743 + *) new_libs="$new_libs $deplib" ;;
14744 + esac
14745 + ;;
14746 + *) new_libs="$new_libs $deplib" ;;
14747 + esac
14748 + done
14749 + deplibs="$new_libs"
14750 +
14751 +
14752 # All the library-specific variables (install_libdir is set above).
14753 library_names=
14754 old_library=
14755 @@ -3622,6 +3927,7 @@
14756 fi
14757
14758 lib="$output_objdir/$realname"
14759 + linknames=
14760 for link
14761 do
14762 linknames="$linknames $link"
14763 @@ -3650,6 +3956,9 @@
14764 # The command line is too long to execute in one step.
14765 $show "using reloadable object file for export list..."
14766 skipped_export=:
14767 + # Break out early, otherwise skipped_export may be
14768 + # set to false by a later but shorter cmd.
14769 + break
14770 fi
14771 done
14772 IFS="$save_ifs"
14773 @@ -3683,67 +3992,13 @@
14774 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
14775 else
14776 gentop="$output_objdir/${outputname}x"
14777 - $show "${rm}r $gentop"
14778 - $run ${rm}r "$gentop"
14779 - $show "$mkdir $gentop"
14780 - $run $mkdir "$gentop"
14781 - status=$?
14782 - if test "$status" -ne 0 && test ! -d "$gentop"; then
14783 - exit $status
14784 - fi
14785 generated="$generated $gentop"
14786
14787 - for xlib in $convenience; do
14788 - # Extract the objects.
14789 - case $xlib in
14790 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
14791 - *) xabs=`pwd`"/$xlib" ;;
14792 - esac
14793 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
14794 - xdir="$gentop/$xlib"
14795 -
14796 - $show "${rm}r $xdir"
14797 - $run ${rm}r "$xdir"
14798 - $show "$mkdir $xdir"
14799 - $run $mkdir "$xdir"
14800 - status=$?
14801 - if test "$status" -ne 0 && test ! -d "$xdir"; then
14802 - exit $status
14803 - fi
14804 - # We will extract separately just the conflicting names and we will no
14805 - # longer touch any unique names. It is faster to leave these extract
14806 - # automatically by $AR in one run.
14807 - $show "(cd $xdir && $AR x $xabs)"
14808 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
14809 - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
14810 - :
14811 - else
14812 - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
14813 - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
14814 - $AR t "$xabs" | sort | uniq -cd | while read -r count name
14815 - do
14816 - i=1
14817 - while test "$i" -le "$count"
14818 - do
14819 - # Put our $i before any first dot (extension)
14820 - # Never overwrite any file
14821 - name_to="$name"
14822 - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
14823 - do
14824 - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
14825 - done
14826 - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
14827 - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
14828 - i=`expr $i + 1`
14829 - done
14830 - done
14831 - fi
14832 -
14833 - libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
14834 - done
14835 + func_extract_archives $gentop $convenience
14836 + libobjs="$libobjs $func_extract_archives_result"
14837 fi
14838 fi
14839 -
14840 +
14841 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
14842 eval flag=\"$thread_safe_flag_spec\"
14843 linker_flags="$linker_flags $flag"
14844 @@ -3773,7 +4028,8 @@
14845 fi
14846 fi
14847
14848 - if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
14849 + if test "X$skipped_export" != "X:" &&
14850 + len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
14851 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
14852 :
14853 else
14854 @@ -3792,6 +4048,7 @@
14855 save_libobjs=$libobjs
14856 fi
14857 save_output=$output
14858 + output_la=`$echo "X$output" | $Xsed -e "$basename"`
14859
14860 # Clear the reloadable object creation command queue and
14861 # initialize k to one.
14862 @@ -3801,13 +4058,13 @@
14863 delfiles=
14864 last_robj=
14865 k=1
14866 - output=$output_objdir/$save_output-${k}.$objext
14867 + output=$output_objdir/$output_la-${k}.$objext
14868 # Loop over the list of objects to be linked.
14869 for obj in $save_libobjs
14870 do
14871 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
14872 if test "X$objlist" = X ||
14873 - { len=`expr "X$test_cmds" : ".*"` &&
14874 + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
14875 test "$len" -le "$max_cmd_len"; }; then
14876 objlist="$objlist $obj"
14877 else
14878 @@ -3821,9 +4078,9 @@
14879 # the last one created.
14880 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
14881 fi
14882 - last_robj=$output_objdir/$save_output-${k}.$objext
14883 + last_robj=$output_objdir/$output_la-${k}.$objext
14884 k=`expr $k + 1`
14885 - output=$output_objdir/$save_output-${k}.$objext
14886 + output=$output_objdir/$output_la-${k}.$objext
14887 objlist=$obj
14888 len=1
14889 fi
14890 @@ -3843,13 +4100,13 @@
14891 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
14892 fi
14893
14894 - # Set up a command to remove the reloadale object files
14895 + # Set up a command to remove the reloadable object files
14896 # after they are used.
14897 i=0
14898 while test "$i" -lt "$k"
14899 do
14900 i=`expr $i + 1`
14901 - delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
14902 + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
14903 done
14904
14905 $echo "creating a temporary reloadable object file: $output"
14906 @@ -3897,13 +4154,30 @@
14907 IFS="$save_ifs"
14908 eval cmd=\"$cmd\"
14909 $show "$cmd"
14910 - $run eval "$cmd" || exit $?
14911 + $run eval "$cmd" || {
14912 + lt_exit=$?
14913 +
14914 + # Restore the uninstalled library and exit
14915 + if test "$mode" = relink; then
14916 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
14917 + fi
14918 +
14919 + exit $lt_exit
14920 + }
14921 done
14922 IFS="$save_ifs"
14923
14924 # Restore the uninstalled library and exit
14925 if test "$mode" = relink; then
14926 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
14927 +
14928 + if test -n "$convenience"; then
14929 + if test -z "$whole_archive_flag_spec"; then
14930 + $show "${rm}r $gentop"
14931 + $run ${rm}r "$gentop"
14932 + fi
14933 + fi
14934 +
14935 exit $EXIT_SUCCESS
14936 fi
14937
14938 @@ -3981,64 +4255,10 @@
14939 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
14940 else
14941 gentop="$output_objdir/${obj}x"
14942 - $show "${rm}r $gentop"
14943 - $run ${rm}r "$gentop"
14944 - $show "$mkdir $gentop"
14945 - $run $mkdir "$gentop"
14946 - status=$?
14947 - if test "$status" -ne 0 && test ! -d "$gentop"; then
14948 - exit $status
14949 - fi
14950 generated="$generated $gentop"
14951
14952 - for xlib in $convenience; do
14953 - # Extract the objects.
14954 - case $xlib in
14955 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
14956 - *) xabs=`pwd`"/$xlib" ;;
14957 - esac
14958 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
14959 - xdir="$gentop/$xlib"
14960 -
14961 - $show "${rm}r $xdir"
14962 - $run ${rm}r "$xdir"
14963 - $show "$mkdir $xdir"
14964 - $run $mkdir "$xdir"
14965 - status=$?
14966 - if test "$status" -ne 0 && test ! -d "$xdir"; then
14967 - exit $status
14968 - fi
14969 - # We will extract separately just the conflicting names and we will no
14970 - # longer touch any unique names. It is faster to leave these extract
14971 - # automatically by $AR in one run.
14972 - $show "(cd $xdir && $AR x $xabs)"
14973 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
14974 - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
14975 - :
14976 - else
14977 - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
14978 - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
14979 - $AR t "$xabs" | sort | uniq -cd | while read -r count name
14980 - do
14981 - i=1
14982 - while test "$i" -le "$count"
14983 - do
14984 - # Put our $i before any first dot (extension)
14985 - # Never overwrite any file
14986 - name_to="$name"
14987 - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
14988 - do
14989 - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
14990 - done
14991 - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
14992 - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
14993 - i=`expr $i + 1`
14994 - done
14995 - done
14996 - fi
14997 -
14998 - reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
14999 - done
15000 + func_extract_archives $gentop $convenience
15001 + reload_conv_objs="$reload_objs $func_extract_archives_result"
15002 fi
15003 fi
15004
15005 @@ -4139,6 +4359,35 @@
15006 ;;
15007 esac
15008
15009 +
15010 + # move library search paths that coincide with paths to not yet
15011 + # installed libraries to the beginning of the library search list
15012 + new_libs=
15013 + for path in $notinst_path; do
15014 + case " $new_libs " in
15015 + *" -L$path/$objdir "*) ;;
15016 + *)
15017 + case " $compile_deplibs " in
15018 + *" -L$path/$objdir "*)
15019 + new_libs="$new_libs -L$path/$objdir" ;;
15020 + esac
15021 + ;;
15022 + esac
15023 + done
15024 + for deplib in $compile_deplibs; do
15025 + case $deplib in
15026 + -L*)
15027 + case " $new_libs " in
15028 + *" $deplib "*) ;;
15029 + *) new_libs="$new_libs $deplib" ;;
15030 + esac
15031 + ;;
15032 + *) new_libs="$new_libs $deplib" ;;
15033 + esac
15034 + done
15035 + compile_deplibs="$new_libs"
15036 +
15037 +
15038 compile_command="$compile_command $compile_deplibs"
15039 finalize_command="$finalize_command $finalize_deplibs"
15040
15041 @@ -4183,10 +4432,15 @@
15042 fi
15043 case $host in
15044 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
15045 + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
15046 case :$dllsearchpath: in
15047 *":$libdir:"*) ;;
15048 *) dllsearchpath="$dllsearchpath:$libdir";;
15049 esac
15050 + case :$dllsearchpath: in
15051 + *":$testbindir:"*) ;;
15052 + *) dllsearchpath="$dllsearchpath:$testbindir";;
15053 + esac
15054 ;;
15055 esac
15056 done
15057 @@ -4300,13 +4554,25 @@
15058
15059 # Prepare the list of exported symbols
15060 if test -z "$export_symbols"; then
15061 - export_symbols="$output_objdir/$output.exp"
15062 + export_symbols="$output_objdir/$outputname.exp"
15063 $run $rm $export_symbols
15064 - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
15065 + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
15066 + case $host in
15067 + *cygwin* | *mingw* )
15068 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
15069 + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
15070 + ;;
15071 + esac
15072 else
15073 - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
15074 - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
15075 + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
15076 + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
15077 $run eval 'mv "$nlist"T "$nlist"'
15078 + case $host in
15079 + *cygwin* | *mingw* )
15080 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
15081 + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
15082 + ;;
15083 + esac
15084 fi
15085 fi
15086
15087 @@ -4357,7 +4623,26 @@
15088 #endif
15089
15090 /* The mapping between symbol names and symbols. */
15091 +"
15092 +
15093 + case $host in
15094 + *cygwin* | *mingw* )
15095 + $echo >> "$output_objdir/$dlsyms" "\
15096 +/* DATA imports from DLLs on WIN32 can't be const, because
15097 + runtime relocations are performed -- see ld's documentation
15098 + on pseudo-relocs */
15099 +struct {
15100 +"
15101 + ;;
15102 + * )
15103 + $echo >> "$output_objdir/$dlsyms" "\
15104 const struct {
15105 +"
15106 + ;;
15107 + esac
15108 +
15109 +
15110 + $echo >> "$output_objdir/$dlsyms" "\
15111 const char *name;
15112 lt_ptr address;
15113 }
15114 @@ -4404,16 +4689,29 @@
15115 esac
15116
15117 # Now compile the dynamic symbol file.
15118 - $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
15119 - $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
15120 + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
15121 + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
15122
15123 # Clean up the generated files.
15124 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
15125 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
15126
15127 # Transform the symbol file into the correct name.
15128 - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15129 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15130 + case $host in
15131 + *cygwin* | *mingw* )
15132 + if test -f "$output_objdir/${outputname}.def" ; then
15133 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
15134 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
15135 + else
15136 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15137 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15138 + fi
15139 + ;;
15140 + * )
15141 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15142 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
15143 + ;;
15144 + esac
15145 ;;
15146 *)
15147 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
15148 @@ -4438,7 +4736,7 @@
15149 # We have no uninstalled library dependencies, so finalize right now.
15150 $show "$link_command"
15151 $run eval "$link_command"
15152 - status=$?
15153 + exit_status=$?
15154
15155 # Delete the generated files.
15156 if test -n "$dlsyms"; then
15157 @@ -4446,7 +4744,7 @@
15158 $run $rm "$output_objdir/${outputname}S.${objext}"
15159 fi
15160
15161 - exit $status
15162 + exit $exit_status
15163 fi
15164
15165 if test -n "$shlibpath_var"; then
15166 @@ -4586,10 +4884,12 @@
15167 esac
15168 case $host in
15169 *cygwin* | *mingw* )
15170 - cwrappersource=`$echo ${objdir}/lt-${output}.c`
15171 - cwrapper=`$echo ${output}.exe`
15172 - $rm $cwrappersource $cwrapper
15173 - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
15174 + output_name=`basename $output`
15175 + output_path=`dirname $output`
15176 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
15177 + cwrapper="$output_path/$output_name.exe"
15178 + $rm $cwrappersource $cwrapper
15179 + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
15180
15181 cat > $cwrappersource <<EOF
15182
15183 @@ -4614,6 +4914,9 @@
15184 #include <malloc.h>
15185 #include <stdarg.h>
15186 #include <assert.h>
15187 +#include <string.h>
15188 +#include <ctype.h>
15189 +#include <sys/stat.h>
15190
15191 #if defined(PATH_MAX)
15192 # define LT_PATHMAX PATH_MAX
15193 @@ -4624,15 +4927,19 @@
15194 #endif
15195
15196 #ifndef DIR_SEPARATOR
15197 -#define DIR_SEPARATOR '/'
15198 +# define DIR_SEPARATOR '/'
15199 +# define PATH_SEPARATOR ':'
15200 #endif
15201
15202 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
15203 defined (__OS2__)
15204 -#define HAVE_DOS_BASED_FILE_SYSTEM
15205 -#ifndef DIR_SEPARATOR_2
15206 -#define DIR_SEPARATOR_2 '\\'
15207 -#endif
15208 +# define HAVE_DOS_BASED_FILE_SYSTEM
15209 +# ifndef DIR_SEPARATOR_2
15210 +# define DIR_SEPARATOR_2 '\\'
15211 +# endif
15212 +# ifndef PATH_SEPARATOR_2
15213 +# define PATH_SEPARATOR_2 ';'
15214 +# endif
15215 #endif
15216
15217 #ifndef DIR_SEPARATOR_2
15218 @@ -4642,17 +4949,32 @@
15219 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
15220 #endif /* DIR_SEPARATOR_2 */
15221
15222 +#ifndef PATH_SEPARATOR_2
15223 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
15224 +#else /* PATH_SEPARATOR_2 */
15225 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
15226 +#endif /* PATH_SEPARATOR_2 */
15227 +
15228 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
15229 #define XFREE(stale) do { \
15230 if (stale) { free ((void *) stale); stale = 0; } \
15231 } while (0)
15232
15233 +/* -DDEBUG is fairly common in CFLAGS. */
15234 +#undef DEBUG
15235 +#if defined DEBUGWRAPPER
15236 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
15237 +#else
15238 +# define DEBUG(format, ...)
15239 +#endif
15240 +
15241 const char *program_name = NULL;
15242
15243 void * xmalloc (size_t num);
15244 char * xstrdup (const char *string);
15245 -char * basename (const char *name);
15246 -char * fnqualify(const char *path);
15247 +const char * base_name (const char *name);
15248 +char * find_executable(const char *wrapper);
15249 +int check_executable(const char *path);
15250 char * strendzap(char *str, const char *pat);
15251 void lt_fatal (const char *message, ...);
15252
15253 @@ -4662,29 +4984,51 @@
15254 char **newargz;
15255 int i;
15256
15257 - program_name = (char *) xstrdup ((char *) basename (argv[0]));
15258 + program_name = (char *) xstrdup (base_name (argv[0]));
15259 + DEBUG("(main) argv[0] : %s\n",argv[0]);
15260 + DEBUG("(main) program_name : %s\n",program_name);
15261 newargz = XMALLOC(char *, argc+2);
15262 EOF
15263
15264 - cat >> $cwrappersource <<EOF
15265 - newargz[0] = "$SHELL";
15266 + cat >> $cwrappersource <<EOF
15267 + newargz[0] = (char *) xstrdup("$SHELL");
15268 EOF
15269
15270 - cat >> $cwrappersource <<"EOF"
15271 - newargz[1] = fnqualify(argv[0]);
15272 + cat >> $cwrappersource <<"EOF"
15273 + newargz[1] = find_executable(argv[0]);
15274 + if (newargz[1] == NULL)
15275 + lt_fatal("Couldn't find %s", argv[0]);
15276 + DEBUG("(main) found exe at : %s\n",newargz[1]);
15277 /* we know the script has the same name, without the .exe */
15278 /* so make sure newargz[1] doesn't end in .exe */
15279 strendzap(newargz[1],".exe");
15280 for (i = 1; i < argc; i++)
15281 newargz[i+1] = xstrdup(argv[i]);
15282 newargz[argc+1] = NULL;
15283 +
15284 + for (i=0; i<argc+1; i++)
15285 + {
15286 + DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
15287 + ;
15288 + }
15289 +
15290 EOF
15291
15292 - cat >> $cwrappersource <<EOF
15293 + case $host_os in
15294 + mingw*)
15295 + cat >> $cwrappersource <<EOF
15296 + execv("$SHELL",(char const **)newargz);
15297 +EOF
15298 + ;;
15299 + *)
15300 + cat >> $cwrappersource <<EOF
15301 execv("$SHELL",newargz);
15302 EOF
15303 + ;;
15304 + esac
15305
15306 - cat >> $cwrappersource <<"EOF"
15307 + cat >> $cwrappersource <<"EOF"
15308 + return 127;
15309 }
15310
15311 void *
15312 @@ -4704,48 +5048,148 @@
15313 ;
15314 }
15315
15316 -char *
15317 -basename (const char *name)
15318 +const char *
15319 +base_name (const char *name)
15320 {
15321 const char *base;
15322
15323 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
15324 /* Skip over the disk name in MSDOS pathnames. */
15325 - if (isalpha (name[0]) && name[1] == ':')
15326 + if (isalpha ((unsigned char)name[0]) && name[1] == ':')
15327 name += 2;
15328 #endif
15329
15330 for (base = name; *name; name++)
15331 if (IS_DIR_SEPARATOR (*name))
15332 base = name + 1;
15333 - return (char *) base;
15334 + return base;
15335 +}
15336 +
15337 +int
15338 +check_executable(const char * path)
15339 +{
15340 + struct stat st;
15341 +
15342 + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
15343 + if ((!path) || (!*path))
15344 + return 0;
15345 +
15346 + if ((stat (path, &st) >= 0) &&
15347 + (
15348 + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
15349 +#if defined (S_IXOTH)
15350 + ((st.st_mode & S_IXOTH) == S_IXOTH) ||
15351 +#endif
15352 +#if defined (S_IXGRP)
15353 + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
15354 +#endif
15355 + ((st.st_mode & S_IXUSR) == S_IXUSR))
15356 + )
15357 + return 1;
15358 + else
15359 + return 0;
15360 }
15361
15362 +/* Searches for the full path of the wrapper. Returns
15363 + newly allocated full path name if found, NULL otherwise */
15364 char *
15365 -fnqualify(const char *path)
15366 +find_executable (const char* wrapper)
15367 {
15368 - size_t size;
15369 - char *p;
15370 + int has_slash = 0;
15371 + const char* p;
15372 + const char* p_next;
15373 + /* static buffer for getcwd */
15374 char tmp[LT_PATHMAX + 1];
15375 + int tmp_len;
15376 + char* concat_name;
15377
15378 - assert(path != NULL);
15379 + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
15380
15381 - /* Is it qualified already? */
15382 + if ((wrapper == NULL) || (*wrapper == '\0'))
15383 + return NULL;
15384 +
15385 + /* Absolute path? */
15386 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
15387 - if (isalpha (path[0]) && path[1] == ':')
15388 - return xstrdup (path);
15389 + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
15390 + {
15391 + concat_name = xstrdup (wrapper);
15392 + if (check_executable(concat_name))
15393 + return concat_name;
15394 + XFREE(concat_name);
15395 + }
15396 + else
15397 + {
15398 +#endif
15399 + if (IS_DIR_SEPARATOR (wrapper[0]))
15400 + {
15401 + concat_name = xstrdup (wrapper);
15402 + if (check_executable(concat_name))
15403 + return concat_name;
15404 + XFREE(concat_name);
15405 + }
15406 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
15407 + }
15408 #endif
15409 - if (IS_DIR_SEPARATOR (path[0]))
15410 - return xstrdup (path);
15411
15412 - /* prepend the current directory */
15413 - /* doesn't handle '~' */
15414 + for (p = wrapper; *p; p++)
15415 + if (*p == '/')
15416 + {
15417 + has_slash = 1;
15418 + break;
15419 + }
15420 + if (!has_slash)
15421 + {
15422 + /* no slashes; search PATH */
15423 + const char* path = getenv ("PATH");
15424 + if (path != NULL)
15425 + {
15426 + for (p = path; *p; p = p_next)
15427 + {
15428 + const char* q;
15429 + size_t p_len;
15430 + for (q = p; *q; q++)
15431 + if (IS_PATH_SEPARATOR(*q))
15432 + break;
15433 + p_len = q - p;
15434 + p_next = (*q == '\0' ? q : q + 1);
15435 + if (p_len == 0)
15436 + {
15437 + /* empty path: current directory */
15438 + if (getcwd (tmp, LT_PATHMAX) == NULL)
15439 + lt_fatal ("getcwd failed");
15440 + tmp_len = strlen(tmp);
15441 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
15442 + memcpy (concat_name, tmp, tmp_len);
15443 + concat_name[tmp_len] = '/';
15444 + strcpy (concat_name + tmp_len + 1, wrapper);
15445 + }
15446 + else
15447 + {
15448 + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
15449 + memcpy (concat_name, p, p_len);
15450 + concat_name[p_len] = '/';
15451 + strcpy (concat_name + p_len + 1, wrapper);
15452 + }
15453 + if (check_executable(concat_name))
15454 + return concat_name;
15455 + XFREE(concat_name);
15456 + }
15457 + }
15458 + /* not found in PATH; assume curdir */
15459 + }
15460 + /* Relative path | not found in path: prepend cwd */
15461 if (getcwd (tmp, LT_PATHMAX) == NULL)
15462 lt_fatal ("getcwd failed");
15463 - size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
15464 - p = XMALLOC(char, size);
15465 - sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
15466 - return p;
15467 + tmp_len = strlen(tmp);
15468 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
15469 + memcpy (concat_name, tmp, tmp_len);
15470 + concat_name[tmp_len] = '/';
15471 + strcpy (concat_name + tmp_len + 1, wrapper);
15472 +
15473 + if (check_executable(concat_name))
15474 + return concat_name;
15475 + XFREE(concat_name);
15476 + return NULL;
15477 }
15478
15479 char *
15480 @@ -4789,16 +5233,16 @@
15481 va_end (ap);
15482 }
15483 EOF
15484 - # we should really use a build-platform specific compiler
15485 - # here, but OTOH, the wrappers (shell script and this C one)
15486 - # are only useful if you want to execute the "real" binary.
15487 - # Since the "real" binary is built for $host, then this
15488 - # wrapper might as well be built for $host, too.
15489 - $run $LTCC -s -o $cwrapper $cwrappersource
15490 - ;;
15491 - esac
15492 - $rm $output
15493 - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
15494 + # we should really use a build-platform specific compiler
15495 + # here, but OTOH, the wrappers (shell script and this C one)
15496 + # are only useful if you want to execute the "real" binary.
15497 + # Since the "real" binary is built for $host, then this
15498 + # wrapper might as well be built for $host, too.
15499 + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
15500 + ;;
15501 + esac
15502 + $rm $output
15503 + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
15504
15505 $echo > $output "\
15506 #! $SHELL
15507 @@ -4819,7 +5263,7 @@
15508
15509 # The HP-UX ksh and POSIX shell print the target directory to stdout
15510 # if CDPATH is set.
15511 -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
15512 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15513
15514 relink_command=\"$relink_command\"
15515
15516 @@ -4948,13 +5392,13 @@
15517 # Backslashes separate directories on plain windows
15518 *-*-mingw | *-*-os2*)
15519 $echo >> $output "\
15520 - exec \$progdir\\\\\$program \${1+\"\$@\"}
15521 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
15522 "
15523 ;;
15524
15525 *)
15526 $echo >> $output "\
15527 - exec \$progdir/\$program \${1+\"\$@\"}
15528 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
15529 "
15530 ;;
15531 esac
15532 @@ -4964,7 +5408,7 @@
15533 fi
15534 else
15535 # The program doesn't exist.
15536 - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
15537 + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
15538 \$echo \"This script is just a wrapper for \$program.\" 1>&2
15539 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
15540 exit $EXIT_FAILURE
15541 @@ -4996,71 +5440,73 @@
15542
15543 if test -n "$addlibs"; then
15544 gentop="$output_objdir/${outputname}x"
15545 - $show "${rm}r $gentop"
15546 - $run ${rm}r "$gentop"
15547 - $show "$mkdir $gentop"
15548 - $run $mkdir "$gentop"
15549 - status=$?
15550 - if test "$status" -ne 0 && test ! -d "$gentop"; then
15551 - exit $status
15552 - fi
15553 generated="$generated $gentop"
15554
15555 - # Add in members from convenience archives.
15556 - for xlib in $addlibs; do
15557 - # Extract the objects.
15558 - case $xlib in
15559 - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
15560 - *) xabs=`pwd`"/$xlib" ;;
15561 - esac
15562 - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
15563 - xdir="$gentop/$xlib"
15564 -
15565 - $show "${rm}r $xdir"
15566 - $run ${rm}r "$xdir"
15567 - $show "$mkdir $xdir"
15568 - $run $mkdir "$xdir"
15569 - status=$?
15570 - if test "$status" -ne 0 && test ! -d "$xdir"; then
15571 - exit $status
15572 - fi
15573 - # We will extract separately just the conflicting names and we will no
15574 - # longer touch any unique names. It is faster to leave these extract
15575 - # automatically by $AR in one run.
15576 - $show "(cd $xdir && $AR x $xabs)"
15577 - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
15578 - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
15579 - :
15580 - else
15581 - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
15582 - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
15583 - $AR t "$xabs" | sort | uniq -cd | while read -r count name
15584 - do
15585 - i=1
15586 - while test "$i" -le "$count"
15587 - do
15588 - # Put our $i before any first dot (extension)
15589 - # Never overwrite any file
15590 - name_to="$name"
15591 - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
15592 - do
15593 - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
15594 - done
15595 - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
15596 - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
15597 - i=`expr $i + 1`
15598 - done
15599 - done
15600 - fi
15601 -
15602 - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
15603 - done
15604 + func_extract_archives $gentop $addlibs
15605 + oldobjs="$oldobjs $func_extract_archives_result"
15606 fi
15607
15608 # Do each command in the archive commands.
15609 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
15610 cmds=$old_archive_from_new_cmds
15611 else
15612 + # POSIX demands no paths to be encoded in archives. We have
15613 + # to avoid creating archives with duplicate basenames if we
15614 + # might have to extract them afterwards, e.g., when creating a
15615 + # static archive out of a convenience library, or when linking
15616 + # the entirety of a libtool archive into another (currently
15617 + # not supported by libtool).
15618 + if (for obj in $oldobjs
15619 + do
15620 + $echo "X$obj" | $Xsed -e 's%^.*/%%'
15621 + done | sort | sort -uc >/dev/null 2>&1); then
15622 + :
15623 + else
15624 + $echo "copying selected object files to avoid basename conflicts..."
15625 +
15626 + if test -z "$gentop"; then
15627 + gentop="$output_objdir/${outputname}x"
15628 + generated="$generated $gentop"
15629 +
15630 + $show "${rm}r $gentop"
15631 + $run ${rm}r "$gentop"
15632 + $show "$mkdir $gentop"
15633 + $run $mkdir "$gentop"
15634 + exit_status=$?
15635 + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
15636 + exit $exit_status
15637 + fi
15638 + fi
15639 +
15640 + save_oldobjs=$oldobjs
15641 + oldobjs=
15642 + counter=1
15643 + for obj in $save_oldobjs
15644 + do
15645 + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
15646 + case " $oldobjs " in
15647 + " ") oldobjs=$obj ;;
15648 + *[\ /]"$objbase "*)
15649 + while :; do
15650 + # Make sure we don't pick an alternate name that also
15651 + # overlaps.
15652 + newobj=lt$counter-$objbase
15653 + counter=`expr $counter + 1`
15654 + case " $oldobjs " in
15655 + *[\ /]"$newobj "*) ;;
15656 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
15657 + esac
15658 + done
15659 + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
15660 + $run ln "$obj" "$gentop/$newobj" ||
15661 + $run cp "$obj" "$gentop/$newobj"
15662 + oldobjs="$oldobjs $gentop/$newobj"
15663 + ;;
15664 + *) oldobjs="$oldobjs $obj" ;;
15665 + esac
15666 + done
15667 + fi
15668 +
15669 eval cmds=\"$old_archive_cmds\"
15670
15671 if len=`expr "X$cmds" : ".*"` &&
15672 @@ -5074,20 +5520,7 @@
15673 objlist=
15674 concat_cmds=
15675 save_oldobjs=$oldobjs
15676 - # GNU ar 2.10+ was changed to match POSIX; thus no paths are
15677 - # encoded into archives. This makes 'ar r' malfunction in
15678 - # this piecewise linking case whenever conflicting object
15679 - # names appear in distinct ar calls; check, warn and compensate.
15680 - if (for obj in $save_oldobjs
15681 - do
15682 - $echo "X$obj" | $Xsed -e 's%^.*/%%'
15683 - done | sort | sort -uc >/dev/null 2>&1); then
15684 - :
15685 - else
15686 - $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
15687 - $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
15688 - AR_FLAGS=cq
15689 - fi
15690 +
15691 # Is there a better way of finding the last object in the list?
15692 for obj in $save_oldobjs
15693 do
15694 @@ -5098,7 +5531,7 @@
15695 oldobjs="$objlist $obj"
15696 objlist="$objlist $obj"
15697 eval test_cmds=\"$old_archive_cmds\"
15698 - if len=`expr "X$test_cmds" : ".*"` &&
15699 + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
15700 test "$len" -le "$max_cmd_len"; then
15701 :
15702 else
15703 @@ -5295,11 +5728,11 @@
15704 # install_prog (especially on Windows NT).
15705 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
15706 # Allow the use of GNU shtool's install command.
15707 - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
15708 + $echo "X$nonopt" | grep shtool > /dev/null; then
15709 # Aesthetically quote it.
15710 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
15711 case $arg in
15712 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
15713 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15714 arg="\"$arg\""
15715 ;;
15716 esac
15717 @@ -5308,14 +5741,14 @@
15718 shift
15719 else
15720 install_prog=
15721 - arg="$nonopt"
15722 + arg=$nonopt
15723 fi
15724
15725 # The real first argument should be the name of the installation program.
15726 # Aesthetically quote it.
15727 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
15728 case $arg in
15729 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
15730 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15731 arg="\"$arg\""
15732 ;;
15733 esac
15734 @@ -5333,28 +5766,31 @@
15735 do
15736 if test -n "$dest"; then
15737 files="$files $dest"
15738 - dest="$arg"
15739 + dest=$arg
15740 continue
15741 fi
15742
15743 case $arg in
15744 -d) isdir=yes ;;
15745 - -f) prev="-f" ;;
15746 - -g) prev="-g" ;;
15747 - -m) prev="-m" ;;
15748 - -o) prev="-o" ;;
15749 + -f)
15750 + case " $install_prog " in
15751 + *[\\\ /]cp\ *) ;;
15752 + *) prev=$arg ;;
15753 + esac
15754 + ;;
15755 + -g | -m | -o) prev=$arg ;;
15756 -s)
15757 stripme=" -s"
15758 continue
15759 ;;
15760 - -*) ;;
15761 -
15762 + -*)
15763 + ;;
15764 *)
15765 # If the previous option needed an argument, then skip it.
15766 if test -n "$prev"; then
15767 prev=
15768 else
15769 - dest="$arg"
15770 + dest=$arg
15771 continue
15772 fi
15773 ;;
15774 @@ -5363,7 +5799,7 @@
15775 # Aesthetically quote the argument.
15776 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
15777 case $arg in
15778 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
15779 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15780 arg="\"$arg\""
15781 ;;
15782 esac
15783 @@ -5532,11 +5968,14 @@
15784
15785 if test "$#" -gt 0; then
15786 # Delete the old symlinks, and create new ones.
15787 + # Try `ln -sf' first, because the `ln' binary might depend on
15788 + # the symlink we replace! Solaris /bin/ln does not understand -f,
15789 + # so we also need to try rm && ln -s.
15790 for linkname
15791 do
15792 if test "$linkname" != "$realname"; then
15793 - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
15794 - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
15795 + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
15796 + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
15797 fi
15798 done
15799 fi
15800 @@ -5549,7 +5988,16 @@
15801 IFS="$save_ifs"
15802 eval cmd=\"$cmd\"
15803 $show "$cmd"
15804 - $run eval "$cmd" || exit $?
15805 + $run eval "$cmd" || {
15806 + lt_exit=$?
15807 +
15808 + # Restore the uninstalled library and exit
15809 + if test "$mode" = relink; then
15810 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
15811 + fi
15812 +
15813 + exit $lt_exit
15814 + }
15815 done
15816 IFS="$save_ifs"
15817 fi
15818 @@ -5643,17 +6091,15 @@
15819 notinst_deplibs=
15820 relink_command=
15821
15822 - # To insure that "foo" is sourced, and not "foo.exe",
15823 - # finese the cygwin/MSYS system by explicitly sourcing "foo."
15824 - # which disallows the automatic-append-.exe behavior.
15825 - case $build in
15826 - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
15827 - *) wrapperdot=${wrapper} ;;
15828 - esac
15829 + # Note that it is not necessary on cygwin/mingw to append a dot to
15830 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
15831 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
15832 + # `FILE.' does not work on cygwin managed mounts.
15833 + #
15834 # If there is no directory component, then add one.
15835 - case $file in
15836 - */* | *\\*) . ${wrapperdot} ;;
15837 - *) . ./${wrapperdot} ;;
15838 + case $wrapper in
15839 + */* | *\\*) . ${wrapper} ;;
15840 + *) . ./${wrapper} ;;
15841 esac
15842
15843 # Check the variables that should have been set.
15844 @@ -5681,34 +6127,21 @@
15845 done
15846
15847 relink_command=
15848 - # To insure that "foo" is sourced, and not "foo.exe",
15849 - # finese the cygwin/MSYS system by explicitly sourcing "foo."
15850 - # which disallows the automatic-append-.exe behavior.
15851 - case $build in
15852 - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
15853 - *) wrapperdot=${wrapper} ;;
15854 - esac
15855 + # Note that it is not necessary on cygwin/mingw to append a dot to
15856 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
15857 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
15858 + # `FILE.' does not work on cygwin managed mounts.
15859 + #
15860 # If there is no directory component, then add one.
15861 - case $file in
15862 - */* | *\\*) . ${wrapperdot} ;;
15863 - *) . ./${wrapperdot} ;;
15864 + case $wrapper in
15865 + */* | *\\*) . ${wrapper} ;;
15866 + *) . ./${wrapper} ;;
15867 esac
15868
15869 outputname=
15870 if test "$fast_install" = no && test -n "$relink_command"; then
15871 if test "$finalize" = yes && test -z "$run"; then
15872 - tmpdir="/tmp"
15873 - test -n "$TMPDIR" && tmpdir="$TMPDIR"
15874 - tmpdir="$tmpdir/libtool-$$"
15875 - save_umask=`umask`
15876 - umask 0077
15877 - if $mkdir "$tmpdir"; then
15878 - umask $save_umask
15879 - else
15880 - umask $save_umask
15881 - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
15882 - continue
15883 - fi
15884 + tmpdir=`func_mktempdir`
15885 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
15886 outputname="$tmpdir/$file"
15887 # Replace the output file specification.
15888 @@ -5732,7 +6165,7 @@
15889 fi
15890
15891 # remove .exe since cygwin /usr/bin/install will append another
15892 - # one anyways
15893 + # one anyway
15894 case $install_prog,$host in
15895 */usr/bin/install*,*cygwin*)
15896 case $file:$destfile in
15897 @@ -5832,7 +6265,7 @@
15898 # Exit here if they wanted silent mode.
15899 test "$show" = : && exit $EXIT_SUCCESS
15900
15901 - $echo "----------------------------------------------------------------------"
15902 + $echo "X----------------------------------------------------------------------" | $Xsed
15903 $echo "Libraries have been installed in:"
15904 for libdir in $libdirs; do
15905 $echo " $libdir"
15906 @@ -5865,7 +6298,7 @@
15907 $echo
15908 $echo "See any operating system documentation about shared libraries for"
15909 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
15910 - $echo "----------------------------------------------------------------------"
15911 + $echo "X----------------------------------------------------------------------" | $Xsed
15912 exit $EXIT_SUCCESS
15913 ;;
15914
15915 @@ -6082,9 +6515,17 @@
15916 rmfiles="$rmfiles $objdir/$n"
15917 done
15918 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
15919 - test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
15920
15921 - if test "$mode" = uninstall; then
15922 + case "$mode" in
15923 + clean)
15924 + case " $library_names " in
15925 + # " " in the beginning catches empty $dlname
15926 + *" $dlname "*) ;;
15927 + *) rmfiles="$rmfiles $objdir/$dlname" ;;
15928 + esac
15929 + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
15930 + ;;
15931 + uninstall)
15932 if test -n "$library_names"; then
15933 # Do each command in the postuninstall commands.
15934 cmds=$postuninstall_cmds
15935 @@ -6117,7 +6558,8 @@
15936 IFS="$save_ifs"
15937 fi
15938 # FIXME: should reinstall the best remaining shared library.
15939 - fi
15940 + ;;
15941 + esac
15942 fi
15943 ;;
15944
15945 @@ -6402,7 +6844,7 @@
15946 $echo
15947 $echo "Try \`$modename --help' for more information about other modes."
15948
15949 -exit $EXIT_SUCCESS
15950 +exit $?
15951
15952 # The TAGs below are defined such that we never get into a situation
15953 # in which we disable both kinds of libraries. Given conflicting
15954 @@ -6416,12 +6858,11 @@
15955 # configuration. But we'll never go from static-only to shared-only.
15956
15957 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
15958 -build_libtool_libs=no
15959 -build_old_libs=yes
15960 +disable_libs=shared
15961 # ### END LIBTOOL TAG CONFIG: disable-shared
15962
15963 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
15964 -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
15965 +disable_libs=static
15966 # ### END LIBTOOL TAG CONFIG: disable-static
15967
15968 # Local Variables: