~ubuntu-branches/ubuntu/trusty/cloog/trusty

« back to all changes in this revision

Viewing changes to isl/configure

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-26 14:21:11 UTC
  • mfrom: (3.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140226142111-vsbb1isby30uundd
Tags: 0.18.2-1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.69 for isl 0.12.1.
 
3
# Generated by GNU Autoconf 2.68 for isl 0.12.1.
4
4
#
5
5
# Report bugs to <isl-development@googlegroups.com>.
6
6
#
7
7
#
8
 
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
 
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
 
10
# Foundation, Inc.
9
11
#
10
12
#
11
13
# This configure script is free software; the Free Software Foundation
134
136
# CDPATH.
135
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
138
 
137
 
# Use a proper internal environment variable to ensure we don't fall
138
 
  # into an infinite loop, continuously re-executing ourselves.
139
 
  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
 
    _as_can_reexec=no; export _as_can_reexec;
141
 
    # We cannot yet assume a decent shell, so we have to provide a
142
 
# neutralization value for shells without unset; and this also
143
 
# works around shells that cannot unset nonexistent variables.
144
 
# Preserve -v and -x to the replacement shell.
145
 
BASH_ENV=/dev/null
146
 
ENV=/dev/null
147
 
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148
 
case $- in # ((((
149
 
  *v*x* | *x*v* ) as_opts=-vx ;;
150
 
  *v* ) as_opts=-v ;;
151
 
  *x* ) as_opts=-x ;;
152
 
  * ) as_opts= ;;
153
 
esac
154
 
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
 
# Admittedly, this is quite paranoid, since all the known shells bail
156
 
# out after a failed `exec'.
157
 
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
 
as_fn_exit 255
159
 
  fi
160
 
  # We don't want this to propagate to other subprocesses.
161
 
          { _as_can_reexec=; unset _as_can_reexec;}
162
139
if test "x$CONFIG_SHELL" = x; then
163
140
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
141
  emulate sh
192
169
else
193
170
  exitcode=1; echo positional parameters were not saved.
194
171
fi
195
 
test x\$exitcode = x0 || exit 1
196
 
test -x / || exit 1"
 
172
test x\$exitcode = x0 || exit 1"
197
173
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
174
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
175
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
246
222
 
247
223
 
248
224
      if test "x$CONFIG_SHELL" != x; then :
249
 
  export CONFIG_SHELL
250
 
             # We cannot yet assume a decent shell, so we have to provide a
251
 
# neutralization value for shells without unset; and this also
252
 
# works around shells that cannot unset nonexistent variables.
253
 
# Preserve -v and -x to the replacement shell.
254
 
BASH_ENV=/dev/null
255
 
ENV=/dev/null
256
 
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257
 
case $- in # ((((
258
 
  *v*x* | *x*v* ) as_opts=-vx ;;
259
 
  *v* ) as_opts=-v ;;
260
 
  *x* ) as_opts=-x ;;
261
 
  * ) as_opts= ;;
262
 
esac
263
 
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
 
# Admittedly, this is quite paranoid, since all the known shells bail
265
 
# out after a failed `exec'.
266
 
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267
 
exit 255
 
225
  # We cannot yet assume a decent shell, so we have to provide a
 
226
        # neutralization value for shells without unset; and this also
 
227
        # works around shells that cannot unset nonexistent variables.
 
228
        # Preserve -v and -x to the replacement shell.
 
229
        BASH_ENV=/dev/null
 
230
        ENV=/dev/null
 
231
        (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 
232
        export CONFIG_SHELL
 
233
        case $- in # ((((
 
234
          *v*x* | *x*v* ) as_opts=-vx ;;
 
235
          *v* ) as_opts=-v ;;
 
236
          *x* ) as_opts=-x ;;
 
237
          * ) as_opts= ;;
 
238
        esac
 
239
        exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
268
240
fi
269
241
 
270
242
    if test x$as_have_required = xno; then :
367
339
 
368
340
 
369
341
} # as_fn_mkdir_p
370
 
 
371
 
# as_fn_executable_p FILE
372
 
# -----------------------
373
 
# Test if FILE is an executable regular file.
374
 
as_fn_executable_p ()
375
 
{
376
 
  test -f "$1" && test -x "$1"
377
 
} # as_fn_executable_p
378
342
# as_fn_append VAR VALUE
379
343
# ----------------------
380
344
# Append the text in VALUE to the end of the definition contained in VAR. Take
496
460
  chmod +x "$as_me.lineno" ||
497
461
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
462
 
499
 
  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500
 
  # already done that, so ensure we don't try to do so again and fall
501
 
  # in an infinite loop.  This has already happened in practice.
502
 
  _as_can_reexec=no; export _as_can_reexec
503
463
  # Don't try to exec as it changes $[0], causing all sort of problems
504
464
  # (the dirname of $[0] is not the place where we might find the
505
465
  # original and so on.  Autoconf is especially sensitive to this).
534
494
    # ... but there are two gotchas:
535
495
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536
496
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537
 
    # In both cases, we have to default to `cp -pR'.
 
497
    # In both cases, we have to default to `cp -p'.
538
498
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539
 
      as_ln_s='cp -pR'
 
499
      as_ln_s='cp -p'
540
500
  elif ln conf$$.file conf$$ 2>/dev/null; then
541
501
    as_ln_s=ln
542
502
  else
543
 
    as_ln_s='cp -pR'
 
503
    as_ln_s='cp -p'
544
504
  fi
545
505
else
546
 
  as_ln_s='cp -pR'
 
506
  as_ln_s='cp -p'
547
507
fi
548
508
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549
509
rmdir conf$$.dir 2>/dev/null
555
515
  as_mkdir_p=false
556
516
fi
557
517
 
558
 
as_test_x='test -x'
559
 
as_executable_p=as_fn_executable_p
 
518
if test -x / >/dev/null 2>&1; then
 
519
  as_test_x='test -x'
 
520
else
 
521
  if ls -dL / >/dev/null 2>&1; then
 
522
    as_ls_L_option=L
 
523
  else
 
524
    as_ls_L_option=
 
525
  fi
 
526
  as_test_x='
 
527
    eval sh -c '\''
 
528
      if test -d "$1"; then
 
529
        test -d "$1/.";
 
530
      else
 
531
        case $1 in #(
 
532
        -*)set "./$1";;
 
533
        esac;
 
534
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
535
        ???[sx]*):;;*)false;;esac;fi
 
536
    '\'' sh
 
537
  '
 
538
fi
 
539
as_executable_p=$as_test_x
560
540
 
561
541
# Sed expression to map a string onto a valid CPP name.
562
542
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1278
1258
if test "x$host_alias" != x; then
1279
1259
  if test "x$build_alias" = x; then
1280
1260
    cross_compiling=maybe
 
1261
    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
 
1262
    If a cross compiler is detected then cross compile mode will be used" >&2
1281
1263
  elif test "x$build_alias" != "x$host_alias"; then
1282
1264
    cross_compiling=yes
1283
1265
  fi
1462
1444
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1463
1445
                          both]
1464
1446
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1465
 
  --with-sysroot=DIR Search for dependent libraries within DIR
1466
 
                        (or the compiler's sysroot if not specified).
 
1447
  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
 
1448
                          compiler's sysroot if not specified).
1467
1449
  --with-gmp=system|build Which gmp to use [default=system]
1468
1450
  --with-gmp-prefix=DIR   Prefix of gmp installation
1469
1451
  --with-gmp-exec-prefix=DIR
1562
1544
if $ac_init_version; then
1563
1545
  cat <<\_ACEOF
1564
1546
isl configure 0.12.1
1565
 
generated by GNU Autoconf 2.69
 
1547
generated by GNU Autoconf 2.68
1566
1548
 
1567
 
Copyright (C) 2012 Free Software Foundation, Inc.
 
1549
Copyright (C) 2010 Free Software Foundation, Inc.
1568
1550
This configure script is free software; the Free Software Foundation
1569
1551
gives unlimited permission to copy, distribute and modify it.
1570
1552
_ACEOF
1720
1702
         test ! -s conftest.err
1721
1703
       } && test -s conftest$ac_exeext && {
1722
1704
         test "$cross_compiling" = yes ||
1723
 
         test -x conftest$ac_exeext
 
1705
         $as_test_x conftest$ac_exeext
1724
1706
       }; then :
1725
1707
  ac_retval=0
1726
1708
else
1938
1920
         test ! -s conftest.err
1939
1921
       } && test -s conftest$ac_exeext && {
1940
1922
         test "$cross_compiling" = yes ||
1941
 
         test -x conftest$ac_exeext
 
1923
         $as_test_x conftest$ac_exeext
1942
1924
       }; then :
1943
1925
  ac_retval=0
1944
1926
else
2028
2010
main ()
2029
2011
{
2030
2012
static int test_array [1 - 2 * !(($2) >= 0)];
2031
 
test_array [0] = 0;
2032
 
return test_array [0];
 
2013
test_array [0] = 0
2033
2014
 
2034
2015
  ;
2035
2016
  return 0;
2045
2026
main ()
2046
2027
{
2047
2028
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2048
 
test_array [0] = 0;
2049
 
return test_array [0];
 
2029
test_array [0] = 0
2050
2030
 
2051
2031
  ;
2052
2032
  return 0;
2072
2052
main ()
2073
2053
{
2074
2054
static int test_array [1 - 2 * !(($2) < 0)];
2075
 
test_array [0] = 0;
2076
 
return test_array [0];
 
2055
test_array [0] = 0
2077
2056
 
2078
2057
  ;
2079
2058
  return 0;
2089
2068
main ()
2090
2069
{
2091
2070
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2092
 
test_array [0] = 0;
2093
 
return test_array [0];
 
2071
test_array [0] = 0
2094
2072
 
2095
2073
  ;
2096
2074
  return 0;
2124
2102
main ()
2125
2103
{
2126
2104
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2127
 
test_array [0] = 0;
2128
 
return test_array [0];
 
2105
test_array [0] = 0
2129
2106
 
2130
2107
  ;
2131
2108
  return 0;
2483
2460
running configure, to aid debugging if configure makes a mistake.
2484
2461
 
2485
2462
It was created by isl $as_me 0.12.1, which was
2486
 
generated by GNU Autoconf 2.69.  Invocation command line was
 
2463
generated by GNU Autoconf 2.68.  Invocation command line was
2487
2464
 
2488
2465
  $ $0 $@
2489
2466
 
2899
2876
    # by default.
2900
2877
    for ac_prog in ginstall scoinst install; do
2901
2878
      for ac_exec_ext in '' $ac_executable_extensions; do
2902
 
        if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2879
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2903
2880
          if test $ac_prog = install &&
2904
2881
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2905
2882
            # AIX install.  It has an incompatible calling convention.
3068
3045
  IFS=$as_save_IFS
3069
3046
  test -z "$as_dir" && as_dir=.
3070
3047
    for ac_exec_ext in '' $ac_executable_extensions; do
3071
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3048
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072
3049
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3073
3050
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074
3051
    break 2
3108
3085
  IFS=$as_save_IFS
3109
3086
  test -z "$as_dir" && as_dir=.
3110
3087
    for ac_exec_ext in '' $ac_executable_extensions; do
3111
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3088
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3112
3089
    ac_cv_prog_ac_ct_STRIP="strip"
3113
3090
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114
3091
    break 2
3159
3136
  test -z "$as_dir" && as_dir=.
3160
3137
    for ac_prog in mkdir gmkdir; do
3161
3138
         for ac_exec_ext in '' $ac_executable_extensions; do
3162
 
           as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
 
3139
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3163
3140
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3164
3141
             'mkdir (GNU coreutils) '* | \
3165
3142
             'mkdir (coreutils) '* | \
3212
3189
  IFS=$as_save_IFS
3213
3190
  test -z "$as_dir" && as_dir=.
3214
3191
    for ac_exec_ext in '' $ac_executable_extensions; do
3215
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3192
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216
3193
    ac_cv_prog_AWK="$ac_prog"
3217
3194
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218
3195
    break 2
3414
3391
  IFS=$as_save_IFS
3415
3392
  test -z "$as_dir" && as_dir=.
3416
3393
    for ac_exec_ext in '' $ac_executable_extensions; do
3417
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3394
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3418
3395
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3419
3396
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420
3397
    break 2
3454
3431
  IFS=$as_save_IFS
3455
3432
  test -z "$as_dir" && as_dir=.
3456
3433
    for ac_exec_ext in '' $ac_executable_extensions; do
3457
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3434
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458
3435
    ac_cv_prog_ac_ct_CC="gcc"
3459
3436
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460
3437
    break 2
3507
3484
  IFS=$as_save_IFS
3508
3485
  test -z "$as_dir" && as_dir=.
3509
3486
    for ac_exec_ext in '' $ac_executable_extensions; do
3510
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3487
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511
3488
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3512
3489
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513
3490
    break 2
3548
3525
  IFS=$as_save_IFS
3549
3526
  test -z "$as_dir" && as_dir=.
3550
3527
    for ac_exec_ext in '' $ac_executable_extensions; do
3551
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3528
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552
3529
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3553
3530
       ac_prog_rejected=yes
3554
3531
       continue
3606
3583
  IFS=$as_save_IFS
3607
3584
  test -z "$as_dir" && as_dir=.
3608
3585
    for ac_exec_ext in '' $ac_executable_extensions; do
3609
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3586
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610
3587
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3611
3588
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612
3589
    break 2
3650
3627
  IFS=$as_save_IFS
3651
3628
  test -z "$as_dir" && as_dir=.
3652
3629
    for ac_exec_ext in '' $ac_executable_extensions; do
3653
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3630
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3654
3631
    ac_cv_prog_ac_ct_CC="$ac_prog"
3655
3632
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656
3633
    break 2
4096
4073
/* end confdefs.h.  */
4097
4074
#include <stdarg.h>
4098
4075
#include <stdio.h>
4099
 
struct stat;
 
4076
#include <sys/types.h>
 
4077
#include <sys/stat.h>
4100
4078
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4101
4079
struct buf { int x; };
4102
4080
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4400
4378
  IFS=$as_save_IFS
4401
4379
  test -z "$as_dir" && as_dir=.
4402
4380
    for ac_exec_ext in '' $ac_executable_extensions; do
4403
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4381
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404
4382
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4405
4383
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406
4384
    break 2
4444
4422
  IFS=$as_save_IFS
4445
4423
  test -z "$as_dir" && as_dir=.
4446
4424
    for ac_exec_ext in '' $ac_executable_extensions; do
4447
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4425
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4448
4426
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4449
4427
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4450
4428
    break 2
5505
5483
  IFS=$as_save_IFS
5506
5484
  test -z "$as_dir" && as_dir=.
5507
5485
    for ac_exec_ext in '' $ac_executable_extensions; do
5508
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5486
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5509
5487
    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
5510
5488
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511
5489
    break 2
5780
5758
 
5781
5759
 
5782
5760
 
5783
 
macro_version='2.4.2'
5784
 
macro_revision='1.3337'
5785
 
 
5786
 
 
5787
 
 
5788
 
 
5789
 
 
5790
 
 
5791
 
 
5792
 
 
5793
 
 
5794
 
 
5795
 
 
5796
 
 
5797
 
 
5798
 
ltmain="$ac_aux_dir/ltmain.sh"
 
5761
macro_version='2.4.2.418'
 
5762
macro_revision='2.4.2.418'
 
5763
 
 
5764
 
 
5765
 
 
5766
 
 
5767
 
 
5768
 
 
5769
 
 
5770
 
 
5771
 
 
5772
 
 
5773
 
 
5774
 
 
5775
 
 
5776
ltmain=$ac_aux_dir/ltmain.sh
5799
5777
 
5800
5778
# Backslashify metacharacters that are still active within
5801
5779
# double-quoted strings.
5844
5822
    $ECHO ""
5845
5823
}
5846
5824
 
5847
 
case "$ECHO" in
 
5825
case $ECHO in
5848
5826
  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5849
5827
$as_echo "printf" >&6; } ;;
5850
5828
  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5888
5866
    for ac_prog in sed gsed; do
5889
5867
    for ac_exec_ext in '' $ac_executable_extensions; do
5890
5868
      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5891
 
      as_fn_executable_p "$ac_path_SED" || continue
 
5869
      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5892
5870
# Check for GNU ac_path_SED and select it if it is found.
5893
5871
  # Check for GNU $ac_path_SED
5894
5872
case `"$ac_path_SED" --version 2>&1` in
5964
5942
    for ac_prog in grep ggrep; do
5965
5943
    for ac_exec_ext in '' $ac_executable_extensions; do
5966
5944
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5967
 
      as_fn_executable_p "$ac_path_GREP" || continue
 
5945
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5968
5946
# Check for GNU ac_path_GREP and select it if it is found.
5969
5947
  # Check for GNU $ac_path_GREP
5970
5948
case `"$ac_path_GREP" --version 2>&1` in
6030
6008
    for ac_prog in egrep; do
6031
6009
    for ac_exec_ext in '' $ac_executable_extensions; do
6032
6010
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6033
 
      as_fn_executable_p "$ac_path_EGREP" || continue
 
6011
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6034
6012
# Check for GNU ac_path_EGREP and select it if it is found.
6035
6013
  # Check for GNU $ac_path_EGREP
6036
6014
case `"$ac_path_EGREP" --version 2>&1` in
6097
6075
    for ac_prog in fgrep; do
6098
6076
    for ac_exec_ext in '' $ac_executable_extensions; do
6099
6077
      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6100
 
      as_fn_executable_p "$ac_path_FGREP" || continue
 
6078
      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6101
6079
# Check for GNU ac_path_FGREP and select it if it is found.
6102
6080
  # Check for GNU $ac_path_FGREP
6103
6081
case `"$ac_path_FGREP" --version 2>&1` in
6167
6145
 
6168
6146
# Check whether --with-gnu-ld was given.
6169
6147
if test "${with_gnu_ld+set}" = set; then :
6170
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
6148
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6171
6149
else
6172
6150
  with_gnu_ld=no
6173
6151
fi
6174
6152
 
6175
6153
ac_prog=ld
6176
 
if test "$GCC" = yes; then
 
6154
if test yes = "$GCC"; then
6177
6155
  # Check if gcc -print-prog-name=ld gives a path.
6178
6156
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6179
6157
$as_echo_n "checking for ld used by $CC... " >&6; }
6180
6158
  case $host in
6181
6159
  *-*-mingw*)
6182
 
    # gcc leaves a trailing carriage return which upsets mingw
 
6160
    # gcc leaves a trailing carriage return, which upsets mingw
6183
6161
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6184
6162
  *)
6185
6163
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6193
6171
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6194
6172
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6195
6173
      done
6196
 
      test -z "$LD" && LD="$ac_prog"
 
6174
      test -z "$LD" && LD=$ac_prog
6197
6175
      ;;
6198
6176
  "")
6199
6177
    # If it fails, then pretend we aren't using GCC.
6204
6182
    with_gnu_ld=unknown
6205
6183
    ;;
6206
6184
  esac
6207
 
elif test "$with_gnu_ld" = yes; then
 
6185
elif test yes = "$with_gnu_ld"; then
6208
6186
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6209
6187
$as_echo_n "checking for GNU ld... " >&6; }
6210
6188
else
6215
6193
  $as_echo_n "(cached) " >&6
6216
6194
else
6217
6195
  if test -z "$LD"; then
6218
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6196
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6219
6197
  for ac_dir in $PATH; do
6220
 
    IFS="$lt_save_ifs"
 
6198
    IFS=$lt_save_ifs
6221
6199
    test -z "$ac_dir" && ac_dir=.
6222
6200
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6223
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
6201
      lt_cv_path_LD=$ac_dir/$ac_prog
6224
6202
      # Check to see if the program is GNU ld.  I'd rather use --version,
6225
6203
      # but apparently some variants of GNU ld only accept -v.
6226
6204
      # Break only if it was the GNU/non-GNU ld that we prefer.
6227
6205
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6228
6206
      *GNU* | *'with BFD'*)
6229
 
        test "$with_gnu_ld" != no && break
 
6207
        test no != "$with_gnu_ld" && break
6230
6208
        ;;
6231
6209
      *)
6232
 
        test "$with_gnu_ld" != yes && break
 
6210
        test yes != "$with_gnu_ld" && break
6233
6211
        ;;
6234
6212
      esac
6235
6213
    fi
6236
6214
  done
6237
 
  IFS="$lt_save_ifs"
 
6215
  IFS=$lt_save_ifs
6238
6216
else
6239
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
6217
  lt_cv_path_LD=$LD # Let the user override the test with a path.
6240
6218
fi
6241
6219
fi
6242
6220
 
6243
 
LD="$lt_cv_path_LD"
 
6221
LD=$lt_cv_path_LD
6244
6222
if test -n "$LD"; then
6245
6223
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6246
6224
$as_echo "$LD" >&6; }
6283
6261
else
6284
6262
  if test -n "$NM"; then
6285
6263
  # Let the user override the test.
6286
 
  lt_cv_path_NM="$NM"
 
6264
  lt_cv_path_NM=$NM
6287
6265
else
6288
 
  lt_nm_to_check="${ac_tool_prefix}nm"
 
6266
  lt_nm_to_check=${ac_tool_prefix}nm
6289
6267
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6290
6268
    lt_nm_to_check="$lt_nm_to_check nm"
6291
6269
  fi
6292
6270
  for lt_tmp_nm in $lt_nm_to_check; do
6293
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6271
    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6294
6272
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6295
 
      IFS="$lt_save_ifs"
 
6273
      IFS=$lt_save_ifs
6296
6274
      test -z "$ac_dir" && ac_dir=.
6297
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
6298
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
6275
      tmp_nm=$ac_dir/$lt_tmp_nm
 
6276
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6299
6277
        # Check to see if the nm accepts a BSD-compat flag.
6300
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
6278
        # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6301
6279
        #   nm: unknown option "B" ignored
6302
6280
        # Tru64's nm complains that /dev/null is an invalid object file
6303
6281
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6304
6282
        */dev/null* | *'Invalid file or object type'*)
6305
6283
          lt_cv_path_NM="$tmp_nm -B"
6306
 
          break
 
6284
          break 2
6307
6285
          ;;
6308
6286
        *)
6309
6287
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6310
6288
          */dev/null*)
6311
6289
            lt_cv_path_NM="$tmp_nm -p"
6312
 
            break
 
6290
            break 2
6313
6291
            ;;
6314
6292
          *)
6315
6293
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6320
6298
        esac
6321
6299
      fi
6322
6300
    done
6323
 
    IFS="$lt_save_ifs"
 
6301
    IFS=$lt_save_ifs
6324
6302
  done
6325
6303
  : ${lt_cv_path_NM=no}
6326
6304
fi
6327
6305
fi
6328
6306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6329
6307
$as_echo "$lt_cv_path_NM" >&6; }
6330
 
if test "$lt_cv_path_NM" != "no"; then
6331
 
  NM="$lt_cv_path_NM"
 
6308
if test no != "$lt_cv_path_NM"; then
 
6309
  NM=$lt_cv_path_NM
6332
6310
else
6333
6311
  # Didn't find any BSD compatible name lister, look for dumpbin.
6334
6312
  if test -n "$DUMPBIN"; then :
6353
6331
  IFS=$as_save_IFS
6354
6332
  test -z "$as_dir" && as_dir=.
6355
6333
    for ac_exec_ext in '' $ac_executable_extensions; do
6356
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6334
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6357
6335
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6358
6336
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359
6337
    break 2
6397
6375
  IFS=$as_save_IFS
6398
6376
  test -z "$as_dir" && as_dir=.
6399
6377
    for ac_exec_ext in '' $ac_executable_extensions; do
6400
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6378
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401
6379
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6402
6380
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403
6381
    break 2
6434
6412
  fi
6435
6413
fi
6436
6414
 
6437
 
    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
 
6415
    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6438
6416
    *COFF*)
6439
 
      DUMPBIN="$DUMPBIN -symbols"
 
6417
      DUMPBIN="$DUMPBIN -symbols -headers"
6440
6418
      ;;
6441
6419
    *)
6442
6420
      DUMPBIN=:
6444
6422
    esac
6445
6423
  fi
6446
6424
 
6447
 
  if test "$DUMPBIN" != ":"; then
6448
 
    NM="$DUMPBIN"
 
6425
  if test : != "$DUMPBIN"; then
 
6426
    NM=$DUMPBIN
6449
6427
  fi
6450
6428
fi
6451
6429
test -z "$NM" && NM=nm
6496
6474
  $as_echo_n "(cached) " >&6
6497
6475
else
6498
6476
    i=0
6499
 
  teststring="ABCD"
 
6477
  teststring=ABCD
6500
6478
 
6501
6479
  case $build_os in
6502
6480
  msdosdjgpp*)
6536
6514
    lt_cv_sys_max_cmd_len=8192;
6537
6515
    ;;
6538
6516
 
6539
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6517
  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6540
6518
    # This has been around since 386BSD, at least.  Likely further.
6541
6519
    if test -x /sbin/sysctl; then
6542
6520
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6587
6565
  *)
6588
6566
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6589
6567
    if test -n "$lt_cv_sys_max_cmd_len" && \
6590
 
        test undefined != "$lt_cv_sys_max_cmd_len"; then
 
6568
       test undefined != "$lt_cv_sys_max_cmd_len"; then
6591
6569
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6592
6570
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6593
6571
    else
6594
6572
      # Make teststring a little bigger before we do anything with it.
6595
6573
      # a 1K string should be a reasonable start.
6596
 
      for i in 1 2 3 4 5 6 7 8 ; do
 
6574
      for i in 1 2 3 4 5 6 7 8; do
6597
6575
        teststring=$teststring$teststring
6598
6576
      done
6599
6577
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6600
6578
      # If test is not a shell built-in, we'll probably end up computing a
6601
6579
      # maximum length that is only half of the actual maximum length, but
6602
6580
      # we can't tell.
6603
 
      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
 
6581
      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6604
6582
                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6605
 
              test $i != 17 # 1/2 MB should be enough
 
6583
              test 17 != "$i" # 1/2 MB should be enough
6606
6584
      do
6607
6585
        i=`expr $i + 1`
6608
6586
        teststring=$teststring$teststring
6620
6598
 
6621
6599
fi
6622
6600
 
6623
 
if test -n $lt_cv_sys_max_cmd_len ; then
 
6601
if test -n "$lt_cv_sys_max_cmd_len"; then
6624
6602
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6625
6603
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6626
6604
else
6638
6616
: ${MV="mv -f"}
6639
6617
: ${RM="rm -f"}
6640
6618
 
6641
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6642
 
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6643
 
# Try some XSI features
6644
 
xsi_shell=no
6645
 
( _lt_dummy="a/b/c"
6646
 
  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6647
 
      = c,a/b,b/c, \
6648
 
    && eval 'test $(( 1 + 1 )) -eq 2 \
6649
 
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6650
 
  && xsi_shell=yes
6651
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6652
 
$as_echo "$xsi_shell" >&6; }
6653
 
 
6654
 
 
6655
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6656
 
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6657
 
lt_shell_append=no
6658
 
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6659
 
    >/dev/null 2>&1 \
6660
 
  && lt_shell_append=yes
6661
 
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6662
 
$as_echo "$lt_shell_append" >&6; }
6663
 
 
6664
 
 
6665
6619
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6666
6620
  lt_unset=unset
6667
6621
else
6784
6738
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6785
6739
case $host_os in
6786
6740
  cygwin* | mingw* | pw32* | cegcc*)
6787
 
    if test "$GCC" != yes; then
 
6741
    if test yes != "$GCC"; then
6788
6742
      reload_cmds=false
6789
6743
    fi
6790
6744
    ;;
6791
6745
  darwin*)
6792
 
    if test "$GCC" = yes; then
6793
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
6746
    if test yes = "$GCC"; then
 
6747
      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6794
6748
    else
6795
6749
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6796
6750
    fi
6822
6776
  IFS=$as_save_IFS
6823
6777
  test -z "$as_dir" && as_dir=.
6824
6778
    for ac_exec_ext in '' $ac_executable_extensions; do
6825
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6779
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826
6780
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6827
6781
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828
6782
    break 2
6862
6816
  IFS=$as_save_IFS
6863
6817
  test -z "$as_dir" && as_dir=.
6864
6818
    for ac_exec_ext in '' $ac_executable_extensions; do
6865
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6819
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866
6820
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6867
6821
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868
6822
    break 2
6918
6872
# Need to set the preceding variable on all platforms that support
6919
6873
# interlibrary dependencies.
6920
6874
# 'none' -- dependencies not supported.
6921
 
# `unknown' -- same as none, but documents that we really don't know.
 
6875
# 'unknown' -- same as none, but documents that we really don't know.
6922
6876
# 'pass_all' -- all dependencies passed with no checks.
6923
6877
# 'test_compile' -- check by making test program.
6924
6878
# 'file_magic [[regex]]' -- check by looking for files in library path
6925
 
# which responds to the $file_magic_cmd with a given extended regex.
6926
 
# If you have `file' or equivalent on your system and you're not sure
6927
 
# whether `pass_all' will *always* work, you probably want this one.
 
6879
# that responds to the $file_magic_cmd with a given extended regex.
 
6880
# If you have 'file' or equivalent on your system and you're not sure
 
6881
# whether 'pass_all' will *always* work, you probably want this one.
6928
6882
 
6929
6883
case $host_os in
6930
6884
aix[4-9]*)
6951
6905
  # Base MSYS/MinGW do not provide the 'file' command needed by
6952
6906
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6953
6907
  # unless we find 'file', for example because we are cross-compiling.
6954
 
  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6955
 
  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
 
6908
  if ( file / ) >/dev/null 2>&1; then
6956
6909
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6957
6910
    lt_cv_file_magic_cmd='func_win32_libid'
6958
6911
  else
7030
6983
  lt_cv_deplibs_check_method=pass_all
7031
6984
  ;;
7032
6985
 
7033
 
netbsd* | netbsdelf*-gnu)
 
6986
netbsd*)
7034
6987
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7035
6988
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7036
6989
  else
7048
7001
  lt_cv_deplibs_check_method=pass_all
7049
7002
  ;;
7050
7003
 
7051
 
openbsd*)
7052
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7004
openbsd* | bitrig*)
 
7005
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7053
7006
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7054
7007
  else
7055
7008
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7164
7117
  IFS=$as_save_IFS
7165
7118
  test -z "$as_dir" && as_dir=.
7166
7119
    for ac_exec_ext in '' $ac_executable_extensions; do
7167
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7120
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168
7121
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7169
7122
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170
7123
    break 2
7204
7157
  IFS=$as_save_IFS
7205
7158
  test -z "$as_dir" && as_dir=.
7206
7159
    for ac_exec_ext in '' $ac_executable_extensions; do
7207
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7160
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208
7161
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7209
7162
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210
7163
    break 2
7259
7212
 
7260
7213
case $host_os in
7261
7214
cygwin* | mingw* | pw32* | cegcc*)
7262
 
  # two different shell functions defined in ltmain.sh
7263
 
  # decide which to use based on capabilities of $DLLTOOL
 
7215
  # two different shell functions defined in ltmain.sh;
 
7216
  # decide which one to use based on capabilities of $DLLTOOL
7264
7217
  case `$DLLTOOL --help 2>&1` in
7265
7218
  *--identify-strict*)
7266
7219
    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7272
7225
  ;;
7273
7226
*)
7274
7227
  # fallback: assume linklib IS sharedlib
7275
 
  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
 
7228
  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7276
7229
  ;;
7277
7230
esac
7278
7231
 
7307
7260
  IFS=$as_save_IFS
7308
7261
  test -z "$as_dir" && as_dir=.
7309
7262
    for ac_exec_ext in '' $ac_executable_extensions; do
7310
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7263
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7311
7264
    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7312
7265
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313
7266
    break 2
7351
7304
  IFS=$as_save_IFS
7352
7305
  test -z "$as_dir" && as_dir=.
7353
7306
    for ac_exec_ext in '' $ac_executable_extensions; do
7354
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7307
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355
7308
    ac_cv_prog_ac_ct_AR="$ac_prog"
7356
7309
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357
7310
    break 2
7426
7379
  ac_status=$?
7427
7380
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7428
7381
  test $ac_status = 0; }
7429
 
      if test "$ac_status" -eq 0; then
 
7382
      if test 0 -eq "$ac_status"; then
7430
7383
        # Ensure the archiver fails upon bogus file names.
7431
7384
        rm -f conftest.$ac_objext libconftest.a
7432
7385
        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7434
7387
  ac_status=$?
7435
7388
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7436
7389
  test $ac_status = 0; }
7437
 
        if test "$ac_status" -ne 0; then
 
7390
        if test 0 -ne "$ac_status"; then
7438
7391
          lt_cv_ar_at_file=@
7439
7392
        fi
7440
7393
      fi
7447
7400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7448
7401
$as_echo "$lt_cv_ar_at_file" >&6; }
7449
7402
 
7450
 
if test "x$lt_cv_ar_at_file" = xno; then
 
7403
if test no = "$lt_cv_ar_at_file"; then
7451
7404
  archiver_list_spec=
7452
7405
else
7453
7406
  archiver_list_spec=$lt_cv_ar_at_file
7476
7429
  IFS=$as_save_IFS
7477
7430
  test -z "$as_dir" && as_dir=.
7478
7431
    for ac_exec_ext in '' $ac_executable_extensions; do
7479
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7432
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480
7433
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7481
7434
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482
7435
    break 2
7516
7469
  IFS=$as_save_IFS
7517
7470
  test -z "$as_dir" && as_dir=.
7518
7471
    for ac_exec_ext in '' $ac_executable_extensions; do
7519
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7472
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520
7473
    ac_cv_prog_ac_ct_STRIP="strip"
7521
7474
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522
7475
    break 2
7575
7528
  IFS=$as_save_IFS
7576
7529
  test -z "$as_dir" && as_dir=.
7577
7530
    for ac_exec_ext in '' $ac_executable_extensions; do
7578
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7531
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579
7532
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7580
7533
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581
7534
    break 2
7615
7568
  IFS=$as_save_IFS
7616
7569
  test -z "$as_dir" && as_dir=.
7617
7570
    for ac_exec_ext in '' $ac_executable_extensions; do
7618
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7571
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7619
7572
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7620
7573
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621
7574
    break 2
7664
7617
 
7665
7618
if test -n "$RANLIB"; then
7666
7619
  case $host_os in
7667
 
  openbsd*)
 
7620
  bitrig* | openbsd*)
7668
7621
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7669
7622
    ;;
7670
7623
  *)
7754
7707
  symcode='[ABCDGISTW]'
7755
7708
  ;;
7756
7709
hpux*)
7757
 
  if test "$host_cpu" = ia64; then
 
7710
  if test ia64 = "$host_cpu"; then
7758
7711
    symcode='[ABCDEGRST]'
7759
7712
  fi
7760
7713
  ;;
7787
7740
  symcode='[ABCDGIRSTW]' ;;
7788
7741
esac
7789
7742
 
 
7743
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7744
  # Gets list of data symbols to import.
 
7745
  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
 
7746
  # Adjust the below global symbol transforms to fixup imported variables.
 
7747
  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
 
7748
  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
 
7749
  lt_c_name_lib_hook="\
 
7750
  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
 
7751
  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
 
7752
else
 
7753
  # Disable hooks by default.
 
7754
  lt_cv_sys_global_symbol_to_import=
 
7755
  lt_cdecl_hook=
 
7756
  lt_c_name_hook=
 
7757
  lt_c_name_lib_hook=
 
7758
fi
 
7759
 
7790
7760
# Transform an extracted symbol line into a proper C declaration.
7791
7761
# Some systems (esp. on ia64) link data and code symbols differently,
7792
7762
# so use this general approach.
7793
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7763
lt_cv_sys_global_symbol_to_cdecl="sed -n"\
 
7764
$lt_cdecl_hook\
 
7765
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
 
7766
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7794
7767
 
7795
7768
# Transform an extracted symbol line into symbol name and symbol address
7796
 
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7797
 
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
7769
lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
 
7770
$lt_c_name_hook\
 
7771
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 
7772
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
 
7773
 
 
7774
# Transform an extracted symbol line into symbol name with lib prefix and
 
7775
# symbol address.
 
7776
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
 
7777
$lt_c_name_lib_hook\
 
7778
" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 
7779
" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
 
7780
" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7798
7781
 
7799
7782
# Handle CRLF in mingw tool chain
7800
7783
opt_cr=
7812
7795
 
7813
7796
  # Write the raw and C identifiers.
7814
7797
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7815
 
    # Fake it for dumpbin and say T for any non-static function
7816
 
    # and D for any global variable.
 
7798
    # Fake it for dumpbin and say T for any non-static function,
 
7799
    # D for any global variable and I for any imported variable.
7817
7800
    # Also find C++ and __fastcall symbols from MSVC++,
7818
7801
    # which start with @ or ?.
7819
7802
    lt_cv_sys_global_symbol_pipe="$AWK '"\
7820
7803
"     {last_section=section; section=\$ 3};"\
7821
7804
"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7822
7805
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7806
"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
 
7807
"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
 
7808
"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7823
7809
"     \$ 0!~/External *\|/{next};"\
7824
7810
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7825
7811
"     {if(hide[section]) next};"\
7826
 
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7827
 
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7828
 
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7829
 
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
7812
"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
 
7813
"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
 
7814
"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
 
7815
"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7830
7816
"     ' prfx=^$ac_symprfx"
7831
7817
  else
7832
7818
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7874
7860
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7875
7861
          cat <<_LT_EOF > conftest.$ac_ext
7876
7862
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7877
 
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7878
 
/* DATA imports from DLLs on WIN32 con't be const, because runtime
 
7863
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
 
7864
/* DATA imports from DLLs on WIN32 can't be const, because runtime
7879
7865
   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7880
7866
# define LT_DLSYM_CONST
7881
 
#elif defined(__osf__)
 
7867
#elif defined __osf__
7882
7868
/* This system does not cope well with relocations in const data.  */
7883
7869
# define LT_DLSYM_CONST
7884
7870
#else
7904
7890
{
7905
7891
  { "@PROGRAM@", (void *) 0 },
7906
7892
_LT_EOF
7907
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7893
          $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7908
7894
          cat <<\_LT_EOF >> conftest.$ac_ext
7909
7895
  {0, (void *) 0}
7910
7896
};
7924
7910
          mv conftest.$ac_objext conftstm.$ac_objext
7925
7911
          lt_globsym_save_LIBS=$LIBS
7926
7912
          lt_globsym_save_CFLAGS=$CFLAGS
7927
 
          LIBS="conftstm.$ac_objext"
 
7913
          LIBS=conftstm.$ac_objext
7928
7914
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7929
7915
          if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7930
7916
  (eval $ac_link) 2>&5
7931
7917
  ac_status=$?
7932
7918
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7933
 
  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
 
7919
  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7934
7920
            pipe_works=yes
7935
7921
          fi
7936
7922
          LIBS=$lt_globsym_save_LIBS
7951
7937
  rm -rf conftest* conftst*
7952
7938
 
7953
7939
  # Do not use the global_symbol_pipe unless it works.
7954
 
  if test "$pipe_works" = yes; then
 
7940
  if test yes = "$pipe_works"; then
7955
7941
    break
7956
7942
  else
7957
7943
    lt_cv_sys_global_symbol_pipe=
8004
7990
 
8005
7991
 
8006
7992
 
 
7993
 
 
7994
 
 
7995
 
 
7996
 
 
7997
 
 
7998
 
 
7999
 
 
8000
 
 
8001
 
 
8002
 
8007
8003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8008
8004
$as_echo_n "checking for sysroot... " >&6; }
8009
8005
 
8016
8012
 
8017
8013
 
8018
8014
lt_sysroot=
8019
 
case ${with_sysroot} in #(
 
8015
case $with_sysroot in #(
8020
8016
 yes)
8021
 
   if test "$GCC" = yes; then
 
8017
   if test yes = "$GCC"; then
8022
8018
     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8023
8019
   fi
8024
8020
   ;; #(
8028
8024
 no|'')
8029
8025
   ;; #(
8030
8026
 *)
8031
 
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8032
 
$as_echo "${with_sysroot}" >&6; }
 
8027
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
 
8028
$as_echo "$with_sysroot" >&6; }
8033
8029
   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8034
8030
   ;;
8035
8031
esac
8046
8042
  enableval=$enable_libtool_lock;
8047
8043
fi
8048
8044
 
8049
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8045
test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8050
8046
 
8051
8047
# Some flags need to be propagated to the compiler or linker for good
8052
8048
# libtool support.
8053
8049
case $host in
8054
8050
ia64-*-hpux*)
8055
 
  # Find out which ABI we are using.
 
8051
  # Find out what ABI is being produced by ac_compile, and set mode
 
8052
  # options accordingly.
8056
8053
  echo 'int i;' > conftest.$ac_ext
8057
8054
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8058
8055
  (eval $ac_compile) 2>&5
8061
8058
  test $ac_status = 0; }; then
8062
8059
    case `/usr/bin/file conftest.$ac_objext` in
8063
8060
      *ELF-32*)
8064
 
        HPUX_IA64_MODE="32"
 
8061
        HPUX_IA64_MODE=32
8065
8062
        ;;
8066
8063
      *ELF-64*)
8067
 
        HPUX_IA64_MODE="64"
 
8064
        HPUX_IA64_MODE=64
8068
8065
        ;;
8069
8066
    esac
8070
8067
  fi
8071
8068
  rm -rf conftest*
8072
8069
  ;;
8073
8070
*-*-irix6*)
8074
 
  # Find out which ABI we are using.
 
8071
  # Find out what ABI is being produced by ac_compile, and set linker
 
8072
  # options accordingly.
8075
8073
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8076
8074
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8077
8075
  (eval $ac_compile) 2>&5
8078
8076
  ac_status=$?
8079
8077
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8080
8078
  test $ac_status = 0; }; then
8081
 
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
8079
    if test yes = "$lt_cv_prog_gnu_ld"; then
8082
8080
      case `/usr/bin/file conftest.$ac_objext` in
8083
8081
        *32-bit*)
8084
8082
          LD="${LD-ld} -melf32bsmip"
8107
8105
  rm -rf conftest*
8108
8106
  ;;
8109
8107
 
8110
 
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
8108
mips64*-*linux*)
 
8109
  # Find out what ABI is being produced by ac_compile, and set linker
 
8110
  # options accordingly.
 
8111
  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
 
8112
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
 
8113
  (eval $ac_compile) 2>&5
 
8114
  ac_status=$?
 
8115
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
 
8116
  test $ac_status = 0; }; then
 
8117
    emul=elf
 
8118
    case `/usr/bin/file conftest.$ac_objext` in
 
8119
      *32-bit*)
 
8120
        emul="${emul}32"
 
8121
        ;;
 
8122
      *64-bit*)
 
8123
        emul="${emul}64"
 
8124
        ;;
 
8125
    esac
 
8126
    case `/usr/bin/file conftest.$ac_objext` in
 
8127
      *MSB*)
 
8128
        emul="${emul}btsmip"
 
8129
        ;;
 
8130
      *LSB*)
 
8131
        emul="${emul}ltsmip"
 
8132
        ;;
 
8133
    esac
 
8134
    case `/usr/bin/file conftest.$ac_objext` in
 
8135
      *N32*)
 
8136
        emul="${emul}n32"
 
8137
        ;;
 
8138
    esac
 
8139
    LD="${LD-ld} -m $emul"
 
8140
  fi
 
8141
  rm -rf conftest*
 
8142
  ;;
 
8143
 
 
8144
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8111
8145
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8112
 
  # Find out which ABI we are using.
 
8146
  # Find out what ABI is being produced by ac_compile, and set linker
 
8147
  # options accordingly.  Note that the listed cases only cover the
 
8148
  # situations where additional linker options are needed (such as when
 
8149
  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
 
8150
  # vice versa); the common cases where no linker options are needed do
 
8151
  # not appear in the list.
8113
8152
  echo 'int i;' > conftest.$ac_ext
8114
8153
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8115
8154
  (eval $ac_compile) 2>&5
8132
8171
                ;;
8133
8172
            esac
8134
8173
            ;;
8135
 
          ppc64-*linux*|powerpc64-*linux*)
 
8174
          powerpc64le-*linux*)
 
8175
            LD="${LD-ld} -m elf32lppclinux"
 
8176
            ;;
 
8177
          powerpc64-*linux*)
8136
8178
            LD="${LD-ld} -m elf32ppclinux"
8137
8179
            ;;
8138
8180
          s390x-*linux*)
8151
8193
          x86_64-*linux*)
8152
8194
            LD="${LD-ld} -m elf_x86_64"
8153
8195
            ;;
8154
 
          ppc*-*linux*|powerpc*-*linux*)
 
8196
          powerpcle-*linux*)
 
8197
            LD="${LD-ld} -m elf64lppc"
 
8198
            ;;
 
8199
          powerpc-*linux*)
8155
8200
            LD="${LD-ld} -m elf64ppc"
8156
8201
            ;;
8157
8202
          s390*-*linux*|s390*-*tpf*)
8169
8214
 
8170
8215
*-*-sco3.2v5*)
8171
8216
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8172
 
  SAVE_CFLAGS="$CFLAGS"
 
8217
  SAVE_CFLAGS=$CFLAGS
8173
8218
  CFLAGS="$CFLAGS -belf"
8174
8219
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8175
8220
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8209
8254
fi
8210
8255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8211
8256
$as_echo "$lt_cv_cc_needs_belf" >&6; }
8212
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
8257
  if test yes != "$lt_cv_cc_needs_belf"; then
8213
8258
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8214
 
    CFLAGS="$SAVE_CFLAGS"
 
8259
    CFLAGS=$SAVE_CFLAGS
8215
8260
  fi
8216
8261
  ;;
8217
8262
*-*solaris*)
8218
 
  # Find out which ABI we are using.
 
8263
  # Find out what ABI is being produced by ac_compile, and set linker
 
8264
  # options accordingly.
8219
8265
  echo 'int i;' > conftest.$ac_ext
8220
8266
  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8221
8267
  (eval $ac_compile) 2>&5
8227
8273
      case $lt_cv_prog_gnu_ld in
8228
8274
      yes*)
8229
8275
        case $host in
8230
 
        i?86-*-solaris*)
 
8276
        i?86-*-solaris*|x86_64-*-solaris*)
8231
8277
          LD="${LD-ld} -m elf_x86_64"
8232
8278
          ;;
8233
8279
        sparc*-*-solaris*)
8236
8282
        esac
8237
8283
        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8238
8284
        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8239
 
          LD="${LD-ld}_sol2"
 
8285
          LD=${LD-ld}_sol2
8240
8286
        fi
8241
8287
        ;;
8242
8288
      *)
8252
8298
  ;;
8253
8299
esac
8254
8300
 
8255
 
need_locks="$enable_libtool_lock"
 
8301
need_locks=$enable_libtool_lock
8256
8302
 
8257
8303
if test -n "$ac_tool_prefix"; then
8258
8304
  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8271
8317
  IFS=$as_save_IFS
8272
8318
  test -z "$as_dir" && as_dir=.
8273
8319
    for ac_exec_ext in '' $ac_executable_extensions; do
8274
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8320
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8275
8321
    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8276
8322
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8277
8323
    break 2
8311
8357
  IFS=$as_save_IFS
8312
8358
  test -z "$as_dir" && as_dir=.
8313
8359
    for ac_exec_ext in '' $ac_executable_extensions; do
8314
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8360
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8315
8361
    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8316
8362
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317
8363
    break 2
8363
8409
fi
8364
8410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8365
8411
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8366
 
if test "x$lt_cv_path_mainfest_tool" != xyes; then
 
8412
if test yes != "$lt_cv_path_mainfest_tool"; then
8367
8413
  MANIFEST_TOOL=:
8368
8414
fi
8369
8415
 
8391
8437
  IFS=$as_save_IFS
8392
8438
  test -z "$as_dir" && as_dir=.
8393
8439
    for ac_exec_ext in '' $ac_executable_extensions; do
8394
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8440
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8395
8441
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8396
8442
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397
8443
    break 2
8431
8477
  IFS=$as_save_IFS
8432
8478
  test -z "$as_dir" && as_dir=.
8433
8479
    for ac_exec_ext in '' $ac_executable_extensions; do
8434
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8480
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8435
8481
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8436
8482
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8437
8483
    break 2
8483
8529
  IFS=$as_save_IFS
8484
8530
  test -z "$as_dir" && as_dir=.
8485
8531
    for ac_exec_ext in '' $ac_executable_extensions; do
8486
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8532
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8487
8533
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8488
8534
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8489
8535
    break 2
8523
8569
  IFS=$as_save_IFS
8524
8570
  test -z "$as_dir" && as_dir=.
8525
8571
    for ac_exec_ext in '' $ac_executable_extensions; do
8526
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8572
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8527
8573
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8528
8574
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529
8575
    break 2
8575
8621
  IFS=$as_save_IFS
8576
8622
  test -z "$as_dir" && as_dir=.
8577
8623
    for ac_exec_ext in '' $ac_executable_extensions; do
8578
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8624
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8579
8625
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8580
8626
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581
8627
    break 2
8615
8661
  IFS=$as_save_IFS
8616
8662
  test -z "$as_dir" && as_dir=.
8617
8663
    for ac_exec_ext in '' $ac_executable_extensions; do
8618
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8664
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8619
8665
    ac_cv_prog_ac_ct_LIPO="lipo"
8620
8666
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621
8667
    break 2
8667
8713
  IFS=$as_save_IFS
8668
8714
  test -z "$as_dir" && as_dir=.
8669
8715
    for ac_exec_ext in '' $ac_executable_extensions; do
8670
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8716
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8671
8717
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8672
8718
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673
8719
    break 2
8707
8753
  IFS=$as_save_IFS
8708
8754
  test -z "$as_dir" && as_dir=.
8709
8755
    for ac_exec_ext in '' $ac_executable_extensions; do
8710
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8756
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8711
8757
    ac_cv_prog_ac_ct_OTOOL="otool"
8712
8758
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713
8759
    break 2
8759
8805
  IFS=$as_save_IFS
8760
8806
  test -z "$as_dir" && as_dir=.
8761
8807
    for ac_exec_ext in '' $ac_executable_extensions; do
8762
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8808
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8763
8809
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8764
8810
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765
8811
    break 2
8799
8845
  IFS=$as_save_IFS
8800
8846
  test -z "$as_dir" && as_dir=.
8801
8847
    for ac_exec_ext in '' $ac_executable_extensions; do
8802
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
8848
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803
8849
    ac_cv_prog_ac_ct_OTOOL64="otool64"
8804
8850
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805
8851
    break 2
8866
8912
  $as_echo_n "(cached) " >&6
8867
8913
else
8868
8914
  lt_cv_apple_cc_single_mod=no
8869
 
      if test -z "${LT_MULTI_MODULE}"; then
 
8915
      if test -z "$LT_MULTI_MODULE"; then
8870
8916
        # By default we will add the -single_module flag. You can override
8871
8917
        # by either setting the environment variable LT_MULTI_MODULE
8872
8918
        # non-empty at configure time, or by adding -multi_module to the
8884
8930
          cat conftest.err >&5
8885
8931
        # Otherwise, if the output was created with a 0 exit code from
8886
8932
        # the compiler, it worked.
8887
 
        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
 
8933
        elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8888
8934
          lt_cv_apple_cc_single_mod=yes
8889
8935
        else
8890
8936
          cat conftest.err >&5
8923
8969
fi
8924
8970
rm -f core conftest.err conftest.$ac_objext \
8925
8971
    conftest$ac_exeext conftest.$ac_ext
8926
 
        LDFLAGS="$save_LDFLAGS"
 
8972
        LDFLAGS=$save_LDFLAGS
8927
8973
 
8928
8974
fi
8929
8975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8952
8998
      _lt_result=$?
8953
8999
      if test -s conftest.err && $GREP force_load conftest.err; then
8954
9000
        cat conftest.err >&5
8955
 
      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
 
9001
      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8956
9002
        lt_cv_ld_force_load=yes
8957
9003
      else
8958
9004
        cat conftest.err >&5
8965
9011
$as_echo "$lt_cv_ld_force_load" >&6; }
8966
9012
    case $host_os in
8967
9013
    rhapsody* | darwin1.[012])
8968
 
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
9014
      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8969
9015
    darwin1.*)
8970
 
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
9016
      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8971
9017
    darwin*) # darwin 5.x on
8972
9018
      # if running on 10.5 or later, the deployment target defaults
8973
9019
      # to the OS version, if on x86, and 10.4, the deployment
8974
9020
      # target defaults to 10.4. Don't you love it?
8975
9021
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8976
9022
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8977
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
9023
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8978
9024
        10.[012]*)
8979
 
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
9025
          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8980
9026
        10.*)
8981
 
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
9027
          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8982
9028
      esac
8983
9029
    ;;
8984
9030
  esac
8985
 
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
9031
    if test yes = "$lt_cv_apple_cc_single_mod"; then
8986
9032
      _lt_dar_single_mod='$single_module'
8987
9033
    fi
8988
 
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8989
 
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
9034
    if test yes = "$lt_cv_ld_exported_symbols_list"; then
 
9035
      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8990
9036
    else
8991
 
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9037
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8992
9038
    fi
8993
 
    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
 
9039
    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8994
9040
      _lt_dsymutil='~$DSYMUTIL $lib || :'
8995
9041
    else
8996
9042
      _lt_dsymutil=
9283
9329
 
9284
9330
func_stripname_cnf ()
9285
9331
{
9286
 
  case ${2} in
9287
 
  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9288
 
  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
 
9332
  case $2 in
 
9333
  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
 
9334
  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9289
9335
  esac
9290
9336
} # func_stripname_cnf
9291
9337
 
9312
9358
    *)
9313
9359
      enable_shared=no
9314
9360
      # Look at the argument we got.  We use all the common list separators.
9315
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9361
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9316
9362
      for pkg in $enableval; do
9317
 
        IFS="$lt_save_ifs"
 
9363
        IFS=$lt_save_ifs
9318
9364
        if test "X$pkg" = "X$p"; then
9319
9365
          enable_shared=yes
9320
9366
        fi
9321
9367
      done
9322
 
      IFS="$lt_save_ifs"
 
9368
      IFS=$lt_save_ifs
9323
9369
      ;;
9324
9370
    esac
9325
9371
else
9343
9389
    *)
9344
9390
     enable_static=no
9345
9391
      # Look at the argument we got.  We use all the common list separators.
9346
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9392
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9347
9393
      for pkg in $enableval; do
9348
 
        IFS="$lt_save_ifs"
 
9394
        IFS=$lt_save_ifs
9349
9395
        if test "X$pkg" = "X$p"; then
9350
9396
          enable_static=yes
9351
9397
        fi
9352
9398
      done
9353
 
      IFS="$lt_save_ifs"
 
9399
      IFS=$lt_save_ifs
9354
9400
      ;;
9355
9401
    esac
9356
9402
else
9374
9420
    *)
9375
9421
      pic_mode=default
9376
9422
      # Look at the argument we got.  We use all the common list separators.
9377
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9423
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9378
9424
      for lt_pkg in $withval; do
9379
 
        IFS="$lt_save_ifs"
 
9425
        IFS=$lt_save_ifs
9380
9426
        if test "X$lt_pkg" = "X$lt_p"; then
9381
9427
          pic_mode=yes
9382
9428
        fi
9383
9429
      done
9384
 
      IFS="$lt_save_ifs"
 
9430
      IFS=$lt_save_ifs
9385
9431
      ;;
9386
9432
    esac
9387
9433
else
9389
9435
fi
9390
9436
 
9391
9437
 
9392
 
test -z "$pic_mode" && pic_mode=default
9393
 
 
9394
9438
 
9395
9439
 
9396
9440
 
9406
9450
    *)
9407
9451
      enable_fast_install=no
9408
9452
      # Look at the argument we got.  We use all the common list separators.
9409
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9453
      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9410
9454
      for pkg in $enableval; do
9411
 
        IFS="$lt_save_ifs"
 
9455
        IFS=$lt_save_ifs
9412
9456
        if test "X$pkg" = "X$p"; then
9413
9457
          enable_fast_install=yes
9414
9458
        fi
9415
9459
      done
9416
 
      IFS="$lt_save_ifs"
 
9460
      IFS=$lt_save_ifs
9417
9461
      ;;
9418
9462
    esac
9419
9463
else
9431
9475
 
9432
9476
 
9433
9477
# This can be used to rebuild libtool when needed
9434
 
LIBTOOL_DEPS="$ltmain"
 
9478
LIBTOOL_DEPS=$ltmain
9435
9479
 
9436
9480
# Always use our own libtool.
9437
9481
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9480
9524
 
9481
9525
 
9482
9526
 
9483
 
if test -n "${ZSH_VERSION+set}" ; then
 
9527
if test -n "${ZSH_VERSION+set}"; then
9484
9528
   setopt NO_GLOB_SUBST
9485
9529
fi
9486
9530
 
9519
9563
  # AIX sometimes has problems with the GCC collect2 program.  For some
9520
9564
  # reason, if we set the COLLECT_NAMES environment variable, the problems
9521
9565
  # vanish in a puff of smoke.
9522
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
9566
  if test set != "${COLLECT_NAMES+set}"; then
9523
9567
    COLLECT_NAMES=
9524
9568
    export COLLECT_NAMES
9525
9569
  fi
9530
9574
ofile=libtool
9531
9575
can_build_shared=yes
9532
9576
 
9533
 
# All known linkers require a `.a' archive for static linking (except MSVC,
 
9577
# All known linkers require a '.a' archive for static linking (except MSVC,
9534
9578
# which needs '.lib').
9535
9579
libext=a
9536
9580
 
9537
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
9581
with_gnu_ld=$lt_cv_prog_gnu_ld
9538
9582
 
9539
 
old_CC="$CC"
9540
 
old_CFLAGS="$CFLAGS"
 
9583
old_CC=$CC
 
9584
old_CFLAGS=$CFLAGS
9541
9585
 
9542
9586
# Set sane defaults for various variables
9543
9587
test -z "$CC" && CC=cc
9569
9613
else
9570
9614
  case $MAGIC_CMD in
9571
9615
[\\/*] |  ?:[\\/]*)
9572
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9616
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9573
9617
  ;;
9574
9618
*)
9575
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
9576
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9619
  lt_save_MAGIC_CMD=$MAGIC_CMD
 
9620
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9577
9621
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9578
9622
  for ac_dir in $ac_dummy; do
9579
 
    IFS="$lt_save_ifs"
 
9623
    IFS=$lt_save_ifs
9580
9624
    test -z "$ac_dir" && ac_dir=.
9581
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
9582
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
9625
    if test -f "$ac_dir/${ac_tool_prefix}file"; then
 
9626
      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9583
9627
      if test -n "$file_magic_test_file"; then
9584
9628
        case $deplibs_check_method in
9585
9629
        "file_magic "*)
9586
9630
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9587
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9631
          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9588
9632
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9589
9633
            $EGREP "$file_magic_regex" > /dev/null; then
9590
9634
            :
9607
9651
      break
9608
9652
    fi
9609
9653
  done
9610
 
  IFS="$lt_save_ifs"
9611
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9654
  IFS=$lt_save_ifs
 
9655
  MAGIC_CMD=$lt_save_MAGIC_CMD
9612
9656
  ;;
9613
9657
esac
9614
9658
fi
9615
9659
 
9616
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9660
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9617
9661
if test -n "$MAGIC_CMD"; then
9618
9662
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9619
9663
$as_echo "$MAGIC_CMD" >&6; }
9635
9679
else
9636
9680
  case $MAGIC_CMD in
9637
9681
[\\/*] |  ?:[\\/]*)
9638
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9682
  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9639
9683
  ;;
9640
9684
*)
9641
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
9642
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9685
  lt_save_MAGIC_CMD=$MAGIC_CMD
 
9686
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9643
9687
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9644
9688
  for ac_dir in $ac_dummy; do
9645
 
    IFS="$lt_save_ifs"
 
9689
    IFS=$lt_save_ifs
9646
9690
    test -z "$ac_dir" && ac_dir=.
9647
 
    if test -f $ac_dir/file; then
9648
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
9691
    if test -f "$ac_dir/file"; then
 
9692
      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9649
9693
      if test -n "$file_magic_test_file"; then
9650
9694
        case $deplibs_check_method in
9651
9695
        "file_magic "*)
9652
9696
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9653
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9697
          MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9654
9698
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9655
9699
            $EGREP "$file_magic_regex" > /dev/null; then
9656
9700
            :
9673
9717
      break
9674
9718
    fi
9675
9719
  done
9676
 
  IFS="$lt_save_ifs"
9677
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9720
  IFS=$lt_save_ifs
 
9721
  MAGIC_CMD=$lt_save_MAGIC_CMD
9678
9722
  ;;
9679
9723
esac
9680
9724
fi
9681
9725
 
9682
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9726
MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9683
9727
if test -n "$MAGIC_CMD"; then
9684
9728
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9685
9729
$as_echo "$MAGIC_CMD" >&6; }
9700
9744
 
9701
9745
# Use C for the default configuration in the libtool script
9702
9746
 
9703
 
lt_save_CC="$CC"
 
9747
lt_save_CC=$CC
9704
9748
ac_ext=c
9705
9749
ac_cpp='$CPP $CPPFLAGS'
9706
9750
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9762
9806
 
9763
9807
lt_prog_compiler_no_builtin_flag=
9764
9808
 
9765
 
if test "$GCC" = yes; then
 
9809
if test yes = "$GCC"; then
9766
9810
  case $cc_basename in
9767
9811
  nvcc*)
9768
9812
    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9778
9822
  lt_cv_prog_compiler_rtti_exceptions=no
9779
9823
   ac_outfile=conftest.$ac_objext
9780
9824
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9781
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
9825
   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9782
9826
   # Insert the option either (1) after the last *FLAGS variable, or
9783
9827
   # (2) before a word containing "conftest.", or (3) at the end.
9784
9828
   # Note that $ac_compile itself does not contain backslashes and begins
9808
9852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9809
9853
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9810
9854
 
9811
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
9855
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9812
9856
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9813
9857
else
9814
9858
    :
9826
9870
lt_prog_compiler_static=
9827
9871
 
9828
9872
 
9829
 
  if test "$GCC" = yes; then
 
9873
  if test yes = "$GCC"; then
9830
9874
    lt_prog_compiler_wl='-Wl,'
9831
9875
    lt_prog_compiler_static='-static'
9832
9876
 
9833
9877
    case $host_os in
9834
9878
      aix*)
9835
9879
      # All AIX code is PIC.
9836
 
      if test "$host_cpu" = ia64; then
 
9880
      if test ia64 = "$host_cpu"; then
9837
9881
        # AIX 5 now supports IA64 processor
9838
9882
        lt_prog_compiler_static='-Bstatic'
9839
9883
      fi
 
9884
      lt_prog_compiler_pic='-fPIC'
9840
9885
      ;;
9841
9886
 
9842
9887
    amigaos*)
9847
9892
        ;;
9848
9893
      m68k)
9849
9894
            # FIXME: we need at least 68020 code to build shared libraries, but
9850
 
            # adding the `-m68020' flag to GCC prevents building anything better,
9851
 
            # like `-m68040'.
 
9895
            # adding the '-m68020' flag to GCC prevents building anything better,
 
9896
            # like '-m68040'.
9852
9897
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9853
9898
        ;;
9854
9899
      esac
9934
9979
    case $host_os in
9935
9980
    aix*)
9936
9981
      lt_prog_compiler_wl='-Wl,'
9937
 
      if test "$host_cpu" = ia64; then
 
9982
      if test ia64 = "$host_cpu"; then
9938
9983
        # AIX 5 now supports IA64 processor
9939
9984
        lt_prog_compiler_static='-Bstatic'
9940
9985
      else
9942
9987
      fi
9943
9988
      ;;
9944
9989
 
 
9990
    darwin* | rhapsody*)
 
9991
      # PIC is the default on this platform
 
9992
      # Common symbols not allowed in MH_DYLIB files
 
9993
      lt_prog_compiler_pic='-fno-common'
 
9994
      case $cc_basename in
 
9995
      nagfor*)
 
9996
        # NAG Fortran compiler
 
9997
        lt_prog_compiler_wl='-Wl,-Wl,,'
 
9998
        lt_prog_compiler_pic='-PIC'
 
9999
        lt_prog_compiler_static='-Bstatic'
 
10000
        ;;
 
10001
      esac
 
10002
      ;;
 
10003
 
9945
10004
    mingw* | cygwin* | pw32* | os2* | cegcc*)
9946
10005
      # This hack is so that the source file can tell whether it is being
9947
10006
      # built for inclusion in a dll (and should export symbols for example).
9961
10020
        ;;
9962
10021
      esac
9963
10022
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9964
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
10023
      lt_prog_compiler_static='$wl-a ${wl}archive'
9965
10024
      ;;
9966
10025
 
9967
10026
    irix5* | irix6* | nonstopux*)
9972
10031
 
9973
10032
    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9974
10033
      case $cc_basename in
9975
 
      # old Intel for x86_64 which still supported -KPIC.
 
10034
      # old Intel for x86_64, which still supported -KPIC.
9976
10035
      ecc*)
9977
10036
        lt_prog_compiler_wl='-Wl,'
9978
10037
        lt_prog_compiler_pic='-KPIC'
9997
10056
        lt_prog_compiler_pic='-PIC'
9998
10057
        lt_prog_compiler_static='-Bstatic'
9999
10058
        ;;
 
10059
      tcc*)
 
10060
        # Fabrice Bellard et al's Tiny C Compiler
 
10061
        lt_prog_compiler_wl='-Wl,'
 
10062
        lt_prog_compiler_pic='-fPIC'
 
10063
        lt_prog_compiler_static='-static'
 
10064
        ;;
10000
10065
      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10001
10066
        # Portland Group compilers (*not* the Pentium gcc compiler,
10002
10067
        # which looks to be a dead project)
10094
10159
      ;;
10095
10160
 
10096
10161
    sysv4*MP*)
10097
 
      if test -d /usr/nec ;then
 
10162
      if test -d /usr/nec; then
10098
10163
        lt_prog_compiler_pic='-Kconform_pic'
10099
10164
        lt_prog_compiler_static='-Bstatic'
10100
10165
      fi
10123
10188
  fi
10124
10189
 
10125
10190
case $host_os in
10126
 
  # For platforms which do not support PIC, -DPIC is meaningless:
 
10191
  # For platforms that do not support PIC, -DPIC is meaningless:
10127
10192
  *djgpp*)
10128
10193
    lt_prog_compiler_pic=
10129
10194
    ;;
10155
10220
  lt_cv_prog_compiler_pic_works=no
10156
10221
   ac_outfile=conftest.$ac_objext
10157
10222
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10158
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
10223
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10159
10224
   # Insert the option either (1) after the last *FLAGS variable, or
10160
10225
   # (2) before a word containing "conftest.", or (3) at the end.
10161
10226
   # Note that $ac_compile itself does not contain backslashes and begins
10185
10250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10186
10251
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10187
10252
 
10188
 
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
10253
if test yes = "$lt_cv_prog_compiler_pic_works"; then
10189
10254
    case $lt_prog_compiler_pic in
10190
10255
     "" | " "*) ;;
10191
10256
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10217
10282
  $as_echo_n "(cached) " >&6
10218
10283
else
10219
10284
  lt_cv_prog_compiler_static_works=no
10220
 
   save_LDFLAGS="$LDFLAGS"
 
10285
   save_LDFLAGS=$LDFLAGS
10221
10286
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10222
10287
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10223
10288
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10236
10301
     fi
10237
10302
   fi
10238
10303
   $RM -r conftest*
10239
 
   LDFLAGS="$save_LDFLAGS"
 
10304
   LDFLAGS=$save_LDFLAGS
10240
10305
 
10241
10306
fi
10242
10307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10243
10308
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10244
10309
 
10245
 
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
10310
if test yes = "$lt_cv_prog_compiler_static_works"; then
10246
10311
    :
10247
10312
else
10248
10313
    lt_prog_compiler_static=
10362
10427
 
10363
10428
 
10364
10429
 
10365
 
hard_links="nottested"
10366
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
10430
hard_links=nottested
 
10431
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10367
10432
  # do not overwrite the value of need_locks provided by the user
10368
10433
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10369
10434
$as_echo_n "checking if we can lock with hard links... " >&6; }
10375
10440
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10376
10441
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10377
10442
$as_echo "$hard_links" >&6; }
10378
 
  if test "$hard_links" = no; then
10379
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10380
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
10443
  if test no = "$hard_links"; then
 
10444
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
 
10445
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10381
10446
    need_locks=warn
10382
10447
  fi
10383
10448
else
10420
10485
  # included in the symbol list
10421
10486
  include_expsyms=
10422
10487
  # exclude_expsyms can be an extended regexp of symbols to exclude
10423
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10424
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10425
 
  # as well as any symbol that contains `d'.
 
10488
  # it will be wrapped by ' (' and ')$', so one must not match beginning or
 
10489
  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
 
10490
  # as well as any symbol that contains 'd'.
10426
10491
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10427
10492
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10428
10493
  # platforms (ab)use it in PIC code, but their linkers get confused if
10437
10502
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10438
10503
    # When not using gcc, we currently assume that we are using
10439
10504
    # Microsoft Visual C++.
10440
 
    if test "$GCC" != yes; then
 
10505
    if test yes != "$GCC"; then
10441
10506
      with_gnu_ld=no
10442
10507
    fi
10443
10508
    ;;
10445
10510
    # we just hope/assume this is gcc and not c89 (= MSVC++)
10446
10511
    with_gnu_ld=yes
10447
10512
    ;;
10448
 
  openbsd*)
 
10513
  openbsd* | bitrig*)
10449
10514
    with_gnu_ld=no
10450
10515
    ;;
10451
 
  linux* | k*bsd*-gnu | gnu*)
10452
 
    link_all_deplibs=no
10453
 
    ;;
10454
10516
  esac
10455
10517
 
10456
10518
  ld_shlibs=yes
10458
10520
  # On some targets, GNU ld is compatible enough with the native linker
10459
10521
  # that we're better off using the native interface for both.
10460
10522
  lt_use_gnu_ld_interface=no
10461
 
  if test "$with_gnu_ld" = yes; then
 
10523
  if test yes = "$with_gnu_ld"; then
10462
10524
    case $host_os in
10463
10525
      aix*)
10464
10526
        # The AIX port of GNU ld has always aspired to compatibility
10480
10542
    esac
10481
10543
  fi
10482
10544
 
10483
 
  if test "$lt_use_gnu_ld_interface" = yes; then
 
10545
  if test yes = "$lt_use_gnu_ld_interface"; then
10484
10546
    # If archive_cmds runs LD, not CC, wlarc should be empty
10485
 
    wlarc='${wl}'
 
10547
    wlarc='$wl'
10486
10548
 
10487
10549
    # Set some defaults for GNU ld with shared library support. These
10488
10550
    # are reset later if shared libraries are not supported. Putting them
10489
10551
    # here allows them to be overridden if necessary.
10490
10552
    runpath_var=LD_RUN_PATH
10491
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10492
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
10553
    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10554
    export_dynamic_flag_spec='$wl--export-dynamic'
10493
10555
    # ancient GNU ld didn't support --whole-archive et. al.
10494
10556
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10495
 
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10557
      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10496
10558
    else
10497
10559
      whole_archive_flag_spec=
10498
10560
    fi
10499
10561
    supports_anon_versioning=no
10500
 
    case `$LD -v 2>&1` in
 
10562
    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10501
10563
      *GNU\ gold*) supports_anon_versioning=yes ;;
10502
10564
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10503
10565
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10510
10572
    case $host_os in
10511
10573
    aix[3-9]*)
10512
10574
      # On AIX/PPC, the GNU linker is very broken
10513
 
      if test "$host_cpu" != ia64; then
 
10575
      if test ia64 != "$host_cpu"; then
10514
10576
        ld_shlibs=no
10515
10577
        cat <<_LT_EOF 1>&2
10516
10578
 
10529
10591
      case $host_cpu in
10530
10592
      powerpc)
10531
10593
            # see comment about AmigaOS4 .so support
10532
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10594
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10533
10595
            archive_expsym_cmds=''
10534
10596
        ;;
10535
10597
      m68k)
10545
10607
        allow_undefined_flag=unsupported
10546
10608
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10547
10609
        # support --undefined.  This deserves some investigation.  FIXME
10548
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10610
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10549
10611
      else
10550
10612
        ld_shlibs=no
10551
10613
      fi
10555
10617
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10556
10618
      # as there is no search path for DLLs.
10557
10619
      hardcode_libdir_flag_spec='-L$libdir'
10558
 
      export_dynamic_flag_spec='${wl}--export-all-symbols'
 
10620
      export_dynamic_flag_spec='$wl--export-all-symbols'
10559
10621
      allow_undefined_flag=unsupported
10560
10622
      always_export_symbols=no
10561
10623
      enable_shared_with_static_runtimes=yes
10563
10625
      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10564
10626
 
10565
10627
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10566
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10567
 
        # If the export-symbols file already is a .def file (1st line
10568
 
        # is EXPORTS), use it as is; otherwise, prepend...
10569
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10570
 
          cp $export_symbols $output_objdir/$soname.def;
10571
 
        else
10572
 
          echo EXPORTS > $output_objdir/$soname.def;
10573
 
          cat $export_symbols >> $output_objdir/$soname.def;
10574
 
        fi~
10575
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10628
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10629
        # If the export-symbols file already is a .def file, use it as
 
10630
        # is; otherwise, prepend EXPORTS...
 
10631
        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 
10632
          cp $export_symbols $output_objdir/$soname.def;
 
10633
        else
 
10634
          echo EXPORTS > $output_objdir/$soname.def;
 
10635
          cat $export_symbols >> $output_objdir/$soname.def;
 
10636
        fi~
 
10637
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10576
10638
      else
10577
10639
        ld_shlibs=no
10578
10640
      fi
10579
10641
      ;;
10580
10642
 
10581
10643
    haiku*)
10582
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10644
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10583
10645
      link_all_deplibs=yes
10584
10646
      ;;
10585
10647
 
10586
10648
    interix[3-9]*)
10587
10649
      hardcode_direct=no
10588
10650
      hardcode_shlibpath_var=no
10589
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10590
 
      export_dynamic_flag_spec='${wl}-E'
 
10651
      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 
10652
      export_dynamic_flag_spec='$wl-E'
10591
10653
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10592
10654
      # Instead, shared libraries are loaded at an image base (0x10000000 by
10593
10655
      # default) and relocated if they conflict, which is a slow very memory
10594
10656
      # consuming and fragmenting process.  To avoid this, we pick a random,
10595
10657
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10596
10658
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10597
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10598
 
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10659
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10660
      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10599
10661
      ;;
10600
10662
 
10601
10663
    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10602
10664
      tmp_diet=no
10603
 
      if test "$host_os" = linux-dietlibc; then
 
10665
      if test linux-dietlibc = "$host_os"; then
10604
10666
        case $cc_basename in
10605
10667
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10606
10668
        esac
10607
10669
      fi
10608
10670
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10609
 
         && test "$tmp_diet" = no
 
10671
         && test no = "$tmp_diet"
10610
10672
      then
10611
10673
        tmp_addflag=' $pic_flag'
10612
10674
        tmp_sharedflag='-shared'
10613
10675
        case $cc_basename,$host_cpu in
10614
10676
        pgcc*)                          # Portland Group C compiler
10615
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
10677
          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10616
10678
          tmp_addflag=' $pic_flag'
10617
10679
          ;;
10618
10680
        pgf77* | pgf90* | pgf95* | pgfortran*)
10619
10681
                                        # Portland Group f77 and f90 compilers
10620
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
10682
          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10621
10683
          tmp_addflag=' $pic_flag -Mnomain' ;;
10622
10684
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10623
10685
          tmp_addflag=' -i_dynamic' ;;
10628
10690
        lf95*)                          # Lahey Fortran 8.1
10629
10691
          whole_archive_flag_spec=
10630
10692
          tmp_sharedflag='--shared' ;;
 
10693
        nagfor*)                        # NAGFOR 5.3
 
10694
          tmp_sharedflag='-Wl,-shared' ;;
10631
10695
        xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10632
10696
          tmp_sharedflag='-qmkshrobj'
10633
10697
          tmp_addflag= ;;
10634
10698
        nvcc*)  # Cuda Compiler Driver 2.2
10635
 
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
10699
          whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10636
10700
          compiler_needs_object=yes
10637
10701
          ;;
10638
10702
        esac
10639
10703
        case `$CC -V 2>&1 | sed 5q` in
10640
10704
        *Sun\ C*)                       # Sun C 5.9
10641
 
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
10705
          whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10642
10706
          compiler_needs_object=yes
10643
10707
          tmp_sharedflag='-G' ;;
10644
10708
        *Sun\ F*)                       # Sun Fortran 8.3
10645
10709
          tmp_sharedflag='-G' ;;
10646
10710
        esac
10647
 
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10711
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10648
10712
 
10649
 
        if test "x$supports_anon_versioning" = xyes; then
 
10713
        if test yes = "$supports_anon_versioning"; then
10650
10714
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10651
 
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10652
 
            echo "local: *; };" >> $output_objdir/$libname.ver~
10653
 
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
10715
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10716
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
10717
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10654
10718
        fi
10655
10719
 
10656
10720
        case $cc_basename in
10657
10721
        xlf* | bgf* | bgxlf* | mpixlf*)
10658
10722
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10659
10723
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10660
 
          hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10724
          hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10661
10725
          archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10662
 
          if test "x$supports_anon_versioning" = xyes; then
 
10726
          if test yes = "$supports_anon_versioning"; then
10663
10727
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10664
 
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10665
 
              echo "local: *; };" >> $output_objdir/$libname.ver~
10666
 
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
10728
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10729
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
10730
              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10667
10731
          fi
10668
10732
          ;;
10669
10733
        esac
10672
10736
      fi
10673
10737
      ;;
10674
10738
 
10675
 
    netbsd* | netbsdelf*-gnu)
 
10739
    netbsd*)
10676
10740
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10677
10741
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10678
10742
        wlarc=
10679
10743
      else
10680
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10681
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10744
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10745
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10682
10746
      fi
10683
10747
      ;;
10684
10748
 
10696
10760
 
10697
10761
_LT_EOF
10698
10762
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10699
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10700
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10763
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10764
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10701
10765
      else
10702
10766
        ld_shlibs=no
10703
10767
      fi
10709
10773
        ld_shlibs=no
10710
10774
        cat <<_LT_EOF 1>&2
10711
10775
 
10712
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
10776
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10713
10777
*** reliably create shared libraries on SCO systems.  Therefore, libtool
10714
10778
*** is disabling shared libraries support.  We urge you to upgrade GNU
10715
10779
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10724
10788
          # DT_RUNPATH tag from executables and libraries.  But doing so
10725
10789
          # requires that you compile everything twice, which is a pain.
10726
10790
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10727
 
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10728
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10729
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10791
            hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
 
10792
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10793
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10730
10794
          else
10731
10795
            ld_shlibs=no
10732
10796
          fi
10743
10807
 
10744
10808
    *)
10745
10809
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10746
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10747
 
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10810
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
10811
        archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10748
10812
      else
10749
10813
        ld_shlibs=no
10750
10814
      fi
10751
10815
      ;;
10752
10816
    esac
10753
10817
 
10754
 
    if test "$ld_shlibs" = no; then
 
10818
    if test no = "$ld_shlibs"; then
10755
10819
      runpath_var=
10756
10820
      hardcode_libdir_flag_spec=
10757
10821
      export_dynamic_flag_spec=
10767
10831
      # Note: this linker hardcodes the directories in LIBPATH if there
10768
10832
      # are no directories specified by -L.
10769
10833
      hardcode_minus_L=yes
10770
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
10834
      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10771
10835
        # Neither direct hardcoding nor static linking is supported with a
10772
10836
        # broken collect2.
10773
10837
        hardcode_direct=unsupported
10775
10839
      ;;
10776
10840
 
10777
10841
    aix[4-9]*)
10778
 
      if test "$host_cpu" = ia64; then
 
10842
      if test ia64 = "$host_cpu"; then
10779
10843
        # On IA64, the linker does run time linking by default, so we don't
10780
10844
        # have to do anything special.
10781
10845
        aix_use_runtimelinking=no
10782
10846
        exp_sym_flag='-Bexport'
10783
 
        no_entry_flag=""
 
10847
        no_entry_flag=
10784
10848
      else
10785
10849
        # If we're using GNU nm, then we don't want the "-C" option.
10786
10850
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
10798
10862
        # need to do runtime linking.
10799
10863
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10800
10864
          for ld_flag in $LDFLAGS; do
10801
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
10865
          if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10802
10866
            aix_use_runtimelinking=yes
10803
10867
            break
10804
10868
          fi
10821
10885
      hardcode_direct_absolute=yes
10822
10886
      hardcode_libdir_separator=':'
10823
10887
      link_all_deplibs=yes
10824
 
      file_list_spec='${wl}-f,'
 
10888
      file_list_spec='$wl-f,'
10825
10889
 
10826
 
      if test "$GCC" = yes; then
 
10890
      if test yes = "$GCC"; then
10827
10891
        case $host_os in aix4.[012]|aix4.[012].*)
10828
10892
        # We only want to do this on AIX 4.2 and lower, the check
10829
10893
        # below for broken collect2 doesn't work under 4.3+
10830
 
          collect2name=`${CC} -print-prog-name=collect2`
 
10894
          collect2name=`$CC -print-prog-name=collect2`
10831
10895
          if test -f "$collect2name" &&
10832
10896
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10833
10897
          then
10846
10910
          ;;
10847
10911
        esac
10848
10912
        shared_flag='-shared'
10849
 
        if test "$aix_use_runtimelinking" = yes; then
10850
 
          shared_flag="$shared_flag "'${wl}-G'
 
10913
        if test yes = "$aix_use_runtimelinking"; then
 
10914
          shared_flag="$shared_flag "'$wl-G'
10851
10915
        fi
10852
 
        link_all_deplibs=no
10853
10916
      else
10854
10917
        # not using gcc
10855
 
        if test "$host_cpu" = ia64; then
 
10918
        if test ia64 = "$host_cpu"; then
10856
10919
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10857
10920
        # chokes on -Wl,-G. The following line is correct:
10858
10921
          shared_flag='-G'
10859
10922
        else
10860
 
          if test "$aix_use_runtimelinking" = yes; then
10861
 
            shared_flag='${wl}-G'
 
10923
          if test yes = "$aix_use_runtimelinking"; then
 
10924
            shared_flag='$wl-G'
10862
10925
          else
10863
 
            shared_flag='${wl}-bM:SRE'
 
10926
            shared_flag='$wl-bM:SRE'
10864
10927
          fi
10865
10928
        fi
10866
10929
      fi
10867
10930
 
10868
 
      export_dynamic_flag_spec='${wl}-bexpall'
 
10931
      export_dynamic_flag_spec='$wl-bexpall'
10869
10932
      # It seems that -bexpall does not export symbols beginning with
10870
10933
      # underscore (_), so it is better to generate a list of symbols to export.
10871
10934
      always_export_symbols=yes
10872
 
      if test "$aix_use_runtimelinking" = yes; then
 
10935
      if test yes = "$aix_use_runtimelinking"; then
10873
10936
        # Warning - without using the other runtime loading flags (-brtl),
10874
10937
        # -berok will link without error, but may produce a broken library.
10875
10938
        allow_undefined_flag='-berok'
10876
10939
        # Determine the default libpath from the value encoded in an
10877
10940
        # empty executable.
10878
 
        if test "${lt_cv_aix_libpath+set}" = set; then
 
10941
        if test set = "${lt_cv_aix_libpath+set}"; then
10879
10942
  aix_libpath=$lt_cv_aix_libpath
10880
10943
else
10881
10944
  if ${lt_cv_aix_libpath_+:} false; then :
10910
10973
rm -f core conftest.err conftest.$ac_objext \
10911
10974
    conftest$ac_exeext conftest.$ac_ext
10912
10975
  if test -z "$lt_cv_aix_libpath_"; then
10913
 
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
10976
    lt_cv_aix_libpath_=/usr/lib:/lib
10914
10977
  fi
10915
10978
 
10916
10979
fi
10918
10981
  aix_libpath=$lt_cv_aix_libpath_
10919
10982
fi
10920
10983
 
10921
 
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10922
 
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10984
        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
 
10985
        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10923
10986
      else
10924
 
        if test "$host_cpu" = ia64; then
10925
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
10987
        if test ia64 = "$host_cpu"; then
 
10988
          hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10926
10989
          allow_undefined_flag="-z nodefs"
10927
 
          archive_expsym_cmds="\$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"
 
10990
          archive_expsym_cmds="\$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"
10928
10991
        else
10929
10992
         # Determine the default libpath from the value encoded in an
10930
10993
         # empty executable.
10931
 
         if test "${lt_cv_aix_libpath+set}" = set; then
 
10994
         if test set = "${lt_cv_aix_libpath+set}"; then
10932
10995
  aix_libpath=$lt_cv_aix_libpath
10933
10996
else
10934
10997
  if ${lt_cv_aix_libpath_+:} false; then :
10963
11026
rm -f core conftest.err conftest.$ac_objext \
10964
11027
    conftest$ac_exeext conftest.$ac_ext
10965
11028
  if test -z "$lt_cv_aix_libpath_"; then
10966
 
    lt_cv_aix_libpath_="/usr/lib:/lib"
 
11029
    lt_cv_aix_libpath_=/usr/lib:/lib
10967
11030
  fi
10968
11031
 
10969
11032
fi
10971
11034
  aix_libpath=$lt_cv_aix_libpath_
10972
11035
fi
10973
11036
 
10974
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11037
         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10975
11038
          # Warning - without using the other run time loading flags,
10976
11039
          # -berok will link without error, but may produce a broken library.
10977
 
          no_undefined_flag=' ${wl}-bernotok'
10978
 
          allow_undefined_flag=' ${wl}-berok'
10979
 
          if test "$with_gnu_ld" = yes; then
 
11040
          no_undefined_flag=' $wl-bernotok'
 
11041
          allow_undefined_flag=' $wl-berok'
 
11042
          if test yes = "$with_gnu_ld"; then
10980
11043
            # We only use this code for GNU lds that support --whole-archive.
10981
 
            whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11044
            whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10982
11045
          else
10983
11046
            # Exported symbols can be pulled into shared objects from archives
10984
11047
            whole_archive_flag_spec='$convenience'
10985
11048
          fi
10986
11049
          archive_cmds_need_lc=yes
10987
11050
          # This is similar to how AIX traditionally builds its shared libraries.
10988
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11051
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $wl-bnoentry $compiler_flags $wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10989
11052
        fi
10990
11053
      fi
10991
11054
      ;;
10994
11057
      case $host_cpu in
10995
11058
      powerpc)
10996
11059
            # see comment about AmigaOS4 .so support
10997
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11060
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10998
11061
            archive_expsym_cmds=''
10999
11062
        ;;
11000
11063
      m68k)
11024
11087
        # Tell ltmain to make .lib files, not .a files.
11025
11088
        libext=lib
11026
11089
        # Tell ltmain to make .dll files, not .so files.
11027
 
        shrext_cmds=".dll"
 
11090
        shrext_cmds=.dll
11028
11091
        # FIXME: Setting linknames here is a bad hack.
11029
 
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11030
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11031
 
            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11032
 
          else
11033
 
            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11034
 
          fi~
11035
 
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11036
 
          linknames='
 
11092
        archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 
11093
        archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 
11094
            cp "$export_symbols" "$output_objdir/$soname.def";
 
11095
            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 
11096
          else
 
11097
            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 
11098
          fi~
 
11099
          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
11100
          linknames='
11037
11101
        # The linker will not automatically build a static lib if we build a DLL.
11038
11102
        # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11039
11103
        enable_shared_with_static_runtimes=yes
11042
11106
        # Don't use ranlib
11043
11107
        old_postinstall_cmds='chmod 644 $oldlib'
11044
11108
        postlink_cmds='lt_outputfile="@OUTPUT@"~
11045
 
          lt_tool_outputfile="@TOOL_OUTPUT@"~
11046
 
          case $lt_outputfile in
11047
 
            *.exe|*.EXE) ;;
11048
 
            *)
11049
 
              lt_outputfile="$lt_outputfile.exe"
11050
 
              lt_tool_outputfile="$lt_tool_outputfile.exe"
11051
 
              ;;
11052
 
          esac~
11053
 
          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11054
 
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11055
 
            $RM "$lt_outputfile.manifest";
11056
 
          fi'
 
11109
          lt_tool_outputfile="@TOOL_OUTPUT@"~
 
11110
          case $lt_outputfile in
 
11111
            *.exe|*.EXE) ;;
 
11112
            *)
 
11113
              lt_outputfile=$lt_outputfile.exe
 
11114
              lt_tool_outputfile=$lt_tool_outputfile.exe
 
11115
              ;;
 
11116
          esac~
 
11117
          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 
11118
            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
11119
            $RM "$lt_outputfile.manifest";
 
11120
          fi'
11057
11121
        ;;
11058
11122
      *)
11059
11123
        # Assume MSVC wrapper
11062
11126
        # Tell ltmain to make .lib files, not .a files.
11063
11127
        libext=lib
11064
11128
        # Tell ltmain to make .dll files, not .so files.
11065
 
        shrext_cmds=".dll"
 
11129
        shrext_cmds=.dll
11066
11130
        # FIXME: Setting linknames here is a bad hack.
11067
11131
        archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11068
11132
        # The linker will automatically build a .lib file if we build a DLL.
11081
11145
  hardcode_direct=no
11082
11146
  hardcode_automatic=yes
11083
11147
  hardcode_shlibpath_var=unsupported
11084
 
  if test "$lt_cv_ld_force_load" = "yes"; then
11085
 
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
11148
  if test yes = "$lt_cv_ld_force_load"; then
 
11149
    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11086
11150
 
11087
11151
  else
11088
11152
    whole_archive_flag_spec=''
11089
11153
  fi
11090
11154
  link_all_deplibs=yes
11091
 
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
11155
  allow_undefined_flag=$_lt_dar_allow_undefined
11092
11156
  case $cc_basename in
11093
 
     ifort*) _lt_dar_can_shared=yes ;;
 
11157
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11094
11158
     *) _lt_dar_can_shared=$GCC ;;
11095
11159
  esac
11096
 
  if test "$_lt_dar_can_shared" = "yes"; then
 
11160
  if test yes = "$_lt_dar_can_shared"; then
11097
11161
    output_verbose_link_cmd=func_echo_all
11098
 
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11099
 
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11100
 
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11101
 
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
11162
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
 
11163
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
 
11164
    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
 
11165
    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11102
11166
 
11103
11167
  else
11104
11168
  ld_shlibs=no
11140
11204
      ;;
11141
11205
 
11142
11206
    hpux9*)
11143
 
      if test "$GCC" = yes; then
11144
 
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11207
      if test yes = "$GCC"; then
 
11208
        archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11145
11209
      else
11146
 
        archive_cmds='$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'
 
11210
        archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11147
11211
      fi
11148
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
11212
      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11149
11213
      hardcode_libdir_separator=:
11150
11214
      hardcode_direct=yes
11151
11215
 
11152
11216
      # hardcode_minus_L: Not really in the search PATH,
11153
11217
      # but as the default location of the library.
11154
11218
      hardcode_minus_L=yes
11155
 
      export_dynamic_flag_spec='${wl}-E'
 
11219
      export_dynamic_flag_spec='$wl-E'
11156
11220
      ;;
11157
11221
 
11158
11222
    hpux10*)
11159
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11160
 
        archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
11223
      if test yes,no = "$GCC,$with_gnu_ld"; then
 
11224
        archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11161
11225
      else
11162
11226
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11163
11227
      fi
11164
 
      if test "$with_gnu_ld" = no; then
11165
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
11228
      if test no = "$with_gnu_ld"; then
 
11229
        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11166
11230
        hardcode_libdir_separator=:
11167
11231
        hardcode_direct=yes
11168
11232
        hardcode_direct_absolute=yes
11169
 
        export_dynamic_flag_spec='${wl}-E'
 
11233
        export_dynamic_flag_spec='$wl-E'
11170
11234
        # hardcode_minus_L: Not really in the search PATH,
11171
11235
        # but as the default location of the library.
11172
11236
        hardcode_minus_L=yes
11174
11238
      ;;
11175
11239
 
11176
11240
    hpux11*)
11177
 
      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
 
11241
      if test yes,no = "$GCC,$with_gnu_ld"; then
11178
11242
        case $host_cpu in
11179
11243
        hppa*64*)
11180
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11244
          archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11181
11245
          ;;
11182
11246
        ia64*)
11183
 
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
11247
          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11184
11248
          ;;
11185
11249
        *)
11186
 
          archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
11250
          archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11187
11251
          ;;
11188
11252
        esac
11189
11253
      else
11190
11254
        case $host_cpu in
11191
11255
        hppa*64*)
11192
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11256
          archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11193
11257
          ;;
11194
11258
        ia64*)
11195
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
11259
          archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11196
11260
          ;;
11197
11261
        *)
11198
11262
 
11204
11268
  $as_echo_n "(cached) " >&6
11205
11269
else
11206
11270
  lt_cv_prog_compiler__b=no
11207
 
   save_LDFLAGS="$LDFLAGS"
 
11271
   save_LDFLAGS=$LDFLAGS
11208
11272
   LDFLAGS="$LDFLAGS -b"
11209
11273
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11210
11274
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11223
11287
     fi
11224
11288
   fi
11225
11289
   $RM -r conftest*
11226
 
   LDFLAGS="$save_LDFLAGS"
 
11290
   LDFLAGS=$save_LDFLAGS
11227
11291
 
11228
11292
fi
11229
11293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11230
11294
$as_echo "$lt_cv_prog_compiler__b" >&6; }
11231
11295
 
11232
 
if test x"$lt_cv_prog_compiler__b" = xyes; then
11233
 
    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
11296
if test yes = "$lt_cv_prog_compiler__b"; then
 
11297
    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11234
11298
else
11235
11299
    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11236
11300
fi
11238
11302
          ;;
11239
11303
        esac
11240
11304
      fi
11241
 
      if test "$with_gnu_ld" = no; then
11242
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
11305
      if test no = "$with_gnu_ld"; then
 
11306
        hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11243
11307
        hardcode_libdir_separator=:
11244
11308
 
11245
11309
        case $host_cpu in
11250
11314
        *)
11251
11315
          hardcode_direct=yes
11252
11316
          hardcode_direct_absolute=yes
11253
 
          export_dynamic_flag_spec='${wl}-E'
 
11317
          export_dynamic_flag_spec='$wl-E'
11254
11318
 
11255
11319
          # hardcode_minus_L: Not really in the search PATH,
11256
11320
          # but as the default location of the library.
11261
11325
      ;;
11262
11326
 
11263
11327
    irix5* | irix6* | nonstopux*)
11264
 
      if test "$GCC" = yes; then
11265
 
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11328
      if test yes = "$GCC"; then
 
11329
        archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11266
11330
        # Try to use the -exported_symbol ld option, if it does not
11267
11331
        # work, assume that -exports_file does not work either and
11268
11332
        # implicitly export all symbols.
11272
11336
if ${lt_cv_irix_exported_symbol+:} false; then :
11273
11337
  $as_echo_n "(cached) " >&6
11274
11338
else
11275
 
  save_LDFLAGS="$LDFLAGS"
11276
 
           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
11339
  save_LDFLAGS=$LDFLAGS
 
11340
           LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11277
11341
           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278
11342
/* end confdefs.h.  */
11279
11343
int foo (void) { return 0; }
11285
11349
fi
11286
11350
rm -f core conftest.err conftest.$ac_objext \
11287
11351
    conftest$ac_exeext conftest.$ac_ext
11288
 
           LDFLAGS="$save_LDFLAGS"
 
11352
           LDFLAGS=$save_LDFLAGS
11289
11353
fi
11290
11354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11291
11355
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11292
 
        if test "$lt_cv_irix_exported_symbol" = yes; then
11293
 
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
11356
        if test yes = "$lt_cv_irix_exported_symbol"; then
 
11357
          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11294
11358
        fi
11295
11359
      else
11296
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11297
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
11360
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
 
11361
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11298
11362
      fi
11299
11363
      archive_cmds_need_lc='no'
11300
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11364
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11301
11365
      hardcode_libdir_separator=:
11302
11366
      inherit_rpath=yes
11303
11367
      link_all_deplibs=yes
11304
11368
      ;;
11305
11369
 
11306
 
    netbsd* | netbsdelf*-gnu)
 
11370
    netbsd*)
11307
11371
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11308
11372
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11309
11373
      else
11317
11381
    newsos6)
11318
11382
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11319
11383
      hardcode_direct=yes
11320
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11384
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11321
11385
      hardcode_libdir_separator=:
11322
11386
      hardcode_shlibpath_var=no
11323
11387
      ;;
11325
11389
    *nto* | *qnx*)
11326
11390
      ;;
11327
11391
 
11328
 
    openbsd*)
 
11392
    openbsd* | bitrig*)
11329
11393
      if test -f /usr/libexec/ld.so; then
11330
11394
        hardcode_direct=yes
11331
11395
        hardcode_shlibpath_var=no
11332
11396
        hardcode_direct_absolute=yes
11333
 
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11397
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11334
11398
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11335
 
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11336
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11337
 
          export_dynamic_flag_spec='${wl}-E'
 
11399
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
 
11400
          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
 
11401
          export_dynamic_flag_spec='$wl-E'
11338
11402
        else
11339
 
          case $host_os in
11340
 
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11341
 
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11342
 
             hardcode_libdir_flag_spec='-R$libdir'
11343
 
             ;;
11344
 
           *)
11345
 
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11346
 
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11347
 
             ;;
11348
 
          esac
 
11403
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
11404
          hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11349
11405
        fi
11350
11406
      else
11351
11407
        ld_shlibs=no
11361
11417
      ;;
11362
11418
 
11363
11419
    osf3*)
11364
 
      if test "$GCC" = yes; then
11365
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11366
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11420
      if test yes = "$GCC"; then
 
11421
        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
 
11422
        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11367
11423
      else
11368
11424
        allow_undefined_flag=' -expect_unresolved \*'
11369
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
11425
        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11370
11426
      fi
11371
11427
      archive_cmds_need_lc='no'
11372
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11428
      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11373
11429
      hardcode_libdir_separator=:
11374
11430
      ;;
11375
11431
 
11376
11432
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
11377
 
      if test "$GCC" = yes; then
11378
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11379
 
        archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11380
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
11433
      if test yes = "$GCC"; then
 
11434
        allow_undefined_flag=' $wl-expect_unresolved $wl\*'
 
11435
        archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
 
11436
        hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11381
11437
      else
11382
11438
        allow_undefined_flag=' -expect_unresolved \*'
11383
 
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
11439
        archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11384
11440
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11385
 
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
11441
          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11386
11442
 
11387
11443
        # Both c and cxx compiler support -rpath directly
11388
11444
        hardcode_libdir_flag_spec='-rpath $libdir'
11393
11449
 
11394
11450
    solaris*)
11395
11451
      no_undefined_flag=' -z defs'
11396
 
      if test "$GCC" = yes; then
11397
 
        wlarc='${wl}'
11398
 
        archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11452
      if test yes = "$GCC"; then
 
11453
        wlarc='$wl'
 
11454
        archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11399
11455
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11400
 
          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
11456
          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11401
11457
      else
11402
11458
        case `$CC -V 2>&1` in
11403
11459
        *"Compilers 5.0"*)
11404
11460
          wlarc=''
11405
 
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11461
          archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11406
11462
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11407
 
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
11463
            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11408
11464
          ;;
11409
11465
        *)
11410
 
          wlarc='${wl}'
11411
 
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
11466
          wlarc='$wl'
 
11467
          archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11412
11468
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11413
 
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
11469
            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11414
11470
          ;;
11415
11471
        esac
11416
11472
      fi
11420
11476
      solaris2.[0-5] | solaris2.[0-5].*) ;;
11421
11477
      *)
11422
11478
        # The compiler driver will combine and reorder linker options,
11423
 
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
11479
        # but understands '-z linker_flag'.  GCC discards it without '$wl',
11424
11480
        # but is careful enough not to reorder.
11425
11481
        # Supported since Solaris 2.6 (maybe 2.5.1?)
11426
 
        if test "$GCC" = yes; then
11427
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11482
        if test yes = "$GCC"; then
 
11483
          whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11428
11484
        else
11429
11485
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11430
11486
        fi
11434
11490
      ;;
11435
11491
 
11436
11492
    sunos4*)
11437
 
      if test "x$host_vendor" = xsequent; then
 
11493
      if test sequent = "$host_vendor"; then
11438
11494
        # Use $CC to link under sequent, because it throws in some extra .o
11439
11495
        # files that make .init and .fini sections work.
11440
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
11496
        archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11441
11497
      else
11442
11498
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11443
11499
      fi
11486
11542
      ;;
11487
11543
 
11488
11544
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11489
 
      no_undefined_flag='${wl}-z,text'
 
11545
      no_undefined_flag='$wl-z,text'
11490
11546
      archive_cmds_need_lc=no
11491
11547
      hardcode_shlibpath_var=no
11492
11548
      runpath_var='LD_RUN_PATH'
11493
11549
 
11494
 
      if test "$GCC" = yes; then
11495
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11496
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11550
      if test yes = "$GCC"; then
 
11551
        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11552
        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11497
11553
      else
11498
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11499
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11554
        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11555
        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11500
11556
      fi
11501
11557
      ;;
11502
11558
 
11503
11559
    sysv5* | sco3.2v5* | sco5v6*)
11504
 
      # Note: We can NOT use -z defs as we might desire, because we do not
 
11560
      # Note: We CANNOT use -z defs as we might desire, because we do not
11505
11561
      # link with -lc, and that would cause any symbols used from libc to
11506
11562
      # always be unresolved, which means just about no library would
11507
11563
      # ever link correctly.  If we're not using GNU ld we use -z text
11508
11564
      # though, which does catch some bad symbols but isn't as heavy-handed
11509
11565
      # as -z defs.
11510
 
      no_undefined_flag='${wl}-z,text'
11511
 
      allow_undefined_flag='${wl}-z,nodefs'
 
11566
      no_undefined_flag='$wl-z,text'
 
11567
      allow_undefined_flag='$wl-z,nodefs'
11512
11568
      archive_cmds_need_lc=no
11513
11569
      hardcode_shlibpath_var=no
11514
 
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
11570
      hardcode_libdir_flag_spec='$wl-R,$libdir'
11515
11571
      hardcode_libdir_separator=':'
11516
11572
      link_all_deplibs=yes
11517
 
      export_dynamic_flag_spec='${wl}-Bexport'
 
11573
      export_dynamic_flag_spec='$wl-Bexport'
11518
11574
      runpath_var='LD_RUN_PATH'
11519
11575
 
11520
 
      if test "$GCC" = yes; then
11521
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11522
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11576
      if test yes = "$GCC"; then
 
11577
        archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11578
        archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11523
11579
      else
11524
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11525
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11580
        archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11581
        archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11526
11582
      fi
11527
11583
      ;;
11528
11584
 
11537
11593
      ;;
11538
11594
    esac
11539
11595
 
11540
 
    if test x$host_vendor = xsni; then
 
11596
    if test sni = "$host_vendor"; then
11541
11597
      case $host in
11542
11598
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11543
 
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11599
        export_dynamic_flag_spec='$wl-Blargedynsym'
11544
11600
        ;;
11545
11601
      esac
11546
11602
    fi
11548
11604
 
11549
11605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11550
11606
$as_echo "$ld_shlibs" >&6; }
11551
 
test "$ld_shlibs" = no && can_build_shared=no
 
11607
test no = "$ld_shlibs" && can_build_shared=no
11552
11608
 
11553
11609
with_gnu_ld=$with_gnu_ld
11554
11610
 
11574
11630
  # Assume -lc should be added
11575
11631
  archive_cmds_need_lc=yes
11576
11632
 
11577
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11633
  if test yes,yes = "$GCC,$enable_shared"; then
11578
11634
    case $archive_cmds in
11579
11635
    *'~'*)
11580
11636
      # FIXME: we may have to deal with multi-command sequences.
11789
11845
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11790
11846
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11791
11847
 
11792
 
if test "$GCC" = yes; then
 
11848
if test yes = "$GCC"; then
11793
11849
  case $host_os in
11794
 
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11795
 
    *) lt_awk_arg="/^libraries:/" ;;
 
11850
    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
 
11851
    *) lt_awk_arg='/^libraries:/' ;;
11796
11852
  esac
11797
11853
  case $host_os in
11798
 
    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11799
 
    *) lt_sed_strip_eq="s,=/,/,g" ;;
 
11854
    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
 
11855
    *) lt_sed_strip_eq='s|=/|/|g' ;;
11800
11856
  esac
11801
11857
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11802
11858
  case $lt_search_path_spec in
11812
11868
    ;;
11813
11869
  esac
11814
11870
  # Ok, now we have the path, separated by spaces, we can step through it
11815
 
  # and add multilib dir if necessary.
 
11871
  # and add multilib dir if necessary...
11816
11872
  lt_tmp_lt_search_path_spec=
11817
 
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
11873
  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
11874
  # ...but if some path component already ends with the multilib dir we assume
 
11875
  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
 
11876
  case "$lt_multi_os_dir; $lt_search_path_spec " in
 
11877
  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
 
11878
    lt_multi_os_dir=
 
11879
    ;;
 
11880
  esac
11818
11881
  for lt_sys_path in $lt_search_path_spec; do
11819
 
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11820
 
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11821
 
    else
 
11882
    if test -d "$lt_sys_path$lt_multi_os_dir"; then
 
11883
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
 
11884
    elif test -n "$lt_multi_os_dir"; then
11822
11885
      test -d "$lt_sys_path" && \
11823
11886
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11824
11887
    fi
11825
11888
  done
11826
11889
  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11827
 
BEGIN {RS=" "; FS="/|\n";} {
11828
 
  lt_foo="";
11829
 
  lt_count=0;
 
11890
BEGIN {RS = " "; FS = "/|\n";} {
 
11891
  lt_foo = "";
 
11892
  lt_count = 0;
11830
11893
  for (lt_i = NF; lt_i > 0; lt_i--) {
11831
11894
    if ($lt_i != "" && $lt_i != ".") {
11832
11895
      if ($lt_i == "..") {
11833
11896
        lt_count++;
11834
11897
      } else {
11835
11898
        if (lt_count == 0) {
11836
 
          lt_foo="/" $lt_i lt_foo;
 
11899
          lt_foo = "/" $lt_i lt_foo;
11837
11900
        } else {
11838
11901
          lt_count--;
11839
11902
        }
11847
11910
  # for these hosts.
11848
11911
  case $host_os in
11849
11912
    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11850
 
      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
 
11913
      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11851
11914
  esac
11852
11915
  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11853
11916
else
11856
11919
library_names_spec=
11857
11920
libname_spec='lib$name'
11858
11921
soname_spec=
11859
 
shrext_cmds=".so"
 
11922
shrext_cmds=.so
11860
11923
postinstall_cmds=
11861
11924
postuninstall_cmds=
11862
11925
finish_cmds=
11876
11939
case $host_os in
11877
11940
aix3*)
11878
11941
  version_type=linux # correct to gnu/linux during the next big refactor
11879
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11942
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11880
11943
  shlibpath_var=LIBPATH
11881
11944
 
11882
11945
  # AIX 3 has no versioning support, so we append a major version to the name.
11883
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
11946
  soname_spec='$libname$release$shared_ext$major'
11884
11947
  ;;
11885
11948
 
11886
11949
aix[4-9]*)
11888
11951
  need_lib_prefix=no
11889
11952
  need_version=no
11890
11953
  hardcode_into_libs=yes
11891
 
  if test "$host_cpu" = ia64; then
 
11954
  if test ia64 = "$host_cpu"; then
11892
11955
    # AIX 5 supports IA64
11893
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11956
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11894
11957
    shlibpath_var=LD_LIBRARY_PATH
11895
11958
  else
11896
11959
    # With GCC up to 2.95.x, collect2 would create an import file
11897
11960
    # for dependence libraries.  The import file would start with
11898
 
    # the line `#! .'.  This would cause the generated library to
11899
 
    # depend on `.', always an invalid library.  This was fixed in
 
11961
    # the line '#! .'.  This would cause the generated library to
 
11962
    # depend on '.', always an invalid library.  This was fixed in
11900
11963
    # development snapshots of GCC prior to 3.0.
11901
11964
    case $host_os in
11902
11965
      aix4 | aix4.[01] | aix4.[01].*)
11903
11966
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11904
11967
           echo ' yes '
11905
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
11968
           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11906
11969
        :
11907
11970
      else
11908
11971
        can_build_shared=no
11909
11972
      fi
11910
11973
      ;;
11911
11974
    esac
11912
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11975
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11913
11976
    # soname into executable. Probably we can add versioning support to
11914
11977
    # collect2, so additional links can be useful in future.
11915
 
    if test "$aix_use_runtimelinking" = yes; then
 
11978
    if test yes = "$aix_use_runtimelinking"; then
11916
11979
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11917
11980
      # instead of lib<name>.a to let people know that these are not
11918
11981
      # typical AIX shared libraries.
11919
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11982
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11920
11983
    else
11921
11984
      # We preserve .a as extension for shared libraries through AIX4.2
11922
11985
      # and later when we are not doing run time linking.
11923
 
      library_names_spec='${libname}${release}.a $libname.a'
11924
 
      soname_spec='${libname}${release}${shared_ext}$major'
 
11986
      library_names_spec='$libname$release.a $libname.a'
 
11987
      soname_spec='$libname$release$shared_ext$major'
11925
11988
    fi
11926
11989
    shlibpath_var=LIBPATH
11927
11990
  fi
11932
11995
  powerpc)
11933
11996
    # Since July 2007 AmigaOS4 officially supports .so libraries.
11934
11997
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11935
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11998
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11936
11999
    ;;
11937
12000
  m68k)
11938
12001
    library_names_spec='$libname.ixlibrary $libname.a'
11939
12002
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11940
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
12003
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11941
12004
    ;;
11942
12005
  esac
11943
12006
  ;;
11944
12007
 
11945
12008
beos*)
11946
 
  library_names_spec='${libname}${shared_ext}'
 
12009
  library_names_spec='$libname$shared_ext'
11947
12010
  dynamic_linker="$host_os ld.so"
11948
12011
  shlibpath_var=LIBRARY_PATH
11949
12012
  ;;
11951
12014
bsdi[45]*)
11952
12015
  version_type=linux # correct to gnu/linux during the next big refactor
11953
12016
  need_version=no
11954
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
12017
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12018
  soname_spec='$libname$release$shared_ext$major'
11956
12019
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11957
12020
  shlibpath_var=LD_LIBRARY_PATH
11958
12021
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11964
12027
 
11965
12028
cygwin* | mingw* | pw32* | cegcc*)
11966
12029
  version_type=windows
11967
 
  shrext_cmds=".dll"
 
12030
  shrext_cmds=.dll
11968
12031
  need_version=no
11969
12032
  need_lib_prefix=no
11970
12033
 
11973
12036
    # gcc
11974
12037
    library_names_spec='$libname.dll.a'
11975
12038
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11976
 
    postinstall_cmds='base_file=`basename \${file}`~
11977
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
12039
    postinstall_cmds='base_file=`basename \$file`~
 
12040
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11978
12041
      dldir=$destdir/`dirname \$dlpath`~
11979
12042
      test -d \$dldir || mkdir -p \$dldir~
11980
12043
      $install_prog $dir/$dlname \$dldir/$dlname~
11990
12053
    case $host_os in
11991
12054
    cygwin*)
11992
12055
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11993
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12056
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11994
12057
 
11995
12058
      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11996
12059
      ;;
11997
12060
    mingw* | cegcc*)
11998
12061
      # MinGW DLLs use traditional 'lib' prefix
11999
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12062
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12000
12063
      ;;
12001
12064
    pw32*)
12002
12065
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12003
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12066
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12004
12067
      ;;
12005
12068
    esac
12006
12069
    dynamic_linker='Win32 ld.exe'
12009
12072
  *,cl*)
12010
12073
    # Native MSVC
12011
12074
    libname_spec='$name'
12012
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12013
 
    library_names_spec='${libname}.dll.lib'
 
12075
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
12076
    library_names_spec='$libname.dll.lib'
12014
12077
 
12015
12078
    case $build_os in
12016
12079
    mingw*)
12037
12100
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12038
12101
      ;;
12039
12102
    *)
12040
 
      sys_lib_search_path_spec="$LIB"
 
12103
      sys_lib_search_path_spec=$LIB
12041
12104
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12042
12105
        # It is most probably a Windows format PATH.
12043
12106
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12050
12113
    esac
12051
12114
 
12052
12115
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12053
 
    postinstall_cmds='base_file=`basename \${file}`~
12054
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
12116
    postinstall_cmds='base_file=`basename \$file`~
 
12117
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12055
12118
      dldir=$destdir/`dirname \$dlpath`~
12056
12119
      test -d \$dldir || mkdir -p \$dldir~
12057
12120
      $install_prog $dir/$dlname \$dldir/$dlname'
12064
12127
 
12065
12128
  *)
12066
12129
    # Assume MSVC wrapper
12067
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12130
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12068
12131
    dynamic_linker='Win32 ld.exe'
12069
12132
    ;;
12070
12133
  esac
12077
12140
  version_type=darwin
12078
12141
  need_lib_prefix=no
12079
12142
  need_version=no
12080
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12081
 
  soname_spec='${libname}${release}${major}$shared_ext'
 
12143
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
 
12144
  soname_spec='$libname$release$major$shared_ext'
12082
12145
  shlibpath_overrides_runpath=yes
12083
12146
  shlibpath_var=DYLD_LIBRARY_PATH
12084
12147
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12091
12154
  version_type=linux # correct to gnu/linux during the next big refactor
12092
12155
  need_lib_prefix=no
12093
12156
  need_version=no
12094
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12095
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
12157
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12158
  soname_spec='$libname$release$shared_ext$major'
12096
12159
  shlibpath_var=LD_LIBRARY_PATH
12097
12160
  ;;
12098
12161
 
12110
12173
  version_type=freebsd-$objformat
12111
12174
  case $version_type in
12112
12175
    freebsd-elf*)
12113
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12176
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12114
12177
      need_version=no
12115
12178
      need_lib_prefix=no
12116
12179
      ;;
12117
12180
    freebsd-*)
12118
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12181
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12119
12182
      need_version=yes
12120
12183
      ;;
12121
12184
  esac
12145
12208
  need_lib_prefix=no
12146
12209
  need_version=no
12147
12210
  dynamic_linker="$host_os runtime_loader"
12148
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12149
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
12211
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12212
  soname_spec='$libname$release$shared_ext$major'
12150
12213
  shlibpath_var=LIBRARY_PATH
12151
 
  shlibpath_overrides_runpath=yes
 
12214
  shlibpath_overrides_runpath=no
12152
12215
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12153
12216
  hardcode_into_libs=yes
12154
12217
  ;;
12166
12229
    dynamic_linker="$host_os dld.so"
12167
12230
    shlibpath_var=LD_LIBRARY_PATH
12168
12231
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12169
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12170
 
    soname_spec='${libname}${release}${shared_ext}$major'
12171
 
    if test "X$HPUX_IA64_MODE" = X32; then
 
12232
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12233
    soname_spec='$libname$release$shared_ext$major'
 
12234
    if test 32 = "$HPUX_IA64_MODE"; then
12172
12235
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12173
12236
    else
12174
12237
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12181
12244
    dynamic_linker="$host_os dld.sl"
12182
12245
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12183
12246
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12184
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12185
 
    soname_spec='${libname}${release}${shared_ext}$major'
 
12247
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12248
    soname_spec='$libname$release$shared_ext$major'
12186
12249
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12187
12250
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12188
12251
    ;;
12191
12254
    dynamic_linker="$host_os dld.sl"
12192
12255
    shlibpath_var=SHLIB_PATH
12193
12256
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12194
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195
 
    soname_spec='${libname}${release}${shared_ext}$major'
 
12257
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12258
    soname_spec='$libname$release$shared_ext$major'
12196
12259
    ;;
12197
12260
  esac
12198
12261
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12205
12268
  version_type=linux # correct to gnu/linux during the next big refactor
12206
12269
  need_lib_prefix=no
12207
12270
  need_version=no
12208
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12209
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
12271
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12272
  soname_spec='$libname$release$shared_ext$major'
12210
12273
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12211
12274
  shlibpath_var=LD_LIBRARY_PATH
12212
12275
  shlibpath_overrides_runpath=no
12217
12280
  case $host_os in
12218
12281
    nonstopux*) version_type=nonstopux ;;
12219
12282
    *)
12220
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12283
        if test yes = "$lt_cv_prog_gnu_ld"; then
12221
12284
                version_type=linux # correct to gnu/linux during the next big refactor
12222
12285
        else
12223
12286
                version_type=irix
12225
12288
  esac
12226
12289
  need_lib_prefix=no
12227
12290
  need_version=no
12228
 
  soname_spec='${libname}${release}${shared_ext}$major'
12229
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12291
  soname_spec='$libname$release$shared_ext$major'
 
12292
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12230
12293
  case $host_os in
12231
12294
  irix5* | nonstopux*)
12232
12295
    libsuff= shlibsuff=
12245
12308
  esac
12246
12309
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12247
12310
  shlibpath_overrides_runpath=no
12248
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12249
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12311
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
 
12312
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12250
12313
  hardcode_into_libs=yes
12251
12314
  ;;
12252
12315
 
12255
12318
  dynamic_linker=no
12256
12319
  ;;
12257
12320
 
 
12321
linux*android*)
 
12322
  version_type=none # Android doesn't support versioned libraries.
 
12323
  need_lib_prefix=no
 
12324
  need_version=no
 
12325
  library_names_spec='$libname$release$shared_ext'
 
12326
  soname_spec='$libname$release$shared_ext'
 
12327
  finish_cmds=
 
12328
  shlibpath_var=LD_LIBRARY_PATH
 
12329
  shlibpath_overrides_runpath=yes
 
12330
 
 
12331
  # This implies no fast_install, which is unacceptable.
 
12332
  # Some rework will be needed to allow for fast_install
 
12333
  # before this can be enabled.
 
12334
  hardcode_into_libs=yes
 
12335
 
 
12336
  dynamic_linker='Android linker'
 
12337
  # Don't embed -rpath directories since the linker doesn't support them.
 
12338
  hardcode_libdir_flag_spec='-L$libdir'
 
12339
  ;;
 
12340
 
12258
12341
# This must be glibc/ELF.
12259
12342
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12260
12343
  version_type=linux # correct to gnu/linux during the next big refactor
12261
12344
  need_lib_prefix=no
12262
12345
  need_version=no
12263
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
12346
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12347
  soname_spec='$libname$release$shared_ext$major'
12265
12348
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12266
12349
  shlibpath_var=LD_LIBRARY_PATH
12267
12350
  shlibpath_overrides_runpath=no
12320
12403
  dynamic_linker='GNU/Linux ld.so'
12321
12404
  ;;
12322
12405
 
12323
 
netbsdelf*-gnu)
12324
 
  version_type=linux
12325
 
  need_lib_prefix=no
12326
 
  need_version=no
12327
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12328
 
  soname_spec='${libname}${release}${shared_ext}$major'
12329
 
  shlibpath_var=LD_LIBRARY_PATH
12330
 
  shlibpath_overrides_runpath=no
12331
 
  hardcode_into_libs=yes
12332
 
  dynamic_linker='NetBSD ld.elf_so'
12333
 
  ;;
12334
 
 
12335
12406
netbsd*)
12336
12407
  version_type=sunos
12337
12408
  need_lib_prefix=no
12338
12409
  need_version=no
12339
12410
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12340
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12411
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12341
12412
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12342
12413
    dynamic_linker='NetBSD (a.out) ld.so'
12343
12414
  else
12344
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12345
 
    soname_spec='${libname}${release}${shared_ext}$major'
 
12415
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12416
    soname_spec='$libname$release$shared_ext$major'
12346
12417
    dynamic_linker='NetBSD ld.elf_so'
12347
12418
  fi
12348
12419
  shlibpath_var=LD_LIBRARY_PATH
12352
12423
 
12353
12424
newsos6)
12354
12425
  version_type=linux # correct to gnu/linux during the next big refactor
12355
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12426
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12356
12427
  shlibpath_var=LD_LIBRARY_PATH
12357
12428
  shlibpath_overrides_runpath=yes
12358
12429
  ;;
12361
12432
  version_type=qnx
12362
12433
  need_lib_prefix=no
12363
12434
  need_version=no
12364
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12365
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
12435
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12436
  soname_spec='$libname$release$shared_ext$major'
12366
12437
  shlibpath_var=LD_LIBRARY_PATH
12367
12438
  shlibpath_overrides_runpath=no
12368
12439
  hardcode_into_libs=yes
12369
12440
  dynamic_linker='ldqnx.so'
12370
12441
  ;;
12371
12442
 
12372
 
openbsd*)
 
12443
openbsd* | bitrig*)
12373
12444
  version_type=sunos
12374
 
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12445
  sys_lib_dlsearch_path_spec=/usr/lib
12375
12446
  need_lib_prefix=no
12376
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12377
 
  case $host_os in
12378
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12379
 
    *)                          need_version=no  ;;
12380
 
  esac
12381
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12447
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
12448
    need_version=no
 
12449
  else
 
12450
    need_version=yes
 
12451
  fi
 
12452
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12382
12453
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12383
12454
  shlibpath_var=LD_LIBRARY_PATH
12384
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12385
 
    case $host_os in
12386
 
      openbsd2.[89] | openbsd2.[89].*)
12387
 
        shlibpath_overrides_runpath=no
12388
 
        ;;
12389
 
      *)
12390
 
        shlibpath_overrides_runpath=yes
12391
 
        ;;
12392
 
      esac
12393
 
  else
12394
 
    shlibpath_overrides_runpath=yes
12395
 
  fi
 
12455
  shlibpath_overrides_runpath=yes
12396
12456
  ;;
12397
12457
 
12398
12458
os2*)
12399
12459
  libname_spec='$name'
12400
 
  shrext_cmds=".dll"
 
12460
  shrext_cmds=.dll
12401
12461
  need_lib_prefix=no
12402
 
  library_names_spec='$libname${shared_ext} $libname.a'
 
12462
  library_names_spec='$libname$shared_ext $libname.a'
12403
12463
  dynamic_linker='OS/2 ld.exe'
12404
12464
  shlibpath_var=LIBPATH
12405
12465
  ;;
12408
12468
  version_type=osf
12409
12469
  need_lib_prefix=no
12410
12470
  need_version=no
12411
 
  soname_spec='${libname}${release}${shared_ext}$major'
12412
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12471
  soname_spec='$libname$release$shared_ext$major'
 
12472
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12413
12473
  shlibpath_var=LD_LIBRARY_PATH
12414
12474
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12415
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12475
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12416
12476
  ;;
12417
12477
 
12418
12478
rdos*)
12423
12483
  version_type=linux # correct to gnu/linux during the next big refactor
12424
12484
  need_lib_prefix=no
12425
12485
  need_version=no
12426
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12427
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
12486
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12487
  soname_spec='$libname$release$shared_ext$major'
12428
12488
  shlibpath_var=LD_LIBRARY_PATH
12429
12489
  shlibpath_overrides_runpath=yes
12430
12490
  hardcode_into_libs=yes
12434
12494
 
12435
12495
sunos4*)
12436
12496
  version_type=sunos
12437
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12497
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12438
12498
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12439
12499
  shlibpath_var=LD_LIBRARY_PATH
12440
12500
  shlibpath_overrides_runpath=yes
12441
 
  if test "$with_gnu_ld" = yes; then
 
12501
  if test yes = "$with_gnu_ld"; then
12442
12502
    need_lib_prefix=no
12443
12503
  fi
12444
12504
  need_version=yes
12446
12506
 
12447
12507
sysv4 | sysv4.3*)
12448
12508
  version_type=linux # correct to gnu/linux during the next big refactor
12449
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12450
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
12509
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12510
  soname_spec='$libname$release$shared_ext$major'
12451
12511
  shlibpath_var=LD_LIBRARY_PATH
12452
12512
  case $host_vendor in
12453
12513
    sni)
12468
12528
  ;;
12469
12529
 
12470
12530
sysv4*MP*)
12471
 
  if test -d /usr/nec ;then
 
12531
  if test -d /usr/nec; then
12472
12532
    version_type=linux # correct to gnu/linux during the next big refactor
12473
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12474
 
    soname_spec='$libname${shared_ext}.$major'
 
12533
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
 
12534
    soname_spec='$libname$shared_ext.$major'
12475
12535
    shlibpath_var=LD_LIBRARY_PATH
12476
12536
  fi
12477
12537
  ;;
12480
12540
  version_type=freebsd-elf
12481
12541
  need_lib_prefix=no
12482
12542
  need_version=no
12483
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12484
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
12543
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 
12544
  soname_spec='$libname$release$shared_ext$major'
12485
12545
  shlibpath_var=LD_LIBRARY_PATH
12486
12546
  shlibpath_overrides_runpath=yes
12487
12547
  hardcode_into_libs=yes
12488
 
  if test "$with_gnu_ld" = yes; then
 
12548
  if test yes = "$with_gnu_ld"; then
12489
12549
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12490
12550
  else
12491
12551
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12503
12563
  version_type=linux # correct to gnu/linux during the next big refactor
12504
12564
  need_lib_prefix=no
12505
12565
  need_version=no
12506
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12566
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12507
12567
  shlibpath_var=LD_LIBRARY_PATH
12508
12568
  shlibpath_overrides_runpath=no
12509
12569
  hardcode_into_libs=yes
12511
12571
 
12512
12572
uts4*)
12513
12573
  version_type=linux # correct to gnu/linux during the next big refactor
12514
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12515
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
12574
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
12575
  soname_spec='$libname$release$shared_ext$major'
12516
12576
  shlibpath_var=LD_LIBRARY_PATH
12517
12577
  ;;
12518
12578
 
12522
12582
esac
12523
12583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12524
12584
$as_echo "$dynamic_linker" >&6; }
12525
 
test "$dynamic_linker" = no && can_build_shared=no
 
12585
test no = "$dynamic_linker" && can_build_shared=no
12526
12586
 
12527
12587
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12528
 
if test "$GCC" = yes; then
 
12588
if test yes = "$GCC"; then
12529
12589
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12530
12590
fi
12531
12591
 
12532
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12533
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
12592
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
 
12593
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12534
12594
fi
12535
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12536
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
12595
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
 
12596
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12537
12597
fi
12538
12598
 
12539
12599
 
12632
12692
hardcode_action=
12633
12693
if test -n "$hardcode_libdir_flag_spec" ||
12634
12694
   test -n "$runpath_var" ||
12635
 
   test "X$hardcode_automatic" = "Xyes" ; then
 
12695
   test yes = "$hardcode_automatic"; then
12636
12696
 
12637
12697
  # We can hardcode non-existent directories.
12638
 
  if test "$hardcode_direct" != no &&
 
12698
  if test no != "$hardcode_direct" &&
12639
12699
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12640
12700
     # have to relink, otherwise we might link with an installed library
12641
12701
     # when we should be linking with a yet-to-be-installed one
12642
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12643
 
     test "$hardcode_minus_L" != no; then
 
12702
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
 
12703
     test no != "$hardcode_minus_L"; then
12644
12704
    # Linking always hardcodes the temporary library directory.
12645
12705
    hardcode_action=relink
12646
12706
  else
12655
12715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12656
12716
$as_echo "$hardcode_action" >&6; }
12657
12717
 
12658
 
if test "$hardcode_action" = relink ||
12659
 
   test "$inherit_rpath" = yes; then
 
12718
if test relink = "$hardcode_action" ||
 
12719
   test yes = "$inherit_rpath"; then
12660
12720
  # Fast installation is not supported
12661
12721
  enable_fast_install=no
12662
 
elif test "$shlibpath_overrides_runpath" = yes ||
12663
 
     test "$enable_shared" = no; then
 
12722
elif test yes = "$shlibpath_overrides_runpath" ||
 
12723
     test no = "$enable_shared"; then
12664
12724
  # Fast installation is not necessary
12665
12725
  enable_fast_install=needless
12666
12726
fi
12670
12730
 
12671
12731
 
12672
12732
 
12673
 
  if test "x$enable_dlopen" != xyes; then
 
12733
  if test yes != "$enable_dlopen"; then
12674
12734
  enable_dlopen=unknown
12675
12735
  enable_dlopen_self=unknown
12676
12736
  enable_dlopen_self_static=unknown
12680
12740
 
12681
12741
  case $host_os in
12682
12742
  beos*)
12683
 
    lt_cv_dlopen="load_add_on"
 
12743
    lt_cv_dlopen=load_add_on
12684
12744
    lt_cv_dlopen_libs=
12685
12745
    lt_cv_dlopen_self=yes
12686
12746
    ;;
12687
12747
 
12688
12748
  mingw* | pw32* | cegcc*)
12689
 
    lt_cv_dlopen="LoadLibrary"
 
12749
    lt_cv_dlopen=LoadLibrary
12690
12750
    lt_cv_dlopen_libs=
12691
12751
    ;;
12692
12752
 
12693
12753
  cygwin*)
12694
 
    lt_cv_dlopen="dlopen"
 
12754
    lt_cv_dlopen=dlopen
12695
12755
    lt_cv_dlopen_libs=
12696
12756
    ;;
12697
12757
 
12698
12758
  darwin*)
12699
 
  # if libdl is installed we need to link against it
 
12759
    # if libdl is installed we need to link against it
12700
12760
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12701
12761
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12702
12762
if ${ac_cv_lib_dl_dlopen+:} false; then :
12734
12794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12735
12795
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12736
12796
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12737
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12797
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12738
12798
else
12739
12799
 
12740
 
    lt_cv_dlopen="dyld"
 
12800
    lt_cv_dlopen=dyld
12741
12801
    lt_cv_dlopen_libs=
12742
12802
    lt_cv_dlopen_self=yes
12743
12803
 
12745
12805
 
12746
12806
    ;;
12747
12807
 
 
12808
  tpf*)
 
12809
    # Don't try to run any link tests for TPF.  We know it's impossible
 
12810
    # because TPF is a cross-compiler, and we know how we open DSOs.
 
12811
    lt_cv_dlopen=dlopen
 
12812
    lt_cv_dlopen_libs=
 
12813
    lt_cv_dlopen_self=no
 
12814
    ;;
 
12815
 
12748
12816
  *)
12749
12817
    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12750
12818
if test "x$ac_cv_func_shl_load" = xyes; then :
12751
 
  lt_cv_dlopen="shl_load"
 
12819
  lt_cv_dlopen=shl_load
12752
12820
else
12753
12821
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12754
12822
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12787
12855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12788
12856
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12789
12857
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12790
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
12858
  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12791
12859
else
12792
12860
  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12793
12861
if test "x$ac_cv_func_dlopen" = xyes; then :
12794
 
  lt_cv_dlopen="dlopen"
 
12862
  lt_cv_dlopen=dlopen
12795
12863
else
12796
12864
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12797
12865
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12830
12898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12831
12899
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12832
12900
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12833
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12901
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12834
12902
else
12835
12903
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12836
12904
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12869
12937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12870
12938
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12871
12939
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12872
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12940
  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12873
12941
else
12874
12942
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12875
12943
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12908
12976
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12909
12977
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12910
12978
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12911
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
12979
  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12912
12980
fi
12913
12981
 
12914
12982
 
12929
12997
    ;;
12930
12998
  esac
12931
12999
 
12932
 
  if test "x$lt_cv_dlopen" != xno; then
 
13000
  if test no = "$lt_cv_dlopen"; then
 
13001
    enable_dlopen=no
 
13002
  else
12933
13003
    enable_dlopen=yes
12934
 
  else
12935
 
    enable_dlopen=no
12936
13004
  fi
12937
13005
 
12938
13006
  case $lt_cv_dlopen in
12939
13007
  dlopen)
12940
 
    save_CPPFLAGS="$CPPFLAGS"
12941
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
13008
    save_CPPFLAGS=$CPPFLAGS
 
13009
    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12942
13010
 
12943
 
    save_LDFLAGS="$LDFLAGS"
 
13011
    save_LDFLAGS=$LDFLAGS
12944
13012
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12945
13013
 
12946
 
    save_LIBS="$LIBS"
 
13014
    save_LIBS=$LIBS
12947
13015
    LIBS="$lt_cv_dlopen_libs $LIBS"
12948
13016
 
12949
13017
    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12951
13019
if ${lt_cv_dlopen_self+:} false; then :
12952
13020
  $as_echo_n "(cached) " >&6
12953
13021
else
12954
 
          if test "$cross_compiling" = yes; then :
 
13022
          if test yes = "$cross_compiling"; then :
12955
13023
  lt_cv_dlopen_self=cross
12956
13024
else
12957
13025
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13000
13068
 
13001
13069
/* When -fvisbility=hidden is used, assume the code has been annotated
13002
13070
   correspondingly for the symbols needed.  */
13003
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
13071
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13004
13072
int fnord () __attribute__((visibility("default")));
13005
13073
#endif
13006
13074
 
13030
13098
  (eval $ac_link) 2>&5
13031
13099
  ac_status=$?
13032
13100
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13033
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13101
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13034
13102
    (./conftest; exit; ) >&5 2>/dev/null
13035
13103
    lt_status=$?
13036
13104
    case x$lt_status in
13050
13118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13051
13119
$as_echo "$lt_cv_dlopen_self" >&6; }
13052
13120
 
13053
 
    if test "x$lt_cv_dlopen_self" = xyes; then
 
13121
    if test yes = "$lt_cv_dlopen_self"; then
13054
13122
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13055
13123
      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13056
13124
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13057
13125
if ${lt_cv_dlopen_self_static+:} false; then :
13058
13126
  $as_echo_n "(cached) " >&6
13059
13127
else
13060
 
          if test "$cross_compiling" = yes; then :
 
13128
          if test yes = "$cross_compiling"; then :
13061
13129
  lt_cv_dlopen_self_static=cross
13062
13130
else
13063
13131
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13106
13174
 
13107
13175
/* When -fvisbility=hidden is used, assume the code has been annotated
13108
13176
   correspondingly for the symbols needed.  */
13109
 
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 
13177
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13110
13178
int fnord () __attribute__((visibility("default")));
13111
13179
#endif
13112
13180
 
13136
13204
  (eval $ac_link) 2>&5
13137
13205
  ac_status=$?
13138
13206
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13139
 
  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13207
  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13140
13208
    (./conftest; exit; ) >&5 2>/dev/null
13141
13209
    lt_status=$?
13142
13210
    case x$lt_status in
13157
13225
$as_echo "$lt_cv_dlopen_self_static" >&6; }
13158
13226
    fi
13159
13227
 
13160
 
    CPPFLAGS="$save_CPPFLAGS"
13161
 
    LDFLAGS="$save_LDFLAGS"
13162
 
    LIBS="$save_LIBS"
 
13228
    CPPFLAGS=$save_CPPFLAGS
 
13229
    LDFLAGS=$save_LDFLAGS
 
13230
    LIBS=$save_LIBS
13163
13231
    ;;
13164
13232
  esac
13165
13233
 
13203
13271
# FIXME - insert some real tests, host_os isn't really good enough
13204
13272
  case $host_os in
13205
13273
  darwin*)
13206
 
    if test -n "$STRIP" ; then
 
13274
    if test -n "$STRIP"; then
13207
13275
      striplib="$STRIP -x"
13208
13276
      old_striplib="$STRIP -S"
13209
13277
      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13231
13299
 
13232
13300
 
13233
13301
 
13234
 
  # Report which library types will actually be built
 
13302
  # Report what library types will actually be built
13235
13303
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13236
13304
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13237
13305
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13239
13307
 
13240
13308
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13241
13309
$as_echo_n "checking whether to build shared libraries... " >&6; }
13242
 
  test "$can_build_shared" = "no" && enable_shared=no
 
13310
  test no = "$can_build_shared" && enable_shared=no
13243
13311
 
13244
13312
  # On AIX, shared libraries and static libraries use the same namespace, and
13245
13313
  # are all built from PIC.
13246
13314
  case $host_os in
13247
13315
  aix3*)
13248
 
    test "$enable_shared" = yes && enable_static=no
 
13316
    test yes = "$enable_shared" && enable_static=no
13249
13317
    if test -n "$RANLIB"; then
13250
13318
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13251
13319
      postinstall_cmds='$RANLIB $lib'
13253
13321
    ;;
13254
13322
 
13255
13323
  aix[4-9]*)
13256
 
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13257
 
      test "$enable_shared" = yes && enable_static=no
 
13324
    if test ia64 != "$host_cpu" && test no = "$aix_use_runtimelinking"; then
 
13325
      test yes = "$enable_shared" && enable_static=no
13258
13326
    fi
13259
13327
    ;;
13260
13328
  esac
13264
13332
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13265
13333
$as_echo_n "checking whether to build static libraries... " >&6; }
13266
13334
  # Make sure either enable_shared or enable_static is yes.
13267
 
  test "$enable_shared" = yes || enable_static=yes
 
13335
  test yes = "$enable_shared" || enable_static=yes
13268
13336
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13269
13337
$as_echo "$enable_static" >&6; }
13270
13338
 
13278
13346
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13279
13347
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13280
13348
 
13281
 
CC="$lt_save_CC"
 
13349
CC=$lt_save_CC
13282
13350
 
13283
 
      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13284
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13285
 
    (test "X$CXX" != "Xg++"))) ; then
 
13351
      if test -n "$CXX" && ( test no != "$CXX" &&
 
13352
    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
 
13353
    (test g++ != "$CXX"))); then
13286
13354
  ac_ext=cpp
13287
13355
ac_cpp='$CXXCPP $CPPFLAGS'
13288
13356
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13461
13529
# the CXX compiler isn't working.  Some variables (like enable_shared)
13462
13530
# are currently assumed to apply to all compilers on this platform,
13463
13531
# and will be corrupted by setting them based on a non-working compiler.
13464
 
if test "$_lt_caught_CXX_error" != yes; then
 
13532
if test yes != "$_lt_caught_CXX_error"; then
13465
13533
  # Code to be used in simple compile tests
13466
13534
  lt_simple_compile_test_code="int some_variable = 0;"
13467
13535
 
13536
13604
  if test -n "$compiler"; then
13537
13605
    # We don't want -fno-exception when compiling C++ code, so set the
13538
13606
    # no_builtin_flag separately
13539
 
    if test "$GXX" = yes; then
 
13607
    if test yes = "$GXX"; then
13540
13608
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13541
13609
    else
13542
13610
      lt_prog_compiler_no_builtin_flag_CXX=
13543
13611
    fi
13544
13612
 
13545
 
    if test "$GXX" = yes; then
 
13613
    if test yes = "$GXX"; then
13546
13614
      # Set up default GNU C++ configuration
13547
13615
 
13548
13616
 
13549
13617
 
13550
13618
# Check whether --with-gnu-ld was given.
13551
13619
if test "${with_gnu_ld+set}" = set; then :
13552
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
13620
  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13553
13621
else
13554
13622
  with_gnu_ld=no
13555
13623
fi
13556
13624
 
13557
13625
ac_prog=ld
13558
 
if test "$GCC" = yes; then
 
13626
if test yes = "$GCC"; then
13559
13627
  # Check if gcc -print-prog-name=ld gives a path.
13560
13628
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13561
13629
$as_echo_n "checking for ld used by $CC... " >&6; }
13562
13630
  case $host in
13563
13631
  *-*-mingw*)
13564
 
    # gcc leaves a trailing carriage return which upsets mingw
 
13632
    # gcc leaves a trailing carriage return, which upsets mingw
13565
13633
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13566
13634
  *)
13567
13635
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13575
13643
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13576
13644
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13577
13645
      done
13578
 
      test -z "$LD" && LD="$ac_prog"
 
13646
      test -z "$LD" && LD=$ac_prog
13579
13647
      ;;
13580
13648
  "")
13581
13649
    # If it fails, then pretend we aren't using GCC.
13586
13654
    with_gnu_ld=unknown
13587
13655
    ;;
13588
13656
  esac
13589
 
elif test "$with_gnu_ld" = yes; then
 
13657
elif test yes = "$with_gnu_ld"; then
13590
13658
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13591
13659
$as_echo_n "checking for GNU ld... " >&6; }
13592
13660
else
13597
13665
  $as_echo_n "(cached) " >&6
13598
13666
else
13599
13667
  if test -z "$LD"; then
13600
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
13668
  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13601
13669
  for ac_dir in $PATH; do
13602
 
    IFS="$lt_save_ifs"
 
13670
    IFS=$lt_save_ifs
13603
13671
    test -z "$ac_dir" && ac_dir=.
13604
13672
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13605
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
13673
      lt_cv_path_LD=$ac_dir/$ac_prog
13606
13674
      # Check to see if the program is GNU ld.  I'd rather use --version,
13607
13675
      # but apparently some variants of GNU ld only accept -v.
13608
13676
      # Break only if it was the GNU/non-GNU ld that we prefer.
13609
13677
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13610
13678
      *GNU* | *'with BFD'*)
13611
 
        test "$with_gnu_ld" != no && break
 
13679
        test no != "$with_gnu_ld" && break
13612
13680
        ;;
13613
13681
      *)
13614
 
        test "$with_gnu_ld" != yes && break
 
13682
        test yes != "$with_gnu_ld" && break
13615
13683
        ;;
13616
13684
      esac
13617
13685
    fi
13618
13686
  done
13619
 
  IFS="$lt_save_ifs"
 
13687
  IFS=$lt_save_ifs
13620
13688
else
13621
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
13689
  lt_cv_path_LD=$LD # Let the user override the test with a path.
13622
13690
fi
13623
13691
fi
13624
13692
 
13625
 
LD="$lt_cv_path_LD"
 
13693
LD=$lt_cv_path_LD
13626
13694
if test -n "$LD"; then
13627
13695
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13628
13696
$as_echo "$LD" >&6; }
13658
13726
 
13659
13727
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13660
13728
      # archiving commands below assume that GNU ld is being used.
13661
 
      if test "$with_gnu_ld" = yes; then
13662
 
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663
 
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13729
      if test yes = "$with_gnu_ld"; then
 
13730
        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
13731
        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13664
13732
 
13665
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13666
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13733
        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 
13734
        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13667
13735
 
13668
13736
        # If archive_cmds runs LD, not CC, wlarc should be empty
13669
13737
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13670
13738
        #     investigate it a little bit more. (MM)
13671
 
        wlarc='${wl}'
 
13739
        wlarc='$wl'
13672
13740
 
13673
13741
        # ancient GNU ld didn't support --whole-archive et. al.
13674
13742
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13675
13743
          $GREP 'no-whole-archive' > /dev/null; then
13676
 
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13744
          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13677
13745
        else
13678
13746
          whole_archive_flag_spec_CXX=
13679
13747
        fi
13710
13778
        ld_shlibs_CXX=no
13711
13779
        ;;
13712
13780
      aix[4-9]*)
13713
 
        if test "$host_cpu" = ia64; then
 
13781
        if test ia64 = "$host_cpu"; then
13714
13782
          # On IA64, the linker does run time linking by default, so we don't
13715
13783
          # have to do anything special.
13716
13784
          aix_use_runtimelinking=no
13717
13785
          exp_sym_flag='-Bexport'
13718
 
          no_entry_flag=""
 
13786
          no_entry_flag=
13719
13787
        else
13720
13788
          aix_use_runtimelinking=no
13721
13789
 
13749
13817
        hardcode_direct_absolute_CXX=yes
13750
13818
        hardcode_libdir_separator_CXX=':'
13751
13819
        link_all_deplibs_CXX=yes
13752
 
        file_list_spec_CXX='${wl}-f,'
 
13820
        file_list_spec_CXX='$wl-f,'
13753
13821
 
13754
 
        if test "$GXX" = yes; then
 
13822
        if test yes = "$GXX"; then
13755
13823
          case $host_os in aix4.[012]|aix4.[012].*)
13756
13824
          # We only want to do this on AIX 4.2 and lower, the check
13757
13825
          # below for broken collect2 doesn't work under 4.3+
13758
 
          collect2name=`${CC} -print-prog-name=collect2`
 
13826
          collect2name=`$CC -print-prog-name=collect2`
13759
13827
          if test -f "$collect2name" &&
13760
13828
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13761
13829
          then
13773
13841
          fi
13774
13842
          esac
13775
13843
          shared_flag='-shared'
13776
 
          if test "$aix_use_runtimelinking" = yes; then
13777
 
            shared_flag="$shared_flag "'${wl}-G'
 
13844
          if test yes = "$aix_use_runtimelinking"; then
 
13845
            shared_flag=$shared_flag' $wl-G'
13778
13846
          fi
13779
13847
        else
13780
13848
          # not using gcc
13781
 
          if test "$host_cpu" = ia64; then
 
13849
          if test ia64 = "$host_cpu"; then
13782
13850
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13783
13851
          # chokes on -Wl,-G. The following line is correct:
13784
13852
          shared_flag='-G'
13785
13853
          else
13786
 
            if test "$aix_use_runtimelinking" = yes; then
13787
 
              shared_flag='${wl}-G'
 
13854
            if test yes = "$aix_use_runtimelinking"; then
 
13855
              shared_flag='$wl-G'
13788
13856
            else
13789
 
              shared_flag='${wl}-bM:SRE'
 
13857
              shared_flag='$wl-bM:SRE'
13790
13858
            fi
13791
13859
          fi
13792
13860
        fi
13793
13861
 
13794
 
        export_dynamic_flag_spec_CXX='${wl}-bexpall'
 
13862
        export_dynamic_flag_spec_CXX='$wl-bexpall'
13795
13863
        # It seems that -bexpall does not export symbols beginning with
13796
13864
        # underscore (_), so it is better to generate a list of symbols to
13797
13865
        # export.
13798
13866
        always_export_symbols_CXX=yes
13799
 
        if test "$aix_use_runtimelinking" = yes; then
 
13867
        if test yes = "$aix_use_runtimelinking"; then
13800
13868
          # Warning - without using the other runtime loading flags (-brtl),
13801
13869
          # -berok will link without error, but may produce a broken library.
13802
13870
          allow_undefined_flag_CXX='-berok'
13803
13871
          # Determine the default libpath from the value encoded in an empty
13804
13872
          # executable.
13805
 
          if test "${lt_cv_aix_libpath+set}" = set; then
 
13873
          if test set = "${lt_cv_aix_libpath+set}"; then
13806
13874
  aix_libpath=$lt_cv_aix_libpath
13807
13875
else
13808
13876
  if ${lt_cv_aix_libpath__CXX+:} false; then :
13837
13905
rm -f core conftest.err conftest.$ac_objext \
13838
13906
    conftest$ac_exeext conftest.$ac_ext
13839
13907
  if test -z "$lt_cv_aix_libpath__CXX"; then
13840
 
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13908
    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13841
13909
  fi
13842
13910
 
13843
13911
fi
13845
13913
  aix_libpath=$lt_cv_aix_libpath__CXX
13846
13914
fi
13847
13915
 
13848
 
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13916
          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13849
13917
 
13850
 
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13918
          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13851
13919
        else
13852
 
          if test "$host_cpu" = ia64; then
13853
 
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
13920
          if test ia64 = "$host_cpu"; then
 
13921
            hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13854
13922
            allow_undefined_flag_CXX="-z nodefs"
13855
 
            archive_expsym_cmds_CXX="\$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"
 
13923
            archive_expsym_cmds_CXX="\$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"
13856
13924
          else
13857
13925
            # Determine the default libpath from the value encoded in an
13858
13926
            # empty executable.
13859
 
            if test "${lt_cv_aix_libpath+set}" = set; then
 
13927
            if test set = "${lt_cv_aix_libpath+set}"; then
13860
13928
  aix_libpath=$lt_cv_aix_libpath
13861
13929
else
13862
13930
  if ${lt_cv_aix_libpath__CXX+:} false; then :
13891
13959
rm -f core conftest.err conftest.$ac_objext \
13892
13960
    conftest$ac_exeext conftest.$ac_ext
13893
13961
  if test -z "$lt_cv_aix_libpath__CXX"; then
13894
 
    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
 
13962
    lt_cv_aix_libpath__CXX=/usr/lib:/lib
13895
13963
  fi
13896
13964
 
13897
13965
fi
13899
13967
  aix_libpath=$lt_cv_aix_libpath__CXX
13900
13968
fi
13901
13969
 
13902
 
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13970
            hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13903
13971
            # Warning - without using the other run time loading flags,
13904
13972
            # -berok will link without error, but may produce a broken library.
13905
 
            no_undefined_flag_CXX=' ${wl}-bernotok'
13906
 
            allow_undefined_flag_CXX=' ${wl}-berok'
13907
 
            if test "$with_gnu_ld" = yes; then
 
13973
            no_undefined_flag_CXX=' $wl-bernotok'
 
13974
            allow_undefined_flag_CXX=' $wl-berok'
 
13975
            if test yes = "$with_gnu_ld"; then
13908
13976
              # We only use this code for GNU lds that support --whole-archive.
13909
 
              whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13977
              whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13910
13978
            else
13911
13979
              # Exported symbols can be pulled into shared objects from archives
13912
13980
              whole_archive_flag_spec_CXX='$convenience'
13914
13982
            archive_cmds_need_lc_CXX=yes
13915
13983
            # This is similar to how AIX traditionally builds its shared
13916
13984
            # libraries.
13917
 
            archive_expsym_cmds_CXX="\$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'
 
13985
            archive_expsym_cmds_CXX="\$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'
13918
13986
          fi
13919
13987
        fi
13920
13988
        ;;
13924
13992
          allow_undefined_flag_CXX=unsupported
13925
13993
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13926
13994
          # support --undefined.  This deserves some investigation.  FIXME
13927
 
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13995
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13928
13996
        else
13929
13997
          ld_shlibs_CXX=no
13930
13998
        fi
13952
14020
          # Tell ltmain to make .lib files, not .a files.
13953
14021
          libext=lib
13954
14022
          # Tell ltmain to make .dll files, not .so files.
13955
 
          shrext_cmds=".dll"
 
14023
          shrext_cmds=.dll
13956
14024
          # FIXME: Setting linknames here is a bad hack.
13957
 
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13958
 
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13959
 
              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13960
 
            else
13961
 
              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13962
 
            fi~
13963
 
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13964
 
            linknames='
 
14025
          archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 
14026
          archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[     ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 
14027
              cp "$export_symbols" "$output_objdir/$soname.def";
 
14028
              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 
14029
            else
 
14030
              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 
14031
            fi~
 
14032
            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 
14033
            linknames='
13965
14034
          # The linker will not automatically build a static lib if we build a DLL.
13966
14035
          # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13967
14036
          enable_shared_with_static_runtimes_CXX=yes
13968
14037
          # Don't use ranlib
13969
14038
          old_postinstall_cmds_CXX='chmod 644 $oldlib'
13970
14039
          postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13971
 
            lt_tool_outputfile="@TOOL_OUTPUT@"~
13972
 
            case $lt_outputfile in
13973
 
              *.exe|*.EXE) ;;
13974
 
              *)
13975
 
                lt_outputfile="$lt_outputfile.exe"
13976
 
                lt_tool_outputfile="$lt_tool_outputfile.exe"
13977
 
                ;;
13978
 
            esac~
13979
 
            func_to_tool_file "$lt_outputfile"~
13980
 
            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13981
 
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13982
 
              $RM "$lt_outputfile.manifest";
13983
 
            fi'
 
14040
            lt_tool_outputfile="@TOOL_OUTPUT@"~
 
14041
            case $lt_outputfile in
 
14042
              *.exe|*.EXE) ;;
 
14043
              *)
 
14044
                lt_outputfile=$lt_outputfile.exe
 
14045
                lt_tool_outputfile=$lt_tool_outputfile.exe
 
14046
                ;;
 
14047
            esac~
 
14048
            func_to_tool_file "$lt_outputfile"~
 
14049
            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 
14050
              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 
14051
              $RM "$lt_outputfile.manifest";
 
14052
            fi'
13984
14053
          ;;
13985
14054
        *)
13986
14055
          # g++
13987
14056
          # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13988
14057
          # as there is no search path for DLLs.
13989
14058
          hardcode_libdir_flag_spec_CXX='-L$libdir'
13990
 
          export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
 
14059
          export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13991
14060
          allow_undefined_flag_CXX=unsupported
13992
14061
          always_export_symbols_CXX=no
13993
14062
          enable_shared_with_static_runtimes_CXX=yes
13994
14063
 
13995
14064
          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13996
 
            archive_cmds_CXX='$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'
13997
 
            # If the export-symbols file already is a .def file (1st line
13998
 
            # is EXPORTS), use it as is; otherwise, prepend...
13999
 
            archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14000
 
              cp $export_symbols $output_objdir/$soname.def;
14001
 
            else
14002
 
              echo EXPORTS > $output_objdir/$soname.def;
14003
 
              cat $export_symbols >> $output_objdir/$soname.def;
14004
 
            fi~
14005
 
            $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'
 
14065
            archive_cmds_CXX='$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'
 
14066
            # If the export-symbols file already is a .def file, use it as
 
14067
            # is; otherwise, prepend EXPORTS...
 
14068
            archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
 
14069
              cp $export_symbols $output_objdir/$soname.def;
 
14070
            else
 
14071
              echo EXPORTS > $output_objdir/$soname.def;
 
14072
              cat $export_symbols >> $output_objdir/$soname.def;
 
14073
            fi~
 
14074
            $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'
14006
14075
          else
14007
14076
            ld_shlibs_CXX=no
14008
14077
          fi
14016
14085
  hardcode_direct_CXX=no
14017
14086
  hardcode_automatic_CXX=yes
14018
14087
  hardcode_shlibpath_var_CXX=unsupported
14019
 
  if test "$lt_cv_ld_force_load" = "yes"; then
14020
 
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
 
14088
  if test yes = "$lt_cv_ld_force_load"; then
 
14089
    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14021
14090
 
14022
14091
  else
14023
14092
    whole_archive_flag_spec_CXX=''
14024
14093
  fi
14025
14094
  link_all_deplibs_CXX=yes
14026
 
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
14095
  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14027
14096
  case $cc_basename in
14028
 
     ifort*) _lt_dar_can_shared=yes ;;
 
14097
     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14029
14098
     *) _lt_dar_can_shared=$GCC ;;
14030
14099
  esac
14031
 
  if test "$_lt_dar_can_shared" = "yes"; then
 
14100
  if test yes = "$_lt_dar_can_shared"; then
14032
14101
    output_verbose_link_cmd=func_echo_all
14033
 
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14034
 
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14035
 
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14036
 
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14037
 
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14038
 
      archive_cmds_CXX="\$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${_lt_dsymutil}"
14039
 
      archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
 
14102
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
 
14103
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
 
14104
    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
 
14105
    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
 
14106
       if test yes != "$lt_cv_apple_cc_single_mod"; then
 
14107
      archive_cmds_CXX="\$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$_lt_dsymutil"
 
14108
      archive_expsym_cmds_CXX="sed '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$_lt_dar_export_syms$_lt_dsymutil"
14040
14109
    fi
14041
14110
 
14042
14111
  else
14080
14149
        ;;
14081
14150
 
14082
14151
      haiku*)
14083
 
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14152
        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14084
14153
        link_all_deplibs_CXX=yes
14085
14154
        ;;
14086
14155
 
14087
14156
      hpux9*)
14088
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
14157
        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14089
14158
        hardcode_libdir_separator_CXX=:
14090
 
        export_dynamic_flag_spec_CXX='${wl}-E'
 
14159
        export_dynamic_flag_spec_CXX='$wl-E'
14091
14160
        hardcode_direct_CXX=yes
14092
14161
        hardcode_minus_L_CXX=yes # Not in the search PATH,
14093
14162
                                             # but as the default
14099
14168
            ld_shlibs_CXX=no
14100
14169
            ;;
14101
14170
          aCC*)
14102
 
            archive_cmds_CXX='$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'
 
14171
            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14103
14172
            # Commands to make compiler produce verbose output that lists
14104
14173
            # what "hidden" libraries, object files and flags are used when
14105
14174
            # linking a shared library.
14108
14177
            # explicitly linking system object files so we need to strip them
14109
14178
            # from the output so that they don't get included in the library
14110
14179
            # dependencies.
14111
 
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
 
14180
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14112
14181
            ;;
14113
14182
          *)
14114
 
            if test "$GXX" = yes; then
14115
 
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
 
14183
            if test yes = "$GXX"; then
 
14184
              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14116
14185
            else
14117
14186
              # FIXME: insert proper C++ library support
14118
14187
              ld_shlibs_CXX=no
14122
14191
        ;;
14123
14192
 
14124
14193
      hpux10*|hpux11*)
14125
 
        if test $with_gnu_ld = no; then
14126
 
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
14194
        if test no = "$with_gnu_ld"; then
 
14195
          hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14127
14196
          hardcode_libdir_separator_CXX=:
14128
14197
 
14129
14198
          case $host_cpu in
14130
14199
            hppa*64*|ia64*)
14131
14200
              ;;
14132
14201
            *)
14133
 
              export_dynamic_flag_spec_CXX='${wl}-E'
 
14202
              export_dynamic_flag_spec_CXX='$wl-E'
14134
14203
              ;;
14135
14204
          esac
14136
14205
        fi
14156
14225
          aCC*)
14157
14226
            case $host_cpu in
14158
14227
              hppa*64*)
14159
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14228
                archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14160
14229
                ;;
14161
14230
              ia64*)
14162
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14231
                archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14163
14232
                ;;
14164
14233
              *)
14165
 
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14234
                archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14166
14235
                ;;
14167
14236
            esac
14168
14237
            # Commands to make compiler produce verbose output that lists
14173
14242
            # explicitly linking system object files so we need to strip them
14174
14243
            # from the output so that they don't get included in the library
14175
14244
            # dependencies.
14176
 
            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; func_echo_all "$list"'
 
14245
            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; func_echo_all "$list"'
14177
14246
            ;;
14178
14247
          *)
14179
 
            if test "$GXX" = yes; then
14180
 
              if test $with_gnu_ld = no; then
 
14248
            if test yes = "$GXX"; then
 
14249
              if test no = "$with_gnu_ld"; then
14181
14250
                case $host_cpu in
14182
14251
                  hppa*64*)
14183
 
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14252
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14184
14253
                    ;;
14185
14254
                  ia64*)
14186
 
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14255
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14187
14256
                    ;;
14188
14257
                  *)
14189
 
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14258
                    archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14190
14259
                    ;;
14191
14260
                esac
14192
14261
              fi
14201
14270
      interix[3-9]*)
14202
14271
        hardcode_direct_CXX=no
14203
14272
        hardcode_shlibpath_var_CXX=no
14204
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14205
 
        export_dynamic_flag_spec_CXX='${wl}-E'
 
14273
        hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 
14274
        export_dynamic_flag_spec_CXX='$wl-E'
14206
14275
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14207
14276
        # Instead, shared libraries are loaded at an image base (0x10000000 by
14208
14277
        # default) and relocated if they conflict, which is a slow very memory
14209
14278
        # consuming and fragmenting process.  To avoid this, we pick a random,
14210
14279
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14211
14280
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14212
 
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14213
 
        archive_expsym_cmds_CXX='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'
 
14281
        archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
14282
        archive_expsym_cmds_CXX='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'
14214
14283
        ;;
14215
14284
      irix5* | irix6*)
14216
14285
        case $cc_basename in
14217
14286
          CC*)
14218
14287
            # SGI C++
14219
 
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
14288
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14220
14289
 
14221
14290
            # Archives containing C++ object files must be created using
14222
14291
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14225
14294
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14226
14295
            ;;
14227
14296
          *)
14228
 
            if test "$GXX" = yes; then
14229
 
              if test "$with_gnu_ld" = no; then
14230
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14297
            if test yes = "$GXX"; then
 
14298
              if test no = "$with_gnu_ld"; then
 
14299
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14231
14300
              else
14232
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
 
14301
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
14233
14302
              fi
14234
14303
            fi
14235
14304
            link_all_deplibs_CXX=yes
14236
14305
            ;;
14237
14306
        esac
14238
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14307
        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14239
14308
        hardcode_libdir_separator_CXX=:
14240
14309
        inherit_rpath_CXX=yes
14241
14310
        ;;
14248
14317
            # KCC will only create a shared library if the output file
14249
14318
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
14250
14319
            # to its proper name (with version) after linking.
14251
 
            archive_cmds_CXX='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'
14252
 
            archive_expsym_cmds_CXX='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'
 
14320
            archive_cmds_CXX='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'
 
14321
            archive_expsym_cmds_CXX='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'
14253
14322
            # Commands to make compiler produce verbose output that lists
14254
14323
            # what "hidden" libraries, object files and flags are used when
14255
14324
            # linking a shared library.
14258
14327
            # explicitly linking system object files so we need to strip them
14259
14328
            # from the output so that they don't get included in the library
14260
14329
            # dependencies.
14261
 
            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; func_echo_all "$list"'
 
14330
            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; func_echo_all "$list"'
14262
14331
 
14263
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14264
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
14332
            hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 
14333
            export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14265
14334
 
14266
14335
            # Archives containing C++ object files must be created using
14267
14336
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14275
14344
            # earlier do not add the objects themselves.
14276
14345
            case `$CC -V 2>&1` in
14277
14346
              *"Version 7."*)
14278
 
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14279
 
                archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14347
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
14348
                archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14280
14349
                ;;
14281
14350
              *)  # Version 8.0 or newer
14282
14351
                tmp_idyn=
14283
14352
                case $host_cpu in
14284
14353
                  ia64*) tmp_idyn=' -i_dynamic';;
14285
14354
                esac
14286
 
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14287
 
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14355
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
14356
                archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14288
14357
                ;;
14289
14358
            esac
14290
14359
            archive_cmds_need_lc_CXX=no
14291
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14292
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14293
 
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
14360
            hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 
14361
            export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 
14362
            whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14294
14363
            ;;
14295
14364
          pgCC* | pgcpp*)
14296
14365
            # Portland Group C++ compiler
14297
14366
            case `$CC -V` in
14298
14367
            *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14299
14368
              prelink_cmds_CXX='tpldir=Template.dir~
14300
 
                rm -rf $tpldir~
14301
 
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14302
 
                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 
14369
               rm -rf $tpldir~
 
14370
               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
14371
               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14303
14372
              old_archive_cmds_CXX='tpldir=Template.dir~
14304
 
                rm -rf $tpldir~
14305
 
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14306
 
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14307
 
                $RANLIB $oldlib'
 
14373
                rm -rf $tpldir~
 
14374
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
14375
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 
14376
                $RANLIB $oldlib'
14308
14377
              archive_cmds_CXX='tpldir=Template.dir~
14309
 
                rm -rf $tpldir~
14310
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14311
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
14378
                rm -rf $tpldir~
 
14379
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
14380
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14312
14381
              archive_expsym_cmds_CXX='tpldir=Template.dir~
14313
 
                rm -rf $tpldir~
14314
 
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14315
 
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
14382
                rm -rf $tpldir~
 
14383
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
14384
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14316
14385
              ;;
14317
14386
            *) # Version 6 and above use weak symbols
14318
 
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14319
 
              archive_expsym_cmds_CXX='$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'
 
14387
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
14388
              archive_expsym_cmds_CXX='$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'
14320
14389
              ;;
14321
14390
            esac
14322
14391
 
14323
 
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14324
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14325
 
            whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
14392
            hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
 
14393
            export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 
14394
            whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14326
14395
            ;;
14327
14396
          cxx*)
14328
14397
            # Compaq C++
14329
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14330
 
            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
14398
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 
14399
            archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
14331
14400
 
14332
14401
            runpath_var=LD_RUN_PATH
14333
14402
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14341
14410
            # explicitly linking system object files so we need to strip them
14342
14411
            # from the output so that they don't get included in the library
14343
14412
            # dependencies.
14344
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
 
14413
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
14345
14414
            ;;
14346
14415
          xl* | mpixl* | bgxl*)
14347
14416
            # IBM XL 8.0 on PPC, with GNU ld
14348
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14349
 
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14350
 
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14351
 
            if test "x$supports_anon_versioning" = xyes; then
 
14417
            hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
 
14418
            export_dynamic_flag_spec_CXX='$wl--export-dynamic'
 
14419
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 
14420
            if test yes = "$supports_anon_versioning"; then
14352
14421
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14353
 
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14354
 
                echo "local: *; };" >> $output_objdir/$libname.ver~
14355
 
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14422
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14423
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
14424
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14356
14425
            fi
14357
14426
            ;;
14358
14427
          *)
14360
14429
            *Sun\ C*)
14361
14430
              # Sun C++ 5.9
14362
14431
              no_undefined_flag_CXX=' -zdefs'
14363
 
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14364
 
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
14432
              archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14433
              archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
14365
14434
              hardcode_libdir_flag_spec_CXX='-R$libdir'
14366
 
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
 
14435
              whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
14367
14436
              compiler_needs_object_CXX=yes
14368
14437
 
14369
14438
              # Not sure whether something based on
14421
14490
        ld_shlibs_CXX=yes
14422
14491
        ;;
14423
14492
 
14424
 
      openbsd2*)
14425
 
        # C++ shared libraries are fairly broken
14426
 
        ld_shlibs_CXX=no
14427
 
        ;;
14428
 
 
14429
 
      openbsd*)
 
14493
      openbsd* | bitrig*)
14430
14494
        if test -f /usr/libexec/ld.so; then
14431
14495
          hardcode_direct_CXX=yes
14432
14496
          hardcode_shlibpath_var_CXX=no
14433
14497
          hardcode_direct_absolute_CXX=yes
14434
14498
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14435
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14436
 
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14437
 
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14438
 
            export_dynamic_flag_spec_CXX='${wl}-E'
14439
 
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14499
          hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
 
14500
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
 
14501
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
 
14502
            export_dynamic_flag_spec_CXX='$wl-E'
 
14503
            whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14440
14504
          fi
14441
14505
          output_verbose_link_cmd=func_echo_all
14442
14506
        else
14452
14516
            # KCC will only create a shared library if the output file
14453
14517
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
14454
14518
            # to its proper name (with version) after linking.
14455
 
            archive_cmds_CXX='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'
 
14519
            archive_cmds_CXX='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'
14456
14520
 
14457
 
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
14521
            hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14458
14522
            hardcode_libdir_separator_CXX=:
14459
14523
 
14460
14524
            # Archives containing C++ object files must be created using
14472
14536
          cxx*)
14473
14537
            case $host in
14474
14538
              osf3*)
14475
 
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14476
 
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14477
 
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14539
                allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
 
14540
                archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
 
14541
                hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14478
14542
                ;;
14479
14543
              *)
14480
14544
                allow_undefined_flag_CXX=' -expect_unresolved \*'
14481
 
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
 
14545
                archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
14482
14546
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14483
 
                  echo "-hidden">> $lib.exp~
14484
 
                  $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~
14485
 
                  $RM $lib.exp'
 
14547
                  echo "-hidden">> $lib.exp~
 
14548
                  $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~
 
14549
                  $RM $lib.exp'
14486
14550
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14487
14551
                ;;
14488
14552
            esac
14497
14561
            # explicitly linking system object files so we need to strip them
14498
14562
            # from the output so that they don't get included in the library
14499
14563
            # dependencies.
14500
 
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
 
14564
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
14501
14565
            ;;
14502
14566
          *)
14503
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14504
 
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
14567
            if test yes,no = "$GXX,$with_gnu_ld"; then
 
14568
              allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14505
14569
              case $host in
14506
14570
                osf3*)
14507
 
                  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14571
                  archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14508
14572
                  ;;
14509
14573
                *)
14510
 
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14574
                  archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
14511
14575
                  ;;
14512
14576
              esac
14513
14577
 
14514
 
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14578
              hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14515
14579
              hardcode_libdir_separator_CXX=:
14516
14580
 
14517
14581
              # Commands to make compiler produce verbose output that lists
14557
14621
            # Sun C++ 4.2, 5.x and Centerline C++
14558
14622
            archive_cmds_need_lc_CXX=yes
14559
14623
            no_undefined_flag_CXX=' -zdefs'
14560
 
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14624
            archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14561
14625
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14562
 
              $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'
 
14626
              $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'
14563
14627
 
14564
14628
            hardcode_libdir_flag_spec_CXX='-R$libdir'
14565
14629
            hardcode_shlibpath_var_CXX=no
14567
14631
              solaris2.[0-5] | solaris2.[0-5].*) ;;
14568
14632
              *)
14569
14633
                # The compiler driver will combine and reorder linker options,
14570
 
                # but understands `-z linker_flag'.
 
14634
                # but understands '-z linker_flag'.
14571
14635
                # Supported since Solaris 2.6 (maybe 2.5.1?)
14572
14636
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14573
14637
                ;;
14584
14648
            ;;
14585
14649
          gcx*)
14586
14650
            # Green Hills C++ Compiler
14587
 
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14651
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14588
14652
 
14589
14653
            # The C++ compiler must be used to create the archive.
14590
14654
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14591
14655
            ;;
14592
14656
          *)
14593
14657
            # GNU C++ compiler with Solaris linker
14594
 
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14595
 
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
14658
            if test yes,no = "$GXX,$with_gnu_ld"; then
 
14659
              no_undefined_flag_CXX=' $wl-z ${wl}defs'
14596
14660
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14597
 
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14661
                archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14598
14662
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14599
 
                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
14663
                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14600
14664
 
14601
14665
                # Commands to make compiler produce verbose output that lists
14602
14666
                # what "hidden" libraries, object files and flags are used when
14603
14667
                # linking a shared library.
14604
14668
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14605
14669
              else
14606
 
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
14670
                # g++ 2.7 appears to require '-G' NOT '-shared' on this
14607
14671
                # platform.
14608
 
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14672
                archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14609
14673
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14610
 
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
14674
                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14611
14675
 
14612
14676
                # Commands to make compiler produce verbose output that lists
14613
14677
                # what "hidden" libraries, object files and flags are used when
14615
14679
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14616
14680
              fi
14617
14681
 
14618
 
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
14682
              hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14619
14683
              case $host_os in
14620
14684
                solaris2.[0-5] | solaris2.[0-5].*) ;;
14621
14685
                *)
14622
 
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
14686
                  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14623
14687
                  ;;
14624
14688
              esac
14625
14689
            fi
14628
14692
        ;;
14629
14693
 
14630
14694
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14631
 
      no_undefined_flag_CXX='${wl}-z,text'
 
14695
      no_undefined_flag_CXX='$wl-z,text'
14632
14696
      archive_cmds_need_lc_CXX=no
14633
14697
      hardcode_shlibpath_var_CXX=no
14634
14698
      runpath_var='LD_RUN_PATH'
14635
14699
 
14636
14700
      case $cc_basename in
14637
14701
        CC*)
14638
 
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14639
 
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14702
          archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14703
          archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14640
14704
          ;;
14641
14705
        *)
14642
 
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14643
 
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14706
          archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14707
          archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14644
14708
          ;;
14645
14709
      esac
14646
14710
      ;;
14647
14711
 
14648
14712
      sysv5* | sco3.2v5* | sco5v6*)
14649
 
        # Note: We can NOT use -z defs as we might desire, because we do not
 
14713
        # Note: We CANNOT use -z defs as we might desire, because we do not
14650
14714
        # link with -lc, and that would cause any symbols used from libc to
14651
14715
        # always be unresolved, which means just about no library would
14652
14716
        # ever link correctly.  If we're not using GNU ld we use -z text
14653
14717
        # though, which does catch some bad symbols but isn't as heavy-handed
14654
14718
        # as -z defs.
14655
 
        no_undefined_flag_CXX='${wl}-z,text'
14656
 
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
14719
        no_undefined_flag_CXX='$wl-z,text'
 
14720
        allow_undefined_flag_CXX='$wl-z,nodefs'
14657
14721
        archive_cmds_need_lc_CXX=no
14658
14722
        hardcode_shlibpath_var_CXX=no
14659
 
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
14723
        hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14660
14724
        hardcode_libdir_separator_CXX=':'
14661
14725
        link_all_deplibs_CXX=yes
14662
 
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
14726
        export_dynamic_flag_spec_CXX='$wl-Bexport'
14663
14727
        runpath_var='LD_RUN_PATH'
14664
14728
 
14665
14729
        case $cc_basename in
14666
14730
          CC*)
14667
 
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14668
 
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14731
            archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14732
            archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14669
14733
            old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14670
 
              '"$old_archive_cmds_CXX"
 
14734
              '"$old_archive_cmds_CXX"
14671
14735
            reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14672
 
              '"$reload_cmds_CXX"
 
14736
              '"$reload_cmds_CXX"
14673
14737
            ;;
14674
14738
          *)
14675
 
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14676
 
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14739
            archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14740
            archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14677
14741
            ;;
14678
14742
        esac
14679
14743
      ;;
14705
14769
 
14706
14770
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14707
14771
$as_echo "$ld_shlibs_CXX" >&6; }
14708
 
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14772
    test no = "$ld_shlibs_CXX" && can_build_shared=no
14709
14773
 
14710
 
    GCC_CXX="$GXX"
14711
 
    LD_CXX="$LD"
 
14774
    GCC_CXX=$GXX
 
14775
    LD_CXX=$LD
14712
14776
 
14713
14777
    ## CAVEAT EMPTOR:
14714
14778
    ## There is no encapsulation within the following macros, do not change
14752
14816
  pre_test_object_deps_done=no
14753
14817
 
14754
14818
  for p in `eval "$output_verbose_link_cmd"`; do
14755
 
    case ${prev}${p} in
 
14819
    case $prev$p in
14756
14820
 
14757
14821
    -L* | -R* | -l*)
14758
14822
       # Some compilers place space between "-{L,R}" and the path.
14759
14823
       # Remove the space.
14760
 
       if test $p = "-L" ||
14761
 
          test $p = "-R"; then
 
14824
       if test x-L = "$p" ||
 
14825
          test x-R = "$p"; then
14762
14826
         prev=$p
14763
14827
         continue
14764
14828
       fi
14774
14838
       case $p in
14775
14839
       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14776
14840
       esac
14777
 
       if test "$pre_test_object_deps_done" = no; then
14778
 
         case ${prev} in
 
14841
       if test no = "$pre_test_object_deps_done"; then
 
14842
         case $prev in
14779
14843
         -L | -R)
14780
14844
           # Internal compiler library paths should come after those
14781
14845
           # provided the user.  The postdeps already come after the
14782
14846
           # user supplied libs so there is no need to process them.
14783
14847
           if test -z "$compiler_lib_search_path_CXX"; then
14784
 
             compiler_lib_search_path_CXX="${prev}${p}"
 
14848
             compiler_lib_search_path_CXX=$prev$p
14785
14849
           else
14786
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
14850
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14787
14851
           fi
14788
14852
           ;;
14789
14853
         # The "-l" case would never come before the object being
14791
14855
         esac
14792
14856
       else
14793
14857
         if test -z "$postdeps_CXX"; then
14794
 
           postdeps_CXX="${prev}${p}"
 
14858
           postdeps_CXX=$prev$p
14795
14859
         else
14796
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
14860
           postdeps_CXX="${postdeps_CXX} $prev$p"
14797
14861
         fi
14798
14862
       fi
14799
14863
       prev=
14808
14872
         continue
14809
14873
       fi
14810
14874
 
14811
 
       if test "$pre_test_object_deps_done" = no; then
 
14875
       if test no = "$pre_test_object_deps_done"; then
14812
14876
         if test -z "$predep_objects_CXX"; then
14813
 
           predep_objects_CXX="$p"
 
14877
           predep_objects_CXX=$p
14814
14878
         else
14815
14879
           predep_objects_CXX="$predep_objects_CXX $p"
14816
14880
         fi
14817
14881
       else
14818
14882
         if test -z "$postdep_objects_CXX"; then
14819
 
           postdep_objects_CXX="$p"
 
14883
           postdep_objects_CXX=$p
14820
14884
         else
14821
14885
           postdep_objects_CXX="$postdep_objects_CXX $p"
14822
14886
         fi
14862
14926
      ;;
14863
14927
    esac
14864
14928
 
14865
 
    if test "$solaris_use_stlport4" != yes; then
 
14929
    if test yes != "$solaris_use_stlport4"; then
14866
14930
      postdeps_CXX='-library=Cstd -library=Crun'
14867
14931
    fi
14868
14932
    ;;
14885
14949
    # Adding this requires a known-good setup of shared libraries for
14886
14950
    # Sun compiler versions before 5.6, else PIC objects from an old
14887
14951
    # archive will be linked into the output, leading to subtle bugs.
14888
 
    if test "$solaris_use_stlport4" != yes; then
 
14952
    if test yes != "$solaris_use_stlport4"; then
14889
14953
      postdeps_CXX='-library=Cstd -library=Crun'
14890
14954
    fi
14891
14955
    ;;
14899
14963
esac
14900
14964
 compiler_lib_search_dirs_CXX=
14901
14965
if test -n "${compiler_lib_search_path_CXX}"; then
14902
 
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
14966
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14903
14967
fi
14904
14968
 
14905
14969
 
14938
15002
 
14939
15003
 
14940
15004
  # C++ specific cases for pic, static, wl, etc.
14941
 
  if test "$GXX" = yes; then
 
15005
  if test yes = "$GXX"; then
14942
15006
    lt_prog_compiler_wl_CXX='-Wl,'
14943
15007
    lt_prog_compiler_static_CXX='-static'
14944
15008
 
14945
15009
    case $host_os in
14946
15010
    aix*)
14947
15011
      # All AIX code is PIC.
14948
 
      if test "$host_cpu" = ia64; then
 
15012
      if test ia64 = "$host_cpu"; then
14949
15013
        # AIX 5 now supports IA64 processor
14950
15014
        lt_prog_compiler_static_CXX='-Bstatic'
14951
15015
      fi
 
15016
      lt_prog_compiler_pic_CXX='-fPIC'
14952
15017
      ;;
14953
15018
 
14954
15019
    amigaos*)
14959
15024
        ;;
14960
15025
      m68k)
14961
15026
            # FIXME: we need at least 68020 code to build shared libraries, but
14962
 
            # adding the `-m68020' flag to GCC prevents building anything better,
14963
 
            # like `-m68040'.
 
15027
            # adding the '-m68020' flag to GCC prevents building anything better,
 
15028
            # like '-m68040'.
14964
15029
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14965
15030
        ;;
14966
15031
      esac
15024
15089
    case $host_os in
15025
15090
      aix[4-9]*)
15026
15091
        # All AIX code is PIC.
15027
 
        if test "$host_cpu" = ia64; then
 
15092
        if test ia64 = "$host_cpu"; then
15028
15093
          # AIX 5 now supports IA64 processor
15029
15094
          lt_prog_compiler_static_CXX='-Bstatic'
15030
15095
        else
15064
15129
        case $cc_basename in
15065
15130
          CC*)
15066
15131
            lt_prog_compiler_wl_CXX='-Wl,'
15067
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15068
 
            if test "$host_cpu" != ia64; then
 
15132
            lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
 
15133
            if test ia64 != "$host_cpu"; then
15069
15134
              lt_prog_compiler_pic_CXX='+Z'
15070
15135
            fi
15071
15136
            ;;
15072
15137
          aCC*)
15073
15138
            lt_prog_compiler_wl_CXX='-Wl,'
15074
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
15139
            lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15075
15140
            case $host_cpu in
15076
15141
            hppa*64*|ia64*)
15077
15142
              # +Z the default
15108
15173
            lt_prog_compiler_pic_CXX='-fPIC'
15109
15174
            ;;
15110
15175
          ecpc* )
15111
 
            # old Intel C++ for x86_64 which still supported -KPIC.
 
15176
            # old Intel C++ for x86_64, which still supported -KPIC.
15112
15177
            lt_prog_compiler_wl_CXX='-Wl,'
15113
15178
            lt_prog_compiler_pic_CXX='-KPIC'
15114
15179
            lt_prog_compiler_static_CXX='-static'
15164
15229
            ;;
15165
15230
        esac
15166
15231
        ;;
15167
 
      netbsd* | netbsdelf*-gnu)
 
15232
      netbsd*)
15168
15233
        ;;
15169
15234
      *qnx* | *nto*)
15170
15235
        # QNX uses GNU C++, but need to define -shared option too, otherwise
15253
15318
  fi
15254
15319
 
15255
15320
case $host_os in
15256
 
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15321
  # For platforms that do not support PIC, -DPIC is meaningless:
15257
15322
  *djgpp*)
15258
15323
    lt_prog_compiler_pic_CXX=
15259
15324
    ;;
15285
15350
  lt_cv_prog_compiler_pic_works_CXX=no
15286
15351
   ac_outfile=conftest.$ac_objext
15287
15352
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15288
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
15353
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15289
15354
   # Insert the option either (1) after the last *FLAGS variable, or
15290
15355
   # (2) before a word containing "conftest.", or (3) at the end.
15291
15356
   # Note that $ac_compile itself does not contain backslashes and begins
15315
15380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15316
15381
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15317
15382
 
15318
 
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
15383
if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15319
15384
    case $lt_prog_compiler_pic_CXX in
15320
15385
     "" | " "*) ;;
15321
15386
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15341
15406
  $as_echo_n "(cached) " >&6
15342
15407
else
15343
15408
  lt_cv_prog_compiler_static_works_CXX=no
15344
 
   save_LDFLAGS="$LDFLAGS"
 
15409
   save_LDFLAGS=$LDFLAGS
15345
15410
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15346
15411
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15347
15412
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15360
15425
     fi
15361
15426
   fi
15362
15427
   $RM -r conftest*
15363
 
   LDFLAGS="$save_LDFLAGS"
 
15428
   LDFLAGS=$save_LDFLAGS
15364
15429
 
15365
15430
fi
15366
15431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15367
15432
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15368
15433
 
15369
 
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
15434
if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15370
15435
    :
15371
15436
else
15372
15437
    lt_prog_compiler_static_CXX=
15480
15545
 
15481
15546
 
15482
15547
 
15483
 
hard_links="nottested"
15484
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
15548
hard_links=nottested
 
15549
if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15485
15550
  # do not overwrite the value of need_locks provided by the user
15486
15551
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15487
15552
$as_echo_n "checking if we can lock with hard links... " >&6; }
15493
15558
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15494
15559
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15495
15560
$as_echo "$hard_links" >&6; }
15496
 
  if test "$hard_links" = no; then
15497
 
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15498
 
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15561
  if test no = "$hard_links"; then
 
15562
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
 
15563
$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15499
15564
    need_locks=warn
15500
15565
  fi
15501
15566
else
15522
15587
    fi
15523
15588
    ;;
15524
15589
  pw32*)
15525
 
    export_symbols_cmds_CXX="$ltdll_cmds"
 
15590
    export_symbols_cmds_CXX=$ltdll_cmds
15526
15591
    ;;
15527
15592
  cygwin* | mingw* | cegcc*)
15528
15593
    case $cc_basename in
15535
15600
      ;;
15536
15601
    esac
15537
15602
    ;;
15538
 
  linux* | k*bsd*-gnu | gnu*)
15539
 
    link_all_deplibs_CXX=no
15540
 
    ;;
15541
15603
  *)
15542
15604
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15543
15605
    ;;
15545
15607
 
15546
15608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15547
15609
$as_echo "$ld_shlibs_CXX" >&6; }
15548
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
15610
test no = "$ld_shlibs_CXX" && can_build_shared=no
15549
15611
 
15550
15612
with_gnu_ld_CXX=$with_gnu_ld
15551
15613
 
15562
15624
  # Assume -lc should be added
15563
15625
  archive_cmds_need_lc_CXX=yes
15564
15626
 
15565
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15627
  if test yes,yes = "$GCC,$enable_shared"; then
15566
15628
    case $archive_cmds_CXX in
15567
15629
    *'~'*)
15568
15630
      # FIXME: we may have to deal with multi-command sequences.
15690
15752
library_names_spec=
15691
15753
libname_spec='lib$name'
15692
15754
soname_spec=
15693
 
shrext_cmds=".so"
 
15755
shrext_cmds=.so
15694
15756
postinstall_cmds=
15695
15757
postuninstall_cmds=
15696
15758
finish_cmds=
15710
15772
case $host_os in
15711
15773
aix3*)
15712
15774
  version_type=linux # correct to gnu/linux during the next big refactor
15713
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15775
  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15714
15776
  shlibpath_var=LIBPATH
15715
15777
 
15716
15778
  # AIX 3 has no versioning support, so we append a major version to the name.
15717
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
15779
  soname_spec='$libname$release$shared_ext$major'
15718
15780
  ;;
15719
15781
 
15720
15782
aix[4-9]*)
15722
15784
  need_lib_prefix=no
15723
15785
  need_version=no
15724
15786
  hardcode_into_libs=yes
15725
 
  if test "$host_cpu" = ia64; then
 
15787
  if test ia64 = "$host_cpu"; then
15726
15788
    # AIX 5 supports IA64
15727
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15789
    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15728
15790
    shlibpath_var=LD_LIBRARY_PATH
15729
15791
  else
15730
15792
    # With GCC up to 2.95.x, collect2 would create an import file
15731
15793
    # for dependence libraries.  The import file would start with
15732
 
    # the line `#! .'.  This would cause the generated library to
15733
 
    # depend on `.', always an invalid library.  This was fixed in
 
15794
    # the line '#! .'.  This would cause the generated library to
 
15795
    # depend on '.', always an invalid library.  This was fixed in
15734
15796
    # development snapshots of GCC prior to 3.0.
15735
15797
    case $host_os in
15736
15798
      aix4 | aix4.[01] | aix4.[01].*)
15737
15799
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15738
15800
           echo ' yes '
15739
 
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
15801
           echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15740
15802
        :
15741
15803
      else
15742
15804
        can_build_shared=no
15743
15805
      fi
15744
15806
      ;;
15745
15807
    esac
15746
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15808
    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15747
15809
    # soname into executable. Probably we can add versioning support to
15748
15810
    # collect2, so additional links can be useful in future.
15749
 
    if test "$aix_use_runtimelinking" = yes; then
 
15811
    if test yes = "$aix_use_runtimelinking"; then
15750
15812
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15751
15813
      # instead of lib<name>.a to let people know that these are not
15752
15814
      # typical AIX shared libraries.
15753
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15815
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15754
15816
    else
15755
15817
      # We preserve .a as extension for shared libraries through AIX4.2
15756
15818
      # and later when we are not doing run time linking.
15757
 
      library_names_spec='${libname}${release}.a $libname.a'
15758
 
      soname_spec='${libname}${release}${shared_ext}$major'
 
15819
      library_names_spec='$libname$release.a $libname.a'
 
15820
      soname_spec='$libname$release$shared_ext$major'
15759
15821
    fi
15760
15822
    shlibpath_var=LIBPATH
15761
15823
  fi
15766
15828
  powerpc)
15767
15829
    # Since July 2007 AmigaOS4 officially supports .so libraries.
15768
15830
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15769
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15831
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15770
15832
    ;;
15771
15833
  m68k)
15772
15834
    library_names_spec='$libname.ixlibrary $libname.a'
15773
15835
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15774
 
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
15836
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15775
15837
    ;;
15776
15838
  esac
15777
15839
  ;;
15778
15840
 
15779
15841
beos*)
15780
 
  library_names_spec='${libname}${shared_ext}'
 
15842
  library_names_spec='$libname$shared_ext'
15781
15843
  dynamic_linker="$host_os ld.so"
15782
15844
  shlibpath_var=LIBRARY_PATH
15783
15845
  ;;
15785
15847
bsdi[45]*)
15786
15848
  version_type=linux # correct to gnu/linux during the next big refactor
15787
15849
  need_version=no
15788
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15789
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
15850
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
15851
  soname_spec='$libname$release$shared_ext$major'
15790
15852
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15791
15853
  shlibpath_var=LD_LIBRARY_PATH
15792
15854
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15798
15860
 
15799
15861
cygwin* | mingw* | pw32* | cegcc*)
15800
15862
  version_type=windows
15801
 
  shrext_cmds=".dll"
 
15863
  shrext_cmds=.dll
15802
15864
  need_version=no
15803
15865
  need_lib_prefix=no
15804
15866
 
15807
15869
    # gcc
15808
15870
    library_names_spec='$libname.dll.a'
15809
15871
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15810
 
    postinstall_cmds='base_file=`basename \${file}`~
15811
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15872
    postinstall_cmds='base_file=`basename \$file`~
 
15873
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15812
15874
      dldir=$destdir/`dirname \$dlpath`~
15813
15875
      test -d \$dldir || mkdir -p \$dldir~
15814
15876
      $install_prog $dir/$dlname \$dldir/$dlname~
15824
15886
    case $host_os in
15825
15887
    cygwin*)
15826
15888
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15827
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15889
      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15828
15890
 
15829
15891
      ;;
15830
15892
    mingw* | cegcc*)
15831
15893
      # MinGW DLLs use traditional 'lib' prefix
15832
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15894
      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15833
15895
      ;;
15834
15896
    pw32*)
15835
15897
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15836
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15898
      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15837
15899
      ;;
15838
15900
    esac
15839
15901
    dynamic_linker='Win32 ld.exe'
15842
15904
  *,cl*)
15843
15905
    # Native MSVC
15844
15906
    libname_spec='$name'
15845
 
    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15846
 
    library_names_spec='${libname}.dll.lib'
 
15907
    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
 
15908
    library_names_spec='$libname.dll.lib'
15847
15909
 
15848
15910
    case $build_os in
15849
15911
    mingw*)
15870
15932
      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15871
15933
      ;;
15872
15934
    *)
15873
 
      sys_lib_search_path_spec="$LIB"
 
15935
      sys_lib_search_path_spec=$LIB
15874
15936
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15875
15937
        # It is most probably a Windows format PATH.
15876
15938
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15883
15945
    esac
15884
15946
 
15885
15947
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15886
 
    postinstall_cmds='base_file=`basename \${file}`~
15887
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15948
    postinstall_cmds='base_file=`basename \$file`~
 
15949
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15888
15950
      dldir=$destdir/`dirname \$dlpath`~
15889
15951
      test -d \$dldir || mkdir -p \$dldir~
15890
15952
      $install_prog $dir/$dlname \$dldir/$dlname'
15897
15959
 
15898
15960
  *)
15899
15961
    # Assume MSVC wrapper
15900
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15962
    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15901
15963
    dynamic_linker='Win32 ld.exe'
15902
15964
    ;;
15903
15965
  esac
15910
15972
  version_type=darwin
15911
15973
  need_lib_prefix=no
15912
15974
  need_version=no
15913
 
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15914
 
  soname_spec='${libname}${release}${major}$shared_ext'
 
15975
  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
 
15976
  soname_spec='$libname$release$major$shared_ext'
15915
15977
  shlibpath_overrides_runpath=yes
15916
15978
  shlibpath_var=DYLD_LIBRARY_PATH
15917
15979
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15923
15985
  version_type=linux # correct to gnu/linux during the next big refactor
15924
15986
  need_lib_prefix=no
15925
15987
  need_version=no
15926
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15927
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
15988
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
15989
  soname_spec='$libname$release$shared_ext$major'
15928
15990
  shlibpath_var=LD_LIBRARY_PATH
15929
15991
  ;;
15930
15992
 
15942
16004
  version_type=freebsd-$objformat
15943
16005
  case $version_type in
15944
16006
    freebsd-elf*)
15945
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16007
      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15946
16008
      need_version=no
15947
16009
      need_lib_prefix=no
15948
16010
      ;;
15949
16011
    freebsd-*)
15950
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16012
      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15951
16013
      need_version=yes
15952
16014
      ;;
15953
16015
  esac
15977
16039
  need_lib_prefix=no
15978
16040
  need_version=no
15979
16041
  dynamic_linker="$host_os runtime_loader"
15980
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15981
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
16042
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
16043
  soname_spec='$libname$release$shared_ext$major'
15982
16044
  shlibpath_var=LIBRARY_PATH
15983
 
  shlibpath_overrides_runpath=yes
 
16045
  shlibpath_overrides_runpath=no
15984
16046
  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15985
16047
  hardcode_into_libs=yes
15986
16048
  ;;
15998
16060
    dynamic_linker="$host_os dld.so"
15999
16061
    shlibpath_var=LD_LIBRARY_PATH
16000
16062
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16001
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002
 
    soname_spec='${libname}${release}${shared_ext}$major'
16003
 
    if test "X$HPUX_IA64_MODE" = X32; then
 
16063
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
16064
    soname_spec='$libname$release$shared_ext$major'
 
16065
    if test 32 = "$HPUX_IA64_MODE"; then
16004
16066
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16005
16067
    else
16006
16068
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16013
16075
    dynamic_linker="$host_os dld.sl"
16014
16076
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16015
16077
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16016
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16017
 
    soname_spec='${libname}${release}${shared_ext}$major'
 
16078
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
16079
    soname_spec='$libname$release$shared_ext$major'
16018
16080
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16019
16081
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16020
16082
    ;;
16023
16085
    dynamic_linker="$host_os dld.sl"
16024
16086
    shlibpath_var=SHLIB_PATH
16025
16087
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16026
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16027
 
    soname_spec='${libname}${release}${shared_ext}$major'
 
16088
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
16089
    soname_spec='$libname$release$shared_ext$major'
16028
16090
    ;;
16029
16091
  esac
16030
16092
  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16037
16099
  version_type=linux # correct to gnu/linux during the next big refactor
16038
16100
  need_lib_prefix=no
16039
16101
  need_version=no
16040
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16041
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
16102
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
16103
  soname_spec='$libname$release$shared_ext$major'
16042
16104
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16043
16105
  shlibpath_var=LD_LIBRARY_PATH
16044
16106
  shlibpath_overrides_runpath=no
16049
16111
  case $host_os in
16050
16112
    nonstopux*) version_type=nonstopux ;;
16051
16113
    *)
16052
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16114
        if test yes = "$lt_cv_prog_gnu_ld"; then
16053
16115
                version_type=linux # correct to gnu/linux during the next big refactor
16054
16116
        else
16055
16117
                version_type=irix
16057
16119
  esac
16058
16120
  need_lib_prefix=no
16059
16121
  need_version=no
16060
 
  soname_spec='${libname}${release}${shared_ext}$major'
16061
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16122
  soname_spec='$libname$release$shared_ext$major'
 
16123
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16062
16124
  case $host_os in
16063
16125
  irix5* | nonstopux*)
16064
16126
    libsuff= shlibsuff=
16077
16139
  esac
16078
16140
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16079
16141
  shlibpath_overrides_runpath=no
16080
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16081
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16142
  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
 
16143
  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16082
16144
  hardcode_into_libs=yes
16083
16145
  ;;
16084
16146
 
16087
16149
  dynamic_linker=no
16088
16150
  ;;
16089
16151
 
 
16152
linux*android*)
 
16153
  version_type=none # Android doesn't support versioned libraries.
 
16154
  need_lib_prefix=no
 
16155
  need_version=no
 
16156
  library_names_spec='$libname$release$shared_ext'
 
16157
  soname_spec='$libname$release$shared_ext'
 
16158
  finish_cmds=
 
16159
  shlibpath_var=LD_LIBRARY_PATH
 
16160
  shlibpath_overrides_runpath=yes
 
16161
 
 
16162
  # This implies no fast_install, which is unacceptable.
 
16163
  # Some rework will be needed to allow for fast_install
 
16164
  # before this can be enabled.
 
16165
  hardcode_into_libs=yes
 
16166
 
 
16167
  dynamic_linker='Android linker'
 
16168
  # Don't embed -rpath directories since the linker doesn't support them.
 
16169
  hardcode_libdir_flag_spec_CXX='-L$libdir'
 
16170
  ;;
 
16171
 
16090
16172
# This must be glibc/ELF.
16091
16173
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16092
16174
  version_type=linux # correct to gnu/linux during the next big refactor
16093
16175
  need_lib_prefix=no
16094
16176
  need_version=no
16095
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
16177
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
16178
  soname_spec='$libname$release$shared_ext$major'
16097
16179
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16098
16180
  shlibpath_var=LD_LIBRARY_PATH
16099
16181
  shlibpath_overrides_runpath=no
16152
16234
  dynamic_linker='GNU/Linux ld.so'
16153
16235
  ;;
16154
16236
 
16155
 
netbsdelf*-gnu)
16156
 
  version_type=linux
16157
 
  need_lib_prefix=no
16158
 
  need_version=no
16159
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16160
 
  soname_spec='${libname}${release}${shared_ext}$major'
16161
 
  shlibpath_var=LD_LIBRARY_PATH
16162
 
  shlibpath_overrides_runpath=no
16163
 
  hardcode_into_libs=yes
16164
 
  dynamic_linker='NetBSD ld.elf_so'
16165
 
  ;;
16166
 
 
16167
16237
netbsd*)
16168
16238
  version_type=sunos
16169
16239
  need_lib_prefix=no
16170
16240
  need_version=no
16171
16241
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16172
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16242
    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16173
16243
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16174
16244
    dynamic_linker='NetBSD (a.out) ld.so'
16175
16245
  else
16176
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16177
 
    soname_spec='${libname}${release}${shared_ext}$major'
 
16246
    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
16247
    soname_spec='$libname$release$shared_ext$major'
16178
16248
    dynamic_linker='NetBSD ld.elf_so'
16179
16249
  fi
16180
16250
  shlibpath_var=LD_LIBRARY_PATH
16184
16254
 
16185
16255
newsos6)
16186
16256
  version_type=linux # correct to gnu/linux during the next big refactor
16187
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16257
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16188
16258
  shlibpath_var=LD_LIBRARY_PATH
16189
16259
  shlibpath_overrides_runpath=yes
16190
16260
  ;;
16193
16263
  version_type=qnx
16194
16264
  need_lib_prefix=no
16195
16265
  need_version=no
16196
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
16266
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
16267
  soname_spec='$libname$release$shared_ext$major'
16198
16268
  shlibpath_var=LD_LIBRARY_PATH
16199
16269
  shlibpath_overrides_runpath=no
16200
16270
  hardcode_into_libs=yes
16201
16271
  dynamic_linker='ldqnx.so'
16202
16272
  ;;
16203
16273
 
16204
 
openbsd*)
 
16274
openbsd* | bitrig*)
16205
16275
  version_type=sunos
16206
 
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16276
  sys_lib_dlsearch_path_spec=/usr/lib
16207
16277
  need_lib_prefix=no
16208
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16209
 
  case $host_os in
16210
 
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16211
 
    *)                          need_version=no  ;;
16212
 
  esac
16213
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16278
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 
16279
    need_version=no
 
16280
  else
 
16281
    need_version=yes
 
16282
  fi
 
16283
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16214
16284
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16215
16285
  shlibpath_var=LD_LIBRARY_PATH
16216
 
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16217
 
    case $host_os in
16218
 
      openbsd2.[89] | openbsd2.[89].*)
16219
 
        shlibpath_overrides_runpath=no
16220
 
        ;;
16221
 
      *)
16222
 
        shlibpath_overrides_runpath=yes
16223
 
        ;;
16224
 
      esac
16225
 
  else
16226
 
    shlibpath_overrides_runpath=yes
16227
 
  fi
 
16286
  shlibpath_overrides_runpath=yes
16228
16287
  ;;
16229
16288
 
16230
16289
os2*)
16231
16290
  libname_spec='$name'
16232
 
  shrext_cmds=".dll"
 
16291
  shrext_cmds=.dll
16233
16292
  need_lib_prefix=no
16234
 
  library_names_spec='$libname${shared_ext} $libname.a'
 
16293
  library_names_spec='$libname$shared_ext $libname.a'
16235
16294
  dynamic_linker='OS/2 ld.exe'
16236
16295
  shlibpath_var=LIBPATH
16237
16296
  ;;
16240
16299
  version_type=osf
16241
16300
  need_lib_prefix=no
16242
16301
  need_version=no
16243
 
  soname_spec='${libname}${release}${shared_ext}$major'
16244
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16302
  soname_spec='$libname$release$shared_ext$major'
 
16303
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16245
16304
  shlibpath_var=LD_LIBRARY_PATH
16246
16305
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16247
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16306
  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16248
16307
  ;;
16249
16308
 
16250
16309
rdos*)
16255
16314
  version_type=linux # correct to gnu/linux during the next big refactor
16256
16315
  need_lib_prefix=no
16257
16316
  need_version=no
16258
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
16317
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
16318
  soname_spec='$libname$release$shared_ext$major'
16260
16319
  shlibpath_var=LD_LIBRARY_PATH
16261
16320
  shlibpath_overrides_runpath=yes
16262
16321
  hardcode_into_libs=yes
16266
16325
 
16267
16326
sunos4*)
16268
16327
  version_type=sunos
16269
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16328
  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16270
16329
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16271
16330
  shlibpath_var=LD_LIBRARY_PATH
16272
16331
  shlibpath_overrides_runpath=yes
16273
 
  if test "$with_gnu_ld" = yes; then
 
16332
  if test yes = "$with_gnu_ld"; then
16274
16333
    need_lib_prefix=no
16275
16334
  fi
16276
16335
  need_version=yes
16278
16337
 
16279
16338
sysv4 | sysv4.3*)
16280
16339
  version_type=linux # correct to gnu/linux during the next big refactor
16281
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16282
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
16340
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
16341
  soname_spec='$libname$release$shared_ext$major'
16283
16342
  shlibpath_var=LD_LIBRARY_PATH
16284
16343
  case $host_vendor in
16285
16344
    sni)
16300
16359
  ;;
16301
16360
 
16302
16361
sysv4*MP*)
16303
 
  if test -d /usr/nec ;then
 
16362
  if test -d /usr/nec; then
16304
16363
    version_type=linux # correct to gnu/linux during the next big refactor
16305
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16306
 
    soname_spec='$libname${shared_ext}.$major'
 
16364
    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
 
16365
    soname_spec='$libname$shared_ext.$major'
16307
16366
    shlibpath_var=LD_LIBRARY_PATH
16308
16367
  fi
16309
16368
  ;;
16312
16371
  version_type=freebsd-elf
16313
16372
  need_lib_prefix=no
16314
16373
  need_version=no
16315
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16316
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
16374
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 
16375
  soname_spec='$libname$release$shared_ext$major'
16317
16376
  shlibpath_var=LD_LIBRARY_PATH
16318
16377
  shlibpath_overrides_runpath=yes
16319
16378
  hardcode_into_libs=yes
16320
 
  if test "$with_gnu_ld" = yes; then
 
16379
  if test yes = "$with_gnu_ld"; then
16321
16380
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16322
16381
  else
16323
16382
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16335
16394
  version_type=linux # correct to gnu/linux during the next big refactor
16336
16395
  need_lib_prefix=no
16337
16396
  need_version=no
16338
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16397
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16339
16398
  shlibpath_var=LD_LIBRARY_PATH
16340
16399
  shlibpath_overrides_runpath=no
16341
16400
  hardcode_into_libs=yes
16343
16402
 
16344
16403
uts4*)
16345
16404
  version_type=linux # correct to gnu/linux during the next big refactor
16346
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347
 
  soname_spec='${libname}${release}${shared_ext}$major'
 
16405
  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 
16406
  soname_spec='$libname$release$shared_ext$major'
16348
16407
  shlibpath_var=LD_LIBRARY_PATH
16349
16408
  ;;
16350
16409
 
16354
16413
esac
16355
16414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16356
16415
$as_echo "$dynamic_linker" >&6; }
16357
 
test "$dynamic_linker" = no && can_build_shared=no
 
16416
test no = "$dynamic_linker" && can_build_shared=no
16358
16417
 
16359
16418
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16360
 
if test "$GCC" = yes; then
 
16419
if test yes = "$GCC"; then
16361
16420
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16362
16421
fi
16363
16422
 
16364
 
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16365
 
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16423
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
 
16424
  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16366
16425
fi
16367
 
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16368
 
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16426
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
 
16427
  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16369
16428
fi
16370
16429
 
16371
16430
 
16410
16469
hardcode_action_CXX=
16411
16470
if test -n "$hardcode_libdir_flag_spec_CXX" ||
16412
16471
   test -n "$runpath_var_CXX" ||
16413
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
16472
   test yes = "$hardcode_automatic_CXX"; then
16414
16473
 
16415
16474
  # We can hardcode non-existent directories.
16416
 
  if test "$hardcode_direct_CXX" != no &&
 
16475
  if test no != "$hardcode_direct_CXX" &&
16417
16476
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16418
16477
     # have to relink, otherwise we might link with an installed library
16419
16478
     # when we should be linking with a yet-to-be-installed one
16420
 
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16421
 
     test "$hardcode_minus_L_CXX" != no; then
 
16479
     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
 
16480
     test no != "$hardcode_minus_L_CXX"; then
16422
16481
    # Linking always hardcodes the temporary library directory.
16423
16482
    hardcode_action_CXX=relink
16424
16483
  else
16433
16492
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16434
16493
$as_echo "$hardcode_action_CXX" >&6; }
16435
16494
 
16436
 
if test "$hardcode_action_CXX" = relink ||
16437
 
   test "$inherit_rpath_CXX" = yes; then
 
16495
if test relink = "$hardcode_action_CXX" ||
 
16496
   test yes = "$inherit_rpath_CXX"; then
16438
16497
  # Fast installation is not supported
16439
16498
  enable_fast_install=no
16440
 
elif test "$shlibpath_overrides_runpath" = yes ||
16441
 
     test "$enable_shared" = no; then
 
16499
elif test yes = "$shlibpath_overrides_runpath" ||
 
16500
     test no = "$enable_shared"; then
16442
16501
  # Fast installation is not necessary
16443
16502
  enable_fast_install=needless
16444
16503
fi
16461
16520
  lt_cv_path_LD=$lt_save_path_LD
16462
16521
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16463
16522
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16464
 
fi # test "$_lt_caught_CXX_error" != yes
 
16523
fi # test yes != "$_lt_caught_CXX_error"
16465
16524
 
16466
16525
ac_ext=c
16467
16526
ac_cpp='$CPP $CPPFLAGS'
16508
16567
  IFS=$as_save_IFS
16509
16568
  test -z "$as_dir" && as_dir=.
16510
16569
    for ac_exec_ext in '' $ac_executable_extensions; do
16511
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16570
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16512
16571
    ac_cv_prog_PERL="perl"
16513
16572
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16514
16573
    break 2
16545
16604
  IFS=$as_save_IFS
16546
16605
  test -z "$as_dir" && as_dir=.
16547
16606
    for ac_exec_ext in '' $ac_executable_extensions; do
16548
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16607
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16549
16608
    ac_cv_prog_PDFLATEX="pdflatex"
16550
16609
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16551
16610
    break 2
16582
16641
  IFS=$as_save_IFS
16583
16642
  test -z "$as_dir" && as_dir=.
16584
16643
    for ac_exec_ext in '' $ac_executable_extensions; do
16585
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16644
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16586
16645
    ac_cv_prog_POD2HTML="pod2html"
16587
16646
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16588
16647
    break 2
17633
17692
    for ac_prog in grep ggrep; do
17634
17693
    for ac_exec_ext in '' $ac_executable_extensions; do
17635
17694
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
17636
 
      as_fn_executable_p "$ac_path_GREP" || continue
 
17695
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
17637
17696
# Check for GNU ac_path_GREP and select it if it is found.
17638
17697
  # Check for GNU $ac_path_GREP
17639
17698
case `"$ac_path_GREP" --version 2>&1` in
17697
17756
  IFS=$as_save_IFS
17698
17757
  test -z "$as_dir" && as_dir=.
17699
17758
    for ac_exec_ext in '' $ac_executable_extensions; do
17700
 
  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
17759
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17701
17760
    ac_cv_prog_llvm_config_found="yes"
17702
17761
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17703
17762
    break 2
18724
18783
    # ... but there are two gotchas:
18725
18784
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18726
18785
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18727
 
    # In both cases, we have to default to `cp -pR'.
 
18786
    # In both cases, we have to default to `cp -p'.
18728
18787
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18729
 
      as_ln_s='cp -pR'
 
18788
      as_ln_s='cp -p'
18730
18789
  elif ln conf$$.file conf$$ 2>/dev/null; then
18731
18790
    as_ln_s=ln
18732
18791
  else
18733
 
    as_ln_s='cp -pR'
 
18792
    as_ln_s='cp -p'
18734
18793
  fi
18735
18794
else
18736
 
  as_ln_s='cp -pR'
 
18795
  as_ln_s='cp -p'
18737
18796
fi
18738
18797
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18739
18798
rmdir conf$$.dir 2>/dev/null
18793
18852
  as_mkdir_p=false
18794
18853
fi
18795
18854
 
18796
 
 
18797
 
# as_fn_executable_p FILE
18798
 
# -----------------------
18799
 
# Test if FILE is an executable regular file.
18800
 
as_fn_executable_p ()
18801
 
{
18802
 
  test -f "$1" && test -x "$1"
18803
 
} # as_fn_executable_p
18804
 
as_test_x='test -x'
18805
 
as_executable_p=as_fn_executable_p
 
18855
if test -x / >/dev/null 2>&1; then
 
18856
  as_test_x='test -x'
 
18857
else
 
18858
  if ls -dL / >/dev/null 2>&1; then
 
18859
    as_ls_L_option=L
 
18860
  else
 
18861
    as_ls_L_option=
 
18862
  fi
 
18863
  as_test_x='
 
18864
    eval sh -c '\''
 
18865
      if test -d "$1"; then
 
18866
        test -d "$1/.";
 
18867
      else
 
18868
        case $1 in #(
 
18869
        -*)set "./$1";;
 
18870
        esac;
 
18871
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
 
18872
        ???[sx]*):;;*)false;;esac;fi
 
18873
    '\'' sh
 
18874
  '
 
18875
fi
 
18876
as_executable_p=$as_test_x
18806
18877
 
18807
18878
# Sed expression to map a string onto a valid CPP name.
18808
18879
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18824
18895
# values after options handling.
18825
18896
ac_log="
18826
18897
This file was extended by isl $as_me 0.12.1, which was
18827
 
generated by GNU Autoconf 2.69.  Invocation command line was
 
18898
generated by GNU Autoconf 2.68.  Invocation command line was
18828
18899
 
18829
18900
  CONFIG_FILES    = $CONFIG_FILES
18830
18901
  CONFIG_HEADERS  = $CONFIG_HEADERS
18890
18961
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18891
18962
ac_cs_version="\\
18892
18963
isl config.status 0.12.1
18893
 
configured by $0, generated by GNU Autoconf 2.69,
 
18964
configured by $0, generated by GNU Autoconf 2.68,
18894
18965
  with options \\"\$ac_cs_config\\"
18895
18966
 
18896
 
Copyright (C) 2012 Free Software Foundation, Inc.
 
18967
Copyright (C) 2010 Free Software Foundation, Inc.
18897
18968
This config.status script is free software; the Free Software Foundation
18898
18969
gives unlimited permission to copy, distribute and modify it."
18899
18970
 
18984
19055
_ACEOF
18985
19056
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18986
19057
if \$ac_cs_recheck; then
18987
 
  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
19058
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18988
19059
  shift
18989
19060
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18990
19061
  CONFIG_SHELL='$SHELL'
19073
19144
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19074
19145
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19075
19146
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
 
19147
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19076
19148
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19077
19149
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
 
19150
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19078
19151
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19079
19152
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19080
19153
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19246
19319
compiler \
19247
19320
lt_cv_sys_global_symbol_pipe \
19248
19321
lt_cv_sys_global_symbol_to_cdecl \
 
19322
lt_cv_sys_global_symbol_to_import \
19249
19323
lt_cv_sys_global_symbol_to_c_name_address \
19250
19324
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
19325
lt_cv_nm_interface \
19251
19326
nm_file_list_spec \
19252
19327
lt_prog_compiler_no_builtin_flag \
19253
19328
lt_prog_compiler_pic \
19314
19389
compiler_lib_search_path_CXX; do
19315
19390
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19316
19391
    *[\\\\\\\`\\"\\\$]*)
19317
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
19392
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19318
19393
      ;;
19319
19394
    *)
19320
19395
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19355
19430
postlink_cmds_CXX; do
19356
19431
    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19357
19432
    *[\\\\\\\`\\"\\\$]*)
19358
 
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
19433
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19359
19434
      ;;
19360
19435
    *)
19361
19436
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19364
19439
done
19365
19440
 
19366
19441
ac_aux_dir='$ac_aux_dir'
19367
 
xsi_shell='$xsi_shell'
19368
 
lt_shell_append='$lt_shell_append'
19369
19442
 
19370
 
# See if we are running on zsh, and set the options which allow our
 
19443
# See if we are running on zsh, and set the options that allow our
19371
19444
# commands through without removal of \ escapes INIT.
19372
 
if test -n "\${ZSH_VERSION+set}" ; then
 
19445
if test -n "\${ZSH_VERSION+set}"; then
19373
19446
   setopt NO_GLOB_SUBST
19374
19447
fi
19375
19448
 
19376
19449
 
19377
19450
    PACKAGE='$PACKAGE'
19378
19451
    VERSION='$VERSION'
19379
 
    TIMESTAMP='$TIMESTAMP'
19380
19452
    RM='$RM'
19381
19453
    ofile='$ofile'
19382
19454
 
20137
20209
 ;;
20138
20210
    "libtool":C)
20139
20211
 
20140
 
    # See if we are running on zsh, and set the options which allow our
 
20212
    # See if we are running on zsh, and set the options that allow our
20141
20213
    # commands through without removal of \ escapes.
20142
 
    if test -n "${ZSH_VERSION+set}" ; then
 
20214
    if test -n "${ZSH_VERSION+set}"; then
20143
20215
      setopt NO_GLOB_SUBST
20144
20216
    fi
20145
20217
 
20146
 
    cfgfile="${ofile}T"
 
20218
    cfgfile=${ofile}T
20147
20219
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20148
20220
    $RM "$cfgfile"
20149
20221
 
20151
20223
#! $SHELL
20152
20224
 
20153
20225
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20154
 
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
20226
# Generated automatically by $as_me ($PACKAGE) $VERSION
20155
20227
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20156
20228
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20157
20229
#
20185
20257
 
20186
20258
 
20187
20259
# The names of the tagged configurations supported by this script.
20188
 
available_tags="CXX "
 
20260
available_tags='CXX '
20189
20261
 
20190
20262
# ### BEGIN LIBTOOL CONFIG
20191
20263
 
20322
20394
# Transform the output of nm in a proper C declaration.
20323
20395
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20324
20396
 
 
20397
# Transform the output of nm into a list of symbols to manually relocate.
 
20398
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
 
20399
 
20325
20400
# Transform the output of nm in a C name address pair.
20326
20401
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20327
20402
 
20328
20403
# Transform the output of nm in a C name address pair when lib prefix is needed.
20329
20404
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20330
20405
 
 
20406
# The name lister interface.
 
20407
nm_interface=$lt_lt_cv_nm_interface
 
20408
 
20331
20409
# Specify filename containing input files for \$NM.
20332
20410
nm_file_list_spec=$lt_nm_file_list_spec
20333
20411
 
20334
 
# The root where to search for dependent libraries,and in which our libraries should be installed.
 
20412
# The root where to search for dependent libraries,and where our libraries should be installed.
20335
20413
lt_sysroot=$lt_sysroot
20336
20414
 
20337
20415
# The name of the directory that contains temporary libtool files.
20518
20596
# Whether we need a single "-rpath" flag with a separated argument.
20519
20597
hardcode_libdir_separator=$lt_hardcode_libdir_separator
20520
20598
 
20521
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20599
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20522
20600
# DIR into the resulting binary.
20523
20601
hardcode_direct=$hardcode_direct
20524
20602
 
20525
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20603
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20526
20604
# DIR into the resulting binary and the resulting library dependency is
20527
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
20605
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20528
20606
# library is relocated.
20529
20607
hardcode_direct_absolute=$hardcode_direct_absolute
20530
20608
 
20596
20674
# AIX sometimes has problems with the GCC collect2 program.  For some
20597
20675
# reason, if we set the COLLECT_NAMES environment variable, the problems
20598
20676
# vanish in a puff of smoke.
20599
 
if test "X${COLLECT_NAMES+set}" != Xset; then
 
20677
if test set != "${COLLECT_NAMES+set}"; then
20600
20678
  COLLECT_NAMES=
20601
20679
  export COLLECT_NAMES
20602
20680
fi
20605
20683
  esac
20606
20684
 
20607
20685
 
20608
 
ltmain="$ac_aux_dir/ltmain.sh"
 
20686
ltmain=$ac_aux_dir/ltmain.sh
20609
20687
 
20610
20688
 
20611
20689
  # We use sed instead of cat because bash on DJGPP gets confused if
20615
20693
  sed '$q' "$ltmain" >> "$cfgfile" \
20616
20694
     || (rm -f "$cfgfile"; exit 1)
20617
20695
 
20618
 
  if test x"$xsi_shell" = xyes; then
20619
 
  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20620
 
func_dirname ()\
20621
 
{\
20622
 
\    case ${1} in\
20623
 
\      */*) func_dirname_result="${1%/*}${2}" ;;\
20624
 
\      *  ) func_dirname_result="${3}" ;;\
20625
 
\    esac\
20626
 
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20627
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20628
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20629
 
test 0 -eq $? || _lt_function_replace_fail=:
20630
 
 
20631
 
 
20632
 
  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20633
 
func_basename ()\
20634
 
{\
20635
 
\    func_basename_result="${1##*/}"\
20636
 
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20637
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20638
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20639
 
test 0 -eq $? || _lt_function_replace_fail=:
20640
 
 
20641
 
 
20642
 
  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20643
 
func_dirname_and_basename ()\
20644
 
{\
20645
 
\    case ${1} in\
20646
 
\      */*) func_dirname_result="${1%/*}${2}" ;;\
20647
 
\      *  ) func_dirname_result="${3}" ;;\
20648
 
\    esac\
20649
 
\    func_basename_result="${1##*/}"\
20650
 
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20651
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20652
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20653
 
test 0 -eq $? || _lt_function_replace_fail=:
20654
 
 
20655
 
 
20656
 
  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20657
 
func_stripname ()\
20658
 
{\
20659
 
\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20660
 
\    # positional parameters, so assign one to ordinary parameter first.\
20661
 
\    func_stripname_result=${3}\
20662
 
\    func_stripname_result=${func_stripname_result#"${1}"}\
20663
 
\    func_stripname_result=${func_stripname_result%"${2}"}\
20664
 
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20665
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20666
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20667
 
test 0 -eq $? || _lt_function_replace_fail=:
20668
 
 
20669
 
 
20670
 
  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20671
 
func_split_long_opt ()\
20672
 
{\
20673
 
\    func_split_long_opt_name=${1%%=*}\
20674
 
\    func_split_long_opt_arg=${1#*=}\
20675
 
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20676
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20677
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20678
 
test 0 -eq $? || _lt_function_replace_fail=:
20679
 
 
20680
 
 
20681
 
  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20682
 
func_split_short_opt ()\
20683
 
{\
20684
 
\    func_split_short_opt_arg=${1#??}\
20685
 
\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20686
 
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20687
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20688
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20689
 
test 0 -eq $? || _lt_function_replace_fail=:
20690
 
 
20691
 
 
20692
 
  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20693
 
func_lo2o ()\
20694
 
{\
20695
 
\    case ${1} in\
20696
 
\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20697
 
\      *)    func_lo2o_result=${1} ;;\
20698
 
\    esac\
20699
 
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20700
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20701
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20702
 
test 0 -eq $? || _lt_function_replace_fail=:
20703
 
 
20704
 
 
20705
 
  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20706
 
func_xform ()\
20707
 
{\
20708
 
    func_xform_result=${1%.*}.lo\
20709
 
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20710
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20711
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20712
 
test 0 -eq $? || _lt_function_replace_fail=:
20713
 
 
20714
 
 
20715
 
  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20716
 
func_arith ()\
20717
 
{\
20718
 
    func_arith_result=$(( $* ))\
20719
 
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20720
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20721
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20722
 
test 0 -eq $? || _lt_function_replace_fail=:
20723
 
 
20724
 
 
20725
 
  sed -e '/^func_len ()$/,/^} # func_len /c\
20726
 
func_len ()\
20727
 
{\
20728
 
    func_len_result=${#1}\
20729
 
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20730
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20731
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20732
 
test 0 -eq $? || _lt_function_replace_fail=:
20733
 
 
20734
 
fi
20735
 
 
20736
 
if test x"$lt_shell_append" = xyes; then
20737
 
  sed -e '/^func_append ()$/,/^} # func_append /c\
20738
 
func_append ()\
20739
 
{\
20740
 
    eval "${1}+=\\${2}"\
20741
 
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20742
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20743
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20744
 
test 0 -eq $? || _lt_function_replace_fail=:
20745
 
 
20746
 
 
20747
 
  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20748
 
func_append_quoted ()\
20749
 
{\
20750
 
\    func_quote_for_eval "${2}"\
20751
 
\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20752
 
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20753
 
  && mv -f "$cfgfile.tmp" "$cfgfile" \
20754
 
    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20755
 
test 0 -eq $? || _lt_function_replace_fail=:
20756
 
 
20757
 
 
20758
 
  # Save a `func_append' function call where possible by direct use of '+='
20759
 
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20760
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
20761
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20762
 
  test 0 -eq $? || _lt_function_replace_fail=:
20763
 
else
20764
 
  # Save a `func_append' function call even when '+=' is not available
20765
 
  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20766
 
    && mv -f "$cfgfile.tmp" "$cfgfile" \
20767
 
      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20768
 
  test 0 -eq $? || _lt_function_replace_fail=:
20769
 
fi
20770
 
 
20771
 
if test x"$_lt_function_replace_fail" = x":"; then
20772
 
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20773
 
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20774
 
fi
20775
 
 
20776
 
 
20777
20696
   mv -f "$cfgfile" "$ofile" ||
20778
20697
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20779
20698
  chmod +x "$ofile"
20860
20779
# Whether we need a single "-rpath" flag with a separated argument.
20861
20780
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20862
20781
 
20863
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20782
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20864
20783
# DIR into the resulting binary.
20865
20784
hardcode_direct=$hardcode_direct_CXX
20866
20785
 
20867
 
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20786
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20868
20787
# DIR into the resulting binary and the resulting library dependency is
20869
 
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
20788
# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20870
20789
# library is relocated.
20871
20790
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20872
20791